maint.mk: expand syntax-check rule to catch @xref and @pxref abuse
[gnulib.git] / ChangeLog
1 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2         and Jim Meyering  <meyering@redhat.com>
3
4         maint.mk: catch "see @xref{}" and similar
5         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6         prohibit "See also @xref{", "Also see @pxref{", and similar.
7
8 2012-04-16  Jim Meyering  <meyering@redhat.com>
9
10         bootstrap: really use gnulib's po/Makefile.in.in
11         * build-aux/bootstrap: Correct the source file name in previous change.
12         Reported by Akim Demaille.
13
14         configmake: correct minor inconsistency in Makefile rule
15         * modules/configmake (Makefile.am): All other rules like this one
16         run the final "mv -f ..." in the same backslash-continued command
17         as the one that does everything else.  This one put the mv -f ...
18         command on a separate, non-backslash-continued line.
19         Make it like the others.
20
21         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
22         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23         the one from gettext.  Reported by Akim Demaille.
24
25 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
26
27         Fix recursion of install-* into po directories.
28         Bison's install-pdf bug reported by Hans Aberg at
29         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
30         * build-aux/po/Makefile.in.in (install-dvi, install-html)
31         (install-info, install-pdf, install-ps): New targets.
32
33 2012-04-16  Jim Meyering  <meyering@redhat.com>
34
35         maint: avoid spurious "make sc_maint" failure
36         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
37         exempt all *.class file names, for lib/javaversion.class.
38
39 2012-04-15  Bruno Haible  <bruno@clisp.org>
40
41         lseek: Make configure test independent of environment.
42         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
43         Windows, we know that lseek() on pipes is broken; skip the runtime
44         test.
45
46 2012-04-14  Bruno Haible  <bruno@clisp.org>
47
48         stat: Bypass buggy override in mingw64.
49         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
50         * lib/stat.c (stat) [mingw64]: Define to _stat.
51         * doc/posix-functions/stat.texi: Mention mingw64 bug.
52
53 2012-04-14  Bruno Haible  <bruno@clisp.org>
54
55         pathmax: Fix compilation error on MSVC 9.
56         * modules/pathmax (Depends-on): Add unistd.
57
58 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59
60         README: document pointer comparison assumption
61         * README (Portability guidelines): Document assumption about
62         pointer comparisons, in response to a recent bug-gnulib comment by
63         Jeffrey Kegler.
64
65 2012-04-12  Bruno Haible  <bruno@clisp.org>
66
67         Tests for module 'getrusage'.
68         * modules/getrusage-tests: New file.
69         * tests/test-getrusage.c: New file.
70
71         New module 'getrusage'.
72         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
73         warn-on-use.h.
74         (getrusage): New declaration.
75         * lib/getrusage.c: New file.
76         * m4/getrusage.m4: New file.
77         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
78         is declared.
79         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
80         HAVE_GETRUSAGE.
81         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
82         snippet/c++defs, snippet/warn-on-use.
83         (Makefile.am): Update generation of sys/resource.h. Substitute
84         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
85         * modules/getrusage: New file.
86         * doc/posix-functions/getrusage.texi: Mention the new module.
87
88 2012-04-12  Bruno Haible  <bruno@clisp.org>
89
90         Tests for module 'sys_resource'.
91         * modules/sys_resource-tests: New file.
92         * tests/test-sys_resource.c: New file.
93
94         New module 'sys_resource'.
95         * lib/sys_resource.in.h: New file.
96         * m4/sys_resource_h.m4: New file.
97         * modules/sys_resource: New file.
98         * doc/posix-headers/sys_resource.texi: Mention the new module.
99
100 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
101
102         ioctl: Fix compilation error on mingw.
103         * lib/ioctl.c: Include <windows.h>.
104         Also reported by Ray Satiro <raysatiro@yahoo.com>.
105
106 2012-04-04  Jim Meyering  <meyering@redhat.com>
107
108         regex: correct #pragma guard expression
109         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
110         not 4.3.  Correct its cpp guard expression.
111
112 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
113
114         regex: remove unnecessary type punning
115         Problem reported by Vladimir Serbinenko in
116         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
117         * lib/regex.h (struct re_pattern_buffer): Change the type of
118         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
119         Fix comment to match code.
120         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
121         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
122         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
123         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
124         (set_regs):
125         Omit no-longer-necessary casts.
126
127 2012-04-03  Bruno Haible  <bruno@clisp.org>
128
129         Tests for module 'ilogbl'.
130         * modules/ilogbl-tests: New file.
131         * tests/test-ilogbl.c: New file.
132
133         New module 'ilogbl'.
134         * lib/math.in.h (ilogbl): New declaration.
135         * lib/ilogbl.c: New file.
136         * m4/ilogbl.m4: New file.
137         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
139         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
140         Split sed invocation, to avoid the limit of 100 substitutions of
141         HP-UX 'sed'.
142         * modules/ilogbl: New file.
143         * tests/test-math-c++.cc: Check the declaration of ilogbl.
144         * doc/posix-functions/ilogbl.texi: Mention the new module.
145
146 2012-04-03  Bruno Haible  <bruno@clisp.org>
147
148         Tests for module 'ilogbf'.
149         * modules/ilogbf-tests: New file.
150         * tests/test-ilogbf.c: New file.
151
152         New module 'ilogbf'.
153         * lib/math.in.h (ilogbf): New declaration.
154         * lib/ilogbf.c: New file.
155         * m4/ilogbf.m4: New file.
156         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
158         REPLACE_ILOGBF.
159         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
160         REPLACE_ILOGBF.
161         * modules/ilogbf: New file.
162         * tests/test-math-c++.cc: Check the declaration of ilogbf.
163         * doc/posix-functions/ilogbf.texi: Mention the new module.
164
165 2012-04-03  Bruno Haible  <bruno@clisp.org>
166
167         Tests for module 'ilogb'.
168         * modules/ilogb-tests: New file.
169         * tests/test-ilogb.c: New file.
170         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
171         tests/test-logb-ieee.h.
172
173         New module 'ilogb'.
174         * lib/math.in.h (ilogb): New declaration.
175         * lib/ilogb.c: New file.
176         * m4/ilogb.m4: New file.
177         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
179         REPLACE_ILOGB.
180         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
181         REPLACE_ILOGB.
182         * modules/ilogb: New file.
183         * tests/test-math-c++.cc: Check the declaration of ilogb.
184         * doc/posix-functions/ilogb.texi: Mention the new module.
185
186 2012-04-03  Bruno Haible  <bruno@clisp.org>
187
188         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
189         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
190         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
191         (main): Check their values.
192         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
193         problem.
194
195 2012-04-03  Bruno Haible  <bruno@clisp.org>
196
197         Tests for module 'logbl-ieee'.
198         * modules/logbl-ieee-tests: New file.
199         * tests/test-logbl-ieee.c: New file.
200
201         New module 'logbl-ieee'.
202         * modules/logbl-ieee: New file.
203
204         Tests for module 'logb-ieee'.
205         * modules/logb-ieee-tests: New file.
206         * tests/test-logb-ieee.c: New file.
207
208         New module 'logb-ieee'.
209         * modules/logb-ieee: New file.
210
211         Tests for module 'logbf-ieee'.
212         * modules/logbf-ieee-tests: New file.
213         * tests/test-logbf-ieee.c: New file.
214         * tests/test-logb-ieee.h: New file.
215
216         New module 'logbf-ieee'.
217         * modules/logbf-ieee: New file.
218
219 2012-04-03  Bruno Haible  <bruno@clisp.org>
220
221         Tests for module 'logbl'.
222         * modules/logbl-tests: New file.
223         * tests/test-logbl.c: New file.
224
225         New module 'logbl'.
226         * lib/math.in.h (logbl): New declaration.
227         * lib/logbl.c: New file.
228         * m4/logbl.m4: New file.
229         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
231         REPLACE_LOGBL.
232         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
233         REPLACE_LOGBL.
234         * modules/logbl: New file.
235         * tests/test-math-c++.cc: Check the declaration of logbl.
236         * doc/posix-functions/logbl.texi: Mention the new module.
237
238 2012-04-02  Bruno Haible  <bruno@clisp.org>
239
240         Tests for module 'logbf'.
241         * modules/logbf-tests: New file.
242         * tests/test-logbf.c: New file.
243
244         New module 'logbf'.
245         * lib/math.in.h (logbf): New declaration.
246         * lib/logbf.c: New file.
247         * m4/logbf.m4: New file.
248         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
250         REPLACE_LOGBF.
251         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
252         REPLACE_LOGBF.
253         * modules/logbf: New file.
254         * tests/test-math-c++.cc: Check the declaration of logbf.
255         * doc/posix-functions/logbf.texi: Mention the new module.
256
257 2012-04-02  Bruno Haible  <bruno@clisp.org>
258
259         logb tests: More tests.
260         * tests/test-logb.h: New file, based on tests/test-logb.c and
261         tests/test-frexp.h.
262         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
263         (main): Just invoke test_function.
264         * modules/logb-tests (Files): Add tests/test-logb.h,
265         tests/minus-zero.h, tests/randomd.c.
266         (Makefile.am): Add randomd.c to test_logb_SOURCES.
267
268         logb: Provide replacement and workarounds.
269         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
270         is 1.
271         * lib/logb.c: New file.
272         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
273         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
275         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
276         * modules/logb (Files): Add lib/logb.c.
277         (Depends-on): Add isfinite, frexp, isnand.
278         (configure.ac): Compile the replacement code logb.c if needed.
279         * tests/test-math-c++.cc: Check the declaration of logb.
280         * doc/posix-functions/logb.texi: Mention the replacement and the bug
281         with subnormal numbers.
282
283 2012-04-02  Bruno Haible  <bruno@clisp.org>
284
285         log10* tests: Speed up.
286         * tests/test-log10.h (test_function): Reduce amount of random numbers
287         to test.
288
289 2012-04-01  Bruno Haible  <bruno@clisp.org>
290
291         logf-ieee: Fix test whether logf works.
292         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
293
294 2012-04-01  Bruno Haible  <bruno@clisp.org>
295
296         log10l: Work around log10l-ieee test failure on IRIX 6.5.
297         * lib/log10l.c: Include <float.h>
298         (log10l): On IRIX, normalize the +Infinity value.
299         * modules/log10l (Depends-on): Add 'float'.
300         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
301         +Infinity.
302
303         log10f-ieee: Work around test failure on NetBSD 5.1.
304         * m4/log10f-ieee.m4: New file.
305         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
306         test whether log10f works with a negative argument. Replace it if not.
307         * lib/log10f.c (log10f): For negative arguments, return NaN.
308         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
309         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
310         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
311
312         log10f-ieee: Work around test failure on Solaris 9.
313         * modules/log10f-ieee (Depends-on): Add log10-ieee.
314         (configure.ac): Require gl_FUNC_LOG10F.
315
316         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
317         * m4/log10-ieee.m4: New file.
318         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
319         whether log10 works with a negative argument. Replace it if not.
320         * lib/log10.c (log10): For negative arguments, return NaN.
321         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
322         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
323         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
324
325         Tests for module 'log10l-ieee'.
326         * modules/log10l-ieee-tests: New file.
327         * tests/test-log10l-ieee.c: New file.
328
329         New module 'log10l-ieee'.
330         * modules/log10l-ieee: New file.
331
332         Tests for module 'log10-ieee'.
333         * modules/log10-ieee-tests: New file.
334         * tests/test-log10-ieee.c: New file.
335
336         New module 'log10-ieee'.
337         * modules/log10-ieee: New file.
338
339         Tests for module 'log10f-ieee'.
340         * modules/log10f-ieee-tests: New file.
341         * tests/test-log10f-ieee.c: New file.
342         * tests/test-log10-ieee.h: New file.
343
344         New module 'log10f-ieee'.
345         * modules/log10f-ieee: New file.
346
347 2012-04-01  Bruno Haible  <bruno@clisp.org>
348
349         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
350         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
351         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
352         workaround.
353         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
354         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
356         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
357         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
358         (Depends-on): Update conditions.
359         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
360         IRIX 6.5, OSF/1 5.1 problems.
361
362 2012-04-01  Bruno Haible  <bruno@clisp.org>
363
364         log10f: Work around OSF/1 5.1 bug.
365         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
366         * lib/log10f.c (log10f): If logf exists, use it and provide just the
367         workaround.
368         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
369         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
371         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
372         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
373         (Depends-on): Update conditions.
374         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
375
376 2012-04-01  Bruno Haible  <bruno@clisp.org>
377
378         log10: Work around OSF/1 5.1 bug.
379         * lib/math.in.h (log10): New declaration.
380         * lib/log10.c: New file.
381         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
382         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
383         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
385         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
386         * modules/log10 (Files): Add lib/log10.c.
387         (Depends-on): Add math.
388         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
389         * tests/test-math-c++.cc: Check the declaration of log10.
390         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
391
392 2012-03-31  Bruno Haible  <bruno@clisp.org>
393
394         log10l tests: More tests.
395         * modules/log10l-tests (Files): Add tests/test-log10l.h,
396         tests/minus-zero.h, tests/randoml.c.
397         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
398         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
399         (main): Invoke test_function.
400
401         log10f tests: More tests.
402         * modules/log10f-tests (Files): Add tests/test-log10.h,
403         tests/minus-zero.h, tests/randomf.c.
404         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
405         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
406         (main): Invoke test_function.
407
408         log10 tests: More tests.
409         * tests/test-log10.h: New file.
410         * modules/log10-tests (Files): Add tests/test-log10.h,
411         tests/minus-zero.h, tests/randomd.c.
412         (Makefile.am): Add randomd.c to test_log10_SOURCES.
413         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
414         (main): Invoke test_function.
415
416 2012-03-31  Simon Josefsson  <simon@josefsson.org>
417
418         fflush: Fix syntax error.
419         * lib/fflush.c: Include unused-parameter.h, needed for
420         _GL_UNUSED_PARAMETER.
421         * modules/fflush (Depends-on): Add snippet/unused-parameter.
422
423 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
424
425         regex: pacify GCC when compiling GRUB
426         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
427         a diagnostic.  Reported by Vladimir Serbinenko in
428         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
429
430 2012-03-29  Eric Blake  <eblake@redhat.com>
431
432         stdio: don't assume gets any more
433         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
434         support.
435         * modules/stdio (Makefile.am): Likewise.
436         * lib/stdio-read.c (gets): Likewise.
437         * tests/test-stdio-c++.cc: Likewise.
438         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
439         * lib/stdio.in.h (gets): Make warning occur in more places.
440         * doc/posix-functions/gets.texi (gets): Update documentation.
441         Reported by Christer Solskogen.
442
443         maint.mk: fix syntax checks without exclusions
444         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
445         Reported by Daniel P. Berrange.
446
447         strerror_r: avoid compiler warning
448         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
449         level.
450
451         fflush: avoid compiler warning
452         * lib/fflush.c (update_fpos_cache): Mark variables that are
453         potentially unused.
454
455 2012-03-25  Bruno Haible  <bruno@clisp.org>
456
457         Tests for module 'localeconv'.
458         * modules/localeconv-tests: New file.
459         * tests/test-localeconv.c: New file.
460
461         New module 'localeconv'.
462         * lib/locale.in.h (localeconv): New declaration.
463         * lib/localeconv.c: New file.
464         * m4/localeconv.m4: New file.
465         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
466         REPLACE_LOCALECONV.
467         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
468         REPLACE_LOCALECONV.
469         * modules/localeconv: New file.
470         * modules/nl_langinfo (Depends-on): Add localeconv.
471         * modules/human (Depends-on): Likewise.
472         * doc/posix-functions/localeconv.texi: Mention the new module.
473
474 2012-03-25  Bruno Haible  <bruno@clisp.org>
475
476         locale: Provide a complete 'struct lconv'.
477         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
478         'struct lconv' does not contain int_p_cs_precedes.
479         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
480         * doc/posix-headers/locale.texi: Update.
481
482         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
483         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
484         * doc/posix-headers/locale.texi: Update.
485
486         locale: Provide a working 'struct lconv'.
487         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
488         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
489         'struct lconv' does not even contain decimal_point.
490         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
491         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
492         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
493         * doc/posix-headers/locale.texi: Mention the problems with
494         'struct lconv'.
495         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
496
497 2012-03-24  Bruno Haible  <bruno@clisp.org>
498
499         Enable common subexpression optimization in GCC.
500         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
501         macros.
502         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
503         GCC attribute 'const'.
504         (uc_locale_language): Declare with GCC attribute 'pure'.
505         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
506         with GCC attribute 'const'.
507         * lib/unictype.in.h (uc_is_general_category_withtable,
508         uc_combining_class, uc_combining_class_name,
509         uc_combining_class_long_name, uc_bidi_class_name,
510         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
511         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
512         uc_decimal_value, uc_digit_value, uc_numeric_value,
513         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
514         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
515         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
516         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
517         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
518         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
519         Declare with GCC attribute 'const'.
520         (uc_general_category_name, uc_general_category_long_name,
521         uc_general_category_byname, uc_general_category,
522         uc_is_general_category, uc_combining_class_byname,
523         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
524         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
525         Declare with GCC attribute 'pure'.
526         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
527         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
528         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
529         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
530         with GCC attribute 'pure'.
531         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
532         'const'.
533         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
534         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
535         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
536         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
537         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
538         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
539         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
540         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
541         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
542         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
543         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
544         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
545         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
546         GCC attribute 'pure'.
547         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
548         'const'.
549         * lib/uniwidth.in.h (uc_width): Simplify declaration.
550         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
551         u32_strwidth): Declare with GCC attribute 'pure'.
552
553         Enable common subexpression optimization in GCC.
554         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
555         (alphasort): Declare with GCC attribute 'pure'.
556         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
557         (atoll): Declare with GCC attribute 'pure'.
558         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
559         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
560         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
561         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
562         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
563         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
564         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
565
566 2012-03-24  Bruno Haible  <bruno@clisp.org>
567
568         gnulib-tool: Avoid unintended error output from 'cmp'.
569         * gnulib-tool (func_add_file, func_update_file, func_import): Use
570         "cmp -s", not "cmp > /dev/null".
571
572 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
573
574         gnulib-tool: fix imprecise comments w.r.t. an automake bug
575
576         It's not just Automake versions < 1.9b that creates an empty
577         pkgdatadir at installation time if pkgdata_DATA is specified
578         to empty; modern automake versions do this as well, at least
579         until automake 1.11.4 (not yet released at the moment of writing,
580         but soon to appear).  That behaviour was generally considered a
581         feature rather than a bug, at least until this discussion:
582         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
583
584         See also automake bugs #10997 and #11030.
585
586         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
587         reference to relevant automake bug numbers.
588         (func_emit_tests_Makefile_am): Likewise.
589
590 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
591
592         announce-gen: use Digest::SHA when possible
593         * build-aux/announce-gen: Use Digest::SHA when possible, falling
594         back to Digest::SHA1 if necessary.
595
596 2012-03-20  Jim Meyering  <meyering@redhat.com>
597
598         tests: avoid gcc warnings about argv vs. const initializers
599         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
600         warnings about discarding 'const' qualifier from pointer target type.
601         * tests/test-posix_spawn2.c (main): Likewise.
602
603 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
604
605         README-release: simplify slightly
606         * top/README-release: Run "git checkout master" only once.
607
608 2012-03-15  Mark Wielaard  <mark@klomp.org>
609
610         git-merge-changelog: add specific example on how to use with hg.
611         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
612
613 2012-03-18  Mark Wielaard  <mark@klomp.org>
614
615         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
616
617 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
618
619         git-version-gen: don't let "prefix" envvar cause trouble
620         * build-aux/git-version-gen (prefix): Initialize properly,
621         so as not to use a value specified via the environment.
622         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
623
624 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
625
626         regex: diagnose too-large repeat counts in EREs
627         Previously, the code did not diagnose the too-large repeat count
628         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
629         as if it were 'b\{1000000000}', which is unexpected.
630         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
631         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
632         is a reasonable one for this problem.  Another option would be to
633         create a new REG_OVERFLOW error for repeat counts that are too large.
634         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
635         count is too large, so that the caller can distinguish the two cases.
636         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
637         "Too large" return code, and that repeat counts are one example of this.
638
639 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
640
641         doc: some glibc x32 integer width issues
642         * doc/posix-headers/sys_types.texi (sys/types.h):
643         * doc/posix-headers/time.texi (time.h):
644         Mention that glibc x32 does not conform to POSIX in a couple of
645         areas related to integer widths.
646
647 2012-03-15  Bruno Haible  <bruno@clisp.org>
648
649         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
650         * lib/fma.c (VOLATILE): New macro.
651         (FUNC): Use it to work around a GCC compiler bug.
652
653 2012-03-13  Bruno Haible  <bruno@clisp.org>
654
655         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
656         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
657         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
658         REPLACE_HYPOTL to 1.
659         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
660
661 2012-03-13  Bruno Haible  <bruno@clisp.org>
662
663         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
664         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
665         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
666         REPLACE_REMAINDERL to 1.
667         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
668         bug.
669
670 2012-03-13  Bruno Haible  <bruno@clisp.org>
671
672         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
673         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
674         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
675         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
676         too big rounding errors.
677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
678         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
679         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
680         (Depends-on): Update conditions.
681         * tests/test-sqrtl.c (my_ldexpl): New function.
682         (main): Add test of a particular value.
683         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
684
685 2012-03-13  Pádraig Brady  <P@draigBrady.com>
686
687         doc: Update timer_* platform portability notes.
688         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
689         that always return ENOSYS.
690         * doc/posix-functions/timer_delete.texi: Likewise.
691         * doc/posix-functions/timer_gettime.texi: Likewise.
692         * doc/posix-functions/timer_settime.texi: Likewise.
693
694 2012-03-13  Bruno Haible  <bruno@clisp.org>
695
696         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
697         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
698         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
699         REPLACE_CBRTL to 1.
700         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
701
702 2012-03-13  Bruno Haible  <bruno@clisp.org>
703
704         remainderl: Avoid compilation error on AIX >= 5.2.
705         * lib/math.in.h (remainderl): Undefine macro from the system header.
706
707 2012-03-13  Bruno Haible  <bruno@clisp.org>
708
709         Avoid compilation errors with MSVC option -fp:strict.
710         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
711         * lib/cbrtf.c: Likewise.
712         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
713
714 2012-03-12  Bruno Haible  <bruno@clisp.org>
715
716         uninorm: Don't crash in out-of-memory conditions.
717         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
718         gracefully.
719         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
720         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
721
722 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
723
724         quote: fix syntax-check
725         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
726         also exports quote_quoting_options.
727
728 2012-03-12  Simon Josefsson  <simon@josefsson.org>
729
730         Collapse list of copyright years to ranges.  See
731         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
732         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
733         build-aux/csharpexec.sh.in, build-aux/gnupload,
734         build-aux/install-reloc, build-aux/javacomp.sh.in,
735         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
736         build-aux/move-if-change, build-aux/reloc-ldflags,
737         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
738
739 2012-03-11  Bruno Haible  <bruno@clisp.org>
740
741         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
742         * m4/log2f-ieee.m4: New file.
743         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
744         whether log2f works with a minus zero argument. Replace it if not.
745         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
746         (Depends-on): Add log2-ieee.
747         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
748         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
749
750         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
751         * m4/log2-ieee.m4: New file.
752         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
753         whether log2 works with a minus zero argument. Replace it if not.
754         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
755         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
756         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
757
758         Tests for module 'log2l-ieee'.
759         * modules/log2l-ieee-tests: New file.
760         * tests/test-log2l-ieee.c: New file.
761
762         New module 'log2l-ieee'.
763         * modules/log2l-ieee: New file.
764
765         Tests for module 'log2-ieee'.
766         * modules/log2-ieee-tests: New file.
767         * tests/test-log2-ieee.c: New file.
768
769         New module 'log2-ieee'.
770         * modules/log2-ieee: New file.
771
772         Tests for module 'log2f-ieee'.
773         * modules/log2f-ieee-tests: New file.
774         * tests/test-log2f-ieee.c: New file.
775         * tests/test-log2-ieee.h: New file.
776
777         New module 'log2f-ieee'.
778         * modules/log2f-ieee: New file.
779
780 2012-03-11  Bruno Haible  <bruno@clisp.org>
781
782         Tests for module 'log2l'.
783         * modules/log2l-tests: New file.
784         * tests/test-log2l.c: New file.
785
786         New module 'log2l'.
787         * lib/math.in.h (log2l): New declaration.
788         * lib/log2l.c: New file.
789         * m4/log2l.m4: New file.
790         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
792         REPLACE_LOG2L.
793         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
794         REPLACE_LOG2L.
795         * modules/log2l: New file.
796         * tests/test-math-c++.cc: Check the declaration of log2l.
797         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
798         and OSF/1 problems.
799
800 2012-03-11  Bruno Haible  <bruno@clisp.org>
801
802         Tests for module 'log2f'.
803         * modules/log2f-tests: New file.
804         * tests/test-log2f.c: New file.
805
806         New module 'log2f'.
807         * lib/math.in.h (log2f): New declaration.
808         * lib/log2f.c: New file.
809         * m4/log2f.m4: New file.
810         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
812         REPLACE_LOG2F.
813         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
814         REPLACE_LOG2F.
815         * modules/log2f: New file.
816         * tests/test-math-c++.cc: Check the declaration of log2f.
817         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
818         and OSF/1 and Cygwin problems.
819
820 2012-03-11  Bruno Haible  <bruno@clisp.org>
821
822         Tests for module 'log2'.
823         * modules/log2-tests: New file.
824         * tests/test-log2.c: New file.
825         * tests/test-log2.h: New file.
826
827         New module 'log2'.
828         * lib/math.in.h (log2): New declaration.
829         * lib/log2.c: New file.
830         * m4/log2.m4: New file.
831         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
833         REPLACE_LOG2.
834         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
835         REPLACE_LOG2.
836         * modules/log2: New file.
837         * tests/test-math-c++.cc: Check the declaration of log2.
838         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
839         and OSF/1 and Cygwin problems.
840
841 2012-03-11  Bruno Haible  <bruno@clisp.org>
842
843         exp2* tests: More tests.
844         * tests/test-exp2.h (test_function): Test all integral arguments that
845         don't need to overflow or denormalized numbers.
846         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
847         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
848         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
849
850 2012-03-10  Bruno Haible  <bruno@clisp.org>
851
852         log1pl-ieee: Work around test failure on AIX 7.1.
853         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
854
855         log1pl-ieee: Work around test failure on IRIX 6.5.
856         * m4/log1pl-ieee.m4: New file.
857         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
858         test whether log1pl works with a minus zero argument. Replace it if
859         not.
860         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
862         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
863         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
864         (Depends-on): Update conditions.
865         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
866         m4/signbit.m4.
867         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
868         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
869
870         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
871         * m4/log1pf-ieee.m4: New file.
872         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
873         test whether log1pf works with a minus zero argument. Replace it if
874         not.
875         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
876         m4/signbit.m4.
877         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
878         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
879
880         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
881         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
882         (configure.ac): Require gl_FUNC_LOG1PF.
883
884         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
885         * m4/log1p-ieee.m4: New file.
886         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
887         whether log1p works with a minus zero argument. Replace it if not.
888         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
890         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
891         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
892         (Depends-on): Update conditions.
893         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
894         m4/signbit.m4.
895         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
896         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
897
898         Tests for module 'log1pl-ieee'.
899         * modules/log1pl-ieee-tests: New file.
900         * tests/test-log1pl-ieee.c: New file.
901
902         New module 'log1pl-ieee'.
903         * modules/log1pl-ieee: New file.
904
905         Tests for module 'log1p-ieee'.
906         * modules/log1p-ieee-tests: New file.
907         * tests/test-log1p-ieee.c: New file.
908
909         New module 'log1p-ieee'.
910         * modules/log1p-ieee: New file.
911
912         Tests for module 'log1pf-ieee'.
913         * modules/log1pf-ieee-tests: New file.
914         * tests/test-log1pf-ieee.c: New file.
915         * tests/test-log1p-ieee.h: New file.
916
917         New module 'log1pf-ieee'.
918         * modules/log1pf-ieee: New file.
919
920 2012-03-10  Bruno Haible  <bruno@clisp.org>
921
922         Tests for module 'log1pl'.
923         * modules/log1pl-tests: New file.
924         * tests/test-log1pl.c: New file.
925
926         New module 'log1pl'.
927         * lib/math.in.h (log1pl): New declaration.
928         * lib/log1pl.c: New file.
929         * m4/log1pl.m4: New file.
930         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
932         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
933         * modules/log1pl: New file.
934         * tests/test-math-c++.cc: Check the declaration of log1pl.
935         * doc/posix-functions/log1pl.texi: Mention the new module.
936
937 2012-03-10  Bruno Haible  <bruno@clisp.org>
938
939         Tests for module 'log1pf'.
940         * modules/log1pf-tests: New file.
941         * tests/test-log1pf.c: New file.
942
943         New module 'log1pf'.
944         * lib/math.in.h (log1pf): New declaration.
945         * lib/log1pf.c: New file.
946         * m4/log1pf.m4: New file.
947         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
949         REPLACE_LOG1PF.
950         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
951         REPLACE_LOG1PF.
952         * modules/log1pf: New file.
953         * tests/test-math-c++.cc: Check the declaration of log1pf.
954         * doc/posix-functions/log1pf.texi: Mention the new module.
955
956 2012-03-10  Bruno Haible  <bruno@clisp.org>
957
958         log1p tests: More tests.
959         * tests/test-log1p.h: New file.
960         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
961         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
962         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
963         (main): Invoke test_function.
964
965         log1p: Provide replacement for Minix and MSVC.
966         * lib/math.in.h (log1p): New declaration.
967         * lib/log1p.c: New file.
968         * m4/log1p.m4: New file.
969         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
971         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
972         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
973         (Depends-on): Add math, isnand, log, round.
974         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
975         HAVE_LOG1P is 0.
976         * tests/test-math-c++.cc: Check the declaration of log1p.
977         * doc/posix-functions/log1p.texi: Mention the replacement.
978
979 2012-03-10  Bruno Haible  <bruno@clisp.org>
980
981         math tests: Small simplification.
982         * tests/test-exp.h (test_function): Use the same err_bound for
983         'double' on platforms with sizeof (long double) == sizeof (double)
984         than on platforms with sizeof (long double) > sizeof (double).
985         * tests/test-exp2.h (test_function): Likewise.
986         * tests/test-expm1.h (test_function): Likewise.
987         * tests/test-log.h (test_function): Likewise.
988
989 2012-03-10  Bruno Haible  <bruno@clisp.org>
990
991         Fix some comments.
992         * lib/expl.c: Fix an ambiguous comment.
993         * lib/expm1.c: Likewise.
994         * lib/expm1l.c: Likewise.
995         * lib/exp2.c: Likewise.
996         * lib/exp2l.c: Likewise.
997
998 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         regex: allow inclusion of <regex.h> before <limits.h>
1001         Without this patch, portable programs had to include <limits.h> before
1002         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1003         I ran into this problem with a test version of GNU grep on Solaris 8.
1004         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1005         This is done conditionally so that this change can be merged
1006         back to glibc.
1007         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1008         using the included regex.
1009
1010         fts: depend on fdopendir
1011         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1012         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1013         problem was introduced when fdopendir was split out.
1014
1015 2012-03-10  Bruno Haible  <bruno@clisp.org>
1016
1017         Remove unused variables.
1018         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1019         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1020
1021 2012-03-10  Bruno Haible  <bruno@clisp.org>
1022
1023         isnanf-nolibm: Fix last commit.
1024         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1025
1026         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1027         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1028
1029 2012-03-10  Bruno Haible  <bruno@clisp.org>
1030
1031         logf-ieee: Work around test failure on NetBSD 5.1.
1032         * m4/logf-ieee.m4: New file.
1033         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1034         whether logf works with a negative argument. Replace it if not.
1035         * lib/logf.c (logf): For negative arguments, return NaN.
1036         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1037         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1038         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1039
1040         logf-ieee: Work around test failure on Solaris 9.
1041         * modules/logf-ieee (Depends-on): Add log-ieee.
1042         (configure.ac): Require gl_FUNC_LOGF.
1043
1044         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1045         * m4/log-ieee.m4: New file.
1046         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1047         log works with a negative argument. Replace it if not.
1048         * lib/log.c (log): For negative arguments, return NaN.
1049         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1050         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1051         * doc/posix-functions/log.texi: Mention the log-ieee module.
1052
1053         Tests for module 'logl-ieee'.
1054         * modules/logl-ieee-tests: New file.
1055         * tests/test-logl-ieee.c: New file.
1056
1057         New module 'logl-ieee'.
1058         * modules/logl-ieee: New file.
1059
1060         Tests for module 'log-ieee'.
1061         * modules/log-ieee-tests: New file.
1062         * tests/test-log-ieee.c: New file.
1063
1064         New module 'log-ieee'.
1065         * modules/log-ieee: New file.
1066
1067         Tests for module 'logf-ieee'.
1068         * modules/logf-ieee-tests: New file.
1069         * tests/test-logf-ieee.c: New file.
1070         * tests/test-log-ieee.h: New file.
1071
1072         New module 'logf-ieee'.
1073         * modules/logf-ieee: New file.
1074
1075 2012-03-10  Bruno Haible  <bruno@clisp.org>
1076
1077         log: Fix bug introduced on 2012-03-09.
1078         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1079
1080 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1081
1082         timer-time: link explicitly with pthreads on glibc
1083         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1084         to support static linking, when newer glibc is
1085         detected, as that contains pthread emulation of
1086         POSIX timer functions where required.
1087         * modules/timer-time: Depend on threadlib to
1088         pull in the appropriate library to link.
1089
1090 2012-03-10  Bruno Haible  <bruno@clisp.org>
1091
1092         log* tests: More tests.
1093         * tests/test-log.h: New file.
1094         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1095         (main): Invoke test_function.
1096         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1097         (main): Invoke test_function.
1098         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1099         (main): Invoke test_function.
1100         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1101         tests/randomd.c.
1102         (Makefile.am): Add randomd.c to test_log_SOURCES.
1103         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1104         tests/randomf.c.
1105         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1106         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1107         tests/randoml.c.
1108         (Depends-on): Add 'float'.
1109         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1110
1111 2012-03-09  Bruno Haible  <bruno@clisp.org>
1112
1113         logl: Work around OSF/1 5.1 bug.
1114         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1115         * lib/logl.c (logl): If logl exists, use it and provide just the
1116         workaround.
1117         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1118         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1120         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1121         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1122         (Depends-on): Update conditions.
1123         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1124
1125 2012-03-09  Bruno Haible  <bruno@clisp.org>
1126
1127         logf: Work around OSF/1 5.1 bug.
1128         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1129         * lib/logf.c (logf): If logf exists, use it and provide just the
1130         workaround.
1131         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1132         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1134         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1135         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1136         (Depends-on): Update conditions.
1137         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1138
1139 2012-03-09  Bruno Haible  <bruno@clisp.org>
1140
1141         log: Work around OSF/1 5.1 bug.
1142         * lib/math.in.h (log): New declaration.
1143         * lib/log.c: New file.
1144         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1145         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1146         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1148         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1149         * modules/log (Files): Add lib/log.c.
1150         (Depends-on): Add math.
1151         (configure.ac): If REPLACE_LOG is 1, compile an override.
1152         * tests/test-math-c++.cc: Check the declaration of log.
1153         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1154
1155 2012-03-09  Jim Meyering  <meyering@redhat.com>
1156
1157         readtokens.c: adjust wording in a comment
1158         * lib/readtokens.c: Insert omitted "that" in a comment.
1159
1160 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1161
1162         modechange: add notations +40, 00440, etc.
1163         * lib/modechange.c (mode_compile): Support new notations
1164         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1165
1166 2012-03-08  Bruno Haible  <bruno@clisp.org>
1167
1168         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1169         * m4/exp2l-ieee.m4: New file.
1170         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1171         test whether exp2l works with a NaN argument and with a negative
1172         infinity argument. Replace it if not.
1173         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1175         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1176         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1177         (Depends-on): Update conditions.
1178         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1179         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1180         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1181
1182         Tests for module 'exp2l-ieee'.
1183         * modules/exp2l-ieee-tests: New file.
1184         * tests/test-exp2l-ieee.c: New file.
1185
1186         New module 'exp2l-ieee'.
1187         * modules/exp2l-ieee: New file.
1188
1189         Tests for module 'exp2-ieee'.
1190         * modules/exp2-ieee-tests: New file.
1191         * tests/test-exp2-ieee.c: New file.
1192
1193         New module 'exp2-ieee'.
1194         * modules/exp2-ieee: New file.
1195
1196         Tests for module 'exp2f-ieee'.
1197         * modules/exp2f-ieee-tests: New file.
1198         * tests/test-exp2f-ieee.c: New file.
1199         * tests/test-exp2-ieee.h: New file.
1200
1201         New module 'exp2f-ieee'.
1202         * modules/exp2f-ieee: New file.
1203
1204 2012-03-08  Bruno Haible  <bruno@clisp.org>
1205
1206         Tests for module 'exp2l'.
1207         * modules/exp2l-tests: New file.
1208         * tests/test-exp2l.c: New file.
1209
1210         New module 'exp2l'.
1211         * lib/math.in.h (exp2l): New declaration.
1212         * lib/exp2l.c: New file.
1213         * lib/expl-table.c: New file, extracted from lib/expl.c.
1214         * lib/expl.c (gl_expl_table): New declaration.
1215         (expl): Remove expl_table. Update reference.
1216         * m4/exp2l.m4: New file.
1217         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1219         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1220         * modules/exp2l: New file.
1221         * modules/expl (Files): Add lib/expl-table.c.
1222         (configure.ac): Compile also expl-table.c.
1223         * tests/test-math-c++.cc: Check the declaration of exp2l.
1224         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1225         problem.
1226
1227 2012-03-08  Bruno Haible  <bruno@clisp.org>
1228
1229         Tests for module 'exp2f'.
1230         * modules/exp2f-tests: New file.
1231         * tests/test-exp2f.c: New file.
1232
1233         New module 'exp2f'.
1234         * lib/math.in.h (exp2f): New declaration.
1235         * lib/exp2f.c: New file.
1236         * m4/exp2f.m4: New file.
1237         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1239         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1240         * modules/exp2f: New file.
1241         * tests/test-math-c++.cc: Check the declaration of exp2f.
1242         * doc/posix-functions/exp2f.texi: Mention the new module and the
1243         IRIX problem.
1244
1245 2012-03-08  Bruno Haible  <bruno@clisp.org>
1246
1247         Tests for module 'exp2'.
1248         * modules/exp2-tests: New file.
1249         * tests/test-exp2.c: New file.
1250         * tests/test-exp2.h: New file.
1251
1252         New module 'exp2'.
1253         * lib/math.in.h (exp2): New declaration.
1254         * lib/exp2.c: New file.
1255         * m4/exp2.m4: New file.
1256         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1258         REPLACE_EXP2.
1259         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1260         REPLACE_EXP2.
1261         * modules/exp2: New file.
1262         * tests/test-math-c++.cc: Check the declaration of exp2.
1263         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1264         and OpenBSD problems.
1265
1266 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1267
1268         savedir: fix comment typo
1269         * lib/savedir.c (savedirstream): Fix typo in comment.
1270
1271 2012-03-08  Bruno Haible  <bruno@clisp.org>
1272
1273         test-readtokens.c: use const; remove unwarranted cast
1274         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1275
1276 2012-03-08  Bruno Haible  <bruno@clisp.org>
1277
1278         fmal: Avoid compilation error on AIX.
1279         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1280         AIX 5.2..7.1.
1281
1282 2012-03-08  Bruno Haible  <bruno@clisp.org>
1283
1284         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1285         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1286         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1287         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1288         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1289         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1290         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1291
1292 2012-03-08  Bruno Haible  <bruno@clisp.org>
1293
1294         remainderf: Override buggy system function on IRIX 6.5.
1295         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1296         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1297         when it exists.
1298         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1299
1300 2012-03-08  Jim Meyering  <meyering@redhat.com>
1301
1302         test-readtokens.c: avoid const-related compilation warnings
1303         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1304
1305 2012-03-07  Jim Meyering  <meyering@redhat.com>
1306             Bruno Haible  <bruno@clisp.org>
1307
1308         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1309         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1310         tests/randomd.c.
1311         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1312         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1313         tests/randoml.c.
1314         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1315
1316 2012-03-07  Bruno Haible  <bruno@clisp.org>
1317
1318         expm1l: Avoid compilation error on AIX.
1319         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1320         AIX 5.2..7.1.
1321
1322 2012-03-07  Bruno Haible  <bruno@clisp.org>
1323
1324         expm1l: Don't override undeclared system function on IRIX 6.5.
1325         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1326         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1327         it exists. Set HAVE_DECL_EXPM1L.
1328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1329         HAVE_EXPM1L.
1330         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1331         HAVE_EXPM1L.
1332         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1333
1334 2012-03-07  Bruno Haible  <bruno@clisp.org>
1335
1336         remainderl: Don't override undeclared system function on IRIX 6.5.
1337         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1338         HAVE_REMAINDERL.
1339         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1340         declared when it exists. Set HAVE_DECL_REMAINDERL.
1341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1342         not HAVE_REMAINDERL.
1343         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1344         HAVE_REMAINDERL.
1345         * doc/posix-functions/remainderl.texi: Mention missing declaration
1346         problem.
1347
1348 2012-03-07  Bruno Haible  <bruno@clisp.org>
1349
1350         rintf: Don't override undeclared system function on IRIX 6.5.
1351         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1352         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1353         exists. Set HAVE_DECL_RINTF.
1354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1355         HAVE_RINTF.
1356         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1357         HAVE_RINTF.
1358         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1359
1360 2012-03-07  Bruno Haible  <bruno@clisp.org>
1361
1362         roundl: Avoid compilation error on AIX.
1363         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1364         AIX 5.2..7.1.
1365
1366 2012-03-07  Bruno Haible  <bruno@clisp.org>
1367
1368         roundl: Don't override undeclared system function on IRIX 6.5.
1369         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1370         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1371         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1372         * modules/roundl (configure.ac): For replacement code, test
1373         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1374         (Depends-on): Update conditions.
1375         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1376
1377 2012-03-07  Bruno Haible  <bruno@clisp.org>
1378
1379         roundf: Don't override undeclared system function on IRIX 6.5.
1380         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1381         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1382         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1383         * modules/roundf (configure.ac): For replacement code, test
1384         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1385         (Depends-on): Update conditions.
1386         * modules/roundf-ieee (Depends-on): Update conditions.
1387         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1388
1389 2012-03-07  Bruno Haible  <bruno@clisp.org>
1390
1391         round: Don't override undeclared system function on IRIX 6.5.
1392         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1393         argument.
1394         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1395         also when it is not declared. Set HAVE_ROUND. For replacement code,
1396         test HAVE_ROUND, not HAVE_DECL_ROUND.
1397         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1398         not HAVE_DECL_ROUND.
1399         (Depends-on): Update conditions.
1400         * modules/round-ieee (Depends-on): Update conditions.
1401         * doc/posix-functions/round.texi: Mention the IRIX problem.
1402
1403 2012-03-07  Bruno Haible  <bruno@clisp.org>
1404
1405         copysignf: Don't override undeclared system function on IRIX 6.5.
1406         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1407         HAVE_COPYSIGNF.
1408         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1409         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1411         not HAVE_COPYSIGNF.
1412         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1413         HAVE_COPYSIGNF.
1414         * doc/posix-functions/copysignf.texi: Mention missing declaration
1415         problem.
1416
1417 2012-03-07  Jim Meyering  <meyering@redhat.com>
1418
1419         readtokens: add tests
1420         * modules/readtokens-tests: New file.
1421         * tests/test-readtokens.c: New file.
1422
1423 2012-03-07  Jim Meyering  <meyering@redhat.com>
1424
1425         quotearg: the module must now include quote.h
1426         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1427         So must the module.
1428         * modules/quotearg (Files): Add quote.h.
1429
1430 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1431
1432         readtokens: avoid core dumps with unusual calling patterns
1433         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1434         * lib/readtokens.c: Include limits.h.
1435         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1436         (readtoken): Don't cache the delimiters; the cache code was buggy
1437         if !delim && saved_delim, or if the new n_delim differs from the old.
1438         Also, it wasn't thread-safe.
1439
1440 2012-03-07  Bruno Haible  <bruno@clisp.org>
1441
1442         quote: Adhere to common module description layout.
1443         * modules/quote (Makefile.am): Add back empty section.
1444
1445 2012-03-06  Akim Demaille  <demaille@gostai.com>
1446
1447         quote: fuse into quotearg
1448         This patch is made for the benefit of Bison.
1449         quote does not leave the choice of the quoting style to the user.
1450         quoting_style provides poor customizability, yet quoting_options,
1451         which is very rich, is hidden inside quotearg.c.  So in order to
1452         allow quote customization, move its implementation to quotearg.c.
1453         * lib/quote.c: Remove.
1454         * modules/quote: Adjust.
1455         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1456         warning: provide all the members of literal structs.
1457         (quote_quoting_options): New.
1458         (quote, quote_n): Import implementation from quote.c.
1459         * lib/quote.h: Import the comments from quote.c.
1460         (quote_quoting_options): New.
1461
1462 2012-03-06  Bruno Haible  <bruno@clisp.org>
1463
1464         Tests for module 'expm1l-ieee'.
1465         * modules/expm1l-ieee-tests: New file.
1466         * tests/test-expm1l-ieee.c: New file.
1467
1468         New module 'expm1l-ieee'.
1469         * modules/expm1l-ieee: New file.
1470
1471         Tests for module 'expm1f-ieee'.
1472         * modules/expm1f-ieee-tests: New file.
1473         * tests/test-expm1f-ieee.c: New file.
1474
1475         New module 'expm1f-ieee'.
1476         * modules/expm1f-ieee: New file.
1477
1478         Tests for module 'expm1-ieee'.
1479         * modules/expm1-ieee-tests: New file.
1480         * tests/test-expm1-ieee.c: New file.
1481         * tests/test-expm1-ieee.h: New file.
1482
1483         New module 'expm1-ieee'.
1484         * modules/expm1-ieee: New file.
1485         * m4/expm1-ieee.m4: New file.
1486         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1487         whether expm1 works with a minus zero argument. Replace it if not.
1488         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1490         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1491         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1492         (Depends-on): Update conditions.
1493         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1494         AIX problem.
1495
1496 2012-03-06  Bruno Haible  <bruno@clisp.org>
1497
1498         Work around expm1f bug on IRIX 6.5.
1499         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1500         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1501         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1502         not work.
1503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1504         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1505         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1506         (Depends-on): Update conditions.
1507         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1508
1509 2012-03-06  Bruno Haible  <bruno@clisp.org>
1510
1511         Tests for module 'expm1l'.
1512         * modules/expm1l-tests: New file.
1513         * tests/test-expm1l.c: New file.
1514
1515         New module 'expm1l'.
1516         * lib/math.in.h (expm1l): New declaration.
1517         * lib/expm1l.c: New file.
1518         * m4/expm1l.m4: New file.
1519         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1521         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1522         * modules/expm1l: New file.
1523         * tests/test-math-c++.cc: Check the declaration of expm1l.
1524         * doc/posix-functions/expm1l.texi: Mention the new module.
1525
1526 2012-03-06  Bruno Haible  <bruno@clisp.org>
1527
1528         Tests for module 'expm1f'.
1529         * modules/expm1f-tests: New file.
1530         * tests/test-expm1f.c: New file.
1531
1532         New module 'expm1f'.
1533         * lib/math.in.h (expm1f): New declaration.
1534         * lib/expm1f.c: New file.
1535         * m4/expm1f.m4: New file.
1536         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1538         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1539         * modules/expm1f: New file.
1540         * tests/test-math-c++.cc: Check the declaration of expm1f.
1541         * doc/posix-functions/expm1f.texi: Mention the new module.
1542
1543 2012-03-06  Bruno Haible  <bruno@clisp.org>
1544
1545         Tests for module 'expm1'.
1546         * modules/expm1-tests: New file.
1547         * tests/test-expm1.c: New file.
1548         * tests/test-expm1.h: New file.
1549
1550         New module 'expm1'.
1551         * lib/math.in.h (expm1): New declaration.
1552         * lib/expm1.c: New file.
1553         * m4/expm1.m4: New file.
1554         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1556         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1557         * modules/expm1: New file.
1558         * tests/test-math-c++.cc: Check the declaration of expm1.
1559         * doc/posix-functions/expm1.texi: Mention the new module.
1560
1561 2012-03-06  Bruno Haible  <bruno@clisp.org>
1562
1563         math: Ensure declarations of math functions.
1564         * modules/acosf (Depends-on): Add 'extensions'.
1565         * modules/asinf (Depends-on): Likewise.
1566         * modules/atan2f (Depends-on): Likewise.
1567         * modules/atanf (Depends-on): Likewise.
1568         * modules/cbrt (Depends-on): Likewise.
1569         * modules/cbrtf (Depends-on): Likewise.
1570         * modules/cbrtl (Depends-on): Likewise.
1571         * modules/copysignf (Depends-on): Likewise.
1572         * modules/copysignl (Depends-on): Likewise.
1573         * modules/cosf (Depends-on): Likewise.
1574         * modules/coshf (Depends-on): Likewise.
1575         * modules/expf (Depends-on): Likewise.
1576         * modules/fabsf (Depends-on): Likewise.
1577         * modules/fabsl (Depends-on): Likewise.
1578         * modules/fmaf (Depends-on): Likewise.
1579         * modules/fmal (Depends-on): Likewise.
1580         * modules/fmodf (Depends-on): Likewise.
1581         * modules/fmodl (Depends-on): Likewise.
1582         * modules/frexpf (Depends-on): Likewise.
1583         * modules/frexpl (Depends-on): Likewise.
1584         * modules/hypot (Depends-on): Likewise.
1585         * modules/hypotf (Depends-on): Likewise.
1586         * modules/hypotl (Depends-on): Likewise.
1587         * modules/ldexpf (Depends-on): Likewise.
1588         * modules/ldexpl (Depends-on): Likewise.
1589         * modules/log10f (Depends-on): Likewise.
1590         * modules/log10l (Depends-on): Likewise.
1591         * modules/log1p (Depends-on): Likewise.
1592         * modules/logb (Depends-on): Likewise.
1593         * modules/logf (Depends-on): Likewise.
1594         * modules/modff (Depends-on): Likewise.
1595         * modules/modfl (Depends-on): Likewise.
1596         * modules/powf (Depends-on): Likewise.
1597         * modules/remainderf (Depends-on): Likewise.
1598         * modules/remainderl (Depends-on): Likewise.
1599         * modules/rintf (Depends-on): Likewise.
1600         * modules/rintl (Depends-on): Likewise.
1601         * modules/sinf (Depends-on): Likewise.
1602         * modules/sinhf (Depends-on): Likewise.
1603         * modules/sqrtf (Depends-on): Likewise.
1604         * modules/tanf (Depends-on): Likewise.
1605         * modules/tanhf (Depends-on): Likewise.
1606         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1607         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1608         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1609         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1610         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1611         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1612         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1613         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1614         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1615         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1616         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1617         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1618         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1619         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1620         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1621         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1622         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1623         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1624         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1625         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1626         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1627         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1628         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1629         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1631         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1632         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1633         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1634         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1635         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1636         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1637         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1638         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1639         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1640         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1641         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1642         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1643         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1644         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1645         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1646         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1647
1648 2012-03-06  Bruno Haible  <bruno@clisp.org>
1649
1650         math: Update module names in warnings.
1651         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1652         tanl): Use specific module name in warn-on-use warning.
1653
1654 2012-03-06  Bruno Haible  <bruno@clisp.org>
1655
1656         expl: Simplify computation.
1657         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1658
1659 2012-03-05  Bruno Haible  <bruno@clisp.org>
1660
1661         exp* tests: More tests.
1662         * tests/test-exp.h: New file.
1663         * tests/test-exp.c: Include <float.h> and test-exp.h.
1664         (main): Invoke test_function.
1665         * tests/test-expf.c: Include <float.h> and test-exp.h.
1666         (main): Invoke test_function.
1667         * tests/test-expl.c: Include <float.h> and test-exp.h.
1668         (main): Invoke test_function.
1669         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1670         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1671         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1672         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1673         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1674         (Depends-on): Add 'float'.
1675         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1676
1677         expl: Fix precision of computed result.
1678         * lib/expl.c: Completely rewritten.
1679         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1680         (Maintainer): Add me.
1681         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1682
1683 2012-03-05  Bruno Haible  <bruno@clisp.org>
1684
1685         cbrt* tests: More tests.
1686         * tests/test-cbrt.h: New file.
1687         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1688         (main): Invoke test_function.
1689         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1690         (main): Invoke test_function.
1691         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1692         (main): Invoke test_function.
1693         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1694         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1695         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1696         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1697         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1698         (Depends-on): Add 'float'.
1699         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1700
1701 2012-03-05  Bruno Haible  <bruno@clisp.org>
1702
1703         hypot* tests: More tests.
1704         * tests/test-hypot.h: New file, partially extracted from
1705         tests/test-hypotl.c.
1706         * tests/test-hypot.c: Include test-hypot.h.
1707         (main): Invoke test_function.
1708         * tests/test-hypotf.c: Include test-hypot.h.
1709         (main): Invoke test_function.
1710         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1711         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1712         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1713         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1714         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1715         tests/randomf.c.
1716         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1717         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1718         tests/randoml.c.
1719         (Depends-on): Add 'fpucw', 'float'.
1720         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1721
1722 2012-03-05  Bruno Haible  <bruno@clisp.org>
1723
1724         fpucw: Doc about FreeBSD.
1725         * lib/fpucw.h: Mention FreeBSD in comments.
1726
1727 2012-03-04  Bruno Haible  <bruno@clisp.org>
1728
1729         sqrt* tests: More tests.
1730         * tests/test-sqrt.h: New file.
1731         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1732         (main): Invoke test_function.
1733         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1734         (main): Invoke test_function.
1735         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1736         (main): Invoke test_function.
1737         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1738         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1739         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1740         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1741         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1742         (Depends-on): Add 'float'.
1743         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1744
1745 2012-03-04  Bruno Haible  <bruno@clisp.org>
1746
1747         remainder* tests: More tests.
1748         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1749         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1750         (main): Invoke test_function.
1751         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1752         (main): Invoke test_function.
1753         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1754         (main): Invoke test_function.
1755         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1756         tests/randomd.c.
1757         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1758         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1759         tests/randomf.c.
1760         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1761         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1762         tests/randoml.c.
1763         (Depends-on): Add 'float'.
1764         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1765
1766 2012-03-04  Bruno Haible  <bruno@clisp.org>
1767
1768         remainder, remainderf, remainderl: Fix computation for large quotients.
1769         * lib/remainder.c: Completely rewritten.
1770         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1771         USE_FLOAT.
1772         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1773         USE_LONG_DOUBLE.
1774         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1775         isnand, isinf. Remove round, fma.
1776         * modules/remainderf (Files): Add lib/remainder.c.
1777         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1778         Remove roundf, fmaf.
1779         * modules/remainderl (Files): Add lib/remainder.c.
1780         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1781         isinf. Remove roundl, fmal.
1782         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1783         REMAINDER_LIBM.
1784         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1785         REMAINDERF_LIBM.
1786         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1787         REMAINDERL_LIBM.
1788
1789 2012-03-04  Bruno Haible  <bruno@clisp.org>
1790
1791         fmod* tests: More tests.
1792         * tests/test-fmod.h (my_ldexp): New function.
1793         (test_function): Reduce amount of random numbers to test. Add tests
1794         of very large quotients x / y.
1795         * tests/test-fmod.c (MAX_EXP): New macro.
1796         * tests/test-fmodf.c (MAX_EXP): Likewise.
1797         * tests/test-fmodl.c (MAX_EXP): Likewise.
1798
1799 2012-03-04  Bruno Haible  <bruno@clisp.org>
1800
1801         fmod, fmodl: Fix computation for large quotients x / y.
1802         * lib/fmod.c: Completely rewritten.
1803         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1804         USE_LONG_DOUBLE.
1805         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1806         isnand. Remove fma.
1807         * modules/fmodl (Files): Add lib/fmod.c.
1808         (Depends-on): Add float, isfinite, signbit, fabsl,
1809         frexpl, ldexpl, isnanl. Remove fma.
1810         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1811         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1812
1813 2012-03-03  Bruno Haible  <bruno@clisp.org>
1814
1815         fmod* tests: More tests.
1816         * tests/test-fmod.h: New file.
1817         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1818         (main): Invoke test_function.
1819         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1820         (main): Invoke test_function.
1821         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1822         (main): Invoke test_function.
1823         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1824         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1825         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1826         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1827         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1828         (Depends-on): Add 'float'.
1829         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1830
1831 2012-03-03  Bruno Haible  <bruno@clisp.org>
1832
1833         rint* tests: More tests.
1834         * tests/test-rint.h: New file, partially extracted from
1835         tests/test-rintl.c.
1836         * tests/test-rint.c: Include test-rint.h.
1837         (main): Invoke test_function.
1838         * tests/test-rintf.c: Include test-rint.h.
1839         (main): Invoke test_function.
1840         * tests/test-rintl.c: Include test-rint.h.
1841         (main): Invoke test_function.
1842         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1843         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1844         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1845         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1846         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1847         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1848
1849 2012-03-03  Bruno Haible  <bruno@clisp.org>
1850
1851         modf* tests: More tests.
1852         * tests/test-modf.h: New file.
1853         * tests/test-modf.c: Include <float.h> and test-modf.h.
1854         (main): Invoke test_function.
1855         * tests/test-modff.c: Include <float.h> and test-modf.h.
1856         (main): Invoke test_function.
1857         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1858         (main): Invoke test_function.
1859         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1860         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1861         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1862         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1863         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1864         (Depends-on): Add 'float'.
1865         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1866
1867 2012-03-03  Bruno Haible  <bruno@clisp.org>
1868
1869         fabs* tests: More tests.
1870         * tests/test-fabs.h: New file, partially extracted from
1871         tests/test-fabsl.c.
1872         * tests/test-fabs.c (RANDOM): New macro.
1873         * tests/test-fabsf.c (RANDOM): New macro.
1874         * tests/test-fabsl.c (RANDOM): New macro.
1875         * modules/fabs-tests (Files): Add tests/randomd.c.
1876         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1877         * modules/fabsf-tests (Files): Add tests/randomf.c.
1878         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1879         * modules/fabsl-tests (Files): Add tests/randoml.c.
1880         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1881
1882 2012-03-03  Bruno Haible  <bruno@clisp.org>
1883
1884         ldexp* tests: More tests.
1885         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1886         * tests/test-ldexp.c (RANDOM): New macro.
1887         * tests/test-ldexpf.c (RANDOM): New macro.
1888         * tests/test-ldexpl.c (RANDOM): New macro.
1889         * modules/ldexp-tests (Files): Add tests/randomd.c.
1890         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1891         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1892         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1893         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1894         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1895
1896 2012-03-03  Bruno Haible  <bruno@clisp.org>
1897
1898         frexp* tests: More tests.
1899         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1900         * tests/test-frexp.c (RANDOM): New macro.
1901         * tests/test-frexpf.c (RANDOM): New macro.
1902         * tests/test-frexpl.c (RANDOM): New macro.
1903         * modules/frexp-tests (Files): Add tests/randomd.c.
1904         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1905         * modules/frexpf-tests (Files): Add tests/randomf.c.
1906         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1907         * modules/frexpl-tests (Files): Add tests/randoml.c.
1908         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1909
1910 2012-03-03  Bruno Haible  <bruno@clisp.org>
1911
1912         Support for pseudo-random numbers in tests.
1913         * tests/randomf.c: New file.
1914         * tests/randomd.c: New file.
1915         * tests/randoml.c: New file.
1916         * tests/macros.h (randomf, randomd, randoml): New declarations.
1917
1918 2012-03-03  Bruno Haible  <bruno@clisp.org>
1919
1920         frexp* tests: Refactor.
1921         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1922         * tests/test-frexp.c: Include and use it.
1923         * tests/test-frexpf.c: Likewise.
1924         * tests/test-frexpl.c: Likewise.
1925         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1926         * modules/frexpf-tests (Files): Likewise.
1927         * modules/frexpl-tests (Files): Likewise.
1928
1929 2012-03-02  Jim Meyering  <meyering@redhat.com>
1930
1931         maint: don't specify XZ_OPT=-9ev in dist-related rule
1932         Using xz's -9 option is warranted only if you have a very large
1933         tarball (see xz's documentation for the sizes vs. presets), and
1934         requires 64MiB of memory at decompression time.
1935         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1936         Automake's default of just "-e" is fine.  Override on a
1937         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1938
1939 2012-03-01  Eric Blake  <eblake@redhat.com>
1940
1941         maint.mk: allow announcement for non-gnulib project
1942         * maint.mk (announcement): Skip gnulib version if not used.
1943
1944 2012-03-01  Jim Meyering  <meyering@redhat.com>
1945
1946         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1947         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1948         envvar settings cannot interfere.  Otherwise, setting envvars like
1949         prohibit=foo require=bar, etc. would cause spurious test failures.
1950
1951 2012-03-01  Eric Blake  <eblake@redhat.com>
1952
1953         maint.mk: add per-line exclusions to prohibitions
1954         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1955         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1956         (sc_const_long_option): Use it.
1957
1958 2012-03-01  Bruno Haible  <bruno@clisp.org>
1959
1960         Tests for module 'expl-ieee'.
1961         * modules/expl-ieee-tests: New file.
1962         * tests/test-expl-ieee.c: New file.
1963
1964         New module 'expl-ieee'.
1965         * modules/expl-ieee: New file.
1966
1967         Tests for module 'exp-ieee'.
1968         * modules/exp-ieee-tests: New file.
1969         * tests/test-exp-ieee.c: New file.
1970
1971         New module 'exp-ieee'.
1972         * modules/exp-ieee: New file.
1973
1974         Tests for module 'expf-ieee'.
1975         * modules/expf-ieee-tests: New file.
1976         * tests/test-expf-ieee.c: New file.
1977         * tests/test-exp-ieee.h: New file.
1978
1979         New module 'expf-ieee'.
1980         * modules/expf-ieee: New file.
1981
1982 2012-02-29  Bruno Haible  <bruno@clisp.org>
1983
1984         cbrtl-ieee: Work around test failure on IRIX 6.5.
1985         * m4/cbrtl-ieee.m4: New file.
1986         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1987         test whether cbrtl works with a minus zero argument. Replace it if not.
1988         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1990         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1991         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1992         (Depends-on): Update conditions.
1993         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1994         m4/signbit.m4.
1995         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1996         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1997         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1998
1999         Tests for module 'cbrtl-ieee'.
2000         * modules/cbrtl-ieee-tests: New file.
2001         * tests/test-cbrtl-ieee.c: New file.
2002
2003         New module 'cbrtl-ieee'.
2004         * modules/cbrtl-ieee: New file.
2005
2006         Tests for module 'cbrt-ieee'.
2007         * modules/cbrt-ieee-tests: New file.
2008         * tests/test-cbrt-ieee.c: New file.
2009
2010         New module 'cbrt-ieee'.
2011         * modules/cbrt-ieee: New file.
2012
2013         Tests for module 'cbrtf-ieee'.
2014         * modules/cbrtf-ieee-tests: New file.
2015         * tests/test-cbrtf-ieee.c: New file.
2016         * tests/test-cbrt-ieee.h: New file.
2017
2018         New module 'cbrtf-ieee'.
2019         * modules/cbrtf-ieee: New file.
2020
2021 2012-02-29  Bruno Haible  <bruno@clisp.org>
2022
2023         cbrtf: Work around bug in IRIX 6.5 system function.
2024         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2025         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2026         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2027         work.
2028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2029         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2030         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2031         (Depends-on): Update conditions.
2032         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2033
2034 2012-02-29  Bruno Haible  <bruno@clisp.org>
2035
2036         Tests for module 'cbrtl'.
2037         * modules/cbrtl-tests: New file.
2038         * tests/test-cbrtl.c: New file.
2039
2040         New module 'cbrtl'.
2041         * lib/math.in.h (cbrtl): New declaration.
2042         * lib/cbrtl.c: New file.
2043         * m4/cbrtl.m4: New file.
2044         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2046         HAVE_DECL_CBRTL.
2047         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2048         HAVE_DECL_CBRTL.
2049         * modules/cbrtl: New file.
2050         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2051         * doc/posix-functions/cbrtl.texi: Mention the new module.
2052
2053 2012-02-29  Bruno Haible  <bruno@clisp.org>
2054
2055         Tests for module 'cbrtf'.
2056         * modules/cbrtf-tests: New file.
2057         * tests/test-cbrtf.c: New file.
2058
2059         New module 'cbrtf'.
2060         * lib/math.in.h (cbrtf): New declaration.
2061         * lib/cbrtf.c: New file.
2062         * m4/cbrtf.m4: New file.
2063         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2065         HAVE_DECL_CBRTF.
2066         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2067         HAVE_DECL_CBRTF.
2068         * modules/cbrtf: New file.
2069         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2070         * doc/posix-functions/cbrtf.texi: Mention the new module.
2071
2072 2012-02-29  Bruno Haible  <bruno@clisp.org>
2073
2074         cbrt: Provide replacement on MSVC and Minix.
2075         * lib/math.in.h (cbrt): New declaration.
2076         * lib/cbrt.c: New file.
2077         * m4/cbrt.m4: New file.
2078         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2080         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2081         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2082         (Depends-on): Add dependencies.
2083         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2084         * tests/test-math-c++.cc: Check the declaration of cbrt.
2085         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2086         replacement.
2087
2088 2012-02-29  Bruno Haible  <bruno@clisp.org>
2089
2090         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2091         * m4/hypotl-ieee.m4: New file.
2092         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2093         test whether hypotl works with mixed NaN and Infinity arguments.
2094         Replace it if not.
2095         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2097         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2098         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2099         (Depends-on): Update conditions.
2100         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2101         (Depends-on): Add hypot-ieee.
2102         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2103         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2104
2105         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2106         * m4/hypotf-ieee.m4: New file.
2107         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2108         test whether hypotf works with mixed NaN and Infinity arguments.
2109         Replace it if not.
2110         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2111         (Depends-on): Add hypot-ieee.
2112         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2113         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2114
2115         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2116         * lib/math.in.h (hypot): New declaration.
2117         * lib/hypot.c: New file.
2118         * m4/hypot-ieee.m4: New file.
2119         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2120         whether hypot works with mixed NaN and Infinity arguments. Replace it
2121         if not.
2122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2123         REPLACE_HYPOT.
2124         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2125         * modules/hypot (Files): Add lib/hypot.c.
2126         (Depends-on): Add dependencies.
2127         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2128         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2129         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2130         * tests/test-math-c++.cc: Check the declaration of hypot.
2131         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2132
2133         Tests for module 'hypotl-ieee'.
2134         * modules/hypotl-ieee-tests: New file.
2135         * tests/test-hypotl-ieee.c: New file.
2136
2137         New module 'hypotl-ieee'.
2138         * modules/hypotl-ieee: New file.
2139
2140         Tests for module 'hypot-ieee'.
2141         * modules/hypot-ieee-tests: New file.
2142         * tests/test-hypot-ieee.c: New file.
2143
2144         New module 'hypot-ieee'.
2145         * modules/hypot-ieee: New file.
2146
2147         Tests for module 'hypotf-ieee'.
2148         * modules/hypotf-ieee-tests: New file.
2149         * tests/test-hypotf-ieee.c: New file.
2150         * tests/test-hypot-ieee.h: New file.
2151
2152         New module 'hypotf-ieee'.
2153         * modules/hypotf-ieee: New file.
2154
2155 2012-02-29  Bruno Haible  <bruno@clisp.org>
2156
2157         Remove unused variables.
2158         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2159         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2160         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2161         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2162
2163 2012-02-29  Eric Blake  <eblake@redhat.com>
2164
2165         termios: fix pid_t always, not just for tcgetsid
2166         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2167         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2168         just when building tcgetsid.
2169
2170 2012-02-29  Bruno Haible  <bruno@clisp.org>
2171
2172         Tests for module 'hypotl'.
2173         * modules/hypotl-tests: New file.
2174         * tests/test-hypotl.c: New file.
2175
2176         New module 'hypotl'.
2177         * lib/math.in.h (hypotl): New declaration.
2178         * lib/hypotl.c: New file.
2179         * m4/hypotl.m4: New file.
2180         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2182         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2183         * modules/hypotl: New file.
2184         * tests/test-math-c++.cc: Check the hypotl declaration.
2185         * doc/posix-functions/hypotl.texi: Mention the new module.
2186
2187 2012-02-29  Eric Blake  <eblake@redhat.com>
2188
2189         tcgetsid: fix cygwin header bug
2190         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2191
2192         docs: update cygwin progress
2193         * doc/posix-functions/llround.texi (llround): Added in cygwin
2194         1.7.8.
2195         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2196         * doc/glibc-functions/program_invocation_name.texi
2197         (program_invocation_name): Likewise.
2198         * doc/glibc-functions/program_invocation_short_name.texi
2199         (program_invocation_short_name): Likewise.
2200         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2201         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2202         Likewise.
2203         * doc/posix-functions/pthread_spin_destroy.texi
2204         (pthread_spin_destroy): Added in cygwin 1.7.10.
2205         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2206         Likewise.
2207         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2208         Likewise.
2209         * doc/posix-functions/pthread_spin_trylock.texi
2210         (pthread_spin_trylock): Likewise.
2211         * doc/posix-functions/pthread_spin_unlock.texi
2212         (pthread_spin_unlock): Likewise.
2213         * doc/posix-functions/pthread_setschedprio.texi
2214         (pthread_setschedprio): Likewise.
2215         * doc/posix-functions/pthread_attr_getstack.texi
2216         (pthread_attr_getstack): Likewise.
2217         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2218         (pthread_attr_getstackaddr): Likewise.
2219         * doc/glibc-functions/pthread_getattr_np.texi
2220         (pthread_getattr_np): Likewise.
2221         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2222         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2223         * doc/posix-functions/clock_settime.texi (clock_settime):
2224         Likewise.
2225         * doc/posix-functions/pthread_attr_getguardsize.texi
2226         (pthread_attr_getguardsize): Likewise.
2227         * doc/posix-functions/pthread_attr_setguardsize.texi
2228         (pthread_attr_setguardsize): Likewise.
2229         * doc/posix-functions/pthread_attr_setstack.texi
2230         (pthread_attr_setstack): Likewise.
2231         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2232         (pthread_attr_setstackaddr): Likewise.
2233         * doc/posix-functions/clock_getcpuclockid.texi
2234         (clock_getcpuclockid): Likewise.
2235         * doc/posix-functions/pthread_getcpuclockid.texi
2236         (pthread_getcpuclockid): Likewise.
2237         * doc/glibc-functions/error.texi (error): Likewise.
2238         * doc/glibc-functions/error_at_line.texi (error_at_line):
2239         Likewise.
2240         * doc/glibc-functions/error_message_count.texi
2241         (error_message_count): Likewise.
2242         * doc/glibc-functions/error_one_per_line.texi
2243         (error_one_per_line): Likewise.
2244         * doc/glibc-functions/error_print_progname.texi
2245         (error_print_progname): Likewise.
2246         * doc/posix-functions/pthread_condattr_getclock.texi
2247         (pthread_condattr_getclock): Likewise.
2248         * doc/posix-functions/pthread_condattr_setclock.texi
2249         (pthread_condattr_setclock): Likewise.
2250         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2251         Likewise.
2252         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2253         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2254         * doc/glibc-functions/get_current_dir_name.texi
2255         (get_current_dir_name): Likewise.
2256         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2257         Likewise.
2258         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2259         wrong return type.
2260         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2261         1.7.11.
2262
2263 2012-02-29  Bruno Haible  <bruno@clisp.org>
2264
2265         Tests for module 'hypotf'.
2266         * modules/hypotf-tests: New file.
2267         * tests/test-hypotf.c: New file.
2268
2269         New module 'hypotf'.
2270         * lib/math.in.h (hypotf): New declaration.
2271         * lib/hypotf.c: New file.
2272         * m4/hypotf.m4: New file.
2273         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2275         REPLACE_HYPOTF.
2276         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2277         REPLACE_HYPOTF.
2278         * modules/hypotf: New file.
2279         * tests/test-math-c++.cc: Check the hypotf declaration.
2280         * doc/posix-functions/hypotf.texi: Mention the new module.
2281
2282         hypot: Prepare for hypotf module.
2283         * m4/hypot.m4: New file.
2284         * modules/hypot (Files): Add m4/hypot.m4.
2285         (configure.ac): Invoke gl_FUNC_HYPOT.
2286
2287 2012-02-29  Bruno Haible  <bruno@clisp.org>
2288
2289         hypot tests: More tests.
2290         * tests/test-hypot.c: Include <float.h>.
2291         (main): Add tests about overflow and underflow.
2292
2293 2012-02-29  Bruno Haible  <bruno@clisp.org>
2294
2295         math code: Add comments.
2296         * lib/acosl.c: Add comment about related glibc source files.
2297         * lib/asinl.c: Likewise.
2298         * lib/atanl.c: Likewise.
2299         * lib/expl.c: Likewise.
2300         * lib/logl.c: Likewise.
2301         * lib/sincosl.c: Likewise.
2302         * lib/sinl.c: Likewise.
2303         * lib/tanl.c: Likewise.
2304         * lib/trigl.c: Likewise.
2305         * lib/cosl.c: Likewise. Fix comments.
2306
2307 2012-02-28  Bruno Haible  <bruno@clisp.org>
2308
2309         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2310         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2311         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2312         HUGE_VALL are defined.
2313         (numeric_equald): Renamed from numeric_equal.
2314         (numeric_equalf, numeric_equall): New functions.
2315         (main): Check also HUGE_VALF, HUGE_VALL.
2316         * modules/math-tests (Files): Add tests/macros.h.
2317         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2318         HUGE_VALL.
2319
2320 2012-02-28  Bruno Haible  <bruno@clisp.org>
2321
2322         doc: Move ISO C11 feature notes into POSIX chapters.
2323         * doc/posix-functions/aligned_alloc.texi: Renamed from
2324         doc/glibc-functions/aligned_alloc.texi.
2325         * doc/posix-functions/quick_exit.texi: Renamed from
2326         doc/glibc-functions/quick_exit.texi.
2327         * doc/posix-headers/uchar.texi: Renamed from
2328         doc/glibc-headers/uchar.texi.
2329         * doc/posix-functions/c16rtomb.texi: Renamed from
2330         doc/glibc-functions/c16rtomb.texi.
2331         * doc/posix-functions/c32rtomb.texi: Renamed from
2332         doc/glibc-functions/c32rtomb.texi.
2333         * doc/posix-functions/mbrtoc16.texi: Renamed from
2334         doc/glibc-functions/mbrtoc16.texi.
2335         * doc/posix-functions/mbrtoc32.texi: Renamed from
2336         doc/glibc-functions/mbrtoc32.texi.
2337         * doc/gnulib.texi: Update.
2338         (Glibc uchar.h): Remove section.
2339         Suggested by Eric Blake.
2340
2341 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         stdnoreturn: port to MSVC better
2344         MSVC standard headers use __declspec(noreturn), so #define noreturn
2345         to empty on that platform.  Reported by Bruno Haible in
2346         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2347         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2348         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2349
2350 2012-02-28  Bruno Haible  <bruno@clisp.org>
2351
2352         doc: Mention new glibc headers and functions.
2353         * doc/glibc-headers/uchar.texi: New file.
2354         * doc/glibc-functions/aligned_alloc.texi: New file.
2355         * doc/glibc-functions/c16rtomb.texi: New file.
2356         * doc/glibc-functions/c32rtomb.texi: New file.
2357         * doc/glibc-functions/clock_adjtime.texi: New file.
2358         * doc/glibc-functions/fanotify_init.texi: New file.
2359         * doc/glibc-functions/fanotify_mark.texi: New file.
2360         * doc/glibc-functions/inet6_opt_append.texi: New file.
2361         * doc/glibc-functions/inet6_opt_find.texi: New file.
2362         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2363         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2364         * doc/glibc-functions/inet6_opt_init.texi: New file.
2365         * doc/glibc-functions/inet6_opt_next.texi: New file.
2366         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2367         * doc/glibc-functions/inet6_rth_add.texi: New file.
2368         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2369         * doc/glibc-functions/inet6_rth_init.texi: New file.
2370         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2371         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2372         * doc/glibc-functions/inet6_rth_space.texi: New file.
2373         * doc/glibc-functions/login.texi: New file.
2374         * doc/glibc-functions/mbrtoc16.texi: New file.
2375         * doc/glibc-functions/mbrtoc32.texi: New file.
2376         * doc/glibc-functions/name_to_handle_at.texi: New file.
2377         * doc/glibc-functions/ntp_gettimex.texi: New file.
2378         * doc/glibc-functions/open_by_handle_at.texi: New file.
2379         * doc/glibc-functions/prlimit.texi: New file.
2380         * doc/glibc-functions/process_vm_readv.texi: New file.
2381         * doc/glibc-functions/process_vm_writev.texi: New file.
2382         * doc/glibc-functions/recvmmsg.texi: New file.
2383         * doc/glibc-functions/scandirat.texi: New file.
2384         * doc/glibc-functions/sendmmsg.texi: New file.
2385         * doc/glibc-functions/setns.texi: New file.
2386         * doc/glibc-functions/timespec_get.texi: New file.
2387         * doc/gnulib.texi: Include them.
2388         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2389         sections.
2390         Reported by Eric Blake.
2391
2392 2012-02-28  Bruno Haible  <bruno@clisp.org>
2393
2394         Avoid compilation errors with MSVC option -fp:strict.
2395         * lib/floor.c: Use MSVC specific pragma fenv_access.
2396         * lib/ceil.c: Likewise.
2397         * lib/trunc.c: Likewise.
2398         * lib/round.c: Likewise.
2399         * lib/rint.c: Likewise.
2400         * lib/fma.c: Likewise.
2401         * lib/integer_length.c: Likewise.
2402         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2404         * tests/test-floor2.c: Likewise.
2405         * tests/test-floorf2.c: Likewise.
2406         * tests/test-ceil2.c: Likewise.
2407         * tests/test-ceilf2.c: Likewise.
2408         * tests/test-trunc2.c: Likewise.
2409         * tests/test-truncf2.c: Likewise.
2410         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2411
2412 2012-02-27  Bruno Haible  <bruno@clisp.org>
2413
2414         Tests for module 'sqrtl-ieee'.
2415         * modules/sqrtl-ieee-tests: New file.
2416         * tests/test-sqrtl-ieee.c: New file.
2417
2418         New module 'sqrtl-ieee'.
2419         * modules/sqrtl-ieee: New file.
2420
2421         Tests for module 'sqrt-ieee'.
2422         * modules/sqrt-ieee-tests: New file.
2423         * tests/test-sqrt-ieee.c: New file.
2424
2425         New module 'sqrt-ieee'.
2426         * modules/sqrt-ieee: New file.
2427
2428         Tests for module 'sqrtf-ieee'.
2429         * modules/sqrtf-ieee-tests: New file.
2430         * tests/test-sqrtf-ieee.c: New file.
2431         * tests/test-sqrt-ieee.h: New file.
2432
2433         New module 'sqrtf-ieee'.
2434         * modules/sqrtf-ieee: New file.
2435
2436 2012-02-27  Bruno Haible  <bruno@clisp.org>
2437
2438         remainderl-ieee: Work around test failure on OSF/1.
2439         * m4/remainderl-ieee.m4: New file.
2440         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2441         present, test whether remainderl works with a zero second argument.
2442         Replace it if not.
2443         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2445         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2446         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2447         (Depends-on): Update conditions.
2448         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2449         (Depends-on): Add remainder-ieee.
2450         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2451         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2452         module.
2453
2454         remainderf-ieee: Work around test failure on OSF/1.
2455         * m4/remainderf-ieee.m4: New file.
2456         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2457         present, test whether remainderf works with a zero second argument.
2458         Replace it if not.
2459         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2461         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2462         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2463         (Depends-on): Update conditions.
2464         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2465         (Depends-on): Add remainder-ieee.
2466         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2467         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2468         module.
2469
2470         remainder-ieee: Work around test failure on OSF/1.
2471         * m4/remainder-ieee.m4: New file.
2472         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2473         present, test whether remainder works with a zero second argument.
2474         Replace it if not.
2475         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2477         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2478         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2479         (Depends-on): Update dependencies.
2480         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2481         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2482         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2483
2484         Tests for module 'remainderl-ieee'.
2485         * modules/remainderl-ieee-tests: New file.
2486         * tests/test-remainderl-ieee.c: New file.
2487
2488         New module 'remainderl-ieee'.
2489         * modules/remainderl-ieee: New file.
2490
2491         Tests for module 'remainder-ieee'.
2492         * modules/remainder-ieee-tests: New file.
2493         * tests/test-remainder-ieee.c: New file.
2494
2495         New module 'remainder-ieee'.
2496         * modules/remainder-ieee: New file.
2497
2498         Tests for module 'remainderf-ieee'.
2499         * modules/remainderf-ieee-tests: New file.
2500         * tests/test-remainderf-ieee.c: New file.
2501         * tests/test-remainder-ieee.h: New file.
2502
2503         New module 'remainderf-ieee'.
2504         * modules/remainderf-ieee: New file.
2505
2506 2012-02-27  Bruno Haible  <bruno@clisp.org>
2507
2508         modff, modfl: Fix configure syntax error.
2509         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2510         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2511
2512 2012-02-27  Bruno Haible  <bruno@clisp.org>
2513
2514         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2515         * m4/fmodl-ieee.m4: New file.
2516         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2517         whether fmodl works with zero arguments. Replace it if not.
2518         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2519         (Depends-on): Add fmod-ieee.
2520         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2521         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2522
2523         fmodf-ieee: Work around test failure on OSF/1.
2524         * m4/fmodf-ieee.m4: New file.
2525         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2526         whether fmodf works with zero arguments. Replace it if not.
2527         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2529         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2530         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2531         (Depends-on): Update dependencies.
2532         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2533         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2534         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2535
2536         fmodf-ieee: Work around test failure on MSVC 9.
2537         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2538         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2539
2540         fmod-ieee: Work around test failures on OSF/1, mingw.
2541         * m4/fmod-ieee.m4: New file.
2542         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2543         whether fmod works with zero arguments. Replace it if not.
2544         * lib/math.in.h (fmod): New declaration.
2545         * lib/fmod.c: New file.
2546         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2548         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2549         * modules/fmod (Files): Add lib/fmod.c.
2550         (Depends-on): Add math, isinf, trunc, fma.
2551         (configure.ac): Arrange to compile lib/fmod.c if needed.
2552         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2553         m4/signbit.m4.
2554         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2555         * tests/test-math-c++.cc: Check the declaration of fmod.
2556         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2557
2558         fmodl-ieee: Fix test failures.
2559         * lib/fmodl.c (fmodl): Treat Inf specially.
2560         * modules/fmodl (Depends-on): Add isinf.
2561
2562         Tests for module 'fmodl-ieee'.
2563         * modules/fmodl-ieee-tests: New file.
2564         * tests/test-fmodl-ieee.c: New file.
2565
2566         New module 'fmodl-ieee'.
2567         * modules/fmodl-ieee: New file.
2568
2569         Tests for module 'fmod-ieee'.
2570         * modules/fmod-ieee-tests: New file.
2571         * tests/test-fmod-ieee.c: New file.
2572
2573         New module 'fmod-ieee'.
2574         * modules/fmod-ieee: New file.
2575
2576         Tests for module 'fmodf-ieee'.
2577         * modules/fmodf-ieee-tests: New file.
2578         * tests/test-fmodf-ieee.c: New file.
2579         * tests/test-fmod-ieee.h: New file.
2580
2581         New module 'fmodf-ieee'.
2582         * modules/fmodf-ieee: New file.
2583
2584 2012-02-27  Bruno Haible  <bruno@clisp.org>
2585
2586         Tests for module 'rintl-ieee'.
2587         * modules/rintl-ieee-tests: New file.
2588         * tests/test-rintl-ieee.c: New file.
2589
2590         New module 'rintl-ieee'.
2591         * modules/rintl-ieee: New file.
2592
2593         Tests for module 'rint-ieee'.
2594         * modules/rint-ieee-tests: New file.
2595         * tests/test-rint-ieee.c: New file.
2596
2597         New module 'rint-ieee'.
2598         * modules/rint-ieee: New file.
2599
2600         Tests for module 'rintf-ieee'.
2601         * modules/rintf-ieee-tests: New file.
2602         * tests/test-rintf-ieee.c: New file.
2603         * tests/test-rint-ieee.h: New file.
2604
2605         New module 'rintf-ieee'.
2606         * modules/rintf-ieee: New file.
2607
2608 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2609
2610         regex: re_search etc. should return -2 when memory exhausted
2611         This bug was uncovered when testing 'grep'.  Without the fix,
2612         re_search and friends return -1 when memory is exhausted, but -1
2613         means no match, and this causes grep to falsely report no-match
2614         instead of memory-exhaustion.  See
2615         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2616         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2617         trouble; this can occur if re_search_internal ran out of memory.
2618
2619 2012-02-26  Bruno Haible  <bruno@clisp.org>
2620
2621         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2622         * m4/modfl-ieee.m4: New file.
2623         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2624         whether modfl works with Inf. Replace it if not.
2625         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2627         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2628         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2629         (Depends-on): Update dependencies.
2630         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2631         m4/signbit.m4.
2632         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2633         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2634
2635         modfl-ieee: Fix dependencies.
2636         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2637
2638         modfl-ieee: Fix test failures.
2639         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2640         * modules/modfl (Depends-on): Add isfinite, isinf.
2641
2642         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2643         * m4/modff-ieee.m4: New file.
2644         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2645         whether modff works with NaN and Inf. Replace it if not.
2646         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2648         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2649         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2650         (Depends-on): Update dependencies.
2651         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2652         m4/signbit.m4.
2653         (Depends-on): Add modf-ieee.
2654         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2655         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2656
2657         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2658         * m4/modf-ieee.m4: New file.
2659         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2660         whether modf works with NaN and Inf. Replace it if not.
2661         * lib/math.in.h (modf): New declaration.
2662         * lib/modf.c: New file.
2663         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2665         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2666         * modules/modf (Files): Add lib/modf.c.
2667         (Depends-on): Add math, isfinite, trunc, isinf.
2668         (configure.ac): Addrange to compile lib/modf.c if needed.
2669         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2670         m4/signbit.m4.
2671         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2672         * tests/test-math-c++.cc: Check the declaration of modf.
2673         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2674
2675         Tests for module 'modfl-ieee'.
2676         * modules/modfl-ieee-tests: New file.
2677         * tests/test-modfl-ieee.c: New file.
2678
2679         New module 'modfl-ieee'.
2680         * modules/modfl-ieee: New file.
2681
2682         Tests for module 'modf-ieee'.
2683         * modules/modf-ieee-tests: New file.
2684         * tests/test-modf-ieee.c: New file.
2685
2686         New module 'modf-ieee'.
2687         * modules/modf-ieee: New file.
2688
2689         Tests for module 'modff-ieee'.
2690         * modules/modff-ieee-tests: New file.
2691         * tests/test-modff-ieee.c: New file.
2692         * tests/test-modf-ieee.h: New file.
2693
2694         New module 'modff-ieee'.
2695         * modules/modff-ieee: New file.
2696
2697 2012-02-26  Bruno Haible  <bruno@clisp.org>
2698
2699         Tests for module 'fabsl-ieee'.
2700         * modules/fabsl-ieee-tests: New file.
2701         * tests/test-fabsl-ieee.c: New file.
2702
2703         New module 'fabsl-ieee'.
2704         * modules/fabsl-ieee: New file.
2705
2706         Tests for module 'fabs-ieee'.
2707         * modules/fabs-ieee-tests: New file.
2708         * tests/test-fabs-ieee.c: New file.
2709
2710         New module 'fabs-ieee'.
2711         * modules/fabs-ieee: New file.
2712
2713         Tests for module 'fabsf-ieee'.
2714         * modules/fabsf-ieee-tests: New file.
2715         * tests/test-fabsf-ieee.c: New file.
2716         * tests/test-fabs-ieee.h: New file.
2717
2718         New module 'fabsf-ieee'.
2719         * modules/fabsf-ieee: New file.
2720
2721 2012-02-26  Bruno Haible  <bruno@clisp.org>
2722
2723         Tests for module 'fmal-ieee'.
2724         * modules/fmal-ieee-tests: New file.
2725         * tests/test-fmal-ieee.c: New file.
2726
2727         New module 'fmal-ieee'.
2728         * modules/fmal-ieee: New file.
2729
2730         Tests for module 'fma-ieee'.
2731         * modules/fma-ieee-tests: New file.
2732         * tests/test-fma-ieee.c: New file.
2733
2734         New module 'fma-ieee'.
2735         * modules/fma-ieee: New file.
2736
2737         Tests for module 'fmaf-ieee'.
2738         * modules/fmaf-ieee-tests: New file.
2739         * tests/test-fmaf-ieee.c: New file.
2740         * tests/test-fma-ieee.h: New file.
2741
2742         New module 'fmaf-ieee'.
2743         * modules/fmaf-ieee: New file.
2744
2745 2012-02-26  Bruno Haible  <bruno@clisp.org>
2746
2747         Tests for module 'ldexpl-ieee'.
2748         * modules/ldexpl-ieee-tests: New file.
2749         * tests/test-ldexpl-ieee.c: New file.
2750
2751         New module 'ldexpl-ieee'.
2752         * modules/ldexpl-ieee: New file.
2753
2754         Tests for module 'ldexp-ieee'.
2755         * modules/ldexp-ieee-tests: New file.
2756         * tests/test-ldexp-ieee.c: New file.
2757
2758         New module 'ldexp-ieee'.
2759         * modules/ldexp-ieee: New file.
2760
2761         Tests for module 'ldexpf-ieee'.
2762         * modules/ldexpf-ieee-tests: New file.
2763         * tests/test-ldexpf-ieee.c: New file.
2764         * tests/test-ldexp-ieee.h: New file.
2765
2766         New module 'ldexpf-ieee'.
2767         * modules/ldexpf-ieee: New file.
2768
2769 2012-02-26  Bruno Haible  <bruno@clisp.org>
2770
2771         Refactor frexp*-ieee tests.
2772         * tests/test-frexp-ieee.h: New file.
2773         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2774         (main): Just call test_function.
2775         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2776         (main): Just call test_function.
2777         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2778         (main): Just call test_function.
2779         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2780         * modules/frexp-ieee-tests (Files): Likewise.
2781         * modules/frexpl-ieee-tests (Files): Likewise.
2782
2783         Tests for module 'frexpl-ieee'.
2784         * modules/frexpl-ieee-tests: New file.
2785         * tests/test-frexpl-ieee.c: New file.
2786
2787         New module 'frexpl-ieee'.
2788         * modules/frexpl-ieee: New file.
2789
2790         Tests for module 'frexp-ieee'.
2791         * modules/frexp-ieee-tests: New file.
2792         * tests/test-frexp-ieee.c: New file.
2793
2794         New module 'frexp-ieee'.
2795         * modules/frexp-ieee: New file.
2796
2797         Tests for module 'frexpf-ieee'.
2798         * modules/frexpf-ieee-tests: New file.
2799         * tests/test-frexpf-ieee.c: New file.
2800
2801         New module 'frexpf-ieee'.
2802         * modules/frexpf-ieee: New file.
2803
2804 2012-02-26  Bruno Haible  <bruno@clisp.org>
2805
2806         roundl-ieee tests: More tests.
2807         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2808         (main): Add tests for [MX] shaded specification in POSIX.
2809         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2810         (Depends-on): Add isnanl-nolibm.
2811
2812         round-ieee tests: More tests.
2813         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2814         (main): Add tests for [MX] shaded specification in POSIX.
2815         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2816         (Depends-on): Add isnand-nolibm.
2817
2818         roundf-ieee tests: More tests.
2819         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2820         (main): Add tests for [MX] shaded specification in POSIX.
2821         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2822         (Depends-on): Add isnanf-nolibm.
2823
2824         truncl-ieee tests: More tests.
2825         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2826         (main): Add tests for [MX] shaded specification in POSIX.
2827         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2828         (Depends-on): Add isnanl-nolibm.
2829
2830         trunc-ieee tests: More tests.
2831         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2832         (main): Add tests for [MX] shaded specification in POSIX.
2833         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2834         (Depends-on): Add isnand-nolibm.
2835
2836         truncf-ieee tests: More tests.
2837         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2838         (main): Add tests for [MX] shaded specification in POSIX.
2839         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2840         (Depends-on): Add isnanf-nolibm.
2841
2842         ceill-ieee tests: More tests.
2843         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2844         (main): Add tests for [MX] shaded specification in POSIX.
2845         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2846         (Depends-on): Add isnanl-nolibm.
2847
2848         ceil-ieee tests: More tests.
2849         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2850         (main): Add tests for [MX] shaded specification in POSIX.
2851         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2852         (Depends-on): Add isnand-nolibm.
2853
2854         ceilf-ieee tests: More tests.
2855         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2856         (main): Add tests for [MX] shaded specification in POSIX.
2857         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2858         (Depends-on): Add isnanf-nolibm.
2859
2860         floorl-ieee tests: More tests.
2861         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2862         (main): Add tests for [MX] shaded specification in POSIX.
2863         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2864         (Depends-on): Add isnanl-nolibm.
2865
2866         floor-ieee tests: More tests.
2867         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2868         (main): Add tests for [MX] shaded specification in POSIX.
2869         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2870         (Depends-on): Add isnand-nolibm.
2871
2872         floorf-ieee tests: More tests.
2873         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2874         (main): Add tests for [MX] shaded specification in POSIX.
2875         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2876         (Depends-on): Add isnanf-nolibm.
2877
2878 2012-02-26  Bruno Haible  <bruno@clisp.org>
2879
2880         fpieee: More comments.
2881         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2882
2883 2012-02-25  Bruno Haible  <bruno@clisp.org>
2884
2885         Tests for module 'log10l'.
2886         * modules/log10l-tests: New file.
2887         * tests/test-log10l.c: New file.
2888         * tests/test-math-c++.cc: Check the declaration of log10l.
2889
2890         New module 'log10l'.
2891         * lib/math.in.h (log10l): New declaration.
2892         * lib/log10l.c: New file.
2893         * m4/log10l.m4: New file.
2894         * modules/log10l: New file.
2895         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2897         HAVE_DECL_LOG10L.
2898         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2899         HAVE_DECL_LOG10L.
2900         * doc/posix-functions/log10l.texi: Mention the new module.
2901
2902 2012-02-25  Bruno Haible  <bruno@clisp.org>
2903
2904         fmodl, remainder*: Avoid wrong results due to rounding errors.
2905         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2906         expected bounds.
2907         * lib/remainderf.c (remainderf): Likewise.
2908         * lib/remainder.c (remainder): Likewise.
2909         * lib/remainderl.c (remainderl): Likewise.
2910
2911 2012-02-25  Bruno Haible  <bruno@clisp.org>
2912
2913         Tests for module 'remainderl'.
2914         * modules/remainderl-tests: New file.
2915         * tests/test-remainderl.c: New file.
2916         * tests/test-math-c++.cc: Check the declaration of remainderl.
2917
2918         New module 'remainderl'.
2919         * lib/math.in.h (remainderl): New declaration.
2920         * lib/remainderl.c: New file.
2921         * m4/remainderl.m4: New file.
2922         * modules/remainderl: New file.
2923         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2925         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2926         HAVE_REMAINDERL.
2927         * doc/posix-functions/remainderl.texi: Mention the new module.
2928
2929 2012-02-25  Bruno Haible  <bruno@clisp.org>
2930
2931         Tests for module 'remainderf'.
2932         * modules/remainderf-tests: New file.
2933         * tests/test-remainderf.c: New file.
2934         * tests/test-math-c++.cc: Check the declaration of remainderf.
2935
2936         New module 'remainderf'.
2937         * lib/math.in.h (remainderf): New declaration.
2938         * lib/remainderf.c: New file.
2939         * m4/remainderf.m4: New file.
2940         * modules/remainderf: New file.
2941         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2943         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2944         HAVE_REMAINDERF.
2945         * doc/posix-functions/remainderf.texi: Mention the new module.
2946
2947 2012-02-25  Bruno Haible  <bruno@clisp.org>
2948
2949         remainder: Support for MSVC.
2950         * lib/math.in.h (remainder): New declaration.
2951         * lib/remainder.c: New file.
2952         * m4/remainder.m4: New file.
2953         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2954         (Depends-on): Add math, round, fma.
2955         (configure.ac): Use results of gl_FUNC_REMAINDER.
2956         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2958         HAVE_DECL_REMAINDER.
2959         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2960         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2961         * tests/test-math-c++.cc: Check the declaration of remainder.
2962         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2963         problems are fixed.
2964
2965 2012-02-25  Bruno Haible  <bruno@clisp.org>
2966
2967         Tests for module 'fmodl'.
2968         * modules/fmodl-tests: New file.
2969         * tests/test-fmodl.c: New file.
2970         * tests/test-math-c++.cc: Check the declaration of fmodl.
2971
2972         New module 'fmodl'.
2973         * lib/math.in.h (fmodl): New declaration.
2974         * lib/fmodl.c: New file.
2975         * m4/fmodl.m4: New file.
2976         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2978         REPLACE_FMODL.
2979         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2980         REPLACE_FMODL.
2981         * modules/fmodl: New file.
2982         * doc/posix-functions/fmodl.texi: Mention the new module.
2983
2984 2012-02-25  Bruno Haible  <bruno@clisp.org>
2985
2986         Tests for module 'modfl'.
2987         * modules/modfl-tests: New file.
2988         * tests/test-modfl.c: New file.
2989         * tests/test-math-c++.cc: Check the declaration of modfl.
2990
2991         New module 'modfl'.
2992         * lib/math.in.h (modfl): New declaration.
2993         * lib/modfl.c: New file.
2994         * m4/modfl.m4: New file.
2995         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2997         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2998         * modules/modfl: New file.
2999         * doc/posix-functions/modfl.texi: Mention the new module.
3000
3001 2012-02-25  Bruno Haible  <bruno@clisp.org>
3002
3003         Tests for module 'fabsl'.
3004         * modules/fabsl-tests: New file.
3005         * tests/test-fabsl.c: New file.
3006         * tests/test-math-c++.cc: Check the declaration of fabsl.
3007
3008         New module 'fabsl'.
3009         * lib/math.in.h (fabsl): New declaration.
3010         * lib/fabsl.c: New file.
3011         * m4/fabsl.m4: New file.
3012         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3014         REPLACE_FABSL.
3015         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3016         REPLACE_FABSL.
3017         * modules/fabsl: New file.
3018         * doc/posix-functions/fabsl.texi: Mention the new module.
3019
3020 2012-02-25  Bruno Haible  <bruno@clisp.org>
3021
3022         fabs tests: More tests.
3023         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3024         (zero): New variable.
3025         (main): Add tests for signed zero.
3026         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3027
3028         fabsf tests: More tests.
3029         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3030         (zero): New variable.
3031         (main): Add tests for signed zero.
3032         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3033
3034 2012-02-24  Bruno Haible  <bruno@clisp.org>
3035
3036         atanl: Provide function definition on MSVC.
3037         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3038         function pointer.
3039         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3040
3041 2012-02-24  Bruno Haible  <bruno@clisp.org>
3042
3043         acosl: Provide function definition on MSVC.
3044         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3045         function pointer.
3046         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3047
3048 2012-02-24  Bruno Haible  <bruno@clisp.org>
3049
3050         asinl: Provide function definition on MSVC.
3051         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3052         function pointer.
3053         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3054
3055 2012-02-24  Bruno Haible  <bruno@clisp.org>
3056
3057         tanl: Provide function definition on MSVC.
3058         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3059         function pointer.
3060         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3061
3062 2012-02-24  Bruno Haible  <bruno@clisp.org>
3063
3064         cosl: Provide function definition on MSVC.
3065         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3066         function pointer.
3067         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3068
3069 2012-02-24  Bruno Haible  <bruno@clisp.org>
3070
3071         sinl: Provide function definition on MSVC.
3072         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3073         function pointer.
3074         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3075
3076 2012-02-24  Bruno Haible  <bruno@clisp.org>
3077
3078         logl: Provide function definition on MSVC.
3079         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3080         function pointer.
3081         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3082
3083 2012-02-24  Bruno Haible  <bruno@clisp.org>
3084
3085         expl: Provide function definition on MSVC.
3086         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3087         function pointer.
3088         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3089
3090 2012-02-24  Bruno Haible  <bruno@clisp.org>
3091
3092         sqrtl: Provide function definition on MSVC.
3093         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3094         a function pointer.
3095         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3096
3097 2012-02-24  Bruno Haible  <bruno@clisp.org>
3098
3099         ceill: Provide function definition on MSVC.
3100         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3101         used as a function pointer.
3102         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3103
3104 2012-02-24  Bruno Haible  <bruno@clisp.org>
3105
3106         floorl: Provide function definition on MSVC.
3107         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3108         used as a function pointer.
3109         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3110
3111 2012-02-24  Bruno Haible  <bruno@clisp.org>
3112
3113         ceilf: Provide function definition on MSVC.
3114         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3115         used as a function pointer.
3116         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3117
3118 2012-02-24  Bruno Haible  <bruno@clisp.org>
3119
3120         floorf: Provide function definition on MSVC.
3121         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3122         used as a function pointer.
3123         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3124
3125 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3126
3127         stdnoreturn: new module
3128         This implements a replacement for C11's <stdnoreturn.h>.
3129         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3130         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3131         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3132         * tests/test-stdnoreturn.c: New files.
3133
3134 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3135
3136         regex: fix false multibyte matches in some regular expressions
3137         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3138         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3139         * lib/regex_internal.c (re_string_skip_chars):
3140         Fix miscomputation of remain_len that may cause incomplete
3141         multi-byte character and false match.
3142
3143 2012-02-24  Jim Meyering  <meyering@redhat.com>
3144
3145         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3146         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3147         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3148         Remove now-unnecessary str''cmp obfuscation.
3149         Suggested by Akim Demaille.
3150
3151 2012-02-24  Bruno Haible  <bruno@clisp.org>
3152
3153         streq: Rename macro.
3154         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3155         * NEWS: Mention the change.
3156         * lib/mbrtowc.c (mbrtowc): Update.
3157         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3158         * lib/wcwidth.c (wcwidth): Update.
3159         Suggested by Akim Demaille and Jim Meyering.
3160
3161 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3162
3163         regex: fix typo in definition of MIN
3164         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3165         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3166
3167 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3168             Bruno Haible  <bruno@clisp.org>
3169
3170         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3171         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3172         entries into a stack-allocated buffer directly.
3173         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3174
3175 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3176             Bruno Haible  <bruno@clisp.org>
3177
3178         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3179
3180          - There were several instances of this pattern:
3181
3182              for (;;) {
3183                n = acl (f, GETACLCNT, 0, NULL);
3184                [ allocate an array A of size N ]
3185                if (acl (f, GETACL, n, a) == n)
3186                  break;
3187              }
3188
3189            This loop might never terminate if some other process is constantly
3190            manipulating the file's ACL.  The loop should be rewritten to
3191            terminate.
3192
3193          - The acl (... GETACLNT ...) call is merely an optimization; its value
3194            is merely a hint as to how big to make the array.  A better
3195            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3196            and just guess a reasonably-big size, growing the size and trying
3197            again if it's not large enough.  This guarantees termination, and
3198            saves a system call.
3199
3200         * lib/acl-internal.h: Include <limits.h>.
3201         (MIN, SIZE_MAX): New macros.
3202         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3203         a stack-allocated buffer, and use malloc if it does not fit. Don't
3204         use GETACLCNT.
3205         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3206
3207 2012-02-19  Bruno Haible  <bruno@clisp.org>
3208
3209         acl: Fix endless loop on Solaris with vxfs.
3210         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3211         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3212         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3213         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3214         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3215         Reported by Bill Jones in
3216         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3217
3218 2012-02-19  Bruno Haible  <bruno@clisp.org>
3219
3220         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3221         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3222         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3223         that this function returns 0 in some more cases.
3224
3225 2012-02-19  Bruno Haible  <bruno@clisp.org>
3226
3227         acl: Update doc references.
3228         * doc/acl-resources.txt: Update links to Solaris documentation.
3229
3230 2012-02-19  Bruno Haible  <bruno@clisp.org>
3231
3232         Fix test failure in many locales on Solaris 11.
3233         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3234         'tr' arguments.
3235         * tests/test-pipe-filter-ii1.c (main): Likewise.
3236         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3237         expressions in the C locale.
3238         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3239         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3240
3241 2012-02-19  Bruno Haible  <bruno@clisp.org>
3242
3243         gnulib-tool: Improve usage message.
3244         * gnulib-tool (func_usage): Move doc of --help and --version to the
3245         section "Operation modes".
3246
3247 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3248
3249         README-release: make it easier to execute commands
3250         * top/README-release: break commands out on to separate lines.
3251
3252 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3253
3254         GNUmakefile: simplify detection of unconfigured trees
3255         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3256         whether the tree make is being run from is already configured or
3257         not.  Related simplifications.
3258
3259 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3260
3261         * gnulib-tool (func_usage): Document --help and --version.
3262
3263 2012-02-11  Jim Meyering  <meyering@redhat.com>
3264
3265         bootstrap: don't exit 0 upon gnulib-tool failure
3266         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3267         its exit status, not 0.
3268
3269 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3270
3271         README-release: various improvements
3272         * top/README-release: Give a command to push changes for the
3273         release.  Add "distcheck" to list of other pre-release checks.
3274         Fix instance of "make stable" which should be "make TYPE".
3275
3276 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         maint: replace FSF snail-mail addresses with URLs
3279         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3280         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3281         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3282         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3283         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3284         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3285         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3286         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3287         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3288         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3289         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3290         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3291         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3292         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3293         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3294         * lib/glthread/thread.c, lib/glthread/thread.h:
3295         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3296         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3297         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3298         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3299         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3300         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3301         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3302         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3303         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3304         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3305         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3306         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3307         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3308         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3309         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3310         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3311         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3312         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3313         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3314         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3315         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3316         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3317         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3318         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3319         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3320         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3321         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3322         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3323         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3324         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3325         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3326         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3327         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3328         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3329         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3330         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3331         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3332         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3333         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3334         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3335         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3336         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3337         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3338         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3339         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3340         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3341         * tests/test-poll.c, tests/test-quotearg-simple.c:
3342         * tests/test-quotearg.c, tests/test-quotearg.h:
3343         * tests/test-round-ieee.c, tests/test-round1.c:
3344         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3345         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3346         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3347         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3348         * tests/test-strerror.c, tests/test-strerror_r.c:
3349         * tests/test-strsignal.c, tests/test-strverscmp.c:
3350         * tests/test-xmemdup0.c:
3351         Replace FSF snail mail addresses with URLs, as per GNU coding
3352         standards.  See glibc bug
3353         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3354
3355 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3356
3357         README-release: capitalize a word and split a line
3358         * top/README-release: Fix punctuation and spacing.
3359
3360 2012-02-08  Akim Demaille  <demaille@gostai.com>
3361
3362         fatal-signal: use C prototypes (with explicit void).
3363         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3364         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3365
3366 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3367
3368         regex: spelling fix
3369         * lib/regexec.c: spelling fix
3370
3371         regex: rely on stdint.h for SIZE_MAX
3372         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3373
3374 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3375
3376         regex: merge glibc changes
3377
3378         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3379         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3380         (init_word_char): Work even if bitset words are not exactly 32 or
3381         64 bits wide.  Don't assume there are no padding bits.
3382         * lib/regex.c [_LIBC]: Do not include <config.h>.
3383         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3384         and -Wtype-limits.
3385         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3386         needless disagreement with glibc.  All uses changed.  Define it to
3387         1 only if _GNU_SOURCE, to match glibc.
3388         (_REG_RM_NAME): Remove; no longer needed, since the names in
3389         question are now all protected by __USE_GNU.
3390         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3391         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3392         * lib/regex_internal.h (MIN): New macro.
3393
3394         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3395         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3396
3397         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3398         * lib/regex_internal.c (re_string_fetch_byte_case):
3399         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3400         is miscompiled, and it turns out it is because of an incorrect
3401         attribute on re_string_fetch_byte_case.  Unlike
3402         re_string_peek_byte_case, this one is really not pure, it modifies
3403         memory (increments pstr->cur_idx), and with the pure attribute GCC
3404         assumed it doesn't and it cached the presumed value of
3405         regexp->cur_idx in a variable across the
3406          for (;; ++i)
3407            {
3408              if (i >= BRACKET_NAME_BUF_SIZE)
3409                return REG_EBRACK;
3410              if (token->type == OP_OPEN_CHAR_CLASS)
3411                ch = re_string_fetch_byte_case (regexp);
3412              else
3413                ch = re_string_fetch_byte (regexp);
3414              if (re_string_eoi(regexp))
3415                return REG_EBRACK;
3416              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3417                break;
3418              elem->opr.name[i] = ch;
3419            }
3420
3421         2011-11-29 Andreas Schwab <schwab@redhat.com>
3422         * lib/regcomp.c (build_equiv_class):
3423         Fix access after end of search string in regex matcher.
3424
3425         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3426         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3427
3428         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3429         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3430
3431         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3432         * lib/regcomp.c (parse_branch, parse_sub_exp):
3433         More regex memory leak fixes and tests.
3434         (parse_sub_exp, parse_bracket_exp):
3435         Fix memory leak for some invalid regular expressions.
3436
3437         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3438         * lib/regex_internal.c, lib/regexec.c:
3439         Fix unnecessary overallocation due to incomplete character.  When
3440         incomplete characters are found at the end of a string the code
3441         ran amok and allocated lots of memory.  Stricter limits are now in
3442         place.
3443
3444         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3445         * lib/regex.h: Update documentation.
3446
3447         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3448         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3449
3450         2010-05-05 Andreas Schwab <schwab@redhat.com>
3451         * lib/regexec.c (find_collation_sequence_value):
3452         Fix lookup of collation sequence value during regexp matching.
3453
3454         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3455         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3456
3457         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3458         * lib/regex.h: Cleanup namespace.
3459
3460         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3461         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3462
3463         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3464         * lib/regex_internal.h: Prevent some declarations and definitions
3465         to be seen when used in tests.
3466
3467         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3468         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3469         __libc_lock_* macros if not _LIBC.
3470         (struct re_dfa_t): Add lock.
3471
3472 2012-02-07  Eric Blake  <eblake@redhat.com>
3473
3474         maint.mk: also prohibit lower-case @var@
3475         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3476         lower case, like @top_srcdir@.
3477
3478 2012-02-04  Eric Blake  <eblake@redhat.com>
3479
3480         canonicalize: avoid uninitialized memory use
3481         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3482         random '/' left in dest.
3483         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3484
3485 2012-02-04  Bruno Haible  <bruno@clisp.org>
3486
3487         isatty: Fix test failure of ptsname_r on native Windows.
3488         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3489         and don't set errno.
3490         (isatty): Test first whether fd is valid. Set errno when returning 0.
3491
3492 2012-02-04  Bruno Haible  <bruno@clisp.org>
3493
3494         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3495         * tests/test-spawn-pipe-main.c: Include progname.h.
3496         (main): Invoke set_program_name.
3497         * modules/spawn-pipe-tests (Depends-on): Add progname.
3498
3499         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3500         * tests/test-nonblocking-socket-main.c: Include progname.h.
3501         (main): Invoke set_program_name.
3502         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3503
3504         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3505         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3506         (main): Invoke set_program_name.
3507         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3508
3509 2012-02-04  Eric Blake  <eblake@redhat.com>
3510
3511         canonicalize-lgpl: fix // handling
3512         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3513
3514         canonicalize: fix // handling
3515         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3516         /// to //, since only // is special.
3517
3518 2012-02-04  Bruno Haible  <bruno@clisp.org>
3519
3520         ioctl: Fix test failure on native Windows.
3521         * lib/ioctl.c: Include msvc-nothrow.h.
3522         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3523
3524 2012-02-04  Bruno Haible  <bruno@clisp.org>
3525
3526         fsync: Avoid test failure on native Windows.
3527         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3528         read-only.
3529
3530 2012-02-04  Bruno Haible  <bruno@clisp.org>
3531
3532         sys_select: Avoid syntax error on OpenBSD 5.0.
3533         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3534         currently being included, just include the system's <sys/select.h>.
3535
3536 2012-02-04  Bruno Haible  <bruno@clisp.org>
3537
3538         sys_select: Avoid syntax error on OpenBSD 5.0.
3539         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3540         <sys/select.h>, not before.
3541         Reported by Jiri B <jirib@devio.us>.
3542
3543 2012-02-04  Bruno Haible  <bruno@clisp.org>
3544
3545         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3546         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3547         global variables.
3548         * tests/test-get-rusage-data.c (main): Likewise.
3549         Reported by Jim Meyering.
3550
3551 2012-02-04  Bruno Haible  <bruno@clisp.org>
3552
3553         stdioext: Fix last commit.
3554         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3555
3556 2012-02-03  Bruno Haible  <bruno@clisp.org>
3557
3558         stdioext: Add tentative support for Plan9.
3559         * lib/stdio-impl.h: Include <errno.h>.
3560         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3561         * lib/freadable.c (freadable): Likewise.
3562         * lib/fwritable.c (fwritable): Likewise.
3563         * lib/fbufmode.c (fbufmode): Likewise.
3564         * lib/freading.c (freading): Likewise.
3565         * lib/fwriting.c (fwriting): Likewise.
3566         * lib/freadptr.c (freadptr): Likewise.
3567         * lib/freadseek.c (freadptrinc): Likewise.
3568         * lib/freadahead.c (freadahead): Likewise.
3569         * lib/fpurge.c (fpurge): Likewise.
3570         * lib/fseeko.c (rpl_fseeko): Likewise.
3571         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3572         Reported by Jens Staal <staal1978@gmail.com>.
3573
3574 2012-02-02  Jim Meyering  <meyering@redhat.com>
3575
3576         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3577         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3578         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3579         not even to try to add the attribute.  Instead, add a pragma to suppress
3580         the suggestion/warning.
3581
3582 2012-01-31  Karl Berry  <karl@gnu.org>
3583
3584         setstate doc: typo.
3585         * doc/posix-functions/setstate.texi (setstate): { not (.
3586
3587 2012-01-31  Bruno Haible  <bruno@clisp.org>
3588
3589         popen: Make more robust on Windows.
3590         * lib/popen.c: On native Windows, use the _popen based code even if
3591         HAVE_POPEN is set.
3592         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3593         environment variable on native Windows.
3594
3595 2012-01-30  Bruno Haible  <bruno@clisp.org>
3596
3597         pclose: Fix typo.
3598         * lib/stdio.in.h (pclose): Fix typo in warning message.
3599
3600 2012-01-30  Bruno Haible  <bruno@clisp.org>
3601
3602         doc about getlogin_r, setstate.
3603         * doc/posix-functions/getlogin_r.texi: List the incompatible
3604         declaration problem under "not fixed by gnulib".
3605         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3606         problem on Solaris 11 and other platforms.
3607
3608 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3609             Bruno Haible  <bruno@clisp.org>
3610
3611         poll tests: Make test more robust.
3612         * tests/test-poll.c: Include macros.h.
3613         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3614         return value of various I/O operations.
3615         * modules/poll-tests (Files): Add tests/macros.h.
3616
3617 2012-01-30  Bruno Haible  <bruno@clisp.org>
3618
3619         sys_stat: Fix support for mingw64 and MSVC.
3620         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3621         header files already do it.
3622         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3623         stat itself.
3624         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3625
3626 2012-01-30  Bruno Haible  <bruno@clisp.org>
3627
3628         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3630         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3631
3632 2012-01-29  Bruno Haible  <bruno@clisp.org>
3633
3634         quotearg: Fix test failure on MacOS X 10.5.
3635         * tests/test-quotearg-simple.c: Include localcharset.h.
3636         (main): If the locale encoding is not ASCII, bypass the tests of
3637         locale_quoting_style and clocale_quoting_style.
3638         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3639
3640 2012-01-29  Jim Meyering  <meyering@redhat.com>
3641
3642         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3643         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3644         detect uses of canonicalize_file_name.
3645
3646 2012-01-28  Bruno Haible  <bruno@clisp.org>
3647
3648         test-framework-sh: Fix test failure with AIX 7.1 diff.
3649         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3650         in column 1, like 'diff -c' does.
3651         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3652         whether 'diff -u' is used. Instead, test whether the output contains
3653         some '@' character.
3654
3655 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3656
3657         strtoimax: eliminate need for stdint.h, inttypes.h checks
3658         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3659         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3660         the prerequisites for a recently-introduced strtoimax test.
3661         I guess this might cause strtoimax to be replaced when not
3662         strictly necessary on older hosts, but this shouldn't introduce
3663         any bugs and it should make Emacs 'configure' faster on typical
3664         modern hosts.  Problem discovered when importing the latest gnulib
3665         to an Emacs test version.
3666         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3667
3668 2012-01-28  Bruno Haible  <bruno@clisp.org>
3669
3670         sys_time: Override 'struct timeval' on some native Windows platforms.
3671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3672         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3673         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3674         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3675         needs to be overridden.
3676         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3677         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3678         * tests/test-sys_select.c: Check that the tv_sec member has the same
3679         size as a 'time_t'.
3680         * tests/test-sys_time.c: Likewise.
3681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3682         is set, set also REPLACE_GETTIMEOFDAY.
3683         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3684         convert the resulting 'struct timeval' before returning.
3685         * lib/select.c: Include <sys/time.h>.
3686         (select, timeval): Undefine at the right place.
3687         * modules/select (Depends-on): Add sys_time.
3688         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3689         some Windows platforms.
3690         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3691
3692 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3693
3694         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3695         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3696         an integer.
3697         * lib/fcntl.c (dupfd): Likewise.
3698         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3699
3700 2012-01-28  Bruno Haible  <bruno@clisp.org>
3701
3702         fcntl: Avoid compilation error on native Windows.
3703         * modules/fcntl (Depends-on): Add 'close'.
3704
3705 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3706
3707         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3708         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3709         pointer to an integer.
3710         * lib/poll.c (IsConsoleHandle): Likewise.
3711         * lib/isatty.c (IsConsoleHandle): Likewise.
3712
3713 2012-01-28  Jim Meyering  <meyering@redhat.com>
3714
3715         doc: clarify README-release
3716         * top/README-release: Clarify: you should make a point to have
3717         the latest stable versions of build tools in your PATH, and the
3718         reference to buildreq is solely for its list of tool names, not
3719         for its minimal-functional version numbers.
3720         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3721
3722         maint.mk: use more readable (yet functionally equivalent) quoting
3723         It is common to quote a single quote in a single quoted string like
3724         this:  '...'\''...'.  Unless you know the idiom, that looks like
3725         gibberish, so prefer to double-quote the string when possible.
3726         Then you can use a more readable, lone single quote: "...'..."
3727         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3728         "don't" is more readable than the equivalent 'don'\''t'.
3729         (sc_cast_of_x_alloc_return_value): Likewise.
3730         (sc_cast_of_alloca_return_value): Likewise.
3731         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3732         rather than '\'':'\''.
3733
3734 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3735
3736         stdalign: relax _Alignof and tighten _Alignas test
3737         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3738         as it was too strict: alignof must divide offsetof, but it need
3739         not equal offsetof.  Inspired by Joseph S. Myers's comment
3740         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3741         Conversely, tighten the _Alignas test a bit, as the resulting
3742         alignment must be exactly 8.
3743
3744 2012-01-27  Bruno Haible  <bruno@clisp.org>
3745
3746         stdalign: Document the last change.
3747         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3748
3749 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3750
3751         stdalign: check that alignof and offsetof are consistent
3752         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3753         Problem reported for gnulib by Richard W.M. Jones in
3754         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3755
3756 2012-01-27  Jim Meyering  <meyering@redhat.com>
3757
3758         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3759         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3760         convert a sequence with gaps to the minimal containing range.
3761         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3762         * tests/test-update-copyright.sh: Test for this.
3763         The FSF confirmed it is ok to do this, assuming there is at
3764         least one significant change per year in the affected range:
3765         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3766
3767 2012-01-26  Bruno Haible  <bruno@clisp.org>
3768
3769         pipe2: refine doc about thread-safety
3770         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3771         multithread-safety problem.
3772         * doc/glibc-functions/accept4.texi: Likewise.
3773
3774 2012-01-26  Bruno Haible  <bruno@clisp.org>
3775
3776         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3777         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3778         In the test program, include <fcntl.h>, for O_RDONLY.
3779
3780 2012-01-26  Eric Blake  <eblake@redhat.com>
3781
3782         pipe2: document lack of thread-safety in replacement
3783         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3784         issue in replacement.
3785         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3786         Based on a report by Eric Wong.
3787
3788 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3789             Bruno Haible  <bruno@clisp.org>
3790
3791         malloca: Avoid warnings on x86_64 mingw64.
3792         * lib/malloca.c: Include <stdint.h>.
3793         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3794         * modules/malloca (Depends-on): Add stdint.
3795         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3796
3797 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3798
3799         obstack: remove __STDC__ conditionals
3800         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3801         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3802         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3803         m4/include_next.m4 as the only gnulib-maintained places that still
3804         refer to __STDC__.
3805
3806 2012-01-24  Bruno Haible  <bruno@clisp.org>
3807
3808         havelib: Modern quoting.
3809         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3810         the recent change to the GNU coding standards.
3811
3812 2012-01-24  Bruno Haible  <bruno@clisp.org>
3813
3814         stdint: Improve support for Android.
3815         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3816         Reported by Simon Josefsson <simon@josefsson.org>.
3817
3818 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3819
3820         doc: omit trailing empty lines from INSTALL etc.
3821         * doc/Makefile (INSTALL): Omit trailing empty lines.
3822         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3823         omit trailing empty lines.  This simplifies the build procedure.
3824
3825 2012-01-23  Jim Meyering  <meyering@redhat.com>
3826
3827         tests: avoid spurious warnings about gl_sockets_startup
3828         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3829         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3830         reporting a "statement with no effect".
3831         * tests/test-accept.c (main): Mark as "(void)".
3832         * tests/test-accept4.c (main): Likewise.
3833         * tests/test-bind.c (main): Likewise.
3834         * tests/test-connect.c (main): Likewise.
3835         * tests/test-getpeername.c (main): Likewise.
3836         * tests/test-getsockname.c (main): Likewise.
3837         * tests/test-getsockopt.c (main): Likewise.
3838         * tests/test-listen.c (main): Likewise.
3839         * tests/test-recv.c (main): Likewise.
3840         * tests/test-recvfrom.c (main): Likewise.
3841         * tests/test-send.c (main): Likewise.
3842         * tests/test-sendto.c (main): Likewise.
3843         * tests/test-setsockopt.c (main): Likewise.
3844         * tests/test-shutdown.c (main): Likewise.
3845
3846 2012-01-21  Bruno Haible  <bruno@clisp.org>
3847
3848         locale-fr.m4: Fix for Android.
3849         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3850         failure of the test program on Bionic libc.
3851
3852 2012-01-21  Jim Meyering  <meyering@redhat.com>
3853
3854         bootstrap: fail when bootstrap_post_import_hook fails
3855         Otherwise, it's far too easy to miss diagnostics emitted
3856         between gnulib-tool's output and that of running configure.
3857         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3858
3859 2012-01-17  Jim Meyering  <meyering@redhat.com>
3860
3861         maint: enable sc_trailing_blank
3862         * build-aux/pmccabe.css: Remove trailing blanks.
3863         * doc/acl-cygwin.txt: Likewise.
3864         * doc/gnu-oids.texi: Likewise
3865         * cfg.mk: Enable sc_trailing_blank.
3866         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3867
3868 2012-01-17  Jim Meyering  <meyering@redhat.com>
3869
3870         maint: enable sc_prohibit_openat_without_use
3871         * cfg.mk: Enable sc_prohibit_openat_without_use.
3872         Exempt lib/selinux-at.c.
3873
3874 2012-01-17  Jim Meyering  <meyering@redhat.com>
3875
3876         maint: enable sc_prohibit_cloexec_without_use
3877         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3878         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3879
3880 2012-01-17  Jim Meyering  <meyering@redhat.com>
3881
3882         maint: enable sc_prohibit_intprops_without_use
3883         * cfg.mk: Enable sc_prohibit_intprops_without_use
3884         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3885
3886 2012-01-17  Jim Meyering  <meyering@redhat.com>
3887
3888         maint: enable sc_prohibit_hash_pjw_without_use
3889         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3890         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3891         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3892         following " (".
3893
3894 2012-01-17  Jim Meyering  <meyering@redhat.com>
3895
3896         maint: enable double-word-prohibiting rule
3897         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3898         Exempt three files.
3899
3900 2012-01-17  Jim Meyering  <meyering@redhat.com>
3901
3902         maint: remove empty lines at EOF, but excluding modules/*
3903         Apply syntax rules at home as well as abroad.  Most changes
3904         were induced by running this:
3905           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3906             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3907             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3908         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3909         Exempt modules/* and two binary files.
3910         Also exempt doc/INSTALL*, per request from Bruno Haible.
3911         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3912         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3913         * doc/Copyright/request-assign.future: Likewise.
3914         * doc/Copyright/request-disclaim.changes: Likewise.
3915         * doc/INSTALL: Likewise.
3916         * doc/INSTALL.ISO: Likewise.
3917         * doc/INSTALL.UTF-8: Likewise.
3918         * doc/acl-cygwin.txt: Likewise.
3919         * doc/acl-resources.txt: Likewise.
3920         * doc/fdl-1.2.texi: Likewise.
3921         * doc/fdl-1.3.texi: Likewise.
3922         * doc/fdl.texi: Likewise.
3923         * lib/argp-pin.c: Likewise.
3924         * lib/round.c: Likewise.
3925         * lib/unicase/u16-totitle.c: Likewise.
3926         * lib/unictype/block_test.c: Likewise.
3927         * lib/uninorm/canonical-decomposition.c: Likewise.
3928         * m4/README: Likewise.
3929         * m4/relocatable-lib.m4: Likewise.
3930         * tests/test-isnand-nolibm.c: Likewise.
3931         * tests/test-isnand.c: Likewise.
3932         * tests/uninorm/NormalizationTest.txt: Likewise.
3933
3934 2012-01-17  Jim Meyering  <meyering@redhat.com>
3935
3936         maint: add framework to run syntax-check rules against gnulib sources
3937         * cfg.mk: New file, to disable all currently-failing tests.
3938         We'll enable them one by one, as they are made to pass.
3939         * Makefile (sc_maint): New rule.
3940
3941 2012-01-21  Bruno Haible  <bruno@clisp.org>
3942
3943         stdint: Add support for Android.
3944         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3945         include the system's <stdint.h>.
3946         Reported by Simon Josefsson <simon@josefsson.org>.
3947
3948 2012-01-19  Jim Meyering  <meyering@redhat.com>
3949
3950         bootstrap: add bootstrap_post_import_hook
3951         Bison does still need something like the gnulib_mk_hook whose
3952         invocation I had to remove along with slurp in commit 767ccd40.
3953         Technically, we could get along without it, but doing so would
3954         have required living with a warning and a mandatory post-bootstrap
3955         automake rerun.
3956         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3957         (bootstrap_post_import_hook): New function.
3958         Invoke it after gnulib-tool --import and before autoreconf.
3959
3960 2012-01-18  Jim Meyering  <meyering@redhat.com>
3961
3962         gitlog-to-changelog: don't use "no_"-prefixed variable name
3963         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3964         to enable both --cluster and --no-cluster.  Change variable name,
3965         s/\$no_cluster/$cluster/, and reverse usage to match.
3966
3967         gitlog-to-changelog: use "||", not "or" in expressions
3968         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3969         expressions.
3970
3971 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3972
3973         gitlog-to-changelog: new option --no-cluster
3974         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3975         clustering of adjacent commit messages.
3976
3977 2012-01-17  Jim Meyering  <meyering@redhat.com>
3978
3979         maint: spell file systems with two words, not one
3980         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3981         two words, not one.
3982
3983 2012-01-16  Jim Meyering  <meyering@redhat.com>
3984
3985         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3986         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3987
3988 2012-01-16  Eric Blake  <eblake@redhat.com>
3989
3990         bootstrap: cater to autoconf 2.59
3991         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3992         is not available.
3993
3994         bootstrap: properly check for libtool
3995         * build-aux/bootstrap (libtoolize): Also run libtool when older
3996         usage is detected.
3997
3998 2012-01-15  Bruno Haible  <bruno@clisp.org>
3999
4000         Improve support for MSVC 9.
4001         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4002         clashes on MSVC.
4003         * lib/fcntl.in.h: Likewise.
4004         * lib/stdlib.in.h: Likewise.
4005         * lib/sys_stat.in.h: Likewise.
4006
4007 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4008
4009         gnupload: we hold the master copy of this script now
4010         For motivation and more information, see:
4011         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4012         * build-aux/gnupload: Make it clear in the heading comments that the
4013         master copy of this file is maintained by gnulib.  Since we are at
4014         it, bump its copyright year and ...
4015         ($scriptversion): ... the date in its version.
4016         ($usage): Patches and bug reports should be sent to the gnulib list,
4017         not the automake one.
4018         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4019         anymore.
4020
4021 2012-01-15  Bruno Haible  <bruno@clisp.org>
4022
4023         Fix module 'random'.
4024         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4025         initstate, setstate are declared.
4026
4027 2012-01-14  Bruno Haible  <bruno@clisp.org>
4028
4029         Tests for module 'random'.
4030         * modules/random-tests: New file.
4031         * tests/test-random.c: New file, based on tests/test-random_r.c.
4032
4033         New module 'random'.
4034         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4035         declarations.
4036         * lib/random.c: New file, based on glibc/stdlib/random.c.
4037         * m4/random.m4: New file.
4038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4039         HAVE_RANDOM.
4040         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4041         * modules/random: New file.
4042         * config/srclist.txt: Add an entry for random.c.
4043         * doc/posix-functions/random.texi: Mention the 'random' module.
4044         * doc/posix-functions/initstate.texi: Likewise.
4045         * doc/posix-functions/setstate.texi: Likewise.
4046         * doc/posix-functions/srandom.texi: Likewise.
4047
4048 2012-01-12  Bruno Haible  <bruno@clisp.org>
4049
4050         random_r: Use common idioms.
4051         * lib/random_r.c: Include <stdlib.h> first.
4052
4053         random_r: Override incompatible API on AIX, OSF/1.
4054         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4055         Override the system function if REPLACE_RANDOM_R is 1.
4056         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4057         and OSF/1, set REPLACE_RANDOM_R.
4058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4059         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4060         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4061         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4062         * doc/glibc-functions/random_r.texi: Likewise.
4063         * doc/glibc-functions/setstate_r.texi: Likewise.
4064
4065         random_r: Support for MSVC 9.
4066         * lib/random_r.c: Include stdint.h, not inttypes.h.
4067
4068 2012-01-12  Eric Blake  <eblake@redhat.com>
4069
4070         inet_ntop: guard extra work by IF_LINT
4071         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4072         better code generation when not checking for warnings.
4073         Suggested by Paul Eggert and Jim Meyering.
4074
4075         strptime: fix regression on mingw
4076         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4077         Fix regression.  Reported by Bruno Haible.
4078
4079 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4080             Bruno Haible  <bruno@clisp.org>
4081
4082         copy-file: add error-code-returning variant.
4083         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4084         (qcopy_file_preserving): New declaration.
4085         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4086         copy_file_preserving. Change return type to 'int'. Don't emit an error
4087         message here.
4088         (copy_file_preserving): New function.
4089         * tests/test-copy-file.c: Include <stdlib.h>.
4090         (main): Test qcopy_file_preserving if the environment variable
4091         NO_STDERR_OUTPUT is set.
4092         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4093         with NO_STDERR_OUTPUT
4094         * tests/test-copy-file-2.sh: Likewise.
4095
4096 2012-01-10  Bruno Haible  <bruno@clisp.org>
4097
4098         copy-file: Use 'quote' module consistently.
4099         * lib/copy-file.c (copy_file_preserving): Use quote().
4100
4101         copy-file: Refactor.
4102         * lib/copy-file.c: Include quote.h.
4103         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4104         message here.
4105         * modules/copy-file (Depends-on): Add quote.
4106
4107         acl: Export qcopy_acl.
4108         * lib/acl.h (qcopy_acl): New declaration.
4109         * lib/copy-acl.c (qcopy_acl): Make non-static.
4110
4111         acl: Rename a local variable.
4112         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4113
4114         acl: Align return values of copy_acl and qcopy_acl.
4115         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4116         maybe < -1.
4117
4118 2012-01-11  Eric Blake  <eblake@redhat.com>
4119
4120         strptime: silence gcc warnings
4121         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4122         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4123         Reported by Daniel P. Berrange.
4124
4125         inet_ntop: silence gcc warning
4126         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4127         Reported by Daniel P. Berrange.
4128
4129 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4130
4131         getloadavg test: skip the test on GNU/Linux without /proc mounted
4132         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4133         file.  When /proc is not mounted, it always fails with ENOENT.
4134         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4135         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4136
4137 2012-01-10  Bruno Haible  <bruno@clisp.org>
4138
4139         regex: Avoid link error on MSVC 9.
4140         * modules/regex (Depends-on): Add wctype.
4141
4142 2012-01-10  Bruno Haible  <bruno@clisp.org>
4143
4144         doc: Mention --with-tests option.
4145         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4146         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4147         --with-tests.
4148         Reported by Reuben Thomas.
4149
4150 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4151
4152         users.txt: order package names lexicographically.
4153         * users.txt: Order package names lexicographically.
4154
4155 2012-01-10  Jim Meyering  <meyering@redhat.com>
4156
4157         maint.mk: fix description in comment
4158         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4159
4160         ignore-value: remove deprecated ignore_ptr function
4161         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4162         * NEWS: Note this.
4163
4164 2012-01-09  Jim Meyering  <meyering@redhat.com>
4165
4166         test-init.sh: avoid a subshell
4167         * tests/test-init.sh: Remove protective subshell.
4168         Suggested by Bernhard Voelker.  While a subshell is normally
4169         required to protect against older shells (Solaris, FreeBSD) that
4170         warn about a missing program before performing redirection, the
4171         shell-selection tests performed by init.sh probably exclude any
4172         offending shell.
4173
4174 2012-01-08  Bruno Haible  <bruno@clisp.org>
4175
4176         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4177         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4178         variable.
4179
4180 2012-01-08  Bruno Haible  <bruno@clisp.org>
4181
4182         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4183         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4184         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4185         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4186         macro.
4187         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4188         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4189         * lib/spawn_faction_addopen.c: Add workaround implementation if
4190         HAVE_WORKING_POSIX_SPAWN.
4191         * modules/spawn (Makefile): Substitute
4192         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4193         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4194         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4195         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4196         (Depends-on): Update conditions.
4197         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4198         the Solaris 11 bug.
4199
4200 2012-01-08  Bruno Haible  <bruno@clisp.org>
4201
4202         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4203         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4205         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4206         macro.
4207         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4208         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4209         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4210         HAVE_WORKING_POSIX_SPAWN.
4211         * modules/spawn (Makefile): Substitute
4212         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4213         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4214         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4215         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4216         (Depends-on): Update conditions.
4217         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4218         the Solaris 11 bug.
4219
4220 2012-01-08  Bruno Haible  <bruno@clisp.org>
4221
4222         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4223         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4224         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4226         HAVE_WORKING_POSIX_SPAWN.
4227         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4228         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4229         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4230         * lib/spawn_faction_addclose.c: Add workaround implementation if
4231         HAVE_WORKING_POSIX_SPAWN.
4232         * modules/spawn (Makefile): Substitute
4233         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4234         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4235         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4236         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4237         (Depends-on): Update conditions.
4238         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4239         the Solaris 11 bug.
4240
4241 2012-01-08  Bruno Haible  <bruno@clisp.org>
4242
4243         doc: Update for Solaris 11 2011-11.
4244         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4245         * m4/printf.m4: Update comments.
4246
4247 2012-01-08  Bruno Haible  <bruno@clisp.org>
4248
4249         mktime: Avoid compilation error on Solaris 11.
4250         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4251
4252 2012-01-08  Bruno Haible  <bruno@clisp.org>
4253
4254         doc: Small fix.
4255         * doc/posix-headers/nl_types.texi: Correct platforms list.
4256
4257 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4258
4259         Add lgpl-3.0 module.
4260         * MODULES.html.sh (Support for building documentation): Add
4261         lgpl-3.0.
4262         * modules/lgpl-3.0: New file.
4263
4264 2012-01-08  Jim Meyering  <meyering@redhat.com>
4265
4266         select.c: indent with spaces, not TABs
4267         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4268
4269 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4270
4271         quotearg: do not use grave accent for left quote
4272         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4273         locale_quoting_style.
4274         (quotearg_buffer_restyled): Fix example.
4275         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4276
4277 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4278
4279         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4280         Most programs do not have translation catalogs for English and much
4281         less separate catalogs for British and American English.  Drop the
4282         suggestion to translators about these two, and provide it
4283         automatically for Unicode locales.  Like most programs, even those
4284         using American English, we use single quotation marks.  This conflicts
4285         with the American typographic convention, but works better when you
4286         cite the entire error message within double quotes.  It also tries not
4287         to clash with established practice and with what non-gnulib programs
4288         will usually do.
4289         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4290         using an UTF-8 or GB-18030 locale.  The list of other locales with
4291         quotes was provided by Bruno Haible.
4292         (quotearg_buffer_restyled): Adjust instructions to translators.
4293         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4294         text, since this would be wrong when using Unicode.
4295         * modules/quotearg: Depend on c-strcaseeq.
4296
4297 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4298
4299         quotearg: fix Wikipedia link
4300         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4301
4302 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4303
4304         Fix for mingw with MSVC9.
4305         * m4/ld-version-script.m4: Check that compiler rejects version
4306         scripts with syntax errors.  Reported by Bruno Haible
4307         <bruno@clisp.org>.
4308
4309 2012-01-06  Bruno Haible  <bruno@clisp.org>
4310
4311         Talk about "native Windows API", not "Woe32".
4312         * lib/accept4.c: Update comments to mention native Windows.
4313         * lib/execute.c: Likewise.
4314         * lib/fatal-signal.c: Likewise.
4315         * lib/localcharset.c: Likewise.
4316         * lib/nanosleep.c: Likewise.
4317         * lib/nl_langinfo.c: Likewise.
4318         * lib/pclose.c: Likewise.
4319         * lib/pipe-filter-gi.c: Likewise.
4320         * lib/pipe-filter-ii.c: Likewise.
4321         * lib/pipe.c: Likewise.
4322         * lib/pipe2.c: Likewise.
4323         * lib/popen.c: Likewise.
4324         * lib/progreloc.c: Likewise.
4325         * lib/relocatable.c: Likewise.
4326         * lib/sigaction.c: Likewise.
4327         * lib/sigprocmask.c: Likewise.
4328         * lib/spawn-pipe.h: Likewise.
4329         * lib/spawn-pipe.c: Likewise.
4330         * lib/spawni.c: Likewise.
4331         * lib/stat-time.h: Likewise.
4332         * lib/w32spawn.h: Likewise.
4333         * tests/test-isatty.c: Likewise.
4334         * lib/config.charset: More comments.
4335         * doc/gnulib-intro.texi: Mention native Windows.
4336         * doc/posix-functions/_Exit_C99.texi: Likewise.
4337         * doc/posix-headers/fcntl.texi: Likewise.
4338
4339 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4340
4341         argp: Avoid crash if translator uses % characters in a translation.
4342         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4343         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4344
4345 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4346
4347         doc: C11 and C++11 are now official
4348         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4349         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4350         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4351         * modules/stdalign:
4352         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4353
4354 2012-01-06  Bruno Haible  <bruno@clisp.org>
4355
4356         uc-is-grapheme-break tests: Tweak.
4357         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4358         message.
4359
4360 2012-01-06  Bruno Haible  <bruno@clisp.org>
4361
4362         test-init.sh: correct the test for diff -u
4363         * tests/test-init.sh: Also redirect stdout to /dev/null.
4364
4365 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4366
4367         Use ', not `, for quoting output.
4368         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4369         (print_changelog_deltas, get_tool_versions, main program):
4370         * build-aux/git-version-gen:
4371         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4372         * build-aux/move-if-change (help):
4373         * build-aux/useless-if-before-free (usage, main program):
4374         * check-module (parse_module_file, usage)
4375         (find_included_lib_files, check_module):
4376         * lib/argmatch.c (main) [TEST]:
4377         * lib/argp-help.c (_help):
4378         * lib/getopt1.c (main) [TEST]:
4379         * lib/git-merge-changelog.c (usage):
4380         * lib/xstrtol-error.c (xstrtol_error):
4381         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4382         * m4/argz.m4 (gl_FUNC_ARGZ):
4383         * m4/bison.m4 (gl_BISON):
4384         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4385         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4386         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4387         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4388         * m4/gc-random.m4 (gl_GC_RANDOM):
4389         * m4/intl.m4 (gt_CHECK_DECL):
4390         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4391         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4392         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4393         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4394         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4395         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4396         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4397         * tests/test-dirname.c (main):
4398         * tests/test-getpass.c (main):
4399         * tests/test-iconvme.c (main):
4400         * tests/test-parse-datetime.c (LOG):
4401         * tests/test-xstrtoimax.sh:
4402         * tests/test-xstrtol.sh:
4403         * tests/test-xstrtoll.sh:
4404         * tests/test-xstrtoumax.sh:
4405         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4406         * top/GNUmakefile (abort-due-to-no-makefile):
4407         Quote 'like this', not `like this', as per the recent change to
4408         the GNU coding standards.
4409
4410 2012-01-05  Bruno Haible  <bruno@clisp.org>
4411
4412         strtoimax: Don't force a replacement on systems where intmax_t is int.
4413         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4414         'intmax_t' is not larger than 'int'.
4415         Reported by Pádraig Brady <P@draigBrady.com>.
4416
4417 2012-01-05  Bruno Haible  <bruno@clisp.org>
4418
4419         doc: Mention NetBSD bugs.
4420         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4421         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4422
4423 2012-01-05  Bruno Haible  <bruno@clisp.org>
4424
4425         strtoumax tests: Enhance tests.
4426         * tests/test-strtoumax.c (main): Add tests for large values.
4427
4428 2012-01-05  Bruno Haible  <bruno@clisp.org>
4429
4430         strtoimax: Work around AIX 5.1 bug.
4431         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4432         definition.
4433         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4434         Set HAVE_STRTOIMAX.
4435         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4436         REPLACE_STRTOIMAX.
4437         * modules/inttypes-incomplete (Makefile.am): Substitute
4438         REPLACE_STRTOIMAX.
4439         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4440         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4441         (Depends-on): Update conditions.
4442         * tests/test-strtoimax.c (main): Add tests for large values.
4443         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4444
4445 2012-01-05  Bruno Haible  <bruno@clisp.org>
4446
4447         inttypes: Modernize.
4448         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4449         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4450         (Makefile.am): Update inttypes.h rule.
4451
4452 2012-01-05  Jim Meyering  <meyering@redhat.com>
4453
4454         init.sh: don't waste a subshell just to redirect stderr
4455         * tests/init.sh: In testing for diff -u and diff -c, use a
4456         stderr-redirecting exec inside `...` rather than a subshell.
4457
4458         test-init.sh: avoid failure on HP-UX 11.00
4459         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4460         resolves to diff -c or cmp.  Reported by Bruno Haible.
4461
4462 2012-01-05  Bruno Haible  <bruno@clisp.org>
4463
4464         Tests for module 'strtoull'.
4465         * modules/strtoull-tests: New file.
4466         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4467
4468 2012-01-05  Bruno Haible  <bruno@clisp.org>
4469
4470         Tests for module 'strtoll'.
4471         * modules/strtoll-tests: New file.
4472         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4473
4474 2012-01-05  Bruno Haible  <bruno@clisp.org>
4475
4476         Tests for module 'strtoul'.
4477         * modules/strtoul-tests: New file.
4478         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4479
4480 2012-01-05  Bruno Haible  <bruno@clisp.org>
4481
4482         Tests for module 'strtol'.
4483         * modules/strtol-tests: New file.
4484         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4485
4486 2012-01-04  Jim Meyering  <meyering@redhat.com>
4487
4488         test-init.sh: accommodate Solaris 5.10's different diff -u output
4489         * tests/test-init.sh: Also exempt @@ lines from the comparison
4490         of diff output, since Solaris 5.10 and GNU diff formats differ.
4491         Reported by Stefano Lattarini.
4492
4493 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4494
4495         test-posixtm: don't assume signed integer wraparound
4496         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4497         after signed integer overflow.  Inspired by (though it may not
4498         fix) Bruno Haible's bug report in
4499         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4500
4501         Spell out "Windows 9x" and "Windows XP".
4502         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4503         "Windows 9x" and "WinXP" with "Windows XP".
4504
4505 2012-01-04  Jim Meyering  <meyering@redhat.com>
4506
4507         test-vc-list-files-cvs.sh: remove obsolete comment
4508         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4509         double exit.  Now that's all encapsulated via skip_ and Exit.
4510
4511 2012-01-04  Bruno Haible  <bruno@clisp.org>
4512
4513         Talk about "native Windows API", not "Win32".
4514         * lib/classpath.c: Update comments to mention native Windows.
4515         * lib/csharpexec.c: Likewise.
4516         * lib/dup2.c: Likewise.
4517         * lib/error.c: Likewise.
4518         * lib/fcntl.c: Likewise.
4519         * lib/filename.h: Likewise.
4520         * lib/findprog.c: Likewise.
4521         * lib/get-rusage-as.c: Likewise.
4522         * lib/get-rusage-data.c: Likewise.
4523         * lib/getpagesize.c: Likewise.
4524         * lib/javaexec.c: Likewise.
4525         * lib/msvc-inval.c: Likewise.
4526         * lib/msvc-nothrow.c: Likewise.
4527         * lib/nanosleep.c: Likewise.
4528         * lib/nonblocking.c: Likewise.
4529         * lib/printf-parse.c: Likewise.
4530         * lib/setlocale.c: Likewise.
4531         * lib/sigaction.c: Likewise.
4532         * lib/strerror_r.c: Likewise.
4533         * lib/tmpdir.c: Likewise.
4534         * lib/vasnprintf.c: Likewise.
4535         * lib/w32spawn.h: Likewise.
4536         * lib/waitpid.c: Likewise.
4537         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4538         * m4/locale-ar.m4: Likewise.
4539         * m4/locale-fr.m4: Likewise.
4540         * m4/locale-ja.m4: Likewise.
4541         * m4/locale-tr.m4: Likewise.
4542         * m4/locale-zh.m4: Likewise.
4543         * m4/printf.m4: Likewise.
4544         * tests/test-cloexec.c: Likewise.
4545         * tests/test-copy-acl.sh: Likewise.
4546         * tests/test-copy-file.sh: Likewise.
4547         * tests/test-file-has-acl.sh: Likewise.
4548         * tests/test-set-mode-acl.sh: Likewise.
4549         * tests/test-dup-safer.c: Likewise.
4550         * tests/test-dup2.c: Likewise.
4551         * tests/test-dup3.c: Likewise.
4552         * tests/test-fcntl.c: Likewise.
4553         * tests/test-nonblocking-pipe.h: Likewise.
4554         * tests/test-nonblocking-socket.h: Likewise.
4555         * tests/test-pipe.c: Likewise.
4556         * tests/test-pipe2.c: Likewise.
4557         * tests/test-spawn-pipe-child.c: Likewise.
4558         * doc/acl-resources.txt: Likewise.
4559         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4560         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4561         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4562         * lib/localcharset.c: Update comments to mention native Windows.
4563         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4564         * lib/localename.c: Likewise.
4565         * lib/progreloc.c: Likewise.
4566         * lib/relocatable.c: Likewise.
4567         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4568         (windows_compute_revents): Renamed from win32_compute_revents.
4569         (windows_compute_revents_socket): Renamed from
4570         win32_compute_revents_socket.
4571         * lib/select.c: Update comments to mention native Windows.
4572         (windows_poll_handle): Renamed from win32_poll_handle.
4573         * m4/threadlib.m4: Update comments to mention native Windows.
4574         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4575         --enable-threads=windows instead of --enable-threads=win32. Set
4576         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4577         * lib/glthread/lock.h: Update comments to mention native Windows.
4578         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4579         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4580         USE_WIN32_THREADS.
4581         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4582         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4583         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4584         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4585         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4586         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4587         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4588         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4589         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4590         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4591         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4592         * tests/test-tls.c: Likewise.
4593         Rationale:
4594         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4595         on both 32-bit and 64-bit Windows systems.
4596         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4597         line of distinction is between "native Windows" on one side and Unix/
4598         POSIX systems on the other side. More details in
4599         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4600         Suggested by Paul Eggert.
4601
4602 2012-01-03  Bruno Haible  <bruno@clisp.org>
4603
4604         isatty: Support for MSVC 9.
4605         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4606         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4607         (_isatty_nothrow): New function.
4608         (isatty): Use it instead of _isatty.
4609         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4610         * lib/poll.c (IsConsoleHandle): Likewise.
4611         * lib/select.c (IsConsoleHandle): Likewise.
4612         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4613         (gl_PREREQ_ISATTY): New macro.
4614         * modules/isatty (Depends-on): Add msvc-inval.
4615         (configure.ac): Invoke gl_PREREQ_ISATTY.
4616
4617 2012-01-03  Jim Meyering  <meyering@redhat.com>
4618
4619         maint.mk: remove temporary transition aid from over 1.5 years ago
4620         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4621         purpose was to aid in the transition (avoiding silent malfunction)
4622         from that old name to the new _sc_search_regexp.  This shim was
4623         added by commit 219c504b.
4624
4625         init.sh: do not try to accommodate compare arguments starting with "-"
4626         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4627         compare arguments that start with "-".  Besides, we do not worry
4628         about this when invoking diff or cmp; why start now with sed?
4629         Using "--" to separate options from argument would trigger sed
4630         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4631         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4632
4633 2012-01-02  Bruno Haible  <bruno@clisp.org>
4634
4635         Enhance tests for module 'isatty'.
4636         * modules/isatty-tests (Depends-on): Add pipe-posix.
4637         * tests/test-isatty.c: Include <fcntl.h>.
4638         (DEV_NULL): New macro.
4639         (main): Test the resut of isatty() also on regular files, pipes, and
4640         /dev/null.
4641
4642         New module 'isatty'.
4643         * lib/unistd.in.h (isatty): New declaration.
4644         * lib/isatty.c: New file, based on an idea of
4645         Bastien Roucariès <roucaries.bastien@gmail.com>.
4646         * m4/isatty.m4: New file.
4647         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4648         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4649         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4650         REPLACE_ISATTY.
4651         * modules/isatty: New file.
4652         * doc/posix-functions/isatty.texi: Mention the new module.
4653         Suggested by Paolo Bonzini.
4654
4655 2012-01-02  Bruno Haible  <bruno@clisp.org>
4656
4657         canonicalize: Tweak 2011-12-29 commit.
4658         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4659         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4660
4661 2012-01-02  Jim Meyering  <meyering@redhat.com>
4662
4663         gitlog-to-changelog: describe input syntax in --help output
4664         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4665
4666         gitlog-to-changelog: fix typo in --help: show backslash before email @
4667         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4668         in sources, but not in actual output.
4669
4670 2011-12-30  Jim Meyering  <meyering@redhat.com>
4671
4672         gitlog-to-changelog: don't malfunction when name contains %-directive
4673         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4674         in a name string cause trouble.  E.g., with a user name of "%s",
4675         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4676
4677 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4678
4679         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4680         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4681         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4682         the "  (tiny change)" notation that is appended to the standard
4683         ChangeLog "date  name  email" header line.
4684
4685 2012-01-01  Jim Meyering  <meyering@redhat.com>
4686
4687         test-framework-sh: init.sh: fix "make dist" failure
4688         When using gnulib-tool's --with-tests option and any module that
4689         depends on test-framework-sh, "make dist" would fail due to the
4690         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4691         in the gltests directory, and not in the gllib/ directory.
4692         One way to work around that is to move the EXTRA_DIST += init.sh
4693         from the primary module to the -tests one:
4694         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4695         * modules/test-framework-sh (Makefile.am): ...not here.
4696         Reported by Tom G. Christensen in
4697         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4698
4699         version-etc: update copyright year reported by --version
4700         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4701
4702 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4703
4704         canonicalize: only stat() if required
4705         * lib/canonicalize.c (canonicalize_filename_mode):
4706         Avoid calling l?stat() when both CAN_MISSING,
4707         and CAN_NOLINKS are set, as we neither need
4708         to resolve symlinks or test component existence.
4709
4710 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         doc: cover st_ino issues once; add OpenVMS etc.
4713         * doc/posix-functions/stat.texi (stat):
4714         * doc/posix-functions/lstat.texi (lstat):
4715         * doc/posix-functions/fstatat.texi (fstatat):
4716         * doc/posix-functions/fstat.texi (fstat):
4717         Move general 'struct stat' stuff to sys_stat.texi,
4718         leaving behind a pointer.
4719         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4720         Merge duplicate info about 'struct stat' problems into here.
4721         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4722         and suggest partial workarounds.
4723
4724         same-inode: port to OpenVMS
4725         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4726         three st_ino values.
4727
4728 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4729
4730         canonicalize: fix references to stat() and lstat()
4731         * lib/canonicalize.c (canonicalize_filename_mode):
4732         Ensure references always resolve to a replacement
4733         function if required (even via a macro).
4734
4735 2011-12-30  Jim Meyering  <meyering@redhat.com>
4736
4737         gitlog-to-changelog: remove a little duplication
4738         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4739         rather than twice.
4740
4741 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4742
4743         canonicalize: add support for not resolving symlinks
4744         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4745         indicate we don't want to follow symlinks.  Also
4746         provide CAN_MODE_MASK to aid setting these existing
4747         mutually exclusive values.
4748         * lib/canonicalize.c (canonicalize_filename_mode):
4749         Extract the flags from can_mode parameter, which
4750         are currently just used to select between stat()
4751         and lstat().  Also ensure that mutually exclusive
4752         values are flagged immediately as invalid.
4753         * tests/test-canonicalize.c: Verify symlinks are
4754         not followed, and that invalid flag combinations
4755         are diagnosed.
4756
4757 2011-12-25  Jim Meyering  <meyering@redhat.com>
4758
4759         gitlog-to-changelog: do not clump multi-paragraph entries
4760         Identical header lines (date,name,email+coauthors) are suppressed,
4761         thus putting all entries with those same characteristics under
4762         a single header.  However, when a log entry consists of two or
4763         more paragraphs, it may not be clear where it starts and ends.
4764         This change makes it so that such an entry is always separated
4765         from others by a header line, even when that header would
4766         otherwise be suppressed.
4767         * build-aux/gitlog-to-changelog: Implement the above.
4768         Inspired by a related request from Stefano Lattarini in
4769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4770
4771 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4772
4773         announce-gen: fix `cmd' typo in diagnostic
4774         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4775         diagnostic: a missing '$' meant that the command was not output.
4776
4777 2011-12-23  Jim Meyering  <meyering@redhat.com>
4778
4779         test-framework-sh: distribute init.sh
4780         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4781         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4782         fail due to the lack of init.sh.
4783
4784         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4785         * modules/atexit-tests: Rather than listing tests/init.sh,
4786         now that there's a module for it, simply depend on that new module.
4787         * modules/closein-tests: Likewise.
4788         * modules/exclude-tests: Likewise.
4789         * modules/getcwd-tests: Likewise.
4790         * modules/perror-tests: Likewise.
4791         * modules/pread-tests: Likewise.
4792         * modules/pwrite-tests: Likewise.
4793         * modules/vc-list-files-tests: Likewise.
4794         * modules/verify-tests: Likewise.
4795         * modules/xalloc-die-tests: Likewise.
4796         * modules/xstrtoimax-tests: Likewise.
4797         * modules/xstrtol-tests: Likewise.
4798         * modules/xstrtoll-tests: Likewise.
4799         * modules/xstrtoumax-tests: Likewise.
4800         * modules/yesno-tests: Likewise.
4801
4802 2011-12-22  Jim Meyering  <meyering@redhat.com>
4803
4804         test-framework-sh: add minimal tests of init.sh's compare function
4805         * modules/test-framework-sh-tests: New file.
4806         * tests/test-init.sh: New file.
4807
4808         test-framework-sh: new module
4809         * modules/test-framework-sh: New file.
4810         * MODULES.html.sh (Support for maintaining and releasing projects):
4811         List it.
4812
4813         init.sh: do not emit simulated diff output to stderr
4814         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4815
4816 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4817
4818         .gitignore: ignore gnulib.dvi and regex.info
4819         * doc/.gitignore:add gnulib.dvi and regex.info
4820
4821 2011-12-22  Jim Meyering  <meyering@redhat.com>
4822
4823         init.sh: correct previous change
4824         * tests/init.sh (compare): My previous change was wrong.
4825         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4826
4827         init.sh: avoid unwarranted test failure when using "set -e"
4828         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4829         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4830         a use like "compare exp out" would get evoke an unconditional failure.
4831
4832 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4833
4834         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4835         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4836         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4837         autoreconf that did not.
4838         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4839         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4840
4841 2011-12-17  Jim Meyering  <meyering@redhat.com>
4842
4843         bootstrap: remove some now-unneeded code
4844         This script arose back when gnulib-tool was young.
4845         Since then, it has seen improvements that render much of this
4846         script unnecessary.  In particular, it can now make symlinks
4847         to the files it uses.  Also, I no longer see as much value in
4848         marking files as read-only via comments.
4849         If you relied on the symlink-creation feature of the preceding
4850         version of this script, you can get most of that functionality
4851         by adding the --symlink option to the definition of
4852         gnulib_tool_option_extras in your bootstrap.conf file.
4853         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4854         Run autopoint and libtoolize *before* gnulib-tool.
4855         After it, run an abbreviated autoreconf, rather than a loop around
4856         all tools.
4857         (slirp, bt_mark_as_generated): Remove functions.
4858
4859 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         ftoastr: fix typo
4862         * lib/ftoastr.h: Fix misspelling in comment.
4863
4864 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4865
4866         * top/README-release: fix punctuation.
4867
4868 2011-12-17  Jim Meyering  <meyering@redhat.com>
4869
4870         bootstrap: correct the recent buildreq change
4871         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4872         had no effect.
4873         * build-aux/bootstrap (buildreq): Bracket each search term with
4874         "*...*", so that the shell "case" statement works as intended.
4875         Add comments.
4876
4877 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4878
4879         build: let bootstrap resort to wget when downloading .po files
4880         * build-aux/bootstrap (download_po_files): Fallback to wget when
4881         downloading the .po files via rsync fails.  This is necessary to
4882         bootstrap from behind a strict firewall.
4883
4884 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4885
4886         stdint: don't assume C++11 when compiling with g++
4887         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4889         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4890         work also in C++ before C++11, as that improperly inhibits
4891         generating a substitute stdint.h for that case.
4892
4893 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4894
4895         alloca: protect comment from gnulib-tool
4896         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4897         that gnulib-tool doesn't think it's a license, and munge it to
4898         say "GCC version 3".
4899
4900 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4901
4902         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4903         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4904         $(abs_top_builddir) instead of $(top_builddir).
4905
4906 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4907
4908         strftime-tests: also test nanoseconds
4909         * tests/test-strftime.c (T): Add a test of %N.
4910
4911 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4912
4913         inttypes, stdint: add C++11 support
4914         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4915         when including inttypes.h and stdint.h.  Support this change to
4916         the standard.
4917         * doc/posix-headers/inttypes.texi (inttypes.h):
4918         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4919         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4920         Define if not defined already, for the benefit of pre-C++11 hosts.
4921         Define the standard format macros (e.g., PRId8) always.
4922         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4923         Likewise, if __cpluspus.  Define the standard constant and limit
4924         macros (e.g., INT8_C, INT8_MAX) always.
4925         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4926         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4927         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4928         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4929         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4930         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4931         Likewise.
4932
4933 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4934
4935         nonblocking tests: Fix test failure on Linux/PPC.
4936         Suggested by Prerna Saxena in
4937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4938         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4939         Set to 1100000.
4940
4941 2011-12-12  Jim Meyering  <meyering@redhat.com>
4942
4943         argmatch: don't hard-code `' when listing valid option arguments
4944         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4945         use the quote function to add quotes.  Use fputs rather than
4946         fprintf for the format string with no format directive.
4947
4948 2011-12-07  Eric Blake  <eblake@redhat.com>
4949
4950         bootstrap: detect tools required by gnulib-tool
4951         * build-aux/bootstrap (buildreq): Provide minimum implicit
4952         dependencies.
4953         * DEPENDENCIES: Mention patch as a prereq.
4954
4955 2011-12-04  Bruno Haible  <bruno@clisp.org>
4956
4957         sethostname: Port to Windows platforms.
4958         * lib/sethostname.c: Provide an alternate implementation for Windows
4959         platforms.
4960         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4961         (main): Skip the test if sethostname() fails with EPERM. On Windows
4962         platforms, don't check the result of gethostname().
4963
4964 2011-12-04  Bruno Haible  <bruno@clisp.org>
4965             Jim Meyering  <meyering@redhat.com>
4966
4967         tests: Avoid spurious error message on platforms without mktemp program.
4968         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4969
4970 2011-12-04  Bruno Haible  <bruno@clisp.org>
4971
4972         sethostname: Fix documentation.
4973         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4974         "not fixed" section.
4975
4976 2011-12-03  Bruno Haible  <bruno@clisp.org>
4977
4978         gnulib-tool: Verify that the License field is present and non-empty.
4979         * gnulib-tool (func_get_license_raw): New function, extracted from
4980         func_get_license.
4981         (func_get_license): Use it. Warn if the module is not a test module and
4982         has no license.
4983         Suggested by Jim Meyering.
4984
4985 2011-12-03  Bruno Haible  <bruno@clisp.org>
4986
4987         sethostname tests: Fix link error on mingw.
4988         * tests/test-sethostname1.c: New file, extracted from
4989         tests/test-sethostname.c.
4990         * tests/test-sethostname2.c: New file, extracted from
4991         tests/test-sethostname.c.
4992         * tests/test-sethostname.c: Remove file.
4993         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4994         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4995         (Depends-on): Add gethostname.
4996         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4997         Link the latter with $(GETHOSTNAME_LIB).
4998
4999         sethostname tests: Fix compilation error on mingw.
5000         * tests/test-sethostname.c: Don't include <sys/types.h>.
5001         (geteuid): Use a dummy value without uid_t.
5002         * modules/sethostname-tests (Depends-on): Remove sys_types.
5003
5004         sethostname tests: Avoid a gcc warning.
5005         * tests/test-sethostname.c (main): Remove an unused variable.
5006
5007         Tweak last commit.
5008         * modules/sethostname-tests (Files): Sort by decreasing importance.
5009         (configure.ac): Check for geteuid.
5010         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5011         the test when there's nothing to test. Drop an unnecessary cast.
5012         Improve an error message. Verify that the final sethostname() call
5013         succeeds.
5014
5015 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5016
5017         Add a test suite for the sethostname module.
5018         * modules/sethostname-tests: New file.  A test program
5019         for the sethostname module.
5020         * tests/test-sethostname.c: Likewise.
5021
5022 2011-12-03  Bruno Haible  <bruno@clisp.org>
5023
5024         Tweak last commit.
5025         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5026         Fix preprocessor directives indentation. Fix typos.
5027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5028         * modules/unistd (Makefile): Likewise.
5029
5030 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5031
5032         Integrate the sethostname module into unistd.
5033         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5034         into the unistd.h header.
5035         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5036         preprocessor directives.
5037         * modules/unistd: Setup the Makefile substitutions of the
5038         SETHOSTNAME preprocessor directives.
5039
5040 2011-12-03  Bruno Haible  <bruno@clisp.org>
5041
5042         Tweak last commit.
5043         * lib/sethostname.c: Don't include <string.h>.
5044         (sethostname): No need to copy the argument string to the stack. Don't
5045         call clearerr. Preserve errno when fprintf failed.
5046         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5047         Don't invoke AC_REPLACE_FUNCS.
5048         * modules/sethostname (Link): Remove empty section.
5049         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5050         failure problem.
5051
5052 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5053
5054         New module 'sethostname'.
5055         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5056         for systems that lack it.
5057         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5058         sethostname declaration and function.
5059         * modules/sethostname: New file.  Define the sethostname module.
5060
5061 2011-12-03  Bruno Haible  <bruno@clisp.org>
5062
5063         Tweak last commit.
5064         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5065
5066 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5067
5068         Split the HOST_NAME_MAX detection into a separate m4 macro.
5069         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5070         macro so it can be used by the pending sethostname module.
5071
5072 2011-12-03  Bruno Haible  <bruno@clisp.org>
5073
5074         Fix module descriptions syntax.
5075         * modules/argv-iter (License): Fix syntax.
5076         * modules/di-set (License): Likewise.
5077         * modules/ino-map (License): Likewise.
5078         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5079
5080 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5081
5082         stdalign: port to Clang 3.0
5083         Problem reported by Simon Josefsson in
5084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5085         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5086         which has <stdalign.h> but which does not define alignof.
5087         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5088
5089 2011-12-01  Eric Blake  <eblake@redhat.com>
5090
5091         mktempd: silence dd usage
5092         * build-aux/mktempd (rand_bytes): Silence dd.
5093
5094 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5095
5096         manywarnings: Don't mention gcc version in docstring.
5097         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5098         Jim Meyering <meyering@redhat.com>.
5099
5100 2011-11-30  Jim Meyering  <meyering@redhat.com>
5101
5102         hash: mark a few floating point constants with "f" suffix
5103         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5104         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5105         floating point constants with "f", since they're destined to be
5106         saved/used as "float"s.
5107
5108 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5109
5110         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5111         * tests/test-float.c (test_long_double): Correct and re-enable the
5112         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5113
5114 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5115
5116         Avoid subtracting two pointers that don't point into the same block.
5117         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5118         only pointers into the same memory block are subtracted. We cannot
5119         assume that sizeof (ptrdiff_t) == sizeof (void *).
5120
5121 2011-11-29  Eric Blake  <eblake@redhat.com>
5122
5123         maint.mk: add syntax check for use of compare from init.sh
5124         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5125         moved here from coreutils.
5126
5127         manywarnings: drop -Wunsuffixed-float-constants
5128         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5129         '1.0D', which is the only way to silence this warning for 'double'.
5130
5131 2011-11-29  Jim Meyering  <meyering@redhat.com>
5132
5133         hash: mark compute_bucket_size with the pure attribute
5134         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5135
5136         quotearg, propername: correct pragma guard expression
5137         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5138         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5139
5140 2011-11-28  Jim Meyering  <meyering@redhat.com>
5141
5142         propername: do not mark proper_name with the const attribute
5143         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5144         since it examines data pointed to by its parameter.
5145         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5146         the suggestion from -Wsuggest-attribute=const.
5147
5148         propername: mark one more function as const
5149         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5150
5151 2011-11-27  Jim Meyering  <meyering@redhat.com>
5152
5153         mark functions with const and pure attributes
5154
5155         Mark functions per suggestions from gcc-4.6 when using these options:
5156         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5157         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5158         Follow these guidelines: when possible, apply the attribute to
5159         an extern declaration, not to its definition.  Apply it to the
5160         definition only when the definition is static.
5161         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5162         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5163         * lib/base64.h (isbase64): Likewise.
5164         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5165         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5166         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5167         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5168         (c_tolower, c_toupper): Likewise.
5169         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5170         * lib/chdir-long.c (find_non_slash): Likewise.
5171         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5172         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5173         * lib/file-type.h (file_type): Likewise.
5174         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5175         * lib/filevercmp.c (verrevcmp): Likewise.
5176         * lib/freadahead.h (freadahead): Likewise.
5177         * lib/fts.c (fts_maxarglen): Likewise.
5178         * lib/hash-pjw.h (hash_pjw): Likewise.
5179         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5180         * lib/hash.c (is_prime, next_prime): Likewise.
5181         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5182         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5183         (hash_table_ok, hash_get_first, hash_string): Likewise.
5184         (compute_bucket_size): Likewise.
5185         * lib/i-ring.h (i_ring_empty): Likewise.
5186         * lib/isnan.c (isnanl): Likewise.
5187         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5188         * lib/memcasecmp.h (memcasecmp): Likewise.
5189         * lib/memchr2.h (memchr2): Likewise.
5190         * lib/memcmp2.h (memcmp2): Likewise.
5191         * lib/parse-datetime.y (lookup_zone): Likewise.
5192         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5193         [!WINDOWS_SOCKETS]: Likewise.
5194         * lib/strnlen1.h (strnlen1): Likewise.
5195         * lib/uniwidth.in.h (uc_width): Likewise.
5196         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5197         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5198         (quoting_options_from_style): Add a comment.
5199         * lib/propername.h (proper_name): Add a comment.
5200
5201 2011-11-27  Bruno Haible  <bruno@clisp.org>
5202
5203         Remove unused macros from !_LIBC code in glibc-borrowed files.
5204         * lib/fnmatch.c (STRCOLL): Remove macro.
5205         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5206         * lib/glob.c (__stat, __readdir64): Remove macros.
5207         * lib/tempname.c (__open64, __xstat64): Remove macros.
5208         Suggested by Paul Eggert.
5209
5210 2011-11-27  Bruno Haible  <bruno@clisp.org>
5211
5212         getcwd: Fix link error on MSVC 9.
5213         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5214
5215 2011-11-27  Bruno Haible  <bruno@clisp.org>
5216
5217         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5218         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5219         HAVE_OPENDIR is 0.
5220         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5221         HAVE_CLOSEDIR is 0.
5222         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5223         is 0.
5224         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5225
5226 2011-11-27  Bruno Haible  <bruno@clisp.org>
5227
5228         getcwd: Fix bug from 2011-08-17.
5229         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5230         platforms that need it.
5231         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5232         code of 4 to be a failure, not a success. This ensures that
5233         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5234
5235 2011-11-27  Bruno Haible  <bruno@clisp.org>
5236
5237         binary-io tests: Avoid test failure on mingw when libtool is used.
5238         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5239         Don't verify the size of t-bin-out1.tmp here.
5240         * tests/test-binary-io.sh: Verify it here.
5241         Reported by Simon Josefsson.
5242
5243 2011-11-26  Bruno Haible  <bruno@clisp.org>
5244
5245         Fix conflict between two instantiations of module 'unistd'.
5246         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5247         ${include_guard_prefix} also in the autoconf snippet.
5248         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5250         GNULIB_UNISTD_H_GETOPT.
5251         * modules/getopt-posix (configure.ac): Set the
5252         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5253         * modules/getopt-gnu (configure.ac): Likewise.
5254         * modules/unistd (Makefile.am): Change the substitution value of
5255         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5256         Reported by Simon Josefsson.
5257
5258 2011-11-25  Bruno Haible  <bruno@clisp.org>
5259
5260         pagealign_alloc: Doc and comments.
5261         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5262         module.
5263         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5264
5265 2011-11-25  Jim Meyering  <meyering@redhat.com>
5266
5267         test-update-copyright.sh: avoid false-positive failure
5268         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5269         around false positive failure on Cygwin/Windows.  The latter was
5270         matching erroneously-created files with names like
5271         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5272
5273 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5274
5275         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5276         * m4/valgrind-tests.m4: Check that the parameters that will be
5277         used works, not just a subset of them.  Reported by Bruno Haible
5278         <bruno@clisp.org>.
5279
5280 2011-11-24  Jim Meyering  <meyering@redhat.com>
5281
5282         test-stdalign.c: comment out long double tests
5283         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5284         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5285         error: '_Alignas' specifiers cannot reduce alignment of \
5286         'static_longdouble_alignas'.
5287
5288 2011-11-22  Jim Meyering  <meyering@redhat.com>
5289
5290         init.sh: make "compare /dev/null FILE" output more readable
5291         * tests/init.sh (compare_): Document the preferred order of arguments.
5292         (emit_diff_u_header_): New function.
5293         (compare_dev_null_): Emit a simulated diff, rather than just the
5294         contents of the unexpected file.  Suggestion from Bruno Haible.
5295
5296 2011-11-21  Jim Meyering  <meyering@redhat.com>
5297             Eric Blake  <eblake@redhat.com>
5298
5299         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5300         * tests/init.sh: Make our compare function slightly more portable.
5301         Reported by Bruno Haible in
5302         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5303
5304 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5305
5306         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5307         before using it, in code that ends up in config.h.
5308
5309 2011-11-20  Bruno Haible  <bruno@clisp.org>
5310
5311         getcwd: Work around getcwd bug on AIX 5..7.
5312         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5313         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5314         Use a different value for gl_cv_func_getcwd_path_max. Move the
5315         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5316         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5317         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5318         Define HAVE_MINIMALLY_WORKING_GETCWD.
5319         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5320         where it is not even minimally working, that is, on AIX.
5321         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5322         m4/getcwd-path-max.m4.
5323         (main): Update exit code computation.
5324         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5325         getcwd does not handle long file names.
5326
5327 2011-11-20  Bruno Haible  <bruno@clisp.org>
5328
5329         getcwd: Fix bug from 2009-09-10.
5330         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5331         like "no".
5332
5333 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5334
5335         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5336
5337 2011-11-20  Bruno Haible  <bruno@clisp.org>
5338
5339         fma tests: Avoid shadowing local variables.
5340         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5341         expected.
5342
5343 2011-11-20  Bruno Haible  <bruno@clisp.org>
5344
5345         copysignf tests: Fix.
5346         * tests/test-copysignf.c: Fix signature check.
5347
5348 2011-11-20  Bruno Haible  <bruno@clisp.org>
5349
5350         fma: Remove unused code.
5351         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5352         unused macros.
5353
5354 2011-11-20  Bruno Haible  <bruno@clisp.org>
5355
5356         sethostname: Fix doc about AIX.
5357         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5358         sethostname; it has it.
5359
5360         sethostname: Mention more portability problems.
5361         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5362         problem.
5363         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5364
5365 2011-11-19  Bruno Haible  <bruno@clisp.org>
5366
5367         Depend on module fcntl-h when AT_FDCWD is used.
5368         * modules/utimens (Depends-on): Add fcntl-h.
5369         * modules/areadlinkat (Depends-on): Likewise.
5370         * modules/areadlinkat-with-size (Depends-on): Likewise.
5371         * modules/faccessat (Depends-on): Likewise.
5372         * modules/fchmodat (Depends-on): Likewise.
5373         * modules/fchownat (Depends-on): Likewise.
5374         * modules/getcwd (Depends-on): Likewise.
5375         * modules/mkdirat (Depends-on): Likewise.
5376         * modules/mkfifoat (Depends-on): Likewise.
5377         * modules/readlinkat (Depends-on): Likewise.
5378         * modules/symlinkat (Depends-on): Likewise.
5379         * modules/dup2-tests (Depends-on): Likewise.
5380         * modules/fdutimensat-tests (Depends-on): Likewise.
5381         * modules/futimens-tests (Depends-on): Likewise.
5382
5383 2011-11-19  Bruno Haible  <bruno@clisp.org>
5384
5385         euidaccess: Update a comment.
5386         * lib/euidaccess.c: Update comment about platforms with faccessat.
5387
5388 2011-11-19  Bruno Haible  <bruno@clisp.org>
5389
5390         openat: Fix file list.
5391         * modules/openat (Files): Remove lib/at-func.c.
5392
5393 2011-11-19  Bruno Haible  <bruno@clisp.org>
5394
5395         fstatat: Simplify.
5396         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5397         gnulib should define rpl_fstatat, there is a
5398         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5399
5400 2011-11-19  Bruno Haible  <bruno@clisp.org>
5401
5402         Ensure 'inline' can be used in tests/test-utimens-common.h.
5403         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5404         * modules/futimens-tests (configure.ac): Likewise.
5405         * modules/utimens-tests (configure.ac): Likewise.
5406         * modules/utimensat-tests (configure.ac): Likewise.
5407
5408 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5409
5410         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5411         not hash_insert0.
5412         (hash_insert_if_absent): Doc fix.
5413
5414 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5415
5416         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5417
5418 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5419
5420         test-getcwd: disambiguate exit status
5421         * tests/test-getcwd.c (test_long_name): Return 0..7.
5422         (main): Exit with an unambiguous exit status.  The old
5423         code yielded a mysterious mixture of two failure codes.
5424
5425         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5426         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5427         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5428         rpl_fstatat or fstatat.  This should fix the other problem
5429         reported by Kai Habel in
5430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5431         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5433         and I reproduced it on a Solaris 8 host we still have in production.
5434
5435 2011-11-18  Jim Meyering  <meyering@redhat.com>
5436
5437         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5438         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5439         Add a sentence to the comment.
5440         (hash_insert0): New function that simply calls hash_insert_if_absent.
5441         * lib/hash.h (hash_insert_if_absent): Declare it.
5442         (hash_insert0): Add deprecation attribute.
5443         (_GL_ATTRIBUTE_DEPRECATED): Define.
5444         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5445         not hash_insert0.
5446         * NEWS: Mention it, even though it's not really an incompatible change.
5447
5448 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5449
5450         openat: avoid compilation failure due to lack of <errno.h> inclusion
5451         * lib/openat.c: Include <errno.h>.
5452
5453 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5454
5455         * modules/getcwd (Depends-on): Add fdopendir.
5456         This fixes one of the two problems reported by Kai Habel in
5457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5458
5459         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5460         stdalign problem reported by Ian Beckwith in
5461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5462         * modules/crypto/gc-arcfour (Depends-on):
5463         Depend conditionally on crypto/arcfour.
5464         * modules/crypto/gc-arctwo (Depends-on):
5465         Depend conditionally on crypto/arctwo.
5466         * modules/crypto/gc-des (Depends-on):
5467         Depend conditionally on crypto/des.
5468         * modules/crypto/gc-hmac-md5 (Depends-on):
5469         Depend conditionally on crypto/hmac-md5.
5470         * modules/crypto/gc-hmac-sha1 (Depends-on):
5471         Depend conditionally on crypto/hmac-sha1.
5472         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5473         * modules/crypto/gc-md4 (Depends-on):
5474         Depend conditionally on crypto/md4.
5475         * modules/crypto/gc-md5 (Depends-on):
5476         Depend conditionally on crypto/md5.
5477         * modules/crypto/gc-rijndael (Depends-on):
5478         Depend conditionally on crypto/rijndael.
5479         * modules/crypto/gc-sha1 (Depends-on):
5480         Depend conditionally on crypto/sha1.
5481         * modules/crypto/gc-arcfour:
5482         * modules/crypto/gc-arctwo:
5483         * modules/crypto/gc-des:
5484         * modules/crypto/gc-hmac-md5:
5485         * modules/crypto/gc-hmac-sha1:
5486         * modules/crypto/gc-md2:
5487         * modules/crypto/gc-md4:
5488         * modules/crypto/gc-md5:
5489         * modules/crypto/gc-rijndael:
5490         * modules/crypto/gc-sha1:
5491         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5492         now that the conditional dependencies do the work for us.
5493
5494 2011-11-17  Jim Meyering  <meyering@redhat.com>
5495
5496         tests: factor st_ctime-comparison out of two headers
5497         * tests/test-utimens-common.h (ctime_compare): Define.
5498         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5499         * tests/test-lutimens.h (test_lutimens): Likewise.
5500         * tests/test-utimens.h (test_utimens): Likewise.
5501
5502         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5503         Invoke the test program via an init.sh-using wrapper.
5504         * tests/test-getcwd.sh: New file.
5505         * modules/getcwd-tests (Files): Add it.
5506         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5507
5508 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5509
5510         gitlog-to-changelog: support multi-author commits.
5511         The FSF cares about keeping track of all authors of patches to its
5512         projects, but Git doesn't provide obvious support for multi-author
5513         changesets. Consensus seems to be forming around the use of extra
5514         Signed-off-by inspired lines in the log message formatted as
5515         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5516         multi-author commits between version control systems.
5517         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5518         log message and output in standard ChangeLog multi-author format.
5519         Reported by Peter Rosin <peda@lysator.liu.se>
5520
5521 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5522             Bruno Haible  <bruno@clisp.org>
5523
5524         Fix some modules' file list.
5525         * modules/fstatat (Files): Add m4/lstat.m4.
5526         * modules/openat (Files): Likewise.
5527         * modules/unlinkat (Files): Likewise.
5528
5529 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5530
5531         maint.mk: fix tight-scope.mk generation in VPATH builds.
5532         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5533         reference with $(srcdir) so that the file is found correctly even
5534         when running `make syntax-check' in a VPATH build.
5535
5536 2011-11-13  Bruno Haible  <bruno@clisp.org>
5537             Jim Meyering  <meyering@redhat.com>
5538
5539         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5540         * tests/init.sh (compare): Remove "No differences encountered" or
5541         synonymous output from the 'diff' program.
5542
5543 2011-11-13  Bruno Haible  <bruno@clisp.org>
5544
5545         Makefile: Tweak indentation.
5546         * Makefile: Use tab as first character in every line that contains rule
5547         commands.
5548
5549 2011-11-13  Bruno Haible  <bruno@clisp.org>
5550
5551         Syntax check for copyright statements.
5552         * check-copyright: New file.
5553         * Makefile (sc_check_copyright): New rule.
5554
5555 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5556
5557         * build-aux/git-version-gen: Add --prefix to configure the tag
5558         match string.
5559
5560 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5561
5562         * build-aux/git-version-gen: Add --help and --version.
5563
5564 2011-11-12  Jim Meyering  <meyering@redhat.com>
5565
5566         revamp the other test-exclude?.sh scripts to use init.sh, too
5567         * tests/test-exclude1.sh: Use init.sh.
5568         * tests/test-exclude2.sh: Likewise.
5569         * tests/test-exclude3.sh: Likewise.
5570         * tests/test-exclude4.sh: Likewise.
5571         * tests/test-exclude5.sh: Likewise.
5572         * tests/test-exclude6.sh: Likewise.
5573         * tests/test-exclude7.sh: Likewise.
5574         * tests/test-exclude8.sh: Likewise.
5575         * modules/exclude-tests (Files): List init.sh.
5576
5577         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5578         These shell scripts ignored failure of the binary test-exclude,
5579         so making the latter return 77 didn't cause them to be skipped.
5580         * tests/test-exclude5.sh: Exit with test-exclude's error status
5581         when that program fails.  Revamp to use init.sh.
5582         * tests/test-exclude2.sh: Likewise.
5583
5584         test-exclude: fix a typo
5585         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5586
5587 2011-11-11  Bruno Haible  <bruno@clisp.org>
5588
5589         obstack: Fix compilation error on MSVC 9.
5590         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5591
5592 2011-11-11  Jim Meyering  <meyering@redhat.com>
5593
5594         test-exclude: skip tests rather than failing on deficient systems
5595         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5596         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5597         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5598         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5599
5600 2011-11-10  Bruno Haible  <bruno@clisp.org>
5601
5602         ptsname_r test: Avoid gcc warning on glibc systems.
5603         * tests/test-ptsname_r.c (null_ptr): New function.
5604         (test_errors): Use it.
5605
5606 2011-11-10  Bruno Haible  <bruno@clisp.org>
5607
5608         ptsname_r: Avoid compilation error on OSF/1 5.1.
5609         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5611         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5612         function is not declared or incompatibly declared.
5613         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5614         * modules/ptsname_r (Depends-on, configure.ac): Update.
5615         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5616
5617 2011-11-10  Bruno Haible  <bruno@clisp.org>
5618
5619         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5620         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5621         When cross-compiling, guess yes on all platforms except AIX.
5622         Reported by Ludovic Courtès <ludo@gnu.org>.
5623
5624 2011-11-09  Bruno Haible  <bruno@clisp.org>
5625
5626         ptsname_r tests: Fix bugs.
5627         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5628         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5629
5630 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5631
5632         fstatat: work with cross-compilation
5633         Problem reported by Ludovic Courtès in
5634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5635         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5636         "cross-compiling" and assume the bug is present.  Replace
5637         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5638         an inverted sense, to be more conservative about our assumptions.
5639         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5640
5641 2011-11-09  Bruno Haible  <bruno@clisp.org>
5642
5643         Improve MODULES.html output.
5644         * modules/mkfifoat (Description): Use the word "function".
5645         * modules/readlinkat (Description): Likewise.
5646         * modules/symlinkat (Description): Likewise.
5647
5648 2011-11-09  Eric Blake  <eblake@redhat.com>
5649
5650         ptsname_r-tests: new test module
5651         * modules/ptsname_r-tests: New module.
5652         * tests/test-ptsname_r.c: New file.
5653
5654         ptsname_r: new module
5655         * modules/ptsname_r: New module.
5656         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5657         * lib/ptsname.c (__ptsname_r): Split...
5658         * lib/ptsname_r.c: ...into new file.
5659         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5660         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5661         * modules/stdlib (Makefile.am): Substitute witnesses.
5662         * lib/stdlib.in.h (ptsname_r): Declare it.
5663         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5664         * MODULES.html.sh (Misc): Likewise.
5665         * modules/ptsname (Depends-on): Alter dependency.
5666         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5667
5668 2011-11-09  Jim Meyering  <meyering@redhat.com>
5669
5670         announce-gen: be more concise when there's only one URL+tarball
5671         * build-aux/announce-gen (get_tool_versions): When you distribute
5672         only one type of tarball, combine the first two "Here are..."
5673         sections and make the key-checking grammar independent of
5674         how many tarballs there are.
5675
5676 2011-11-09  Eric Blake  <eblake@redhat.com>
5677
5678         openpty: provide a stub on mingw
5679         * lib/pty.in.h (includes): Provide forward declarations.
5680         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5681
5682         raise: fix mingw handling of SIGPIPE
5683         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5684
5685 2011-11-08  Bruno Haible  <bruno@clisp.org>
5686
5687         More conditional dependencies.
5688         * modules/faccessat (Depends-on): Add conditions.
5689         * modules/fchmodat (Depends-on): Likewise.
5690         * modules/fchownat (Depends-on): Likewise.
5691         * modules/fstatat (Depends-on): Likewise.
5692         * modules/mkfifoat (Depends-on): Likewise.
5693         * modules/readlinkat (Depends-on): Likewise.
5694         * modules/symlinkat (Depends-on): Likewise.
5695         * modules/unlinkat (Depends-on): Likewise.
5696         * modules/utimensat (Depends-on): Likewise.
5697         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5698         * modules/linkat (Depends-on): Refine the conditions.
5699         * modules/renameat (Depends-on): Likewise.
5700
5701 2011-11-08  Bruno Haible  <bruno@clisp.org>
5702
5703         faccessat: Move AC_LIBOBJ invocation to module description.
5704         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5705         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5706         invocation from here...
5707         * modules/faccessat (configure.ac): ... to here. Invoke
5708         gl_PREREQ_FACCESSAT.
5709
5710 2011-11-08  Bruno Haible  <bruno@clisp.org>
5711
5712         faccessat: Simplify autoconf macro.
5713         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5714         gl_FUNC_EUIDACCESS.
5715
5716 2011-11-08  Bruno Haible  <bruno@clisp.org>
5717
5718         renameat: Fix dependencies.
5719         * modules/renameat (Depends-on): Add stdbool.
5720
5721 2011-11-08  Bruno Haible  <bruno@clisp.org>
5722
5723         mkfifoat: Fix module description.
5724         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5725         not gl_UNISTD_MODULE_INDICATOR.
5726
5727 2011-11-08  Bruno Haible  <bruno@clisp.org>
5728
5729         fstatat: Remove unused dependency.
5730         * modules/fstatat (Depends-on): Remove fstat.
5731
5732 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5733
5734         GNUmakefile: behave when Makefile is missing.
5735         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5736
5737 2011-11-08  Bruno Haible  <bruno@clisp.org>
5738
5739         openat: Conditionalize dependencies.
5740         * lib/openat.c: Reduce the scope of some #includes.
5741         * modules/openat (Depends-on): Add conditions.
5742
5743 2011-11-07  Jim Meyering  <meyering@redhat.com>
5744
5745         maint.mk: extract GPG key ID without using a temporary file
5746         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5747         without using a temporary file.  Based on a suggestion from Werner Koch
5748         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5749
5750 2011-11-07  Eric Blake  <eblake@redhat.com>
5751
5752         grantpt: fix typo
5753         * lib/stdlib.in.h (grantpt): Check correct function.
5754
5755         maint.mk: silence new syntax check
5756         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5757
5758 2011-11-06  Bruno Haible  <bruno@clisp.org>
5759
5760         Doc about floating-point and math API.
5761         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5762         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5763
5764 2011-11-06  Bruno Haible  <bruno@clisp.org>
5765
5766         stdalign tests: Skip the test when compiled by Sun C.
5767         * tests/test-stdalign.c (main): Skip the test on Sun C.
5768
5769 2011-11-06  Bruno Haible  <bruno@clisp.org>
5770
5771         ansi-c++-opt: Complete the 2011-06-05 change.
5772         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5773         does not support namespaces, set the variable to "no", not to ":".
5774
5775 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5776
5777         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5778
5779 2011-11-06  Bruno Haible  <bruno@clisp.org>
5780
5781         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5782         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5783         (minus_zerol) [HP-UX]: New macro.
5784         (unary_minus) [HP-UX]: New function.
5785         (copysignl) [HP-UX]: Use unary_minus function.
5786
5787 2011-11-06  Bruno Haible  <bruno@clisp.org>
5788
5789         ldexp, ldexpf, ldexpl: Enhance tests.
5790         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5791         and tests/test-ldexpl.c.
5792         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5793         LDEXP, MIN_EXP, MAX_EXP): New macros.
5794         Include test-ldexp.h.
5795         (main): Just call test_function.
5796         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5797         infinity.h, nan.h.
5798         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5799         MAX_EXP): New macros.
5800         Include test-ldexp.h.
5801         (x, y): Remove variables.
5802         (main): Just call test_function.
5803         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5804         infinity.h, nan.h.
5805         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5806         MAX_EXP): New macros.
5807         Include test-ldexp.h.
5808         (x, y): Remove variables.
5809         (main): Just call test_function.
5810         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5811         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5812         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5813         (Depends-on): Add isnand-nolibm, signbit, float.
5814         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5815         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5816         (Depends-on): Add isnanf-nolibm, signbit, float.
5817
5818 2011-11-06  Bruno Haible  <bruno@clisp.org>
5819
5820         math tests: Cosmetics.
5821         * tests/test-math-c++.cc: Reorder declarations.
5822
5823 2011-11-05  Bruno Haible  <bruno@clisp.org>
5824
5825         fma*: Simplify test.
5826         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5827         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5828
5829         Tests for module 'fmal'.
5830         * modules/fmal-tests: New file.
5831         * tests/test-fmal1.c: New file.
5832         * tests/test-fmal2.c: New file.
5833
5834         New module 'fmal'.
5835         * lib/math.in.h (fmal): New declaration.
5836         * lib/fmal.c: New file.
5837         * m4/fmal.m4: New file.
5838         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5840         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5841         REPLACE_FMAL.
5842         * modules/fmal: New file.
5843         * doc/posix-functions/fmal.texi: Mention the new module and the various
5844         bugs.
5845
5846         Tests for module 'fmaf'.
5847         * modules/fmaf-tests: New file.
5848         * tests/test-fmaf1.c: New file.
5849         * tests/test-fmaf2.c: New file.
5850
5851         New module 'fmaf'.
5852         * lib/math.in.h (fmaf): New declaration.
5853         * lib/fmaf.c: New file.
5854         * m4/fmaf.m4: New file.
5855         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5857         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5858         REPLACE_FMAF.
5859         * modules/fmaf: New file.
5860         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5861         bugs.
5862
5863         Tests for module 'fma'.
5864         * modules/fma-tests: New file.
5865         * tests/test-fma1.c: New file.
5866         * tests/test-fma1.h: New file.
5867         * tests/test-fma2.c: New file.
5868         * tests/test-fma2.h: New file.
5869
5870         New module 'fma'.
5871         * lib/math.in.h (fma): New declaration.
5872         * lib/fma.c: New file.
5873         * m4/fma.m4: New file.
5874         * m4/fegetround.m4: New file.
5875         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5877         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5878         REPLACE_FMA.
5879         * modules/fma: New file.
5880         * doc/posix-functions/fma.texi: Mention the new module and the various
5881         bugs.
5882
5883         Extend gl_MATHFUNC.
5884         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5885         Support 'void' as argument type.
5886         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5887
5888 2011-11-05  Jim Meyering  <meyering@redhat.com>
5889
5890         maint.mk: also prohibit inclusion of dirent.h without use
5891         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5892
5893 2011-11-05  Bruno Haible  <bruno@clisp.org>
5894
5895         ldexpl tests: Avoid test failure on MSVC 9.
5896         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5897         value. Needed in order to enforce the conversion from a value greater
5898         than LDBL_MAX to Infinity.
5899
5900 2011-11-05  Bruno Haible  <bruno@clisp.org>
5901
5902         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5903         * modules/at-internal: New file, extracted from modules/openat.
5904         * modules/openat-h: New file.
5905         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5906         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5907         * modules/openat (Description): Add reference to POSIX function.
5908         (Files): Remove lib/openat.h, lib/openat-proc.c.
5909         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5910         intprops, unistd.
5911         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5912         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5913         gl_FCNTL_MODULE_INDICATOR.
5914         (Include): Remove unistd.h, openat.h.
5915         * modules/areadlinkat (Files): Add lib/at-func.c.
5916         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5917         openat-die, openat-h, save-cwd.
5918         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5919         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5920         openat-die, openat-h, save-cwd, unistd.
5921         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5922         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5923         openat-h, save-cwd. Remove fcntl-h, openat.
5924         * modules/fchmodat (Files): Remove lib/openat.h.
5925         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5926         openat, stdbool, unistd.
5927         * modules/fchownat (Files): Remove lib/openat.h.
5928         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5929         openat, stdbool, sys_stat.
5930         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5931         lib/openat-proc.c.
5932         (Depends-on): Add at-internal.
5933         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5934         * modules/fstatat (Files): Remove lib/openat.h.
5935         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5936         stdbool, unistd.
5937         * modules/fts (Depends-on): Add openat-h.
5938         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5939         openat.
5940         * modules/mkdirat (Files): Remove lib/openat.h.
5941         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5942         openat, stdbool, sys_stat.
5943         * modules/mkfifoat (Files): Add lib/at-func.c.
5944         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5945         openat-h, save-cwd. Remove fcntl-h, openat.
5946         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5947         * modules/readlinkat (Files): Add lib/at-func.c.
5948         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5949         openat-h, save-cwd. Remove fcntl-h, openat.
5950         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5951         openat.
5952         * modules/selinux-at (Files): Add lib/at-func.c.
5953         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5954         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5955         * modules/symlinkat (Files): Add lib/at-func.c.
5956         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5957         openat-h, save-cwd. Remove fcntl-h, openat.
5958         * modules/unlinkat (Files): Remove lib/openat.h.
5959         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5960         stdbool.
5961         * modules/utimensat (Files): Add lib/at-func.c.
5962         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5963         openat-die, openat-h, save-cwd.
5964         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5965         * modules/fdutimensat-tests (Depends-on): Add openat.
5966         * modules/fstatat-tests (Depends-on): Add openat-h.
5967         * modules/readlinkat-tests (Depends-on): Add openat.
5968         * modules/symlinkat-tests (Depends-on): Add openat.
5969
5970 2011-11-05  Bruno Haible  <bruno@clisp.org>
5971
5972         openat: Include <stdbool.h>.
5973         * lib/openat.c: Include <stdbool.h>.
5974
5975 2011-11-04  Bruno Haible  <bruno@clisp.org>
5976
5977         fchownat, renameat, unlinkat: Fix dependencies.
5978         * modules/fchownat (Depends-on): Add fstatat.
5979         * modules/renameat (Depends-on): Likewise.
5980         * modules/unlinkat (Depends-on): Likewise.
5981
5982 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5983
5984         openat: remove direct dependency on dirent
5985         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5986         and hasn't been needed ever since fdopendir was split into its own
5987         module on 2009-08-31.
5988         * modules/openat (Depends-on): Remove dirent.
5989
5990 2011-11-04  Bruno Haible  <bruno@clisp.org>
5991
5992         renameat: Optimize code size.
5993         * modules/renameat (configure.ac): Don't compile at-func2.c if
5994         REPLACE_RENAMEAT is 1.
5995
5996 2011-11-04  Bruno Haible  <bruno@clisp.org>
5997
5998         openat tests: Fix file list.
5999         * modules/openat-tests (Files): Add tests/test-open.h.
6000
6001 2011-11-04  Bruno Haible  <bruno@clisp.org>
6002
6003         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6004         * modules/fchmodat (Depends-on): Add openat-die.
6005         * modules/fchownat (Depends-on): Likewise.
6006         * modules/linkat (Depends-on): Likewise.
6007         * modules/renameat (Depends-on): Likewise.
6008         * modules/openat (Depends-on): Add dirent.
6009
6010 2011-11-04  Jim Meyering  <meyering@redhat.com>
6011
6012         at-func*.c: fix comments
6013         * lib/at-func2.c: Correct/improve first-line comment.
6014         * lib/at-func.c: Correct grammar in first-line comment.
6015
6016 2011-11-04  Bruno Haible  <bruno@clisp.org>
6017
6018         New module 'mkdirat', split off from module 'openat'.
6019         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6020         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6021         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6022         * modules/mkdirat: New file, extracted from modules/openat.
6023         * modules/openat (Files): Remove lib/mkdirat.c.
6024         (Depends-on): Remove mkdir.
6025         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6026         (Include): Remove <sys/stat.h>.
6027         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6028         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6029         tests/test-mkdir.h.
6030         (Depends-on): Remove ignore-value.
6031         (Makefile.am): Remove rules for test-mkdirat.
6032         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6033         of module 'openat'.
6034         * NEWS: Mention the change.
6035
6036 2011-11-04  Bruno Haible  <bruno@clisp.org>
6037
6038         closedir: Avoid warning on mingw.
6039         * lib/closedir.c: Include <unistd.h>.
6040
6041 2011-11-04  Bruno Haible  <bruno@clisp.org>
6042
6043         New module 'fstatat', split off from module 'openat'.
6044         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6045         defined.
6046         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6047         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6048         gl_FUNC_FSTATAT.
6049         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6050         * modules/fstatat: New file, extracted from modules/openat.
6051         * modules/openat (Files): Remove lib/fstatat.c.
6052         (Depends-on): Remove lstat.
6053         (configure.ac): Remove AC_LIBOBJ of fstatat.
6054         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6055         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6056         tests/test-lstat.h, tests/test-stat.h.
6057         (Depends-on): Remove getcwd-lgpl.
6058         (Makefile.am): Remove rules for test-fstatat.
6059         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6060         of module 'openat'.
6061         * NEWS: Mention the change.
6062         * modules/getcwd (Depends-on): Add fstatat.
6063         * modules/linkat (Depends-on): Likewise.
6064         * modules/mkfifoat-tests (Depends-on): Likewise.
6065         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6066
6067 2011-11-03  Bruno Haible  <bruno@clisp.org>
6068
6069         New module 'unlinkat', split off from module 'openat'.
6070         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6071         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6072         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6073         * modules/unlinkat: New file, extracted from modules/openat. Correct
6074         the dependency conditions.
6075         * modules/openat (Files): Remove lib/unlinkat.c.
6076         (Depends-on): Remove rmdir, unlink.
6077         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6078         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6079         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6080         tests/test-rmdir.h, tests/test-unlink.h.
6081         (Depends-on): Remove unlinkdir.
6082         (Makefile.am): Remove rules for test-unlinkat.
6083         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6084         of module 'openat'.
6085         * NEWS: Mention the change.
6086         * modules/linkat-tests (Depends-on): Add unlinkat.
6087         * modules/mkfifoat-tests (Depends-on): Likewise.
6088         * modules/readlinkat-tests (Depends-on): Likewise.
6089
6090 2011-11-02  Bruno Haible  <bruno@clisp.org>
6091
6092         New module 'fchmodat', split off from module 'openat'.
6093         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6094         defined.
6095         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6096         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6097         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6098         * modules/fchmodat: New file, extracted from modules/openat.
6099         * modules/openat (Files): Remove lib/fchmodat.c.
6100         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6101         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6102         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6103         (Makefile.am): Remove rules for test-fchmodat.
6104         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6105         of module 'openat'.
6106         * NEWS: Mention the change.
6107
6108 2011-11-02  Jim Meyering  <meyering@redhat.com>
6109
6110         putenv: indent #definition of "environ" to placate cppi
6111         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6112
6113         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6114         Git logs are often treated as immutable, because editing them
6115         changes the SHA1 checksums of all descendants.  Thus, errors in
6116         git logs tend to stay there forever.  However, when we generate
6117         a ChangeLog file -- typically for distribution -- from that git log,
6118         we can actually make corrections in the generated file.  The key
6119         lies in recording in machine-readable/applicable form the desired
6120         corrections.  See --help for description and an example.
6121         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6122         (usage): Describe it; alphabetize option descriptions.
6123         (main): Honor the new option, carefully.
6124
6125 2011-11-01  Jim Meyering  <meyering@redhat.com>
6126
6127         gitlog-to-changelog: avoid an infloop
6128         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6129         that ends up being empty.
6130
6131 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6132
6133         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6134         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6135         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6136         contains (possibly-quoted) backslashes.  This should avoid
6137         all-too-common shell bugs if COMPLICATED contains backslashes in
6138         the "wrong" places.  Reported by David Evans in
6139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6140         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6141         because we want ASCII ranges.  Is there some reason we don't use
6142         the C locale everywhere in this script?
6143         (func_module, top level): Avoid unwanted pathname expansion when
6144         $repo_url_prefix or $repo_url_suffix_repl contain shell
6145         metacharacters like '?' and '*'.
6146
6147 2011-11-01  Bruno Haible  <bruno@clisp.org>
6148
6149         fchownat: Improve description.
6150         * modules/fchownat (Description): Add link to function.
6151
6152 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6153
6154         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6155         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6157         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6158
6159 2011-11-01  Bruno Haible  <bruno@clisp.org>
6160
6161         alignof: Avoid collision with stdalign module.
6162         * lib/alignof.h (alignof): Remove macro.
6163         * NEWS: Mention the change.
6164         Reported by Paul Eggert.
6165
6166 2011-11-01  Bruno Haible  <bruno@clisp.org>
6167
6168         New module 'fchownat', split off from module 'openat'.
6169         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6170         defined.
6171         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6172         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6173         invoke gl_FUNC_FCHOWNAT.
6174         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6175         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6176         * modules/fchownat: New file, extracted from modules/openat.
6177         * modules/openat (Files): Remove lib/fchownat.c.
6178         (Depends-on): Remove lchown.
6179         (configure.ac): Remove AC_LIBOBJ of fchownat.
6180         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6181         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6182         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6183         (Depends-on): Remove mgetgroups, usleep, stat-time.
6184         (configure.ac): Remove test for getegid.
6185         (Makefile.am): Remove rules for test-fchownat.
6186         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6187         of module 'openat'.
6188         * NEWS: Mention the change.
6189
6190 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6191
6192         stdalign: port better to MSVC and to Sun C 5.11
6193         This fixes some of the problems reported by Bruno Haible in
6194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6195         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6196         shortcomings of MSVC and of Sun C 5.11.
6197         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6198         around __declspec arg.
6199         * modules/stdalign-tests (Files): Add tests/macros.h.
6200         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6201         Include macros.h, for ASSERT.
6202         (DECLARE_ALIGNED): Remove.
6203         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6204         to catch bug), and to 1 if not (simplifies the rest of the code).
6205         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6206         (CHECK_AUTO): Remove.
6207         (CHECK_ALIGNED): Check only the alignment of the static vars,
6208         since auto var alignment isn't supported by Sun C 5.11.
6209         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6210         ASSERT failures are easier to diagnose.
6211
6212 2011-10-31  Bruno Haible  <bruno@clisp.org>
6213
6214         doc about some IRIX 5.3 problems.
6215         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6216         on IRIX 5.3.
6217         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6218         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6219         5.3.
6220         * doc/posix-functions/grantpt.texi: Likewise.
6221         * doc/posix-functions/unlockpt.texi: Likewise.
6222         * doc/posix-functions/lgamma.texi: Likewise.
6223         * doc/posix-functions/nextafter.texi: Likewise.
6224         * doc/posix-functions/remainder.texi: Likewise.
6225         * doc/posix-functions/select.texi: Mention misplaced declaration on
6226         IRIX 5.3.
6227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6228
6229 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6230
6231         gitlog-to-changelog: fix git-log invocation.
6232         git-log mishandles date strings before 1970-01-01 UTC, and there is
6233         no use to specify --since=1970-01-01 by default anyway.
6234         * build-aux/gitlog-to-changelog: By default, when no --since option
6235         was given, do not specify explicit --since option to git-log.
6236
6237 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6238
6239         gitlog-to-changelog: new option --append-dot.
6240         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6241         first non-blank line of each commit message terminated with a dot.
6242
6243 2011-10-30  Bruno Haible  <bruno@clisp.org>
6244
6245         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6246         * lib/ffsl.h: Include <config.h>.
6247         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6248
6249 2011-10-30  Jim Meyering  <meyering@redhat.com>
6250
6251         GNUmakefile: reenable "make syntax-check" for most projects
6252         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6253         build-aux variable", "syntax-check" would do nothing but succeed with
6254         the "No version control files detected..." diagnostic (unless you
6255         happened to override _build-aux via cfg.mk).
6256         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6257         to precede inclusion of maint.mk.  Otherwise, these variables would
6258         be used undefined in any project that does not override the default.
6259
6260 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6261
6262         gitlog-to-changelog: treat a message with only blank lines as empty.
6263         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6264         trailing blank lines before the code that issues a warning about an
6265         empty commit message.
6266
6267 2011-10-30  Jim Meyering  <meyering@redhat.com>
6268
6269         test-parse-datetime.c: avoid new DST-related false positive test failure
6270         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6271         based on the time/date we'll convert, not the current time.
6272         Otherwise, the moment we cross a DST boundary like today's in
6273         Europe, (CEST to CET), that offset ends up being one hour off.
6274
6275 2011-10-27  Bruno Haible  <bruno@clisp.org>
6276
6277         fstat: Tweak documentation.
6278         * modules/fstat (Description): More precise description.
6279
6280 2011-10-27  Bruno Haible  <bruno@clisp.org>
6281
6282         Update documentation regarding 'largefile' module.
6283         * doc/posix-functions/fstat.texi: Tweak wording.
6284         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6285         problems with huge directories and/or small ino_t types.
6286         * doc/posix-functions/readdir.texi: Likewise.
6287         * doc/posix-functions/rewinddir.texi: Likewise.
6288
6289 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6290
6291         maint.mk: don't maintain a second build-aux variable.
6292         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6293         depends on GNUmakefile, which already maintains a cfg.mk
6294         overridable $(_build-aux) for projects with a non-standard
6295         build-aux directory location, although without the $(srcdir)
6296         prefix.  Use that variable consistently instead of introducing a
6297         second one.  Adjust all call sites.
6298
6299 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6300
6301         Add stdalign module and use it in other modules.
6302         This is based on a previous proposal by Bruno Haible
6303         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6304
6305         stdalign: new module
6306         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6307         * modules/stdalign: New files.
6308         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6309         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6310
6311         stdalign-tests: new module
6312         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6313
6314         argp: use stdalign
6315         * lib/argp-parse.c: Include <stdalign.h>.
6316         (alignof): Remove.
6317         * modules/argp (Depends-on): Add stdalign.
6318
6319         crypto libraries: use stdalign
6320         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6321         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6322         Do not include <stdlib.h> twice, in md4.c.
6323         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6324         because we are accessing a pointer's bit-pattern, not a size.
6325         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6326         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6327         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6328         * modules/crypto/sha512: Likewise.
6329
6330         sys_socket: use stdalign, not alignof
6331         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6332         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6333
6334 2011-10-27  Bruno Haible  <bruno@clisp.org>
6335
6336         raise test: Avoid a test failure on Linux/MIPS.
6337         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6338         because 99 is a valid signal on Linux/MIPS.
6339
6340 2011-10-27  Bruno Haible  <bruno@clisp.org>
6341
6342         nonblocking tests: Fix test failure on Linux/MIPS.
6343         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6344         Set to 270000.
6345
6346 2011-10-27  Bruno Haible  <bruno@clisp.org>
6347
6348         utimensat: Work around problem on Linux/hppa.
6349         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6350         values.
6351         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6352
6353 2011-10-25  Jim Meyering  <meyering@redhat.com>
6354
6355         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6356         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6357         after symbols like NULL, size_t, etc.
6358         Reported by Alfred M. Szmidt.
6359
6360         maint.mk: exempt ENODATA from a syntax-check rule
6361         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6362         from the sc_prohibit_always-defined_macros syntax-check rule.
6363         Add a comment.  See this for more details:
6364         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6365
6366 2011-10-23  Jim Meyering  <meyering@redhat.com>
6367
6368         fts: close parent dir FD before returning from post-traversal fts_read
6369         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6370         unlink A, even though an FD open on A remained.  This is suboptimal
6371         (holding a file descriptor open longer than needed), but otherwise not
6372         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6373         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6374         that represents a real problem: it causes the removal of A to fail
6375         with e.g., "rm: cannot remove `A': Device or resource busy"
6376
6377         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6378         directory file descriptors.  After completing the final, FTS_DP,
6379         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6380         cache, but then proceeded to add a new FD to it via the subsequent
6381         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6382         final file descriptor would be closed only via fts_close's call to
6383         fd_ring_clear.  Now, it is usually closed earlier, via the final
6384         FTS_DP-returning fts_read call.
6385         * lib/fts.c (restore_initial_cwd): New function, converted from
6386         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6387         Update callers.
6388         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6389         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6390
6391 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6392             Bruno Haible  <bruno@clisp.org>
6393             Jim Meyering  <jim@meyering.net>
6394
6395         readme-release: improve safety of release prep instructions.
6396         * README-release: Don't git pull all branches when only master
6397         is needed for the release process.
6398         Run make maintainer-clean before changing trees and merging.
6399         Don't try to run ./configure right after git pull in case files
6400         that influence the bootstrap process have changed, move the
6401         ./configure step to after running ./bootstrap.
6402         Don't bootstrap "one last time"... it's the first time!
6403
6404 2011-10-22  Bruno Haible  <bruno@clisp.org>
6405
6406         errno, strerror-override: Support for MSVC 10.
6407         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6408         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6409         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6410         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6411         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6412         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6413         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6414         Assign values compatible with MSVC 10.
6415         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6416         New macros.
6417         (GNULIB_defined_EWINSOCK): New macro.
6418         * lib/strerror-override.c (strerror_override): Update accordingly.
6419         * lib/strerror-override.h: Likewise.
6420         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6421         longer equal to the corresponding errno value.
6422         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6423
6424 2011-10-22  Bruno Haible  <bruno@clisp.org>
6425
6426         perror: Recognize when test program crashes.
6427         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6428         strerror, set gl_cv_func_perror_works to no.
6429         Reported by Daniel Richard G. <skunk@iskunk.org>.
6430
6431         perror: Fix indentation.
6432         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6433
6434 2011-10-22  Bruno Haible  <bruno@clisp.org>
6435
6436         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6437         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6438         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6439         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6440         functions, not as a macro.
6441         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6442         macros.
6443         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6444         absence of macro.
6445         Suggested by Eric Blake.
6446         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6447
6448 2011-10-21  Bruno Haible  <bruno@clisp.org>
6449
6450         relocatable-prog-wrapper: Don't leave object files behind.
6451         * build-aux/install-reloc: Re-synchronize list of .o files to be
6452         removed with list of compilation units.
6453
6454 2011-10-20  Bruno Haible  <bruno@clisp.org>
6455
6456         openpty, posix_openpt: Remove code duplication.
6457         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6458         * lib/openpty.c: Include <stdlib.h>.
6459         (openpty): Use posix_openpt on all platforms except IRIX.
6460         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6461
6462 2011-10-20  Bruno Haible  <bruno@clisp.org>
6463
6464         unlockpt: Detect invalid argument.
6465         * lib/unlockpt.c: Include <fcntl.h>.
6466         (unlockpt): Check whether fd is valid, using fcntl().
6467         * modules/unlockpt (Depends-on): Add fcntl-h.
6468
6469 2011-10-20  Bruno Haible  <bruno@clisp.org>
6470
6471         openpty: Avoid compilation error on AIX 6.1.
6472         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6473
6474 2011-10-20  Bruno Haible  <bruno@clisp.org>
6475
6476         posix_openpt: Support for OpenBSD.
6477         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6478         (posix_openpt) [OpenBSD]: New code.
6479         * lib/grantpt.c: Include <fcntl.h>.
6480         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6481         * modules/grantpt (Depends-on): Add fcntl-h.
6482
6483 2011-10-20  Bruno Haible  <bruno@clisp.org>
6484
6485         posix_openpt test: Coding style.
6486         * tests/test-posix_openpt.c: Use GNU coding style.
6487
6488 2011-10-20  Bruno Haible  <bruno@clisp.org>
6489
6490         grantpt: Support --avoid=pt_chown.
6491         * modules/grantpt (Files): Add lib/pty-private.h.
6492
6493 2011-10-20  Bruno Haible  <bruno@clisp.org>
6494
6495         posix_openpt: Fix autoconf macro.
6496         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6497         unneeded check for _getpty.
6498
6499 2011-10-20  Bruno Haible  <bruno@clisp.org>
6500
6501         openpty: Update comments.
6502         * lib/openpty.c: Add comments about Minix.
6503
6504 2011-10-19  Eric Blake  <eblake@redhat.com>
6505
6506         openpty: relax license
6507         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6508
6509         pt_chown: use configmake to simplify build
6510         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6511
6512         ptsname and others: relax license
6513         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6514         * modules/unlockpt (License): Likewise.
6515         * modules/pt_chown (License): Likewise.
6516         * modules/ptsname (License): Likewise.
6517         * modules/ttyname_r (License): Likewise.
6518
6519 2011-10-19  Jim Meyering  <meyering@redhat.com>
6520
6521         posix_openpt: remove spurious #endif
6522         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6523
6524 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6525
6526         maint.mk: Respect $(build_aux) in web-manual rule.
6527         * top/maint.mk (web-manual): Find gen-announce script in user's
6528         $(build_aux) directory instead of hard-coding 'build-aux'.
6529
6530 2011-10-19  Bruno Haible  <bruno@clisp.org>
6531
6532         posix_openpt: Fix compilation error.
6533         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6534         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6535         Mention the openpty module as an alternative.
6536
6537 2011-10-19  Bruno Haible  <bruno@clisp.org>
6538
6539         Support for old NeXTstep 3.3 frexp().
6540         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6541         execution time of the test to 5 seconds.
6542         Reported by Daniel Richard G. <skunk@iskunk.org>.
6543
6544 2011-10-19  Bruno Haible  <bruno@clisp.org>
6545
6546         Support for old NeXTstep 3.3 sed.
6547         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6548         part, use /.../, not \|...|. Escape periods in the header file name.
6549         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6550         Reported by Daniel Richard G. <skunk@iskunk.org>.
6551
6552 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6553
6554         Support for old NeXTstep 3.3 gcc.
6555         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6556         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6557         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6558         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6559         * lib/regex.h (_Restrict_arr_): Likewise.
6560         * lib/regex_internal.h (re_token_t): Likewise.
6561         * lib/regexec.c (check_node_accept_bytes): Likewise.
6562         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6563
6564 2011-10-18  Eric Blake  <eblake@redhat.com>
6565
6566         posix_openpt: new module
6567         * modules/posix_openpt: New module.
6568         * m4/posix_openpt.m4: New file.
6569         * lib/posix_openpt.c: Likewise.
6570         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6571         (gl_STDLIB_H_DEFAULTS): Set defaults.
6572         * modules/stdlib (Makefile.am): Substitute macros.
6573         * lib/stdlib.in.h (posix_openpt): Declare.
6574         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6575         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6576         * modules/posix_openpt-tests: New test module.
6577         * tests/test-posix_openpt.c: New test.
6578
6579 2011-10-15  Bruno Haible  <bruno@clisp.org>
6580
6581         xstrtoll: Fix compilation failure.
6582         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6583         from lib/strtol.c.
6584         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6585         some platforms.
6586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6587
6588 2011-10-15  Bruno Haible  <bruno@clisp.org>
6589
6590         vasnprintf: Optimize bit search operation.
6591         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6593         gl_DOUBLE_EXPONENT_LOCATION.
6594         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6595         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6596         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6597         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6598         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6599         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6600         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6601         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6602         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6603
6604 2011-10-15  Bruno Haible  <bruno@clisp.org>
6605
6606         vasnprintf: Fix comments.
6607         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6608
6609 2011-10-14  Bruno Haible  <bruno@clisp.org>
6610
6611         Tests for module 'integer_length_ll'.
6612         * modules/integer_length_ll-tests: New file.
6613         * tests/test-integer_length_ll.c: New file.
6614
6615         New module 'integer_length_ll'.
6616         * lib/integer_length_ll.c: New file.
6617         * modules/integer_length_ll: New file.
6618
6619 2011-10-14  Bruno Haible  <bruno@clisp.org>
6620
6621         Tests for module 'integer_length_l'.
6622         * modules/integer_length_l-tests: New file.
6623         * tests/test-integer_length_l.c: New file.
6624
6625         New module 'integer_length_l'.
6626         * lib/integer_length_l.c: New file.
6627         * modules/integer_length_l: New file.
6628
6629 2011-10-14  Bruno Haible  <bruno@clisp.org>
6630
6631         Tests for module 'integer_length'.
6632         * modules/integer_length-tests: New file.
6633         * tests/test-integer_length.c: New file.
6634
6635         New module 'integer_length'.
6636         * lib/integer_length.h: New file.
6637         * lib/integer_length.c: New file.
6638         * modules/integer_length: New file.
6639
6640 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6641
6642         popen: Fix dependency conditions.
6643         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6644
6645 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6646
6647         perror: Fix autoconf test.
6648         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6649         <stdlib.h> and <string.h>.
6650
6651 2011-10-14  Bruno Haible  <bruno@clisp.org>
6652
6653         ffsl: Optimize on 64-bit platforms.
6654         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6655         unrolling.
6656
6657 2011-10-13  Bruno Haible  <bruno@clisp.org>
6658
6659         ffsl: Optimize on 32-bit platforms.
6660         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6661         use ffs() without a loop.
6662
6663         ffsl, ffsll: Optimize for GCC.
6664         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6665         * lib/ffsl.c (GCC_BUILTIN): New macro.
6666         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6667
6668 2011-10-13  Bruno Haible  <bruno@clisp.org>
6669
6670         ffs, bcopy, memset: Support symbol renaming via config.h.
6671         * lib/ffs.c: Include <config.h>.
6672         * lib/bcopy.c: Likewise.
6673         * lib/memset.c: Likewise.
6674
6675 2011-10-10  Bruno Haible  <bruno@clisp.org>
6676
6677         atanl: Simplify for platforms where 'long double' == 'double'.
6678         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6679         alternative implementation.
6680         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6681         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6682         * modules/atanl (Depends-on): Add atan. Update conditions.
6683
6684 2011-10-10  Bruno Haible  <bruno@clisp.org>
6685
6686         acosl: Simplify for platforms where 'long double' == 'double'.
6687         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6688         alternative implementation.
6689         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6690         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6691         * modules/acosl (Depends-on): Add acos. Update conditions.
6692
6693 2011-10-10  Bruno Haible  <bruno@clisp.org>
6694
6695         asinl: Simplify for platforms where 'long double' == 'double'.
6696         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6697         alternative implementation.
6698         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6699         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6700         * modules/asinl (Depends-on): Add asin. Update conditions.
6701
6702 2011-10-10  Bruno Haible  <bruno@clisp.org>
6703
6704         tanl: Simplify for platforms where 'long double' == 'double'.
6705         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6706         implementation.
6707         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6708         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6709         * modules/tanl (Depends-on): Add tan. Update conditions.
6710         (configure.ac): Don't compile trigl.c if
6711         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6712
6713 2011-10-10  Bruno Haible  <bruno@clisp.org>
6714
6715         cosl: Simplify for platforms where 'long double' == 'double'.
6716         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6717         implementation.
6718         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6719         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6720         * modules/cosl (Depends-on): Add cos. Update conditions.
6721         (configure.ac): Don't compile sincosl.c and trigl.c if
6722         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6723
6724 2011-10-10  Bruno Haible  <bruno@clisp.org>
6725
6726         sinl: Simplify for platforms where 'long double' == 'double'.
6727         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6728         implementation.
6729         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6730         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6731         * modules/sinl (Depends-on): Add sin. Update conditions.
6732         (configure.ac): Don't compile sincosl.c and trigl.c if
6733         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6734
6735 2011-10-10  Bruno Haible  <bruno@clisp.org>
6736
6737         logl: Simplify for platforms where 'long double' == 'double'.
6738         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6739         implementation.
6740         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6741         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6742         * modules/logl (Depends-on): Add log. Update conditions.
6743
6744 2011-10-10  Bruno Haible  <bruno@clisp.org>
6745
6746         expl: Simplify for platforms where 'long double' == 'double'.
6747         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6748         implementation.
6749         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6750         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6751         * modules/expl (Depends-on): Add exp. Update conditions.
6752
6753 2011-10-10  Bruno Haible  <bruno@clisp.org>
6754
6755         sqrtl: Simplify for platforms where 'long double' == 'double'.
6756         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6757         alternative implementation.
6758         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6759         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6760         * modules/sqrtl (Depends-on): Update conditions.
6761
6762 2011-10-10  Bruno Haible  <bruno@clisp.org>
6763
6764         ldexpl: Simplify for platforms where 'long double' == 'double'.
6765         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6766         alternative implementation.
6767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6768         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6769         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6770
6771 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6772
6773         ffsll: set correct witness
6774         * modules/ffsll (configure.ac): Fix typo.
6775
6776 2011-10-10  Bruno Haible  <bruno@clisp.org>
6777
6778         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6779         * lib/printf-frexpl.c: Include <config.h>.
6780         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6781         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6782         second time.
6783         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6784         gl_LONG_DOUBLE_VS_DOUBLE.
6785         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6786         conditions.
6787
6788 2011-10-10  Bruno Haible  <bruno@clisp.org>
6789
6790         frexpl: Simplify for platforms where 'long double' == 'double'.
6791         * lib/frexpl.c: Include <config.h>.
6792         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6793         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6794         time.
6795         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6796         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6797         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6798         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6799         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6800         conditions.
6801
6802 2011-10-10  Jim Meyering  <meyering@redhat.com>
6803
6804         test-renameat: don't leave behind a temporary file
6805         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6806           ERROR: files left in build directory after distclean:
6807           ./gltests/test-renameat.too
6808           make[1]: *** [distcleancheck] Error 1
6809         Reported by Tom G. Christensen.
6810
6811 2011-10-09  Bruno Haible  <bruno@clisp.org>
6812
6813         rint: Determine RINT_LIBM correctly on AIX 7.
6814         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6815         directly, not only through a function pointer. Also accept an optional
6816         4th argument with extra code.
6817         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6818         rintf() call by gcc when optimizing.
6819
6820         mathfunc.m4: Refactor.
6821         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6822         m4 variable.
6823
6824 2011-10-09  Bruno Haible  <bruno@clisp.org>
6825
6826         rintl: Simplify for platforms where 'long double' == 'double'.
6827         * lib/rintl.c: Include <config.h>.
6828         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6829         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6830         time.
6831         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6832         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6833         * modules/rintl (Depends-on): Add rint. Update conditions.
6834
6835 2011-10-09  Bruno Haible  <bruno@clisp.org>
6836
6837         roundl: Simplify for platforms where 'long double' == 'double'.
6838         * lib/roundl.c: Include <config.h>.
6839         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6840         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6841         time.
6842         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6843         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6844         * modules/roundl (Depends-on): Add round. Update conditions.
6845
6846 2011-10-09  Bruno Haible  <bruno@clisp.org>
6847
6848         truncl: Simplify for platforms where 'long double' == 'double'.
6849         * lib/truncl.c: Include <config.h>.
6850         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6851         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6852         time.
6853         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6854         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6855         * modules/truncl (Depends-on): Add trunc. Update conditions.
6856
6857 2011-10-09  Bruno Haible  <bruno@clisp.org>
6858
6859         ceill: Simplify for platforms where 'long double' == 'double'.
6860         * lib/ceill.c: Include <config.h>.
6861         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6862         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6863         time.
6864         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6865         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6866         * modules/ceill (Depends-on): Add ceil. Update conditions.
6867
6868 2011-10-09  Bruno Haible  <bruno@clisp.org>
6869
6870         floorl: Simplify for platforms where 'long double' == 'double'.
6871         * lib/floorl.c: Include <config.h>.
6872         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6873         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6874         time.
6875         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6876         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6877         * modules/floorl (Depends-on): Add floor. Update conditions.
6878
6879 2011-10-09  Bruno Haible  <bruno@clisp.org>
6880
6881         rint: Fix ordering constraints.
6882         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6883         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6884         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6885
6886 2011-10-09  Bruno Haible  <bruno@clisp.org>
6887
6888         copysignl: Simplify for platforms where 'long double' == 'double'.
6889         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6890         alternative.
6891         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6892         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6893         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6894
6895 2011-10-09  Bruno Haible  <bruno@clisp.org>
6896
6897         Tests for module 'rintl'.
6898         * modules/rintl-tests: New file.
6899         * tests/test-rintl.c: New file.
6900
6901         New module 'rintl'.
6902         * lib/math.in.h (rintl): New declaration.
6903         * lib/rintl.c: New file.
6904         * m4/rintl.m4: New file.
6905         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6907         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6908         * modules/rintl: New file.
6909         * tests/test-math-c++.cc: Check the declaration of rintl.
6910         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6911         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6912         * doc/posix-functions/rintl.texi: Mention the new module.
6913
6914 2011-10-09  Bruno Haible  <bruno@clisp.org>
6915
6916         Tests for module 'rintf'.
6917         * modules/rintf-tests: New file.
6918         * tests/test-rintf.c: New file.
6919
6920         New module 'rintf'.
6921         * lib/math.in.h (rintf): New declaration.
6922         * lib/rintf.c: New file.
6923         * m4/rintf.m4: New file.
6924         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6926         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6927         * modules/rintf: New file.
6928         * tests/test-math-c++.cc: Check the declaration of rintf.
6929         * doc/posix-functions/rintf.texi: Mention the new module.
6930
6931 2011-10-09  Bruno Haible  <bruno@clisp.org>
6932
6933         rint: Support for MSVC.
6934         * lib/math.in.h (rint): New declaration.
6935         * lib/rint.c: New file.
6936         * m4/rint.m4: New file.
6937         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6939         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6940         * modules/rint (Description): Fix.
6941         (Files): Add lib/rint.c, m4/rint.m4.
6942         (Depends-on): Add math.
6943         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6944         gl_MATH_MODULE_INDICATOR.
6945         * tests/test-math-c++.cc: Check the declaration of rint.
6946         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6947         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6948         * doc/posix-functions/rint.texi: Mention the replacement provided by
6949         the module.
6950
6951         rint tests: More tests.
6952         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6953         minus-zero.h, infinity.h, nan.h.
6954         (main): Skip the test if the current rounding mode is not standard. Add
6955         tests for negative numbers, minus zero, infinity, NaN.
6956         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6957         tests/nan.h.
6958         (Depends-on): Add isnand-nolibm.
6959
6960 2011-10-09  Bruno Haible  <bruno@clisp.org>
6961
6962         Tests for module 'copysignl'.
6963         * modules/copysignl-tests: New file.
6964         * tests/test-copysignl.c: New file.
6965
6966         New module 'copysignl'.
6967         * lib/math.in.h (copysignl): New declaration.
6968         * lib/copysignl.c: New file.
6969         * m4/copysignl.m4: New file.
6970         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6972         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6973         HAVE_COPYSIGNL.
6974         * modules/copysignl: New file.
6975         * tests/test-math-c++.cc: Check the declaration of copysignl.
6976         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6977         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6978         * doc/posix-functions/copysignl.texi: Mention the new module.
6979
6980 2011-10-09  Bruno Haible  <bruno@clisp.org>
6981
6982         Tests for module 'copysignf'.
6983         * modules/copysignf-tests: New file.
6984         * tests/test-copysignf.c: New file.
6985
6986         New module 'copysignf'.
6987         * lib/math.in.h (copysignf): New declaration.
6988         * lib/copysignf.c: New file.
6989         * m4/copysignf.m4: New file.
6990         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6992         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6993         HAVE_COPYSIGNF.
6994         * modules/copysignf: New file.
6995         * tests/test-math-c++.cc: Check the declaration of copysignf.
6996         * doc/posix-functions/copysignf.texi: Mention the new module.
6997
6998 2011-10-09  Bruno Haible  <bruno@clisp.org>
6999
7000         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7001         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7002         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7003         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7004         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7005         gl_SIGNAL_H_DEFAULTS.
7006
7007 2011-10-09  Bruno Haible  <bruno@clisp.org>
7008
7009         poll: Make macro safer.
7010         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7011         ac_cv_header_poll_h is not set.
7012
7013 2011-10-09  Bruno Haible  <bruno@clisp.org>
7014
7015         copysign: Provide replacement.
7016         * lib/math.in.h (copysign): New declaration.
7017         * lib/copysign.c: New file.
7018         * m4/copysign.m4: New file.
7019         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7021         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7022         HAVE_COPYSIGN.
7023         * modules/copysign (Description): Clarify.
7024         (Files): Add lib/copysign.c, m4/copysign.m4.
7025         (Depends-on): Add math, signbit.
7026         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7027         gl_MATH_MODULE_INDICATOR.
7028         * tests/test-math-c++.cc: Check the declaration of copysign.
7029         * doc/posix-functions/copysign.texi: Mention the effects of the module
7030         on Minix and MSVC.
7031
7032 2011-10-09  Bruno Haible  <bruno@clisp.org>
7033
7034         isinf: Ensure macro on AIX 5.1.
7035         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7036         macro.
7037         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7038
7039 2011-10-09  Bruno Haible  <bruno@clisp.org>
7040
7041         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7042         * modules/snprintf-posix-tests (configure.ac): Require
7043         gl_LONG_DOUBLE_VS_DOUBLE.
7044         * modules/sprintf-posix-tests (configure.ac): Likewise.
7045         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7046         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7047         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7048         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7049         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7050         tests on platforms where 'long double' is the same as 'double'.
7051         * tests/test-sprintf-posix.h (test_function): Likewise.
7052         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7053         * tests/test-vasprintf-posix.c (test_function): Likewise.
7054
7055         *printf: Fix for platforms where 'long double' == 'double'.
7056         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7057         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7058         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7059         * modules/fprintf-posix (Files): Likewise.
7060         * modules/obstack-printf-posix (Files): Likewise.
7061         * modules/snprintf-posix (Files): Likewise.
7062         * modules/sprintf-posix (Files): Likewise.
7063         * modules/vasnprintf (Files): Likewise.
7064         * modules/vasnprintf-posix (Files): Likewise.
7065         * modules/vasprintf-posix (Files): Likewise.
7066         * modules/vdprintf-posix (Files): Likewise.
7067         * modules/vfprintf-posix (Files): Likewise.
7068         * modules/vsnprintf-posix (Files): Likewise.
7069         * modules/vsprintf-posix (Files): Likewise.
7070         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7071         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7072         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7073         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7074         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7075         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7076         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7077
7078         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7079         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7080         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7081         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7082         'long double'.
7083         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7084
7085         isinf: Fix for platforms where 'long double' == 'double'.
7086         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7087         Don't blindly assume 80-bit 'long double'.
7088
7089         isfinite: Fix for platforms where 'long double' == 'double'.
7090         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7091         Don't blindly assume 80-bit 'long double'.
7092
7093         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7094         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7095         * modules/isfinite-tests (configure.ac): Require
7096         gl_LONG_DOUBLE_VS_DOUBLE.
7097         * modules/isinf-tests (configure.ac): Likewise.
7098         * modules/isnan-tests (configure.ac): Likewise.
7099         * modules/isnanl-tests (configure.ac): Likewise.
7100         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7101         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7102         tests on platforms where 'long double' is the same as 'double'.
7103         * tests/test-isinf.c (test_isinfl): Likewise.
7104         * tests/test-isnan.c (test_long_double): Likewise.
7105         * tests/test-isnanl.h (main): Likewise.
7106
7107 2011-10-08  Bruno Haible  <bruno@clisp.org>
7108
7109         Tests for module 'tanhf'.
7110         * modules/tanhf-tests: New file.
7111         * tests/test-tanhf.c: New file.
7112
7113         New module 'tanhf'.
7114         * lib/math.in.h (tanhf): New declaration.
7115         * lib/tanhf.c: New file.
7116         * m4/tanhf.m4: New file.
7117         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7119         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7120         * modules/tanhf: New file.
7121         * tests/test-math-c++.cc: Check the declaration of tanhf.
7122         * doc/posix-functions/tanhf.texi: Mention the new module.
7123
7124         tanh: Use a .m4 file.
7125         * m4/tanh.m4: New file.
7126         * modules/tanh (Files): Add it.
7127         (configure.ac): Just invoke gl_FUNC_TANH.
7128
7129 2011-10-08  Bruno Haible  <bruno@clisp.org>
7130
7131         Tests for module 'coshf'.
7132         * modules/coshf-tests: New file.
7133         * tests/test-coshf.c: New file.
7134
7135         New module 'coshf'.
7136         * lib/math.in.h (coshf): New declaration.
7137         * lib/coshf.c: New file.
7138         * m4/coshf.m4: New file.
7139         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7141         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7142         * modules/coshf: New file.
7143         * tests/test-math-c++.cc: Check the declaration of coshf.
7144         * doc/posix-functions/coshf.texi: Mention the new module.
7145
7146         cosh: Use a .m4 file.
7147         * m4/cosh.m4: New file.
7148         * modules/cosh (Files): Add it.
7149         (configure.ac): Just invoke gl_FUNC_COSH.
7150
7151 2011-10-08  Bruno Haible  <bruno@clisp.org>
7152
7153         Tests for module 'sinhf'.
7154         * modules/sinhf-tests: New file.
7155         * tests/test-sinhf.c: New file.
7156
7157         New module 'sinhf'.
7158         * lib/math.in.h (sinhf): New declaration.
7159         * lib/sinhf.c: New file.
7160         * m4/sinhf.m4: New file.
7161         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7163         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7164         * modules/sinhf: New file.
7165         * tests/test-math-c++.cc: Check the declaration of sinhf.
7166         * doc/posix-functions/sinhf.texi: Mention the new module.
7167
7168         sinh: Use a .m4 file.
7169         * m4/sinh.m4: New file.
7170         * modules/sinh (Files): Add it.
7171         (configure.ac): Just invoke gl_FUNC_SINH.
7172
7173 2011-10-08  Bruno Haible  <bruno@clisp.org>
7174
7175         Tests for module 'atan2f'.
7176         * modules/atan2f-tests: New file.
7177         * tests/test-atan2f.c: New file.
7178
7179         New module 'atan2f'.
7180         * lib/math.in.h (atan2f): New declaration.
7181         * lib/atan2f.c: New file.
7182         * m4/atan2f.m4: New file.
7183         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7185         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7186         * modules/atan2f: New file.
7187         * tests/test-math-c++.cc: Check the declaration of atan2f.
7188         * doc/posix-functions/atan2f.texi: Mention the new module.
7189
7190         atan2: Use a .m4 file.
7191         * m4/atan2.m4: New file.
7192         * modules/atan2 (Files): Add it.
7193         (configure.ac): Just invoke gl_FUNC_ATAN2.
7194
7195 2011-10-08  Bruno Haible  <bruno@clisp.org>
7196
7197         Tests for module 'atanf'.
7198         * modules/atanf-tests: New file.
7199         * tests/test-atanf.c: New file.
7200
7201         New module 'atanf'.
7202         * lib/math.in.h (atanf): New declaration.
7203         * lib/atanf.c: New file.
7204         * m4/atanf.m4: New file.
7205         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7207         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7208         * modules/atanf: New file.
7209         * tests/test-math-c++.cc: Check the declaration of atanf.
7210         * doc/posix-functions/atanf.texi: Mention the new module.
7211
7212         atan: Use a .m4 file.
7213         * m4/atan.m4: New file.
7214         * modules/atan (Files): Add it.
7215         (configure.ac): Just invoke gl_FUNC_ATAN.
7216
7217 2011-10-08  Bruno Haible  <bruno@clisp.org>
7218
7219         Tests for module 'acosf'.
7220         * modules/acosf-tests: New file.
7221         * tests/test-acosf.c: New file.
7222
7223         New module 'acosf'.
7224         * lib/math.in.h (acosf): New declaration.
7225         * lib/acosf.c: New file.
7226         * m4/acosf.m4: New file.
7227         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7229         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7230         * modules/acosf: New file.
7231         * tests/test-math-c++.cc: Check the declaration of acosf.
7232         * doc/posix-functions/acosf.texi: Mention the new module.
7233
7234         acos: Use a .m4 file.
7235         * m4/acos.m4: New file.
7236         * modules/acos (Files): Add it.
7237         (configure.ac): Just invoke gl_FUNC_ACOS.
7238
7239 2011-10-08  Bruno Haible  <bruno@clisp.org>
7240
7241         Tests for module 'asinf'.
7242         * modules/asinf-tests: New file.
7243         * tests/test-asinf.c: New file.
7244
7245         New module 'asinf'.
7246         * lib/math.in.h (asinf): New declaration.
7247         * lib/asinf.c: New file.
7248         * m4/asinf.m4: New file.
7249         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7251         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7252         * modules/asinf: New file.
7253         * tests/test-math-c++.cc: Check the declaration of asinf.
7254         * doc/posix-functions/asinf.texi: Mention the new module.
7255
7256         asin: Use a .m4 file.
7257         * m4/asin.m4: New file.
7258         * modules/asin (Files): Add it.
7259         (configure.ac): Just invoke gl_FUNC_ASIN.
7260
7261 2011-10-08  Bruno Haible  <bruno@clisp.org>
7262
7263         Tests for module 'tanf'.
7264         * modules/tanf-tests: New file.
7265         * tests/test-tanf.c: New file.
7266
7267         New module 'tanf'.
7268         * lib/math.in.h (tanf): New declaration.
7269         * lib/tanf.c: New file.
7270         * m4/tanf.m4: New file.
7271         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7273         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7274         * modules/tanf: New file.
7275         * tests/test-math-c++.cc: Check the declaration of tanf.
7276         * doc/posix-functions/tanf.texi: Mention the new module.
7277
7278         tan: Use a .m4 file.
7279         * m4/tan.m4: New file.
7280         * modules/tan (Files): Add it.
7281         (configure.ac): Just invoke gl_FUNC_TAN.
7282
7283 2011-10-08  Bruno Haible  <bruno@clisp.org>
7284
7285         Tests for module 'cosf'.
7286         * modules/cosf-tests: New file.
7287         * tests/test-cosf.c: New file.
7288
7289         New module 'cosf'.
7290         * lib/math.in.h (cosf): New declaration.
7291         * lib/cosf.c: New file.
7292         * m4/cosf.m4: New file.
7293         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7295         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7296         * modules/cosf: New file.
7297         * tests/test-math-c++.cc: Check the declaration of cosf.
7298         * doc/posix-functions/cosf.texi: Mention the new module.
7299
7300         cos: Use a .m4 file.
7301         * m4/cos.m4: New file.
7302         * modules/cos (Files): Add it.
7303         (configure.ac): Just invoke gl_FUNC_COS.
7304
7305 2011-10-08  Bruno Haible  <bruno@clisp.org>
7306
7307         Tests for module 'sinf'.
7308         * modules/sinf-tests: New file.
7309         * tests/test-sinf.c: New file.
7310
7311         New module 'sinf'.
7312         * lib/math.in.h (sinf): New declaration.
7313         * lib/sinf.c: New file.
7314         * m4/sinf.m4: New file.
7315         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7317         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7318         * modules/sinf: New file.
7319         * tests/test-math-c++.cc: Check the declaration of sinf.
7320         * doc/posix-functions/sinf.texi: Mention the new module.
7321
7322         sin: Use a .m4 file.
7323         * m4/sin.m4: New file.
7324         * modules/sin (Files): Add it.
7325         (configure.ac): Just invoke gl_FUNC_SIN.
7326
7327 2011-10-08  Bruno Haible  <bruno@clisp.org>
7328
7329         Tests for module 'powf'.
7330         * modules/powf-tests: New file.
7331         * tests/test-powf.c: New file.
7332
7333         New module 'powf'.
7334         * lib/math.in.h (powf): New declaration.
7335         * lib/powf.c: New file.
7336         * m4/powf.m4: New file.
7337         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7339         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7340         * modules/powf: New file.
7341         * tests/test-math-c++.cc: Check the declaration of powf.
7342         * doc/posix-functions/powf.texi: Mention the new module.
7343
7344         pow: Use a .m4 file.
7345         * m4/pow.m4: New file.
7346         * modules/pow (Files): Add it.
7347         (configure.ac): Just invoke gl_FUNC_POW.
7348
7349 2011-10-08  Bruno Haible  <bruno@clisp.org>
7350
7351         Tests for module 'log10f'.
7352         * modules/log10f-tests: New file.
7353         * tests/test-log10f.c: New file.
7354
7355         New module 'log10f'.
7356         * lib/math.in.h (log10f): New declaration.
7357         * lib/log10f.c: New file.
7358         * m4/log10f.m4: New file.
7359         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7361         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7362         * modules/log10f: New file.
7363         * tests/test-math-c++.cc: Check the declaration of log10f.
7364         * doc/posix-functions/log10f.texi: Mention the new module.
7365
7366         log10: Use a .m4 file.
7367         * m4/log10.m4: New file.
7368         * modules/log10 (Files): Add it.
7369         (configure.ac): Just invoke gl_FUNC_LOG10.
7370
7371 2011-10-08  Bruno Haible  <bruno@clisp.org>
7372
7373         Tests for module 'logf'.
7374         * modules/logf-tests: New file.
7375         * tests/test-logf.c: New file.
7376
7377         New module 'logf'.
7378         * lib/math.in.h (logf): New declaration.
7379         * lib/logf.c: New file.
7380         * m4/logf.m4: New file.
7381         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7383         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7384         * modules/logf: New file.
7385         * tests/test-math-c++.cc: Check the declaration of logf.
7386         * doc/posix-functions/logf.texi: Mention the new module.
7387
7388         log: Use a .m4 file.
7389         * m4/log.m4: New file.
7390         * modules/log (Files): Add it.
7391         (configure.ac): Just invoke gl_FUNC_LOG.
7392
7393 2011-10-08  Bruno Haible  <bruno@clisp.org>
7394
7395         Tests for module 'expf'.
7396         * modules/expf-tests: New file.
7397         * tests/test-expf.c: New file.
7398
7399         New module 'expf'.
7400         * lib/math.in.h (expf): New declaration.
7401         * lib/expf.c: New file.
7402         * m4/expf.m4: New file.
7403         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7405         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7406         * modules/expf: New file.
7407         * tests/test-math-c++.cc: Check the declaration of expf.
7408         * doc/posix-functions/expf.texi: Mention the new module.
7409
7410         exp: Use a .m4 file.
7411         * m4/exp.m4: New file.
7412         * modules/exp (Files): Add it.
7413         (configure.ac): Just invoke gl_FUNC_EXP.
7414
7415 2011-10-08  Bruno Haible  <bruno@clisp.org>
7416
7417         Tests for module 'sqrtf'.
7418         * modules/sqrtf-tests: New file.
7419         * tests/test-sqrtf.c: New file.
7420
7421         New module 'sqrtf'.
7422         * lib/math.in.h (sqrtf): New declaration.
7423         * lib/sqrtf.c: New file.
7424         * m4/sqrtf.m4: New file.
7425         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7427         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7428         * modules/sqrtf: New file.
7429         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7430         * doc/posix-functions/sqrtf.texi: Mention the new module.
7431
7432 2011-10-08  Bruno Haible  <bruno@clisp.org>
7433
7434         Tests: Avoid link failures w.r.t. libintl.
7435         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7436         $(LIBINTL).
7437         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7438         $(LIBINTL).
7439         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7440         against $(LIBINTL).
7441         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7442         $(LIBINTL).
7443         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7444         $(LIBINTL).
7445         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7446
7447 2011-10-08  Bruno Haible  <bruno@clisp.org>
7448
7449         pow tests: Defeat compiler optimizations.
7450         * tests/test-pow.c (main): Assign arguments to x and y before use.
7451
7452 2011-10-08  Bruno Haible  <bruno@clisp.org>
7453
7454         gnulib-tool: Improve last commit.
7455         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7456         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7457         ignore dependencies that are not among the modules list.
7458
7459 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7460
7461         gnulib-tool: don't follow dependencies to avoided modules
7462         This fixes a bug that is related to the previous one.
7463         * gnulib-tool (func_modules_transitive_closure)
7464         (func_emit_autoconf_snippets):
7465         Check whether a dependency is acceptable before using it.
7466         (--extract-dependencies): Report an error if --avoid is also used,
7467         since this combination of options is not yet supported.
7468
7469         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7470         Problem reported by Peter Dyballa in
7471         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7472         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7473         when echoing "$condition".
7474
7475 2011-10-07  Bruno Haible  <bruno@clisp.org>
7476
7477         Fix documentation about math functions on MacOS X.
7478         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7479         MacOS X 10.5.
7480         * doc/posix-functions/fdim.texi: Likewise.
7481         * doc/posix-functions/feclearexcept.texi: Likewise.
7482         * doc/posix-functions/fegetenv.texi: Likewise.
7483         * doc/posix-functions/fegetround.texi: Likewise.
7484         * doc/posix-functions/feholdexcept.texi: Likewise.
7485         * doc/posix-functions/feraiseexcept.texi: Likewise.
7486         * doc/posix-functions/fesetenv.texi: Likewise.
7487         * doc/posix-functions/fesetround.texi: Likewise.
7488         * doc/posix-functions/fetestexcept.texi: Likewise.
7489         * doc/posix-functions/feupdateenv.texi: Likewise.
7490         * doc/posix-functions/fmax.texi: Likewise.
7491         * doc/posix-functions/fmin.texi: Likewise.
7492         * doc/posix-functions/log2.texi: Likewise.
7493         * doc/posix-functions/modff.texi: Likewise.
7494         * doc/posix-functions/nan.texi: Likewise.
7495         * doc/posix-functions/nanf.texi: Likewise.
7496         * doc/posix-functions/nextafterf.texi: Likewise.
7497         * doc/posix-functions/remquo.texi: Likewise.
7498
7499 2011-10-07  Bruno Haible  <bruno@clisp.org>
7500
7501         modff: Drop assumption about library that defines modff.
7502         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7503         AC_CHECK_FUNCS.
7504         * modules/modff (Files): Add m4/mathfunc.m4.
7505
7506 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7507
7508         raise tests: Avoid a GCC warning.
7509         * tests/test-raise.c (handler): Use _Noreturn.
7510
7511 2011-10-07  Bruno Haible  <bruno@clisp.org>
7512
7513         Tests for module 'ldexpf'.
7514         * modules/ldexpf-tests: New file.
7515         * tests/test-ldexpf.c: New file.
7516
7517         New module 'ldexpf'.
7518         * lib/math.in.h (ldexpf): New declaration.
7519         * lib/ldexpf.c: New file.
7520         * m4/ldexpf.m4: New file.
7521         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7523         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7524         * modules/ldexpf: New file.
7525         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7526         * doc/posix-functions/ldexpf.texi: Mention the new module.
7527
7528 2011-10-06  Bruno Haible  <bruno@clisp.org>
7529
7530         frexpf: Work around problems on IRIX and mingw.
7531         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7533         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7534         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7535         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7536         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7537         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7538
7539 2011-10-06  Bruno Haible  <bruno@clisp.org>
7540
7541         fabsf: Drop assumption about library that defines fabsf.
7542         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7543         AC_CHECK_FUNCS.
7544         * modules/fabsf (Files): Add m4/mathfunc.m4.
7545
7546 2011-10-06  Bruno Haible  <bruno@clisp.org>
7547
7548         frexpf: Drop assumption about library that defines frexpf.
7549         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7550         'int *', 'float *', 'long double *', 'float', 'long double'.
7551         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7552         AC_CHECK_FUNCS.
7553         * modules/frexpf (Files): Add m4/mathfunc.m4.
7554
7555         Tests for module 'frexpf'.
7556         * modules/frexpf-tests: New file.
7557         * tests/test-frexpf.c: New file.
7558
7559         New module 'frexpf'.
7560         * lib/math.in.h (frexpf): New declaration.
7561         * lib/frexpf.c: New file.
7562         * m4/frexpf.m4: New file.
7563         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7565         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7566         * modules/frexpf: New file.
7567         * tests/test-math-c++.cc: Check the declaration of frexpf.
7568         * doc/posix-functions/frexpf.texi: Mention the new module.
7569
7570 2011-10-06  Bruno Haible  <bruno@clisp.org>
7571
7572         math: Sort function declarations of math.in.h.
7573         * lib/math.in.h (frexp, logb): Move declarations.
7574
7575 2011-10-05  Bruno Haible  <bruno@clisp.org>
7576
7577         Tests for module 'modff'.
7578         * modules/modff-tests: New file.
7579         * tests/test-modff.c: New file.
7580
7581         New module 'modff'.
7582         * lib/math.in.h (modff): New declaration.
7583         * lib/modff.c: New file.
7584         * m4/modff.m4: New file.
7585         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7587         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7588         * modules/modff: New file.
7589         * tests/test-math-c++.cc: Check the declaration of modff.
7590         * doc/posix-functions/modff.texi: Mention the new module.
7591
7592         modf tests: Make test sharper.
7593         * tests/test-modf.c (main): Strengthen upper bound.
7594
7595         modf: Use a .m4 file.
7596         * m4/modf.m4: New file.
7597         * modules/modf (Files): Add it.
7598         (configure.ac): Just invoke gl_FUNC_MODF.
7599
7600 2011-10-05  Bruno Haible  <bruno@clisp.org>
7601
7602         Tests for module 'fmodf'.
7603         * modules/fmodf-tests: New file.
7604         * tests/test-fmodf.c: New file.
7605
7606         New module 'fmodf'.
7607         * lib/math.in.h (fmodf): New declaration.
7608         * lib/fmodf.c: New file.
7609         * m4/fmodf.m4: New file.
7610         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7612         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7613         * modules/fmodf: New file.
7614         * tests/test-math-c++.cc: Check the declaration of fmodf.
7615         * doc/posix-functions/fmodf.texi: Mention the new module.
7616
7617         fmod: Use a .m4 file.
7618         * m4/fmod.m4: New file.
7619         * modules/fmod (Files): Add it.
7620         (configure.ac): Just invoke gl_FUNC_FMOD.
7621
7622 2011-10-05  Bruno Haible  <bruno@clisp.org>
7623
7624         Tests for module 'fabsf'.
7625         * modules/fabsf-tests: New file.
7626         * tests/test-fabsf.c: New file.
7627
7628         New module 'fabsf'.
7629         * lib/math.in.h (fabsf): New declaration.
7630         * lib/fabsf.c: New file.
7631         * m4/fabsf.m4: New file.
7632         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7634         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7635         * modules/fabsf: New file.
7636         * tests/test-math-c++.cc: Check the declaration of fabsf.
7637         * doc/posix-functions/fabsf.texi: Mention the new module.
7638
7639         fabs: Use a .m4 file.
7640         * m4/fabs.m4: New file.
7641         * modules/fabs (Files): Add it.
7642         (configure.ac): Just invoke gl_FUNC_FABS.
7643
7644 2011-10-05  Jim Meyering  <meyering@redhat.com>
7645
7646         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7647         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7648         ls -lL regression introduced in coreutils-8.12, it does so at the
7649         cost of an additional stat call in the common case.  Besides, now
7650         that the kernel change that prompted commit 95f7c57f has been reverted
7651         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7652         we have no use for commit 95f7c57f, "file-has-acl: use
7653         acl_extended_file_nofollow if available".
7654
7655 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7656
7657         file-has-acl: revert unintended change in behavior of ls -L
7658         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7659         derived from...
7660         (file_has_acl): ...code here.  Call it.
7661         This problem was introduced with 2011-07-22 commit 95f7c57f,
7662         "file-has-acl: use acl_extended_file_nofollow if available".
7663         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7664
7665 2011-10-03  Bruno Haible  <bruno@clisp.org>
7666
7667         poll: Avoid link errors on MSVC.
7668         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7669         * modules/poll (Depends-on): Add sockets.
7670         (Link): New section.
7671         * NEWS: Mention the change.
7672         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7673         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7674         $(LIB_POLL) instead of $(LIBSOCKET).
7675
7676 2011-10-03  Bruno Haible  <bruno@clisp.org>
7677
7678         sys_select tests: Fix link error on MSVC 9.
7679         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7680         with $(LIB_SELECT) instead of $(LIBSOCKET).
7681
7682 2011-10-03  Bruno Haible  <bruno@clisp.org>
7683
7684         sys_select: Fix compilation error on mingw.
7685         * lib/sys_select.in.h: On native Windows, include <io.h>.
7686
7687 2011-10-03  Bruno Haible  <bruno@clisp.org>
7688
7689         wmemset: Support for MSVC.
7690         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7691         whether wmemset() exists.
7692
7693 2011-10-03  Bruno Haible  <bruno@clisp.org>
7694
7695         wmemmove: Support for MSVC.
7696         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7697         whether wmemmove() exists.
7698
7699 2011-10-03  Bruno Haible  <bruno@clisp.org>
7700
7701         wmemcpy: Support for MSVC.
7702         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7703         whether wmemcpy() exists.
7704
7705 2011-10-03  Bruno Haible  <bruno@clisp.org>
7706
7707         wmemcmp: Support for MSVC.
7708         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7709         whether wmemcmp() exists.
7710
7711 2011-10-03  Bruno Haible  <bruno@clisp.org>
7712
7713         wmemchr: Support for MSVC.
7714         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7715         whether wmemchr() exists.
7716
7717 2011-10-03  Bruno Haible  <bruno@clisp.org>
7718
7719         glthread/*, strsignal: Support for MSVC.
7720         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7721         including <winsock.h> on MSVC 9.
7722         * lib/glthread/lock.h: Likewise.
7723         * lib/glthread/thread.h: Likewise.
7724         * lib/glthread/tls.h: Likewise.
7725         * lib/glthread/yield.h: Likewise.
7726         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7727         if HAVE_UNISTD_H is false.
7728         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7729
7730 2011-10-03  Bruno Haible  <bruno@clisp.org>
7731
7732         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7733         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7734         Set to 100000.
7735
7736 2011-10-03  Bruno Haible  <bruno@clisp.org>
7737
7738         acl: Fix specification.
7739         * lib/file-has-acl.c (file_has_acl): Fix specification.
7740
7741 2011-10-03  Bruno Haible  <bruno@clisp.org>
7742
7743         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7744         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7745         (compute_curr_prefix, shared_library_fullname,
7746         find_shared_library_fullname, get_shared_library_fullname, relocate):
7747         Use it together with PIC && INSTALLDIR.
7748         Reported by <jojelino@gmail.com>
7749         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7750
7751 2011-10-01  Jim Meyering  <meyering@redhat.com>
7752
7753         maint.mk: adjust a release-related rule not to require use of gzip
7754         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7755         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7756         projects that build only .tar.xz files.  Also fix an erroneous test.
7757
7758         test-linkat: don't leave behind a temporary file
7759         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7760         Otherwise, coreutils' "make distcheck" would fail with this:
7761           Only in /c/cu/tests/torture/coreutils/test/\
7762             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7763           make[2]: *** [my-distcheck] Error 1
7764
7765         float, math: add omitted file
7766         * lib/itold.c: Add file, required for yesterday's float change.
7767
7768 2011-10-01  Bruno Haible  <bruno@clisp.org>
7769
7770         isinf: Fix for OpenBSD/x86.
7771         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7772         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7773         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7774
7775 2011-10-01  Bruno Haible  <bruno@clisp.org>
7776
7777         isfinite: Fix syntax error in configure test.
7778         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7779
7780         isfinite: Fix typo.
7781         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7782         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7783
7784 2011-10-01  Bruno Haible  <bruno@clisp.org>
7785
7786         nonblocking tests: Fix test failure on Linux/IA-64.
7787         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7788         Set to 270000.
7789
7790 2011-10-01  Bruno Haible  <bruno@clisp.org>
7791
7792         mkfifoat tests: Fix a test failure on mingw.
7793         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7794         with error ENOSYS.
7795
7796 2011-09-30  Bruno Haible  <bruno@clisp.org>
7797
7798         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7799         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7800         'long double'. Set REPLACE_ITOLD.
7801         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7802         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7803         * lib/itold.c: New file.
7804         * modules/float (Files): Add lib/itold.c.
7805         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7806         (Makefile.am): Substitute REPLACE_ITOLD.
7807         * modules/math (Depends-on): Add float.
7808         (Makefile.am): Substitute REPLACE_ITOLD.
7809         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7810         * doc/posix-headers/math.texi: Likewise.
7811         * doc/posix-functions/logl.texi: Likewise.
7812
7813 2011-09-30  Bruno Haible  <bruno@clisp.org>
7814
7815         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7816         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7817         Set to 140000.
7818
7819 2011-09-30  Bruno Haible  <bruno@clisp.org>
7820
7821         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7822         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7823         invocation, say "right after AC_PROG_CC_STDC", not "right after
7824         AC_PROG_CC".
7825         Reported by Gary V. Vaughan <gary@gnu.org>.
7826
7827 2011-09-30  Bruno Haible  <bruno@clisp.org>
7828
7829         Centralize C99 requirement.
7830         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7831         * modules/stdarg (configure.ac-early): Invoke it instead of
7832         AC_PROG_CC_STDC.
7833         Reported by Gary V. Vaughan and Paul Eggert.
7834
7835 2011-09-29  Bruno Haible  <bruno@clisp.org>
7836
7837         float: Fix LDBL_MAX value on Linux/PowerPC.
7838         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7839         on Linux/PowerPC.
7840         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7841         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7842         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7843         platform.
7844         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7845
7846 2011-09-29  Bruno Haible  <bruno@clisp.org>
7847
7848         doc: Improve doc about gl_EARLY.
7849         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7850         AC_PROG_CC_STDC invocation.
7851         Reported by Gary V. Vaughan <gary@gnu.org>.
7852
7853 2011-09-28  Bruno Haible  <bruno@clisp.org>
7854
7855         fgetc, fputc, fread, fwrite tests: Fix link error.
7856         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7857         on non-MSVC platforms.
7858         * tests/test-fputc.c (main): Likewise.
7859         * tests/test-fread.c (main): Likewise.
7860         * tests/test-fwrite.c (main): Likewise.
7861         Reported by Jim Meyering.
7862
7863 2011-09-27  Bruno Haible  <bruno@clisp.org>
7864
7865         fputc, fwrite tests: Avoid test failure on MSVC.
7866         * tests/test-fgetc.c: Include msvc-inval.h.
7867         (main): Invoke gl_msvc_inval_ensure_handler.
7868         * tests/test-fputc.c: Include msvc-inval.h.
7869         (main): Invoke gl_msvc_inval_ensure_handler.
7870         * tests/test-fread.c: Include msvc-inval.h.
7871         (main): Invoke gl_msvc_inval_ensure_handler.
7872         * tests/test-fwrite.c: Include msvc-inval.h.
7873         (main): Invoke gl_msvc_inval_ensure_handler.
7874         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7875         * modules/fputc-tests (Depends-on): Likewise.
7876         * modules/fread-tests (Depends-on): Likewise.
7877         * modules/fwrite-tests (Depends-on): Likewise.
7878
7879 2011-09-27  Bruno Haible  <bruno@clisp.org>
7880
7881         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7882         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7883         (raise): Remove older, duplicated declaration.
7884         (_gl_raise_SIGPIPE): New declaration.
7885         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7886         (rpl_raise): Remove function.
7887         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7888         a gnulib-defined SIGPIPE here.
7889         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7890         'sigprocmask' has detected missing signal-blocking and the module
7891         'sigpipe' is enabled.
7892         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7893
7894 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7895
7896         base64-tests: avoid memory leak
7897         * tests/test-base64.c (main): Plug memory leak.
7898
7899         base32: new module
7900         * modules/base32: New module.
7901         * lib/base32.c: New file.
7902         * lib/base32.h: Likewise.
7903         * m4/base32.m4: Likewise.
7904         * modules/base32-tests: New test.
7905         * tests/test-base32.c: Likewise.
7906         * MODULES.html.sh (Misc): Mention it.
7907
7908 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7909
7910         gnulib: use more-standard license notice wording
7911         * gnulib-tool (func_emit_copyright_notice): When emitting a
7912         license notice into a file, use the standard wording as suggested
7913         by the current information for GNU maintainers, except say "file"
7914         rather than "program".  The new wording gives a license version
7915         number, which addresses an issue raised by Glenn Morris in
7916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7917         * m4/onceonly.m4: Use that same wording here, too.
7918
7919         dup2: minor simplification
7920         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7921         as lib/dup2.c no longer uses 'inline'.
7922
7923 2011-09-25  Bruno Haible  <bruno@clisp.org>
7924
7925         strings: Fix compilation error on MSVC.
7926         * lib/strings.in.h: Include <stddef.h> for size_t.
7927
7928 2011-09-25  Bruno Haible  <bruno@clisp.org>
7929
7930         fflush et al.: Document limitation on MSVC.
7931         * doc/posix-functions/fflush.texi: Document possible crash in handling
7932         mode other than DEFAULT_HANDLING.
7933         * doc/posix-functions/fgetc.texi: Likewise.
7934         * doc/posix-functions/fputc.texi: Likewise.
7935         * doc/posix-functions/fread.texi: Likewise.
7936         * doc/posix-functions/fwrite.texi: Likewise.
7937
7938 2011-09-25  Bruno Haible  <bruno@clisp.org>
7939
7940         msvc-inval: Allow three invalid parameter handling modes.
7941         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7942         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7943         macros.
7944         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7945         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7946         SANE_LIBRARY_HANDLING as a no-op.
7947         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7948         <stdlib.h>.
7949         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7950
7951 2011-09-25  Bruno Haible  <bruno@clisp.org>
7952
7953         msvc-inval: Make handler multithread-safe.
7954         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7955         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7956         declarations.
7957         (gl_msvc_inval_current): New declaration.
7958         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7959         Operate on the structure returned by gl_msvc_inval_current().
7960         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7961         Remove varaiables.
7962         (tls_index, tls_initialized): New variables.
7963         (not_per_thread): New variable.
7964         (gl_msvc_inval_current): New function.
7965         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7966         returned by gl_msvc_inval_current().
7967
7968 2011-09-25  Bruno Haible  <bruno@clisp.org>
7969
7970         msvc-inval: Install handler globally.
7971         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7972         !_MSC_VER.
7973         (gl_msvc_invalid_parameter_handler): Remove declaration.
7974         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7975         declarations.
7976         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7977         Install the handler globally, don't uninstall it.
7978         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7979         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7980         currently valid, call RaiseException instead.
7981         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7982         for !_MSC_VER.
7983
7984 2011-09-25  Bruno Haible  <bruno@clisp.org>
7985
7986         strerror_r-posix: Fix for MSVC 9.
7987         * lib/strerror_r.c (local_snprintf): New function.
7988         (snprintf): Define to local_snprintf, not to _snprintf.
7989
7990 2011-09-25  Bruno Haible  <bruno@clisp.org>
7991
7992         ftruncate: Support for MSVC 9.
7993         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7994         (chsize_nothrow): New function.
7995         (chsize): Redefine as a macro.
7996         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7997         * modules/ftruncate (Depends-on): Add msvc-inval.
7998
7999 2011-09-25  Bruno Haible  <bruno@clisp.org>
8000
8001         New module 'fstat'.
8002         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8003         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8004         * lib/fchdir.c (rpl_fstat): Remove function.
8005         * m4/fstat.m4: New file.
8006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8008         declared.
8009         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8010         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8011         * modules/fstat: New file.
8012         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8013         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8014         is set.
8015         * doc/posix-functions/fstat.texi: Mention the new module and the
8016         problem on MSVC.
8017         * NEWS: Mention the change.
8018         * modules/acl (Depends-on): Add fstat.
8019         * modules/chdir-safer (Depends-on): Likewise.
8020         * modules/chown (Depends-on): Likewise.
8021         * modules/copy-file (Depends-on): Likewise.
8022         * modules/fchdir (Depends-on): Likewise.
8023         * modules/fdopendir (Depends-on): Likewise.
8024         * modules/fopen (Depends-on): Likewise.
8025         * modules/fts (Depends-on): Likewise.
8026         * modules/getcwd (Depends-on): Likewise.
8027         * modules/isapipe (Depends-on): Likewise.
8028         * modules/linkat (Depends-on): Likewise.
8029         * modules/lseek (Depends-on): Likewise.
8030         * modules/mkdir-p (Depends-on): Likewise.
8031         * modules/open (Depends-on): Likewise.
8032         * modules/openat (Depends-on): Likewise.
8033         * modules/read-file (Depends-on): Likewise.
8034         * modules/renameat (Depends-on): Likewise.
8035         * modules/utimens (Depends-on): Likewise.
8036
8037 2011-09-25  Bruno Haible  <bruno@clisp.org>
8038
8039         linkat: Fix compilation on MSVC 9.
8040         * lib/linkat.c: Don't include <stdint.h>.
8041
8042 2011-09-25  Bruno Haible  <bruno@clisp.org>
8043
8044         fclose: Support for MSVC 9.
8045         * lib/fclose.c: Include msvc-inval.h.
8046         (fclose_nothrow): New function.
8047         (rpl_fclose): Use it.
8048         * modules/fclose (Depends-on): Add msvc-inval.
8049         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8050
8051 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8052
8053         dup2: minor simplifications
8054         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8055         that it's a performance win.
8056         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8057         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8058
8059 2011-09-24  Jim Meyering  <meyering@redhat.com>
8060
8061         test-futimens: avoid a warning from gcc -Wshadow
8062         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8063         to avoid a shadowing warning.
8064
8065 2011-09-24  Bruno Haible  <bruno@clisp.org>
8066
8067         fdopen: Support for MSVC 9.
8068         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8069         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8070         * lib/fdopen.c: Include msvc-inval.h.
8071         (fdopen_nothrow): New function.
8072         (rpl_fdopen): Use it.
8073         * modules/fdopen (Depends-on): Add msvc-inval.
8074         * modules/fclose-tests (Depends-on): Add fdopen.
8075         * modules/fflush-tests (Depends-on): Likewise.
8076         * modules/fgetc-tests (Depends-on): Likewise.
8077         * modules/fputc-tests (Depends-on): Likewise.
8078         * modules/fread-tests (Depends-on): Likewise.
8079         * modules/freopen-tests (Depends-on): Likewise.
8080         * modules/fseeko-tests (Depends-on): Likewise.
8081         * modules/ftello-tests (Depends-on): Likewise.
8082         * modules/fwrite-tests  (Depends-on): Likewise.
8083         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8084
8085 2011-09-24  Bruno Haible  <bruno@clisp.org>
8086
8087         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8088         * modules/fgetc-tests (Depends-on): Add unistd.
8089         * modules/fputc-tests (Depends-on): Likewise.
8090         * modules/fread-tests (Depends-on): Likewise.
8091         * modules/fwrite-tests (Depends-on): Likewise.
8092
8093 2011-09-24  Bruno Haible  <bruno@clisp.org>
8094
8095         dup: Simplify autoconf test.
8096         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8097         on gl_MSVC_INVAL's result.
8098
8099 2011-09-24  Bruno Haible  <bruno@clisp.org>
8100
8101         Tests for function fwrite().
8102         * modules/fwrite-tests: New file.
8103         * tests/test-fwrite.c: New file.
8104         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8105
8106         Tests for function fread().
8107         * modules/fread-tests: New file.
8108         * tests/test-fread.c: New file.
8109         * modules/stdio-tests (Depends-on): Add fread-tests.
8110
8111         Activate fputc tests.
8112         * modules/stdio-tests (Depends-on): Add fputc-tests.
8113
8114         Enhance fgetc, fputc tests.
8115         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8116         * tests/test-fputc.c (main): Likewise.
8117
8118 2011-09-24  Bruno Haible  <bruno@clisp.org>
8119
8120         write: Support for MSVC 9.
8121         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8122         is not 1.
8123         * lib/write.c (write_nothrow): New function.
8124         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8125         not 1. Use write_nothrow.
8126         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8127         invalid parameter handler.
8128         (gl_PREREQ_WRITE): New macro.
8129         * modules/write (Depends-on): Add msvc-inval.
8130         (configure.ac): Invoke gl_PREREQ_WRITE.
8131         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8132
8133 2011-09-24  Bruno Haible  <bruno@clisp.org>
8134
8135         read: Fix last commit.
8136         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8137
8138 2011-09-24  Bruno Haible  <bruno@clisp.org>
8139
8140         dup2: Fix last commit.
8141         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8142         (rpl_dup2): Disable fcntl workaround on native Windows.
8143
8144         sigprocmask: Make code safer.
8145         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8146         section that changes macro definitions for this compilation unit.
8147
8148 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8149
8150         dup2: clarify by coalescing Windows-specific material
8151         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8152         "msvc-nothrow.h"' to the Windows-specific section, so that the
8153         Emacs source need not contain these include files.
8154         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8155         Windows-specific fixes into this function rather than just the
8156         nothrow fix, as this shortens and clarifies the code.  Always
8157         define as a function, as that's a bit cleaner than having it be
8158         sometimes a function and sometimes a macro.
8159         (rpl_dup2): Move the Windows-specific stuff out of here and into
8160         ms_windows_dup2.  Don't protect the Haiku-related fix with
8161         "#if !defined __linux__", as the same code also works around
8162         a Linux kernel bug, and it doesn't add any system calls on any
8163         platform.  Add comment about FreeBSD 6.1.
8164
8165         sigprocmask: move #include directive
8166         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8167         Windows-specific section, so that the Emacs source need not
8168         contain msvc-inval.h.
8169
8170 2011-09-23  Bruno Haible  <bruno@clisp.org>
8171
8172         read: Support for MSVC 9.
8173         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8174         is not 1.
8175         * lib/read.c (read_nothrow): New function.
8176         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8177         read_nothrow.
8178         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8179         invalid parameter handler.
8180         (gl_PREREQ_READ): New macro.
8181         * modules/read (Depends-on): Add msvc-inval.
8182         (configure.ac): Invoke gl_PREREQ_READ.
8183         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8184
8185 2011-09-23  Bruno Haible  <bruno@clisp.org>
8186
8187         close: Support for MSVC 9.
8188         * lib/close.c: Include <errno.h>, msvc-inval.h.
8189         (close_nothrow): New function.
8190         (rpl_close): Use it.
8191         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8192         invalid parameter handler.
8193         * modules/close (Depends-on): Add msvc-inval.
8194         * modules/dup2-tests (Depends-on): Add close.
8195         * modules/dup3-tests (Depends-on): Likewise.
8196         * modules/fcntl-tests (Depends-on): Likewise.
8197         * modules/spawn-pipe-tests (Depends-on): Likewise.
8198         * modules/unistd-safer-tests (Depends-on): Likewise.
8199         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8200
8201 2011-09-23  Bruno Haible  <bruno@clisp.org>
8202
8203         New module 'dup'.
8204         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8205         Allow replacement.
8206         * lib/dup.c: New file.
8207         * lib/fchdir.c (rpl_dup): Remove function.
8208         * m4/dup.m4: New file.
8209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8210         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8211         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8212         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8213         * modules/dup: New file.
8214         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8215         'dup' module is in use.
8216         * modules/fdopendir (Depends-on): Add dup.
8217         * modules/fdutimensat-tests (Depends-on): Likewise.
8218         * modules/fts (Depends-on): Likewise.
8219         * modules/futimens-tests (Depends-on): Likewise.
8220         * modules/posix_spawnp-tests (Depends-on): Likewise.
8221         * modules/unistd-safer-tests (Depends-on): Likewise.
8222         * modules/utimens-tests (Depends-on): Likewise.
8223         * doc/posix-functions/dup.texi: Mention the new module and the problem
8224         on MSVC.
8225
8226 2011-09-23  Bruno Haible  <bruno@clisp.org>
8227
8228         getdtablesize: Support for MSVC 9.
8229         * lib/getdtablesize.c: Include msvc-inval.h.
8230         (_setmaxstdio_nothrow): New function.
8231         (_setmaxstdio): Redefine it.
8232         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8233         * modules/getdtablesize (Depends-on): Add msvc-inval.
8234         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8235
8236 2011-09-23  Bruno Haible  <bruno@clisp.org>
8237
8238         signal-h: Rename from signal.
8239         * modules/signal-h: Renamed from modules/signal.
8240         * modules/pthread_sigmask (Depends-on): Update.
8241         * modules/raise (Depends-on): Likewise.
8242         * modules/sigaction (Depends-on): Likewise.
8243         * modules/sigpipe (Depends-on): Likewise.
8244         * modules/sigprocmask (Depends-on): Likewise.
8245         * modules/sys_select (Depends-on): Likewise.
8246         * modules/signal-h-tests: Renamed from modules/signal-tests.
8247         (Files, Depends-on, Makefile.am): Update.
8248         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8249         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8250         (Files, Makefile.am): Update.
8251         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8252         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8253         * modules/signal: New placeholder file.
8254         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8255         * doc/posix-headers/signal.texi: Update.
8256         * NEWS: Mention the change.
8257
8258 2011-09-23  Bruno Haible  <bruno@clisp.org>
8259
8260         sigprocmask: Avoid crashes through signal() on MSVC 9.
8261         * lib/sigprocmask.c: Include msvc-inval.h.
8262         (signal_nothrow): New function.
8263         (signal): Redefine it.
8264         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8265         * modules/sigprocmask (Depends-on): Add msvc-inval.
8266         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8267
8268 2011-09-23  Bruno Haible  <bruno@clisp.org>
8269
8270         Tests for module 'raise'.
8271         * modules/raise-tests: New file.
8272         * tests/test-raise.c: New file.
8273
8274         raise: Support for MSVC.
8275         * lib/signal.in.h (raise): New declaration.
8276         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8277         for native Windows platforms.
8278         * m4/raise.m4: New file.
8279         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8280         HAVE_RAISE, REPLACE_RAISE.
8281         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8282         REPLACE_RAISE.
8283         * modules/raise (Status, Notice): Remove fields.
8284         (Files): Add m4/raise.m4.
8285         (Depends-on): Add signal, msvc-inval.
8286         (configure.ac): Use the common idioms.
8287         (Maintainer): Add me.
8288         * tests/test-signal-c++.cc: Check the signature of raise.
8289         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8290
8291 2011-09-23  Bruno Haible  <bruno@clisp.org>
8292
8293         pipe2: Fix compilation on pre-C99 compilers.
8294         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8295
8296 2011-09-23  Bruno Haible  <bruno@clisp.org>
8297
8298         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8299         * lib/msvc-nothrow.h: New file.
8300         * lib/msvc-nothrow.c: New file.
8301         * m4/msvc-nothrow.m4: New file.
8302         * modules/msvc-nothrow: New file.
8303         * lib/dup2.c: Include msvc-nothrow.h.
8304         (rpl_dup2): No need to protect _get_osfhandle call here.
8305         * lib/accept4.c: Include msvc-nothrow.h.
8306         * lib/error.c: Likewise.
8307         * lib/fcntl.c: Likewise.
8308         * lib/lseek.c: Likewise.
8309         * lib/nonblocking.c: Likewise.
8310         * lib/poll.c: Likewise.
8311         * lib/read.c: Likewise.
8312         * lib/select.c: Likewise.
8313         * lib/sockets.h: Likewise.
8314         * lib/sockets.c: Likewise.
8315         * lib/stdio-read.c: Likewise.
8316         * lib/stdio-write.c: Likewise.
8317         * lib/write.c: Likewise.
8318         * lib/w32sock.h: Likewise.
8319         * lib/w32spawn.h: Likewise.
8320         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8321         * lib/fsync.c: Likewise.
8322         * lib/isapipe.c: Likewise.
8323         * modules/dup2 (Depends-on): Add msvc-nothrow.
8324         * modules/accept4 (Depends-on): Likewise.
8325         * modules/error (Depends-on): Likewise.
8326         * modules/fcntl (Depends-on): Likewise.
8327         * modules/lseek (Depends-on): Likewise.
8328         * modules/nonblocking (Depends-on): Likewise.
8329         * modules/poll (Depends-on): Likewise.
8330         * modules/read (Depends-on): Likewise.
8331         * modules/select (Depends-on): Likewise.
8332         * modules/sockets (Depends-on): Likewise.
8333         * modules/sigpipe (Depends-on): Likewise.
8334         * modules/write (Depends-on): Likewise.
8335         * modules/accept (Depends-on): Likewise.
8336         * modules/bind (Depends-on): Likewise.
8337         * modules/connect (Depends-on): Likewise.
8338         * modules/gethostname (Depends-on): Likewise.
8339         * modules/getpeername (Depends-on): Likewise.
8340         * modules/getsockname (Depends-on): Likewise.
8341         * modules/getsockopt (Depends-on): Likewise.
8342         * modules/ioctl (Depends-on): Likewise.
8343         * modules/listen (Depends-on): Likewise.
8344         * modules/recv (Depends-on): Likewise.
8345         * modules/recvfrom (Depends-on): Likewise.
8346         * modules/send (Depends-on): Likewise.
8347         * modules/sendto (Depends-on): Likewise.
8348         * modules/setsockopt (Depends-on): Likewise.
8349         * modules/shutdown (Depends-on): Likewise.
8350         * modules/socket (Depends-on): Likewise.
8351         * modules/execute (Depends-on): Likewise.
8352         * modules/spawn-pipe (Depends-on): Likewise.
8353         * modules/flock (Depends-on): Likewise.
8354         * modules/fsync (Depends-on): Likewise.
8355         * modules/isapipe (Depends-on): Likewise.
8356         * tests/test-cloexec.c: Include msvc-nothrow.h.
8357         * tests/test-dup-safer.c: Likewise.
8358         * tests/test-dup2.c: Likewise.
8359         * tests/test-dup3.c: Likewise.
8360         * tests/test-fcntl.c: Likewise.
8361         * tests/test-pipe.c: Likewise.
8362         * tests/test-pipe2.c: Likewise.
8363         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8364         * modules/unistd-safer-tests (Depends-on): Likewise.
8365         * modules/dup2-tests (Depends-on): Likewise.
8366         * modules/dup3-tests (Depends-on): Likewise.
8367         * modules/fcntl-tests (Depends-on): Likewise.
8368         * modules/pipe-posix-tests (Depends-on): Likewise.
8369         * modules/pipe2-tests (Depends-on): Likewise.
8370
8371 2011-09-23  Bruno Haible  <bruno@clisp.org>
8372
8373         dup2: Make code more maintainable.
8374         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8375         (rpl_dup2): Use it.
8376         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8377         * modules/dup2 (configure.ac): Invoke it.
8378         Reported by Paul Eggert.
8379
8380 2011-09-23  Bruno Haible  <bruno@clisp.org>
8381
8382         msvc-inval: Fix compilation error.
8383         * lib/msvc-inval.h: Include <excpt.h>.
8384
8385 2011-09-23  Bruno Haible  <bruno@clisp.org>
8386
8387         mkdir: Tweak for MSVC 9.
8388         * lib/sys_stat.in.h: Update comments.
8389         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8390
8391         Tests for module 'chdir'.
8392         * modules/chdir-tests: New file.
8393         * tests/test-chdir.c: New file.
8394
8395         New module 'chdir'.
8396         * modules/chdir: New file.
8397         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8398         (chdir): New declaration.
8399         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8400         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8401         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8402         * tests/test-unistd-c++.cc: Check signature of chdir.
8403         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8404         * modules/chdir-long (Depends-on): Add chdir.
8405         * modules/fchdir (Depends-on): Likewise.
8406         * modules/rename (Depends-on): Likewise.
8407         * modules/savewd (Depends-on): Likewise.
8408
8409         rmdir: Support for mingw, MSVC 9.
8410         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8411         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8412
8413         getcwd: Tweak for MSVC 9.
8414         * lib/unistd.in.h: Update comments.
8415         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8416
8417 2011-09-22  Bruno Haible  <bruno@clisp.org>
8418
8419         strerror_r-posix: Avoid a link error on MSVC.
8420         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8421         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8422
8423 2011-09-22  Bruno Haible  <bruno@clisp.org>
8424
8425         select: Avoid link errors on MSVC.
8426         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8427         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8428         * modules/pselect (Link): Likewise.
8429         * NEWS: Mention the change.
8430         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8431         test-select-stdin against $(LIB_SELECT).
8432         * modules/pselect-tests (Makefile.am): Link test-pselect against
8433         $(LIB_SELECT).
8434
8435 2011-09-22  Bruno Haible  <bruno@clisp.org>
8436
8437         select: Avoid compilation error on MSVC.
8438         * lib/select.c: Don't include <stdbool.h>.
8439
8440 2011-09-21  Bruno Haible  <bruno@clisp.org>
8441
8442         Consolidate all uses of PATH_MAX in *.m4 files.
8443         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8444         macros.
8445         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8446         and gl_PATHMAX_SNIPPET.
8447         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8448         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8449         * modules/chdir-long (Files): Add m4/pathmax.m4.
8450         * modules/getcwd (Files): Likewise.
8451
8452 2011-09-21  Bruno Haible  <bruno@clisp.org>
8453
8454         ftruncate: Un-deprecate, concentrate on Win32 support.
8455         * modules/ftruncate (Status, Notice): Remove sections.
8456         (Depends-on): Add largefile.
8457         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8458         non-mingw platforms.
8459         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8460         include <io.h>.
8461         * modules/perror-tests (Depends-on): Add ftruncate.
8462         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8463         'ftruncate' module.
8464
8465 2011-09-21  Bruno Haible  <bruno@clisp.org>
8466
8467         Add dependencies to new dirent related modules.
8468         * modules/opendir (Depends-on): Add closedir.
8469         * modules/getcwd (Depends-on): Add opendir, closedir.
8470         * modules/dirent-safer-tests (Depends-on): Likewise.
8471         * modules/fdopendir-tests (Depends-on): Likewise.
8472         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8473         * modules/renameat-tests (Depends-on): Likewise.
8474
8475 2011-09-21  Bruno Haible  <bruno@clisp.org>
8476
8477         opendir: Avoid compilation error on mingw.
8478         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8479         * modules/opendir (Depends-on): Add unistd.
8480
8481 2011-09-21  Bruno Haible  <bruno@clisp.org>
8482
8483         ftruncate tests: Avoid a test failure on mingw.
8484         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8485
8486 2011-09-21  Bruno Haible  <bruno@clisp.org>
8487
8488         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8489         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8490         native Windows.
8491
8492 2011-09-21  Bruno Haible  <bruno@clisp.org>
8493
8494         New module 'fdopen'.
8495         * lib/stdio.in.h (fdopen): New declaration.
8496         * lib/fdopen.c: New file.
8497         * m4/fdopen.m4: New file.
8498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8499         REPLACE_FDOPEN.
8500         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8501         REPLACE_FDOPEN.
8502         * modules/fdopen: New file.
8503         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8504         * tests/test-stdio-c++.cc: Check signature of fdopen.
8505         * doc/posix-functions/fdopen.texi: Mention the new module.
8506
8507 2011-09-21  Bruno Haible  <bruno@clisp.org>
8508
8509         unlockpt tests: Avoid test failure on NetBSD 5.1.
8510         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8511         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8512
8513 2011-09-21  Bruno Haible  <bruno@clisp.org>
8514
8515         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8516         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8517         * tests/test-getlogin_r.c (main): Likewise.
8518
8519 2011-09-20  Bruno Haible  <bruno@clisp.org>
8520
8521         time tests: Don't require pid_t.
8522         * doc/posix-headers/time.texi: Revert last change.
8523         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8524         * tests/test-time.c: Comment out the check for pid_t.
8525
8526 2011-09-20  Bruno Haible  <bruno@clisp.org>
8527
8528         fsync tests: Avoid a test failure on mingw.
8529         * tests/test-fsync.c (main): Allow a failure with EIO.
8530
8531 2011-09-20  Bruno Haible  <bruno@clisp.org>
8532
8533         euidaccess: Update comments.
8534         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8535
8536 2011-09-20  Bruno Haible  <bruno@clisp.org>
8537
8538         Ensure EBADF returns for socket functions on mingw.
8539         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8540         descriptor is invalid.
8541         * lib/bind.c (rpl_bind): Likewise.
8542         * lib/connect.c (rpl_connect): Likewise.
8543         * lib/getpeername.c (rpl_getpeername): Likewise.
8544         * lib/getsockname.c (rpl_getsockname): Likewise.
8545         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8546         * lib/listen.c (rpl_listen): Likewise.
8547         * lib/recv.c (rpl_recv): Likewise.
8548         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8549         * lib/send.c (rpl_send): Likewise.
8550         * lib/sendto.c (rpl_sendto): Likewise.
8551         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8552         * lib/shutdown.c (rpl_shutdown): Likewise.
8553
8554 2011-09-20  Bruno Haible  <bruno@clisp.org>
8555
8556         select tests: EBADF tests.
8557         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8558         test_bad_fd): New functions.
8559         (test_function): Invoke also test_bad_fd.
8560
8561 2011-09-20  Bruno Haible  <bruno@clisp.org>
8562
8563         Tests for module 'posix_spawn_file_actions_addopen.
8564         * modules/posix_spawn_file_actions_addopen-tests: New file.
8565         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8566
8567         Tests for module 'posix_spawn_file_actions_adddup2'.
8568         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8569         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8570
8571         Tests for module 'posix_spawn_file_actions_addclose'.
8572         * modules/posix_spawn_file_actions_addclose-tests: New file.
8573         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8574
8575 2011-09-20  Bruno Haible  <bruno@clisp.org>
8576
8577         Tests for module 'unlockpt'.
8578         * modules/unlockpt-tests: New file.
8579         * tests/test-unlockpt.c: New file.
8580         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8581
8582         Tests for module 'grantpt'.
8583         * modules/grantpt-tests: New file.
8584         * tests/test-grantpt.c: New file.
8585         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8586
8587 2011-09-20  Bruno Haible  <bruno@clisp.org>
8588
8589         freopen tests: EBADF tests.
8590         * tests/test-freopen.c: Include errno.h, unistd.h.
8591         (main): Add tests for EBADF, commented out for the moment.
8592
8593         fclose tests: EBADF tests.
8594         * tests/test-fclose.c (main): Add tests for EBADF.
8595
8596         fflush tests: EBADF tests.
8597         * tests/test-fflush.c: Include errno.h, macros.h.
8598         (main): Add tests for EBADF.
8599
8600         ftello tests: EBADF tests.
8601         * tests/test-ftello4.sh: New file.
8602         * tests/test-ftello4.c: New file.
8603         * modules/ftello-tests (Files): Add them.
8604         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8605
8606         fseeko tests: EBADF tests.
8607         * tests/test-fseeko4.sh: New file.
8608         * tests/test-fseeko4.c: New file.
8609         * modules/fseeko-tests (Files): Add them.
8610         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8611
8612         Tests for function fputc().
8613         * modules/fputc-tests: New file.
8614         * tests/test-fputc.c: New file.
8615         * modules/stdio-tests (Depends-on): Add fputc-tests.
8616
8617         Tests for function fgetc().
8618         * modules/fgetc-tests: New file.
8619         * tests/test-fgetc.c: New file.
8620         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8621
8622         Tests for function fdopen().
8623         * modules/fdopen-tests: New file.
8624         * tests/test-fdopen.c: New file.
8625         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8626
8627         Tests for module 'vdprintf'.
8628         * modules/vdprintf-tests: New file.
8629         * tests/test-vdprintf.c: New file.
8630
8631         Tests for module 'dprintf'.
8632         * modules/dprintf-tests: New file.
8633         * tests/test-dprintf.c: New file.
8634
8635 2011-09-20  Bruno Haible  <bruno@clisp.org>
8636
8637         Tests for module 'ioctl'.
8638         * modules/ioctl-tests: New file.
8639         * tests/test-ioctl.c: New file.
8640
8641 2011-09-20  Bruno Haible  <bruno@clisp.org>
8642
8643         fcntl tests: EBADF tests.
8644         * tests/test-fcntl.c (main): Add more tests for EBADF.
8645
8646 2011-09-20  Bruno Haible  <bruno@clisp.org>
8647
8648         utimensat tests: EBADF tests.
8649         * tests/test-utimensat.c (main): Add tests for EBADF.
8650
8651         renameat tests: EBADF tests.
8652         * tests/test-renameat.c (main): Add tests for EBADF.
8653
8654         mkfifoat tests: EBADF tests.
8655         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8656
8657         readlinkat tests: EBADF tests.
8658         * tests/test-readlinkat.c (main): Add tests for EBADF.
8659
8660         symlinkat tests: EBADF tests.
8661         * tests/test-symlinkat.c (main): Add tests for EBADF.
8662
8663         linkat tests: EBADF tests.
8664         * tests/test-linkat.c (main): Add tests for EBADF.
8665
8666         Tests for module 'faccessat'.
8667         * modules/faccessat-tests: New file.
8668         * tests/test-faccessat.c: New file.
8669
8670         fdopendir tests: EBADF tests.
8671         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8672
8673         openat tests: EBADF tests.
8674         * tests/test-fchownat.c (main): Add tests for EBADF.
8675         * tests/test-fstatat.c (main): Likewise.
8676         * tests/test-mkdirat.c (main): Likewise.
8677         * tests/test-openat.c (main): Likewise.
8678         * tests/test-unlinkat.c (main): Likewise.
8679         * tests/test-fchmodat.c: New file.
8680         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8681         (Makefile.am): Also run 'test-fchmodat'.
8682
8683 2011-09-20  Bruno Haible  <bruno@clisp.org>
8684
8685         utimens, futimens, fdutimensat tests: EBADF tests.
8686         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8687
8688         Tests for function fstat().
8689         * modules/fstat-tests: New file.
8690         * tests/test-fstat.c: New file.
8691         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8692
8693 2011-09-20  Bruno Haible  <bruno@clisp.org>
8694
8695         test-ttyname_r tests: EBADF tests.
8696         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8697
8698         Tests for module 'isatty'.
8699         * modules/isatty-tests: New file.
8700         * tests/test-isatty.c: New file.
8701
8702         Tests for module 'write'.
8703         * modules/write-tests: New file.
8704         * tests/test-write.c: New file.
8705
8706         Tests for module 'read'.
8707         * modules/read-tests: New file.
8708         * tests/test-read.c: New file.
8709
8710         pwrite tests: EBADF tests.
8711         * tests/test-pwrite.c (main): Add tests for EBADF.
8712
8713         pread tests: EBADF tests.
8714         * tests/test-pread.c (main): Add tests for EBADF.
8715
8716         lseek tests: EBADF tests.
8717         * tests/test-lseek.c (main): Add more tests for EBADF.
8718
8719         Tests for module 'ftruncate'.
8720         * modules/ftruncate-tests: New file.
8721         * tests/test-ftruncate.sh: New file.
8722         * tests/test-ftruncate.c: New file.
8723
8724         fsync tests: EBADF tests.
8725         * tests/test-fsync.c (main): Add more tests for EBADF.
8726
8727         fdatasync tests: EBADF tests.
8728         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8729
8730         Tests for module 'fchown'.
8731         * modules/fchown-tests: New file.
8732         * tests/test-fchown.c: New file.
8733
8734         Tests for module 'fchmod'.
8735         * modules/fchmod-tests: New file.
8736         * tests/test-fchmod.c: New file.
8737
8738         fchdir tests: EBADF tests.
8739         * tests/test-fchdir.c (main): Add more tests for EBADF.
8740
8741         dup2 tests: EBADF tests.
8742         * tests/test-dup2.c (main): Add more tests for EBADF.
8743
8744         Tests for module 'dup'.
8745         * modules/dup-tests: New file.
8746         * tests/test-dup.c: New file.
8747
8748         Tests for module 'close'.
8749         * modules/close-tests: New file.
8750         * tests/test-close.c: New file.
8751
8752 2011-09-20  Bruno Haible  <bruno@clisp.org>
8753
8754         Tests for module 'shutdown'.
8755         * modules/shutdown-tests: New file.
8756         * tests/test-shutdown.c: New file.
8757
8758         Tests for module 'setsockopt'.
8759         * modules/setsockopt-tests: New file.
8760         * tests/test-setsockopt.c: New file.
8761
8762         Tests for module 'sendto'.
8763         * modules/sendto-tests: New file.
8764         * tests/test-sendto.c: New file.
8765
8766         Tests for module 'send'.
8767         * modules/send-tests: New file.
8768         * tests/test-send.c: New file.
8769
8770         Tests for module 'recvfrom'.
8771         * modules/recvfrom-tests: New file.
8772         * tests/test-recvfrom.c: New file.
8773
8774         Tests for module 'recv'.
8775         * modules/recv-tests: New file.
8776         * tests/test-recv.c: New file.
8777
8778         Tests for module 'listen'.
8779         * modules/listen-tests: New file.
8780         * tests/test-listen.c: New file.
8781
8782         Tests for module 'getsockopt'.
8783         * modules/getsockopt-tests: New file.
8784         * tests/test-getsockopt.c: New file.
8785
8786         Tests for module 'getsockname'.
8787         * modules/getsockname-tests: New file.
8788         * tests/test-getsockname.c: New file.
8789
8790         Tests for module 'getpeername'.
8791         * modules/getpeername-tests: New file.
8792         * tests/test-getpeername.c: New file.
8793
8794         Tests for module 'connect'.
8795         * modules/connect-tests: New file.
8796         * tests/test-connect.c: New file.
8797
8798         Tests for module 'bind'.
8799         * modules/bind-tests: New file.
8800         * tests/test-bind.c: New file.
8801
8802         accept4 tests: Fix for native Windows.
8803         * tests/test-accept4.c: Include sockets.h.
8804         (main): Invoke gl_sockets_startup.
8805         * modules/accept4-tests (Depends-on): Add sockets.
8806
8807         accept tests: Fix for native Windows.
8808         * tests/test-accept.c: Include sockets.h.
8809         (main): Invoke gl_sockets_startup.
8810         * modules/accept-tests (Depends-on): Add sockets.
8811
8812 2011-09-19  Bruno Haible  <bruno@clisp.org>
8813
8814         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8815         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8816         do...while(0).
8817         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8818         Suggested by Paul Eggert.
8819
8820 2011-09-19  Bruno Haible  <bruno@clisp.org>
8821
8822         sched: Ensure pid_t is defined.
8823         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8824         not define pid_t.
8825         * lib/sched.in.h: Include <sys/types.h>.
8826         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8828
8829 2011-09-19  Bruno Haible  <bruno@clisp.org>
8830
8831         msvc-inval: Ensure the entire expansion is a single statement.
8832         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8833         of braces.
8834
8835 2011-09-19  Jim Meyering  <meyering@redhat.com>
8836
8837         tests: use printf, not echo in init.sh's warn_ function
8838         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8839         misbehave when given strings containing a backslash or starting
8840         with e.g., -n.  James Youngman suggested setting IFS.
8841
8842 2011-09-19  Eric Blake  <eblake@redhat.com>
8843
8844         futimens: enhance test
8845         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8846         closed non-negative fd.
8847
8848         date: accept 'hence' as opposite of 'ago'
8849         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8850         * tests/test-parse-datetime.c (main): Enhance test.
8851         Suggested by Jesse Wilson.
8852
8853 2011-09-19  Jim Meyering  <meyering@redhat.com>
8854
8855         getcwd: don't fail in a deep directory on a system without openat
8856         Before this change, getcwd would fail when called from a directory
8857         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8858         the non-openat implementation used "..", "../..", "../../..", etc.
8859         to access ancestor directories.  With too many, that string would
8860         be longer than PATH_MAX.
8861         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8862         using gnulib's openat replacement.
8863         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8864         we're using the replacement function.
8865
8866 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8867
8868         maint.mk: avoid warnings from perl about missing files
8869         * top/maint.mk (def_sym_regex): Ignore files listed in
8870         $(gl_other_headers_) that do not exist, say because a project
8871         does not use a corresponding module.
8872
8873 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8874
8875         stat: use pathmax.h only if needed
8876         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8877         This is better for Emacs, which does not have a mingw port and
8878         therefore can avoid the pathmax module.
8879
8880         utimens: remove dependency on dup2
8881         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8882         to work around the Linux kernel bug.
8883         * modules/utimens (Depends-on): Remove dup2.
8884
8885 2011-09-18  Bruno Haible  <bruno@clisp.org>
8886
8887         inet_ntop, inet_pton: Look for it also in libresolv.
8888         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8889         libnsl, search for it in libresolv.
8890         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8891         Needed on Solaris 7.
8892
8893 2011-09-18  Bruno Haible  <bruno@clisp.org>
8894
8895         accept, accept4 tests: Avoid link error on Solaris.
8896         * modules/accept-tests (Makefile.am): Link test-accept against
8897         $(LIBSOCKET).
8898         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8899         $(LIBSOCKET).
8900
8901         accept4: Avoid link error on Solaris.
8902         * modules/accept4 (Link): New section.
8903
8904         socket functions: Avoid link errors on Solaris.
8905         * modules/accept (Depends-on): Add socketlib.
8906         (Link): New section.
8907         * modules/bind (Depends-on): Add socketlib.
8908         (Link): New section.
8909         * modules/connect (Depends-on): Add socketlib.
8910         (Link): New section.
8911         * modules/getpeername (Depends-on): Add socketlib.
8912         (Link): New section.
8913         * modules/getsockname (Depends-on): Add socketlib.
8914         (Link): New section.
8915         * modules/getsockopt (Depends-on): Add socketlib.
8916         (Link): New section.
8917         * modules/listen (Depends-on): Add socketlib.
8918         (Link): New section.
8919         * modules/recv (Depends-on): Add socketlib.
8920         (Link): New section.
8921         * modules/recvfrom (Depends-on): Add socketlib.
8922         (Link): New section.
8923         * modules/send (Depends-on): Add socketlib.
8924         (Link): New section.
8925         * modules/sendto (Depends-on): Add socketlib.
8926         (Link): New section.
8927         * modules/setsockopt (Depends-on): Add socketlib.
8928         (Link): New section.
8929         * modules/shutdown (Depends-on): Add socketlib.
8930         (Link): New section.
8931         * modules/socket (Depends-on): Add socketlib.
8932         (Link): New section.
8933
8934 2011-09-18  Bruno Haible  <bruno@clisp.org>
8935
8936         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8937         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8938         than 5 seconds.
8939         * modules/ptsname-tests (configure.ac): Test for alarm.
8940
8941 2011-09-18  Bruno Haible  <bruno@clisp.org>
8942
8943         posix_spawn_file_actions_add*: Fix module dependencies.
8944         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8945         posix_spawn_file_actions_init.
8946         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8947         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8948
8949 2011-09-18  Bruno Haible  <bruno@clisp.org>
8950
8951         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8952         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8953         * tests/test-renameat.c (main): Likewise.
8954
8955 2011-09-18  Bruno Haible  <bruno@clisp.org>
8956
8957         Tests for module 'accept4'.
8958         * modules/accept4-tests: New file.
8959         * tests/test-accept4.c: New file.
8960
8961 2011-09-18  Bruno Haible  <bruno@clisp.org>
8962
8963         Tests for module 'accept'.
8964         * modules/accept-tests: New file.
8965         * tests/test-accept.c: New file.
8966
8967 2011-09-18  Bruno Haible  <bruno@clisp.org>
8968
8969         dup2: Support for MSVC.
8970         * lib/dup2.c: Include msvc-inval.h.
8971         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8972         _get_osfhandle calls.
8973         * modules/dup2 (Depends-on): Add msvc-inval.
8974         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8975
8976         New module 'msvc-inval'.
8977         * lib/msvc-inval.h: New file.
8978         * lib/msvc-inval.c: New file.
8979         * m4/msvc-inval.m4: New file.
8980         * modules/msvc-inval: New file.
8981
8982 2011-09-17  Bruno Haible  <bruno@clisp.org>
8983
8984         Tests for module 'pclose'.
8985         * modules/pclose-tests: New file.
8986
8987         New module 'pclose'.
8988         * lib/stdio.in.h (pclose): New declaration.
8989         * lib/pclose.c: New file.
8990         * m4/pclose.m4: New file.
8991         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8992         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8993         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8994         * modules/pclose: New file.
8995         * modules/popen-tests (Depends-on): Add pclose.
8996         * modules/popen-safer-tests (Depends-on): Likewise.
8997         * doc/posix-functions/pclose.texi: Mention the new module.
8998
8999 2011-09-17  Bruno Haible  <bruno@clisp.org>
9000
9001         popen: Support for MSVC.
9002         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9003         * lib/popen.c (popen): Provide alternate definition for native Windows.
9004         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9006         * modules/popen (Depends-on, configure.ac): Update condition.
9007         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9008         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9009         fixed.
9010
9011 2011-09-17  Bruno Haible  <bruno@clisp.org>
9012
9013         isnanl, isnand, isnanf: Work around MSVC bug.
9014         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9015
9016 2011-09-17  Bruno Haible  <bruno@clisp.org>
9017
9018         sys_socket tests: Fix recent mistake.
9019         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9020
9021 2011-09-17  Bruno Haible  <bruno@clisp.org>
9022
9023         putenv: Support for MSVC.
9024         * modules/putenv (Depends-on): Add environ.
9025         * lib/putenv.c (environ): Disable declaration.
9026         * lib/unistd.in.h: Update comment.
9027
9028 2011-09-17  Bruno Haible  <bruno@clisp.org>
9029
9030         math: Avoid macro redefinition warnings on MSVC.
9031         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9032         Undefine before redefining.
9033
9034 2011-09-17  Bruno Haible  <bruno@clisp.org>
9035
9036         doc: Mention functions which are declared as macros.
9037         * doc/posix-functions/*[fl].texi: Mention that some functions are
9038         defined as macros with arguments only.
9039
9040 2011-09-17  Bruno Haible  <bruno@clisp.org>
9041
9042         Add dependencies to new dirent related modules.
9043         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9044         * modules/fts (Depends-on): Likewise.
9045         * modules/glob (Depends-on): Likewise.
9046         * modules/savedir (Depends-on): Likewise.
9047         * modules/scandir (Depends-on): Likewise.
9048         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9049         * modules/fdopendir (Depends-on): Add opendir.
9050
9051 2011-09-17  Bruno Haible  <bruno@clisp.org>
9052
9053         inet_pton: Support for MSVC on Windows Vista or newer.
9054         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9055         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9056         HAVE_DECL_INET_PTON is defined.
9057         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9058         On platforms with <winsock2.h>, test whether inet_pton is declared in
9059         <ws2tcpip.h>. If so, arrange to replace it.
9060         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9061         REPLACE_INET_PTON.
9062         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9063         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9064         (Depends-on, configure.ac): Update condition.
9065         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9066
9067 2011-09-17  Bruno Haible  <bruno@clisp.org>
9068
9069         inet_ntop: Support for MSVC on Windows Vista or newer.
9070         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9071         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9072         HAVE_DECL_INET_NTOP is defined.
9073         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9074         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9075         <ws2tcpip.h>. If so, arrange to replace it.
9076         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9077         REPLACE_INET_NTOP.
9078         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9079         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9080         (Depends-on, configure.ac): Update condition.
9081         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9082
9083 2011-09-16  Eric Blake  <eblake@redhat.com>
9084
9085         test-fsync: yet another enhancement
9086         * tests/test-fsync.c (main): Also test behavior on read-only text
9087         file.
9088
9089 2011-09-16  Bruno Haible  <bruno@clisp.org>
9090
9091         Enhance fsync, fdatasync tests.
9092         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9093         * tests/test-fdatasync.c (main): Likewise.
9094
9095 2011-09-16  Bruno Haible  <bruno@clisp.org>
9096
9097         Support for MSVC compiler: Ensure mode_t gets defined.
9098         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9099         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9100         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9101         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9102         * tests/test-fcntl-h.c: Check that mode_t is defined.
9103         * tests/test-sys_stat.c: Likewise.
9104         * tests/test-sys_types.c: Likewise.
9105         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9106         * doc/posix-headers/sys_stat.texi: Likewise.
9107         * doc/posix-headers/sys_types.texi: Likewise.
9108
9109 2011-09-16  Bruno Haible  <bruno@clisp.org>
9110
9111         sys_stat: Support for MSVC.
9112         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9113         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9114         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9115         MSVC.
9116
9117 2011-09-16  Bruno Haible  <bruno@clisp.org>
9118
9119         Support for MSVC compiler: Ensure off_t gets defined.
9120         * lib/unistd.in.h: Include <sys/types.h>.
9121         * tests/test-fcntl-h.c: Check that off_t is defined.
9122         * tests/test-sys_stat.c: Likewise.
9123         * tests/test-sys_types.c: Likewise.
9124
9125 2011-09-16  Eric Blake  <eblake@redhat.com>
9126
9127         fdatasync: port to Solaris
9128         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9129         * modules/fdatasync (Link): Document it.
9130         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9131
9132         fdatasync: port to MacOS X 10.7
9133         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9134         declared.
9135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9136         * modules/unistd (Makefile.am): Substitute it.
9137         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9138         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9139
9140         fdatasync: minor improvements
9141         * modules/fdatasync (Depends-on): Add condition for fsync.
9142         * lib/fdatasync.c (fdatasync): Add comment.
9143         * tests/test-unistd-c++.cc: Test fdatasync.
9144
9145         unistd: update refs to newer POSIX
9146         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9147         Suggested by Bruno Haible.
9148
9149         fdatasync: new module
9150         * modules/fsync (Description): Document difference to fdatasync.
9151         * modules/fdatasync: New module.
9152         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9153         * lib/fdatasync.c (fdatasync): Likewise.
9154         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9155         defaults.
9156         * modules/unistd (Makefile.am): Set witnesses.
9157         * lib/unistd.in.h (fdatasync): Declare.
9158         * MODULES.html.sh: Document it.
9159         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9160         * modules/fdatasync-tests: New test.
9161         * tests/test-fdatasync.c: Likewise.
9162
9163 2011-09-16  Eric Blake  <eblake@redhat.com>
9164
9165         test-fsync: enhance tests
9166         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9167         * tests/test-fsync.c (main): Enhance test.
9168
9169 2011-09-15  Bruno Haible  <bruno@clisp.org>
9170
9171         Support for MSVC compiler: Ensure ssize_t gets defined.
9172         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9173         * doc/posix-headers/stdio.texi: Likewise.
9174         * modules/stdio (Depends-on): Add ssize_t.
9175         * modules/sys_socket (Depends-on): Likewise.
9176         * modules/sys_types (Depends-on): Likewise.
9177         * modules/sys_uio (Depends-on): Likewise.
9178         * modules/unistd (Depends-on): Likewise.
9179         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9180         * tests/test-sys_types.c: Check that ssize_t is defined.
9181
9182 2011-09-14  Bruno Haible  <bruno@clisp.org>
9183
9184         Avoid using #, the m4 comment starter character, near brackets.
9185         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9186         delimiter character in sed expressions.
9187         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9188         Suggested by Eric Blake.
9189
9190         Properly quote AC_CHECK_DECLS' 4th argument.
9191         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9192         argument.
9193         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9194         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9196         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9197         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9198         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9199         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9200         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9201         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9202         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9203         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9204         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9205         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9206         * m4/isinf.m4 (gl_ISINF): Likewise.
9207         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9208         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9209         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9210         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9211         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9213         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9214         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9215         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9216         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9217         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9220         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9222         Reported by Eric Blake.
9223
9224         Properly quote AC_CHECK_DECL's 4th argument.
9225         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9226         argument.
9227         * m4/argp.m4 (gl_ARGP): Likewise.
9228         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9229         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9230         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9231         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9232         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9233         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9234         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9235         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9236         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9237         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9238         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9239         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9240         Reported by Eric Blake.
9241
9242 2011-09-14  Eric Blake  <eblake@redhat.com>
9243
9244         opendir: avoid compile warning
9245         * lib/opendir.c (includes): Always include errno.h.
9246         Reported by Tatsuro MATSUOKA.
9247
9248 2011-09-14  Jim Meyering  <meyering@redhat.com>
9249
9250         maint.mk: sc_tight_scope: propagate failure from sub-make
9251         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9252         Reported by Martin von Gagern.
9253
9254 2011-09-13  Bruno Haible  <bruno@clisp.org>
9255
9256         tempname: Support for MSVC.
9257         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9258         MSVC.
9259         * modules/tempname (Depends-on): Add fcntl-h.
9260
9261 2011-09-13  Bruno Haible  <bruno@clisp.org>
9262
9263         sys_time: Support for MSVC.
9264         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9265         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9266         include <winsock2.h>.
9267         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9268         function declarations that collide with POSIX.
9269         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9270         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9271
9272 2011-09-13  Bruno Haible  <bruno@clisp.org>
9273
9274         stat: Support for MSVC.
9275         * lib/stat.c: Include pathmax.h.
9276         * modules/stat (Depends-on): Add pathmax.
9277
9278         pathmax: Support for native Windows.
9279         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9280
9281 2011-09-12  Bruno Haible  <bruno@clisp.org>
9282
9283         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9284         * lib/dirent.in.h (struct dirent): New type.
9285         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9286         DT_WHT): New macros.
9287         (DIR): New type.
9288         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9289         (readdir, rewinddir): New declarations.
9290         * lib/dirent-private.h: New file.
9291         * lib/opendir.c: New file.
9292         * lib/readdir.c: New file.
9293         * lib/rewinddir.c: New file.
9294         * lib/closedir.c: New file.
9295         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9296         * m4/opendir.m4: New file.
9297         * m4/readdir.m4: New file.
9298         * m4/rewinddir.m4: New file.
9299         * m4/closedir.m4: New file.
9300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9301         REPLACE_CLOSEDIR here.
9302         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9303         readdir, rewinddir are declared.
9304         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9305         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9306         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9307         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9308         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9309         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9310         * modules/opendir: New file.
9311         * modules/readdir: New file.
9312         * modules/rewinddir: New file.
9313         * modules/closedir: New file.
9314         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9315         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9316         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9317         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9318         * NEWS: Mention the 'fchdir' change.
9319
9320 2011-09-11  Bruno Haible  <bruno@clisp.org>
9321
9322         asm-underscore.m4: Support for MSVC.
9323         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9324         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9325
9326 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9327
9328         Doc about crypt functions.
9329         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9330         needing for _GNU_SOURCE to get crypt.
9331         * doc/posix-functions/encrypt.texi: Likewise.
9332         * doc/posix-functions/setkey.texi: Likewise.
9333
9334 2011-09-11  Bruno Haible  <bruno@clisp.org>
9335
9336         doc: Update regarding MSVC 9.
9337         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9338         tested".
9339         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9340         * doc/posix-headers/*.texi: Likewise.
9341         * doc/pastposix-functions/*.texi: Likewise.
9342         * doc/glibc-functions/*.texi: Likewise.
9343         * doc/glibc-headers/*.texi: Likewise.
9344
9345 2011-09-11  Bruno Haible  <bruno@clisp.org>
9346
9347         unistd et al.: Don't assume <unistd.h> exists.
9348         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9349         does not exist.
9350         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9351         exist. But include <stdlib.h>.
9352         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9353         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9354         symlink() does not exist.
9355         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9356         include <io.h> instead.
9357         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9358         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9359         include <direct.h> instead.
9360         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9361         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9362         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9363         <io.h> instead.
9364         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9365         correctly if the system does not have hard links.
9366         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9367         <direct.h> instead.
9368         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9369         it when looking for function declarations.
9370         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9371         <direct.h> and <io.h> instead.
9372         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9373
9374 2011-09-11  Bruno Haible  <bruno@clisp.org>
9375
9376         strcase: Support for MSVC.
9377         * modules/strcase (Status, Notice): Remove obsoletion mark.
9378         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9379         * doc/posix-functions/strncasecmp.texi: Likewise.
9380
9381         strings: Don't assume <strings.h> exists.
9382         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9383         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9384         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9385         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9386
9387 2011-09-11  Bruno Haible  <bruno@clisp.org>
9388
9389         dirent: Don't assume <dirent.h> exists.
9390         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9391         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9392         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9393         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9394
9395 2011-09-11  Bruno Haible  <bruno@clisp.org>
9396
9397         Fix wint_t on MSVC.
9398         * lib/wchar.in.h (wint_t): On MSVC, override it.
9399         * lib/wctype.in.h (wint_t): Likewise.
9400         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9401         MSVC.
9402         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9403         * doc/posix-headers/wctype.texi: Likewise.
9404
9405 2011-09-11  Bruno Haible  <bruno@clisp.org>
9406
9407         sys_types: Fix typo.
9408         * lib/sys_types.in.h: Fix typo in comment.
9409         Reported by Paul Eggert.
9410
9411         Support for MSVC compiler: Ensure size_t gets defined.
9412         * modules/strings (Depends-on): Add 'sys_types'.
9413         * modules/sys_uio (Depends-on): Likewise.
9414         * lib/sys_uio.in.h: Update comment.
9415
9416         C++ tests for module 'sys_types'.
9417         * modules/sys_types-c++-tests: New file.
9418         * tests/test-sys_types-c++.cc: New file.
9419
9420         Tests for module 'sys_types'.
9421         * modules/sys_types-tests: New file.
9422         * tests/test-sys_types.c: New file.
9423
9424         New module 'sys_types'.
9425         * lib/sys_types.in.h: New file.
9426         * m4/sys_types_h.m4: New file.
9427         * modules/sys_types: New file.
9428         * doc/posix-headers/sys_types.texi: Mention the new module and the
9429         size_t problem on MSVC 9.
9430
9431 2011-09-11  Bruno Haible  <bruno@clisp.org>
9432
9433         Support for MSVC compiler: Avoid division by a literal 0.
9434         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9435         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9436         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9437         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9438         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9439         * tests/infinity.h: New file.
9440         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9441         on MSVC.
9442         * tests/test-ceilf1.c: Include infinity.h.
9443         (main): Use Infinityf.
9444         * tests/test-ceil1.c: Include infinity.h.
9445         (main): Use Infinityd.
9446         * tests/test-ceill.c: Include infinity.h.
9447         (main): Use Infinityl.
9448         * tests/test-dprintf-posix.c: Include infinity.h.
9449         (test_function): Use Infinityd.
9450         * tests/test-floorf1.c: Include infinity.h.
9451         (main): Use Infinityf.
9452         * tests/test-floor1.c: Include infinity.h.
9453         (main): Use Infinityd.
9454         * tests/test-floorl.c: Include infinity.h.
9455         (main): Use Infinityl.
9456         * tests/test-fprintf-posix.c: Include infinity.h.
9457         (test_function): Use Infinityd.
9458         * tests/test-frexp.c: Include infinity.h.
9459         (main): Use Infinityd.
9460         * tests/test-frexpl.c: Include infinity.h.
9461         (main): Use Infinityl.
9462         * tests/test-isfinite.c: Include infinity.h.
9463         (test_isfinitef): Use Infinityf.
9464         (test_isfinited): Use Infinityd.
9465         (test_isfinitel): Use Infinityl.
9466         * tests/test-isinf.c: Include infinity.h.
9467         (test_isinff): Use Infinityf.
9468         (test_isinfd): Use Infinityd.
9469         (test_isinfl): Use Infinityl.
9470         * tests/test-isnan.c: Include infinity.h.
9471         (test_float): Use Infinityf.
9472         (test_double): Use Infinityd.
9473         (test_long_double): Use Infinityl.
9474         * tests/test-isnanf.h: Include infinity.h.
9475         (main): Use Infinityf.
9476         * tests/test-isnand.h: Include infinity.h.
9477         (main): Use Infinityd.
9478         * tests/test-isnanl.h: Include infinity.h.
9479         (main): Use Infinityl.
9480         * tests/test-ldexpl.c: Include infinity.h.
9481         (main): Use Infinityl.
9482         * tests/test-printf-posix.h: Include infinity.h.
9483         (test_function): Use Infinityd.
9484         * tests/test-roundf1.c: Include infinity.h.
9485         (main): Use Infinityf.
9486         * tests/test-round1.c: Include infinity.h.
9487         (main): Use Infinityd.
9488         * tests/test-roundl.c: Include infinity.h.
9489         (main): Use Infinityl.
9490         * tests/test-signbit.c: Include infinity.h.
9491         (test_signbitf): Use Infinityf.
9492         (test_signbitd): Use Infinityd.
9493         (test_signbitl): Use Infinityl.
9494         * tests/test-snprintf-posix.h: Include infinity.h.
9495         (test_function): Use Infinityd, Infinityl.
9496         * tests/test-sprintf-posix.h: Include infinity.h.
9497         (test_function): Use Infinityd, Infinityl.
9498         * tests/test-truncf1.c: Include infinity.h.
9499         (main): Use Infinityf.
9500         * tests/test-trunc1.c: Include infinity.h.
9501         (main): Use Infinityd.
9502         * tests/test-truncl.c: Include infinity.h.
9503         (main): Use Infinityl.
9504         * tests/test-vasnprintf-posix.c: Include infinity.h.
9505         (test_function): Use Infinityd, Infinityl.
9506         * tests/test-vasprintf-posix.c: Include infinity.h.
9507         (test_function): Use Infinityd, Infinityl.
9508         * modules/ceilf-tests (Files): Add tests/infinity.h.
9509         * modules/ceil-tests (Files): Likewise.
9510         * modules/ceill-tests (Files): Likewise.
9511         * modules/dprintf-posix-tests (Files): Likewise.
9512         * modules/floorf-tests (Files): Likewise.
9513         * modules/floor-tests (Files): Likewise.
9514         * modules/floorl-tests (Files): Likewise.
9515         * modules/fprintf-posix-tests (Files): Likewise.
9516         * modules/frexp-tests (Files): Likewise.
9517         * modules/frexp-nolibm-tests (Files): Likewise.
9518         * modules/frexpl-tests (Files): Likewise.
9519         * modules/frexpl-nolibm-tests (Files): Likewise.
9520         * modules/isfinite-tests (Files): Likewise.
9521         * modules/isinf-tests (Files): Likewise.
9522         * modules/isnan-tests (Files): Likewise.
9523         * modules/isnanf-tests (Files): Likewise.
9524         * modules/isnanf-nolibm-tests (Files): Likewise.
9525         * modules/isnand-tests (Files): Likewise.
9526         * modules/isnand-nolibm-tests (Files): Likewise.
9527         * modules/isnanl-tests (Files): Likewise.
9528         * modules/isnanl-nolibm-tests (Files): Likewise.
9529         * modules/ldexpl-tests (Files): Likewise.
9530         * modules/printf-posix-tests (Files): Likewise.
9531         * modules/roundf-tests (Files): Likewise.
9532         * modules/round-tests (Files): Likewise.
9533         * modules/roundl-tests (Files): Likewise.
9534         * modules/signbit-tests (Files): Likewise.
9535         * modules/snprintf-posix-tests (Files): Likewise.
9536         * modules/sprintf-posix-tests (Files): Likewise.
9537         * modules/truncf-tests (Files): Likewise.
9538         * modules/trunc-tests (Files): Likewise.
9539         * modules/truncl-tests (Files): Likewise.
9540         * modules/vasnprintf-posix-tests (Files): Likewise.
9541         * modules/vasprintf-posix-tests (Files): Likewise.
9542         * modules/vdprintf-posix-tests (Files): Likewise.
9543         * modules/vfprintf-posix-tests (Files): Likewise.
9544         * modules/vprintf-posix-tests (Files): Likewise.
9545         * modules/vsnprintf-posix-tests (Files): Likewise.
9546         * modules/vsprintf-posix-tests (Files): Likewise.
9547         * modules/xprintf-posix-tests (Files): Likewise.
9548
9549 2011-09-11  Bruno Haible  <bruno@clisp.org>
9550
9551         Ensure pid_t gets defined.
9552         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9553         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9554         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9555         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9556         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9557         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9558         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9559         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9560         * tests/test-fcntl-h.c: Check that pid_t is defined.
9561         * tests/test-sched.c: Likewise.
9562         * tests/test-termios.c: Likewise.
9563         * tests/test-time.c: Likewise.
9564         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9565         * doc/posix-headers/signal.texi: Likewise.
9566         * doc/posix-headers/sys_types.texi: Likewise.
9567         * doc/posix-headers/time.texi: Likewise.
9568
9569 2011-09-11  Bruno Haible  <bruno@clisp.org>
9570
9571         acl: Fix compilation on Solaris 10 (older version).
9572         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9573         of ACE_EVERYONE.
9574         * lib/set-mode-acl.c (qset_acl): Likewise.
9575         Reported by Christian Jullien <eligis@orange.fr>.
9576
9577 2011-09-10  Bruno Haible  <bruno@clisp.org>
9578
9579         iconv, unsetenv: Add support for MSVC compiler.
9580         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9581         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9582
9583 2011-09-10  Bruno Haible  <bruno@clisp.org>
9584
9585         *printf: Add support for MSVC compiler.
9586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9587         handles the exception caused by the %n directive. When cross-compiling,
9588         guess no on native Windows.
9589         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9590         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9591         emulate it through vsnprintf.
9592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9593         * doc/posix-functions/dprintf.texi: Update documentation regarding
9594         MSVC 9.
9595         * doc/posix-functions/fprintf.texi: Likewise.
9596         * doc/posix-functions/printf.texi: Likewise.
9597         * doc/posix-functions/snprintf.texi: Likewise.
9598         * doc/posix-functions/sprintf.texi: Likewise.
9599         * doc/posix-functions/swprintf.texi: Likewise.
9600         * doc/posix-functions/vdprintf.texi: Likewise.
9601         * doc/posix-functions/vfprintf.texi: Likewise.
9602         * doc/posix-functions/vprintf.texi: Likewise.
9603         * doc/posix-functions/vsnprintf.texi: Likewise.
9604         * doc/posix-functions/vsprintf.texi: Likewise.
9605         * doc/glibc-functions/asprintf.texi: Likewise.
9606         * doc/glibc-functions/obstack_printf.texi: Likewise.
9607         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9608         * doc/glibc-functions/vasprintf.texi: Likewise.
9609
9610 2011-09-10  Bruno Haible  <bruno@clisp.org>
9611
9612         nocrash: Add support for native Windows.
9613         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9614
9615 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9616             Bruno Haible  <bruno@clisp.org>
9617
9618         absolute-header, include-next: Add support for MSVC compiler.
9619         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9620         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9621         directory separator in #line directives.
9622         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9623         recognize also backslash as directory separator in #line directives.
9624
9625 2011-09-08  Jim Meyering  <meyering@redhat.com>
9626
9627         maint.mk: mark the post-release commit log with "maint: " prefix
9628         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9629         one-line commit-log summary.
9630
9631 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9632             Bruno Haible  <bruno@clisp.org>
9633
9634         Doc about crypt functions.
9635         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9636         systems.
9637         * doc/posix-functions/encrypt.texi: Likewise.
9638         * doc/posix-functions/setkey.texi: Likewise.
9639
9640 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9641
9642         * lib/gc.h: Fix copyright header.
9643
9644 2011-09-07  Bruno Haible  <bruno@clisp.org>
9645
9646         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9647         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9648         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9649
9650 2011-09-07  Bruno Haible  <bruno@clisp.org>
9651
9652         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9653         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9654         * lib/freopen.c: Likewise.
9655         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9656         * lib/lstat.c: Likewise.
9657         * lib/stat.c: Likewise.
9658         * lib/open.c: Use different syntax for include of <fcntl.h>.
9659         * lib/openat.c: Include fcntl.h again, explicitly.
9660
9661 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9662
9663         parse-datetime: document the newly accepted format
9664         * doc/parse-datetime.texi (Combined date and time of day items):
9665         New section.
9666
9667 2011-09-06  Bruno Haible  <bruno@clisp.org>
9668
9669         acl: Fix a test failure on newer Solaris 10 with ZFS.
9670         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9671         ENOSYS as no ACL.
9672         Reported by Jim Meyering.
9673
9674 2011-09-06  Bruno Haible  <bruno@clisp.org>
9675
9676         acl: Update for AIX >= 5.3 with NFS.
9677         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9678         ENOSYS as no ACL.
9679
9680         acl: Fix a test failure on AIX >= 5.3 with NFS.
9681         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9682         as no ACL.
9683
9684 2011-09-06  Bruno Haible  <bruno@clisp.org>
9685
9686         acl: Fix a test failure on IRIX 6.5 with NFS.
9687         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9688         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9689         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9690         * lib/copy-acl.c (qcopy_acl): Likewise.
9691
9692 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9693
9694         openat: port to AIX 7.1 with large files
9695         AIX 7.1 does a "#define openat open64at" if large files are in use,
9696         so we can't simply #undef openat.  Use the orig_openat trick (similar
9697         to orig_open in lib/open.c) to work around the problem.  Problem
9698         reported by Kevin Brott for GNU tar, in the thread containing
9699         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9700         * lib/openat.c (__need_system_fcntl_h): Define first.
9701         Include <fcntl.h> and <sys/types.h> before undefining.
9702         (orig_openat) [HAVE_OPENAT]: New inline function.
9703         (openat) [HAVE_OPENAT]: Do not undef.
9704         (rpl_openat): Use orig_openat, not openat.
9705
9706 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9707             Bruno Haible  <bruno@clisp.org>
9708
9709         acl: Avoid errors on NonStop Kernel.
9710         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9711         ENOTSUP errors.
9712
9713 2011-09-05  Bruno Haible  <bruno@clisp.org>
9714
9715         acl: Clean up Solaris code.
9716         * lib/acl-internal.h: Remove no-op #if.
9717         * lib/file-has-acl.c: Likewise.
9718         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9719         * lib/copy-acl.c (qcopy_acl): Likewise.
9720
9721 2011-09-05  Bruno Haible  <bruno@clisp.org>
9722
9723         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9724         binaries built on the original Solaris 10.
9725         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9726         trivial.
9727
9728 2011-09-05  Bruno Haible  <bruno@clisp.org>
9729
9730         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9731         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9732         10.
9733         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9734         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9735         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9736         instead of acl_get, facl_get, acl_set, facl_set.
9737
9738 2011-09-05  Bruno Haible  <bruno@clisp.org>
9739
9740         copy-file: Try unit tests on more file systems.
9741         * tests/test-copy-file-1.sh: New file.
9742         * tests/test-copy-file-2.sh: New file.
9743         * modules/copy-file-tests (Files): Add them.
9744         (Makefile.am): Add them to TESTS.
9745
9746         acl: Try unit tests on more file systems.
9747         * tests/test-file-has-acl-1.sh: New file.
9748         * tests/test-file-has-acl-2.sh: New file.
9749         * tests/test-set-mode-acl-1.sh: New file.
9750         * tests/test-set-mode-acl-2.sh: New file.
9751         * tests/test-copy-acl-1.sh: New file.
9752         * tests/test-copy-acl-2.sh: New file.
9753         * modules/acl-tests (Files): Add them.
9754         (Makefile.am): Add them to TESTS.
9755
9756 2011-09-04  Bruno Haible  <bruno@clisp.org>
9757
9758         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9759         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9760         10.
9761         (OLD_ALLOW, OLD_DENY): New macros.
9762         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9763         ACE_ACCESS_ALLOWED_ACE_TYPE.
9764         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9765         ACE_ACCESS_DENIED_ACE_TYPE.
9766         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9767         (NEW_ACE_EXECUTE): Fix value.
9768         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9769         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9770         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9771         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9772         NEW_ACE_SYNCHRONIZE): New macros.
9773         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9774         instead of acl_fromtext, acl_set, facl_set.
9775         Fixes a coreutils/tests/cp/perm failure.
9776
9777 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9778
9779         openat: test for fstatat (..., 0) bug
9780         Further testing with tar suggests that fstatat (..., 0)
9781         does not work in general, on AIX 7.1; see
9782         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9783         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9784         replacement fstatat (which is what older AIX releases were using
9785         anyway).
9786         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9787         use is now changed to orig_fstatat.  This was probably the right
9788         thing to do anyway.
9789         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9790         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9791         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9792         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9793         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9794         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9795         if the bug is found.
9796
9797         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9798         This tests for another fstatat bug on AIX 7.1:
9799         fstatat (AT_FDCWD, ..., 0) does not work.  See
9800         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9801         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9802         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9803         (rpl_fstatat): Adjust so that it works around either (or both)
9804         bugs if present.
9805         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9806
9807 2011-09-03  Karl Berry  <karl@gnu.org>
9808
9809         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9810         in index entries.
9811
9812 2011-09-02  Bruno Haible  <bruno@clisp.org>
9813
9814         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9815         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9816         values of AR, ARFLAGS, RANLIB.
9817         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9818
9819 2011-09-02  Bruno Haible  <bruno@clisp.org>
9820
9821         Find 'ar' program that fits with --host argument.
9822         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9823
9824 2011-09-02  Bruno Haible  <bruno@clisp.org>
9825
9826         tests: init.sh: Support any non-GNU diff.
9827         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9828         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9829         Solaris 8.
9830
9831 2011-09-02  Bruno Haible  <bruno@clisp.org>
9832
9833         tests: init.sh: work also with any non-GNU diff that supports -u
9834         * tests/init.sh: Relax check for diff -u support.
9835         Rather than checking for GNU diff via --version, simply check
9836         for support for -u itself.  Useful at least on OpenBSD 4.9,
9837         AIX 7.1, IRIX 6.5, and Solaris 10.
9838
9839 2011-09-01  Bruno Haible  <bruno@clisp.org>
9840
9841         strtoimax, strtoumax: Document problem on HP-UX 11.
9842         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9843         * doc/posix-functions/strtoumax.texi: Likewise.
9844
9845 2011-09-01  Bruno Haible  <bruno@clisp.org>
9846
9847         strtoumax: Avoid link error on OSF/1 with DTK cc.
9848         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9849         defined as a function.
9850         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9851         strtoumax is defined, not whether it is declared.
9852
9853 2011-09-01  Bruno Haible  <bruno@clisp.org>
9854
9855         strtoimax: Avoid link error on OSF/1 with DTK cc.
9856         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9857         defined as a function.
9858         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9859         strtoimax is defined, not whether it is declared.
9860
9861 2011-09-01  Bruno Haible  <bruno@clisp.org>
9862
9863         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9864         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9865         as a function.
9866         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9867         whether it is declared.
9868
9869 2011-09-01  Bruno Haible  <bruno@clisp.org>
9870
9871         imaxabs: Avoid link error on OSF/1 with DTK cc.
9872         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9873         as a function.
9874         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9875         whether it is declared.
9876
9877 2011-09-01  Bruno Haible  <bruno@clisp.org>
9878
9879         Tests for module 'strtoumax'.
9880         * modules/strtoumax-tests: New file.
9881         * tests/test-strtoumax.c: New file.
9882
9883         Tests for module 'strtoimax'.
9884         * modules/strtoimax-tests: New file.
9885         * tests/test-strtoimax.c: New file.
9886
9887         Tests for module 'imaxdiv'.
9888         * modules/imaxdiv-tests: New file.
9889         * tests/test-imaxdiv.c: New file.
9890
9891         Tests for module 'imaxabs'.
9892         * modules/imaxabs-tests: New file.
9893         * tests/test-imaxabs.c: New file.
9894
9895 2011-09-01  Bruno Haible  <bruno@clisp.org>
9896
9897         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9898         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9899         pthread_create.
9900
9901 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9902
9903         openat: work around AIX 7.1 fstatat issue
9904         This should fix the problem that was not properly fixed
9905         in the previous change, dated 2011-08-30.
9906         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9907         __need_system_stat_h defined.
9908         (orig_fstatat) [HAVE_FSTATAT]: New function.
9909         (rpl_fstatat): Go back to the old way of doing things,
9910         except call orig_fstatat instead of fstatat.
9911         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9912         Remove unnecessary check whether fstatat fills in st_size etc.
9913
9914 2011-09-01  Bruno Haible  <bruno@clisp.org>
9915
9916         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9917         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9918         just include the system's header.
9919
9920 2011-08-31  Jim Meyering  <meyering@redhat.com>
9921
9922         tests: avoid spurious assertion failure in test-float.c on ppc64
9923         * tests/test-float.c (test_long_double): Comment out an assertion,
9924         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9925         with gcc-4.4.4.
9926
9927         maint: indent with spaces, not TABs
9928         I need to get in the habit of running gnulib's "make check".
9929         Both of these would have been caught.
9930         * m4/largefile.m4: Indent with spaces, not TABs.
9931         * lib/parse-datetime.y (iso_8601_time): Likewise.
9932         Spotted by Pádraig Brady.
9933
9934         test-parse-datetime.c: accommodate a relatively strict gcc warning
9935         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9936         to avoid a warning from gcc's -Werror=missing-declarations.
9937         Insert a few spaces-before-funcall-parenthesis.
9938
9939 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9940
9941         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9942         The parser now accepts ISO 8601 date-time strings with "T" as the
9943         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9944         with a space between the date and time strings.  Now it also parses
9945         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9946         variants like "2004-02-29T16:21:42.333-07:00"
9947         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9948         of day representation using the 'T' separator character.
9949         * doc/parse-datetime.texi (General date syntax): replace use of
9950         deprecated --iso-8601 option with --rfc-3339 in example of date
9951         command output formats that can be parsed.
9952         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9953         lib/parse-datetime.y.
9954         (gmt_offset): New function.
9955         (main): Add additional test cases to validate ISO8601 extended
9956         date and time of day parsing.
9957
9958 2011-08-31  Bruno Haible  <bruno@clisp.org>
9959
9960         freopen: Documentation.
9961         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9962         name.
9963         Reported by Claudio Bley <claudio.bley@gmail.com>.
9964
9965 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9966
9967         freopen: Don't crash if the filename argument is NULL.
9968         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9969         NULL.
9970
9971 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9972
9973         openat: work around AIX 7.1 fstatat bug
9974         Problem reported by Kevin Brott for GNU tar, in the thread containing
9975         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9976         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9977         FSTATAT_ST_SIZE_ETC_BROKEN.
9978         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9979         rpl_fstatat.
9980         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9981         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9982         AC_CHECK_FUNCS_ONCE for fstatat.
9983         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9984         fchmodat, mkdirat, openat and unlinkat.
9985
9986 2011-08-30  Bruno Haible  <bruno@clisp.org>
9987
9988         Avoid endless recursions if config.h includes some header files.
9989         * lib/fopen.c (__need_FILE): Define already before including config.h.
9990         * lib/freopen.c (__need_FILE): Likewise.
9991         * lib/open.c (__need_system_fcntl_h): Likewise.
9992         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9993         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9994         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9995
9996 2011-08-25  Karl Berry  <karl@gnu.org>
9997
9998         * config/srclist.txt (ylwrap): new try.
9999         * build-aux/ylwrap: new file.
10000
10001 2011-08-23  Bruno Haible  <bruno@clisp.org>
10002
10003         tmpdir: Use a good default directory on native Windows.
10004         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10005         (P_tmpdir): Default to _P_tmpdir on native Windows.
10006         (path_search): On native Windows, try the value returned by GetTempPath
10007         before trying P_tmpdir.
10008         * modules/tmpdir (Depends-on): Add pathmax.
10009         Suggested by John Darrington <john@darrington.wattle.id.au>.
10010
10011 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10012
10013         doc: fix typo in README-release
10014         * top/README-release: Capitalize first word of a sentence.
10015
10016 2011-08-19  Jim Meyering  <meyering@redhat.com>
10017
10018         fts: do not exhaust memory when processing million-entry directories
10019         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10020         directory would require about 256*N bytes of memory.  Thus, it was
10021         easy to construct a directory too large to be processed by any of
10022         those tools.  With this change, fts' maximum memory utilization is
10023         now limited to around 30MB.
10024         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10025         (fts_read): When we've processed the final entry (i.e., when
10026         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10027         using the parent entry to read any remaining entries.  Dispatch
10028         depending on what fts_build returns:
10029         - NULL+stop, aka failure: stop
10030         - NULL otherwise: move up in the dir hierarchy
10031         - non-NULL: handle this new entry
10032         (fts_build): Declare and use new local, continue_readdir.
10033         Prepare to be called from fts_read, when the entries
10034         from a partially-read directory have just been exhausted.
10035         In that case, we'll skip the opendir and instead use the parent's
10036         fts_dirp and derive dir_fd from that.
10037         Finally, in the readdir loop, if we read max_entries entries,
10038         exit the loop ensuring *not* to call closedir.  This is required
10039         so that fts_dirp can be reused on a subsequent call.
10040         Prompted by Ben England's report of memory exhaustion in find
10041         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10042
10043         maint: fts: move decl of `dp' down into while loop; split a long line
10044         * lib/fts.c (fts_build): No semantic change.
10045
10046         fts: add/use new struct member, fts_dirp
10047         We are about to use this to manage any directory with
10048         too many entries to read all of them into memory at once.
10049         To do that, we'll need to save the DIR* pointer in each
10050         affected FTSENT struct.
10051         * lib/fts_.h: Include <dirent.h>.
10052         (struct FTSENT) [fts_dirp]: New member.
10053         * lib/fts.c (closedir_and_clear): Define.
10054         Use it in place of closedir so that we are sure to
10055         clear the new fts_dirp member when done with it.
10056         (fts_alloc): Initialize the new member.
10057         (fts_lfree): Free, if needed.
10058
10059         maint: fts: give __opendir2 a new parameter and rename
10060         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10061         than surreptitiously using sole caller's "dir_fd".
10062         (fts_opendir): Rename from __opendir2.
10063
10064         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10065         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10066
10067         maint: fts.c: correct off-by-one indentation
10068         * lib/fts.c (fts_build): Correct indentation, change style
10069         of a couple of block comments, and bracing style.
10070
10071         maint: fts.c: move __opendir2 #define "up" out of function body
10072         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10073
10074         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10075         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10076         out for a long time and besides was useful only on BSD systems.
10077
10078 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10079
10080         regex: port to Stratus OpenVOS
10081         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10082         define to empty, rather than attempting nonportable optimizations.
10083         Problem reported by Paul Green in:
10084         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10085         and fix suggested by Eric Blake in:
10086         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10087
10088 2011-08-17  Eric Blake  <eblake@redhat.com>
10089
10090         getcwd: fix test failures on mingw
10091         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10092         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10093         test if long directory cannot be created, and allow mingw errno.
10094
10095         getcwd-lgpl: fix m4 to match relaxed test for BSD
10096         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10097         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10098         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10099         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10100         signature problem.
10101
10102         getcwd: fix compilation on mingw64
10103         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10104         getcwd.
10105         Reported by Marc-André Lureau.
10106
10107         pipe2: silence compiler warning
10108         * lib/pipe2.c (pipe2): Hide label if it is not used.
10109
10110 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10111
10112         relocatable-prog: fix link error
10113         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10114         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10115         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10116         into modules/relocatable-lib without noticing that
10117         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10118         also needs to build relocatable.c.
10119
10120 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10123         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10124         shell code: it contained a 'break' that was not in a loop.
10125         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10126         via a shell-language loop; this may have been true in old Autoconf
10127         versions, but it's not true in Autoconf 2.68.  I found this bug
10128         when testing coreutils git on Solaris 8, whose shell complains
10129         about the syntax error.
10130
10131 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10132
10133         * lib/base64.c: Fix comment to reference RFC 4648.
10134         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10135         <gvtulder@gmail.com>.
10136
10137 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10138
10139         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10140
10141         po/Makefile.in.in: fix make -q problem
10142         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10143         rule, since there's no file named 'check-macro-version' and its
10144         use as a file breaks make -q.
10145         (all): Don't depend on check-macro-version.
10146         (CHECK_MACRO_VERSION): New macro.
10147         (stamp-po): Use it.
10148
10149         configmake: fix make -q problem
10150         * modules/configmake (configmake.h): Update configmake.h's time stamp
10151         even if the file does not change.  Otherwise, 'make -q' fails.
10152         Problem reported by Simon Josefsson in
10153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10154
10155 2011-08-11  Jim Meyering  <meyering@redhat.com>
10156
10157         git-version-gen: correct the advice in a comment
10158         * build-aux/git-version-gen: Correct comment.
10159         Don't recommend to list .tarball-version in .gitignore.
10160
10161 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10162
10163         base64: fix off-by-one buffer size bug
10164         Problem and (trivial) fix reported by Gijs van Tulder in
10165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10166         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10167         * tests/test-base64.c (main): Catch the bug.
10168
10169 2011-08-10  Eric Blake  <eblake@redhat.com>
10170
10171         closein: correct comments
10172         * lib/closein.c (close_stdin): Improve comments.
10173
10174 2011-08-09  Bruno Haible  <bruno@clisp.org>
10175
10176         More tests for 'fseeko'.
10177         * tests/test-fseeko3.c: New file, from Eric Blake.
10178         * tests/test-fseeko3.sh: New file.
10179         * modules/fseeko-tests (Files): Add them.
10180         (TESTS): Add test-fseeko3.sh.
10181         (check_PROGRAMS): Add test-fseeko3.
10182
10183 2011-08-09  Eric Blake  <eblake@redhat.com>
10184
10185         fseeko: remove unneeded hack
10186         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10187
10188         fseeko: fix bug on glibc
10189         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10190         Reported by John W. Eaton.
10191
10192 2011-08-08  Bruno Haible  <bruno@clisp.org>
10193
10194         unictype/base: Fix interoperability with preinstalled libunistring.
10195         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10196         Reported by Simon Josefsson.
10197
10198 2011-08-08  Bruno Haible  <bruno@clisp.org>
10199
10200         iswblank: Detect declaration correctly.
10201         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10202         AC_CHECK_DECLS invocation.
10203
10204 2011-08-08  Bruno Haible  <bruno@clisp.org>
10205
10206         tcgetsid: Detect declaration correctly.
10207         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10208         AC_CHECK_DECLS invocation.
10209         Reported by Simon Josefsson.
10210
10211 2011-08-08  Eric Blake  <eblake@redhat.com>
10212
10213         largefile: fix typo that regressed large file support
10214         * modules/largefile (configure.ac-early): Fix section name.
10215
10216 2011-08-06  Karl Berry  <karl@gnu.org>
10217
10218         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10219         a separate module.
10220
10221 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10222
10223         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10224         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10225         get prototype for free.
10226
10227 2011-08-04  Bruno Haible  <bruno@clisp.org>
10228
10229         Tests for module 'pathmax'.
10230         * modules/pathmax-tests: New file.
10231         * tests/test-pathmax.c: New file.
10232
10233         canonicalize-lgpl: Support larger filenames on the Hurd.
10234         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10235         Reported by Paul Eggert.
10236
10237         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10238         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10239         * lib/chdir-long.h: Include pathmax.h.
10240         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10241         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10242         (PATH_MAX): Remove code that is done by pathmax.h.
10243         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10244         * lib/tmpfile.c: Add a comment.
10245         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10246         * modules/chdir-long (Depends-on): Add pathmax.
10247         * modules/getcwd (Depends-on): Add pathmax.
10248         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10249         is not defined.
10250         * doc/posix-headers/limits.texi: Mention the pathmax module.
10251         * NEWS: Mention the change.
10252
10253 2011-08-02  Bruno Haible  <bruno@clisp.org>
10254
10255         pthread_sigmask: Actually use results of gl_THREADLIB.
10256         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10257         gl_THREADLIB, not gl_[]THREADLIB.
10258         Reported by Eric Blake.
10259
10260 2011-08-02  Jim Meyering  <meyering@redhat.com>
10261
10262         maint.mk: relax the default _gl_TS_function_match regexp
10263         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10264         space between function name and "(" in an "extern" declaration.
10265         That would fail to match a decl with no space there: extern void foo();
10266
10267 2011-07-31  Iain Nicol  <iain@thenicols.net>
10268
10269         git-version-gen: document that EXTRA_DIST must include .version
10270         * build-aux/git-version-gen: In the how-to-use comment, document
10271         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10272         will fail when run from an unpacked distribution tarball.
10273
10274 2011-08-01  Bruno Haible  <bruno@clisp.org>
10275
10276         wctype-h: Fix last change.
10277         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10278         REPLACE_TOWLOWER to 0.
10279         Reported by Sam Steingold <sds@gnu.org>.
10280
10281 2011-07-31  Bruno Haible  <bruno@clisp.org>
10282
10283         frexpl: Update autoconf test.
10284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10285         according to changes of 2011-06-20.
10286
10287 2011-07-31  Bruno Haible  <bruno@clisp.org>
10288
10289         sys_utsname: Add support for Minix.
10290         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10291         <sys/utsname.h>.
10292         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10293         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10294
10295 2011-07-31  Bruno Haible  <bruno@clisp.org>
10296
10297         strings: Add support for Minix.
10298         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10299         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10300         * doc/posix-headers/strings.texi: Document the Minix problem.
10301
10302 2011-07-31  Bruno Haible  <bruno@clisp.org>
10303
10304         wctype-h: Add support for Minix.
10305         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10306         REPLACE_TOWLOWER.
10307         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10308         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10309         REPLACE_ISWCNTRL.
10310
10311 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10312
10313         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10314         This is a performance improvement for 64-bit hosts: it causes the
10315         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10316
10317 2011-07-31  Bruno Haible  <bruno@clisp.org>
10318
10319         stdioext: Add support for Minix.
10320         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10321         * lib/fpurge.c (fpurge): Likewise.
10322         * lib/freadahead.c (freadahead): Likewise.
10323         * lib/freadable.c (freadable): Likewise.
10324         * lib/freading.c (freading): Likewise.
10325         * lib/freadptr.c (freadptr): Likewise.
10326         * lib/freadseek.c (freadptrinc): Likewise.
10327         * lib/fseeko.c (rpl_fseeko): Likewise.
10328         * lib/fseterr.c (fseterr): Likewise.
10329         * lib/fwritable.c (fwritable): Likewise.
10330         * lib/fwriting.c (fwriting): Likewise.
10331         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10332         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10333
10334 2011-07-31  Bruno Haible  <bruno@clisp.org>
10335
10336         errno: Port to Minix.
10337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10338         ECONNABORTED are defined.
10339         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10340         GNULIB_defined_ECONNABORTED): New macros.
10341         * lib/strerror-override.h (strerror_override): Test also
10342         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10343         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10344         ECONNABORTED.
10345         * doc/posix-headers/errno.texi: Mention the Minix problem.
10346
10347 2011-07-31  Bruno Haible  <bruno@clisp.org>
10348
10349         Work around declaration collisions on Minix.
10350         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10351         defined, set REPLACE_MBSINIT.
10352         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10353         defined, set REPLACE_MBRTOWC.
10354         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10355         set REPLACE_MBRLEN.
10356         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10357         defined, set REPLACE_MBSRTOWCS.
10358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10359         defined, set REPLACE_WCRTOMB.
10360         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10361         defined, set REPLACE_WCSRTOMBS.
10362
10363 2011-07-31  Bruno Haible  <bruno@clisp.org>
10364
10365         Add support for Minix with ACK compiler.
10366         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10367         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10368         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10369
10370 2011-07-31  Bruno Haible  <bruno@clisp.org>
10371
10372         Documentation about Minix.
10373         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10374         * doc/glibc-headers/*.texi: Likewise.
10375         * doc/posix-functions/*.texi: Likewise.
10376         * doc/glibc-functions/*.texi: Likewise.
10377
10378 2011-07-31  Bruno Haible  <bruno@clisp.org>
10379
10380         snippet/warn-on-use: Fix indentation.
10381         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10382
10383 2011-07-25  Jim Meyering  <meyering@redhat.com>
10384
10385         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10386         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10387         commands.
10388
10389 2011-07-27  Jim Meyering  <meyering@redhat.com>
10390
10391         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10392         * top/maint.mk (gl_extract_significant_defines_): Now that
10393         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10394         gnulib/lib/signal.in.h, and now that we recommend to
10395         define-if-undefined those two symbols in application code,
10396         we must filter them out of the "significant" list.
10397         This avoids a "make syntax-check" failure in coreutils.
10398
10399 2011-07-26  Eric Blake  <eblake@redhat.com>
10400
10401         warnings: add comments about previous patch
10402         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10403         * m4/include_next.m4: Likewise.
10404         * m4/warn-on-use.m4: Likewise.
10405         * m4/warnings.m4: Likewise, and simplify use.
10406         Suggested by Stefano Lattarini.
10407
10408         include-next, warnings: support older autoconf
10409         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10410         AS_VAR_PUSHDEF in a way that works with older autoconf.
10411         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10412         Reported by Daniel P. Berrange.
10413
10414 2011-07-25  Bruno Haible  <bruno@clisp.org>
10415
10416         fseek, ftell: Fix doc.
10417         * doc/posix-functions/fseek.texi: Reword statement about
10418         AC_SYS_LARGEFILE.
10419         * doc/posix-functions/ftell.texi: Likewise.
10420
10421 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10422             Bruno Haible  <bruno@clisp.org>
10423
10424         Add dependencies to the 'largefile' module.
10425         * modules/fopen (Depends-on): Add 'largefile'.
10426         * modules/freopen (Depends-on): Likewise.
10427         * modules/fseeko (Depends-on): Likewise.
10428         * modules/ftello (Depends-on): Likewise.
10429         * modules/glob (Depends-on): Likewise.
10430         * modules/lseek (Depends-on): Likewise.
10431         * modules/lstat (Depends-on): Likewise.
10432         * modules/mkostemp (Depends-on): Likewise.
10433         * modules/mkostemps (Depends-on): Likewise.
10434         * modules/mkstemp (Depends-on): Likewise.
10435         * modules/mkstemps (Depends-on): Likewise.
10436         * modules/open (Depends-on): Likewise.
10437         * modules/openat (Depends-on): Likewise.
10438         * modules/pread (Depends-on): Likewise.
10439         * modules/pwrite (Depends-on): Likewise.
10440         * modules/scandir (Depends-on): Likewise.
10441         * modules/stat (Depends-on): Likewise.
10442         * modules/tmpfile (Depends-on): Likewise.
10443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10444         since the containing module now depends on the largefile module.
10445         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10446         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10447         off_t is fixed by gnulib.
10448         * doc/posix-functions/freopen.texi: Likewise.
10449         * doc/posix-functions/fseeko.texi: Likewise.
10450         * doc/posix-functions/fstatat.texi: Likewise.
10451         * doc/posix-functions/ftello.texi: Likewise.
10452         * doc/posix-functions/glob.texi: Likewise.
10453         * doc/posix-functions/lseek.texi: Likewise.
10454         * doc/posix-functions/lstat.texi: Likewise.
10455         * doc/posix-functions/mkstemp.texi: Likewise.
10456         * doc/posix-functions/open.texi: Likewise.
10457         * doc/posix-functions/openat.texi: Likewise.
10458         * doc/posix-functions/pread.texi: Likewise.
10459         * doc/posix-functions/pwrite.texi: Likewise.
10460         * doc/posix-functions/scandir.texi: Likewise.
10461         * doc/posix-functions/stat.texi: Likewise.
10462         * doc/posix-functions/tmpfile.texi: Likewise.
10463         * doc/glibc-functions/mkostemp.texi: Likewise.
10464         * doc/glibc-functions/mkostemps.texi: Likewise.
10465         * doc/glibc-functions/mkstemps.texi: Likewise.
10466
10467 2011-07-25  Bruno Haible  <bruno@clisp.org>
10468
10469         fcntl: Move AC_LIBOBJ invocation to module description.
10470         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10471         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10472
10473         fcntl: Remove call-in from fchdir.m4.
10474         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10476
10477         dup3: Remove potential call-in from fchdir.m4.
10478         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10480
10481         dup2: Move AC_LIBOBJ invocation to module description.
10482         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10483         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10484         Don't invoke AC_LIBOBJ.
10485         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10486
10487         dup2: Remove call-in from fchdir.m4.
10488         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10490
10491         fclose: Move AC_LIBOBJ invocation to module description.
10492         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10493         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10494         to 1.
10495         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10496
10497         fclose: Remove call-in from close.m4.
10498         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10499         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10500
10501         close: Move AC_LIBOBJ invocation to module description.
10502         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10503         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10504         1.
10505         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10506
10507         close: Remove call-in from fchdir.m4.
10508         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10509         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10510
10511         open: Move AC_LIBOBJ invocation to module description.
10512         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10513         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10514         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10515
10516         open: Remove call-in from fchdir.m4.
10517         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10519
10520         fchdir: Start to remove gl_REPLACE_* idiom.
10521         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10522         (gl_FUNC_FCHDIR): Invoke it.
10523
10524 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10525
10526         * lib/ftell.c (ftell): Comment out cast.
10527
10528         close: use gl_REPLACE_FCLOSE only if defined
10529         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10530         is defined.  The close module doesn't depend on the fclose module
10531         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10533         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10534
10535 2011-07-24  Jim Meyering  <meyering@redhat.com>
10536
10537         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10538         * tests/test-select.h (test_function): Declare as "static".
10539
10540 2011-07-24  Bruno Haible  <bruno@clisp.org>
10541
10542         doc: Mention the effects of AC_SYS_LARGEFILE.
10543         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10544         on this function.
10545         * doc/posix-functions/aio_error.texi: Likewise.
10546         * doc/posix-functions/aio_fsync.texi: Likewise.
10547         * doc/posix-functions/aio_read.texi: Likewise.
10548         * doc/posix-functions/aio_return.texi: Likewise.
10549         * doc/posix-functions/aio_suspend.texi: Likewise.
10550         * doc/posix-functions/aio_write.texi: Likewise.
10551         * doc/posix-functions/fgetpos.texi: Likewise.
10552         * doc/posix-functions/fopen.texi: Likewise.
10553         * doc/posix-functions/freopen.texi: Likewise.
10554         * doc/posix-functions/fsetpos.texi: Likewise.
10555         * doc/posix-functions/fstatvfs.texi: Likewise.
10556         * doc/posix-functions/ftruncate.texi: Likewise.
10557         * doc/posix-functions/ftw.texi: Likewise.
10558         * doc/posix-functions/getrlimit.texi: Likewise.
10559         * doc/posix-functions/glob.texi: Likewise.
10560         * doc/posix-functions/lio_listio.texi: Likewise.
10561         * doc/posix-functions/lockf.texi: Likewise.
10562         * doc/posix-functions/mkstemp.texi: Likewise.
10563         * doc/posix-functions/mmap.texi: Likewise.
10564         * doc/posix-functions/nftw.texi: Likewise.
10565         * doc/posix-functions/openat.texi: Likewise.
10566         * doc/posix-functions/opendir.texi: Likewise.
10567         * doc/posix-functions/posix_fadvise.texi: Likewise.
10568         * doc/posix-functions/posix_fallocate.texi: Likewise.
10569         * doc/posix-functions/pread.texi: Likewise.
10570         * doc/posix-functions/pwrite.texi: Likewise.
10571         * doc/posix-functions/readdir.texi: Likewise.
10572         * doc/posix-functions/readdir_r.texi: Likewise.
10573         * doc/posix-functions/rewinddir.texi: Likewise.
10574         * doc/posix-functions/scandir.texi: Likewise.
10575         * doc/posix-functions/seekdir.texi: Likewise.
10576         * doc/posix-functions/setrlimit.texi: Likewise.
10577         * doc/posix-functions/statvfs.texi: Likewise.
10578         * doc/posix-functions/telldir.texi: Likewise.
10579         * doc/posix-functions/tmpfile.texi: Likewise.
10580         * doc/posix-functions/truncate.texi: Likewise.
10581         * doc/glibc-functions/fallocate.texi: Likewise.
10582         * doc/glibc-functions/fstatfs.texi: Likewise.
10583         * doc/glibc-functions/fts_children.texi: Likewise.
10584         * doc/glibc-functions/fts_read.texi: Likewise.
10585         * doc/glibc-functions/getdirentries.texi: Likewise.
10586         * doc/glibc-functions/mkostemp.texi: Likewise.
10587         * doc/glibc-functions/mkostemps.texi: Likewise.
10588         * doc/glibc-functions/mkstemps.texi: Likewise.
10589         * doc/glibc-functions/preadv.texi: Likewise.
10590         * doc/glibc-functions/pwritev.texi: Likewise.
10591         * doc/glibc-functions/sendfile.texi: Likewise.
10592         * doc/glibc-functions/statfs.texi: Likewise.
10593
10594 2011-07-24  Bruno Haible  <bruno@clisp.org>
10595
10596         doc: Fix typo.
10597         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10598
10599 2011-07-24  Bruno Haible  <bruno@clisp.org>
10600
10601         doc: Mention fsusage.
10602         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10603
10604 2011-07-24  Bruno Haible  <bruno@clisp.org>
10605
10606         doc: Mention new glibc headers and functions.
10607         * doc/glibc-headers/gshadow.texi: New file.
10608         * doc/glibc-functions/endsgent.texi: New file.
10609         * doc/glibc-functions/fgetsgent.texi: New file.
10610         * doc/glibc-functions/fgetsgent_r.texi: New file.
10611         * doc/glibc-functions/getsgent.texi: New file.
10612         * doc/glibc-functions/getsgent_r.texi: New file.
10613         * doc/glibc-functions/getsgnam.texi: New file.
10614         * doc/glibc-functions/getsgnam_r.texi: New file.
10615         * doc/glibc-functions/putsgent.texi: New file.
10616         * doc/glibc-functions/setsgent.texi: New file.
10617         * doc/glibc-functions/sgetsgent.texi: New file.
10618         * doc/glibc-functions/sgetsgent_r.texi: New file.
10619         * doc/glibc-functions/malloc_info.texi: New file.
10620         * doc/glibc-functions/preadv.texi: New file.
10621         * doc/glibc-functions/pwritev.texi: New file.
10622         * doc/glibc-functions/register_printf_modifier.texi: New file.
10623         * doc/glibc-functions/register_printf_specifier.texi: New file.
10624         * doc/glibc-functions/register_printf_type.texi: New file.
10625         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10626         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10627         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10628         * doc/glibc-functions/pthread_getname_np.texi: New file.
10629         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10630         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10631         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10632         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10633         * doc/glibc-functions/pthread_setname_np.texi: New file.
10634         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10635         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10636         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10637         * doc/glibc-functions/qsort_r.texi: New file.
10638         * doc/glibc-functions/quick_exit.texi: New file.
10639         * doc/glibc-functions/syncfs.texi: New file.
10640         * doc/gnulib.texi: Include them.
10641         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10642         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10643         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10644         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10645         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10646         * doc/glibc-functions/execvpe.texi: Likewise.
10647
10648 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10649
10650         ftell: don't include <unistd.h>
10651         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10652         guaranteed to define off_t, and the ftell module depends on the
10653         stdio module.
10654
10655         ftell: do not assume wraparound signed arithmetic
10656         * lib/ftell.c: Include <limits.h>.
10657         (ftell): Don't assume wraparound signed arithmetic.
10658
10659 2011-07-24  Bruno Haible  <bruno@clisp.org>
10660
10661         close: No longer depend on module 'fclose'.
10662         * modules/close (Depends-on): Remove fclose.
10663         * NEWS: Mention the change.
10664         Suggested by Sam Steingold <sds@gnu.org>.
10665
10666 2011-07-24  Bruno Haible  <bruno@clisp.org>
10667
10668         fsusage: Enable large volume support on AIX >= 5.2.
10669         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10670         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10671         instead of STAT_STATVFS.
10672         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10673
10674         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10676         f_blocks field only on MacOS X.
10677
10678         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10679         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10680         * modules/fsusage (Depends-on): Add largefile.
10681
10682 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10683
10684         * README: Modernize discussion of signed integers.
10685         Assuming overflow wraparound is no longer safe.
10686         Mention ones' complement and signed magnitude.
10687
10688 2011-07-22  Bruno Haible  <bruno@clisp.org>
10689
10690         select tests, pselect tests: Refactor.
10691         * tests/test-select.h: New file, extracted from tests/test-select.c.
10692         (select_fn): New type.
10693         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10694         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10695         test_pipe): Add my_select argument.
10696         (test_function): Renamed from main. Add my_select argument.
10697         * tests/test-select.c: Move most code to tests/test-select.h. Include
10698         test-select.h.
10699         * modules/select-tests (Files): Add tests/test-select.h.
10700         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10701         (my_select, main): New functions.
10702         * modules/pselect-tests (Files): Add tests/test-select.h,
10703         tests/macros.h, tests/signature.h.
10704         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10705         (configure.ac): Check for <sys/wait.h>.
10706
10707 2011-07-22  Bruno Haible  <bruno@clisp.org>
10708
10709         sys_select tests: Check the signature of FD_*.
10710         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10711         signature tests from here...
10712         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10713         here.
10714         * modules/sys_select-tests (Files): Add tests/signature.h.
10715
10716 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         largefile: new module, replacing large-inode
10719         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10720         * MODULES.html.sh: Add largefile, remove large-inode.
10721         * modules/largefile, m4/largefile.m4: New files.
10722         * modules/large-inode, m4/large-inode.m4: Remove.
10723
10724         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10726         implementations that use only 32 bits to count blocks.
10727         On typical hosts with 1024-byte blocks, this fails with file
10728         systems as small as 4 TiB.  Problem reported by Herb Wartens
10729         <http://debbugs.gnu.org/9140> and this should also fix a similar
10730         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10731
10732         large-inode: New module
10733         * MODULES.html.sh: Add it.
10734         * modules/large-inode, m4/large-inode.m4: New files.
10735
10736         extensions: Enable extensions on MacOS X 10.5 and later.
10737         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10738
10739 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10740
10741         file-has-acl: use acl_extended_file_nofollow if available
10742         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10743         (acl_extended_file): New macro.
10744         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10745         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10746
10747 2011-07-21  Bruno Haible  <bruno@clisp.org>
10748
10749         Declare system functions in a way that works with C++.
10750         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10751         declare fdopendir as extern "C".
10752         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10753         declare frexpl as extern "C".
10754         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10755         declare gai_strerror as extern "C".
10756         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10757         programs, declare gai_strerror as extern "C".
10758         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10759         declare getlogin_r as extern "C".
10760         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10761         as extern "C".
10762         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10763         declare ldexpl as extern "C".
10764         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10765         as extern "C".
10766         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10767         program, declare getmntinfo as extern "C".
10768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10769         stpncpy as extern "C".
10770         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10771         program, declare __xpg_strerror_r as extern "C".
10772         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10773         strndup as extern "C".
10774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10775         declare memset and bzero as extern "C".
10776         Reported by Sam Steingold <sds@gnu.org>.
10777
10778 2011-07-12  Jim Meyering  <meyering@redhat.com>
10779
10780         maint.mk: prohibit inclusion of "verify.h" without use
10781         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10782
10783 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10784
10785         timer-time: A new module to check for timer_settime()
10786         * m4/timer_time.m4: Check for the posix function.
10787         * modules/timer-time: Add the new module.
10788         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10789         Mention it.
10790
10791 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10792             Bruno Haible  <bruno@clisp.org>
10793
10794         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10795         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10796         not defined, assume POSIX threads and look for pthread_sigmask in
10797         $LIBS, without changing $CPPFLAGS.
10798
10799 2011-07-19  Bruno Haible  <bruno@clisp.org>
10800
10801         strstr: Update cross-compilation guess.
10802         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10803         CPUs, guess no, in view of glibc
10804         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10805         Suggested by Eric Blake. Reported by Reuben Thomas.
10806
10807 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10808
10809         getopt-gnu: suppress core dumps from detection code
10810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10811         to suppress core dumps that may well occur on glibc systems.
10812         * modules/getopt-gnu: Depend on nocrash.
10813
10814 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10815
10816         pthread_sigmask: ensure usleep is declared
10817         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10818         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10819
10820 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10821
10822         doc: Document NonStop portability issues.
10823         * doc/posix-functions/sigaction.texi (sigaction):
10824         * doc/posix-headers/signal.texi (signal.h):
10825         Document NonStop.  See Joachim Schmitz in
10826         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10827
10828 2011-07-15  Bruno Haible  <bruno@clisp.org>
10829
10830         ffsl, ffsll: Avoid unportable behaviour.
10831         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10832
10833 2011-07-15  Bruno Haible  <bruno@clisp.org>
10834
10835         ffs: More tests.
10836         * tests/test-ffs.c (NBITS): New macro.
10837         (main): Add more tests.
10838         * tests/test-ffsl.c (NBITS): New macro.
10839         (main): Add more tests.
10840         * tests/test-ffsll.c (NBITS): New macro.
10841         (main): Add more tests.
10842
10843 2011-07-15  Eric Blake  <eblake@redhat.com>
10844
10845         ffsl, ffsll: new modules
10846         * modules/ffsl: New file.
10847         * modules/ffsll: Likewise.
10848         * m4/ffsl.m4: Likewise.
10849         * m4/ffsll.m4: Likewise.
10850         * lib/ffsl.c: Likewise.
10851         * lib/ffsl.h: Likewise.
10852         * lib/ffsll.c: Likewise.
10853         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10854         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10855         * modules/string (Makefile.am): Substitute witnesses.
10856         * lib/strings.in.h (ffsl, ffsll): Declare.
10857         * modules/ffsl-tests: New test file.
10858         * modules/ffsll-tests: Likewise.
10859         * tests/test-ffsl.c: Likewise.
10860         * tests/test-ffsll.c: Likewise.
10861         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10862         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10863         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10864
10865         ffs: fix m4 prerequisite
10866         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10867
10868         ffs: avoid undefined behavior
10869         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10870         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10871         Reported by Bruno Haible.
10872
10873 2011-07-12  Bruno Haible  <bruno@clisp.org>
10874
10875         pthread_sigmask: Rely on module 'threadlib'.
10876         * modules/pthread_sigmask (Depends-on): Add threadlib.
10877         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10878         is defined.
10879
10880 2011-07-12  Bruno Haible  <bruno@clisp.org>
10881
10882         regex: Depend on module 'strcase'.
10883         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10884
10885 2011-07-12  Jim Meyering  <meyering@redhat.com>
10886
10887         warn-on-use: fix typo in file name
10888         * modules/snippet/warn-on-use (Files): Correct file name:
10889         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10890
10891 2011-07-12  Bruno Haible  <bruno@clisp.org>
10892
10893         strings: Document module.
10894         * doc/posix-headers/strings.texi: Mention module 'strings'.
10895
10896 2011-07-12  Bruno Haible  <bruno@clisp.org>
10897
10898         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10899         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10900         (Files, Makefile.am): Update.
10901         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10902         * modules/stdlib (Depends-on): Update.
10903
10904 2011-07-12  Bruno Haible  <bruno@clisp.org>
10905
10906         * NEWS: Mention the changes.
10907
10908         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10909         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10910         (Files, Makefile.am): Update.
10911         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10912         * modules/arpa_inet (Depends-on): Update.
10913         * modules/ctype (Depends-on): Update.
10914         * modules/dirent (Depends-on): Update.
10915         * modules/fcntl-h (Depends-on): Update.
10916         * modules/glob (Depends-on): Update.
10917         * modules/iconv-h (Depends-on): Update.
10918         * modules/inttypes-incomplete (Depends-on): Update.
10919         * modules/langinfo (Depends-on): Update.
10920         * modules/locale (Depends-on): Update.
10921         * modules/math (Depends-on): Update.
10922         * modules/netdb (Depends-on): Update.
10923         * modules/poll-h (Depends-on): Update.
10924         * modules/pty (Depends-on): Update.
10925         * modules/search (Depends-on): Update.
10926         * modules/signal (Depends-on): Update.
10927         * modules/spawn (Depends-on): Update.
10928         * modules/stdio (Depends-on): Update.
10929         * modules/stdlib (Depends-on): Update.
10930         * modules/string (Depends-on): Update.
10931         * modules/strings (Depends-on): Update.
10932         * modules/sys_file (Depends-on): Update.
10933         * modules/sys_ioctl (Depends-on): Update.
10934         * modules/sys_select (Depends-on): Update.
10935         * modules/sys_socket (Depends-on): Update.
10936         * modules/sys_stat (Depends-on): Update.
10937         * modules/sys_time (Depends-on): Update.
10938         * modules/sys_times (Depends-on): Update.
10939         * modules/sys_utsname (Depends-on): Update.
10940         * modules/sys_wait (Depends-on): Update.
10941         * modules/termios (Depends-on): Update.
10942         * modules/time (Depends-on): Update.
10943         * modules/unistd (Depends-on): Update.
10944         * modules/wchar (Depends-on): Update.
10945         * modules/wctype-h (Depends-on): Update.
10946         * MODULES.html.sh (Support for building libraries and executables):
10947         Update.
10948
10949         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10950         * modules/snippet/unused-parameter: Renamed from
10951         modules/unused-parameter.
10952         (Files, Makefile.am): Update.
10953         * build-aux/snippet/unused-parameter.h: Renamed from
10954         build-aux/unused-parameter.h.
10955         * modules/selinux-h (Depends-on): Update.
10956         * modules/unistr/base (Depends-on): Update.
10957         * MODULES.html.sh (Core language properties): Update.
10958
10959         Rename module 'link-warning' to 'snippet/link-warning'.
10960         * modules/snippet/link-warning: Renamed from modules/link-warning.
10961         (Files, Makefile.am): Update.
10962         * build-aux/snippet/link-warning.h: Renamed from
10963         build-aux/link-warning.h.
10964         * MODULES.html.sh (Support for building libraries and executables):
10965         Update.
10966
10967         Rename module 'c++defs' to 'snippet/c++defs'.
10968         * modules/snippet/c++defs: Renamed from modules/c++defs.
10969         (Files, Makefile.am): Update.
10970         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10971         * modules/arpa_inet (Depends-on): Update.
10972         * modules/ctype (Depends-on): Update.
10973         * modules/dirent (Depends-on): Update.
10974         * modules/fcntl-h (Depends-on): Update.
10975         * modules/glob (Depends-on): Update.
10976         * modules/iconv-h (Depends-on): Update.
10977         * modules/langinfo (Depends-on): Update.
10978         * modules/locale (Depends-on): Update.
10979         * modules/math (Depends-on): Update.
10980         * modules/netdb (Depends-on): Update.
10981         * modules/poll-h (Depends-on): Update.
10982         * modules/pty (Depends-on): Update.
10983         * modules/search (Depends-on): Update.
10984         * modules/signal (Depends-on): Update.
10985         * modules/spawn (Depends-on): Update.
10986         * modules/stdio (Depends-on): Update.
10987         * modules/stdlib (Depends-on): Update.
10988         * modules/string (Depends-on): Update.
10989         * modules/strings (Depends-on): Update.
10990         * modules/sys_ioctl (Depends-on): Update.
10991         * modules/sys_select (Depends-on): Update.
10992         * modules/sys_socket (Depends-on): Update.
10993         * modules/sys_stat (Depends-on): Update.
10994         * modules/sys_time (Depends-on): Update.
10995         * modules/sys_wait (Depends-on): Update.
10996         * modules/termios (Depends-on): Update.
10997         * modules/time (Depends-on): Update.
10998         * modules/unistd (Depends-on): Update.
10999         * modules/wchar (Depends-on): Update.
11000         * modules/wctype-h (Depends-on): Update.
11001
11002         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11003         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11004         (Files, Makefile.am): Update.
11005         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11006         * modules/argv-iter (Depends-on): Update.
11007         * modules/arpa_inet (Depends-on): Update.
11008         * modules/dirent (Depends-on): Update.
11009         * modules/fcntl-h (Depends-on): Update.
11010         * modules/fnmatch (Depends-on): Update.
11011         * modules/getopt-posix (Depends-on): Update.
11012         * modules/glob (Depends-on): Update.
11013         * modules/iconv-h (Depends-on): Update.
11014         * modules/inttypes-incomplete (Depends-on): Update.
11015         * modules/locale (Depends-on): Update.
11016         * modules/math (Depends-on): Update.
11017         * modules/netdb (Depends-on): Update.
11018         * modules/search (Depends-on): Update.
11019         * modules/signal (Depends-on): Update.
11020         * modules/spawn (Depends-on): Update.
11021         * modules/stdio (Depends-on): Update.
11022         * modules/stdlib (Depends-on): Update.
11023         * modules/string (Depends-on): Update.
11024         * modules/strings (Depends-on): Update.
11025         * modules/sys_socket (Depends-on): Update.
11026         * modules/sys_stat (Depends-on): Update.
11027         * modules/sys_time (Depends-on): Update.
11028         * modules/sys_times (Depends-on): Update.
11029         * modules/sys_utsname (Depends-on): Update.
11030         * modules/time (Depends-on): Update.
11031         * modules/unistd (Depends-on): Update.
11032         * modules/wchar (Depends-on): Update.
11033         * MODULES.html.sh (Support for building libraries and executables):
11034         Update.
11035
11036 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11037
11038         Improvements on _Noreturn and related modules.
11039
11040         modules/_Exit-tests: test _Noreturn too
11041         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11042         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11043         (main): Use them.
11044
11045         stdnoreturn, stdnoreturn-tests: remove modules
11046         They're not needed here and a bit premature for use elsewhere.  See
11047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11048         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11049         * tests/test-stdnoreturn.c: Remove files.
11050         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11051         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11052         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11053         and using noreturn.
11054         * modules/openat, modules/sigpipe-die, modules/xalloc:
11055         * modules/xmemdup0, modules/xstrtol:
11056         Remove dependency on stdnoreturn.
11057
11058         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11059         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11060         Reparenthesize to avoid GCC warning.
11061         Support Microsoft's syntax.
11062         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11063
11064         _Noreturn-tests: remove module
11065         * modules/_Noreturn-tests: Remove.
11066         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11067         * tests/test-_Noreturn.c: Remove.
11068         * tests/test-stdnoreturn.c: Merge from the old
11069         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11070
11071 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11072
11073         _Noreturn, stdnoreturn, and related modules.
11074
11075         * top/maint.mk: Adjust to new noreturn support.
11076         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11077         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11078
11079         xalloc: use stdnoreturn.h
11080         * lib/xalloc.h: Include <stdnoreturn.h>.
11081         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11082         * modules/xalloc (Depends-on): Add stdnoreturn.
11083
11084         xstrtol: use stdnoreturn.h
11085         * lib/xstrtol.h: Include <stdnoreturn.h>.
11086         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11087         * modules/xstrtol (Depends-on): Add stdnoreturn.
11088
11089         xmemdup0: use stdnoreturn.h
11090         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11091         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11092         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11093
11094         sigpipe-die: use stdnoreturn.h
11095         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11096         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11097         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11098
11099         openat: use stdnoreturn.h
11100         * lib/openat.h: Include <stdnoreturn.h>.
11101         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11102         * modules/openat (Depends-on): Add stdnoreturn.
11103
11104         * lib/openat-die.c (openat_save_fail): Modernize comment.
11105
11106         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11107
11108         * lib/glthread/thread.h: Modernize comment.
11109
11110         obstack: use _Noreturn
11111         * lib/obstack.c (__attribute__): Remove macro.
11112         (print_and_abort): Use _Noreturn.
11113
11114         c-stack: use _Noreturn
11115         * lib/c-stack.c (die, overflow_handler, segv_handler):
11116         Use _Noreturn rather than __attribute__((noreturn)).
11117
11118         argmatch-tests, exclude_tests: use _Noreturn
11119         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11120         Remove.
11121         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11122
11123         stdlib: use _Noreturn
11124         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11125         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11126         * modules/stdlib (Depends-on): Add _Noreturn.
11127         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11128
11129         stdnoreturn-tests: new module
11130         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11131
11132         stdnoreturn: new module
11133         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11134         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11135
11136         _Noreturn-tests: new module
11137         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11138
11139         _Noreturn: new module
11140         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11141         New section, mentioning it.
11142         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11143
11144         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11145
11146 2011-07-11  Eric Blake  <eblake@redhat.com>
11147
11148         ffs: new module
11149         * modules/ffs: New file.
11150         * m4/ffs.m4: Likewise.
11151         * lib/ffs.c: Likewise.
11152         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11153         * modules/strings (Makefile.am): Substitute witness.
11154         (Depends-on): Add c++defs.
11155         * lib/strings.in.h (ffs): Declare.
11156         * modules/ffs-tests: New test file.
11157         * tests/test-ffs.c: Test new module.
11158         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11159         * doc/posix-functions/ffs.texi (ffs): Likewise.
11160
11161         regex: avoid compiler warning
11162         * lib/regex.c (includes): Include <strings.h>, for use of
11163         strcasecmp in regcomp.c.
11164         Reported by Joachim Schmitz.
11165
11166 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11167
11168         stdint: respect system's intmax_t if INTMAX_MAX
11169         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11170         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11171         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11172         long but int64_t is long long, and where we will clash with the
11173         system intmax_t if we override it.  See
11174         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11175         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11176         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11177         similarly for UINTMAX_C.
11178
11179 2011-07-08  Bruno Haible  <bruno@clisp.org>
11180
11181         pthread_sigmask tests: Avoid a compiler warning.
11182         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11183         non-zero.
11184
11185         sigprocmask tests: A better way to avoid a compiler warning.
11186         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11187         (main): Complain if system() returns non-zero.
11188         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11189
11190 2011-07-08  Bruno Haible  <bruno@clisp.org>
11191
11192         pthread_sigmask: Work around IRIX bug.
11193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11194         bug.
11195         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11196         there may be unblocked pending signals.
11197         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11198
11199 2011-07-08  Bruno Haible  <bruno@clisp.org>
11200
11201         pthread_sigmask: Work around Cygwin bug.
11202         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11203         bug.
11204         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11205         the system's pthread_sigmask function.
11206         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11207
11208 2011-07-08  Bruno Haible  <bruno@clisp.org>
11209
11210         pthread_sigmask: Work around bug in single-threaded implementation.
11211         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11212         FreeBSD, HP-UX, Solaris bug.
11213         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11214         * lib/pthread_sigmask.c: Include <stddef.h>.
11215         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11216         the system's pthread_sigmask function.
11217         * modules/pthread_sigmask (configure.ac): Invoke
11218         gl_PREREQ_PTHREAD_SIGMASK.
11219         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11220         HP-UX, Solaris.
11221
11222 2011-07-08  Eric Blake  <eblake@redhat.com>
11223
11224         test-sigprocmask: avoid compiler warning
11225         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11226         * tests/test-sigprocmask.c (main): Use it to silence warning.
11227         Reported by Jim Meyering.
11228
11229         test-snprintf: avoid compiler warning
11230         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11231         * tests/test-vsnprintf.c (main): Likewise.
11232         Reported by Jim Meyering.
11233
11234 2011-07-08  Bruno Haible  <bruno@clisp.org>
11235
11236         Tests for module 'pthread_sigmask'.
11237         * modules/pthread_sigmask-tests: New file.
11238         * tests/test-pthread_sigmask1.c: New file, based on
11239         tests/test-sigprocmask.c.
11240         * tests/test-pthread_sigmask2.c: New file.
11241
11242 2011-07-08  Jim Meyering  <meyering@redhat.com>
11243
11244         test-getopt.h: avoid warning about an unused variable
11245         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11246
11247 2011-07-07  Jim Meyering  <meyering@redhat.com>
11248
11249         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11250         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11251         now that it no longer contains leading TABs.
11252         Remove unused "url=FIXME" statement.
11253
11254 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11255
11256         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11258         When gl_THREADLIB is not in use, assume that the POSIX sematics
11259         are desired.  This is better for Emacs, which uses POSIX semantics
11260         on GNUish and/or POSIXish platforms, and does not use threads at
11261         all otherwise.
11262
11263         pthread_sigmask: fix typo when testing for libraries
11264         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11265         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11266
11267 2011-07-08  Eric Blake  <eblake@redhat.com>
11268
11269         fts: introduce FTS_NOATIME
11270         * lib/fts_.h (FTS_NOATIME): New bit flag.
11271         (FTS_OPTIONMASK): Adjust.
11272         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11273         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11274
11275 2011-07-08  Bruno Haible  <bruno@clisp.org>
11276
11277         Tests for module 'thread'.
11278         * modules/thread-tests: New file.
11279         * tests/test-thread_self.c: New file.
11280         * tests/test-thread_create.cc: New file.
11281
11282 2011-07-08  Bruno Haible  <bruno@clisp.org>
11283
11284         thread: Avoid gcc warnings when using gl_thread_self().
11285         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11286         'void *'.
11287         (gl_thread_self_pointer): Update.
11288
11289 2011-07-07  Bruno Haible  <bruno@clisp.org>
11290
11291         signal-c++-tests: Check declaration of pthread_sigmask.
11292         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11293         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11294         $(LIB_PTHREAD_SIGMASK).
11295
11296 2011-07-07  Bruno Haible  <bruno@clisp.org>
11297
11298         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11299         * lib/signal.in.h (pthread_sigmask): Override if
11300         REPLACE_PTHREAD_SIGMASK is 1.
11301         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11302         REPLACE_PTHREAD_SIGMASK.
11303         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11304         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11305         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11306         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11307         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11308
11309 2011-07-07  Bruno Haible  <bruno@clisp.org>
11310
11311         pthread_sigmask: Ensure declaration in <signal.h>.
11312         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11313         include <pthread.h>.
11314         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11315         problem.
11316
11317 2011-07-07  Bruno Haible  <bruno@clisp.org>
11318
11319         pthread_sigmask: Document the module.
11320         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11321
11322 2011-07-07  Bruno Haible  <bruno@clisp.org>
11323
11324         pthread_sigmask: Follow gnulib conventions.
11325         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11326         gl_PTHREAD_SIGMASK.
11327         * modules/pthread_sigmask (configure.ac): Update.
11328
11329 2011-07-07  Bruno Haible  <bruno@clisp.org>
11330
11331         pthread_sigmask: Make declaration C++ safe.
11332         * lib/signal.in.h: In two special conditions, just do an #include_next.
11333         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11334         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11335         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11336         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11337         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11338         not REPLACE_PTHREAD_MASK.
11339         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11340         not REPLACE_PTHREAD_MASK.
11341         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11342
11343 2011-07-07  Bruno Haible  <bruno@clisp.org>
11344
11345         pthread_sigmask: Fix return value.
11346         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11347         * lib/pthread_sigmask.c: New file.
11348         * modules/pthread_sigmask (Files): Add it.
11349         (configure.ac): Invoke AC_LIBOBJ.
11350
11351 2011-07-07  Eric Blake  <eblake@redhat.com>
11352
11353         getopt: more portable argv creation
11354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11355         const, use char arrays rather than strings.
11356         Suggested by Paul Eggert.
11357
11358 2011-07-07  Bruno Haible  <bruno@clisp.org>
11359
11360         Tests for module 'sigprocmask'.
11361         * modules/sigprocmask-tests: New file.
11362         * tests/test-sigprocmask.c: New file.
11363
11364 2011-07-07  Bruno Haible  <bruno@clisp.org>
11365
11366         float tests: Tweak.
11367         * tests/test-float.c (main): Tweak skip message.
11368
11369 2011-07-07  Eric Blake  <eblake@redhat.com>
11370
11371         getopt: avoid compiler warning during configure
11372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11373         assigning string literals to non-const pointer.
11374
11375         getopt-gnu: avoid crash in glibc getopt
11376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11377         * tests/test-getopt.h (test_getopt): Enhance test.
11378         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11379         * doc/posix-functions/getopt.texi (getopt): Document it.
11380         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11381         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11382         Likewise.
11383
11384 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11385
11386         getopt: handle W; without long options in getopt [BZ #12922]
11387         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11388         but no long options are defined, just return 'W'.
11389
11390 2011-07-07  Bruno Haible  <bruno@clisp.org>
11391
11392         Avoid literal tabs.
11393         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11394         variable containing a tab instead of a literal tab.
11395         Reported by Jim Meyering.
11396
11397 2011-07-07  Bruno Haible  <bruno@clisp.org>
11398
11399         Comments.
11400         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11401
11402 2011-07-06  Bruno Haible  <bruno@clisp.org>
11403
11404         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11405         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11406         <winsock2.h>.
11407         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11408         lib/sys_socket.in.h.
11409         (close, gethostname): Hide declarations from <winsock2.h>.
11410         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11411         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11412         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11413         (select): Don't override if gnulib's <sys/select.h> was already
11414         included.
11415         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11416         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11417         setsockopt, shutdown, select): Tweak indentation.
11418
11419 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11420
11421         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11422         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11423         in an application that does not use the sys_select module.
11424
11425 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11426
11427         poll: do not return 0 on timeout=-1
11428         * lib/poll.c: Loop with yield if no events occured
11429
11430 2011-07-06  Eric Blake  <eblake@redhat.com>
11431
11432         pthread_sigmask: always replace when not using pthread
11433         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11434         replacement when using some threading other than pthread.  Fix
11435         logic bug.
11436
11437 2011-07-06  Bruno Haible  <bruno@clisp.org>
11438
11439         Comments.
11440         * m4/printf.m4: Update comments about mingw.
11441
11442 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11443
11444         sys_select: define sigset_t more portably
11445         * lib/sys_select.in.h: Always include <sys/types.h>, since
11446         we now need sigset_t and mingw defines it there.
11447         Include <signal.h> before split inclusion guard, to avoid
11448         mishaps on Solaris, whose <signal.h> eventually includes us.
11449         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11450         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11451         which come from ...
11452         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11453         gl_CHECK_TYPE_SIGSET_T.
11454         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11455         does the real work.
11456         * modules/sys_select (Depends-on): Add 'signal'.
11457
11458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11459         Suggested by Bruno Haible.
11460
11461         pselect: Use pthread_sigmask, not sigprocmask.
11462         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11463         multithreaded apps better than sigprocmask does.
11464         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11465         sigprocmask directly.
11466
11467 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11468
11469         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11470         Don't #undef,  since we don't need any underlying pselect.
11471         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11472         (Depends-on): Add select.
11473         (Link): Add $(LIBSOCKET).
11474         These changes suggested by Bruno Haible.
11475
11476         pselect: document better
11477         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11478         * doc/posix-functions/pselect.texi (pselect): Document new module.
11479
11480         pthread_sigmask: new module
11481         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11482         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11483         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11484         This is done only as a macro; I don't know how well that'll
11485         work for C++.  Move <sys/types.h> include before the include_next,
11486         to avoid mishap on Solaris.
11487         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11488         * modules/signal (Makefile.am): Substitute the check's results.
11489         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11490
11491         test-pselect: new module
11492         * modules/pselect-tests, tests/test-pselect.c: New files.
11493         * tests/test-select.c, tests/test-sys_select-c++.cc:
11494         If TEST_PSELECT is defined, test pselect instead of testing select.
11495
11496         * tests/test-sys_select.c (sigset_t): Test for it, too.
11497         Suggested by Bruno Haible.
11498
11499 2011-07-05  Eric Blake  <eblake@redhat.com>
11500
11501         snprintf: guarantee %1$d, for libintl
11502         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11503         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11504         * doc/posix-functions/snprintf.texi (snprintf): Update.
11505         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11506         * tests/test-snprintf.c (main): Enhance test.
11507         * tests/test-vsnprintf.c (main): Likewise.
11508
11509 2011-07-05  Jim Meyering  <meyering@redhat.com>
11510
11511         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11512         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11513         per Bruno's request, to accommodate this idiom (no space after "#")
11514         even when the function is inside an #if block:
11515         char *
11516         gets (char *s)
11517         #undef gets
11518         {
11519           ...
11520         }
11521
11522 2011-07-04  Jim Meyering  <meyering@redhat.com>
11523
11524         maint: indent with spaces, not TABs, and add a rule to check this
11525         * tests/test-userspec.c: Indent with spaces, not TABs.
11526         * tests/test-argp.c: Likewise.
11527         * tests/test-c-stack2.sh: Likewise.
11528         * tests/test-parse-duration.sh: Likewise
11529         * m4/strtod.m4: Likewise.
11530         * m4/alloca.m4: Likewise.
11531         * m4/pselect.m4: Likewise.
11532         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11533
11534 2011-07-03  Jim Meyering  <meyering@redhat.com>
11535
11536         maint.mk: correct omissions in prohibit_argmatch_without_use check
11537         This rule would mistakenly report that argmatch.h is included without
11538         use even when both the argmatch and invalid_arg macro were used.
11539         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11540         of argmatch and invalid_arg.
11541
11542 2011-07-03  Bruno Haible  <bruno@clisp.org>
11543
11544         Comments about EINTR.
11545         * lib/safe-read.h: Explain the purpose of this module.
11546         * lib/safe-write.h: Likewise.
11547         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11548         module.
11549         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11550         module.
11551         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11552
11553 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11554
11555         xnanosleep: Rewrite to use new dtotimespec module.
11556         It has the conversion code that used to be in xnanosleep.
11557         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11558         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11559         (TIME_T_MAX): Remove.
11560         (xnanosleep): Rewrite in terms of dtotimespec.
11561         * modules/xnanosleep (Depends-on): Add dtotimespec.
11562         Remove intprops, stdbool.
11563
11564         timespec-add, timespec-sub: new modules
11565         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11566         * lib/timespec-add.c, lib/timespec-sub.c:
11567         * modules/timespec-add, modules/timespec-sub: New files.
11568
11569         dtotimespec: new module
11570         * lib/timespec.h (dtotimespec): New decl.
11571         * lib/dtotimespec.c, modules/dtotimespec: New files.
11572
11573         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11574
11575         pselect: new module
11576         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11577         (pselect): New decls.
11578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11579         since the standard pselect decl uses 'restrict'.
11580         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11581         HAVE_PSELECT, REPLACE_PSELECT.
11582         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11583         HAVE_PSELECT, REPLACE_PSELECT.
11584         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11585
11586         sys_select: don't depend on sys_socket
11587         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11589         This fix works on GNU and GNU-like platforms, but has not been tested
11590         on native Windows.
11591         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11593         gl_HEADER_SYS_SOCKET.
11594         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11595         gl_PREREQ_SYS_H_WINSOCK2.
11596
11597 2011-06-29  Eric Blake  <eblake@redhat.com>
11598
11599         pipe2: fix C89 compile problem
11600         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11601         Reported by Bruno Haible.
11602
11603         pipe, pipe2: don't corrupt fd on error
11604         * lib/pipe.c (pipe): Leave fd unchanged on error.
11605         * lib/pipe2.c (pipe2): Likewise.
11606         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11607         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11608
11609 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11610
11611         mmap-anon: do not use regular expressions inadvertently
11612         * m4/mmap-anon.m4: Remove trailing period from strings sought
11613         in the output.
11614
11615 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11616
11617         nanosleep: fix integer overflow problem
11618         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11619         arithmetic wraps around on overflow.
11620
11621         nanosleep: simplify carrying
11622         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11623         first call to the underyling nanosleep, not for the last one.
11624         This doesn't fix any bugs, but it simplifies the computation of
11625         the remaining delay.  Found while auditing integer overflow issues.
11626
11627         dup2: remove test for existence of fcntl
11628         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11629         "#if HAVE_FCNTL", in the configure-time test program.
11630         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11631         and therefore speeds up "configure" a bit.  Found while
11632         adding the dup2 module to Emacs.
11633
11634 2011-06-24  Eric Blake  <eblake@redhat.com>
11635
11636         maint.mk: enhance useless header checks
11637         * top/maint.mk (_sc_header_without_use): Check both include
11638         styles.
11639         (sc_prohibit_assert_without_use)
11640         (sc_prohibit_close_stream_without_use)
11641         (sc_prohibit_getopt_without_use)
11642         (sc_prohibit_quotearg_without_use)
11643         (sc_prohibit_quote_without_use)
11644         (sc_prohibit_long_options_without_use)
11645         (sc_prohibit_inttostr_without_use)
11646         (sc_prohibit_ignore_value_without_use)
11647         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11648         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11649         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11650         (sc_prohibit_hash_pjw_without_use)
11651         (sc_prohibit_safe_read_without_use)
11652         (sc_prohibit_argmatch_without_use)
11653         (sc_prohibit_canonicalize_without_use)
11654         (sc_prohibit_root_dev_ino_without_use)
11655         (sc_prohibit_openat_without_use)
11656         (sc_prohibit_c_ctype_without_use)
11657         (sc_prohibit_signal_without_use)
11658         (sc_prohibit_stdio--_without_use)
11659         (sc_prohibit_stdio-safer_without_use)
11660         (sc_prohibit_strings_without_use)
11661         (sc_prohibit_intprops_without_use)
11662         (sc_prohibit_stddef_without_use)
11663         (sc_prohibit_xfreopen_without_use): Update clients.
11664
11665 2011-06-24  Jim Meyering  <meyering@redhat.com>
11666
11667         syntax-check: keep one maint.mk rule in sync with its header
11668         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11669         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11670         I prefer to avoid temporary files here, so use <(...), but that
11671         is not supported by /bin/sh, so...
11672         (SHELL): Define to /bin/bash.
11673
11674 2011-06-24  Eric Blake  <eblake@redhat.com>
11675
11676         maint.mk: update sc_prohibit_intprops_without_use
11677         * top/maint.mk (_intprops_names): Match recent changes.
11678
11679 2011-06-24  Bruno Haible  <bruno@clisp.org>
11680
11681         strerror-override: No-op tweak.
11682         * lib/strerror-override.h (strerror_override): Reorder conditions,
11683         for consistency with lib/strerror-override.c.
11684
11685 2011-06-23  Eric Blake  <eblake@redhat.com>
11686
11687         maint.mk: test further PATH_MAX issues
11688         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11689         (sc_prohibit_path_max_allocation): ...and also test alloca.
11690         Suggested by Jim Meyering.
11691
11692 2011-06-22  Eric Blake  <eblake@redhat.com>
11693
11694         maint.mk: add syntax-check to avoid char[PATH_MAX]
11695         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11696
11697         stat: be robust to PATH_MAX definition
11698         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11699         * modules/stat (Depends-on): Add verify.
11700
11701         link: work around IRIX bug
11702         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11703         * lib/link.c (rpl_link): Work around it.
11704         * tests/test-link.h (test_link): Enhance test.
11705         * doc/posix-functions/link.texi (link): Document the bug.
11706
11707         getopt: silence clang warning
11708         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11709         dereference.
11710         Reported by Gustavo Martin Domato.
11711
11712 2011-06-22  Jim Meyering  <meyering@redhat.com>
11713
11714         bootstrap: do not insert a blank line into each .gitignore file
11715         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11716
11717 2011-06-21  Eric Blake  <eblake@redhat.com>
11718
11719         perror: test for output mismatch
11720         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11721         perror on IRIX.
11722
11723         strerror_r: fix OpenBSD behavior on out-of-range
11724         * lib/strerror_r.c (strerror_r): Always use maximal string.
11725         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11726
11727         strerror_r: fix OpenBSD behavior on 0
11728         * lib/strerror-override.c (strerror_override): Also override 0
11729         when needed.
11730         * lib/strerror-override.h (strerror_override): Likewise.
11731         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11732         earlier.
11733         * lib/strerror_r.c (strerror_r): Likewise.
11734         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11735         behavior...
11736         (gl_FUNC_STRERROR_0): ...into new macro.
11737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11738         is overridden.
11739         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11740         * modules/strerror-override (Files): Add strerror.m4.
11741         (configure.ac): Also provide override for 0 when needed.
11742         * doc/posix-functions/strerror.texi (strerror): Document this.
11743         * doc/posix-functions/perror.texi (perror): Likewise.
11744
11745         perror: adjust array size
11746         * modules/perror (Depends-on): Add strerror-override.
11747         * lib/perror.c (perror): Use it to avoid magic number.
11748
11749         strerror-override: reduce size
11750         * lib/strerror-override.c (strerror_override): Use fewer lines.
11751
11752 2011-06-20  Bruno Haible  <bruno@clisp.org>
11753
11754         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11755         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11756
11757 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         alloca: port to compilers that can optimize like GCC 4.6.0
11760         * lib/alloca.c (find_stack_direction): New signature, taken from
11761         Autoconf git.  This works with GCC 4.6.0.  This code should never
11762         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11763         be used with other compilers that optimize as well as GCC 4.6.0 does.
11764         (alloca): Adjust to new signature.
11765         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11766         New macro, which patches Autoconf in a similar way.
11767
11768         c-stack: stop worrying about stack direction
11769         * lib/c-stack.c (find_stack_direction): Remove.
11770         (segv_handler): Don't worry about stack direction growth, as it's
11771         too much of a pain to configure this correctly, given how compilers
11772         are optimizing-away our stack-growth detection code.  Instead, assume
11773         that any access to just before or just after the stack is OK.
11774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11775         Don't require AC_FUNC_ALLOCA; no longer needed.
11776
11777 2011-06-20  Eric Blake  <eblake@redhat.com>
11778
11779         test-stat: don't allocate PATH_MAX bytes
11780         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11781         PATH_MAX-sized buffer.
11782         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11783         * modules/stat-tests (Depends-on): Likewise.
11784         * tests/test-fstatat.c (includes): Drop pathmax.h.
11785         * tests/test-stat.c (includes): Likewise.
11786         Reported by Bruno Haible.
11787
11788 2011-06-20  Bruno Haible  <bruno@clisp.org>
11789
11790         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11791         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11792         * lib/float.c: New file.
11793         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11794         REPLACE_FLOAT_LDBL.
11795         * modules/float (Files): Add lib/float.c.
11796         (configure.ac): Invoke AC_LIBOBJ.
11797         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11798
11799 2011-06-20  Bruno Haible  <bruno@clisp.org>
11800
11801         Tests for module 'float'.
11802         * modules/float-tests: New file.
11803         * tests/test-float.c: New file.
11804
11805 2011-06-19  Bruno Haible  <bruno@clisp.org>
11806
11807         isinf: Coding style.
11808         * lib/isinf.c: Use GNU coding style.
11809
11810 2011-06-19  Bruno Haible  <bruno@clisp.org>
11811
11812         linkat test: Avoid test failure on AIX 7.1.
11813         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11814         * tests/test-link.h (test_link): Likewise.
11815
11816 2011-06-19  Bruno Haible  <bruno@clisp.org>
11817
11818         pread test: Avoid test failure on OpenBSD 4.9.
11819         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11820
11821 2011-06-19  Bruno Haible  <bruno@clisp.org>
11822
11823         sprintf-posix: Fix test failure on AIX 7.1.
11824         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11825         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11826         on AIX.
11827         * doc/posix-functions/fprintf.texi: Likewise.
11828         * doc/posix-functions/printf.texi: Likewise.
11829         * doc/posix-functions/snprintf.texi: Likewise.
11830         * doc/posix-functions/sprintf.texi: Likewise.
11831         * doc/posix-functions/vdprintf.texi: Likewise.
11832         * doc/posix-functions/vfprintf.texi: Likewise.
11833         * doc/posix-functions/vprintf.texi: Likewise.
11834         * doc/posix-functions/vsnprintf.texi: Likewise.
11835         * doc/posix-functions/vsprintf.texi: Likewise.
11836
11837 2011-06-19  Bruno Haible  <bruno@clisp.org>
11838
11839         roundl-ieee: Fix test failure on AIX 7.1.
11840         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11841         * doc/posix-functions/roundl.texi: Mention problem with negative
11842         arguments.
11843
11844 2011-06-19  Bruno Haible  <bruno@clisp.org>
11845
11846         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11847         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11848         * doc/posix-functions/round.texi: Mention problem with negative
11849         arguments.
11850         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11851
11852 2011-06-19  Bruno Haible  <bruno@clisp.org>
11853
11854         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11855         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11856         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11857         * doc/posix-functions/roundf.texi: Mention problem with negative
11858         arguments.
11859         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11860
11861 2011-06-19  Bruno Haible  <bruno@clisp.org>
11862
11863         ceilf-ieee: Work around bug on MacOS X 10.5.
11864         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11865
11866         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11867         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11868         IEEE compliant, avoid compiler optimizations.
11869         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11870         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11871         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11872         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11873         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11874         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11875         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11876         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11877         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11879
11880 2011-06-19  Bruno Haible  <bruno@clisp.org>
11881
11882         ceilf-ieee: Work around bug on AIX 7.1.
11883         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11884         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11885
11886 2011-06-19  Bruno Haible  <bruno@clisp.org>
11887
11888         ceil-ieee: Work around bug on AIX 7.1.
11889         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11890         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11891
11892 2011-06-18  Bruno Haible  <bruno@clisp.org>
11893
11894         fsync test: Avoid test failure on MacOS X and AIX.
11895         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11896         EINVAL.
11897
11898 2011-06-18  Bruno Haible  <bruno@clisp.org>
11899
11900         openat, fdopendir tests: Fix link errors.
11901         * modules/openat-tests (Depends-on): Add progname.
11902         * modules/fdopendir-tests (Depends-on): Likewise.
11903         * tests/test-fchownat.c: Include progname.h.
11904         (main): Call set_program_name.
11905         * tests/test-fstatat.c: Include progname.h.
11906         (main): Call set_program_name.
11907         * tests/test-mkdirat.c: Include progname.h.
11908         (main): Call set_program_name.
11909         * tests/test-openat.c: Include progname.h.
11910         (main): Call set_program_name.
11911         * tests/test-unlinkat.c: Include progname.h.
11912         (main): Call set_program_name.
11913         * tests/test-fdopendir.c: Include progname.h.
11914         (main): Call set_program_name.
11915
11916 2011-06-18  Bruno Haible  <bruno@clisp.org>
11917
11918         Doc update.
11919         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11920         HP-UX.
11921         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11922
11923 2011-06-18  Bruno Haible  <bruno@clisp.org>
11924
11925         getcwd tests: Avoid compilation error on HP-UX 11.31.
11926         * modules/getcwd-tests (Depends-on): Add pathmax.
11927         * tests/test-getcwd.c: Include pathmax.h.
11928
11929 2011-06-18  Bruno Haible  <bruno@clisp.org>
11930
11931         isfinite, isinf: Fix link error on AIX 6 and 7.
11932         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11933         needed, also test the macro with a 'float' argument.
11934         * m4/isinf.m4 (gl_ISINF): Likewise.
11935
11936 2011-06-18  Bruno Haible  <bruno@clisp.org>
11937
11938         getloadavg: Don't clobber LIBS. Regression from previous commit.
11939         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11940         AC_CHECK_LIB from here...
11941         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11942         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11943         gl_func_getloadavg_done.
11944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11945
11946 2011-06-18  Bruno Haible  <bruno@clisp.org>
11947
11948         clean-temp: Improve documentation.
11949         * lib/clean-temp.h: Explain better how to use this module.
11950         Reported by John Darrington <john@darrington.wattle.id.au>.
11951
11952 2011-06-17  Bruno Haible  <bruno@clisp.org>
11953
11954         pread, pwrite: Avoid cc warning on AIX.
11955         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11956         (pwrite): Likewise.
11957
11958 2011-06-17  Bruno Haible  <bruno@clisp.org>
11959
11960         spawn-pipe tests: Fix link error.
11961         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11963
11964 2011-06-17  Bruno Haible  <bruno@clisp.org>
11965
11966         Tests: Remove unnecessary dependency.
11967         * modules/canonicalize-tests (Depends-on): Remove progname.
11968         * modules/chown-tests (Depends-on): Likewise.
11969         * modules/dirname-tests (Depends-on): Likewise.
11970         * modules/fdopendir-tests (Depends-on): Likewise.
11971         * modules/fdutimensat-tests (Depends-on): Likewise.
11972         * modules/hash-tests (Depends-on): Likewise.
11973         * modules/lchown-tests (Depends-on): Likewise.
11974         * modules/linkat-tests (Depends-on): Likewise.
11975         * modules/renameat-tests (Depends-on): Likewise.
11976         * modules/spawn-pipe-tests (Depends-on): Likewise.
11977         * modules/utimensat-tests (Depends-on): Likewise.
11978
11979 2011-06-17  Bruno Haible  <bruno@clisp.org>
11980
11981         spawn-pipe tests: Fix link error.
11982         * tests/test-spawn-pipe-child.c: Undefine fflush.
11983
11984 2011-06-17  Bruno Haible  <bruno@clisp.org>
11985
11986         Fix tests link errors.
11987         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11988         * modules/chown-tests (Makefile.am): Don't link test-chown with
11989         LIBINTL.
11990         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11991         LIBINTL.
11992         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11993         LIBINTL.
11994         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11995         LIBINTL.
11996
11997 2011-06-16  Bruno Haible  <bruno@clisp.org>
11998
11999         crypto/gc-sha1: Fix recent regression.
12000         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12001         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12002
12003         crypto/gc-md5: Fix recent regression.
12004         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12005
12006         crypto/gc-md4: Fix recent regression.
12007         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12008         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12009
12010         crypto/gc-arctwo: Fix recent regression.
12011         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12012         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12013
12014         crypto/gc-rijndael: Fix recent regression.
12015         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12016         (configure.ac): Invoke AC_LIBOBJ here.
12017         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12019
12020         crypto/gc-hmac-sha1: Fix recent regression.
12021         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12022         (configure.ac): Invoke AC_LIBOBJ here.
12023         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12025
12026         crypto/gc-hmac-md5: Fix recent regression.
12027         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12028         (configure.ac): Invoke AC_LIBOBJ here.
12029         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12031
12032         crypto/gc-des: Fix recent regression.
12033         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12034         (configure.ac): Invoke AC_LIBOBJ here.
12035         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12037
12038         crypto/gc-arcfour: Fix recent regression.
12039         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12040         (configure.ac): Invoke AC_LIBOBJ here.
12041         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12043
12044 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12045
12046         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12047         After the 2011-05-21 change, this macro requires
12048         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12049         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12050
12051 2011-06-16  Bruno Haible  <bruno@clisp.org>
12052
12053         fprintftime: Move AC_LIBOBJ invocations to module description.
12054         * m4/fprintftime.m4: Remove file.
12055         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12056         (configure.ac): Remove gl_FPRINTFTIME call.
12057         (Makefile.am): Augment lib_SOURCES.
12058         Reported by Jim Meyering.
12059
12060 2011-06-16  Bruno Haible  <bruno@clisp.org>
12061
12062         tmpfile-safer: Finish 2011-05-23 commit.
12063         * m4/stdio-safer.m4: Really remove file.
12064         Reported by Jim Meyering.
12065
12066 2011-06-16  Bruno Haible  <bruno@clisp.org>
12067
12068         syntax-check: Fix typo.
12069         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12070         printf-posix.m4.
12071         Reported by Jim Meyering.
12072
12073 2011-06-13  Jim Meyering  <meyering@redhat.com>
12074
12075         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12076         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12077
12078 2011-05-23  Bruno Haible  <bruno@clisp.org>
12079
12080         yesno: Move AC_LIBOBJ invocations to module description.
12081         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12082         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12083
12084 2011-05-23  Bruno Haible  <bruno@clisp.org>
12085
12086         xstrtol: Move AC_LIBOBJ invocations to module description.
12087         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12088         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12089
12090 2011-05-23  Bruno Haible  <bruno@clisp.org>
12091
12092         xstrtold: Move AC_LIBOBJ invocations to module description.
12093         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12094         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12095
12096 2011-05-23  Bruno Haible  <bruno@clisp.org>
12097
12098         xstrtod: Move AC_LIBOBJ invocations to module description.
12099         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12100         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12101
12102 2011-05-23  Bruno Haible  <bruno@clisp.org>
12103
12104         xnanosleep: Move AC_LIBOBJ invocations to module description.
12105         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12106         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12107
12108 2011-05-23  Bruno Haible  <bruno@clisp.org>
12109
12110         xgetcwd: Move AC_LIBOBJ invocations to module description.
12111         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12112         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12113
12114 2011-05-23  Bruno Haible  <bruno@clisp.org>
12115
12116         xalloc: Move AC_LIBOBJ invocations to module description.
12117         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12118         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12119
12120 2011-05-23  Bruno Haible  <bruno@clisp.org>
12121
12122         write-any-file: Move AC_LIBOBJ invocations to module description.
12123         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12124         invocation.
12125         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12126
12127 2011-05-23  Bruno Haible  <bruno@clisp.org>
12128
12129         utimens: Move AC_LIBOBJ invocations to module description.
12130         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12131         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12132
12133 2011-05-23  Bruno Haible  <bruno@clisp.org>
12134
12135         utimecmp: Move AC_LIBOBJ invocations to module description.
12136         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12137         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12138
12139 2011-05-23  Bruno Haible  <bruno@clisp.org>
12140
12141         userspec: Move AC_LIBOBJ invocations to module description.
12142         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12143         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12144
12145 2011-05-23  Bruno Haible  <bruno@clisp.org>
12146
12147         unlinkdir: Move AC_LIBOBJ invocations to module description.
12148         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12149         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12150
12151 2011-05-23  Bruno Haible  <bruno@clisp.org>
12152
12153         unistd-safer: Move AC_LIBOBJ invocations to module description.
12154         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12155         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12156
12157 2011-05-23  Bruno Haible  <bruno@clisp.org>
12158
12159         tempname: Move AC_LIBOBJ invocations to module description.
12160         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12161         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12162
12163 2011-05-23  Bruno Haible  <bruno@clisp.org>
12164
12165         strftime: Move AC_LIBOBJ invocations to module description.
12166         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12167         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12168
12169 2011-05-23  Bruno Haible  <bruno@clisp.org>
12170
12171         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12172         * m4/stdlib-safer.m4: Remove file.
12173         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12174         (configure.ac): Remove gl_STDLIB_SAFER call.
12175         (Makefile.am): Augment lib_SOURCES.
12176
12177 2011-05-23  Bruno Haible  <bruno@clisp.org>
12178
12179         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12180         * m4/stdio-safer.m4: Remove file.
12181         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12182         (configure.ac): Remove gl_TMPFILE_SAFER call.
12183         (Makefile.am): Augment lib_SOURCES.
12184
12185 2011-05-23  Bruno Haible  <bruno@clisp.org>
12186
12187         popen-safer: Move AC_LIBOBJ invocations to module description.
12188         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12189         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12190         (configure.ac): Remove gl_POPEN_SAFER call.
12191         (Makefile.am): Augment lib_SOURCES.
12192
12193 2011-05-23  Bruno Haible  <bruno@clisp.org>
12194
12195         freopen-safer: Move AC_LIBOBJ invocations to module description.
12196         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12197         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12198         (configure.ac): Remove gl_FREOPEN_SAFER call.
12199         (Makefile.am): Augment lib_SOURCES.
12200
12201 2011-05-23  Bruno Haible  <bruno@clisp.org>
12202
12203         fopen-safer: Move AC_LIBOBJ invocations to module description.
12204         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12205         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12206         (configure.ac): Remove gl_FOPEN_SAFER call.
12207         (Makefile.am): Augment lib_SOURCES.
12208
12209 2011-05-23  Bruno Haible  <bruno@clisp.org>
12210
12211         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12212         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12213         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12214
12215 2011-05-23  Bruno Haible  <bruno@clisp.org>
12216
12217         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12218         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12219         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12220
12221 2011-05-23  Bruno Haible  <bruno@clisp.org>
12222
12223         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12224         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12225         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12226
12227 2011-05-23  Bruno Haible  <bruno@clisp.org>
12228
12229         settime: Move AC_LIBOBJ invocations to module description.
12230         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12231         * modules/settime (Makefile.am): Augment lib_SOURCES.
12232
12233 2011-05-23  Bruno Haible  <bruno@clisp.org>
12234
12235         savedir: Move AC_LIBOBJ invocations to module description.
12236         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12237         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12238
12239 2011-05-23  Bruno Haible  <bruno@clisp.org>
12240
12241         save-cwd: Move AC_LIBOBJ invocations to module description.
12242         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12243         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12244
12245 2011-05-23  Bruno Haible  <bruno@clisp.org>
12246
12247         same: Move AC_LIBOBJ invocations to module description.
12248         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12249         * modules/same (Makefile.am): Augment lib_SOURCES.
12250
12251 2011-05-23  Bruno Haible  <bruno@clisp.org>
12252
12253         safe-write: Move AC_LIBOBJ invocations to module description.
12254         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12255         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12256         instead of gl_SAFE_WRITE.
12257         (Makefile.am): Augment lib_SOURCES.
12258
12259 2011-05-23  Bruno Haible  <bruno@clisp.org>
12260
12261         safe-read: Move AC_LIBOBJ invocations to module description.
12262         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12263         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12264         of gl_SAFE_READ.
12265         (Makefile.am): Augment lib_SOURCES.
12266
12267 2011-05-23  Bruno Haible  <bruno@clisp.org>
12268
12269         safe-alloc: Move AC_LIBOBJ invocations to module description.
12270         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12271         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12272
12273 2011-05-23  Bruno Haible  <bruno@clisp.org>
12274
12275         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12276         * m4/rijndael.m4: Remove file.
12277         * modules/crypto/rijndael (Files): Remove it.
12278         (configure.ac): Remove gl_RIJNDAEL call.
12279         (Makefile.am): Augment lib_SOURCES.
12280
12281 2011-05-23  Bruno Haible  <bruno@clisp.org>
12282
12283         readtokens: Move AC_LIBOBJ invocations to module description.
12284         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12285         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         read-file: Move AC_LIBOBJ invocations to module description.
12290         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12291         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12292         of gl_FUNC_READ_FILE.
12293         (Makefile.am): Augment lib_SOURCES.
12294
12295 2011-05-23  Bruno Haible  <bruno@clisp.org>
12296
12297         quotearg: Move AC_LIBOBJ invocations to module description.
12298         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12299         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12300
12301 2011-05-23  Bruno Haible  <bruno@clisp.org>
12302
12303         quote: Move AC_LIBOBJ invocations to module description.
12304         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12305         * modules/quote (Makefile.am): Augment lib_SOURCES.
12306
12307 2011-05-23  Bruno Haible  <bruno@clisp.org>
12308
12309         posixver: Move AC_LIBOBJ invocations to module description.
12310         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12311         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12312
12313 2011-05-23  Bruno Haible  <bruno@clisp.org>
12314
12315         posixtm: Move AC_LIBOBJ invocations to module description.
12316         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12317         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12318
12319 2011-05-23  Bruno Haible  <bruno@clisp.org>
12320
12321         physmem: Move AC_LIBOBJ invocations to module description.
12322         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12323         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12324
12325 2011-05-23  Bruno Haible  <bruno@clisp.org>
12326
12327         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12328         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12329         invocation.
12330         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12331
12332 2011-05-23  Bruno Haible  <bruno@clisp.org>
12333
12334         mpsort: Move AC_LIBOBJ invocations to module description.
12335         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12336         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12337
12338 2011-05-23  Bruno Haible  <bruno@clisp.org>
12339
12340         modechange: Move AC_LIBOBJ invocations to module description.
12341         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12342         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12343
12344 2011-05-23  Bruno Haible  <bruno@clisp.org>
12345
12346         mkdir-p: Move AC_LIBOBJ invocations to module description.
12347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12348         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12349
12350 2011-05-23  Bruno Haible  <bruno@clisp.org>
12351
12352         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12353         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12354         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12355
12356 2011-05-23  Bruno Haible  <bruno@clisp.org>
12357
12358         mgetgroups: Move AC_LIBOBJ invocations to module description.
12359         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12360         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         memxor: Move AC_LIBOBJ invocations to module description.
12365         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12366         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12367
12368 2011-05-23  Bruno Haible  <bruno@clisp.org>
12369
12370         memcoll: Move AC_LIBOBJ invocations to module description.
12371         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12372         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12373
12374 2011-05-23  Bruno Haible  <bruno@clisp.org>
12375
12376         memcasecmp: Move AC_LIBOBJ invocations to module description.
12377         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12378         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12379
12380 2011-05-23  Bruno Haible  <bruno@clisp.org>
12381
12382         crypto/md5: Move AC_LIBOBJ invocations to module description.
12383         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12384         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12385
12386 2011-05-23  Bruno Haible  <bruno@clisp.org>
12387
12388         crypto/md4: Move AC_LIBOBJ invocations to module description.
12389         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12390         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12391
12392 2011-05-23  Bruno Haible  <bruno@clisp.org>
12393
12394         crypto/md2: Move AC_LIBOBJ invocations to module description.
12395         * m4/md2.m4: Remove file.
12396         * modules/crypto/md2 (Files): Remove it.
12397         (configure.ac): Remove gl_MD2 call.
12398         (Makefile.am): Augment lib_SOURCES.
12399
12400 2011-05-23  Bruno Haible  <bruno@clisp.org>
12401
12402         long-options: Move AC_LIBOBJ invocations to module description.
12403         * m4/long-options.m4: Remove file.
12404         * modules/long-options (Files): Remove it.
12405         (configure.ac): Remove gl_LONG_OPTIONS call.
12406         (Makefile.am): Augment lib_SOURCES.
12407
12408 2011-05-23  Bruno Haible  <bruno@clisp.org>
12409
12410         i-ring: Move AC_LIBOBJ invocations to module description.
12411         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12412         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12413
12414 2011-05-23  Bruno Haible  <bruno@clisp.org>
12415
12416         idcache: Move AC_LIBOBJ invocations to module description.
12417         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12418         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12419
12420 2011-05-23  Bruno Haible  <bruno@clisp.org>
12421
12422         human: Move AC_LIBOBJ invocations to module description.
12423         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12424         * modules/human (Makefile.am): Augment lib_SOURCES.
12425
12426 2011-05-23  Bruno Haible  <bruno@clisp.org>
12427
12428         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12429         * m4/hmac-sha1.m4: Remove file.
12430         * modules/crypto/hmac-sha1 (Files): Remove it.
12431         (configure.ac): Remove gl_HMAC_SHA1 call.
12432         (Makefile.am): Augment lib_SOURCES.
12433
12434 2011-05-23  Bruno Haible  <bruno@clisp.org>
12435
12436         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12437         * m4/hmac-md5.m4: Remove file.
12438         * modules/crypto/hmac-md5 (Files): Remove it.
12439         (configure.ac): Remove gl_HMAC_MD5 call.
12440         (Makefile.am): Augment lib_SOURCES.
12441
12442 2011-05-23  Bruno Haible  <bruno@clisp.org>
12443
12444         hash: Move AC_LIBOBJ invocations to module description.
12445         * m4/hash.m4: Remove file.
12446         * modules/hash (Files): Remove it.
12447         (configure.ac): Remove gl_HASH call.
12448         (Makefile.am): Augment lib_SOURCES.
12449
12450 2011-05-23  Bruno Haible  <bruno@clisp.org>
12451
12452         hard-locale: Move AC_LIBOBJ invocations to module description.
12453         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12454         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12455
12456 2011-05-23  Bruno Haible  <bruno@clisp.org>
12457
12458         getugroups: Move AC_LIBOBJ invocations to module description.
12459         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12460         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12461
12462 2011-05-23  Bruno Haible  <bruno@clisp.org>
12463
12464         gettime: Move AC_LIBOBJ invocations to module description.
12465         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12466         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12467
12468 2011-05-23  Bruno Haible  <bruno@clisp.org>
12469
12470         getndelim2: Move AC_LIBOBJ invocations to module description.
12471         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12472         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12473
12474 2011-05-23  Bruno Haible  <bruno@clisp.org>
12475
12476         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12477         * m4/gc-pbkdf2-sha1.m4: Remove file.
12478         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12479         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12480         (Makefile.am): Augment lib_SOURCES.
12481
12482 2011-05-23  Bruno Haible  <bruno@clisp.org>
12483
12484         fts: Move AC_LIBOBJ invocations to module description.
12485         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12486         * modules/fts (configure.ac): ... to here.
12487
12488 2011-05-23  Bruno Haible  <bruno@clisp.org>
12489
12490         file-type: Move AC_LIBOBJ invocations to module description.
12491         * m4/file-type.m4: Remove file.
12492         * modules/file-type (Files): Remove it.
12493         (configure.ac): Remove gl_FILE_TYPE call.
12494         (Makefile.am): Augment lib_SOURCES.
12495
12496 2011-05-23  Bruno Haible  <bruno@clisp.org>
12497
12498         filenamecat*: Respect rules for use of AC_LIBOBJ.
12499         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12500         Remove AC_LIBOBJ invocation.
12501         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12502         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12503
12504 2011-05-23  Bruno Haible  <bruno@clisp.org>
12505
12506         filemode: Move AC_LIBOBJ invocations to module description.
12507         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12508         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12509
12510 2011-05-23  Bruno Haible  <bruno@clisp.org>
12511
12512         openat-safer: Move AC_LIBOBJ invocations to module description.
12513         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12514         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12515
12516 2011-05-23  Bruno Haible  <bruno@clisp.org>
12517
12518         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12520         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12521
12522 2011-05-23  Bruno Haible  <bruno@clisp.org>
12523
12524         exclude: Move AC_LIBOBJ invocations to module description.
12525         * m4/exclude.m4: Remove file.
12526         * modules/exclude (Files): Remove it.
12527         (configure.ac): Remove gl_EXCLUDE call.
12528         (Makefile.am): Augment lib_SOURCES.
12529
12530 2011-05-23  Bruno Haible  <bruno@clisp.org>
12531
12532         dirname*: Respect rules for use of AC_LIBOBJ.
12533         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12534         invocations.
12535         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12536         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12537
12538 2011-05-23  Bruno Haible  <bruno@clisp.org>
12539
12540         dirent-safer: Move AC_LIBOBJ invocations to module description.
12541         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12542         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12543
12544 2011-05-23  Bruno Haible  <bruno@clisp.org>
12545
12546         crypto/des: Move AC_LIBOBJ invocations to module description.
12547         * m4/des.m4: Remove file.
12548         * modules/crypto/des (Files): Remove it.
12549         (configure.ac): Remove gl_DES call.
12550         (Makefile.am): Augment lib_SOURCES.
12551
12552 2011-05-23  Bruno Haible  <bruno@clisp.org>
12553
12554         cycle-check: Move AC_LIBOBJ invocations to module description.
12555         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12556         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12557
12558 2011-05-23  Bruno Haible  <bruno@clisp.org>
12559
12560         c-strtold: Move AC_LIBOBJ invocations to module description.
12561         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12562         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12563
12564 2011-05-23  Bruno Haible  <bruno@clisp.org>
12565
12566         c-strtod: Move AC_LIBOBJ invocations to module description.
12567         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12568         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12569
12570 2011-05-23  Bruno Haible  <bruno@clisp.org>
12571
12572         crc: Move AC_LIBOBJ invocations to module description.
12573         * m4/crc.m4: Remove file.
12574         * modules/crc (Files): Remove it.
12575         (configure.ac): Remove gl_CRC call.
12576         (Makefile.am): Augment lib_SOURCES.
12577
12578 2011-05-23  Bruno Haible  <bruno@clisp.org>
12579
12580         close-stream: Move AC_LIBOBJ invocations to module description.
12581         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12582         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12583
12584 2011-05-23  Bruno Haible  <bruno@clisp.org>
12585
12586         closeout: Move AC_LIBOBJ invocations to module description.
12587         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12588         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12589
12590 2011-05-23  Bruno Haible  <bruno@clisp.org>
12591
12592         closein: Move AC_LIBOBJ invocations to module description.
12593         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12594         * modules/closein (Makefile.am): Augment lib_SOURCES.
12595
12596 2011-05-23  Bruno Haible  <bruno@clisp.org>
12597
12598         cloexec: Move AC_LIBOBJ invocations to module description.
12599         * m4/cloexec.m4: Remove file.
12600         * modules/cloexec (Files): Remove it.
12601         (configure.ac): Remove gl_CLOEXEC call.
12602         (Makefile.am): Augment lib_SOURCES.
12603
12604 2011-05-23  Bruno Haible  <bruno@clisp.org>
12605
12606         check-version: Move AC_LIBOBJ invocations to module description.
12607         * m4/check-version.m4: Remove file.
12608         * modules/check-version (Files): Remove it.
12609         (configure.ac): Remove gl_CHECK_VERSION call.
12610         (Makefile.am): Augment lib_SOURCES.
12611
12612 2011-05-23  Bruno Haible  <bruno@clisp.org>
12613
12614         chdir-safer: Move AC_LIBOBJ invocations to module description.
12615         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12616         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12617
12618 2011-05-23  Bruno Haible  <bruno@clisp.org>
12619
12620         canonicalize: Move AC_LIBOBJ invocations to module description.
12621         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12622         AC_LIBOBJ invocation.
12623         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12624
12625 2011-05-23  Bruno Haible  <bruno@clisp.org>
12626
12627         canon-host: Move AC_LIBOBJ invocations to module description.
12628         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12629         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12630         instead of gl_CANON_HOST.
12631         (Makefile.am): Augment lib_SOURCES.
12632
12633 2011-05-23  Bruno Haible  <bruno@clisp.org>
12634
12635         backupfile: Move AC_LIBOBJ invocations to module description.
12636         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12637         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12638
12639 2011-05-23  Bruno Haible  <bruno@clisp.org>
12640
12641         argmatch: Move AC_LIBOBJ invocations to module description.
12642         * m4/argmatch.m4: Remove file.
12643         * modules/argmatch (Files): Remove it.
12644         (configure.ac): Remove gl_ARGMATCH call.
12645         (Makefile.am): Augment lib_SOURCES.
12646
12647 2011-05-23  Bruno Haible  <bruno@clisp.org>
12648
12649         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12650         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12651         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12652
12653 2011-05-23  Bruno Haible  <bruno@clisp.org>
12654
12655         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12656         * m4/arcfour.m4: Remove file.
12657         * modules/crypto/arcfour (Files): Remove it.
12658         (configure.ac): Remove gl_ARCFOUR call.
12659         (Makefile.am): Augment lib_SOURCES.
12660
12661 2011-05-22  Bruno Haible  <bruno@clisp.org>
12662
12663         write: Move AC_LIBOBJ invocations to module description.
12664         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12665         * modules/write (configure.ac): ... to here.
12666
12667 2011-05-22  Bruno Haible  <bruno@clisp.org>
12668
12669         wmemset: Move AC_LIBOBJ invocations to module description.
12670         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12671         here...
12672         * modules/wmemset (configure.ac): ... to here.
12673
12674 2011-05-22  Bruno Haible  <bruno@clisp.org>
12675
12676         wmemmove: Move AC_LIBOBJ invocations to module description.
12677         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12678         here...
12679         * modules/wmemmove (configure.ac): ... to here.
12680
12681 2011-05-22  Bruno Haible  <bruno@clisp.org>
12682
12683         wmemcpy: Move AC_LIBOBJ invocations to module description.
12684         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12685         here...
12686         * modules/wmemcpy (configure.ac): ... to here.
12687
12688 2011-05-22  Bruno Haible  <bruno@clisp.org>
12689
12690         wmemcmp: Move AC_LIBOBJ invocations to module description.
12691         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12692         here...
12693         * modules/wmemcmp (configure.ac): ... to here.
12694
12695 2011-05-22  Bruno Haible  <bruno@clisp.org>
12696
12697         wmemchr: Move AC_LIBOBJ invocations to module description.
12698         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12699         here...
12700         * modules/wmemchr (configure.ac): ... to here.
12701
12702 2011-05-22  Bruno Haible  <bruno@clisp.org>
12703
12704         wcswidth: Move AC_LIBOBJ invocations to module description.
12705         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12706         here...
12707         * modules/wcswidth (configure.ac): ... to here.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         wcwidth: Respect rules for use of AC_LIBOBJ.
12712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12713         invocation from here...
12714         * modules/wcwidth (configure.ac): ... to here.
12715         (Depends-on): Update conditions.
12716
12717 2011-05-22  Bruno Haible  <bruno@clisp.org>
12718
12719         wctype: Move AC_LIBOBJ invocations to module description.
12720         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12721         invocation from here...
12722         * modules/wctype (configure.ac): ... to here.
12723         (Depends-on): Update conditions.
12724
12725 2011-05-22  Bruno Haible  <bruno@clisp.org>
12726
12727         wctrans: Move AC_LIBOBJ invocations to module description.
12728         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12729         invocation from here...
12730         * modules/wctrans (configure.ac): ... to here.
12731
12732 2011-05-22  Bruno Haible  <bruno@clisp.org>
12733
12734         wctomb: Move AC_LIBOBJ invocations to module description.
12735         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12736         invocations from here...
12737         * modules/wctomb (configure.ac): ... to here.
12738
12739 2011-05-22  Bruno Haible  <bruno@clisp.org>
12740
12741         wctob: Move AC_LIBOBJ invocations to module description.
12742         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12743         gl_PREREQ_WCTOB invocations from here...
12744         * modules/wctob (configure.ac): ... to here.
12745         (Depends-on): Update conditions.
12746
12747 2011-05-22  Bruno Haible  <bruno@clisp.org>
12748
12749         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12750         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12751         here...
12752         * modules/wcsxfrm (configure.ac): ... to here.
12753
12754 2011-05-22  Bruno Haible  <bruno@clisp.org>
12755
12756         wcstok: Move AC_LIBOBJ invocations to module description.
12757         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12758         * modules/wcstok (configure.ac): ... to here.
12759
12760 2011-05-22  Bruno Haible  <bruno@clisp.org>
12761
12762         wcsstr: Move AC_LIBOBJ invocations to module description.
12763         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12764         * modules/wcsstr (configure.ac): ... to here.
12765
12766 2011-05-22  Bruno Haible  <bruno@clisp.org>
12767
12768         wcsspn: Move AC_LIBOBJ invocations to module description.
12769         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12770         * modules/wcsspn (configure.ac): ... to here.
12771
12772 2011-05-22  Bruno Haible  <bruno@clisp.org>
12773
12774         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12775         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12776         gl_PREREQ_WCSRTOMBS invocations from here...
12777         * modules/wcsrtombs (configure.ac): ... to here.
12778
12779 2011-05-22  Bruno Haible  <bruno@clisp.org>
12780
12781         wcsrchr: Move AC_LIBOBJ invocations to module description.
12782         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12783         here...
12784         * modules/wcsrchr (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         wcspbrk: Move AC_LIBOBJ invocations to module description.
12789         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12790         here...
12791         * modules/wcspbrk (configure.ac): ... to here.
12792
12793 2011-05-22  Bruno Haible  <bruno@clisp.org>
12794
12795         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12796         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12797         gl_PREREQ_WCSNRTOMBS invocations from here...
12798         * modules/wcsnrtombs (configure.ac): ... to here.
12799
12800 2011-05-22  Bruno Haible  <bruno@clisp.org>
12801
12802         wcsnlen: Move AC_LIBOBJ invocations to module description.
12803         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12804         here...
12805         * modules/wcsnlen (configure.ac): ... to here.
12806
12807 2011-05-22  Bruno Haible  <bruno@clisp.org>
12808
12809         wcsncpy: Move AC_LIBOBJ invocations to module description.
12810         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12811         here...
12812         * modules/wcsncpy (configure.ac): ... to here.
12813
12814 2011-05-22  Bruno Haible  <bruno@clisp.org>
12815
12816         wcsncmp: Move AC_LIBOBJ invocations to module description.
12817         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12818         here...
12819         * modules/wcsncmp (configure.ac): ... to here.
12820
12821 2011-05-22  Bruno Haible  <bruno@clisp.org>
12822
12823         wcsncat: Move AC_LIBOBJ invocations to module description.
12824         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12825         here...
12826         * modules/wcsncat (configure.ac): ... to here.
12827
12828 2011-05-22  Bruno Haible  <bruno@clisp.org>
12829
12830         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12831         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12832         from here...
12833         * modules/wcsncasecmp (configure.ac): ... to here.
12834
12835 2011-05-22  Bruno Haible  <bruno@clisp.org>
12836
12837         wcslen: Move AC_LIBOBJ invocations to module description.
12838         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12839         * modules/wcslen (configure.ac): ... to here.
12840
12841 2011-05-22  Bruno Haible  <bruno@clisp.org>
12842
12843         wcsdup: Move AC_LIBOBJ invocations to module description.
12844         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12845         * modules/wcsdup (configure.ac): ... to here.
12846
12847 2011-05-22  Bruno Haible  <bruno@clisp.org>
12848
12849         wcscspn: Move AC_LIBOBJ invocations to module description.
12850         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12851         here...
12852         * modules/wcscspn (configure.ac): ... to here.
12853
12854 2011-05-22  Bruno Haible  <bruno@clisp.org>
12855
12856         wcscpy: Move AC_LIBOBJ invocations to module description.
12857         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12858         * modules/wcscpy (configure.ac): ... to here.
12859
12860 2011-05-22  Bruno Haible  <bruno@clisp.org>
12861
12862         wcscoll: Move AC_LIBOBJ invocations to module description.
12863         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12864         here...
12865         * modules/wcscoll (configure.ac): ... to here.
12866
12867 2011-05-22  Bruno Haible  <bruno@clisp.org>
12868
12869         wcscmp: Move AC_LIBOBJ invocations to module description.
12870         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12871         * modules/wcscmp (configure.ac): ... to here.
12872
12873 2011-05-22  Bruno Haible  <bruno@clisp.org>
12874
12875         wcschr: Move AC_LIBOBJ invocations to module description.
12876         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12877         * modules/wcschr (configure.ac): ... to here.
12878
12879 2011-05-22  Bruno Haible  <bruno@clisp.org>
12880
12881         wcscat: Move AC_LIBOBJ invocations to module description.
12882         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12883         * modules/wcscat (configure.ac): ... to here.
12884
12885 2011-05-22  Bruno Haible  <bruno@clisp.org>
12886
12887         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12888         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12889         here...
12890         * modules/wcscasecmp (configure.ac): ... to here.
12891
12892 2011-05-22  Bruno Haible  <bruno@clisp.org>
12893
12894         wcrtomb: Move AC_LIBOBJ invocations to module description.
12895         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12896         invocations from here...
12897         * modules/wcrtomb (configure.ac): ... to here.
12898
12899 2011-05-22  Bruno Haible  <bruno@clisp.org>
12900
12901         wcpncpy: Move AC_LIBOBJ invocations to module description.
12902         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12903         here...
12904         * modules/wcpncpy (configure.ac): ... to here.
12905
12906 2011-05-22  Bruno Haible  <bruno@clisp.org>
12907
12908         wcpcpy: Move AC_LIBOBJ invocations to module description.
12909         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12910         * modules/wcpcpy (configure.ac): ... to here.
12911
12912 2011-05-22  Bruno Haible  <bruno@clisp.org>
12913
12914         waitpid: Move AC_LIBOBJ invocations to module description.
12915         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12916         invocation from here...
12917         * modules/waitpid (configure.ac): ... to here.
12918
12919 2011-05-22  Bruno Haible  <bruno@clisp.org>
12920
12921         utimensat: Move AC_LIBOBJ invocations to module description.
12922         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12923         here...
12924         * modules/utimensat (configure.ac): ... to here.
12925
12926 2011-05-22  Bruno Haible  <bruno@clisp.org>
12927
12928         usleep: Move AC_LIBOBJ invocations to module description.
12929         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12930         here...
12931         * modules/usleep (configure.ac): ... to here.
12932
12933 2011-05-22  Bruno Haible  <bruno@clisp.org>
12934
12935         unlockpt: Move AC_LIBOBJ invocations to module description.
12936         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12937         gl_PREREQ_UNLOCKPT invocations from here...
12938         * modules/unlockpt (configure.ac): ... to here.
12939
12940 2011-05-22  Bruno Haible  <bruno@clisp.org>
12941
12942         unlink: Respect rules for use of AC_LIBOBJ.
12943         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12944         * modules/unlink (configure.ac): ... to here.
12945
12946 2011-05-22  Bruno Haible  <bruno@clisp.org>
12947
12948         uname: Move AC_LIBOBJ invocations to module description.
12949         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12951         here...
12952         * modules/uname (configure.ac): ... to here.
12953
12954 2011-05-22  Bruno Haible  <bruno@clisp.org>
12955
12956         ttyname_r: Move AC_LIBOBJ invocations to module description.
12957         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12958         gl_PREREQ_TTYNAME_R invocations from here...
12959         * modules/ttyname_r (configure.ac): ... to here.
12960
12961 2011-05-22  Bruno Haible  <bruno@clisp.org>
12962
12963         tsearch: Move AC_LIBOBJ invocations to module description.
12964         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12965         invocations from here...
12966         * modules/tsearch (configure.ac): ... to here.
12967
12968 2011-05-22  Bruno Haible  <bruno@clisp.org>
12969
12970         towctrans: Move AC_LIBOBJ invocations to module description.
12971         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12972         AC_LIBOBJ invocation from here...
12973         * modules/towctrans (configure.ac): ... to here.
12974
12975 2011-05-22  Bruno Haible  <bruno@clisp.org>
12976
12977         tmpfile: Move AC_LIBOBJ invocations to module description.
12978         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12979         invocations from here...
12980         * modules/tmpfile (configure.ac): ... to here.
12981
12982 2011-05-22  Bruno Haible  <bruno@clisp.org>
12983
12984         times: Move AC_LIBOBJ invocations to module description.
12985         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12986         * modules/times (configure.ac): ... to here.
12987
12988 2011-05-22  Bruno Haible  <bruno@clisp.org>
12989
12990         time_r: Move AC_LIBOBJ invocations to module description.
12991         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12992         invocations from here...
12993         * modules/time_r (configure.ac): ... to here.
12994
12995 2011-05-22  Bruno Haible  <bruno@clisp.org>
12996
12997         timegm: Move AC_LIBOBJ invocations to module description.
12998         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12999         invocations from here...
13000         * modules/timegm (configure.ac): ... to here.
13001
13002 2011-05-22  Bruno Haible  <bruno@clisp.org>
13003
13004         tcgetsid: Move AC_LIBOBJ invocations to module description.
13005         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13006         and gl_PREREQ_TCGETSID invocations from here...
13007         * modules/tcgetsid (configure.ac): ... to here.
13008         (Depends-on): Update conditions.
13009
13010 2011-05-22  Bruno Haible  <bruno@clisp.org>
13011
13012         symlinkat: Move AC_LIBOBJ invocations to module description.
13013         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13014         here...
13015         * modules/symlinkat (configure.ac): ... to here.
13016
13017 2011-05-22  Bruno Haible  <bruno@clisp.org>
13018
13019         symlink: Move AC_LIBOBJ invocations to module description.
13020         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13021         here...
13022         * modules/symlink (configure.ac): ... to here.
13023
13024 2011-05-22  Bruno Haible  <bruno@clisp.org>
13025
13026         strverscmp: Move AC_LIBOBJ invocations to module description.
13027         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13029         from here...
13030         * modules/strverscmp (configure.ac): ... to here.
13031
13032 2011-05-22  Bruno Haible  <bruno@clisp.org>
13033
13034         strtok_r: Move AC_LIBOBJ invocations to module description.
13035         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13036         and gl_PREREQ_STRTOK_R invocations from here...
13037         * modules/strtok_r (configure.ac): ... to here.
13038         (Depends-on): Update conditions.
13039
13040 2011-05-22  Bruno Haible  <bruno@clisp.org>
13041
13042         strtoumax: Move AC_LIBOBJ invocations to module description.
13043         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13045         from here...
13046         * modules/strtoumax (configure.ac): ... to here.
13047
13048 2011-05-22  Bruno Haible  <bruno@clisp.org>
13049
13050         strtoimax: Move AC_LIBOBJ invocations to module description.
13051         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13053         from here...
13054         * modules/strtoimax (configure.ac): ... to here.
13055
13056 2011-05-22  Bruno Haible  <bruno@clisp.org>
13057
13058         strtoull: Move AC_LIBOBJ invocations to module description.
13059         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13061         from here...
13062         * modules/strtoull (configure.ac): ... to here.
13063
13064 2011-05-22  Bruno Haible  <bruno@clisp.org>
13065
13066         strtoll: Move AC_LIBOBJ invocations to module description.
13067         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13069         here...
13070         * modules/strtoll (configure.ac): ... to here.
13071
13072 2011-05-22  Bruno Haible  <bruno@clisp.org>
13073
13074         strtoul: Move AC_LIBOBJ invocations to module description.
13075         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13076         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13077         * modules/strtoul (configure.ac): ... to here.
13078
13079 2011-05-22  Bruno Haible  <bruno@clisp.org>
13080
13081         strtol: Move AC_LIBOBJ invocations to module description.
13082         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13083         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13084         * modules/strtol (configure.ac): ... to here.
13085
13086 2011-05-22  Bruno Haible  <bruno@clisp.org>
13087
13088         strtod: Move AC_LIBOBJ invocations to module description.
13089         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13090         invocations from here...
13091         * modules/strtod (configure.ac): ... to here.
13092
13093 2011-05-22  Bruno Haible  <bruno@clisp.org>
13094
13095         strstr*: Move AC_LIBOBJ invocations to module description.
13096         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13097         invocations from here...
13098         * modules/strstr-simple (configure.ac): ... to here.
13099         * modules/strstr (configure.ac): ... and here.
13100
13101 2011-05-22  Bruno Haible  <bruno@clisp.org>
13102
13103         strsignal: Move AC_LIBOBJ invocations to module description.
13104         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13105         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13106         * modules/strsignal (configure.ac): ... to here.
13107         (Depends-on): Update conditions.
13108
13109 2011-05-22  Bruno Haible  <bruno@clisp.org>
13110
13111         strsep: Move AC_LIBOBJ invocations to module description.
13112         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13113         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13114         here...
13115         * modules/strsep (configure.ac): ... to here.
13116
13117 2011-05-22  Bruno Haible  <bruno@clisp.org>
13118
13119         strptime: Move AC_LIBOBJ invocations to module description.
13120         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13121         gl_PREREQ_STRPTIME invocations from here...
13122         * modules/strptime (configure.ac): ... to here.
13123
13124 2011-05-22  Bruno Haible  <bruno@clisp.org>
13125
13126         strpbrk: Move AC_LIBOBJ invocations to module description.
13127         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13129         here...
13130         * modules/strpbrk (configure.ac): ... to here.
13131
13132 2011-05-22  Bruno Haible  <bruno@clisp.org>
13133
13134         strnlen: Move AC_LIBOBJ invocations to module description.
13135         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13136         invocations from here...
13137         * modules/strnlen (configure.ac): ... to here.
13138
13139 2011-05-22  Bruno Haible  <bruno@clisp.org>
13140
13141         strndup: Move AC_LIBOBJ invocations to module description.
13142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13143         invocations from here...
13144         * modules/strndup (configure.ac): ... to here.
13145         (Depends-on): Update conditions.
13146
13147 2011-05-22  Bruno Haible  <bruno@clisp.org>
13148
13149         strncat: Move AC_LIBOBJ invocations to module description.
13150         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13151         invocations from here...
13152         * modules/strncat (configure.ac): ... to here.
13153
13154 2011-05-22  Bruno Haible  <bruno@clisp.org>
13155
13156         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13157         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13158         invocations from here...
13159         * modules/strdup (configure.ac): ... to here.
13160         * modules/strdup-posix (configure.ac): ... and here.
13161
13162 2011-05-22  Bruno Haible  <bruno@clisp.org>
13163
13164         strcspn: Move AC_LIBOBJ invocations to module description.
13165         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13167         here...
13168         * modules/strcspn (configure.ac): ... to here.
13169
13170 2011-05-22  Bruno Haible  <bruno@clisp.org>
13171
13172         strchrnul: Move AC_LIBOBJ invocations to module description.
13173         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13174         gl_PREREQ_STRCHRNUL invocations from here...
13175         * modules/strchrnul (configure.ac): ... to here.
13176
13177 2011-05-22  Bruno Haible  <bruno@clisp.org>
13178
13179         strcasestr*: Move AC_LIBOBJ invocations to module description.
13180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13181         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13182         * modules/strcasestr-simple (configure.ac): ... to here.
13183         * modules/strcasestr (configure.ac): ... and here.
13184
13185 2011-05-22  Bruno Haible  <bruno@clisp.org>
13186
13187         strcase: Move AC_LIBOBJ invocations to module description.
13188         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13189         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13190         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13191         gl_PREREQ_STRNCASECMP invocations from here...
13192         * modules/strcase (configure.ac): ... to here.
13193
13194 2011-05-22  Bruno Haible  <bruno@clisp.org>
13195
13196         stpncpy: Move AC_LIBOBJ invocations to module description.
13197         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13198         here...
13199         * modules/stpncpy (configure.ac): ... to here.
13200
13201 2011-05-22  Bruno Haible  <bruno@clisp.org>
13202
13203         stpcpy: Move AC_LIBOBJ invocations to module description.
13204         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13206         here...
13207         * modules/stpcpy (configure.ac): ... to here.
13208
13209 2011-05-21  Bruno Haible  <bruno@clisp.org>
13210
13211         stat: Move AC_LIBOBJ invocations to module description.
13212         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13213         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13214         here...
13215         * modules/stat (configure.ac): ... to here.
13216
13217 2011-05-21  Bruno Haible  <bruno@clisp.org>
13218
13219         sleep: Move AC_LIBOBJ invocations to module description.
13220         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13221         * modules/sleep (configure.ac): ... to here.
13222
13223 2011-05-21  Bruno Haible  <bruno@clisp.org>
13224
13225         signbit: Move AC_LIBOBJ invocations to module description.
13226         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13227         * modules/signbit (configure.ac): ... to here.
13228
13229 2011-05-21  Bruno Haible  <bruno@clisp.org>
13230
13231         sigprocmask: Move AC_LIBOBJ invocations to module description.
13232         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13233         gl_PREREQ_SIGPROMASK invocations from here...
13234         * modules/sigprocmask (configure.ac): ... to here.
13235
13236 2011-05-21  Bruno Haible  <bruno@clisp.org>
13237
13238         sigaction: Move AC_LIBOBJ invocations to module description.
13239         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13240         gl_PREREQ_SIGACTION invocations from here...
13241         * modules/sigaction (configure.ac): ... to here.
13242
13243 2011-05-21  Bruno Haible  <bruno@clisp.org>
13244
13245         sig2str: Move AC_LIBOBJ invocations to module description.
13246         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13247         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13248         here...
13249         * modules/sig2str (configure.ac): ... to here.
13250
13251 2011-05-21  Bruno Haible  <bruno@clisp.org>
13252
13253         setlocale: Move AC_LIBOBJ invocations to module description.
13254         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13255         gl_PREREQ_SETLOCALE invocations from here...
13256         * modules/setlocale (configure.ac): ... to here.
13257
13258 2011-05-21  Bruno Haible  <bruno@clisp.org>
13259
13260         unsetenv: Move AC_LIBOBJ invocations to module description.
13261         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13262         and gl_PREREQ_UNSETENV invocations from here...
13263         * modules/unsetenv (configure.ac): ... to here.
13264         (Depends-on): Update.
13265
13266 2011-05-21  Bruno Haible  <bruno@clisp.org>
13267
13268         setenv: Move AC_LIBOBJ invocations to module description.
13269         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13270         here...
13271         * modules/setenv (configure.ac): ... to here.
13272
13273 2011-05-21  Bruno Haible  <bruno@clisp.org>
13274
13275         selinux-h: Move AC_LIBOBJ invocations to module description.
13276         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13277         AC_LIBOBJ invocation from here...
13278         * modules/selinux-h (configure.ac): ... to here.
13279
13280 2011-05-21  Bruno Haible  <bruno@clisp.org>
13281
13282         select: Respect rules for use of AC_LIBOBJ.
13283         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13284         here...
13285         * modules/select (configure.ac): ... to here.
13286
13287 2011-05-21  Bruno Haible  <bruno@clisp.org>
13288
13289         scandir: Move AC_LIBOBJ invocations to module description.
13290         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13291         invocations from here...
13292         * modules/scandir (configure.ac): ... to here.
13293
13294 2011-05-21  Bruno Haible  <bruno@clisp.org>
13295
13296         rpmatch: Move AC_LIBOBJ invocations to module description.
13297         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13298         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13299         here...
13300         * modules/rpmatch (configure.ac): ... to here.
13301
13302 2011-05-21  Bruno Haible  <bruno@clisp.org>
13303
13304         rmdir: Respect rules for use of AC_LIBOBJ.
13305         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13306         * modules/rmdir (configure.ac): ... to here.
13307
13308 2011-05-21  Bruno Haible  <bruno@clisp.org>
13309
13310         renameat: Move AC_LIBOBJ invocations to module description.
13311         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13312         here...
13313         * modules/renameat (configure.ac): ... to here.
13314
13315 2011-05-21  Bruno Haible  <bruno@clisp.org>
13316
13317         rename: Respect rules for use of AC_LIBOBJ.
13318         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13319         here...
13320         * modules/rename (configure.ac): ... to here.
13321
13322 2011-05-21  Bruno Haible  <bruno@clisp.org>
13323
13324         remove: Move AC_LIBOBJ invocations to module description.
13325         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13326         here...
13327         * modules/remove (configure.ac): ... to here.
13328
13329 2011-05-21  Bruno Haible  <bruno@clisp.org>
13330
13331         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13332         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13333         macro.
13334         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13335         * modules/relocatable-lib (configure.ac): ... to here.
13336         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13337         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13338
13339 2011-05-21  Bruno Haible  <bruno@clisp.org>
13340
13341         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13342         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13343         here...
13344         * modules/relocatable-prog (configure.ac): ... to here.
13345
13346 2011-05-21  Bruno Haible  <bruno@clisp.org>
13347
13348         regex: Move AC_LIBOBJ invocations to module description.
13349         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13350         invocations from here...
13351         * modules/regex (configure.ac): ... to here.
13352
13353 2011-05-21  Bruno Haible  <bruno@clisp.org>
13354
13355         realloc-*: Move AC_LIBOBJ invocations to module description.
13356         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13357         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13358         AC_LIBOBJ invocations from here...
13359         * modules/realloc-gnu (configure.ac): ... to here.
13360         * modules/realloc-posix (configure.ac): ... and here.
13361
13362 2011-05-21  Bruno Haible  <bruno@clisp.org>
13363
13364         readutmp: Move AC_LIBOBJ invocations to module description.
13365         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13366         * modules/readutmp (configure.ac): ... to here.
13367
13368 2011-05-21  Bruno Haible  <bruno@clisp.org>
13369
13370         readlinkat: Move AC_LIBOBJ invocations to module description.
13371         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13372         here...
13373         * modules/readlinkat (configure.ac): ... to here.
13374
13375 2011-05-21  Bruno Haible  <bruno@clisp.org>
13376
13377         readlink: Move AC_LIBOBJ invocations to module description.
13378         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13379         gl_PREREQ_READLINK invocations from here...
13380         * modules/readlink (configure.ac): ... to here.
13381
13382 2011-05-21  Bruno Haible  <bruno@clisp.org>
13383
13384         readline: Move AC_LIBOBJ invocations to module description.
13385         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13386         gl_PREREQ_READLINE invocations from here...
13387         * modules/readline (configure.ac): ... to here.
13388
13389 2011-05-21  Bruno Haible  <bruno@clisp.org>
13390
13391         read: Move AC_LIBOBJ invocations to module description.
13392         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13393         * modules/read (configure.ac): ... to here.
13394
13395 2011-05-21  Bruno Haible  <bruno@clisp.org>
13396
13397         rawmemchr: Move AC_LIBOBJ invocations to module description.
13398         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13399         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13400         from here...
13401         * modules/rawmemchr (configure.ac): ... to here.
13402
13403 2011-05-21  Bruno Haible  <bruno@clisp.org>
13404
13405         random_r: Move AC_LIBOBJ invocations to module description.
13406         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13407         gl_PREREQ_RANDOM_R invocations from here...
13408         * modules/random_r (configure.ac): ... to here.
13409
13410 2011-05-21  Bruno Haible  <bruno@clisp.org>
13411
13412         pwrite: Move AC_LIBOBJ invocations to module description.
13413         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13414         * modules/pwrite (configure.ac): ... to here.
13415
13416 2011-05-21  Bruno Haible  <bruno@clisp.org>
13417
13418         putenv: Move AC_LIBOBJ invocations to module description.
13419         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13420         * modules/putenv (configure.ac): ... to here.
13421
13422 2011-05-21  Bruno Haible  <bruno@clisp.org>
13423
13424         login_tty: Move AC_LIBOBJ invocations to module description.
13425         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13426         * modules/login_tty (configure.ac): ... to here.
13427
13428 2011-05-21  Bruno Haible  <bruno@clisp.org>
13429
13430         openpty: Move AC_LIBOBJ invocations to module description.
13431         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13432         * modules/openpty (configure.ac): ... to here.
13433
13434 2011-05-21  Bruno Haible  <bruno@clisp.org>
13435
13436         forkpty: Move AC_LIBOBJ invocations to module description.
13437         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13438         * modules/forkpty (configure.ac): ... to here.
13439
13440 2011-05-21  Bruno Haible  <bruno@clisp.org>
13441
13442         ptsname: Move AC_LIBOBJ invocations to module description.
13443         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13444         invocations from here...
13445         * modules/ptsname (configure.ac): ... to here.
13446
13447 2011-05-21  Bruno Haible  <bruno@clisp.org>
13448
13449         pread: Move AC_LIBOBJ invocations to module description.
13450         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13451         * modules/pread (configure.ac): ... to here.
13452
13453 2011-05-21  Bruno Haible  <bruno@clisp.org>
13454
13455         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13456         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13457         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13458         * modules/posix_spawn (configure.ac): ... to here.
13459         * modules/posix_spawnp (configure.ac): ... and here.
13460
13461 2011-05-21  Bruno Haible  <bruno@clisp.org>
13462
13463         popen: Move AC_LIBOBJ invocations to module description.
13464         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13465         invocations from here...
13466         * modules/popen (configure.ac): ... to here.
13467
13468 2011-05-21  Bruno Haible  <bruno@clisp.org>
13469
13470         poll: Move AC_LIBOBJ invocations to module description.
13471         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13472         invocations from here...
13473         * modules/poll (configure.ac): ... to here.
13474
13475 2011-05-21  Bruno Haible  <bruno@clisp.org>
13476
13477         pipe-posix: Move AC_LIBOBJ invocations to module description.
13478         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13479         * modules/pipe-posix (configure.ac): ... to here.
13480
13481 2011-05-21  Bruno Haible  <bruno@clisp.org>
13482
13483         openat: Respect rules for use of AC_LIBOBJ.
13484         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13485         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13486         * modules/openat (configure.ac): ... to here.
13487
13488 2011-05-21  Bruno Haible  <bruno@clisp.org>
13489
13490         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13491         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13492         invocation from here...
13493         * modules/obstack-printf (configure.ac): ... to here.
13494         * modules/obstack-printf-posix (configure.ac): ... and here.
13495
13496 2011-05-21  Bruno Haible  <bruno@clisp.org>
13497
13498         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13499         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13500         from here...
13501         * modules/nl_langinfo (configure.ac): ... to here.
13502
13503 2011-05-21  Bruno Haible  <bruno@clisp.org>
13504
13505         nanosleep: Move AC_LIBOBJ invocations to module description.
13506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13507         gl_PREREQ_NANOSLEEP invocations from here...
13508         * modules/nanosleep (configure.ac): ... to here.
13509
13510 2011-05-21  Bruno Haible  <bruno@clisp.org>
13511
13512         mountlist: Move AC_LIBOBJ invocations to module description.
13513         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13514         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13515         * modules/mountlist (configure.ac): ... to here.
13516
13517 2011-05-21  Bruno Haible  <bruno@clisp.org>
13518
13519         mktime: Respect rules for use of AC_LIBOBJ.
13520         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13521         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13522         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13523         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13524         * modules/mktime (configure.ac): ... to here.
13525         * modules/mktime-internal (configure.ac): ... and here.
13526         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13527
13528 2011-05-21  Bruno Haible  <bruno@clisp.org>
13529
13530         mkstemps: Move AC_LIBOBJ invocations to module description.
13531         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13532         here...
13533         * modules/mkstemps (configure.ac): ... to here.
13534
13535 2011-05-21  Bruno Haible  <bruno@clisp.org>
13536
13537         mkstemp: Move AC_LIBOBJ invocations to module description.
13538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13539         gl_PREREQ_MKSTEMP invocations from here...
13540         * modules/mkstemp (configure.ac): ... to here.
13541
13542 2011-05-21  Bruno Haible  <bruno@clisp.org>
13543
13544         mkostemps: Move AC_LIBOBJ invocations to module description.
13545         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13546         here...
13547         * modules/mkostemps (configure.ac): ... to here.
13548
13549 2011-05-21  Bruno Haible  <bruno@clisp.org>
13550
13551         mkostemp: Move AC_LIBOBJ invocations to module description.
13552         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13553         gl_PREREQ_MKOSTEMP invocations from here...
13554         * modules/mkostemp (configure.ac): ... to here.
13555
13556 2011-05-21  Bruno Haible  <bruno@clisp.org>
13557
13558         mknod: Move AC_LIBOBJ invocations to module description.
13559         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13560         * modules/mknod (configure.ac): ... to here.
13561
13562 2011-05-21  Bruno Haible  <bruno@clisp.org>
13563
13564         mkfifoat: Move AC_LIBOBJ invocations to module description.
13565         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13566         here...
13567         * modules/mkfifoat (configure.ac): ... to here.
13568
13569 2011-05-21  Bruno Haible  <bruno@clisp.org>
13570
13571         mkfifo: Respect rules for use of AC_LIBOBJ.
13572         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13573         here...
13574         * modules/mkfifo (configure.ac): ... to here.
13575
13576 2011-05-21  Bruno Haible  <bruno@clisp.org>
13577
13578         mkdtemp: Move AC_LIBOBJ invocations to module description.
13579         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13580         invocations from here...
13581         * modules/mkdtemp (configure.ac): ... to here.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         mkdir: Move AC_LIBOBJ invocations to module description.
13586         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13587         * modules/mkdir (configure.ac): ... to here.
13588
13589 2011-05-21  Bruno Haible  <bruno@clisp.org>
13590
13591         memset: Move AC_LIBOBJ invocations to module description.
13592         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13594         here...
13595         * modules/memset (configure.ac): ... to here.
13596
13597 2011-05-21  Bruno Haible  <bruno@clisp.org>
13598
13599         memrchr: Move AC_LIBOBJ invocations to module description.
13600         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13602         here...
13603         * modules/memrchr (configure.ac): ... to here.
13604
13605 2011-05-21  Bruno Haible  <bruno@clisp.org>
13606
13607         mempcpy: Move AC_LIBOBJ invocations to module description.
13608         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13610         here...
13611         * modules/mempcpy (configure.ac): ... to here.
13612
13613 2011-05-21  Bruno Haible  <bruno@clisp.org>
13614
13615         memmove: Move AC_LIBOBJ invocations to module description.
13616         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13618         here...
13619         * modules/memmove (configure.ac): ... to here.
13620
13621 2011-05-21  Bruno Haible  <bruno@clisp.org>
13622
13623         memmem*: Move AC_LIBOBJ invocations to module description.
13624         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13625         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13626         here...
13627         (gl_FUNC_MEMMEM): ... and here...
13628         * modules/memmem-simple (configure.ac): ... to here.
13629         * modules/memmem (configure.ac): ... and here.
13630
13631 2011-05-21  Bruno Haible  <bruno@clisp.org>
13632
13633         memcpy: Move AC_LIBOBJ invocations to module description.
13634         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13636         here...
13637         * modules/memcpy (configure.ac): ... to here.
13638
13639 2011-05-21  Bruno Haible  <bruno@clisp.org>
13640
13641         memcmp: Simplify autoconf macro.
13642         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13643         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13644         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13645
13646 2011-05-21  Bruno Haible  <bruno@clisp.org>
13647
13648         memcmp: Move AC_LIBOBJ invocations to module description.
13649         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13650         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13651         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13652         * modules/memcmp (configure.ac): ... to here.
13653         (Depends-on): Update conditions.
13654
13655 2011-05-21  Bruno Haible  <bruno@clisp.org>
13656
13657         memchr: Respect rules for use of AC_LIBOBJ.
13658         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13659         invocations from here...
13660         * modules/memchr (configure.ac): ... to here.
13661
13662 2011-05-21  Bruno Haible  <bruno@clisp.org>
13663
13664         mbtowc: Move AC_LIBOBJ invocations to module description.
13665         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13666         invocations from here...
13667         * modules/mbtowc (configure.ac): ... to here.
13668
13669 2011-05-21  Bruno Haible  <bruno@clisp.org>
13670
13671         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13672         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13673         gl_PREREQ_MBSRTOWCS invocations from here...
13674         * modules/mbsrtowcs (configure.ac): ... to here.
13675
13676 2011-05-21  Bruno Haible  <bruno@clisp.org>
13677
13678         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13679         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13680         gl_PREREQ_MBSNRTOWCS invocations from here...
13681         * modules/mbsnrtowcs (configure.ac): ... to here.
13682
13683 2011-05-21  Bruno Haible  <bruno@clisp.org>
13684
13685         mbsinit: Move AC_LIBOBJ invocations to module description.
13686         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13687         invocations from here...
13688         * modules/mbsinit (configure.ac): ... to here.
13689
13690 2011-05-21  Bruno Haible  <bruno@clisp.org>
13691
13692         mbrlen: Move AC_LIBOBJ invocations to module description.
13693         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13694         invocations from here...
13695         * modules/mbrlen (configure.ac): ... to here.
13696
13697 2011-05-21  Bruno Haible  <bruno@clisp.org>
13698
13699         mbrtowc: Respect rules for use of AC_LIBOBJ.
13700         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13701         invocations from here...
13702         * modules/mbrtowc (configure.ac): ... to here.
13703
13704 2011-05-21  Bruno Haible  <bruno@clisp.org>
13705
13706         malloc-*: Move AC_LIBOBJ invocations to module description.
13707         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13708         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13709         AC_LIBOBJ invocations from here...
13710         * modules/malloc-gnu (configure.ac): ... to here.
13711         * modules/malloc-posix (configure.ac): ... and here.
13712
13713 2011-05-21  Bruno Haible  <bruno@clisp.org>
13714
13715         lstat, openat: Respect rules for use of AC_LIBOBJ.
13716         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13717         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13718         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13719         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13720         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13721         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13722         here.
13723         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13724
13725 2011-05-21  Bruno Haible  <bruno@clisp.org>
13726
13727         lseek: Move AC_LIBOBJ invocations to module description.
13728         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13729         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13730         * modules/lseek (configure.ac): ... to here.
13731
13732 2011-05-21  Bruno Haible  <bruno@clisp.org>
13733
13734         linkat: Move AC_LIBOBJ invocations to module description.
13735         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13736         here...
13737         * modules/linkat (configure.ac): ... to here.
13738
13739 2011-05-21  Bruno Haible  <bruno@clisp.org>
13740
13741         link: Respect rules for use of AC_LIBOBJ.
13742         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13743         * modules/link (configure.ac): ... to here.
13744
13745 2011-05-21  Bruno Haible  <bruno@clisp.org>
13746
13747         lchown: Move AC_LIBOBJ invocations to module description.
13748         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13749         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13750         * modules/lchown (configure.ac): ... to here.
13751
13752 2011-05-21  Bruno Haible  <bruno@clisp.org>
13753
13754         iswctype: Move AC_LIBOBJ invocations to module description.
13755         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13756         here...
13757         * modules/iswctype (configure.ac): ... to here.
13758
13759 2011-05-21  Bruno Haible  <bruno@clisp.org>
13760
13761         iswblank: Move AC_LIBOBJ invocations to module description.
13762         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13763         here...
13764         * modules/iswblank (configure.ac): ... to here.
13765
13766 2011-05-21  Bruno Haible  <bruno@clisp.org>
13767
13768         atanl: Move AC_LIBOBJ invocations to module description.
13769         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13770         * modules/atanl (configure.ac): ... to here.
13771
13772 2011-05-21  Bruno Haible  <bruno@clisp.org>
13773
13774         acosl: Move AC_LIBOBJ invocations to module description.
13775         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13776         * modules/acosl (configure.ac): ... to here.
13777
13778 2011-05-21  Bruno Haible  <bruno@clisp.org>
13779
13780         asinl: Respect rules for use of AC_LIBOBJ.
13781         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13782         * modules/asinl (configure.ac): ... to here.
13783
13784 2011-05-21  Bruno Haible  <bruno@clisp.org>
13785
13786         tanl: Move AC_LIBOBJ invocations to module description.
13787         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13788         * modules/tanl (configure.ac): ... to here.
13789
13790 2011-05-21  Bruno Haible  <bruno@clisp.org>
13791
13792         cosl: Move AC_LIBOBJ invocations to module description.
13793         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13794         * modules/cosl (configure.ac): ... to here.
13795
13796 2011-05-21  Bruno Haible  <bruno@clisp.org>
13797
13798         sinl: Move AC_LIBOBJ invocations to module description.
13799         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13800         * modules/sinl (configure.ac): ... to here.
13801
13802 2011-05-21  Bruno Haible  <bruno@clisp.org>
13803
13804         logl: Move AC_LIBOBJ invocations to module description.
13805         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13806         * modules/logl (configure.ac): ... to here.
13807
13808 2011-05-21  Bruno Haible  <bruno@clisp.org>
13809
13810         expl: Move AC_LIBOBJ invocations to module description.
13811         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13812         * modules/expl (configure.ac): ... to here.
13813
13814 2011-05-21  Bruno Haible  <bruno@clisp.org>
13815
13816         roundl: Move AC_LIBOBJ invocations to module description.
13817         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13818         * modules/roundl (configure.ac): ... to here.
13819
13820 2011-05-21  Bruno Haible  <bruno@clisp.org>
13821
13822         round: Move AC_LIBOBJ invocations to module description.
13823         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13824         * modules/round (configure.ac): ... to here.
13825
13826 2011-05-21  Bruno Haible  <bruno@clisp.org>
13827
13828         roundf: Move AC_LIBOBJ invocations to module description.
13829         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13830         * modules/roundf (configure.ac): ... to here.
13831
13832 2011-05-21  Bruno Haible  <bruno@clisp.org>
13833
13834         truncl: Move AC_LIBOBJ invocations to module description.
13835         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13836         * modules/truncl (configure.ac): ... to here.
13837
13838 2011-05-21  Bruno Haible  <bruno@clisp.org>
13839
13840         trunc: Move AC_LIBOBJ invocations to module description.
13841         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13842         * modules/trunc (configure.ac): ... to here.
13843
13844 2011-05-21  Bruno Haible  <bruno@clisp.org>
13845
13846         truncf: Move AC_LIBOBJ invocations to module description.
13847         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13848         * modules/truncf (configure.ac): ... to here.
13849
13850 2011-05-21  Bruno Haible  <bruno@clisp.org>
13851
13852         ceill: Move AC_LIBOBJ invocations to module description.
13853         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13854         * modules/ceill (configure.ac): ... to here.
13855
13856 2011-05-21  Bruno Haible  <bruno@clisp.org>
13857
13858         ceil: Move AC_LIBOBJ invocations to module description.
13859         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13860         * modules/ceil (configure.ac): ... to here.
13861
13862 2011-05-21  Bruno Haible  <bruno@clisp.org>
13863
13864         ceilf: Move AC_LIBOBJ invocations to module description.
13865         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13866         * modules/ceilf (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         floorl: Respect rules for use of AC_LIBOBJ.
13871         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13872         * modules/floorl (configure.ac): ... to here.
13873
13874 2011-05-21  Bruno Haible  <bruno@clisp.org>
13875
13876         floor: Respect rules for use of AC_LIBOBJ.
13877         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13878         * modules/floor (configure.ac): ... to here.
13879
13880 2011-05-21  Bruno Haible  <bruno@clisp.org>
13881
13882         floorf: Move AC_LIBOBJ invocations to module description.
13883         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13884         * modules/floorf (configure.ac): ... to here.
13885
13886 2011-05-20  Bruno Haible  <bruno@clisp.org>
13887
13888         sqrtl: Respect rules for use of AC_LIBOBJ.
13889         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13890         * modules/sqrtl (configure.ac): ... to here.
13891
13892 2011-05-20  Bruno Haible  <bruno@clisp.org>
13893
13894         ldexpl: Respect rules for use of AC_LIBOBJ.
13895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13896         * modules/ldexpl (configure.ac): ... to here.
13897
13898 2011-05-20  Bruno Haible  <bruno@clisp.org>
13899
13900         frexpl*: Respect rules for use of AC_LIBOBJ.
13901         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13902         invocation from here...
13903         * modules/frexpl (configure.ac): ... to here.
13904         * modules/frexpl-nolibm (configure.ac): ... and here.
13905
13906 2011-05-20  Bruno Haible  <bruno@clisp.org>
13907
13908         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13909         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13910         invocation from here...
13911         * modules/frexp (configure.ac): ... to here.
13912         * modules/frexp-nolibm (configure.ac): ... and here.
13913
13914 2011-05-20  Bruno Haible  <bruno@clisp.org>
13915
13916         isnan: Respect rules for use of AC_LIBOBJ.
13917         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13918         invocations here.
13919         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13920         REPLACE_ISNAN.
13921         * modules/isnand (configure.ac): Likewise.
13922         * modules/isnanl (configure.ac): Likewise.
13923
13924 2011-05-20  Bruno Haible  <bruno@clisp.org>
13925
13926         isnanl*: Respect rules for use of AC_LIBOBJ.
13927         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13928         invocation from here...
13929         * modules/isnanl (configure.ac): ... to here.
13930         * modules/isnanl-nolibm (configure.ac): ... and here.
13931
13932 2011-05-20  Bruno Haible  <bruno@clisp.org>
13933
13934         isnand*: Move AC_LIBOBJ invocations to module description.
13935         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13936         invocation from here...
13937         * modules/isnand (configure.ac): ... to here.
13938         * modules/isnand-nolibm (configure.ac): ... and here.
13939
13940 2011-05-20  Bruno Haible  <bruno@clisp.org>
13941
13942         isnanf*: Move AC_LIBOBJ invocations to module description.
13943         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13944         invocation from here...
13945         * modules/isnanf (configure.ac): ... to here.
13946         * modules/isnanf-nolibm (configure.ac): ... and here.
13947
13948 2011-05-20  Bruno Haible  <bruno@clisp.org>
13949
13950         isnan*: Separate the AC_LIBOBJ invocations.
13951         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13952         AC_LIBOBJ invocation.
13953         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13954         here.
13955         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13956         AC_LIBOBJ invocation.
13957         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13958         here.
13959         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13960         AC_LIBOBJ invocation.
13961         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13962         here.
13963         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13964
13965 2011-05-08  Bruno Haible  <bruno@clisp.org>
13966
13967         isinf: Move AC_LIBOBJ invocations to module description.
13968         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13969         * modules/isinf (configure.ac): ... to here.
13970
13971 2011-05-08  Bruno Haible  <bruno@clisp.org>
13972
13973         isfinite: Move AC_LIBOBJ invocations to module description.
13974         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13975         * modules/isfinite (configure.ac): ... to here.
13976
13977 2011-05-08  Bruno Haible  <bruno@clisp.org>
13978
13979         isblank: Move AC_LIBOBJ invocations to module description.
13980         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13981         here...
13982         * modules/isblank (configure.ac): ... to here.
13983
13984 2011-05-08  Bruno Haible  <bruno@clisp.org>
13985
13986         isapipe: Move AC_LIBOBJ invocations to module description.
13987         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13988         gl_PREREQ_ISAPIPE invocations from here...
13989         * modules/isapipe (configure.ac): ... to here.
13990         (Depends-on): Update condition.
13991
13992 2011-05-08  Bruno Haible  <bruno@clisp.org>
13993
13994         ioctl: Move AC_LIBOBJ invocations to module description.
13995         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13996         invocations from here...
13997         * modules/ioctl (configure.ac): ... to here.
13998         (Depends-on): Update condition.
13999
14000 2011-05-08  Bruno Haible  <bruno@clisp.org>
14001
14002         imaxdiv: Move AC_LIBOBJ invocations to module description.
14003         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14004         invocations from here...
14005         * modules/imaxdiv (configure.ac): ... to here.
14006
14007 2011-05-08  Bruno Haible  <bruno@clisp.org>
14008
14009         imaxabs: Move AC_LIBOBJ invocations to module description.
14010         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14011         invocations from here...
14012         * modules/imaxabs (configure.ac): ... to here.
14013
14014 2011-05-08  Bruno Haible  <bruno@clisp.org>
14015
14016         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14018         AC_LIBOBJ invocations from here...
14019         * modules/getaddrinfo (configure.ac): ... to here.
14020         (Depends-on): Add conditions.
14021
14022 2011-05-08  Bruno Haible  <bruno@clisp.org>
14023
14024         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14025         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14026         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14027         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14028         (gl_PREREQ_INET_PTON): ... from here.
14029         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14030         gl_PREREQ_INET_PTON here.
14031         (Depends-on): Update condition.
14032
14033 2011-05-08  Bruno Haible  <bruno@clisp.org>
14034
14035         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14036         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14037         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14038         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14039         (gl_PREREQ_INET_NTOP): ... from here.
14040         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14041         gl_PREREQ_INET_NTOP here.
14042         (Depends-on): Update condition.
14043
14044 2011-05-08  Bruno Haible  <bruno@clisp.org>
14045
14046         iconv_open: Move AC_LIBOBJ invocations to module description.
14047         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14048         AC_LIBOBJ invocations from here...
14049         * modules/iconv_open (configure.ac): ... to here.
14050
14051 2011-05-08  Bruno Haible  <bruno@clisp.org>
14052
14053         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14054         If module 'iconv_open' is among the main modules and module
14055         'iconv_open-utf' is among the tests dependencies, then
14056         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14057         return the special iconv_t values. Therefore iconv() and iconv_close()
14058         must support these special iconv_t values, already in lib, not only in
14059         tests.
14060         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14062         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14063         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14064         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14065         (Depends-on): Add the dependencies of iconv_open-utf.
14066         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14067         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14068         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14069
14070 2011-05-08  Bruno Haible  <bruno@clisp.org>
14071
14072         group-member: Move AC_LIBOBJ invocations to module description.
14073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14074         gl_PREREQ_GROUP_MEMBER invocations from here...
14075         * modules/group-member (configure.ac): ... to here.
14076
14077 2011-05-08  Bruno Haible  <bruno@clisp.org>
14078
14079         grantpt: Move AC_LIBOBJ invocations to module description.
14080         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14081         invocations from here...
14082         * modules/grantpt (configure.ac): ... to here.
14083
14084 2011-05-08  Bruno Haible  <bruno@clisp.org>
14085
14086         glob: Move AC_LIBOBJ invocations to module description.
14087         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14088         from here...
14089         * modules/glob (configure.ac): ... to here.
14090
14091 2011-05-08  Bruno Haible  <bruno@clisp.org>
14092
14093         getusershell: Move AC_LIBOBJ invocations to module description.
14094         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14095         Move AC_LIBOBJ invocation from here...
14096         * modules/getusershell (configure.ac): ... to here.
14097         (Depends-on): Update condition.
14098
14099 2011-05-08  Bruno Haible  <bruno@clisp.org>
14100
14101         gettimeofday: Move AC_LIBOBJ invocations to module description.
14102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14103         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14104         gl_PREREQ_GETTIMEOFDAY invocations from here...
14105         * modules/gettimeofday (configure.ac): ... to here.
14106
14107 2011-05-08  Bruno Haible  <bruno@clisp.org>
14108
14109         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14110         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14111         just gl_FUNC_TZSET.
14112         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14113         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14114         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14115         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14116
14117 2011-05-08  Bruno Haible  <bruno@clisp.org>
14118
14119         getsubopt: Move AC_LIBOBJ invocations to module description.
14120         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14121         gl_PREREQ_GETSUBOPT invocations from here...
14122         * modules/getsubopt (configure.ac): ... to here.
14123
14124 2011-05-08  Bruno Haible  <bruno@clisp.org>
14125
14126         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14127         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14128         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14129         * modules/getpass-gnu (configure.ac): ... to here.
14130
14131 2011-05-08  Bruno Haible  <bruno@clisp.org>
14132
14133         getpass: Move AC_LIBOBJ invocations to module description.
14134         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14135         gl_PREREQ_GETPASS invocations from here...
14136         * modules/getpass (configure.ac): ... to here.
14137
14138 2011-05-08  Bruno Haible  <bruno@clisp.org>
14139
14140         getpagesize: Move AC_LIBOBJ invocations to module description.
14141         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14142         from here...
14143         * modules/getpagesize (configure.ac): ... to here.
14144
14145 2011-05-08  Bruno Haible  <bruno@clisp.org>
14146
14147         getopt: Move AC_LIBOBJ invocations to module description.
14148         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14149         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14150         invocations from here...
14151         * modules/getopt-gnu (configure.ac): ... to here.
14152         * modules/getopt-posix (configure.ac): ... and here.
14153         (Depends-on): Update condition.
14154
14155 2011-05-08  Bruno Haible  <bruno@clisp.org>
14156
14157         getopt, argp: Respect rules for use of AC_LIBOBJ.
14158         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14159         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14160         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14161         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14162
14163 2011-05-08  Bruno Haible  <bruno@clisp.org>
14164
14165         getlogin_r: Move AC_LIBOBJ invocations to module description.
14166         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14167         gl_PREREQ_GETLOGIN_R invocations from here...
14168         * modules/getlogin_r (configure.ac): ... to here.
14169
14170 2011-05-08  Bruno Haible  <bruno@clisp.org>
14171
14172         getlogin: Move AC_LIBOBJ invocations to module description.
14173         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14174         here...
14175         * modules/getlogin (configure.ac): ... to here.
14176
14177 2011-05-08  Bruno Haible  <bruno@clisp.org>
14178
14179         getloadavg: Move AC_LIBOBJ invocations to module description.
14180         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14181         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14182         * modules/getloadavg (configure.ac): ... to here.
14183
14184 2011-05-08  Bruno Haible  <bruno@clisp.org>
14185
14186         gethrxtime: Move AC_LIBOBJ invocations to module description.
14187         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14188         LIB_GETHRXTIME from here...
14189         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14190         invocations from here...
14191         * modules/gethrxtime (configure.ac): ... to here.
14192
14193 2011-05-08  Bruno Haible  <bruno@clisp.org>
14194
14195         gethostname: Move AC_LIBOBJ invocations to module description.
14196         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14197         gl_PREREQ_GETHOSTNAME invocations from here...
14198         * modules/gethostname (configure.ac): ... to here.
14199
14200 2011-05-08  Bruno Haible  <bruno@clisp.org>
14201
14202         getgroups: Move AC_LIBOBJ invocations to module description.
14203         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14204         here...
14205         * modules/getgroups (configure.ac): ... to here.
14206
14207 2011-05-08  Bruno Haible  <bruno@clisp.org>
14208
14209         getdtablesize: Move AC_LIBOBJ invocations to module description.
14210         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14211         invocation from here...
14212         * modules/getdtablesize (configure.ac): ... to here.
14213
14214 2011-05-08  Bruno Haible  <bruno@clisp.org>
14215
14216         getdomainname: Move AC_LIBOBJ invocations to module description.
14217         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14218         gl_PREREQ_GETDOMAINNAME invocations from here...
14219         * modules/getdomainname (configure.ac): ... to here.
14220
14221 2011-05-08  Bruno Haible  <bruno@clisp.org>
14222
14223         getline: Move AC_LIBOBJ invocations to module description.
14224         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14225         invocations from here...
14226         * modules/getline (configure.ac): ... to here.
14227
14228 2011-05-08  Bruno Haible  <bruno@clisp.org>
14229
14230         getline: Simplify.
14231         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14232         It's already handled through the module dependency.
14233
14234 2011-05-08  Bruno Haible  <bruno@clisp.org>
14235
14236         getdelim: Move AC_LIBOBJ invocations to module description.
14237         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14238         and gl_PREREQ_GETDELIM invocations from here...
14239         * modules/getdelim (configure.ac): ... to here.
14240         (Depends-on): Fix condition.
14241
14242 2011-05-08  Bruno Haible  <bruno@clisp.org>
14243
14244         getcwd: Move AC_LIBOBJ invocations to module description.
14245         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14246         invocations from here...
14247         * modules/getcwd (configure.ac): ... to here.
14248
14249 2011-05-08  Bruno Haible  <bruno@clisp.org>
14250
14251         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14252         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14253         here...
14254         * modules/getcwd-lgpl (configure.ac): ... to here.
14255
14256 2011-05-07  Bruno Haible  <bruno@clisp.org>
14257
14258         crypto/gc: Move AC_LIBOBJ invocations to module description.
14259         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14260         * modules/crypto/gc (configure.ac): ... to here.
14261
14262 2011-05-07  Bruno Haible  <bruno@clisp.org>
14263
14264         fwriting: Move AC_LIBOBJ invocations to module description.
14265         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14266         here...
14267         * modules/fwriting (configure.ac): ... to here.
14268
14269 2011-05-07  Bruno Haible  <bruno@clisp.org>
14270
14271         fwritable: Move AC_LIBOBJ invocations to module description.
14272         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14273         here...
14274         * modules/fwritable (configure.ac): ... to here.
14275
14276 2011-05-07  Bruno Haible  <bruno@clisp.org>
14277
14278         futimens: Move AC_LIBOBJ invocations to module description.
14279         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14280         here...
14281         * modules/futimens (configure.ac): ... to here.
14282
14283 2011-05-07  Bruno Haible  <bruno@clisp.org>
14284
14285         ftruncate: Move AC_LIBOBJ invocations to module description.
14286         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14287         gl_PREREQ_FTRUNCATE invocations from here...
14288         * modules/ftruncate (configure.ac): ... to here.
14289
14290 2011-05-07  Bruno Haible  <bruno@clisp.org>
14291
14292         fsync: Move AC_LIBOBJ invocations to module description.
14293         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14294         invocations from here...
14295         * modules/fsync (configure.ac): ... to here.
14296
14297 2011-05-07  Bruno Haible  <bruno@clisp.org>
14298
14299         fsusage: Move AC_LIBOBJ invocations to module description.
14300         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14301         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14302         * modules/fsusage (configure.ac): ... to here.
14303
14304 2011-05-07  Bruno Haible  <bruno@clisp.org>
14305
14306         freopen: Move AC_LIBOBJ invocations to module description.
14307         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14308         invocations from here...
14309         * modules/freopen (configure.ac): ... to here.
14310
14311 2011-05-07  Bruno Haible  <bruno@clisp.org>
14312
14313         free: Move AC_LIBOBJ invocations to module description.
14314         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14315         invocations from here...
14316         * modules/free (configure.ac): ... to here.
14317
14318 2011-05-07  Bruno Haible  <bruno@clisp.org>
14319
14320         freadable: Move AC_LIBOBJ invocations to module description.
14321         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14322         here...
14323         * modules/freadable (configure.ac): ... to here.
14324
14325 2011-05-07  Bruno Haible  <bruno@clisp.org>
14326
14327         fpurge: Move AC_LIBOBJ invocations to module description.
14328         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14329         invocations from here...
14330         * modules/fpurge (configure.ac): ... to here.
14331
14332 2011-05-07  Bruno Haible  <bruno@clisp.org>
14333
14334         fpending: Move AC_LIBOBJ invocations to module description.
14335         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14336         gl_FUNC_FPENDING.
14337         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14338         invocations from here...
14339         * modules/fpending (configure.ac): ... to here.
14340
14341 2011-05-07  Bruno Haible  <bruno@clisp.org>
14342
14343         fopen: Move AC_LIBOBJ invocations to module description.
14344         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14345         invocations from here...
14346         * modules/fopen (configure.ac): ... to here.
14347
14348 2011-05-07  Bruno Haible  <bruno@clisp.org>
14349
14350         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14351         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14352         gl_FUNC_FNMATCH_POSIX.
14353         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14354         invocations from here...
14355         * modules/fnmatch (configure.ac): ... to here.
14356         * modules/fnmatch-gnu (configure.ac): ... and here.
14357
14358 2011-05-07  Bruno Haible  <bruno@clisp.org>
14359
14360         flock: Move AC_LIBOBJ invocations to module description.
14361         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14362         invocations from here...
14363         * modules/flock (configure.ac): ... to here.
14364
14365 2011-05-07  Bruno Haible  <bruno@clisp.org>
14366
14367         fileblocks: Move AC_LIBOBJ invocations to module description.
14368         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14369         gl_PREREQ_FILEBLOCKS invocations from here...
14370         * modules/fileblocks (configure.ac): ... to here.
14371
14372 2011-05-06  Bruno Haible  <bruno@clisp.org>
14373
14374         fflush: Move AC_LIBOBJ invocations to module description.
14375         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14376         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14377         invocations from here...
14378         * modules/fflush (configure.ac): ... to here.
14379
14380 2011-05-06  Bruno Haible  <bruno@clisp.org>
14381
14382         fdopendir: Move AC_LIBOBJ invocations to module description.
14383         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14384         here...
14385         * modules/fdopendir (configure.ac): ... to here.
14386         (Depends-on): Improve conditions.
14387
14388 2011-05-06  Bruno Haible  <bruno@clisp.org>
14389
14390         _Exit: Move AC_LIBOBJ invocations to module description.
14391         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14392         invocations from here...
14393         * modules/_Exit (configure.ac): ... to here.
14394
14395 2011-05-21  Bruno Haible  <bruno@clisp.org>
14396
14397         euidaccess: Respect rules for use of AC_LIBOBJ.
14398         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14399         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14400         from here...
14401         * modules/euidaccess (configure.ac): ... to here.
14402
14403 2011-05-06  Bruno Haible  <bruno@clisp.org>
14404
14405         error: Move AC_LIBOBJ invocations to module description.
14406         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14407         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14408         invocations from here...
14409         * modules/error (configure.ac): ... to here.
14410
14411 2011-05-06  Bruno Haible  <bruno@clisp.org>
14412
14413         duplocale: Move AC_LIBOBJ invocations to module description.
14414         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14415         gl_PREREQ_DUPLOCALE invocations from here...
14416         * modules/duplocale (configure.ac): ... to here.
14417
14418 2011-05-05  Bruno Haible  <bruno@clisp.org>
14419
14420         dirfd: Move AC_LIBOBJ invocations to module description.
14421         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14422         gl_FUNC_DIRFD.
14423         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14424         here...
14425         * modules/dirfd (configure.ac): ... to here.
14426         (Depends-on): Fix condition.
14427
14428 2011-05-05  Bruno Haible  <bruno@clisp.org>
14429
14430         chown: Respect rules for use of AC_LIBOBJ.
14431         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14432         * modules/chown (configure.ac): ... to here.
14433
14434 2011-05-05  Bruno Haible  <bruno@clisp.org>
14435
14436         chdir-long: Move AC_LIBOBJ invocations to module description.
14437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14438         gl_PREREQ_CHDIR_LONG invocations from here...
14439         * modules/chdir-long (configure.ac): ... to here.
14440
14441 2011-05-05  Bruno Haible  <bruno@clisp.org>
14442
14443         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14444         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14445         from here...
14446         * modules/canonicalize-lgpl (configure.ac): ... to here.
14447
14448 2011-05-05  Bruno Haible  <bruno@clisp.org>
14449
14450         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14451         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14452         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14453         REPLACE_CALLOC.
14454         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14455         * modules/calloc-gnu (configure.ac): Likewise.
14456
14457 2011-05-05  Bruno Haible  <bruno@clisp.org>
14458
14459         btowc: Move AC_LIBOBJ invocations to module description.
14460         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14461         invocations from here...
14462         * modules/btowc (configure.ac): ... to here.
14463
14464 2011-05-21  Bruno Haible  <bruno@clisp.org>
14465
14466         atexit: Move AC_LIBOBJ invocations to module description.
14467         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14469         here...
14470         * modules/atexit (configure.ac): ... to here.
14471
14472 2011-05-05  Bruno Haible  <bruno@clisp.org>
14473
14474         atoll: Move AC_LIBOBJ invocations to module description.
14475         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14476         invocations from here...
14477         * modules/atoll (configure.ac): ... to here.
14478
14479 2011-05-05  Bruno Haible  <bruno@clisp.org>
14480
14481         argz: Move AC_LIBOBJ invocations to module description.
14482         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14483         * modules/argz (configure.ac): ... to here.
14484
14485 2011-05-05  Bruno Haible  <bruno@clisp.org>
14486
14487         alphasort: Move AC_LIBOBJ invocations to module description.
14488         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14489         gl_PREREQ_ALPHASORT invocations from here...
14490         * modules/alphasort (configure.ac): ... to here.
14491
14492 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14493
14494         verify: new macro verify_expr; verify_true deprecated
14495         * NEWS: Mention this.
14496         * doc/verify.texi (Compile-time Assertions): Document this.
14497         * lib/verify.h (verify_true): Deprecate.
14498         (verify_expr): New macro.
14499         * tests/test-verify.c (function): Test verify_expr.
14500
14501 2011-06-14  Jim Meyering  <meyering@redhat.com>
14502
14503         init.sh: give more portable redirection-related advice in a comment
14504         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14505         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14506         for lots of discussion.  Stefano Lattarini suggested the solution
14507         of putting "9>&2" after the command.  Reported by Bruno Haible.
14508
14509 2011-06-13  Bruno Haible  <bruno@clisp.org>
14510
14511         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14512         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14513         'none'.
14514
14515 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14516
14517         ftoastr: use strtof only if HAVE_STRTOF
14518         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14520         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14521         * modules/ftoastr (configure.ac): Check for strtof.
14522
14523 2011-06-13  Bruno Haible  <bruno@clisp.org>
14524
14525         gnulib-tool: Addendum to 2011-06-08 commit.
14526         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14527         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14528
14529 2011-06-13  Bruno Haible  <bruno@clisp.org>
14530
14531         fseeko: Provide a non-inline replacement of fseek().
14532         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14533         * modules/fseeko (Depends-on): Add fseek.
14534         * modules/fseek (License): Change to LGPLv2+.
14535
14536 2011-06-13  Bruno Haible  <bruno@clisp.org>
14537
14538         ftello: Provide a non-inline replacement of ftell().
14539         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14540         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14541         not have ftello() (such as on mingw).
14542         * modules/ftello (Depends-on): Add ftell.
14543         * modules/ftell (License): Change to LGPLv2+.
14544
14545 2011-05-07  Bruno Haible  <bruno@clisp.org>
14546
14547         ftell: Move AC_LIBOBJ invocations to module description.
14548         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14549         * modules/ftell (configure.ac): ... to here.
14550
14551 2011-05-07  Bruno Haible  <bruno@clisp.org>
14552
14553         ftello: Respect rules for use of AC_LIBOBJ.
14554         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14555         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14556         here...
14557         * modules/ftello (configure.ac): ... to here.
14558
14559 2011-05-07  Bruno Haible  <bruno@clisp.org>
14560
14561         fseeko: Simplify.
14562         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14563         (gl_FUNC_FSEEKO): Inline it here.
14564
14565 2011-05-07  Bruno Haible  <bruno@clisp.org>
14566
14567         fseek: Move AC_LIBOBJ invocations to module description.
14568         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14569         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14570         * modules/fseek (configure.ac): ... to here.
14571
14572 2011-05-07  Bruno Haible  <bruno@clisp.org>
14573
14574         fseek: Respect rules for use of AC_LIBOBJ.
14575         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14576         here...
14577         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14578
14579 2011-05-07  Bruno Haible  <bruno@clisp.org>
14580
14581         fseeko: Respect rules for use of AC_LIBOBJ.
14582         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14583         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14584         here...
14585         * modules/fseeko (configure.ac): ... to here.
14586
14587 2011-06-13  Bruno Haible  <bruno@clisp.org>
14588
14589         gnulib-tool: Allow comments in the 'Depends-on' section.
14590         * doc/gnulib.texi (Module description): Mention comment syntax in the
14591         Depends-on section.
14592         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14593
14594 2011-06-13  Bruno Haible  <bruno@clisp.org>
14595
14596         file-set.h: guard __attibute__ use, now that it's not always defined
14597         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14598         versions that support it.  This fixes a coreutils build failure with
14599         the vendor cc on HP-UX 11.31.
14600
14601 2011-06-12  Bruno Haible  <bruno@clisp.org>
14602
14603         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14604         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14605         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14606         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14607         (acl, aclsort): New declarations.
14608         (aclv_nontrivial): New declaration.
14609         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14610         (file_has_acl): Read also the second kind of HP-UX ACLs.
14611         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14612         kind of HP-UX ACLs if the first kind fails.
14613         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14614         second kind of HP-UX ACLs.
14615         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14616         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14617         agree.
14618         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14619         hpuxjfs.
14620         Handle hpuxjfs.
14621         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14622         hpuxjfs.
14623         Handle hpuxjfs.
14624         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14625         (func_test_same_acls): Use both lsacl and getacl.
14626         Handle hpuxjfs.
14627         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14628         (func_test_same_acls): Use both lsacl and getacl.
14629         Handle hpuxjfs.
14630
14631 2011-06-12  Bruno Haible  <bruno@clisp.org>
14632
14633         acl: Complete the 2010-08-10 fix.
14634         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14635         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14636         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14637         explicitly.
14638         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14639         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14640
14641 2011-06-12  Bruno Haible  <bruno@clisp.org>
14642
14643         spawn-pipe tests: Comments.
14644         * tests/test-spawn-pipe-child.c (main): Update comment.
14645         Reported by James Youngman <jay@gnu.org>.
14646
14647 2011-06-11  James Youngman  <jay@gnu.org>
14648
14649         New module 'stat-size'.
14650         * modules/stat-size: New module.  Provides macros for accessing
14651         file size information in instances of struct stat.  Depends on the
14652         fileblocks module because it calls st_blocks.
14653         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14654         * doc/gnulib.texi: Include stat-size.texi.
14655         * doc/stat-size.texi: Documentation for this module.
14656         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14657         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14658         AC_STRUCT_ST_BLOCKS.
14659
14660 2011-06-09  Bruno Haible  <bruno@clisp.org>
14661
14662         thread: Support pthreads-win32.
14663         * lib/glthread/thread.h (gl_thread_self): Define differently on
14664         pthreads-win32.
14665         (gl_null_thread): New declaration.
14666         (gl_thread_self_pointer): New macro.
14667         * lib/glthread/thread.c (gl_null_thread): New constant.
14668         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14669         gl_thread_self.
14670         * tests/test-tls.c: Likewise.
14671         Suggested by Paul Eggert. Reported by Eric Blake.
14672
14673 2011-06-09  Bruno Haible  <bruno@clisp.org>
14674
14675         thread: Fix confusion between NULL and 0.
14676         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14677         Reported by Paul Eggert.
14678
14679 2011-06-09  Bruno Haible  <bruno@clisp.org>
14680
14681         spawn-pipe tests: Avoid test failure on HP-UX 11.
14682         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14683         is closed.
14684
14685 2011-06-09  Bruno Haible  <bruno@clisp.org>
14686
14687         acl tests: Fix compilation error on HP-UX 11.
14688         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14689
14690 2011-06-09  Bruno Haible  <bruno@clisp.org>
14691
14692         rmdir: Avoid test failure on HP-UX 10.20.
14693         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14694         EEXIST.
14695
14696 2011-06-08  Eric Blake  <eblake@redhat.com>
14697
14698         perror: fix test on mingw
14699         * modules/perror-tests (Depends-on): Add dup2.
14700
14701         strerror_r-posix: fix on MacOS
14702         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14704         logic bug.
14705         * lib/strerror_r.c (strerror_r): Fix the bug.
14706         * lib/strerror.c (strerror): Likewise.
14707         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14708         problem.
14709         * doc/posix-functions/strerror.texi (strerror): Likewise.
14710         * doc/posix-functions/perror.texi (perror): Likewise.
14711         * tests/test-strerror.c (main): Enhance test.
14712         * tests/test-strerror_r.c (main): Likewise.
14713
14714 2011-06-08  Bruno Haible  <bruno@clisp.org>
14715
14716         gnulib-tool: Better isolation between different gnulib-tool invocations.
14717         * gnulib-tool: New option --witness-c-macro.
14718         (witness_c_macro): New variable.
14719         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14720         AM_CPPFLAGS define it as a C macro.
14721         (func_emit_tests_Makefile_am): Likewise.
14722         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14723         read it from there.
14724         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14725         m4_define, not AC_DEFUN.
14726         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14727         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14728         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14729         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14730         s|...|...|, to substitute the values of the GNULIB_* module indicator
14731         variables.
14732         * modules/dirent (Makefile.am): Likewise.
14733         * modules/fcntl-h (Makefile.am): Likewise.
14734         * modules/iconv-h (Makefile.am): Likewise.
14735         * modules/langinfo (Makefile.am): Likewise.
14736         * modules/locale (Makefile.am): Likewise.
14737         * modules/math (Makefile.am): Likewise.
14738         * modules/netdb (Makefile.am): Likewise.
14739         * modules/poll-h (Makefile.am): Likewise.
14740         * modules/pty (Makefile.am): Likewise.
14741         * modules/search (Makefile.am): Likewise.
14742         * modules/signal (Makefile.am): Likewise.
14743         * modules/spawn (Makefile.am): Likewise.
14744         * modules/stdio (Makefile.am): Likewise.
14745         * modules/stdlib (Makefile.am): Likewise.
14746         * modules/string (Makefile.am): Likewise.
14747         * modules/sys_ioctl (Makefile.am): Likewise.
14748         * modules/sys_select (Makefile.am): Likewise.
14749         * modules/sys_socket (Makefile.am): Likewise.
14750         * modules/sys_stat (Makefile.am): Likewise.
14751         * modules/sys_times (Makefile.am): Likewise.
14752         * modules/sys_utsname (Makefile.am): Likewise.
14753         * modules/sys_wait (Makefile.am): Likewise.
14754         * modules/termios (Makefile.am): Likewise.
14755         * modules/time (Makefile.am): Likewise.
14756         * modules/unistd (Makefile.am): Likewise.
14757         * modules/wchar (Makefile.am): Likewise.
14758
14759 2011-06-08  Eric Blake  <eblake@redhat.com>
14760
14761         strerror: simplify replacement
14762         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14763         * modules/strerror (configure.ac): No prereqs needed here...
14764         * modules/strerror-override (configure.ac): ...but this needs it.
14765         (Files): Add file for needed prereq macro.
14766
14767 2011-06-08  Bruno Haible  <bruno@clisp.org>
14768
14769         strerror_r-posix: Tweaks.
14770         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14771         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14772         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14773         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14774         (gl_FUNC_STRERROR_R): ... to here.
14775         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14776
14777 2011-06-07  Eric Blake  <eblake@redhat.com>
14778
14779         perror: document fixed bugs
14780         * doc/posix-functions/perror.texi (perror): Document recent
14781         patches.
14782
14783 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14784
14785         stat-time: get_stat_birthtime failure is better-defined
14786         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14787         return a timestamp whose tv_sec and tv_nsec values are both -1.
14788         Previously, the spec said only that the tv_nsec value was negative.
14789         This upward-compatible change simplifies GNU tar a bit.
14790
14791 2011-06-07  Eric Blake  <eblake@redhat.com>
14792
14793         strerror_r-posix: work around cygwin 1.7.9
14794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14795         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14796         bug without replacing strerror_r.
14797         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14798         strerror_r is buggy, but without requiring strerror_r compilation.
14799         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14800
14801         test-perror: relax test to ignore cygwin bug
14802         * tests/test-perror2.c (main): Relax test on requiring detection
14803         of stream errors, and use unbuffered stream.
14804         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14805         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14806         * doc/posix-functions/fputc.texi (fputc): Likewise.
14807         * doc/posix-functions/fputs.texi (fputs): Likewise.
14808         * doc/posix-functions/fputws.texi (fputws): Likewise.
14809         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14810         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14811         * doc/posix-functions/getopt.texi (getopt): Likewise.
14812         * doc/posix-functions/perror.texi (perror): Likewise.
14813         * doc/posix-functions/printf.texi (printf): Likewise.
14814         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14815         * doc/posix-functions/psignal.texi (psignal): Likewise.
14816         * doc/posix-functions/putc.texi (putc): Likewise.
14817         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14818         Likewise.
14819         * doc/posix-functions/putchar.texi (putchar): Likewise.
14820         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14821         Likewise.
14822         * doc/posix-functions/puts.texi (puts): Likewise.
14823         * doc/posix-functions/putwc.texi (putwc): Likewise.
14824         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14825         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14826         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14827         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14828         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14829         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14830         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14831         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14832
14833 2011-05-22  Bruno Haible  <bruno@clisp.org>
14834
14835         strerror: Move AC_LIBOBJ invocations to module description.
14836         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14837         gl_PREREQ_STRERROR invocations from here...
14838         * modules/strerror (configure.ac): ... to here.
14839
14840 2011-05-21  Bruno Haible  <bruno@clisp.org>
14841
14842         perror: Use common idiom.
14843         * modules/perror (configure.ac): Reorder statements.
14844
14845 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14846
14847         tests: fix usage message in 'mktempd_'
14848         * tests/init.sh (mktempd_): In the usage message, use literal
14849         'mktempd_', not '$ME' (which is even undefined), as the name of
14850         the subroutine.
14851
14852 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14853
14854         tests init: new function 'fatal_', for hard errors
14855         Before this patch, the only way offered by tests/init.sh to
14856         properly signal a hard error was the `framework_failure_'
14857         function.  But the error message issued by that function,
14858         as its name would suggest, refers to a set-up failure in the
14859         testsuite, while hard errors can obviously also be due to
14860         other reasons.  The best way to fix this inconsistency is to
14861         introduce a new function with a more general error message.
14862         * tests/init.sh (fatal_): New function.
14863
14864 2011-06-06  Eric Blake  <eblake@redhat.com>
14865
14866         canonicalize-lgpl: use common idiom
14867         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14868         over newer POSIX -Rf.
14869         Reported by Bruno Haible.
14870
14871         canonicalize-lgpl: work around AIX realpath bug
14872         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14873         * doc/posix-functions/realpath.texi (realpath): Document it.
14874         Reported by Bruno Haible.
14875
14876         strerror: work around FreeBSD bug
14877         * lib/strerror.c (strerror): Special case 0.
14878         Reported by Bruno Haible.
14879
14880         strerror-override: avoid bloating errno module
14881         * modules/errno (Files, configure.ac): Move replacement strings...
14882         * modules/strerror-override: ...to new module.
14883         * modules/strerror (Depends-on): Add strerror-override.
14884         * modules/strerror_r-posix (Depends-on): Likewise.
14885         * MODULES.html.sh: Document new module.
14886         Reported by Bruno Haible.
14887
14888 2011-06-06  Bruno Haible  <bruno@clisp.org>
14889
14890         spawn-pipe tests: Rename program.
14891         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14892         * tests/test-spawn-pipe-child.c: Update comment.
14893         * tests/test-spawn-pipe.sh: Update.
14894         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14895
14896         spawn-pipe tests: Link the child program only against libc.
14897         * tests/test-spawn-pipe-child.c: New file, extracted from
14898         tests/test-spawn-pipe.c.
14899         (main): Expect only one argument.
14900         (is_open): New function, copied from tests/test-pipe.c.
14901         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14902         (child_main): Remove function.
14903         (test_pipe): Pass only one argument to the child program.
14904         (main): Remove child process code. Expect the child program's name as
14905         first argument.
14906         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14907         argument.
14908         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14909         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14910         test-spawn-pipe-child against no libraries.
14911
14912 2011-06-06  Bruno Haible  <bruno@clisp.org>
14913
14914         careadlinkat: Avoid mismatch between ssize_t and int.
14915         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14916         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14917
14918 2011-06-06  Jim Meyering  <meyering@redhat.com>
14919
14920         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14921         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14922         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14923
14924 2011-06-05  Bruno Haible  <bruno@clisp.org>
14925
14926         ansi-c++-opt: Interoperability with libtool.
14927         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14928         set the variable to "no", not to ":".
14929         * NEWS: Mention the change.
14930
14931 2011-06-05  Bruno Haible  <bruno@clisp.org>
14932
14933         acl: Fix test failure on AIX 7.
14934         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14935         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14936
14937 2011-06-05  Bruno Haible  <bruno@clisp.org>
14938
14939         pipe-filter-ii: Fix test failure on AIX and IRIX.
14940         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14941         with EAGAIN, retry with a smaller buffer size.
14942
14943 2011-06-05  Bruno Haible  <bruno@clisp.org>
14944
14945         localename: Fix link dependencies.
14946         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14947         * modules/localename-tests (Makefile.am): Link test-localename with
14948         $(LIBTHREAD).
14949
14950 2011-06-05  Bruno Haible  <bruno@clisp.org>
14951
14952         error: Avoid gcc warning.
14953         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14954
14955 2011-06-05  Bruno Haible  <bruno@clisp.org>
14956
14957         unsetenv: Avoid gcc warning.
14958         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14959
14960 2011-06-05  Bruno Haible  <bruno@clisp.org>
14961
14962         setenv: Avoid gcc warning.
14963         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14964
14965 2011-06-05  Bruno Haible  <bruno@clisp.org>
14966
14967         sys_select: Ensure memset is declared also on AIX 7.
14968         * lib/sys_select.in.h: Include <string.h> also on AIX.
14969         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14970         self-contained also on AIX 7.1.
14971
14972 2011-06-04  Jim Meyering  <meyering@redhat.com>
14973
14974         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14975         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14976         function name, "error".
14977         (_gl_translatable_diag_func_re): New configurable variable.
14978
14979 2011-06-04  Bruno Haible  <bruno@clisp.org>
14980
14981         getopt: Avoid gcc warning.
14982         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14983
14984 2011-06-04  Bruno Haible  <bruno@clisp.org>
14985
14986         strerror_r: Fix comments.
14987         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14988         commit.
14989
14990 2011-06-04  Bruno Haible  <bruno@clisp.org>
14991
14992         perror: Fix compilation error.
14993         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14994         Undefine fprintf, not sprintf.
14995         * modules/perror (Depends-on): Remove intprops, verify.
14996
14997 2011-06-04  Bruno Haible  <bruno@clisp.org>
14998
14999         setlocale: Enable replacement on Cygwin 1.5.
15000         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15001         Cygwin 1.5.x.
15002         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15003         LC_CTYPE category also exists on Cygwin 1.5.x.
15004
15005 2011-06-04  Bruno Haible  <bruno@clisp.org>
15006
15007         strerror-override: Don't disable symbol renamings.
15008         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15009         * lib/strerror-override.c: Include config.h.
15010         (strerror_override): Don't undefine.
15011
15012 2011-06-03  Bruno Haible  <bruno@clisp.org>
15013
15014         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15015         * lib/localename.h: Update copyright header.
15016         * lib/localename.c: Likewise.
15017         * lib/relocatable.h: Likewise.
15018         * lib/relocatable.c: Likewise.
15019
15020 2011-06-02  Bruno Haible  <bruno@clisp.org>
15021
15022         doc: Fix a module name.
15023         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15024
15025 2011-06-02  Bruno Haible  <bruno@clisp.org>
15026
15027         pipe2: Remove dependency on 'nonblocking' module.
15028         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15029         O_NONBLOCK is defined by gnulib.
15030         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15031         is zero.
15032         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15033         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15034         defined by gnulib.
15035         (get_nonblocking_flag): New function.
15036         (main): Test O_NONBLOCK flag only if it is nonzero.
15037         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15038
15039 2011-06-03  Jim Meyering  <meyering@redhat.com>
15040
15041         maint: three new prohibit-header-without-use rules
15042         Prohibit use of cloexec.h, posixver.h, same.h without use.
15043         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15044         (sc_prohibit_posixver_without_use): Likewise.
15045         (sc_prohibit_same_without_use): Likewise.
15046
15047 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15048
15049         allocator: 'die' routine is now given requested size
15050         * lib/allocator.h (struct allocator.die): New size arg.
15051         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15052         If the actual problem is an ssize_t limitation, not a size_t or
15053         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15054
15055 2011-06-01  Eric Blake  <eblake@redhat.com>
15056
15057         strerror: drop strerror_r dependency
15058         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15059         * lib/strerror-override.c (strerror_override): ...to new file.
15060         * lib/strerror-override.h: Add prototype.
15061         * lib/strerror-impl.h: Delete.
15062         * lib/strerror.c (strerror): New implementation.
15063         * modules/errno (Files): Add new files.
15064         (configure.ac): Compile new file as appropriate.
15065         * modules/strerror (Files): Drop unused file.
15066         (Depends-on): Drop strerror_r-posix.
15067         * MODULES.html.sh: Document strerror_r-posix.
15068         Requested by Sam Steingold.
15069
15070         perror: call strerror_r directly
15071         * modules/perror (Files): Drop strerror-impl.h.
15072         * lib/perror.c (perror): Use our own stack buffer, rather than
15073         calling a wrapper that uses static storage.
15074         * doc/posix-functions/perror.texi (perror): Document a limitation
15075         of our replacement.
15076
15077         strerror_r: fix includes for FreeBSD
15078         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15079         since we use abort on some platforms.
15080         Reported by Matthias Bolte.
15081
15082 2011-05-31  Bruno Haible  <bruno@clisp.org>
15083
15084         Fix link errors in tests: openat-die uses gettext-h.
15085         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15086         against $(LIBINTL).
15087         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15088         against $(LIBINTL).
15089         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15090         $(LIBINTL).
15091         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15092         against $(LIBINTL).
15093         * modules/linkat-tests (Makefile.am): Link test-linkat against
15094         $(LIBINTL).
15095         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15096         $(LIBINTL).
15097         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15098         against $(LIBINTL).
15099         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15100         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15101         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15102         $(LIBINTL).
15103         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15104         $(LIBINTL).
15105         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15106         $(LIBINTL).
15107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15108
15109 2011-05-31  Bruno Haible  <bruno@clisp.org>
15110
15111         Fix link errors in tests: wait-process uses gettext-h.
15112         * modules/nonblocking-pipe-tests (Makefile.am): Set
15113         test_nonblocking_pipe_main_LDADD.
15114         * modules/nonblocking-socket-tests (Makefile.am): Link
15115         test-nonblocking-socket-main against $(LIBINTL).
15116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15117
15118 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15119
15120         assert-h: work around 'verify' incompatibility
15121         * lib/verify.h: Use @...@ directives, not ifdef.
15122         * modules/assert-h (assert.h): Implement the directives.
15123         (assert.h): Substitute the symbol-prefix more consistently.
15124
15125 2011-05-29  Jim Meyering  <meyering@redhat.com>
15126
15127         trim: remove three superfluous assignments
15128         * lib/trim.c (trim2): Remove three superfluous assignments
15129         and correct brace positioning.
15130
15131 2011-05-29  Bruno Haible  <bruno@clisp.org>
15132
15133         wctype-h: Avoid namespace pollution on Solaris 2.6.
15134         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15135         identifiers.
15136         * doc/posix-headers/wctype.texi: Mention the problem.
15137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15138
15139 2011-05-28  Jim Meyering  <meyering@redhat.com>
15140
15141         parse-datetime.y: accommodate -Wstrict-overflow
15142         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15143         placate -Wstrict-overflow.
15144
15145         trim: avoid a warning from -O2 -Wstrict-overflow
15146         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15147
15148 2011-05-29  Bruno Haible  <bruno@clisp.org>
15149
15150         gnulib-tool: Fix bug in yesterday's commit.
15151         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15152         twice.
15153
15154 2011-05-29  Bruno Haible  <bruno@clisp.org>
15155
15156         Allow multiple gnulib generated include files to be combined.
15157         * gnulib-tool (func_compute_include_guard_prefix): New function.
15158         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15159         ${gl_include_guard_prefix} references.
15160         (func_import, func_create_testdir): Invoke
15161         func_compute_include_guard_prefix.
15162         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15163         * lib/ctype.in.h: Likewise.
15164         * lib/dirent.in.h: Likewise.
15165         * lib/errno.in.h: Likewise.
15166         * lib/fcntl.in.h: Likewise.
15167         * lib/float.in.h: Likewise.
15168         * lib/getopt.in.h: Likewise.
15169         * lib/iconv.in.h: Likewise.
15170         * lib/langinfo.in.h: Likewise.
15171         * lib/locale.in.h: Likewise.
15172         * lib/math.in.h: Likewise.
15173         * lib/netdb.in.h: Likewise.
15174         * lib/netinet_in.in.h: Likewise.
15175         * lib/poll.in.h: Likewise.
15176         * lib/pthread.in.h: Likewise.
15177         * lib/pty.in.h: Likewise.
15178         * lib/sched.in.h: Likewise.
15179         * lib/se-selinux.in.h: Likewise.
15180         * lib/search.in.h: Likewise.
15181         * lib/signal.in.h: Likewise.
15182         * lib/spawn.in.h: Likewise.
15183         * lib/stdarg.in.h: Likewise.
15184         * lib/stddef.in.h: Likewise.
15185         * lib/stdint.in.h: Likewise.
15186         * lib/stdio.in.h: Likewise.
15187         * lib/stdlib.in.h: Likewise.
15188         * lib/string.in.h: Likewise.
15189         * lib/strings.in.h: Likewise.
15190         * lib/sys_file.in.h: Likewise.
15191         * lib/sys_ioctl.in.h: Likewise.
15192         * lib/sys_select.in.h: Likewise.
15193         * lib/sys_socket.in.h: Likewise.
15194         * lib/sys_stat.in.h: Likewise.
15195         * lib/sys_time.in.h: Likewise.
15196         * lib/sys_times.in.h: Likewise.
15197         * lib/sys_uio.in.h: Likewise.
15198         * lib/sys_utsname.in.h: Likewise.
15199         * lib/sys_wait.in.h: Likewise.
15200         * lib/sysexits.in.h: Likewise.
15201         * lib/termios.in.h: Likewise.
15202         * lib/time.in.h: Likewise.
15203         * lib/unistd.in.h: Likewise.
15204         * lib/wchar.in.h: Likewise.
15205         * lib/wctype.in.h: Likewise.
15206         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15207         * modules/ctype (Makefile.am): Likewise.
15208         * modules/dirent (Makefile.am): Likewise.
15209         * modules/errno (Makefile.am): Likewise.
15210         * modules/fcntl-h (Makefile.am): Likewise.
15211         * modules/float (Makefile.am): Likewise.
15212         * modules/getopt-posix (Makefile.am): Likewise.
15213         * modules/iconv-h (Makefile.am): Likewise.
15214         * modules/langinfo (Makefile.am): Likewise.
15215         * modules/locale (Makefile.am): Likewise.
15216         * modules/math (Makefile.am): Likewise.
15217         * modules/netdb (Makefile.am): Likewise.
15218         * modules/netinet_in (Makefile.am): Likewise.
15219         * modules/poll-h (Makefile.am): Likewise.
15220         * modules/pthread (Makefile.am): Likewise.
15221         * modules/pty (Makefile.am): Likewise.
15222         * modules/sched (Makefile.am): Likewise.
15223         * modules/search (Makefile.am): Likewise.
15224         * modules/selinux-h (Makefile.am): Likewise.
15225         * modules/signal (Makefile.am): Likewise.
15226         * modules/spawn (Makefile.am): Likewise.
15227         * modules/stdarg (Makefile.am): Likewise.
15228         * modules/stddef (Makefile.am): Likewise.
15229         * modules/stdint (Makefile.am): Likewise.
15230         * modules/stdio (Makefile.am): Likewise.
15231         * modules/stdlib (Makefile.am): Likewise.
15232         * modules/string (Makefile.am): Likewise.
15233         * modules/strings (Makefile.am): Likewise.
15234         * modules/sys_file (Makefile.am): Likewise.
15235         * modules/sys_ioctl (Makefile.am): Likewise.
15236         * modules/sys_select (Makefile.am): Likewise.
15237         * modules/sys_socket (Makefile.am): Likewise.
15238         * modules/sys_stat (Makefile.am): Likewise.
15239         * modules/sys_time (Makefile.am): Likewise.
15240         * modules/sys_times (Makefile.am): Likewise.
15241         * modules/sys_uio (Makefile.am): Likewise.
15242         * modules/sys_utsname (Makefile.am): Likewise.
15243         * modules/sys_wait (Makefile.am): Likewise.
15244         * modules/sysexits (Makefile.am): Likewise.
15245         * modules/termios (Makefile.am): Likewise.
15246         * modules/time (Makefile.am): Likewise.
15247         * modules/unistd (Makefile.am): Likewise.
15248         * modules/wchar (Makefile.am): Likewise.
15249         * modules/wctype-h (Makefile.am): Likewise.
15250         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15251
15252 2011-05-29  Bruno Haible  <bruno@clisp.org>
15253
15254         assert-h: Allow multiple gnulib generated replacements to coexist.
15255         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15256
15257 2011-05-29  Bruno Haible  <bruno@clisp.org>
15258
15259         argp: Allow coexistence with strerror_r-posix module.
15260         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15261         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15262         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15263         not the glibc signature.
15264
15265 2011-05-28  Bruno Haible  <bruno@clisp.org>
15266
15267         gnulib-tool: Alternative structure of testdirs, similar to --import.
15268         * gnulib-tool: New option --single-configure.
15269         (func_usage): Document it.
15270         (single_configure): New variable.
15271         (func_modules_transitive_closure_separately,
15272         func_modules_transitive_closure_separately,
15273         func_determine_use_libtests, func_modules_add_dummy_separately,
15274         func_modules_to_filelist_separately): New functions, extracted from
15275         func_import.
15276         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15277         (func_import): Use the new functions.
15278         (func_create_testdir): Set final_modules. Handle $single_configure =
15279         true case.
15280
15281 2011-05-28  Bruno Haible  <bruno@clisp.org>
15282
15283         getloadavg: Remove an unreliable safety check.
15284         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15285         getloadavg.c is in place.
15286         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15287         Reported by Sam Steingold <sds@gnu.org>.
15288
15289 2011-05-28  Bruno Haible  <bruno@clisp.org>
15290
15291         doc: Cleanup yet another file produced by texinfo.tex.
15292         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15293
15294 2011-05-28  Bruno Haible  <bruno@clisp.org>
15295
15296         Finish the conditional dependencies mechanism.
15297         * gnulib-tool: New option --no-conditional-dependencies.
15298         (func_usage): Document it. Don't mark --conditional-dependencies as
15299         experimental.
15300         (cond_dependencies): The possible values can now be true, false, empty.
15301         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15302         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15303         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15304
15305 2011-05-28  Bruno Haible  <bruno@clisp.org>
15306
15307         doc: Use a recent texinfo.tex.
15308         * doc/Makefile (tex_opts): New variable.
15309         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15310
15311 2011-05-28  Jim Meyering  <meyering@redhat.com>
15312
15313         intprops.h: adjust comment to match code change
15314         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15315         only once, it *may* have side effects.  Also fix an unrelated typo.
15316         (_GL_INT_SIGNED): Likewise.
15317
15318 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15319
15320         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15321
15322 2011-05-26  Bruno Haible  <bruno@clisp.org>
15323
15324         mbsrchr: Avoid collision with system function on Interix.
15325         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15326         Reported by Markus Duft <mduft@gentoo.org>.
15327
15328 2011-05-15  James Youngman  <jay@gnu.org>
15329
15330         getopt: for ambiguous options, enumerate the possibilities.
15331         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15332         the ambiguous options when an ambiguous prefix is given. This was
15333         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15334         glibc change was
15335         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15336
15337 2011-05-25  Eric Blake  <eblake@redhat.com>
15338
15339         getcwd: work around mingw bug
15340         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15341         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15342         Reported by Matthias Bolte.
15343
15344 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15345
15346         test-intprops: disable -Wtype-limits diagnostics
15347         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15348         diagnostics.  Otherwise, the integer overflow macros generate many
15349         diagnostics.  Reported by Jim Meyering in
15350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15351
15352         intprops: shorten, to pacify gcc -Woverlength-strings
15353         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15354         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15355         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15356         likely to run afoul of C compiler limits for string constant lengths.
15357         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15358
15359 2011-05-24  Eric Blake  <eblake@redhat.com>
15360
15361         docs: document recently fixed glibc printf bug
15362         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15363         * doc/posix-functions/printf.texi (printf): Likewise.
15364         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15365         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15366
15367         closein-tests: convert to init.sh
15368         * modules/closein-tests (Files): Add init.sh
15369         * tests/test-closein.sh Use it.
15370
15371         yesno-tests: convert to init.sh
15372         * modules/yesno-tests (Files): Add init.sh.
15373         * tests/test-yesno.sh: Use it.
15374
15375         atexit-tests: ensure reliable exit status
15376         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15377         Reported by Bruno Haible.
15378
15379 2011-05-24  Bruno Haible  <bruno@clisp.org>
15380
15381         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15382         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15383         gl_PREREQ_STRERROR_R invocations from here...
15384         * modules/strerror_r-posix (configure.ac): ... to here.
15385
15386 2011-05-24  Eric Blake  <eblake@redhat.com>
15387
15388         strerror_r: fix missing header
15389         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15390
15391         strerror_r: fix AIX test failures
15392         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15393         ERANGE failure.
15394
15395         strerror_r: fix Solaris test failures
15396         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15397         failures.
15398         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15399
15400         strerror_r: enforce POSIX recommendations
15401         * lib/strerror_r.c (safe_copy): New helper method.
15402         (strerror_r): Guarantee a non-empty string.
15403         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15404         recent POSIX rulings and to match our strerror guarantees.
15405         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15406
15407 2011-05-24  Jim Meyering  <meyering@redhat.com>
15408
15409         test-perror2.c: avoid warning about unused variable
15410         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15411
15412 2011-05-24  Eric Blake  <eblake@redhat.com>
15413
15414         perror: avoid spurious test failure on HP-UX
15415         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15416
15417         tests: fix logic bug in init.sh
15418         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15419         shell.
15420
15421 2011-05-24  Jim Meyering  <meyering@redhat.com>
15422
15423         utimensat: do not reference an out-of-scope buffer
15424         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15425         declared in an inner scope, yet "times" would be dereferenced outside
15426         the scope in which "ts" was valid.
15427         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15428         of ts[2] "out/up", so that the use of aliased "times" (via
15429         "times = ts;") does not end up referencing an out-of-scope "ts"
15430
15431         opendir-safer.c: don't clobber errno; don't close negative FD
15432         * lib/opendir-safer.c (opendir_safer):
15433         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15434         file descriptor, and more importantly, don't clobber the
15435         offending errno value with EINVAL.  Before, upon failure
15436         of dup_safer, we would pass the negative file descriptor to
15437         fdopendir, which would clobber errno.
15438
15439 2011-05-23  Bruno Haible  <bruno@clisp.org>
15440
15441         idcache: Fix module description.
15442         * modules/idcache (Include): Set to "idcache.h".
15443
15444 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15445
15446         gnulib-tool: fix portability problem with MacOS sed
15447         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15448         before the "}".  Problem reported by Leo in
15449         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15450         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15451         sed_extract_condition1, sed_extract_condition2.
15452
15453 2011-05-23  Bruno Haible  <bruno@clisp.org>
15454
15455         hash: Simplify autoconf macro.
15456         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15457
15458 2011-05-23  Bruno Haible  <bruno@clisp.org>
15459
15460         getugroups: Fix module description.
15461         * modules/getugroups (Include): Set to "getugroups.h".
15462
15463 2011-05-23  Bruno Haible  <bruno@clisp.org>
15464
15465         linkat: Simplify autoconf macro.
15466         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15467
15468 2011-05-23  Bruno Haible  <bruno@clisp.org>
15469             Eric Blake  <eblake@redhat.com>
15470
15471         linkat, renameat: Update dependencies.
15472         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15473         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15474         symlinkat.
15475
15476 2011-05-23  Jim Meyering  <meyering@redhat.com>
15477
15478         maint.mk: more tight_scope improvements
15479         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15480         (_gl_TS_headers): Define only in if-0'd block.
15481         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15482         sometimes we must *not* use it.  Adjust uses accordingly.
15483         (sc_tight_scope): Use much simpler grep-based test to determine
15484         whether we skip this rule.
15485
15486         maint.mk: generalize/improve the tight-scope rule
15487         * top/maint.mk: Emit a warning when the test is skipped.
15488         (_gl_TS_dir): Add $(srcdir)/ prefix.
15489         (_gl_TS_function_match): Simplify, rather than trying
15490         to enumerate common types.  Otherwise, it would fail to match an
15491         "extern unsigned char const *" declaration in idutils.
15492         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15493         a way to support use of that type of macro.
15494         (_gl_TS_var_match): Simplify regexp.
15495         (_gl_TS_obj_files): New configurable variable.
15496         (_gl_TS_headers): Likewise.
15497
15498 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15499
15500         verify: fix bug when gnulib <assert.h> is also included
15501         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15502         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15503         Perhaps there's a better way, but this fixes the immediate problem.
15504         Problem reported by Bruno Haible in
15505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15506
15507 2011-05-22  Bruno Haible  <bruno@clisp.org>
15508
15509         xgetcwd: Simplify autoconf macro.
15510         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15511
15512 2011-05-22  Bruno Haible  <bruno@clisp.org>
15513
15514         New module 'mktime-internal'.
15515         * modules/mktime-internal: New file.
15516         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15517         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15518         mktime_internal as a C macro if libc has __mktime_internal.
15519         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15520         conditions.
15521         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15522
15523 2011-05-22  Bruno Haible  <bruno@clisp.org>
15524
15525         timegm: Correct mktime replacement statements.
15526         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15527         defining mktime as a C macro. This completes a 2009-07-28 commit.
15528
15529 2011-05-22  Bruno Haible  <bruno@clisp.org>
15530
15531         timegm: Simplify autoconf macro.
15532         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15533
15534 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15535
15536         clock-time: change to LGPLv2+.
15537         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15538         BSD-like but we have no mark for that; this is good enough for now.
15539
15540 2011-05-21  Bruno Haible  <bruno@clisp.org>
15541
15542         strerror_r: Fix comments.
15543         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15544
15545 2011-05-21  Bruno Haible  <bruno@clisp.org>
15546
15547         relocatable-prog-wrapper: Fix possible link error.
15548         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15549         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15550         (gl_FUNC_SETENV): ... to here.
15551         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15552         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15553
15554 2011-05-21  Bruno Haible  <bruno@clisp.org>
15555
15556         relocatable-prog-wrapper: Assume strerror() exists.
15557         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15558         m4/strerror.m4.
15559         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15560         * lib/relocwrapper.c: Remove mention of strerror module.
15561         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15562         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15563         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15564         C macro.
15565
15566 2011-05-21  Bruno Haible  <bruno@clisp.org>
15567
15568         select: Simplify replacement idiom.
15569         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15570         Win32 platforms.
15571         * lib/sys_select.in.h (select): Simplify accordingly.
15572         * modules/select (Depends-on): Likewise.
15573
15574 2011-05-21  Bruno Haible  <bruno@clisp.org>
15575
15576         mkdir-p: Simplify autoconf macro.
15577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15578         gl_FUNC_LCHOWN.
15579
15580 2011-05-21  Eric Blake  <eblake@redhat.com>
15581
15582         strerror_r: avoid clobbering strerror on cygwin
15583         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15584         fall back instead to sys_errlist.
15585         * modules/strerror (configure.ac): Add witness.
15586         * tests/test-strerror_r.c (main): Enhance test.
15587         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15588         * tests/test-perror2.c (main): Free memory before exit.
15589
15590 2011-05-21  Bruno Haible  <bruno@clisp.org>
15591
15592         mkdtemp: Use gnulib naming conventions.
15593         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15594         * modules/mkdtemp (configure.ac): Update.
15595
15596 2011-05-20  Eric Blake  <eblake@redhat.com>
15597
15598         strerror_r: avoid corrupting errno on Solaris
15599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15600         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15601
15602         strerror_r: avoid compiler warning
15603         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15604
15605         strerror_r: simplify AIX code
15606         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15607
15608         test-perror: avoid spurious failure on FreeBSD
15609         * modules/perror-tests (Depends-on): Add strerror, now that
15610         strerror_r no longer pulls it in.
15611
15612 2011-05-20  Bruno Haible  <bruno@clisp.org>
15613
15614         strerror_r-posix: Remove unused dependencies.
15615         * modules/strerror_r-posix (Depends-on): Remove strerror.
15616         Reported by Eric Blake.
15617
15618 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15619
15620         intprops: remove assumption about A|B representation
15621         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15622         is a valid integer if both A and B are.  Although this is true for
15623         all known practical hosts, the C standard doesn't guarantee it,
15624         and the code need not assume it.  Also, this change may work around
15625         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15627
15628 2011-05-20  Eric Blake  <eblake@redhat.com>
15629
15630         perror: work around FreeBSD bug
15631         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15632         is broken.  Move AC_LIBOBJ...
15633         * modules/perror (configure.ac): Here.
15634         * doc/posix-functions/perror.texi (perror): Document this.
15635         * tests/test-perror2.c (main): Enhance test.
15636
15637         test-perror: check for strerror interactions
15638         * tests/macros.h (STREQ): Add macro.
15639         * modules/perror-tests (Files): Add second test.
15640         * tests/test-perror2.c (main): New file.
15641         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15642
15643         test-perror: rewrite to use init script
15644         * modules/perror-tests (Files): Add init.sh.
15645         * tests/test-perror.sh: Use temporary directory.
15646
15647 2011-05-20  Jim Meyering  <meyering@redhat.com>
15648
15649         maint: replace misused "a" with "an"
15650         * doc/intprops.texi: "a integer"
15651         * doc/regex.texi: "a explanation"
15652         * lib/alignof.h: "a object"
15653         * lib/argmatch.h: "a explanation"
15654         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15655         * lib/stdint.in.h: "a integer"
15656         * lib/userspec.c: "a owner"
15657         * doc/gnulib.texi: Fix "a idea", and reword.
15658
15659 2011-05-19  Jim Meyering  <meyering@redhat.com>
15660
15661         maint: correct misuse of "a" and "an"
15662         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15663         * lib/argp-help.c: "an docum...": s/an/a/
15664         * lib/argp-parse.c: "An vector": s/An/A/
15665         * lib/execute.c: "an native": s/an/a/
15666         * lib/spawn-pipe.c: Likewise.
15667         * lib/gc.h: "an Gc_rc": s/an/a/
15668         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15669         * lib/fts.c: "an stat.st_dev": s/an/a/
15670
15671 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15672
15673         intprops-tests: work around HP-UX 11.23 cc bug with constants
15674         * tests/test-intprops.c (VERIFY): New macro.
15675         (main): Use it, instead of verify, to work around the compiler bug; see
15676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15677
15678         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15679         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15680         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15681         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15682         (_GL_REMAINDER_OVERFLOW): Use it.
15683
15684         intprops-tests: revert unsigned part of previous change
15685         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15686         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15687         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15689
15690 2011-05-19  Bruno Haible  <bruno@clisp.org>
15691
15692         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15693         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15694         strerror_r() returned without filling the buffer.
15695         Reported by Eric Blake.
15696
15697 2011-05-19  Eric Blake  <eblake@redhat.com>
15698
15699         strerror_r: guarantee unchanged errno
15700         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15701         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15702         failure.
15703         * tests/test-strerror_r.c (main): Enhance test.
15704
15705 2011-05-19  Bruno Haible  <bruno@clisp.org>
15706
15707         strerror_r: Reorder #if blocks.
15708         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15709         for consistency with the previous commit.
15710
15711 2011-05-19  Bruno Haible  <bruno@clisp.org>
15712
15713         perror: Avoid clobbering the strerror buffer when possible.
15714         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15715         * lib/strerror.c: Include it.
15716         * modules/strerror (Files): Add lib/strerror-impl.h.
15717         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15718         (my_strerror): New function, defined through lib/strerror-impl.h.
15719         (perror): Use it instead of strerror.
15720         * modules/perror (Files): Add lib/strerror-impl.h.
15721         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15722
15723 2011-05-19  Eric Blake  <eblake@redhat.com>
15724
15725         strerror_r: fix on newer cygwin
15726         * lib/strerror_r.c (strerror_r): Cygwin now has
15727         __xpg_strerror_r, use it.
15728
15729 2011-05-19  Bruno Haible  <bruno@clisp.org>
15730
15731         strerror_r: Avoid clobbering the strerror buffer when possible.
15732         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15733         (sys_nerr, sys_errlist): New declarations.
15734         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15735         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15736         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15737
15738 2011-05-19  Bruno Haible  <bruno@clisp.org>
15739
15740         strerror_r: Fix test failure on mingw.
15741         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15742         EXTEND_STRERROR_R.
15743         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15744         macros from errno.in.h instead.
15745
15746 2011-05-19  Eric Blake  <eblake@redhat.com>
15747
15748         strerror: relax test for Solaris
15749         * tests/test-strerror.c (main): Permit Solaris behavior.
15750         * tests/test-strerror_r.c (main): Likewise.
15751
15752         strerror: enforce POSIX ruling on strerror(0)
15753         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15754         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15755         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15756         * doc/posix-functions/strerror.texi (strerror): Document it.
15757         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15758         * tests/test-strerror.c (main): Strengthen test.
15759         * tests/test-strerror_r.c (main): Likewise.
15760
15761 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         intprop-tests: port to older and more-pedantic compilers
15764         * modules/intprops-tests (Files): Add tests/macros.h.
15765         * tests/test-intprops.c: Include macros.h.
15766         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15767         it's no longer documented to expand to an integer constant expression.
15768         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15769         argument is floating point, as it's no longer documented to expand
15770         to an integer constant expression in that case.
15771         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15772         compiler bugs reported by Bruno Haible.  See
15773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15774         (U0, U1): New constants, to work around the same bugs.  Also,
15775         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15776
15777         intprops: work around C compiler bugs
15778         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15779         bug in Sun C 5.11 2010/08/13 and other compilers; see
15780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15781
15782         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15783         * doc/intprops.texi (Integer Type Determination): Fix
15784         documentation for TYPE_IS_INTEGER: it returns an constant
15785         expression, not an integer constant expression.  Fix doc for
15786         TYPE_SIGNED: it returns an integer constant expression only if its
15787         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15788         hardly worth documented that way....)
15789
15790 2011-05-18  Bruno Haible  <bruno@clisp.org>
15791
15792         strerror_r: Avoid clobbering the strerror buffer when possible.
15793         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15794         Handle gnulib defined errno values here. When strerror() returns NULL
15795         or an empty string, return EINVAL.
15796         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15797         gnulib defined errno values here.
15798         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15799
15800 2011-05-18  Eric Blake  <eblake@redhat.com>
15801
15802         fnmatch: avoid compiler warning
15803         * lib/fnmatch_loop.c (FCT): Use correct type.
15804         Reported by Matthias Bolte.
15805
15806 2011-05-13  Jim Meyering  <meyering@redhat.com>
15807
15808         maint.mk: three new prohibit_<HDR>_without_use rules
15809         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15810         (sc_prohibit_stdio-safer_without_use): Likewise.
15811         (sc_prohibit_xfreopen_without_use): Likewise.
15812
15813 2011-05-17  Jim Meyering  <meyering@redhat.com>
15814
15815         announce-gen: fail if the NEWS delta is empty
15816         If there's nothing noteworthy in NEWS, then either you forgot
15817         or you shouldn't be releasing.
15818         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15819
15820 2011-05-17  Pádraig Brady <P@draigBrady.com>
15821
15822         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15823         reserved symbols starting with double underscore from the check.
15824
15825 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15826
15827         intprops: add doc
15828         * doc/intprops.texi: New file, documenting intprops.
15829         * doc/gnulib.texi (Particular Modules): Include it.
15830
15831         verify: add doc to gnulib manual and fix example
15832         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15833         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15834         (Compile-time Assertions): Fix example so it can't overflow.
15835
15836 2011-05-17  Jim Meyering  <meyering@redhat.com>
15837
15838         warnings.m4: don't usurp save_CPPFLAGS variable name
15839         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15840
15841         doc: fix typo
15842         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15843
15844 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15845             Bruno Haible  <bruno@clisp.org>
15846
15847         doc: Tweak recent change.
15848         * README (Portability guidelines): Tweak new text.
15849         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15850         Interix 6.1.
15851
15852 2011-05-16  Eric Blake  <eblake@redhat.com>
15853
15854         inttypes: avoid autoconf warning
15855         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15856         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15857
15858 2011-05-16  Sam Steingold <sds@gnu.org>
15859         and Eric Blake  <eblake@redhat.com>
15860
15861         vc-list-files: accept multiple directory operands
15862         * build-aux/vc-list-files: Iterate over all remaining operands.
15863
15864 2011-05-16  Bruno Haible  <bruno@clisp.org>
15865
15866         Fix confusion regarding deprecated modules.
15867         * modules/calloc (Status, Notice): Mark module as deprecated, not
15868         obsolete.
15869         * modules/fnmatch-posix (Status, Notice): Likewise.
15870         * modules/getdate (Status, Notice): Likewise.
15871         * modules/getopt (Status, Notice): Likewise.
15872         * modules/malloc (Status, Notice): Likewise.
15873         * modules/pipe (Status, Notice): Likewise.
15874         * modules/realloc (Status, Notice): Likewise.
15875         * modules/rename-dest-slash (Status, Notice): Likewise.
15876         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15877         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15878         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15879         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15880         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15881
15882 2011-05-16  Bruno Haible  <bruno@clisp.org>
15883
15884         doc: List the target platforms.
15885         * doc/gnulib-intro.texi (Target Platforms): New section.
15886         * doc/gnulib.texi (Introduction): Update menu.
15887         * README (Portability guidelines): Refer to the new section. Update
15888         statement about oldest supported environment. Remove rationale why
15889         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15890         unportable C89 function.
15891         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15892         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15893
15894 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15895
15896         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15897
15898 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15899
15900         intprops-tests: new module
15901         * modules/intprops-tests, tests/test-intprops.c: New files.
15902
15903         intprops: add safe, portable integer overflow checking
15904         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15905         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15906         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15907         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15908         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15909         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15910         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15911         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15912         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15913         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15914         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15915
15916 2011-05-12  James Youngman  <jay@gnu.org>
15917
15918         Add a test for glibc's Bugzilla bug #12378.
15919         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15920         doesn't allow the literal matching of a lone "[" (which is
15921         required by POSIX).
15922         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15923
15924 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15925
15926         Sync glibc change fixing Bugzilla bug #12378.
15927         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15928         beginning and fall back to matching as normal character if the
15929         string ends before the matching ']' is found.  This is what POSIX
15930         requires.
15931
15932 2011-05-13  Eric Blake  <eblake@redhat.com>
15933
15934         getcwd-lgpl: relax test for FreeBSD
15935         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15936         issue.
15937         * tests/test-getcwd-lgpl.c (main): Relax test.
15938         Reported by Matthias Bolte.
15939
15940 2011-05-11  Eric Blake  <eblake@redhat.com>
15941
15942         test-fflush: silence compiler warning
15943         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15944
15945 2011-05-11  Bruno Haible  <bruno@clisp.org>
15946
15947         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15948         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15949         * modules/canonicalize (Depends-on): Add 'nocrash'.
15950         * modules/canonicalize-lgpl (Depends-on): Likewise.
15951         * doc/posix-functions/realpath.texi: Update platforms list.
15952         Reported by Ryan Schmidt <ryandesign@macports.org>.
15953
15954 2011-05-11  Bruno Haible  <bruno@clisp.org>
15955
15956         group-member: Declare function in <unistd.h>.
15957         * lib/unistd.in.h (group_member): New declaration.
15958         * lib/group-member.h: Remove file.
15959         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15960         * tests/test-unistd-c++.cc: Check signature of group_member.
15961         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15962         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15963         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15964         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15965         HAVE_GROUP_MEMBER.
15966         * modules/group-member (Files): Remove lib/group-member.h.
15967         (Depends-on): Add unistd. Specify conditions.
15968         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15969         (Include): Change to <unistd.h>.
15970         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15971         HAVE_GROUP_MEMBER.
15972         * NEWS: Mention the change.
15973         * lib/euidaccess.c: Don't include group-member.h.
15974
15975 2011-05-11  Bruno Haible  <bruno@clisp.org>
15976
15977         group-member: Document module.
15978         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15979         module.
15980
15981 2011-05-11  Bruno Haible  <bruno@clisp.org>
15982
15983         fclose: Fix mistake earlier today.
15984         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15985
15986 2011-05-11  Eric Blake  <eblake@redhat.com>
15987
15988         fclose: preserve fflush errors
15989         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15990         Reported by Jim Meyering.
15991
15992         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15993         * build-aux/bootstrap (check_versions): When no specific version
15994         is required, merely check that the app produces an exit status
15995         that indicates its existence.
15996
15997         maint.mk: drop redundant check
15998         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15999         the same but better.
16000
16001 2011-05-11  Bruno Haible  <bruno@clisp.org>
16002
16003         fclose: Fix possible link error.
16004         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16005         unregister_shadow_fd. Improve comments.
16006         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16007         Eric Blake.
16008
16009 2011-05-11  Jim Meyering  <meyering@redhat.com>
16010
16011         maint.mk: improve "can not" detection and generalize rule name
16012         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16013         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16014         Use the same technique as in sc_prohibit_doubled_word, so that
16015         we recognize "can not" also when the words are separated by a newline.
16016         Suggested by Eric Blake.
16017         (perl_filename_lineno_text_): Define.  Factored out of...
16018         (prohibit_doubled_word_): ...here.  Use the new definition.
16019         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16020         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16021         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16022
16023 2011-05-10  Eric Blake  <eblake@redhat.com>
16024
16025         fclose: avoid double close race when possible
16026         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16027         all but WINDOWS_SOCKETS.
16028
16029 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16030
16031         openat: correct new comment
16032         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16033
16034 2011-05-10  Jim Meyering  <meyering@redhat.com>
16035
16036         openat: add comments
16037         * lib/openat-proc.c (openat_proc_name): Add comments,
16038         mostly from Eric Blake.
16039
16040 2011-05-09  Eric Blake  <eblake@redhat.com>
16041
16042         openat: reduce syscalls in first probe of /proc
16043         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16044         be a directory.  Simplify the probe for .. bugs.
16045         * modules/openat (Depends-on): Drop same-inode.
16046         Reported by Bastien ROUCARIES.
16047
16048 2011-05-09  Jim Meyering  <meyering@redhat.com>
16049
16050         maint.mk: change semantics/name of tight_scope variables
16051         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16052         Rename variables to align with semantics that make them more useful.
16053
16054         maint.mk: tweak new rule's name not to impinge
16055         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16056         (sc_tight_scope): Use new rule name rather than $@-0.
16057
16058         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16059         * top/maint.mk (sc_tight_scope): New rule.
16060         (sc_tight_scope-0): New rule, ifdef'd out.
16061         (_gl_TS_dir): Default.
16062         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16063         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16064
16065 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16066
16067         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16068         Haible <bruno@clisp.org>.
16069
16070 2011-05-08  Bruno Haible  <bruno@clisp.org>
16071
16072         Comments.
16073         * m4/isnanf.m4: Add comment.
16074         * m4/isnanl.m4: Likewise.
16075
16076 2011-05-08  Bruno Haible  <bruno@clisp.org>
16077
16078         glob: Remove obsolete macro.
16079         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16080
16081 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         intprops: Sun C 5.11 supports __typeof__
16084         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16085         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16086         which is new.
16087         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16088
16089         intprops: switch to usual gnulib indenting and naming
16090         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16091         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16092
16093         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16094
16095 2011-05-08  Jim Meyering  <meyering@redhat.com>
16096
16097         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16098         * top/maint.mk (release-prep): Use make's --no-print-directory
16099         option when generating the announcement.  This eliminates the
16100         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16101         generated announcement template.
16102
16103 2011-05-08  Bruno Haible  <bruno@clisp.org>
16104
16105         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16106         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16107         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16108
16109 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16110
16111         ignore-value, verify: Omit include files from lib_SOURCES.
16112         * modules/ignore-value, modules/verify (Makefile.am):
16113         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16114         that leads Automake to duplicate use of am__objects_... variables
16115         in Makefile.in.  See
16116         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16117
16118 2011-05-07  Bruno Haible  <bruno@clisp.org>
16119
16120         fclose: Simplify autoconf macro.
16121         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16122         defined.
16123
16124 2011-05-07  Bruno Haible  <bruno@clisp.org>
16125
16126         canonicalize-lgpl: Fix autoconf macro ordering bug.
16127         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16128         gl_STDLIB_H_DEFAULTS.
16129
16130 2011-05-06  Eric Blake  <eblake@redhat.com>
16131
16132         maintainer-makefile: make sc_po_check easier to tune
16133         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16134         to probe for strings, such as an alternate location for gnulib.
16135
16136         fclose: guarantee behavior on seekable stdin
16137         * modules/fclose (Depends-on): Add fflush.
16138         * doc/posix-functions/fclose.texi (fclose): Document this.
16139         * tests/test-fclose.c (main): Make test for this unconditional.
16140
16141 2011-05-06  Bruno Haible  <bruno@clisp.org>
16142
16143         fflush, fpurge: Relicense under LGPLv2+.
16144         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16145         * modules/fpurge (License): Likewise.
16146         With permission from Eric Blake and Jim Meyering.
16147         Suggested by Eric Blake.
16148
16149 2011-05-06  Karl Berry  <karl@gnu.org>
16150
16151         * MODULES.html.sh (func_all_modules): remove exit.
16152
16153 2011-05-06  Jim Meyering  <meyering@redhat.com>
16154
16155         maint.mk: use info-gnu@ as the default only for a stable release
16156         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16157         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16158         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16159         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16160
16161 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16162
16163         assert-h: new module, which supports C1X-style static_assert
16164         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16165         * lib/verify.h: Revamp so that this can be copied into assert.h,
16166         while retaining the ability to use it standalone as before.
16167         Rename private identifiers so as not to encroach on the
16168         standard C namespace, since this is now used by assert.h.
16169         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16170         the old verify_true.
16171         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16172         the old verify_true.  Use _GL_VERIFY_TYPE.
16173         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16174         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16175         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16176         defined when this file is copied into the replacement assert.h.
16177         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16178         and _Static_assert is not built in.
16179         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16180         defined, and use the new macros mentioned above.
16181         * doc/posix-headers/assert.texi: Document this.
16182
16183 2011-05-05  Bruno Haible  <bruno@clisp.org>
16184
16185         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16186         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16187         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16188         gl_REPLACE_FCLOSE here.
16189         * modules/fflush (Depends-on): Remove fclose.
16190         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16191         combination with module 'fclose'.
16192
16193 2011-05-05  Bruno Haible  <bruno@clisp.org>
16194
16195         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16196         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16197         gl_FUNC_FFLUSH.
16198         (gl_FUNC_FFLUSH): Use it.
16199         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16201         gl_REPLACE_FSEEKO here.
16202
16203 2011-05-05  Bruno Haible  <bruno@clisp.org>
16204
16205         tzset: Relicense under LGPL.
16206         * modules/tzset (License): Change to LGPL.
16207         No agreement needed; it's a no-op.
16208
16209         strtoimax, strtoumax: Relicense under LGPL.
16210         * modules/strtoimax (License): Change to LGPL.
16211         * modules/strtoumax (License): Likewise.
16212         With permission from Jim Meyering, Paul Eggert:
16213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16215
16216         getgroups: Relicense under LGPL.
16217         * modules/getgroups (License): Change to LGPL.
16218         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16222
16223         nanosleep: Relicense under LGPL.
16224         * modules/nanosleep (License): Change to LGPL.
16225         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16226         Haible:
16227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16231
16232         futimens: Relicense under LGPL.
16233         * modules/futimens (License): Change to LGPL.
16234         With permission from Eric Blake:
16235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16236
16237         fflush: Relicense under LGPL.
16238         * modules/fflush (License): Change to LGPL.
16239         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16243
16244         tmpfile: Relicense under LGPL.
16245         * modules/tmpfile (License): Change to LGPL.
16246         With permission from Ben Pfaff:
16247         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16248
16249         isfinite: Relicense under LGPL.
16250         * modules/isfinite (License): Change to LGPL.
16251         With permission from Ben Pfaff, Bruno Haible:
16252         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16254
16255         acosl..tanl: Relicense under LGPL.
16256         * modules/acosl (License): Change to LGPL.
16257         * modules/asinl (License): Likewise.
16258         * modules/atanl (License): Likewise.
16259         * modules/cosl (License): Likewise.
16260         * modules/expl (License): Likewise.
16261         * modules/logl (License): Likewise.
16262         * modules/sinl (License): Likewise.
16263         * modules/sqrtl (License): Likewise.
16264         * modules/tanl (License): Likewise.
16265         Source code originally from glibc and Paolo Bonzini. Agreements:
16266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16268
16269 2011-05-05  Bruno Haible  <bruno@clisp.org>
16270
16271         signal: Define sighandler_t.
16272         * lib/signal.in.h (sighandler_t): New type.
16273         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16274         whether sighandler_t is defined.
16275         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16276         * modules/signal (Depends-on): Add extensions.
16277         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16278         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16279         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16280
16281 2011-05-05  Eric Blake  <eblake@redhat.com>
16282
16283         maint: remove useless REPLACE_*_H macros
16284         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16285         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16286         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16287         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16288         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16289         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16290         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16291         * m4/btowc.m4: Update callers.
16292         * m4/dirfd.m4: Likewise.
16293         * m4/duplocale.m4: Likewise.
16294         * m4/fchdir.m4: Likewise.
16295         * m4/fdopendir.m4: Likewise.
16296         * m4/inet_ntop.m4: Likewise.
16297         * m4/inet_pton.m4: Likewise.
16298         * m4/ioctl.m4: Likewise.
16299         * m4/mbrlen.m4: Likewise.
16300         * m4/mbrtowc.m4: Likewise.
16301         * m4/mbsinit.m4: Likewise.
16302         * m4/mbsnrtowcs.m4: Likewise.
16303         * m4/mbsrtowcs.m4: Likewise.
16304         * m4/poll.m4: Likewise.
16305         * m4/setlocale.m4: Likewise.
16306         * m4/wcrtomb.m4: Likewise.
16307         * m4/wcsnrtombs.m4: Likewise.
16308         * m4/wcsrtombs.m4: Likewise.
16309         * m4/wctob.m4: Likewise.
16310         * m4/wcwidth.m4: Likewise.
16311         * modules/posix_spawn: Likewise.
16312         * modules/posix_spawn_file_actions_addclose: Likewise.
16313         * modules/posix_spawn_file_actions_adddup2: Likewise.
16314         * modules/posix_spawn_file_actions_addopen: Likewise.
16315         * modules/posix_spawn_file_actions_destroy: Likewise.
16316         * modules/posix_spawn_file_actions_init: Likewise.
16317         * modules/posix_spawnattr_destroy: Likewise.
16318         * modules/posix_spawnattr_getflags: Likewise.
16319         * modules/posix_spawnattr_getpgroup: Likewise.
16320         * modules/posix_spawnattr_getschedparam: Likewise.
16321         * modules/posix_spawnattr_getschedpolicy: Likewise.
16322         * modules/posix_spawnattr_getsigdefault: Likewise.
16323         * modules/posix_spawnattr_getsigmask: Likewise.
16324         * modules/posix_spawnattr_init: Likewise.
16325         * modules/posix_spawnattr_setflags: Likewise.
16326         * modules/posix_spawnattr_setpgroup: Likewise.
16327         * modules/posix_spawnattr_setschedparam: Likewise.
16328         * modules/posix_spawnattr_setschedpolicy: Likewise.
16329         * modules/posix_spawnattr_setsigdefault: Likewise.
16330         * modules/posix_spawnattr_setsigmask: Likewise.
16331         * modules/posix_spawnp: Likewise.
16332
16333 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16334
16335         Add option to do-release-commit-and-tag to specify branch.
16336         * build-aux/do-release-commit-and-tag: Add --branch.
16337
16338 2011-05-03  Bruno Haible  <bruno@clisp.org>
16339
16340         Avoid unnecessary compilation units, through conditional dependencies.
16341         * modules/accept (Depends-on): Add conditions to the dependencies.
16342         * modules/acosl (Depends-on): Likewise.
16343         * modules/argz (Depends-on): Likewise.
16344         * modules/asinl (Depends-on): Likewise.
16345         * modules/atanl (Depends-on): Likewise.
16346         * modules/atoll (Depends-on): Likewise.
16347         * modules/bind (Depends-on): Likewise.
16348         * modules/btowc (Depends-on): Likewise.
16349         * modules/canonicalize-lgpl (Depends-on): Likewise.
16350         * modules/ceil (Depends-on): Likewise.
16351         * modules/ceilf (Depends-on): Likewise.
16352         * modules/ceill (Depends-on): Likewise.
16353         * modules/chdir-long (Depends-on): Likewise.
16354         * modules/chown (Depends-on): Likewise.
16355         * modules/close (Depends-on): Likewise.
16356         * modules/connect (Depends-on): Likewise.
16357         * modules/cosl (Depends-on): Likewise.
16358         * modules/dirfd (Depends-on): Likewise.
16359         * modules/dprintf (Depends-on): Likewise.
16360         * modules/dprintf-posix (Depends-on): Likewise.
16361         * modules/error (Depends-on): Likewise.
16362         * modules/euidaccess (Depends-on): Likewise.
16363         * modules/expl (Depends-on): Likewise.
16364         * modules/faccessat (Depends-on): Likewise.
16365         * modules/fchdir (Depends-on): Likewise.
16366         * modules/fclose (Depends-on): Likewise.
16367         * modules/fcntl (Depends-on): Likewise.
16368         * modules/fdopendir (Depends-on): Likewise.
16369         * modules/fflush (Depends-on): Likewise.
16370         * modules/floor (Depends-on): Likewise.
16371         * modules/floorf (Depends-on): Likewise.
16372         * modules/floorl (Depends-on): Likewise.
16373         * modules/fnmatch (Depends-on): Likewise.
16374         * modules/fopen (Depends-on): Likewise.
16375         * modules/fprintf-posix (Depends-on): Likewise.
16376         * modules/frexp (Depends-on): Likewise.
16377         * modules/frexp-nolibm (Depends-on): Likewise.
16378         * modules/frexpl (Depends-on): Likewise.
16379         * modules/frexpl-nolibm (Depends-on): Likewise.
16380         * modules/fseek (Depends-on): Likewise.
16381         * modules/fsusage (Depends-on): Likewise.
16382         * modules/ftell (Depends-on): Likewise.
16383         * modules/ftello (Depends-on): Likewise.
16384         * modules/futimens (Depends-on): Likewise.
16385         * modules/getcwd (Depends-on): Likewise.
16386         * modules/getcwd-lgpl (Depends-on): Likewise.
16387         * modules/getdelim (Depends-on): Likewise.
16388         * modules/getdomainname (Depends-on): Likewise.
16389         * modules/getgroups (Depends-on): Likewise.
16390         * modules/gethostname (Depends-on): Likewise.
16391         * modules/getline (Depends-on): Likewise.
16392         * modules/getlogin_r (Depends-on): Likewise.
16393         * modules/getopt-posix (Depends-on): Likewise.
16394         * modules/getpeername (Depends-on): Likewise.
16395         * modules/getsockname (Depends-on): Likewise.
16396         * modules/getsockopt (Depends-on): Likewise.
16397         * modules/getsubopt (Depends-on): Likewise.
16398         * modules/getusershell (Depends-on): Likewise.
16399         * modules/glob (Depends-on): Likewise.
16400         * modules/grantpt (Depends-on): Likewise.
16401         * modules/iconv_open (Depends-on): Likewise.
16402         * modules/iconv_open-utf (Depends-on): Likewise.
16403         * modules/inet_ntop (Depends-on): Likewise.
16404         * modules/inet_pton (Depends-on): Likewise.
16405         * modules/ioctl (Depends-on): Likewise.
16406         * modules/isapipe (Depends-on): Likewise.
16407         * modules/isfinite (Depends-on): Likewise.
16408         * modules/isinf (Depends-on): Likewise.
16409         * modules/lchown (Depends-on): Likewise.
16410         * modules/ldexpl (Depends-on): Likewise.
16411         * modules/link (Depends-on): Likewise.
16412         * modules/linkat (Depends-on): Likewise.
16413         * modules/listen (Depends-on): Likewise.
16414         * modules/logl (Depends-on): Likewise.
16415         * modules/lstat (Depends-on): Likewise.
16416         * modules/mbrlen (Depends-on): Likewise.
16417         * modules/mbrtowc (Depends-on): Likewise.
16418         * modules/mbsinit (Depends-on): Likewise.
16419         * modules/mbsnrtowcs (Depends-on): Likewise.
16420         * modules/mbsrtowcs (Depends-on): Likewise.
16421         * modules/mbtowc (Depends-on): Likewise.
16422         * modules/memcmp (Depends-on): Likewise.
16423         * modules/mkdir (Depends-on): Likewise.
16424         * modules/mkdtemp (Depends-on): Likewise.
16425         * modules/mkfifo (Depends-on): Likewise.
16426         * modules/mkfifoat (Depends-on): Likewise.
16427         * modules/mknod (Depends-on): Likewise.
16428         * modules/mkostemp (Depends-on): Likewise.
16429         * modules/mkostemps (Depends-on): Likewise.
16430         * modules/mkstemp (Depends-on): Likewise.
16431         * modules/mkstemps (Depends-on): Likewise.
16432         * modules/mktime (Depends-on): Likewise.
16433         * modules/nanosleep (Depends-on): Likewise.
16434         * modules/open (Depends-on): Likewise.
16435         * modules/openat (Depends-on): Likewise.
16436         * modules/perror (Depends-on): Likewise.
16437         * modules/poll (Depends-on): Likewise.
16438         * modules/popen (Depends-on): Likewise.
16439         * modules/posix_spawn (Depends-on): Likewise.
16440         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16441         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16442         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16443         * modules/posix_spawnp (Depends-on): Likewise.
16444         * modules/pread (Depends-on): Likewise.
16445         * modules/printf-posix (Depends-on): Likewise.
16446         * modules/ptsname (Depends-on): Likewise.
16447         * modules/putenv (Depends-on): Likewise.
16448         * modules/pwrite (Depends-on): Likewise.
16449         * modules/readline (Depends-on): Likewise.
16450         * modules/readlink (Depends-on): Likewise.
16451         * modules/readlinkat (Depends-on): Likewise.
16452         * modules/recv (Depends-on): Likewise.
16453         * modules/recvfrom (Depends-on): Likewise.
16454         * modules/regex (Depends-on): Likewise.
16455         * modules/remove (Depends-on): Likewise.
16456         * modules/rename (Depends-on): Likewise.
16457         * modules/renameat (Depends-on): Likewise.
16458         * modules/rmdir (Depends-on): Likewise.
16459         * modules/round (Depends-on): Likewise.
16460         * modules/roundf (Depends-on): Likewise.
16461         * modules/roundl (Depends-on): Likewise.
16462         * modules/rpmatch (Depends-on): Likewise.
16463         * modules/select (Depends-on): Likewise.
16464         * modules/send (Depends-on): Likewise.
16465         * modules/sendto (Depends-on): Likewise.
16466         * modules/setenv (Depends-on): Likewise.
16467         * modules/setlocale (Depends-on): Likewise.
16468         * modules/setsockopt (Depends-on): Likewise.
16469         * modules/shutdown (Depends-on): Likewise.
16470         * modules/sigaction (Depends-on): Likewise.
16471         * modules/signbit (Depends-on): Likewise.
16472         * modules/sigprocmask (Depends-on): Likewise.
16473         * modules/sinl (Depends-on): Likewise.
16474         * modules/sleep (Depends-on): Likewise.
16475         * modules/snprintf (Depends-on): Likewise.
16476         * modules/snprintf-posix (Depends-on): Likewise.
16477         * modules/socket (Depends-on): Likewise.
16478         * modules/sprintf-posix (Depends-on): Likewise.
16479         * modules/sqrtl (Depends-on): Likewise.
16480         * modules/stat (Depends-on): Likewise.
16481         * modules/strchrnul (Depends-on): Likewise.
16482         * modules/strdup-posix (Depends-on): Likewise.
16483         * modules/strerror (Depends-on): Likewise.
16484         * modules/strerror_r-posix (Depends-on): Likewise.
16485         * modules/strndup (Depends-on): Likewise.
16486         * modules/strnlen (Depends-on): Likewise.
16487         * modules/strptime (Depends-on): Likewise.
16488         * modules/strsep (Depends-on): Likewise.
16489         * modules/strsignal (Depends-on): Likewise.
16490         * modules/strstr-simple (Depends-on): Likewise.
16491         * modules/strtod (Depends-on): Likewise.
16492         * modules/strtoimax (Depends-on): Likewise.
16493         * modules/strtok_r (Depends-on): Likewise.
16494         * modules/strtoumax (Depends-on): Likewise.
16495         * modules/symlink (Depends-on): Likewise.
16496         * modules/symlinkat (Depends-on): Likewise.
16497         * modules/tanl (Depends-on): Likewise.
16498         * modules/tcgetsid (Depends-on): Likewise.
16499         * modules/tmpfile (Depends-on): Likewise.
16500         * modules/trunc (Depends-on): Likewise.
16501         * modules/truncf (Depends-on): Likewise.
16502         * modules/truncl (Depends-on): Likewise.
16503         * modules/uname (Depends-on): Likewise.
16504         * modules/unlink (Depends-on): Likewise.
16505         * modules/unlockpt (Depends-on): Likewise.
16506         * modules/unsetenv (Depends-on): Likewise.
16507         * modules/usleep (Depends-on): Likewise.
16508         * modules/utimensat (Depends-on): Likewise.
16509         * modules/vasprintf (Depends-on): Likewise.
16510         * modules/vdprintf (Depends-on): Likewise.
16511         * modules/vdprintf-posix (Depends-on): Likewise.
16512         * modules/vfprintf-posix (Depends-on): Likewise.
16513         * modules/vprintf-posix (Depends-on): Likewise.
16514         * modules/vsnprintf (Depends-on): Likewise.
16515         * modules/vsnprintf-posix (Depends-on): Likewise.
16516         * modules/vsprintf-posix (Depends-on): Likewise.
16517         * modules/wcrtomb (Depends-on): Likewise.
16518         * modules/wcscasecmp (Depends-on): Likewise.
16519         * modules/wcscspn (Depends-on): Likewise.
16520         * modules/wcsdup (Depends-on): Likewise.
16521         * modules/wcsncasecmp (Depends-on): Likewise.
16522         * modules/wcsnrtombs (Depends-on): Likewise.
16523         * modules/wcspbrk (Depends-on): Likewise.
16524         * modules/wcsrtombs (Depends-on): Likewise.
16525         * modules/wcsspn (Depends-on): Likewise.
16526         * modules/wcsstr (Depends-on): Likewise.
16527         * modules/wcstok (Depends-on): Likewise.
16528         * modules/wcswidth (Depends-on): Likewise.
16529         * modules/wctob (Depends-on): Likewise.
16530         * modules/wctomb (Depends-on): Likewise.
16531         * modules/wctype (Depends-on): Likewise.
16532         * modules/wcwidth (Depends-on): Likewise.
16533         * modules/write (Depends-on): Likewise.
16534
16535 2011-05-03  Bruno Haible  <bruno@clisp.org>
16536
16537         Support for conditional dependencies.
16538         * doc/gnulib.texi (Module description): Document the syntax of
16539         conditional dependencies.
16540         * gnulib-tool: New option --conditional-dependencies.
16541         (func_usage): Document it.
16542         (cond_dependencies): New variable.
16543         (func_get_automake_snippet_conditional,
16544         func_get_automake_snippet_unconditional): New functions, extracted from
16545         func_get_automake_snippet.
16546         (func_get_automake_snippet): Use them.
16547         (sed_first_32_chars): New variable.
16548         (func_module_shellfunc_name): New function.
16549         (func_module_shellvar_name): New function.
16550         (func_module_conditional_name): New function.
16551         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16552         func_cond_module_condition): New functions.
16553         (func_modules_transitive_closure): Add support for conditional
16554         dependencies.
16555         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16556         conditional automake snippet in an automake conditional.
16557         (func_emit_autoconf_snippets): Emit shell functions that contain the
16558         code for conditional modules.
16559         (func_import, func_create_testdir): Update specification.
16560
16561 2011-05-03  Eric Blake  <eblake@redhat.com>
16562
16563         test-getaddrinfo: report error information
16564         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16565
16566 2011-05-03  Jim Meyering  <meyering@redhat.com>
16567
16568         bootstrap: avoid build failure when $GZIP is set
16569         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16570         program name.  If defined at all, it is supposed to list gzip options.
16571         Reported by Alan Curry in http://debbugs.gnu.org/8609
16572
16573 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16574
16575         readme-release: new module with release instructions
16576         * modules/readme-release: New module.
16577         * top/README-release: New file, from coreutils, grep, diffutils.
16578         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16579
16580 2011-05-02  Eric Blake  <eblake@redhat.com>
16581
16582         fflush: also replace fclose when fixing fflush
16583         * modules/fflush (Depends-on): Add fclose.
16584         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16585         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16586         memstreams with no backing fd.
16587         * doc/posix-functions/fclose.texi (fclose): Document the use of
16588         fflush module to fix the bug.
16589         * tests/test-fclose.c (main): Relax test when fclose is used in
16590         isolation.
16591
16592         fclose: add some tests
16593         * modules/fclose-tests: New test module.
16594         * tests/test-fclose.c: New file.
16595         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16596
16597         fclose: reduced dependencies
16598         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16599         simpler lseek.
16600         * lib/fclose.c (rpl_fclose): Likewise.
16601         Reported by Simon Josefsson.
16602
16603         exit: drop remaining clients
16604         * modules/argmatch (Depends-on): Replace exit with stdlib.
16605         * modules/copy-file (Depends-on): Likewise.
16606         * modules/execute (Depends-on): Likewise.
16607         * modules/exitfail (Depends-on): Likewise.
16608         * modules/obstack (Depends-on): Likewise.
16609         * modules/pagealign_alloc (Depends-on): Likewise.
16610         * modules/pipe-filter-gi (Depends-on): Likewise.
16611         * modules/pipe-filter-ii (Depends-on): Likewise.
16612         * modules/savewd (Depends-on): Likewise.
16613         * modules/spawn-pipe (Depends-on): Likewise.
16614         * modules/wait-process (Depends-on): Likewise.
16615         * modules/xsetenv (Depends-on): Likewise.
16616         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16617         * modules/git-merge-changelog (Depends-on): Likewise.
16618         * modules/long-options (Depends-on): Likewise.
16619         * modules/pt_chown (Depends-on): Likewise.
16620         * modules/sysexits (Depends-on): Likewise.
16621
16622         freading: relax license from LGPLv3+ to LGPLv2+
16623         * modules/freading (License): Relax LGPL version.
16624
16625 2011-05-02  Bruno Haible  <bruno@clisp.org>
16626
16627         fchdir: Remove unused dependencies.
16628         * modules/fchdir (Depends-on): Remove include_next.
16629
16630 2011-05-02  Bruno Haible  <bruno@clisp.org>
16631
16632         gnulib-tool: Refactor.
16633         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16634         from func_emit_autoconf_snippets.
16635         (func_emit_autoconf_snippets): Use it.
16636
16637 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16638
16639         * NEWS: Document removal of 'exit'.
16640         * modules/exit: Remove file.
16641
16642 2011-05-01  Bruno Haible  <bruno@clisp.org>
16643
16644         Update DEPENDENCIES.
16645         * DEPENDENCIES (gettext): Recommend the newest release.
16646         Reported by Simon Josefsson.
16647
16648 2011-05-01  Bruno Haible  <bruno@clisp.org>
16649
16650         gnulib-tool: Reduce code duplication.
16651         * gnulib-tool (func_emit_autoconf_snippets): New function.
16652         (func_import, func_create_testdir): Use it.
16653
16654 2011-04-30  Eric Blake  <eblake@redhat.com>
16655
16656         fclose: don't fail on non-seekable input stream
16657         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16658         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16659         since fflush is allowed to fail in that case.
16660
16661 2011-04-30  Bruno Haible  <bruno@clisp.org>
16662
16663         dup3: cleanup
16664         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16665
16666 2011-04-30  Bruno Haible  <bruno@clisp.org>
16667
16668         netdb: Make it work in C++ mode.
16669         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16670         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16671         module.
16672         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16673         gl_MODULE_INDICATOR_FOR_TESTS.
16674         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16675         * modules/netdb-c++-tests: New file.
16676         * tests/test-netdb-c++.cc: New file.
16677
16678 2011-04-30  Bruno Haible  <bruno@clisp.org>
16679
16680         New modules 'vfscanf', 'vscanf'.
16681         * modules/vfscanf: New file.
16682         * modules/vscanf: New file.
16683         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16684         here.
16685         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16686         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16687
16688 2011-04-30  Bruno Haible  <bruno@clisp.org>
16689
16690         passfd: Add comments.
16691         * lib/passfd.c: Add comments about platforms.
16692
16693 2011-04-30  Bruno Haible  <bruno@clisp.org>
16694
16695         sys_uio: Make <sys/uio.h> self-contained.
16696         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16697         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16698
16699 2011-04-30  Bruno Haible  <bruno@clisp.org>
16700
16701         sys_socket: Ensure 'struct iovec' definition.
16702         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16703         <sys/socket.h>.
16704         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16705
16706 2011-04-30  Bruno Haible  <bruno@clisp.org>
16707
16708         sys_uio: Protect definition of 'struct iovec'.
16709         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16710         it as a C struct.
16711
16712 2011-04-30  Bruno Haible  <bruno@clisp.org>
16713
16714         manywarnings: fix indentation
16715         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16716
16717 2011-04-30  Pádraig Brady <P@draigBrady.com>
16718
16719         manywarnings: add -Wno-missing-field-initializers if needed.
16720         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16721         option if it's needed to allow initialization with { 0, }
16722
16723 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16724
16725         announce-gen: cosmetic improvement
16726         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16727
16728 2011-04-29  Jim Meyering  <meyering@redhat.com>
16729
16730         vc-list-files: indent with spaces, not TABs
16731         * build-aux/vc-list-files: Convert leading TABs to spaces,
16732         to match the style of most other files in gnulib.
16733
16734         announce-gen: indent with spaces, not TABs
16735         * build-aux/announce-gen: Convert all TABs to spaces, to match
16736         the style of most other files in gnulib.
16737
16738 2011-04-29  Eric Blake  <eblake@redhat.com>
16739
16740         quotearg: avoid uninitialized variable use
16741         * lib/quotearg.c (quoting_options_from_style): Initialize
16742         remaining fields, and ensure that custom styles are only used via
16743         quoting_options rather than quoting_style.
16744
16745 2011-04-29  Jim Meyering  <meyering@redhat.com>
16746
16747         maint.mk: remove unused VC-tag variable
16748         * top/maint.mk (VC-tag): Remove unused variable.
16749
16750 2011-04-29  Bruno Haible  <bruno@clisp.org>
16751
16752         netdb: fix gai_strerror replacements
16753         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16754         * modules/netdb: Substitute it.
16755
16756 2011-04-29  Jim Meyering  <meyering@redhat.com>
16757
16758         test-getcwd.c: avoid new set-but-not-used warning
16759         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16760         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16761         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16762         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16763
16764         test-hash.c: avoid a new shadowing warning
16765         * tests/test-hash.c (main): Don't shadow "dup".
16766
16767 2011-04-28  Eric Blake  <eblake@redhat.com>
16768
16769         getaddrinfo: fix gai_strerror signature
16770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16771         and work around mingw with UNICODE defined.
16772         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16773         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16774         * modules/netdb (Makefile.am): Substitute it.
16775         * lib/netdb.in.h (gai_strerror): Declare replacement.
16776         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16777         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16778         the fix.
16779
16780         getsockopt: avoid compiler warning
16781         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16782         Reported by Matthias Bolte.
16783
16784         tests: drop unused link dependency
16785         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16786         * modules/dirent-safer-tests (Makefile.am): Likewise.
16787         * modules/fdopendir-tests (Makefile.am): Likewise.
16788         * modules/mkfifoat-tests (Makefile.am): Likewise.
16789         * modules/openat-safer-tests (Makefile.am): Likewise.
16790         * modules/openat-tests (Makefile.am): Likewise.
16791         * modules/readlinkat-tests (Makefile.am): Likewise.
16792         * modules/symlinkat-tests (Makefile.am): Likewise.
16793         * modules/linkat-tests (Makefile.am): Likewise.
16794         (Depends-on): Switch to filenamecat-lgpl.
16795         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16796         LIBINTL.
16797         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16798         * tests/test-linkat.c (main): Don't require xalloc.
16799
16800         hash, mgetgroups: drop xalloc dependency
16801         * lib/hash.c (includes): Adjust includes.
16802         * lib/mgetgroups.c (includes): Likewise.
16803         (xgetgroups): Move...
16804         * lib/xgetgroups.c: ...to new file.
16805         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16806         * modules/xgetgroups: New file, split from...
16807         * modules/mgetgroups: ...here.
16808         (Depends-on): Add xalloc-oversized.
16809         * modules/hash (Depends-on): Likewise.
16810         * modules/hash-tests (Depends-on): Drop xalloc.
16811         (test_hash_LDADD): Drop unused library.
16812         * tests/test-hash.c (main): Break xalloc dependency.
16813         (includes): Drop unused include.
16814
16815         xalloc-oversized: new module
16816         * modules/xalloc-oversized: New module.
16817         * modules/xalloc (Depends-on): Add it.
16818         * lib/xalloc.h (xalloc_oversized): Move...
16819         * lib/xalloc-oversized.h: ...into new file.
16820
16821         utimecmp: drop dependency on xmalloc
16822         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16823         due to memory pressure.
16824         * modules/utimecmp (Depends-on): Drop xalloc.
16825
16826 2011-04-27  Eric Blake  <eblake@redhat.com>
16827
16828         getcwd: fix mingw bugs
16829         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16830         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16831         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16832
16833 2011-04-27  Bruno Haible  <bruno@clisp.org>
16834
16835         mkstemps: Ensure declaration on MacOS X 10.5.
16836         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16837         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16838         MacOS X.
16839
16840 2011-04-27  Bruno Haible  <bruno@clisp.org>
16841
16842         mkstemp: More documentation.
16843         * doc/posix-functions/mkstemp.texi: Document header file problem on
16844         MacOS X.
16845
16846 2011-04-27  Bruno Haible  <bruno@clisp.org>
16847
16848         mkstemp: Tweak configure message when cross-compiling.
16849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16850         result as a guess.
16851
16852 2011-04-27  Bruno Haible  <bruno@clisp.org>
16853
16854         clean-temp: Clarify what it does.
16855         * lib/clean-temp.h: Add more comments.
16856         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16857         module.
16858         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16859         * doc/glibc-functions/mkstemps.texi: Likewise.
16860         * doc/glibc-functions/mkostemps.texi: Likewise.
16861
16862 2011-04-27  Eric Blake  <eblake@redhat.com>
16863
16864         fchdir: avoid extra chdir and fix test
16865         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16866         getcwd-lgpl.
16867         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16868         have to be canonical.
16869         (canonicalize_file_name): Drop unused macro.
16870         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16871
16872         filenamecat-lgpl: fix licence
16873         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16874         when it was first created.
16875
16876         linkat, renameat: add missing dependency
16877         * modules/linkat (Depends-on): Require getcwd-lgpl.
16878         * modules/renameat (Depends-on): Likewise.
16879
16880         tests: reduce dependencies
16881         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16882         * tests/test-renameat.c (main): Likewise.
16883         * modules/linkat-tests (Depends-on): Relax dependency.
16884         * modules/renameat-tests (Depends-on): Likewise.
16885         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16886         dependency explicit.
16887
16888         save-cwd: reduce default dependency
16889         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16890         * lib/save-cwd.c: Update comments.
16891         * NEWS: Document the semantic change.
16892
16893         getcwd: enhance tests
16894         * tests/test-getcwd-lgpl.c: New file, taken from...
16895         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16896         repeat long path stress tests from m4 probe.
16897         * modules/getcwd-lgpl-tests: New module.
16898         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16899         * m4/getcwd-abort-bug.m4: Update comment.
16900         * m4/getcwd-path-max.m4: Likewise.
16901
16902         getcwd-lgpl: new module
16903         * modules/getcwd-lgpl: New module.
16904         * lib/getcwd-lgpl.c: New file.
16905         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16906         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16907         * modules/getcwd (configure.ac): Set C witness.
16908         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16909
16910         getcwd: tweak comments
16911         * m4/getcwd-abort-bug.m4: Fix comments.
16912         * m4/getcwd-path-max.m4: Likewise.
16913         * m4/getcwd.m4: Likewise.
16914
16915 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16916         and Eric Blake  <eblake@redhat.com>
16917
16918         mkstemp: replace if system version uses wrong permissions
16919         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16920         read/write mode bits set in file created by mkstemp.
16921         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16922
16923 2011-04-27  Eric Blake  <eblake@redhat.com>
16924
16925         passfd: avoid compiler warning
16926         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16927         Reported by Laine Stump.
16928
16929 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16930
16931         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16932         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16933
16934 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16935         and Eric Blake  <eblake@redhat.com>
16936
16937         mkstemp: mention clean-temp module
16938         * lib/mkstemp.c: Add comment.
16939         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16940
16941 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16942
16943         inttypes: also provide default values for 32-bit tests
16944         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16945         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16946
16947 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16948
16949         strtoumax: remove dependency on strtoimax
16950         This is like the strtoull change of yesterday.
16951         * modules/strtoumax (Files): Add lib/strtoimax.c.
16952         (Depends-on): Remove strtoimax and add verify.
16953
16954         inttypes-incomplete: new module
16955         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16956         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16957         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16958         of gl_INTTYPES_H.
16959         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16960         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16961         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16962         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16963         * modules/strtoumax, modules/xstrtol (Depends-on):
16964         Depend on inttypes-incomplete, not inttypes.
16965         * modules/inttypes-incomplete: New module, containing the contents
16966         of the old modules/inttypes module, except that the Files: section
16967         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16968         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16969         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16970         (Depends-on): Depend only on inttypes-incomplete.
16971         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16972
16973         inttypes: omit now-redundant strtoimax and strtoumax work
16974         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16975         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16976
16977         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16978         This supports apps that need pointers to strtoimax and strtoumax,
16979         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16980         nonexistent functions.  See
16981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16982         et seq.
16983         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16984         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16985         a macro.
16986         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16987
16988 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16989
16990         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16991
16992 2011-04-25  Bruno Haible  <bruno@clisp.org>
16993
16994         strtol, strtoul: Mark modules as obsolete.
16995         * modules/strtol (Status, Notice): New sections.
16996         * modules/strtoul (Status, Notice): New sections.
16997
16998 2011-04-25  Bruno Haible  <bruno@clisp.org>
16999
17000         strtod: Remove check for strtod, unless supporting old platforms.
17001         * modules/strtod-obsolete: New file.
17002         * m4/strtod-obsolete.m4: New file.
17003         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17004         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17005         * modules/strtod (Depends-on): Add strtod-obsolete.
17006         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17007
17008 2011-04-25  Bruno Haible  <bruno@clisp.org>
17009
17010         strcase: Make module obsolete.
17011         * modules/strcase (Status, Notice): New sections.
17012
17013 2011-04-25  Bruno Haible  <bruno@clisp.org>
17014
17015         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17016         * modules/dup2-obsolete: New file.
17017         * m4/dup2-obsolete.m4: New file.
17018         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17019         gl_FUNC_DUP2_OBSOLETE is not also defined.
17020         * modules/dup2 (Depends-on): Add dup2-obsolete.
17021         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17022
17023 2011-04-25  Bruno Haible  <bruno@clisp.org>
17024
17025         strnlen: Avoid memchr related link error on old obsolete platforms.
17026         * modules/memchr-obsolete: New file.
17027         * m4/memchr-obsolete.m4: New file.
17028         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17029         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17030         * modules/memchr (Depends-on): Add memchr-obsolete.
17031         * modules/strnlen (Depends-on): Likewise.
17032         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17033
17034 2011-04-25  Jim Meyering  <meyering@redhat.com>
17035
17036         maint.mk: makefile_at_at_check extend and clean up
17037         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17038         in addition to */Makefile.am.
17039         Exempt legitimate uses of @VAR@ notation, e.g.,
17040         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17041         Remove obsolete coreutils-specific comment.
17042         Prompted by discussion here:
17043         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17044
17045 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17046
17047         strtoul: remove dependency on strtol
17048         This is so that 'configure' need not check for strtol merely because
17049         the application needs strtoul.
17050         * modules/strtoul (Files): Add lib/strtol.c.
17051         (Depends-on): Remove strtol.
17052
17053         strtoull: remove dependency on strtoul
17054         This is like the strtoll change.
17055         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17056         (Depends-on): Remove strtoul.
17057
17058         strtoll: remove dependency on strtol
17059         This is so that 'configure' need not check for strtol merely because
17060         the application needs strtoll.
17061         * modules/strtoll (Files): Add lib/strtol.c.
17062         (Depends-on): Remove strtol.
17063
17064 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17065
17066         inttypes: Move some configure check to module 'imaxdiv'.
17067         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17068         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17069         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17070
17071 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17072
17073         inttypes: Move some configure check to module 'imaxabs'.
17074         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17075         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17076         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17077
17078 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17079
17080         inttypes: Remove configure tests that are not needed since 2009-12-31.
17081         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17082         gl_cv_header_working_inttypes_h.
17083
17084 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17085
17086         * modules/strnlen (Depends-on): Remove memchr.
17087         The strnlen implementation doesn't need the memchr module's fixes; see
17088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17089
17090         strtol: remove dependency on wchar
17091         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17092         * modules/strtol (Depends-on): Remove wchar.
17093
17094 2011-04-21  Eric Blake  <eblake@redhat.com>
17095
17096         passfd: fix test regression on Linux
17097         * modules/passfd-tests (configure.ac): Correct socketpair check.
17098
17099         passfd: speed up configure and drop unused code
17100         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17101         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17102         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17103         Instead of probing at configure for unix_scm_rights_bsd44_way,
17104         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17105         check to a struct member probe.
17106         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17107         (sendfd, recvfd): Update preprocessor checks.
17108         * modules/passfd (Files): Reflect rename, and drop unused file.
17109         (Depends-on): Drop unused dependency.
17110
17111         passfd: allow compilation on mingw
17112         * modules/sys_socket (Depends-on): Add sys_uio.
17113         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17114         iovec and a minimal struct msghdr.
17115         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17116         * tests/test-sys_socket.c (main): Enhance test.
17117         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17118         guaranteed to provide what we need.
17119         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17120         * modules/passfd-tests (Depends-on): Add sys_wait.
17121         * tests/test-passfd.c (main): Skip test on mingw, for now.
17122         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17123         partial 'struct msghdr' implementation.
17124
17125         sys_uio: new module
17126         * modules/sys_uio: New module.
17127         * modules/sys_uio-tests: Likewise.
17128         * lib/sys_uio.in.h: New file.
17129         * m4/sys_uio_h.m4: Likewise.
17130         * tests/test-sys_uio.c: Likewise.
17131         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17132         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17133
17134 2011-04-20  Jim Meyering  <meyering@redhat.com>
17135
17136         useless-if-before-free: avoid false-positive
17137         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17138         disjunct so that it too requires a terminating ";".  Without that,
17139         this script would identify as useless one statement from gcc that
17140         was not:
17141           if (aligned_ptr)
17142             free (((void **) aligned_ptr) [-1]);
17143
17144 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17145
17146         doc: update users.txt.
17147         * users.txt: Add barcode.
17148
17149 2011-04-19  Bruno Haible  <bruno@clisp.org>
17150
17151         ioctl: Remove link dependency on native Windows.
17152         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17153         (gl_close_fn, gl_ioctl_fn): New types.
17154         (struct fd_hook): Renamed from struct close_hook. Change type of
17155         private_close_fn field. Add private_ioctl_fn field.
17156         (close_hook_fn): Add parameter for primary close method.
17157         (execute_close_hooks, execute_all_close_hooks): Likewise.
17158         (ioctl_hook_fn): New type.
17159         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17160         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17161         argument.
17162         (unregister_fd_hook): Renamed from unregister_close_hook.
17163         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17164         Don't include <unistd.h>.
17165         (close): Remove undef.
17166         (anchor): Update.
17167         (execute_close_hooks): Add argument for primary close method.
17168         (execute_all_close_hooks): Likewise.
17169         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17170         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17171         argument. Allow each argument to be NULL.
17172         (unregister_fd_hook): Renamed from unregister_close_hook.
17173         * lib/close.c (rpl_close): Pass 'close' function pointer to
17174         execute_all_close_hooks.
17175         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17176         (primary_ioctl): New function.
17177         (ioctl): Don't call ioctlsocket here. Instead, call
17178         execute_all_ioctl_hooks.
17179         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17180         close method.
17181         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17182         (fd_sockets_hook): Renamed from close_sockets_hook.
17183         (gl_sockets_startup, gl_sockets_cleanup): Update.
17184         * modules/fd-hook: Renamed from modules/close-hook. Update.
17185         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17186         * modules/sockets (Depends-on): Likewise.
17187         * modules/ioctl (Depends-on): Add fd-hook.
17188         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17189         GNULIB_SOCKET.
17190
17191 2011-04-19  Bruno Haible  <bruno@clisp.org>
17192
17193         Move the support of O_NONBLOCK in open() to the 'open' module.
17194         * modules/nonblocking (Depends-on): Remove 'open'.
17195         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17196         gl_cv_have_open_O_NONBLOCK.
17197         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17198         O_NONBLOCK support.
17199         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17200
17201 2011-04-17  Bruno Haible  <bruno@clisp.org>
17202
17203         pipe2: Simplify code.
17204         * lib/pipe2.c (pipe2): Reduce code duplication.
17205
17206 2011-04-17  Bruno Haible  <bruno@clisp.org>
17207
17208         nonblocking: Add comment.
17209         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17210
17211 2011-04-17  Bruno Haible  <bruno@clisp.org>
17212
17213         nonblocking: Add tests for sockets.
17214         * tests/test-nonblocking-socket.sh: New file.
17215         * tests/test-nonblocking-socket-main.c: New file.
17216         * tests/test-nonblocking-socket-child.c: New file.
17217         * tests/test-nonblocking-socket.h: New file.
17218         * tests/socket-server.h: New file.
17219         * tests/socket-client.h: New file.
17220         * modules/nonblocking-socket-tests: New file.
17221         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17222
17223 2011-04-17  Bruno Haible  <bruno@clisp.org>
17224
17225         nonblocking: Add tests for pipes.
17226         * tests/test-nonblocking-pipe.sh: New file.
17227         * tests/test-nonblocking-pipe-main.c: New file.
17228         * tests/test-nonblocking-pipe-child.c: New file.
17229         * tests/test-nonblocking-pipe.h: New file.
17230         * tests/test-nonblocking-writer.h: New file.
17231         * tests/test-nonblocking-reader.h: New file.
17232         * tests/test-nonblocking-misc.h: New file.
17233         * modules/nonblocking-pipe-tests: New file.
17234         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17235
17236 2011-04-16  Bruno Haible  <bruno@clisp.org>
17237
17238         gettext: Clarify the needed programmer actions.
17239         * modules/gettext (Notice): New field.
17240         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17241
17242 2011-04-16  Bruno Haible  <bruno@clisp.org>
17243
17244         strchrnul: Tweak last commit.
17245         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17246         bug.
17247         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17248         as in _GL_FUNCDECL_SYS.
17249         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17250         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17251
17252 2011-04-15  Eric Blake  <eblake@redhat.com>
17253
17254         strchrnul: work around cygwin bug
17255         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17256         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17258         * modules/string (Makefile.am): Substitute it.
17259         * lib/string.in.h (strchrnul): Use it.
17260
17261 2011-04-15  Bruno Haible  <bruno@clisp.org>
17262
17263         Don't require lib/stdio-write.c when only module 'stdio' is used.
17264         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17265         invocation.
17266         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17267
17268 2011-04-14  Bruno Haible  <bruno@clisp.org>
17269
17270         Support non-blocking pipe I/O in read() on native Windows.
17271         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17272         (read): New declaration.
17273         * lib/read.c: New file.
17274         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17275         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17276         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17277         vscanf): New declarations.
17278         * lib/stdio-read.c: New file.
17279         * m4/read.m4: New file.
17280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17281         REPLACE_READ.
17282         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17283         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17284         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17285         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17286         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17287         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17288         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17289         * modules/read: New file.
17290         * modules/nonblocking (Files): Add lib/stdio-read.c.
17291         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17292         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17293         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17294         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17295         * modules/pread (Depends-on): Add read.
17296         * modules/safe-read (Depends-on): Likewise.
17297         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17298         gets, scanf, vfscanf, vscanf): Verify signatures.
17299         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17300         problem with non-blocking pipes.
17301         * doc/posix-functions/fgetc.texi: Likewise.
17302         * doc/posix-functions/fgets.texi: Likewise.
17303         * doc/posix-functions/fread.texi: Likewise.
17304         * doc/posix-functions/fscanf.texi: Likewise.
17305         * doc/posix-functions/getc.texi: Likewise.
17306         * doc/posix-functions/getchar.texi: Likewise.
17307         * doc/posix-functions/gets.texi: Likewise.
17308         * doc/posix-functions/scanf.texi: Likewise.
17309         * doc/posix-functions/vfscanf.texi: Likewise.
17310         * doc/posix-functions/vscanf.texi: Likewise.
17311
17312 2011-04-14  Bruno Haible  <bruno@clisp.org>
17313
17314         Support non-blocking pipe I/O in write() on native Windows.
17315         * lib/write.c (rpl_write): Split a write request that failed merely
17316         because the byte count was larger than the pipe buffer's size.
17317         * doc/posix-functions/write.texi: Mention the problem with large byte
17318         counts.
17319
17320 2011-04-14  Bruno Haible  <bruno@clisp.org>
17321
17322         wchar: Ensure that wchar_t gets defined on uClibc.
17323         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17324         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17325
17326 2011-04-13  Bruno Haible  <bruno@clisp.org>
17327
17328         safe-write, full-read: Avoid unnecessary compilation units.
17329         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17330         (Depends-on): Remove safe-read. Add ssize_t.
17331         * modules/full-read (Files): Add lib/full-write.c.
17332         (Depends-on): Add full-write.
17333
17334 2011-04-13  Bruno Haible  <bruno@clisp.org>
17335
17336         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17337         * modules/pwrite (Depends-on): Add 'write'.
17338
17339 2011-04-13  Bruno Haible  <bruno@clisp.org>
17340
17341         Support non-blocking pipe I/O in write() on native Windows.
17342         * lib/unistd.in.h (write): Enable replacement also if
17343         GNULIB_UNISTD_H_NONBLOCKING is 1.
17344         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17345         (rpl_write): When failing to write on a non-blocking pipe, change
17346         errno from ENOSPC to EAGAIN.
17347         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17348         putchar, puts, vfprintf, vprintf): Enable replacement also if
17349         GNULIB_STDIO_H_NONBLOCKING is 1.
17350         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17351         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17352         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17353         CALL_WITH_SIGPIPE_EMULATION.
17354         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17355         * m4/nonblocking.m4: New file.
17356         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17357         for non-blocking I/O support.
17358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17359         GNULIB_UNISTD_H_NONBLOCKING.
17360         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17361         required for non-blocking I/O support.
17362         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17363         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17364         lib/stdio-write.c, m4/asm-underscore.m4.
17365         (Depends-on): Add stdio, unistd.
17366         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17367         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17368         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17369         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17370         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17371         problem with non-blocking pipes.
17372         * doc/posix-functions/fputc.texi: Likewise.
17373         * doc/posix-functions/fputs.texi: Likewise.
17374         * doc/posix-functions/fwrite.texi: Likewise.
17375         * doc/posix-functions/printf.texi: Likewise.
17376         * doc/posix-functions/putc.texi: Likewise.
17377         * doc/posix-functions/putchar.texi: Likewise.
17378         * doc/posix-functions/puts.texi: Likewise.
17379         * doc/posix-functions/vfprintf.texi: Likewise.
17380         * doc/posix-functions/vprintf.texi: Likewise.
17381         * doc/posix-functions/write.texi: Likewise.
17382
17383 2011-04-10  Jim Meyering  <meyering@redhat.com>
17384
17385         maint.mk: prohibit doubled words
17386         Detect them also when they're separated by a newline.
17387         There are 3 ways to customize it:
17388           - disable the test on a per file basis, as usual with rules using
17389             $(VC_LIST_EXCEPT)
17390           - replace the default doubled-word-selecting regexp (affects all files)
17391           - ignore a particular file-vs-doubled-word match
17392         I nearly used that last one to ignore the "is is" match in
17393         coreutils' NEWS file, since the text was "ls -is is ..."
17394         To do that, I would have added this line to cfg.mk:
17395           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17396         but it would have ignored any "is is" match in NEWS.
17397         Low probability, but still...
17398         Instead, I changed the text, slightly:
17399           -  ls -is is now consistent with ls -lis in ignoring values returned
17400           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17401         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17402         (prohibit_doubled_word_): Define.
17403         (sc_prohibit_doubled_word): New rule.
17404         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17405
17406 2011-04-10  Jim Meyering  <meyering@redhat.com>
17407
17408         maint: fix doubled-word typo in comment
17409         * m4/gethostname.m4: s/is is/it is/
17410         * m4/getdomainname.m4: Likewise.
17411
17412 2011-04-10  Jim Meyering  <meyering@redhat.com>
17413
17414         maint: remove doubled word: s/it it/it/
17415         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17416
17417 2011-04-10  Jim Meyering  <meyering@redhat.com>
17418
17419         maint.mk: remove useless semicolon and backslash
17420         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17421         semicolon and backslash.
17422
17423 2011-04-10  Bruno Haible  <bruno@clisp.org>
17424
17425         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17426         * modules/stdint-tests (Depends-on): Add wchar.
17427
17428 2011-04-10  Jim Meyering  <meyering@redhat.com>
17429
17430         maint: remove doubled words in comments, e.g., s/a a/a/
17431         * lib/strptime.c (day_of_the_week): s/the the/the/
17432         * tests/test-chown.h (test_chown): s/a a/a/
17433
17434         test-chown.h: correct a cast
17435         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17436         when the destination is a stat.st_gid.
17437
17438 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17439
17440         getaddrinfo: Fix test for sa_len member.
17441         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17442         include <sys/types.h> before <sys/socket.h>.
17443
17444 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17445
17446         maint: change "can not" to "cannot"
17447         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17448         boundaries.
17449
17450 2011-04-09  Jim Meyering  <meyering@redhat.com>
17451
17452         maint: change "a a" to "a"
17453         * tests/test-lchown.h (test_lchown): s/a a/a/
17454
17455         maint.mk: prohibit \<the the\>
17456         * top/maint.mk (sc_prohibit_the_the): New rule.
17457
17458         maint: fix "the the" in comment
17459         * lib/count-one-bits.h: s/the the/the/
17460
17461         maint: change "can not" to "cannot"
17462         But do not change the occurrences in maintain.texi or in
17463         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17464         * doc/gnulib-tool.texi: s/can not/cannot/
17465         * doc/posix-functions/accept.texi (accept): Likewise.
17466         * doc/posix-functions/socket.texi (socket): Likewise.
17467         * lib/mbrtowc.c: Likewise.
17468
17469         maint.mk: prohibit use of "can not"
17470         * top/maint.mk (sc_prohibit_can_not): New rule.
17471         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17472
17473 2011-04-09  Bruno Haible  <bruno@clisp.org>
17474
17475         careadlinkat: Guard against misuse of careadlinkatcwd.
17476         * lib/careadlinkat.c: Include <stdlib.h>.
17477         (careadlinkatcwd): Check that the fd argument is as expected.
17478
17479 2011-04-09  Bruno Haible  <bruno@clisp.org>
17480
17481         careadlinkat: Use common coding style.
17482         * lib/careadlinkat.c: Move gnulib includes after system includes.
17483
17484 2011-04-09  Bruno Haible  <bruno@clisp.org>
17485
17486         careadlinkat: Clarify specification.
17487         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17488         (careadlinkatcwd): Add comment.
17489         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17490
17491 2011-04-09  Bruno Haible  <bruno@clisp.org>
17492
17493         areadlinkat: Avoid link error on many platforms.
17494         * modules/areadlinkat (Depends-on): Add areadlink.
17495
17496 2011-04-09  Bruno Haible  <bruno@clisp.org>
17497
17498         allocator, careadlinkat: Fix double-inclusion guard.
17499         * lib/allocator.h: Fix double-inclusion guard.
17500         * lib/careadlinkat.h: Likewise.
17501
17502 2011-04-09  Bruno Haible  <bruno@clisp.org>
17503
17504         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17505         * lib/relocwrapper.c: Update dependencies hierarchy.
17506         * build-aux/install-reloc: Update list of files to be compiled.
17507         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17508         lib/allocator.[hc].
17509
17510 2011-04-08  Eric Blake  <eblake@redhat.com>
17511
17512         strftime: silence gnulib-tool warning
17513         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17514
17515 2011-04-08  Bruno Haible  <bruno@clisp.org>
17516
17517         verify: Fix syntax error with GCC 4.6 in C++ mode.
17518         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17519         (HAVE_STATIC_ASSERT): New macro.
17520         (verify_true, verify): Use 'static_assert' if it is supported and
17521         '_Static_assert' is not supported.
17522
17523 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17524
17525         allocator: New module.
17526         * modules/allocator, lib/allocator.c: New files.
17527         * lib/allocator.h (stdlib_allocator): New decl.
17528         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17529         Remove.  Do not include <stdlib.h>.
17530         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17531         * modules/careadlinkat (Files): Remove lib/allocator.h.
17532         (Depends-on): Add allocator.
17533
17534         stdlib: let modules use system malloc, realloc
17535         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17536         if !_GL_USE_STDLIB_ALLOC.
17537         (malloc, realloc): Limit this change to a smaller scope.
17538
17539         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17540         (malloc, realloc): Don't #undef; no longer needed.
17541         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17542         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17543         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17544         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17545         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17546         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17547         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17548         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17549
17550         careadlinkat: rename members to avoid problem
17551         * lib/allocator.h (struct allocator): Rename members from
17552         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17553         and realloc are #define'd.  Reported by Eric Blake in
17554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17555         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17556
17557 2011-04-08  Eric Blake  <eblake@redhat.com>
17558
17559         nonblocking: reduce dependency
17560         * tests/test-nonblocking.c: Only test sockets when in use.
17561         * modules/nonblocking-tests (Depends-on): Drop socket.
17562         (Makefile.am): Link even if sockets are not present.
17563         * modules/pipe2-tests (Makefile.am): Likewise.
17564         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17565
17566         pipe2: fix O_NONBLOCK support on mingw
17567         * modules/pipe2 (Depends-on): Add nonblocking.
17568         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17569         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17570         * tests/test-nonblocking.c (main): Likewise.
17571         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17572
17573         fcntl-h: fix O_ACCMODE on cygwin
17574         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17575         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17576
17577         pipe-filter: drop O_NONBLOCK workarounds
17578         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17579         * modules/pipe-filter-ii (Depends-on): Likewise.
17580         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17581
17582         nonblocking: provide O_NONBLOCK for mingw
17583         * modules/nonblocking (Depends-on): Add open.
17584         (configure.ac): Set new witness macro.
17585         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17586         * modules/fcntl-h (Makefile.am): Substitute it.
17587         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17588         nonblocking module is in use.
17589         * lib/nonblocking.c: Adjust portability test.
17590         * lib/open.c (open): Don't let native open see gnulib flag.
17591         * tests/test-fcntl-h.c (main): Enhance test.
17592         * tests/test-open.h (test_open): Likewise.
17593         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17594
17595         careadlinkat: fix compilation error on mingw
17596         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17597         within struct allocator.
17598
17599 2011-04-06  Eric Blake  <eblake@redhat.com>
17600
17601         binary-io: relicense under LGPLv2+
17602         * modules/binary-io (License): Relax to LGPLv2+.
17603         Requested for libvirt, and required by pipe2.
17604
17605 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17606
17607         verify: use _Static_assert if available
17608         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17609         (verify_true, verify): Use it if available.  This generates better
17610         diagnostics with GCC 4.6.0 and later.
17611
17612 2011-04-05  Bruno Haible  <bruno@clisp.org>
17613
17614         Remove leftover generated .h files after config.status changed.
17615
17616         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17617         GL_GENERATE_ALLOCA_H.
17618         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17619         GL_GENERATE_ALLOCA_H evaluates to false.
17620
17621         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17622         GL_GENERATE_ARGZ_H.
17623         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17624         evaluates to false.
17625
17626         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17627         GL_GENERATE_BYTESWAP_H.
17628         * modules/byteswap (Makefile.am): Remove byteswap.h if
17629         GL_GENERATE_BYTESWAP_H evaluates to false.
17630
17631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17632         GL_GENERATE_ERRNO_H.
17633         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17634         evaluates to false.
17635
17636         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17637         GL_GENERATE_FLOAT_H.
17638         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17639         evaluates to false.
17640
17641         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17642         GL_GENERATE_FNMATCH_H.
17643         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17644         GL_GENERATE_FNMATCH_H evaluates to false.
17645
17646         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17647         GL_GENERATE_GLOB_H.
17648         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17649         evaluates to false.
17650
17651         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17652         automake conditional GL_GENERATE_ICONV_H.
17653         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17654         evaluates to false.
17655
17656         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17657         GL_GENERATE_NETINET_IN_H.
17658         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17659         GL_GENERATE_NETINET_IN_H evaluates to false.
17660
17661         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17662         conditional GL_GENERATE_PTHREAD_H.
17663         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17664         * modules/pthread (Makefile.am): Remove pthread.h if
17665         GL_GENERATE_PTHREAD_H evaluates to false.
17666
17667         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17668         GL_GENERATE_SCHED_H.
17669         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17670         evaluates to false.
17671
17672         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17673         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17674         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17675         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17676
17677         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17678         GL_GENERATE_STDARG_H.
17679         * modules/stdarg (Makefile.am): Remove stdarg.h if
17680         GL_GENERATE_STDARG_H evaluates to false.
17681
17682         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17683         GL_GENERATE_STDBOOL_H.
17684         * modules/stdbool (Makefile.am): Remove stdbool.h if
17685         GL_GENERATE_STDBOOL_H evaluates to false.
17686
17687         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17688         conditional GL_GENERATE_STDDEF_H.
17689         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17690         * modules/stddef (Makefile.am): Remove stddef.h if
17691         GL_GENERATE_STDDEF_H evaluates to false.
17692
17693         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17694         GL_GENERATE_STDINT_H.
17695         * modules/stdint (Makefile.am): Remove stdint.h if
17696         GL_GENERATE_STDINT_H evaluates to false.
17697
17698         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17699         GL_GENERATE_SYSEXITS_H.
17700         * modules/sysexits (Makefile.am): Remove sysexits.h if
17701         GL_GENERATE_SYSEXITS_H evaluates to false.
17702
17703         Reported by Karl Berry and Ralf Wildenhues.
17704
17705 2011-04-05  Bruno Haible  <bruno@clisp.org>
17706
17707         Ensure to rebuild generated .h files when config.status has changed.
17708         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17709         config.status.
17710         * modules/ctype (Makefile.am): Likewise.
17711         * modules/dirent (Makefile.am): Likewise.
17712         * modules/errno (Makefile.am): Likewise.
17713         * modules/fcntl-h (Makefile.am): Likewise.
17714         * modules/float (Makefile.am): Likewise.
17715         * modules/getopt-posix (Makefile.am): Likewise.
17716         * modules/glob (Makefile.am): Likewise.
17717         * modules/iconv-h (Makefile.am): Likewise.
17718         * modules/inttypes (Makefile.am): Likewise.
17719         * modules/langinfo (Makefile.am): Likewise.
17720         * modules/locale (Makefile.am): Likewise.
17721         * modules/math (Makefile.am): Likewise.
17722         * modules/netdb (Makefile.am): Likewise.
17723         * modules/netinet_in (Makefile.am): Likewise.
17724         * modules/poll-h (Makefile.am): Likewise.
17725         * modules/pthread (Makefile.am): Likewise.
17726         * modules/pty (Makefile.am): Likewise.
17727         * modules/sched (Makefile.am): Likewise.
17728         * modules/search (Makefile.am): Likewise.
17729         * modules/selinux-h (Makefile.am): Likewise.
17730         * modules/signal (Makefile.am): Likewise.
17731         * modules/spawn (Makefile.am): Likewise.
17732         * modules/stdarg (Makefile.am): Likewise.
17733         * modules/stdbool (Makefile.am): Likewise.
17734         * modules/stddef (Makefile.am): Likewise.
17735         * modules/stdint (Makefile.am): Likewise.
17736         * modules/stdio (Makefile.am): Likewise.
17737         * modules/stdlib (Makefile.am): Likewise.
17738         * modules/string (Makefile.am): Likewise.
17739         * modules/strings (Makefile.am): Likewise.
17740         * modules/sys_file (Makefile.am): Likewise.
17741         * modules/sys_ioctl (Makefile.am): Likewise.
17742         * modules/sys_select (Makefile.am): Likewise.
17743         * modules/sys_socket (Makefile.am): Likewise.
17744         * modules/sys_stat (Makefile.am): Likewise.
17745         * modules/sys_time (Makefile.am): Likewise.
17746         * modules/sys_times (Makefile.am): Likewise.
17747         * modules/sys_utsname (Makefile.am): Likewise.
17748         * modules/sys_wait (Makefile.am): Likewise.
17749         * modules/sysexits (Makefile.am): Likewise.
17750         * modules/termios (Makefile.am): Likewise.
17751         * modules/time (Makefile.am): Likewise.
17752         * modules/unistd (Makefile.am): Likewise.
17753         * modules/wchar (Makefile.am): Likewise.
17754         * modules/wctype-h (Makefile.am): Likewise.
17755         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17756
17757 2011-04-05  Bruno Haible  <bruno@clisp.org>
17758
17759         pipe2: Relicense under LGPLv2+.
17760         * modules/pipe2 (License): Change to LGPLv2+.
17761         Requested by Eric Blake, for libvirt.
17762
17763 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17764
17765         bootstrap: compute gnulib_extra_files after updating build_aux
17766         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17767         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17768
17769 2011-04-05  Eric Blake  <eblake@redhat.com>
17770
17771         bootstrap: preserve git whitelist item sorting
17772         * build-aux/bootstrap (sort_patterns): New function.
17773         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17774
17775 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17776
17777         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17778         sc_space_tab check.
17779
17780 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17781
17782         areadlink, areadlinkat: rewrite in terms of careadlinkat
17783         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17784         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17785         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17786         (malloc, realloc): Remove #undefs.
17787         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17788         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17789         readlink, ssize_t, stdint, unistd.
17790         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17791         areadlink, stdint.
17792
17793         careadlinkat: new module
17794         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17795         * modules/careadlinkat: New files, written by me with
17796         a review and feedback from Ben Pfaff in
17797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17798
17799 2011-04-01  Bruno Haible  <bruno@clisp.org>
17800
17801         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17802         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17803         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17804         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17805         Reported by Bruce Korb <bruce.korb@gmail.com>.
17806
17807 2011-04-01  Bruno Haible  <bruno@clisp.org>
17808
17809         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17810         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17811         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17812         * modules/wcpcpy (Depends-on): Add extensions.
17813         * modules/wcpncpy (Depends-on): Likewise.
17814         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17815         systems.
17816         * doc/posix-functions/wcpncpy.texi: Likewise.
17817         * doc/posix-functions/wcwidth.texi: Likewise.
17818
17819 2011-03-31  Eric Blake  <eblake@redhat.com>
17820
17821         nonblocking: fix mingw test failures
17822         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17823         non-blocking flag on regular file.
17824         (get_nonblocking_flag): Set errno on invalid fd.
17825         * tests/test-nonblocking.c (main): Avoid test failure on
17826         directories if fchdir is not active.
17827         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17828
17829 2011-03-31  Bruno Haible  <bruno@clisp.org>
17830
17831         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17832         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17833         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17834         Reported by Simon Josefsson <simon@josefsson.org>.
17835
17836 2011-03-31  Bruno Haible  <bruno@clisp.org>
17837         and Eric Blake  <eblake@redhat.com>
17838
17839         nonblocking: new module
17840         * modules/nonblocking: New module.
17841         * modules/nonblocking-tests: Likewise.
17842         * lib/nonblocking.h: New file.
17843         * lib/nonblocking.c: Likewise.
17844         * tests/test-nonblocking.c: New test.
17845         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17846
17847 2011-03-30  Bruno Haible  <bruno@clisp.org>
17848
17849         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17850         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17851         instead of 'printf' format for GCC >= 4.4.
17852         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17853         (fprintf, printf, vfprintf, vprintf): Declare with
17854         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17855         the system's vfprintf() function.
17856         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17857
17858 2011-03-30  Eric Blake  <eblake@redhat.com>
17859
17860         passfd: fix scoping bug
17861         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17862         before sendmsg/recvmsg.
17863
17864         passfd: standardize coding conventions
17865         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17866         can be learned at compile time.
17867         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17868         ifdefs.
17869         (sendfd, recvfd): Follow gnulib code conventions.
17870
17871         passfd: fix incorrect sendmsg arguments
17872         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17873         incorrect msg_controllen value.
17874         * modules/passfd-tests (Depends-on): Check for alarm.
17875         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17876         Reported by Bastien ROUCARIES.
17877
17878 2011-03-30  Bruno Haible  <bruno@clisp.org>
17879
17880         c-strcasestr: Relicense under LGPLv2+.
17881         * modules/c-strcasestr (License): Change to LGPLv2+.
17882         Requested by Eric Blake, for libvirt.
17883
17884 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17885
17886         * users.txt: Add libidn2.  Fix libtasn1 link.
17887
17888 2011-03-30  Jim Meyering  <meyering@redhat.com>
17889
17890         tests: readlink* ("",... fails with EINVAL on newer kernels
17891         readlink and readlinkat have typically failed with ENOENT for
17892         the invalid, empty file name,  "".  However, with the advent
17893         of linux-2.6.39, they fail with EINVAL.
17894         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17895         when operating on the empty file name.
17896         * tests/test-readlink.h (test_readlink): Likewise.
17897
17898 2011-03-29  Bruno Haible  <bruno@clisp.org>
17899
17900         Relicense some modules under LGPLv2+, for libidn2.
17901         * modules/array-mergesort (License): Change to LGPLv2+.
17902         * modules/c-strcaseeq (License): Likewise.
17903         * modules/striconveh (License): Likewise.
17904         * modules/striconveha (License): Likewise.
17905         * modules/uniconv/base (License): Likewise.
17906         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17907         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17908         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17909         * modules/unictype/base (License): Likewise.
17910         * modules/unictype/bidiclass-of (License): Likewise.
17911         * modules/unictype/category-M (License): Likewise.
17912         * modules/unictype/category-none (License): Likewise.
17913         * modules/unictype/category-of (License): Likewise.
17914         * modules/unictype/category-test (License): Likewise.
17915         * modules/unictype/category-test-withtable (License): Likewise.
17916         * modules/unictype/combining-class (License): Likewise.
17917         * modules/unictype/joiningtype-of (License): Likewise.
17918         * modules/unictype/scripts (License): Likewise.
17919         * modules/uninorm/base (License): Likewise.
17920         * modules/uninorm/canonical-decomposition (License): Likewise.
17921         * modules/uninorm/composition (License): Likewise.
17922         * modules/uninorm/decompose-internal (License): Likewise.
17923         * modules/uninorm/decomposition-table (License): Likewise.
17924         * modules/uninorm/nfc (License): Likewise.
17925         * modules/uninorm/nfd (License): Likewise.
17926         * modules/uninorm/u32-normalize (License): Likewise.
17927         * modules/unistr/base (License): Likewise.
17928         * modules/unistr/u32-cpy (License): Likewise.
17929         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17930         * modules/unistr/u32-to-u8 (License): Likewise.
17931         * modules/unistr/u32-uctomb (License): Likewise.
17932         * modules/unistr/u8-check (License): Likewise.
17933         * modules/unistr/u8-mblen (License): Likewise.
17934         * modules/unistr/u8-mbtouc (License): Likewise.
17935         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17936         * modules/unistr/u8-mbtoucr (License): Likewise.
17937         * modules/unistr/u8-prev (License): Likewise.
17938         * modules/unistr/u8-strlen (License): Likewise.
17939         * modules/unistr/u8-to-u32 (License): Likewise.
17940         * modules/unistr/u8-uctomb (License): Likewise.
17941         * modules/unitypes (License): Likewise.
17942         Requested by Simon Josefsson.
17943
17944 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17945
17946         lib-symbol-visibility: Add a notice.
17947         * modules/lib-symbol-visibility (Notice): New field.
17948
17949 2011-03-29  Bruno Haible  <bruno@clisp.org>
17950
17951         getaddrinfo: Doc fix.
17952         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17953         section "fixed in Gnulib".
17954
17955 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17956
17957         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17958         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17959
17960 2011-03-26  Bruno Haible  <bruno@clisp.org>
17961
17962         unictype/property-byname: Reduce the number of load-time relocations.
17963         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17964         (UC_PROPERTY_INDEX_*): New enumeration values.
17965         (uc_property_byname): Convert an index from the lookup table to an
17966         uc_property_t.
17967         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17968         values.
17969
17970 2011-03-26  Bruno Haible  <bruno@clisp.org>
17971
17972         unictype/property-byname: Allow omitted word separators and aliases.
17973         * lib/unictype/pr_byname.gperf: Add property names without word
17974         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17975         for 'space'.
17976
17977 2011-03-26  Bruno Haible  <bruno@clisp.org>
17978
17979         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17980         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17981         also hyphens to space.
17982         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17983         without spaces.
17984         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17985
17986 2011-03-26  Bruno Haible  <bruno@clisp.org>
17987
17988         unictype/joiningtype-byname: Recognize long names as well.
17989         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17990         a long name.
17991         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17992         unictype/joiningtype_byname.h.
17993         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17994         * lib/unictype/joiningtype_byname.gperf: New file.
17995         * modules/unictype/joiningtype-byname (Files): Add
17996         lib/unictype/joiningtype_byname.gperf.
17997         (Depends-on): Add gperf.
17998         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17999         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18000         long names.
18001
18002         Tests for module 'unictype/joiningtype-longname'.
18003         * modules/unictype/joiningtype-longname-tests: New file.
18004         * tests/unictype/test-joiningtype_longname.c: New file.
18005
18006         New module 'unictype/joiningtype-longname'.
18007         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18008         * lib/unictype/joiningtype_longname.c: New file.
18009         * modules/unictype/joiningtype-longname: New file.
18010         * modules/unictype/joiningtype-all (Depends-on): Add
18011         unictype/joiningtype-longname.
18012
18013 2011-03-26  Bruno Haible  <bruno@clisp.org>
18014
18015         unictype/bidiclass-byname: Recognize long names as well.
18016         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18017         name.
18018         * lib/unictype/bidi_byname.c: Include <string.h>,
18019         unictype/bidi_byname.h.
18020         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18021         * lib/unictype/bidi_byname.gperf: New file.
18022         * modules/unictype/bidiclass-byname (Files): Add
18023         lib/unictype/bidi_byname.gperf.
18024         (Depends-on): Add gperf.
18025         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18026         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18027         long names.
18028
18029         Tests for module 'unictype/bidiclass-longname'.
18030         * modules/unictype/bidiclass-longname-tests: New file.
18031         * tests/unictype/test-bidi_longname.c: New file.
18032
18033         New module 'unictype/bidiclass-longname'.
18034         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18035         * lib/unictype/bidi_longname.c: New file.
18036         * modules/unictype/bidiclass-longname: New file.
18037         * modules/unictype/bidiclass-all (Depends-on): Add
18038         unictype/bidiclass-longname.
18039
18040 2011-03-26  Bruno Haible  <bruno@clisp.org>
18041
18042         unictype/bidi*: Rename modules.
18043         * modules/unictype/bidiclass-all: Renamed from
18044         modules/unictype/bidicategory-all.
18045         * modules/unictype/bidiclass-name: Renamed from
18046         modules/unictype/bidiclass-name.
18047         (Description): Update.
18048         * modules/unictype/bidiclass-name-tests: Renamed from
18049         modules/unictype/bidicategory-name-tests.
18050         * modules/unictype/bidiclass-byname: Renamed from
18051         modules/unictype/bidicategory-byname.
18052         (Description): Update.
18053         * modules/unictype/bidiclass-byname-tests: Renamed from
18054         modules/unictype/bidicategory-byname-tests.
18055         * modules/unictype/bidiclass-of: Renamed from
18056         modules/unictype/bidicategory-of.
18057         (Description): Update.
18058         * modules/unictype/bidiclass-of-tests: Renamed from
18059         modules/unictype/bidicategory-of-tests.
18060         * modules/unictype/bidiclass-test: Renamed from
18061         modules/unictype/bidicategory-test.
18062         (Description): Update.
18063         * modules/unictype/bidiclass-test-tests: Renamed from
18064         modules/unictype/bidicategory-test-tests.
18065         * modules/unictype/bidicategory-all: New file, a simple redirection.
18066         * modules/unictype/bidicategory-name: Likewise.
18067         * modules/unictype/bidicategory-byname: Likewise.
18068         * modules/unictype/bidicategory-of: Likewise.
18069         * modules/unictype/bidicategory-test: Likewise.
18070         * modules/unictype/property-bidi-* (Dependencies): Update.
18071         * lib/unictype/bidi_*.c: Update comment.
18072
18073 2011-03-26  Bruno Haible  <bruno@clisp.org>
18074
18075         unictype/bidi*: Rename functions, part 2.
18076         * modules/unictype/bidicategory-name (configure.ac): Update required
18077         libunistring version.
18078         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18079
18080 2011-03-25  Bruno Haible  <bruno@clisp.org>
18081
18082         New module 'unictype/combining-class-all'.
18083         * modules/unictype/combining-class-all: New file.
18084
18085         Tests for module 'unictype/combining-class-byname'.
18086         * modules/unictype/combining-class-byname-tests: New file.
18087         * tests/unictype/test-combiningclass_byname.c: New file.
18088
18089         New module 'unictype/combining-class-byname'.
18090         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18091         * lib/unictype/combiningclass_byname.c: New file.
18092         * lib/unictype/combiningclass_byname.gperf: New file.
18093         * modules/unictype/combining-class-byname: New file.
18094
18095         Tests for module 'unictype/combining-class-longname'.
18096         * modules/unictype/combining-class-longname-tests: New file.
18097         * tests/unictype/test-combiningclass_longname.c: New file.
18098
18099         New module 'unictype/combining-class-longname'.
18100         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18101         * lib/unictype/combiningclass_longname.c: New file.
18102         * modules/unictype/combining-class-longname: New file.
18103
18104         Tests for module 'unictype/combining-class-name'.
18105         * modules/unictype/combining-class-name-tests: New file.
18106         * tests/unictype/test-combiningclass_name.c: New file.
18107
18108         New module 'unictype/combining-class-name'.
18109         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18110         * lib/unictype/combiningclass_name.c: New file.
18111         * modules/unictype/combining-class-name: New file.
18112
18113 2011-03-25  Bruno Haible  <bruno@clisp.org>
18114
18115         unictype/combining-class: Rename source files.
18116         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18117         of unictype/combining.h.
18118         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18119         Update.
18120         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18121         * modules/unictype/combining-class (Description): Fix.
18122         (Files, Makefile.am): Update.
18123         * tests/unictype/test-combiningclass.c: Renamed from
18124         tests/unictype/test-combining.c.
18125         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18126
18127 2011-03-25  Bruno Haible  <bruno@clisp.org>
18128
18129         unictype: Update list of canonical combining classes.
18130         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18131
18132 2011-03-25  Bruno Haible  <bruno@clisp.org>
18133
18134         unictype/category-byname: Recognize long names as well.
18135         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18136         a long name.
18137         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18138         unictype/categ_byname.h.
18139         (UC_CATEGORY_INDEX_*): New enumeration values.
18140         (uc_general_category_byname): Use uc_general_category_lookup and
18141         convert from index to value.
18142         * lib/unictype/categ_byname.gperf: New file.
18143         * modules/unictype/category-byname (Files): Add
18144         lib/unictype/categ_byname.gperf.
18145         (Depends-on): Add gperf.
18146         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18147         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18148         long names.
18149
18150         Tests for module 'unictype/category-longname'.
18151         * modules/unictype/category-longname-tests: New file.
18152         * tests/unictype/test-categ_longname.c: New file.
18153
18154         New module 'unictype/category-longname'.
18155         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18156         * lib/unictype/categ_longname.c: New file.
18157         * modules/unictype/category-longname: New file.
18158         * modules/unictype/category-all (Depends-on): Add it.
18159
18160 2011-03-25  Bruno Haible  <bruno@clisp.org>
18161
18162         Tests for module 'unictype/category-LC'.
18163         * modules/unictype/category-LC-tests: New file.
18164         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18165
18166         New module 'unictype/category-LC'.
18167         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18168         (UC_CATEGORY_LC): New declaration.
18169         (UC_CASED_LETTER): New macro.
18170         * lib/gen-uni-tables.c (is_category_LC): New function.
18171         (output_categories): Also handle category LC.
18172         (UC_CATEGORY_MASK_LC): New enumeration value.
18173         (general_category_byname): Also handle category LC.
18174         * lib/unictype/categ_LC.c: New file.
18175         * lib/unictype/categ_LC.h: New file, automatically generated.
18176         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18177         category LC.
18178         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18179         * modules/unictype/category-LC: New file.
18180         * modules/unictype/category-byname (Depends-on): Add
18181         unictype/category-LC.
18182         * modules/unictype/category-all (Depends-on): Likewise.
18183
18184 2011-03-25  Eric Blake  <eblake@redhat.com>
18185
18186         xmalloc: revert yesterday's regression
18187         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18188         realloc's underlying behavior (allowing allocation of zero-size
18189         objects, especially if malloc-gnu is also in use).
18190
18191 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18192
18193         maint.mk: add missing version to VC-tag
18194         * top/maint.mk: git tag was missing actual tag name; add it.
18195
18196         valgrind: do leak checking, and exit with code 1 on error (not 0)
18197         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18198         to VALGRIND.
18199
18200 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18201
18202         posix-modules: say what it does.
18203         * posix-modules: Add a line to the --help output saying what it does.
18204
18205 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18206
18207         xmalloc: Do not leak if underlying realloc is C99 compatible.
18208         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18209         This avoids a leak on C99-based systems.  See
18210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18211
18212 2011-03-24  Eric Blake  <eblake@redhat.com>
18213
18214         realloc: document portability problem
18215         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18216         passing 0 size to realloc.
18217
18218 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18219
18220         doc: update users.txt
18221         * users.txt: Add cvsps, tmpwatch
18222
18223 2011-03-23  Matt Rice  <ratmice@gmail.com>
18224
18225         doc: update users.txt
18226         * users.txt: Add gdb.
18227
18228 2011-03-23  Jim Meyering  <meyering@redhat.com>
18229
18230         doc: update users.txt
18231         Looking through matches up to the following URL (there are still
18232         several more pages), I found several projects that use gnulib:
18233         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18234         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18235         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18236
18237 2011-03-22  Bruno Haible  <bruno@clisp.org>
18238
18239         unictype/bidi*: Rename functions.
18240         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18241         uc_bidi_class, uc_is_bidi_class): New declarations.
18242         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18243         uc_bidi_category_byname.
18244         (uc_bidi_category_byname): New function.
18245         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18246         u_bidi_category_name.
18247         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18248         (uc_bidi_category_name): New function.
18249         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18250         uc_bidi_category.
18251         (uc_bidi_category): New function.
18252         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18253         uc_is_bidi_category. Invoke uc_bidi_class.
18254         (uc_is_bidi_category): New function.
18255         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18256         instead of uc_bidi_category_byname.
18257         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18258         instead of uc_bidi_category_name.
18259         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18260         uc_bidi_category.
18261         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18262         instead of uc_is_bidi_category.
18263
18264 2011-03-21  Bruno Haible  <bruno@clisp.org>
18265
18266         New module 'unictype/joininggroup-all'.
18267         * modules/unictype/joininggroup-all: New file.
18268
18269         Tests for module 'unictype/joininggroup-of'.
18270         * modules/unictype/joininggroup-of-tests: New file.
18271         * tests/unictype/test-joininggroup_of.c: New file.
18272         * tests/unictype/test-joininggroup_of.h: New file, automatically
18273         generated by gen-uni-tables.
18274
18275         New module 'unictype/joininggroup-of'.
18276         * modules/unictype/joininggroup-of: New file.
18277         * lib/unictype/joininggroup_of.c: New file.
18278         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18279         gen-uni-tables.
18280
18281         Tests for module 'unictype/joininggroup-byname'.
18282         * modules/unictype/joininggroup-byname-tests: New file.
18283         * tests/unictype/test-joininggroup_byname.c: New file.
18284
18285         New module 'unictype/joininggroup-byname'.
18286         * modules/unictype/joininggroup-byname: New file.
18287         * lib/unictype/joininggroup_byname.c: New file.
18288         * lib/unictype/joininggroup_byname.gperf: New file.
18289
18290         Tests for module 'unictype/joininggroup-name'.
18291         * modules/unictype/joininggroup-name-tests: New file.
18292         * tests/unictype/test-joininggroup_name.c: New file.
18293
18294         New module 'unictype/joininggroup-name'.
18295         * modules/unictype/joininggroup-name: New file.
18296         * lib/unictype/joininggroup_name.c: New file.
18297         * lib/unictype/joininggroup_name.h: New file.
18298
18299         New module 'unictype/joiningtype-all'.
18300         * modules/unictype/joiningtype-all: New file.
18301
18302         Tests for module 'unictype/joiningtype-of'.
18303         * modules/unictype/joiningtype-of-tests: New file.
18304         * tests/unictype/test-joiningtype_of.c: New file.
18305         * tests/unictype/test-joiningtype_of.h: New file, automatically
18306         generated by gen-uni-tables.
18307
18308         New module 'unictype/joiningtype-of'.
18309         * modules/unictype/joiningtype-of: New file.
18310         * lib/unictype/joiningtype_of.c: New file.
18311         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18312         gen-uni-tables.
18313
18314         Tests for module 'unictype/joiningtype-byname'.
18315         * modules/unictype/joiningtype-byname-tests: New file.
18316         * tests/unictype/test-joiningtype_byname.c: New file.
18317
18318         New module 'unictype/joiningtype-byname'.
18319         * modules/unictype/joiningtype-byname: New file.
18320         * lib/unictype/joiningtype_byname.c: New file.
18321
18322         Tests for module 'unictype/joiningtype-name'.
18323         * modules/unictype/joiningtype-name-tests: New file.
18324         * tests/unictype/test-joiningtype_name.c: New file.
18325
18326         New module 'unictype/joiningtype-name'.
18327         * modules/unictype/joiningtype-name: New file.
18328         * lib/unictype/joiningtype_name.c: New file.
18329
18330         unictype: Add support for Arabic shaping properties.
18331         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18332         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18333         declarations.
18334         (UC_JOINING_GROUP_*): New enumeration values.
18335         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18336         declarations.
18337         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18338         (unicode_joining_type): New variable.
18339         (UC_JOINING_GROUP_*): New enumeration values.
18340         (unicode_joining_group): New variable.
18341         (fill_arabicshaping, joining_type_as_c_identifier,
18342         output_joining_type_test, output_joining_type,
18343         joining_group_as_c_identifier, output_joining_group_test,
18344         output_joining_group): New functions.
18345         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18346         fill_arabicshaping and output_joining_type_test, output_joining_type,
18347         output_joining_group_test, output_joining_group.
18348         Reported by Simon Josefsson.
18349
18350 2011-03-21  Jim Meyering  <meyering@redhat.com>
18351
18352         strftime: fix a bug in yesterday's change
18353         * lib/strftime.c (add): Accommodate width's initial value of -1.
18354         Otherwise, nstrftime would copy uninitialized data into
18355         the result buffer.
18356
18357 2011-03-21  Jim Meyering  <meyering@redhat.com>
18358
18359         tests: add strftime-tests module
18360         * tests/test-strftime.c: New file.
18361         * modules/strftime-tests: New module.
18362
18363 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18364
18365         strftime: don't assume a byte count fits in 'int'
18366         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18367         found this problem by static analysis, using gcc -Wstrict-overflow
18368         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18369         on an integer overflow having undefined behavior, but it turns out
18370         that the argument is a size, which might not fit in 'int' anyway,
18371
18372 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18373
18374         stdio: don't require ignore_value around fwrite
18375
18376         This patch works around libc bug 11959
18377         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18378         Without this patch, applications must often write
18379         ignore_value (fwrite (...)) even though the ignore_value is
18380         not helpful here.  It's common to write many objects, using
18381         fwrite/printf/etc., and then use ferror to detect output error.
18382
18383         I considered making this patch optional, but decided against it,
18384         because libc is obviously being inconsistent here: there is no
18385         reason libc should insist that user code must inspect fwrite
18386         return's value without also insisting that it inspect printf's,
18387         putchar's, etc.  If user code wants to have a strict style where
18388         all these functions' values are checked (so that ferror need not
18389         be checked), we could add support for that style in a new gnulib
18390         module, but in the meantime it's better to be consistent and to
18391         support common usage.
18392
18393         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18394         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18395         that we are compiling in checking mode, and if not C++, and
18396         if not already wrapping fwrite for some other reason.
18397         (fwrite): #define to rpl_fwrite if the latter is defined.
18398
18399 2011-03-20  Bruno Haible  <bruno@clisp.org>
18400
18401         verror: Fix compilation error introduced on 2011-02-13.
18402         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18403         instead of __attribute__.
18404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18405
18406 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18407             Bruno Haible  <bruno@clisp.org>
18408
18409         socklen: do not depend on sys_socket
18410         While trying to modify Emacs to use gnulib's socklen module,
18411         I discovered a circular dependency: socklen depends on sys_socket
18412         and vice versa.  Emacs can use socklen, but it does not need
18413         sys_socket because it has its own substitute for sys/socket.h.
18414         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18415         gl_TYPE_SOCKLEN_T.
18416         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18417         gl_PREREQ_SYS_H_SOCKET.
18418         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18419         gl_PREREQ_SYS_H_SOCKET.
18420         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18421         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18422         * modules/socklen (Depends-on): Do not depend on sys_socket.
18423         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18424
18425 2011-03-20  Jim Meyering  <meyering@redhat.com>
18426
18427         maint.mk: sort file names *after* new transformation
18428         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18429         prefix would have led to an unwarranted failure in GNU parted.
18430         Sort after that transformation.
18431
18432 2011-03-19  Jim Meyering  <meyering@redhat.com>
18433
18434         maint.mk: fix po-file syntax-check rule
18435         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18436         Patch by Bruno Haible.
18437
18438 2011-03-19  Bruno Haible  <bruno@clisp.org>
18439
18440         socklen: Update comment.
18441         * m4/socklen.m4: Update comment about platforms.
18442
18443 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18444             Bruno Haible  <bruno@clisp.org>
18445
18446         inet_ntop, inet_pton: Simplify.
18447         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18448         documented to provide socklen_t and we already depend on sys_socket.
18449         * modules/inet_pton (Depends-on): Likewise.
18450         * lib/arpa_inet.in.h: Adjust comment.
18451
18452 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18453             Bruno Haible  <bruno@clisp.org>
18454
18455         netdb: Simplify.
18456         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18457         documented to provide socklen_t and we already depend on sys_socket.
18458         * lib/netdb.in.h: Adjust comment.
18459
18460 2011-03-19  Bruno Haible  <bruno@clisp.org>
18461
18462         sys_socket, netdb: Document problem with socklen_t.
18463         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18464         platforms.
18465         * doc/posix-headers/netdb.texi: Likewise.
18466
18467 2011-03-18  Eric Blake  <eblake@redhat.com>
18468
18469         maint.mk: let po check work in VPATH build
18470         * top/maint.mk (po_file): Allow cfg.mk override.
18471         (sc_po_check): Allow VPATH use.
18472         Reported by Jiri Denemark.
18473
18474 2011-03-16  Jim Meyering  <meyering@redhat.com>
18475
18476         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18477         Before, you would have had to create one .x-sc_ file per rule in order
18478         to exempt offending files.  Now, you may instead use a Make variable --
18479         usually defined in cfg.mk -- whose name identifies the affected rule.
18480         * top/maint.mk (_sc_excl): Define.
18481         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18482         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18483
18484 2011-03-13  Bruno Haible  <bruno@clisp.org>
18485
18486         ignore-value tests: Avoid warnings.
18487         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18488         empty for gcc < 3.4.
18489
18490 2011-03-13  Bruno Haible  <bruno@clisp.org>
18491
18492         passfd: Fix link error on Solaris.
18493         * modules/passfd (Description): Correct.
18494         (Depends-on): Add socketlib.
18495         (Link): New section.
18496         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18497
18498 2011-03-13  Bruno Haible  <bruno@clisp.org>
18499
18500         passfd: Fix link error on AIX 5.2.
18501         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18502
18503 2011-03-13  Bruno Haible  <bruno@clisp.org>
18504
18505         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18506         * lib/sys_socket.in.h: Include <stddef.h>.
18507         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18508         CMSG_FIRSTHDR. Remove unused variable.
18509
18510 2011-03-13  Bruno Haible  <bruno@clisp.org>
18511
18512         passfd: Fix compilation error on OpenBSD.
18513         * lib/passfd.c: Include <sys/uio.h>.
18514
18515 2011-03-13  Bruno Haible  <bruno@clisp.org>
18516
18517         passfd test: Fix warnings.
18518         * tests/test-passfd.c: Include <sys/wait.h>.
18519         (main): Fix typo.
18520
18521 2011-03-13  Bruno Haible  <bruno@clisp.org>
18522
18523         passfd module, part 4, tweaks.
18524         * tests/test-passfd.c: Reorder includes.
18525         (main): Fix perror and printf calls.
18526
18527 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18528
18529         passfd module, part 4.
18530         * modules/passfd-tests: New file.
18531         * tests/test-passfd.c: New file.
18532
18533 2011-03-13  Jim Meyering  <meyering@redhat.com>
18534
18535         Makefile: rely on GNU make; derive syntax-check rule names
18536         Rather than requiring that each sc_ rule be listed as a dependent
18537         of "check", use features of GNU make to derive the list.
18538         * Makefile (syntax-check-rules): Define.
18539         (check): Depend on the new variable, not the hard-coded list.
18540
18541 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18542             Bruno Haible  <bruno@clisp.org>
18543
18544         passfd module, part 3.
18545         * lib/passfd.h (recvfd): Add a flags argument.
18546         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18547         (recvfd): Add a flags argument.
18548         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18549         exists.
18550         * modules/passfd (Depends-on): Add cloexec.
18551         Suggested by Eric Blake.
18552
18553 2011-03-13  Bruno Haible  <bruno@clisp.org>
18554
18555         passfd module, part 2, tweaks.
18556         * modules/passfd (Files): Reorder.
18557         (Depends-on): Remove errno.
18558         (Include): Remove <sys/socket.h>, <sys/un.h>.
18559         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18560         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18561         specification header. Include <sys/socket.h> always. Don't include
18562         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18563         (sendfd): Clarify that it sets errno when it fails.
18564         (recvfd): Fix specification.
18565
18566 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18567
18568         passfd module, part 2.
18569         * modules/passfd: New file.
18570         * lib/passfd.h: New file.
18571         * lib/passfd.c: New file.
18572
18573 2011-03-12  Bruno Haible  <bruno@clisp.org>
18574
18575         wcswidth, mbswidth: Avoid integer overflow.
18576         * lib/wcswidth.c: Include <limits.h>.
18577         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18578         * lib/mbswidth.c: Include <limits.h>.
18579         (mbsnwidth): Avoid 'int' overflow.
18580         Reported by Jim Meyering.
18581
18582 2011-03-12  Bruno Haible  <bruno@clisp.org>
18583
18584         futimens, utimensat: Avoid endless recursion on Solaris 10.
18585         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18586         Solaris.
18587         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18588         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18589
18590 2011-03-11  Jim Meyering  <meyering@redhat.com>
18591
18592         maint.mk: relax a regexp to accommodate other formatting styles
18593         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18594         between "ngettext" and the following "(".
18595
18596 2011-03-11  Pádraig Brady <P@draigBrady.com>
18597
18598         maint.mk: suppress a false positive warning
18599         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18600         diagnostics are marked with ngettext.
18601
18602 2011-03-10  Eric Blake  <eblake@redhat.com>
18603
18604         wchar: add explicit dependencies, for Tru64
18605         * modules/mbmemcasecoll (Depends-on): Add wchar.
18606         * modules/mbtowc (Depends-on): Likewise.
18607         * modules/vasnprintf (Depends-on): Likewise.
18608         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18609         * modules/wctomb (Depends-on): Likewise.
18610         Reported by Peter O'Gorman.
18611
18612 2011-03-08  Bruno Haible  <bruno@clisp.org>
18613
18614         passfd module, part 1, tweaks.
18615         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18616         Improve indentation. Improve AC_MSG_CHECKING messages.
18617         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18618         gl_SOCKET_FAMILIES.
18619
18620 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18621
18622         passfd module, part 1.
18623         * m4/afunix.m4: New file.
18624         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18625         sockets.
18626
18627 2011-03-08  Bruno Haible  <bruno@clisp.org>
18628
18629         regex-quote: New API.
18630         * lib/regex-quote.h: Include <stdbool.h>.
18631         (struct regex_quote_spec): New type.
18632         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18633         New declarations.
18634         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18635         'const struct regex_quote_spec *' argument.
18636         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18637         (pcre_special): New constant.
18638         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18639         New functions.
18640         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18641         'const struct regex_quote_spec *' argument.
18642         * modules/regex-quote (Depends-on): Add stdbool.
18643         * tests/test-regex-quote.c (check): Update for new API. Add test for
18644         anchored results.
18645         * NEWS: Mention the API change.
18646         Reported by Reuben Thomas and Eric Blake.
18647
18648 2011-03-06  Bruno Haible  <bruno@clisp.org>
18649
18650         regex-quote: Fix creation of POSIX extended regular expressions.
18651         * lib/regex-quote.c (ere_special): Add grouping and alternation
18652         operators.
18653
18654 2011-03-05  Bruno Haible  <bruno@clisp.org>
18655
18656         doc: Improve doc regarding autopoint vs. gnulib.
18657         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18658         disable autopoint while running autoreconf.
18659         Suggested by Ralf Wildenhues.
18660
18661 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18662
18663         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18664         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18665
18666 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18667
18668         parse-duration: remove xalloc.h dependency
18669         * lib/parse-duration.c (parse_period): handle NULL return from
18670         strdup instead of calling xstrdup().
18671         * modules/parse-duration: remove "xalloc" dependency
18672
18673 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18674
18675         bootstrap: honor m4_base when running aclocal
18676         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18677
18678 2011-03-02  Jim Meyering  <meyering@redhat.com>
18679
18680         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18681         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18682         on request from Matt Booth.
18683
18684 2011-03-01  Eric Blake  <eblake@redhat.com>
18685
18686         test-link: work on Hurd
18687         * tests/test-link.h (test_link): Hurd rejects linking directories
18688         with EISDIR instead of the POSIX-mandated EPERM.
18689
18690 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18691
18692         stdio: simplify by moving files to printf-posix, sigpipe
18693         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18694         since this symbol is needed only if printf is replaced.
18695         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18696         Require gl_ASM_SYMBOL_PREFIX.
18697         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18698         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18699         (Depends-on): Add 'raise'.
18700         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18701         * modules/stdio (Files): Remove lib/stdio-write.c,
18702         m4/asm-underscore.m4.
18703         (Depends-on): Remove 'raise'.
18704
18705         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18706         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18707         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18708         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18709
18710 2011-02-28  Bruno Haible  <bruno@clisp.org>
18711
18712         localcharset: Assume ANSI C behaviour of free().
18713         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18714         calling free().
18715         Suggested by Simon Josefsson <simon@josefsson.org>.
18716
18717 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18718             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18719             Bruno Haible  <bruno@clisp.org>  (tiny change)
18720
18721         On Cygwin, use /proc file system instead of win32 API.
18722         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18723         Win32 file names.
18724         (DllMain): Simplify by removing Cygwin specific code.
18725         (find_shared_library_fullname): Use Linux specific implementation also
18726         for Cygwin.
18727         (get_shared_library_fullname): Update accordingly.
18728         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18729         Win32 file names.
18730         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18731         Cygwin specific code.
18732
18733 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18734             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18735
18736         Fix OpenMP flag detection for various Fortran compilers.
18737         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18738         OpenMP-conditional compilation construct, to force compile
18739         failure with missing OpenMP flag.
18740         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18741
18742 2011-02-25  Eric Blake  <eblake@redhat.com>
18743
18744         strstr: expand test coverage
18745         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18746         compilation.
18747         * tests/test-memmem.c (main): Duplicate tests.
18748         * tests/test-strcasestr.c (main): Likewise.
18749         * tests/test-c-strcasestr.c (main): Likewise.
18750
18751 2011-02-25  Jim Meyering  <meyering@redhat.com>
18752
18753         maint.mk: detect missing-NL-at-EOF, too
18754         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18755         it also detects when a file lacks a newline at EOF.
18756         (require_exactly_one_NL_at_EOF_): Renamed from
18757         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18758         since people may well have .x-sc_... file names tied to the
18759         existing name.  Suggested by Eric Blake.
18760
18761 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18762
18763         dirname: move m4/dos.m4 functionality into lib/dosname.h
18764
18765         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18766         extracts symbols from it, puts them into config.h; but it's much
18767         easier to use the symbols directly.  filename.h already does this,
18768         but it disagrees with dos.m4 in some respects.  This patch
18769         introduces a different include file dosname.h that packages up
18770         dos.m4, and then later we can work on merging filename.h and
18771         dosname.h.  Applications that need only the easy-to-configure
18772         symbols should consider including dosname.h rather than dirname.h.
18773         * NEWS: Mention incompatible changes.
18774         * m4/dos.m4: Remove.
18775         * lib/dosname.h, modules/dosname: New files.
18776         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18777         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18778         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18779         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18780         Include dosname.h, not dirname.h.
18781         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18782         Include dosname.h, for definitions of symbols like ISSLASH
18783         that used to be in config.h.
18784         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18785         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18786         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18787         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18788         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18789         * modules/rmdir (Files): Likewise.
18790         * modules/stat (Files): Likewise.
18791         * modules/unlink (Files): Likewise.
18792         * modules/dirname-lgpl (Depends-on): Add dosname.
18793         * modules/lstat (Depends-on): Likewise.
18794         * modules/openat (Depends-on): Likewise.
18795         * modules/rmdir (Depends-on): Likewise.
18796         * modules/savewd (Depends-on): Likewise.
18797         * modules/stat (Depends-on): Likewise.
18798         * modules/unlink (Depends-on): Likewise.
18799         * modules/openat (Depends-on): Remove dirname-lgpl.
18800         * modules/savewd (Depends-on): Likewise.
18801         * tests/test-dirname.c: Do not use removed symbols like
18802         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18803         the remaining symbols, e.g., ISSLASH ('\\').
18804
18805 2011-02-25  Eric Blake  <eblake@redhat.com>
18806
18807         strstr: revert patches that introduced bug and pessimization
18808         * lib/str-two-way.h: Add another reference.
18809         (two_way_short_needle, two_way_long_needle): Revert changes from
18810         2011-02-24; they pessimize search speed.
18811         (critical_factorization): Partially revert changes from
18812         2010-06-22; they violate the requirement that the left half of the
18813         needle be smaller than the period of the needle.
18814
18815 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18816
18817         filenamecat: remove unnecessary dependency on dirname-lgpl
18818         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18819         is no direct dependency, just an indirect one via filenamecat-lgpl.
18820
18821         remove: remove unnecessary use of m4/dos.m4
18822         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18823         * modules/remove (FILES): Remove m4/dos.m4.
18824
18825         * lib/openat-proc.c: Don't include dirname.h; not needed.
18826
18827         backupfile: remove unnecessary use of m4/dos.m4
18828         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18829         of its symbols are used by the backupfile code.  backupfile.c does
18830         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18831         for the rare case of programs that want all their backup file
18832         names to live within 8+3 limits, and dos.m4 doesn't address that.
18833         * modules/backupfile (Files): Remove m4/dos.m4.
18834
18835 2011-02-24  Jim Meyering  <meyering@redhat.com>
18836
18837         strstr: fix a bug whereby strstr would mistakenly return NULL
18838         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18839         in period calculation.
18840         (two_way_long_needle): Likewise.
18841         The original problem was reported by Mike Stump in
18842         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18843         Ralf Wildenhues provided the short needle and haystack.
18844         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18845         Add a more involved test to trigger the bug in two_way_long_needle.
18846
18847 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18848
18849         gnulib-tool: remove use of bold display in help screen
18850         * gnulib-tool (func_usage): Do not use bold display anymore in the
18851         help screen.  That was just meant to be a temporary emphasis for a
18852         backward-incompatible change.
18853
18854 2011-02-23  Bruno Haible  <bruno@clisp.org>
18855
18856         Fix misindentation of preprocessor directives.
18857         * lib/argp-namefrob.h: Reindent preprocessor directives.
18858         * lib/getopt_int.h (struct _getopt_data): Likewise.
18859         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18860         * lib/vasnprintf.c (decode_long_double): Likewise.
18861         * tests/test-argmatch.c: Insert blank lines, for clarity.
18862         * tests/test-exclude.c: Likewise.
18863
18864 2011-02-22  Bruno Haible  <bruno@clisp.org>
18865
18866         ioctl: Fix for MacOS X in 64-bit mode.
18867         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18868         value.
18869         Suggested by Eric Blake.
18870         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18871
18872 2011-02-22  Jim Meyering  <meyering@redhat.com>
18873
18874         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18875         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18876         in lib/.
18877
18878 2011-02-22  Eric Blake  <eblake@redhat.com>
18879
18880         maint: avoid any CDPATH issue
18881         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18882
18883         maint: adjust cpp indentation for my modules, as well
18884         * Makefile (sc_cpp_indent_check): Add my name.
18885         * lib/fbufmode.c: Filter through cppi.
18886         * lib/fpurge.c: Likewise.
18887         * lib/freadable.c: Likewise.
18888         * lib/freading.c: Likewise.
18889         * lib/fwritable.c: Likewise.
18890         * lib/fwriting.c: Likewise.
18891         * lib/sigaction.c: Likewise.
18892
18893 2011-02-22  Jim Meyering  <meyering@redhat.com>
18894
18895         maint: adjust cpp indentation to reflect nesting depth
18896         I.e., in a block of code that begins with an unnested "#if",
18897         put one space between the "#" in column 1 and following token.
18898         For example,
18899         -#include <sys/vfs.h>
18900         +# include <sys/vfs.h>
18901         Do this only in .c files that are part of a module I maintain.
18902         * lib/linkat.c: Filter through cppi.
18903         * lib/nanosleep.c: Likewise.
18904         * lib/openat.c: Likewise.
18905         * lib/openat-die.c: Likewise.
18906         * lib/dup3.c: Likewise.
18907         * lib/fchownat.c: Likewise.
18908         * lib/flock.c: Likewise.
18909         * lib/fsync.c: Likewise.
18910         * lib/fts.c: Likewise.
18911         * lib/getpass.c: Likewise.
18912         * lib/gettimeofday.c: Likewise.
18913         * lib/userspec.c: Likewise.
18914         * Makefile (sc_cpp_indent_check): New rule, to check this.
18915
18916 2011-02-22  Bruno Haible  <bruno@clisp.org>
18917
18918         New module 'wctomb'.
18919         * lib/stdlib.in.h (wctomb): New declaration.
18920         * lib/wctomb.c: New file.
18921         * lib/wctomb-impl.h: New file.
18922         * m4/wctomb.m4: New file.
18923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18924         REPLACE_WCTOMB.
18925         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18926         REPLACE_WCTOMB.
18927         * modules/wctomb: New file.
18928         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18929         * doc/posix-functions/wctomb.texi: Mention the new module.
18930         * modules/wctob (Depends-on): Add wctomb.
18931
18932 2011-02-22  Bruno Haible  <bruno@clisp.org>
18933
18934         New module 'mbtowc'.
18935         * lib/stdlib.in.h (mbtowc): New declaration.
18936         * lib/mbtowc.c: New file.
18937         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18938         * m4/mbtowc.m4: New file.
18939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18940         REPLACE_MBTOWC.
18941         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18942         REPLACE_MBTOWC.
18943         * modules/mbtowc: New file.
18944         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18945         * doc/posix-functions/mbtowc.texi: Mention the new module.
18946         * modules/btowc (Depends-on): Add mbtowc.
18947
18948 2011-02-22  Bruno Haible  <bruno@clisp.org>
18949
18950         wcrtomb: Add more tests for native Windows platforms.
18951         * tests/test-wcrtomb-w32-1.sh: New file.
18952         * tests/test-wcrtomb-w32-2.sh: New file.
18953         * tests/test-wcrtomb-w32-3.sh: New file.
18954         * tests/test-wcrtomb-w32-4.sh: New file.
18955         * tests/test-wcrtomb-w32-5.sh: New file.
18956         * tests/test-wcrtomb-w32.c: New file.
18957         * modules/wcrtomb-tests (Files): Add them.
18958         (Makefile.am): Arrange to run these tests.
18959         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18960         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18961
18962 2011-02-20  Bruno Haible  <bruno@clisp.org>
18963
18964         wcrtomb: Enhance test.
18965         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18966
18967 2011-02-20  Bruno Haible  <bruno@clisp.org>
18968
18969         mbrtowc: Tiny optimization.
18970         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18971
18972 2011-02-20  Jim Meyering  <meyering@redhat.com>
18973
18974         test-exclude.c: remove unmatched #endif
18975         * tests/test-exclude.c: Remove stray #endif, left over from
18976         the change of a week ago.
18977
18978 2011-02-19  Jim Meyering  <meyering@redhat.com>
18979
18980         git-version-gen: skip "-dirty" check when appropriate
18981         * build-aux/git-version-gen: Don't run any git commands when the
18982         version string comes from .tarball-version.  Prior to this, we
18983         would run git update-index --refresh even from a just-unpacked
18984         tarball directory, and that could affect a .git/ directory in a
18985         parent of the build directory.  Reported by Mike Frysinger.
18986
18987 2011-02-19  Bruno Haible  <bruno@clisp.org>
18988
18989         unictype/property-byname: Reduce the size of the 'data' segment.
18990         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18991
18992 2011-02-19  Bruno Haible  <bruno@clisp.org>
18993
18994         unictype/scripts: Reduce the size of the 'data' segment.
18995         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18996         '%pic'.
18997         * lib/unictype/scripts_byname.gperf: Regenerated.
18998
18999 2011-02-19  Bruno Haible  <bruno@clisp.org>
19000
19001         stdint: Update documentation.
19002         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19003
19004 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19005
19006         stdint: omit redundant check for wchar.h
19007         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19008         always tests whether wchar.h exists, so remove the now-redundant test.
19009
19010 2011-02-18  Bruno Haible  <bruno@clisp.org>
19011
19012         stdint: Cut dependency to module 'wchar'.
19013         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19014         include the necessary prerequisites.
19015         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19016         * modules/stdint (Depends-on): Remove wchar.
19017         (Makefile.am): Substitute HAVE_WCHAR_H.
19018         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19019
19020 2011-02-18  Eric Blake  <eblake@redhat.com>
19021
19022         longlong: skip, rather than fail, on cross-compilation
19023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19024         when cross-compiling; regression from 2011-02-16.
19025
19026 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19027
19028         * NEWS: Mention 2011-02-08 change to stdlib.
19029
19030 2011-02-17  Bruno Haible  <bruno@clisp.org>
19031
19032         getloadavg: Add comments about platforms.
19033         * m4/getloadavg.m4: Add comment.
19034         * lib/getloadavg.c: Likewise.
19035
19036 2011-02-17  Bruno Haible  <bruno@clisp.org>
19037
19038         getloadavg: Fix link error on Solaris 2.6.
19039         * modules/getloadavg (Link): New section.
19040         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19041         linking test-getloadavg.
19042         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19043         getloadavg.
19044
19045 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19046
19047         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19048         It was 'int', but this doesn't match the IRIX 6.5 manual.
19049         Suggested by Bruno Haible in
19050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19051
19052 2011-02-17  Bruno Haible  <bruno@clisp.org>
19053
19054         havelib: Fix comments.
19055         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19056         change.
19057
19058 2011-02-17  Bruno Haible  <bruno@clisp.org>
19059
19060         havelib: Update config.rpath.
19061         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19062
19063 2011-02-17  Bruno Haible  <bruno@clisp.org>
19064
19065         getloadavg test: Add some plausibility checks.
19066         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19067         is improbable.
19068
19069 2011-02-16  Eric Blake  <eblake@redhat.com>
19070
19071         maintainer-makefile: make syntax-check a no-op from tarballs
19072         * top/maint.mk (no-vc-detected): New rule.
19073         (local-checks-available): Use it to avoid hanging if someone tries
19074         'make syntax-check' from a tarball.  Also append to any non-syntax
19075         checks already defined in cfg.mk.
19076
19077 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         longlong: tune, particularly for common case of c99
19080
19081         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19082         or running anything if c99, or if unsigned long long int does not
19083         work.  In either case, we know the answer without further tests.
19084         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19085         it at most once, and use its results for both long long int and
19086         unsigned long long int.  This is more likely to be efficient in
19087         the common case where the program wants to check for both long
19088         long int and unsigned long long int.
19089         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19090         since the answer is already known.
19091
19092 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19093
19094         getloadavg: set errno
19095         * lib/getloadavg.c: Set errno when returning -1.  If no other
19096         error number looks appropriate, set it to ENOSYS if the getloadavg
19097         looks like it can't possibly ever work, ENOTSUP otherwise.
19098         Suggested by Bruno Haible in
19099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19100
19101         getloadavg: trim unused parts and speed up 'configure'
19102         * NEWS: Document this.
19103         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19104         always compiled if getloadavg is absent.
19105         Move test code to ...
19106         * tests/test-getloadavg.c: New file, containing previous
19107         contents of test from lib/getloadavg.c.  It also contains
19108         suggestions by Bruno Haible in
19109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19110         * modules/getloadavg-tests: New file.
19111         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19112         Do tests in the same order as they're needed for getloadavg.c.
19113         Omit setgid-related tests that generate symbols KMEM_GROUP,
19114         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19115         Do only the tests that are needed to see whether the system has
19116         getloadavg, moving the other tests into ...
19117         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19118         NLIST_NAME_UNION; nobody should be using it.  Do not define
19119         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19120         relevant, as the user of this module shouldn't care how getloadavg
19121         is implemented.
19122
19123         getloadavg: omit unused var
19124         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19125
19126 2011-02-15  Jim Meyering  <meyering@redhat.com>
19127
19128         doc: update users.txt
19129         * users.txt: Update iwhd's URL.
19130
19131 2011-02-13  Bruno Haible  <bruno@clisp.org>
19132
19133         Consistent macro naming for macros that use GCC __attribute__.
19134         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19135         _ATTRIBUTE_NONNULL_.
19136         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19137         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19138         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19139         ATTRIBUTE_DEPRECATED.
19140         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19141         ATTRIBUTE_NORETURN.
19142         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19143         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19144         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19145         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19146         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19147         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19148         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19149         ATTRIBUTE_SENTINEL.
19150         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19151         ATTRIBUTE_RETURN_CHECK.
19152         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19153         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19154         ATTRIBUTE_NORETURN.
19155         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19156         Reported by Paul Eggert.
19157
19158 2011-02-13  Bruno Haible  <bruno@clisp.org>
19159
19160         Don't interfere with a program's definition of __attribute__.
19161         * lib/argp.h (__attribute__): Remove definition.
19162         (_GL_ATTRIBUTE_FORMAT): New macro.
19163         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19164         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19165         (_GL_ATTRIBUTE_FORMAT): New macro.
19166         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19167         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19168         GCC 3 or newer.
19169         * lib/error.h (__attribute__): Remove definition.
19170         (_GL_ATTRIBUTE_FORMAT): New macro.
19171         (error, error_at_line): Use it.
19172         * lib/hash.h (__attribute__): Remove definition.
19173         (ATTRIBUTE_WUR): Update definition. Define always.
19174         * lib/openat.h (__attribute__): Remove definition.
19175         (ATTRIBUTE_NORETURN): Update definition. Define always.
19176         * lib/sigpipe-die.h (__attribute__): Remove definition.
19177         (ATTRIBUTE_NORETURN): Update definition. Define always.
19178         * lib/vasnprintf.h (__attribute__): Remove definition.
19179         (_GL_ATTRIBUTE_FORMAT): New macro.
19180         (asnprintf, vasnprintf): Use it.
19181         * lib/xalloc.h (__attribute__): Remove definition.
19182         (ATTRIBUTE_NORETURN): Update definition. Define always.
19183         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19184         * lib/xmemdup0.h (__attribute__): Remove definition.
19185         (ATTRIBUTE_NORETURN): Update definition. Define always.
19186         * lib/xprintf.h (__attribute__): Remove definition.
19187         (_GL_ATTRIBUTE_FORMAT): New macro.
19188         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19189         * lib/xstrtol.h (__attribute__): Remove definition.
19190         (ATTRIBUTE_NORETURN): Update definition. Define always.
19191         * lib/xvasprintf.h (__attribute__): Remove definition.
19192         (_GL_ATTRIBUTE_FORMAT): New macro.
19193         (xasprintf, xvasprintf): Use it.
19194         * tests/test-argmatch.c (__attribute__): Remove definition.
19195         (ATTRIBUTE_NORETURN): Update definition. Define always.
19196         * tests/test-exclude.c (__attribute__): Remove definition.
19197         (ATTRIBUTE_NORETURN): Update definition. Define always.
19198         Reported by Paul Eggert.
19199
19200 2011-02-13  Bruno Haible  <bruno@clisp.org>
19201
19202         mbrtowc: Add more tests for native Windows platforms.
19203         * tests/test-mbrtowc-w32-1.sh: New file.
19204         * tests/test-mbrtowc-w32-2.sh: New file.
19205         * tests/test-mbrtowc-w32-3.sh: New file.
19206         * tests/test-mbrtowc-w32-4.sh: New file.
19207         * tests/test-mbrtowc-w32-5.sh: New file.
19208         * tests/test-mbrtowc-w32.c: New file.
19209         * modules/mbrtowc-tests (Files): Add them.
19210         (Makefile.am): Arrange to run these tests.
19211         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19212         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19213
19214 2011-02-13  Bruno Haible  <bruno@clisp.org>
19215
19216         mbrtowc: Work around native Windows bug.
19217         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19218         guess when no suitable locale for testing was found.
19219         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19220
19221 2011-02-13  Bruno Haible  <bruno@clisp.org>
19222
19223         mbsinit: Work around mingw bug.
19224         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19225         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19226         Windows.
19227         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19228
19229 2011-02-13  Bruno Haible  <bruno@clisp.org>
19230
19231         mbsinit: Don't crash for a NULL argument.
19232         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19233         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19234
19235 2011-02-13  Bruno Haible  <bruno@clisp.org>
19236
19237         Don't interfere with a program's definition of __attribute__.
19238         * lib/stdio.in.h (__attribute__): Remove definition.
19239         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19240         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19241         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19242         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19243         * lib/string.in.h (__attribute__): Remove definition.
19244         Reported by Paul Eggert.
19245
19246 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19247
19248         stdlib: don't get in the way of non-GCC __attribute__
19249         See thread starting at
19250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19251         Revert previous stdlib change, installing the following instead:
19252         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19253         to get in the way of a non-GCC compiler that supports __attribute__.
19254         (_GL_ATTRIBUTE_RETURN): New macro.
19255         (_Exit): Use it instead of __attribute__.
19256
19257 2011-02-12  Bruno Haible  <bruno@clisp.org>
19258
19259         quotearg test: Avoid test failure on mingw.
19260         * tests/test-quotearg.sh: Convert the locale identifier from native
19261         Windows syntax to Unix syntax.
19262
19263 2011-02-12  Bruno Haible  <bruno@clisp.org>
19264
19265         setlocale: Prefer gnulib's override over libintl's override.
19266         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19267         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19268         GNULIB_defined_setlocale is set.
19269
19270 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19271
19272         stdlib: support non-GCC __attribute__
19273
19274         Fix a serious and tricky problem encountered when attempting to
19275         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19276         5.5, but it crashed due to memory corruption on Solaris 10 with
19277         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19278         bits that are otherwise zero.  This tagging is optional inside
19279         Emacs but is preferred and is used when __attribute__ ((__aligned
19280         (8))) works, as it does with both recent-enough GCC and with Sun C
19281         5.11.  However, Sun C 5.11 is not GCC and does not #define
19282         __GNUC__ and __GNUC_MINOR__.
19283
19284         When I added the getloadavg module to Emacs, it brought in
19285         stdlib.in.h, which contained this fragment:
19286
19287            #ifndef __attribute__
19288            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19289            #  define __attribute__(Spec)   /* empty */
19290            # endif
19291            #endif
19292
19293         When files that include <stdlib.h> were compiled with Sun C 5.11,
19294         the above code disabled __attribute__ ((__aligned (8))), which
19295         caused variables to not be properly aligned, which eventually led
19296         to the pointer corruption mentioned above.  (This was a bit hard
19297         to diagnose, unfortunately.)
19298
19299         Several "#define __attribute__(X) /* empty */" code snippets need
19300         to be eradicated from Gnulib to work with non-GCC compilers that
19301         support __attribute__.  The Autoconf way to do this is to test for
19302         each kind of attribute that we want support for, and selectively
19303         enable that in source code.
19304
19305         Fix this problem just for stdlib.h, by adding a test for the
19306         __noreturn__ attribute, and change stdlib.in.h to use that test
19307         when needed.  This technique can be easily generalized to the
19308         other *.in.h files and attributes, and a similar technique can be
19309         used for *.h and *.c files.  This patch is enough to solve the
19310         problem for Emacs + getloadavg, and I thought I'd publish it for
19311         feedback before undertaking further, similar fixes in other
19312         modules.
19313
19314         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19315         because it's not needed for stdlib.h.  It merely substitutes the
19316         value directly into stdlib.h.  We may well need to #define it, or
19317         similar symbols, for other modules, but it's nice to also have an
19318         option to not #define it for applications like Emacs that do not
19319         need it.
19320
19321         * lib/stdlib.in.h (__attribute__): Do not #define.
19322         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19323         be defined only if the _Exit module is also used.
19324         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19326         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19327         platforms.
19328         * modules/_Exit (Files): Add m4/attribute.m4.
19329         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19330         * m4/attribute.m4: New file.
19331
19332 2011-02-12  Bruno Haible  <bruno@clisp.org>
19333
19334         wcsrtombs: Work around bug on native Windows.
19335         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19336         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19337         instead of len.
19338         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19339
19340 2011-02-12  Bruno Haible  <bruno@clisp.org>
19341
19342         mbsrtowcs: Work around bug on native Windows.
19343         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19344         against mingw bug.
19345         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19346
19347 2011-02-12  Bruno Haible  <bruno@clisp.org>
19348
19349         Avoid setlocale bugs in tests.
19350         * modules/btowc (Dependencies): Add setlocale.
19351         * modules/c-strcase (Dependencies): Likewise.
19352         * modules/mbmemcasecmp (Dependencies): Likewise.
19353         * modules/mbmemcasecoll (Dependencies): Likewise.
19354         * modules/mbrtowc (Dependencies): Likewise.
19355         * modules/mbscasecmp (Dependencies): Likewise.
19356         * modules/mbscasestr (Dependencies): Likewise.
19357         * modules/mbschr (Dependencies): Likewise.
19358         * modules/mbscspn (Dependencies): Likewise.
19359         * modules/mbsinit (Dependencies): Likewise.
19360         * modules/mbsncasecmp (Dependencies): Likewise.
19361         * modules/mbsnrtowcs (Dependencies): Likewise.
19362         * modules/mbspbrk (Dependencies): Likewise.
19363         * modules/mbspcasecmp (Dependencies): Likewise.
19364         * modules/mbsrchr (Dependencies): Likewise.
19365         * modules/mbsrtowcs (Dependencies): Likewise.
19366         * modules/mbsspn (Dependencies): Likewise.
19367         * modules/mbsstr (Dependencies): Likewise.
19368         * modules/nl_langinfo (Dependencies): Likewise.
19369         * modules/quotearg (Dependencies): Likewise.
19370         * modules/unicase/locale-language (Dependencies): Likewise.
19371         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19372         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19373         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19374         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19375         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19376         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19377         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19378         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19379         * modules/vasnprintf-posix (Dependencies): Likewise.
19380         * modules/wcrtomb (Dependencies): Likewise.
19381         * modules/wcsnrtombs (Dependencies): Likewise.
19382         * modules/wcsrtombs (Dependencies): Likewise.
19383
19384 2011-02-12  Bruno Haible  <bruno@clisp.org>
19385
19386         setlocale: Workaround native Windows bug.
19387         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19388         succeeds but sets LC_CTYPE to "C", report a failure.
19389         * tests/test-setlocale2.sh: New file.
19390         * tests/test-setlocale2.c: New file.
19391         * modules/setlocale-tests (Files): Add the new files.
19392         (Makefile.am): Enable test-setlocale2.sh test.
19393         * doc/posix-functions/setlocale.texi: Mention workaround.
19394
19395 2011-02-11  Bruno Haible  <bruno@clisp.org>
19396
19397         Tests for module 'setlocale'.
19398         * modules/setlocale-tests: New file.
19399         * tests/test-setlocale1.sh: New file.
19400         * tests/test-setlocale1.c: New file.
19401
19402         New module 'setlocale'.
19403         * lib/locale.in.h (setlocale): New declaration.
19404         * lib/setlocale.c: New file, based on
19405         gettext/gettext-runtime/intl/setlocale.c.
19406         * m4/setlocale.m4: New file.
19407         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19408         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19409         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19410         REPLACE_SETLOCALE.
19411         * modules/setlocale: New file.
19412         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19413         * doc/posix-functions/setlocale.texi: Mention the new module.
19414
19415 2011-02-11  Bruno Haible  <bruno@clisp.org>
19416
19417         Prepare for locale dependent tests on mingw.
19418         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19419         because it has the wrong locale encoding.
19420         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19421         French_France.1252 instead of "fr".
19422         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19423         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19424         because it has the wrong locale encoding.
19425         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19426         native Windows, try Turkish_Turkey.65001.
19427         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19428         Chinese_China.54936.
19429
19430         Prepare for locale dependent tests on mingw.
19431         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19432         differently.
19433         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19434         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19435         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19436         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19437
19438 2011-02-11  Eric Blake  <eblake@redhat.com>
19439
19440         strptime: avoid compiler warnings
19441         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19442         compiler warnings about dead code.
19443         Reported by Daniel P. Berrange.
19444
19445 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19446
19447         doc: update users.txt
19448         * users.txt: Add rcs.
19449
19450 2011-02-10  John W. Eaton  <jwe@gnu.org>
19451
19452         doc: update users.txt
19453         * users.txt: Add octave.
19454
19455 2011-02-10  Jim Meyering  <meyering@redhat.com>
19456
19457         doc: update users.txt
19458         * users.txt: Add iwhd.
19459
19460 2011-02-09  Bruno Haible  <bruno@clisp.org>
19461
19462         gnulib-tool: Make copyright notice adjustment more robust.
19463         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19464         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19465         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19466         License".
19467         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19468
19469 2011-02-06  Bruno Haible  <bruno@clisp.org>
19470
19471         New module 'towctrans'.
19472         * modules/towctrans: New file.
19473         * lib/wctype.in.h (towctrans): New declaration.
19474         * lib/towctrans.c: New file.
19475         * lib/towctrans-impl.h: New file.
19476         * m4/towctrans.m4: New file.
19477         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19478         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19479         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19480         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19481         * doc/posix-functions/towctrans.texi: Mention the new module.
19482
19483 2011-02-06  Bruno Haible  <bruno@clisp.org>
19484
19485         New module 'wctrans'.
19486         * modules/wctrans: New file.
19487         * lib/wctype.in.h (wctrans): New declaration.
19488         * lib/wctrans.c: New file.
19489         * lib/wctrans-impl.h: New file.
19490         * m4/wctrans.m4: New file.
19491         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19492         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19493         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19494         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19495         * doc/posix-functions/wctrans.texi: Mention the new module.
19496
19497 2011-02-06  Bruno Haible  <bruno@clisp.org>
19498
19499         New module 'iswctype'.
19500         * modules/iswctype: New file.
19501         * lib/wctype.in.h (iswctype): New declaration.
19502         * lib/iswctype.c: New file.
19503         * lib/iswctype-impl.h: New file.
19504         * m4/iswctype.m4: New file.
19505         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19506         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19507         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19508         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19509         * doc/posix-functions/iswctype.texi: Mention the new module and the
19510         HP-UX 11.00 problem.
19511
19512 2011-02-06  Bruno Haible  <bruno@clisp.org>
19513
19514         New module 'wctype'.
19515         * modules/wctype: Change to represent the wctype() substitute.
19516         * lib/wctype.in.h (wctype): New declaration.
19517         * lib/wctype.c: New file.
19518         * lib/wctype-impl.h: New file.
19519         * m4/wctype.m4: New file.
19520         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19521         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19522         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19523         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19524         * doc/posix-functions/wctype.texi: Mention the new module and the
19525         HP-UX 11.00 problem.
19526
19527 2011-02-06  Bruno Haible  <bruno@clisp.org>
19528
19529         wctype-h: Ensure wctype_t and wctrans_t are defined.
19530         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19531         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19532         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19533         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19534         HAVE_WCTRANS_T.
19535         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19536
19537 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19538
19539         flock: fix license typo
19540
19541         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19542         omitted.
19543
19544 2011-02-08  Bruno Haible  <bruno@clisp.org>
19545
19546         Split large sed scripts, for HP-UX sed.
19547         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19548         to avoid HP-UX limit of 99 commands, in the near future.
19549         * modules/stdlib (Makefile.am): Likewise.
19550         * modules/unistd (Makefile.am): Likewise.
19551         * modules/wchar (Makefile.am): Likewise.
19552         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19553         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19555
19556 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19557             Bruno Haible  <bruno@clisp.org>
19558
19559         stdlib: improve random_r modularization
19560         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19561         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19562         you also need the random_r module to get this material right.
19563         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19564         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19565         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19566
19567 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         stdlib: don't depend on stdint
19570         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19571         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19572         be independent of whether stdint.h is needed.
19573         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19574         here, instead of ...
19575         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19576         struct random_data should be using the random_r module, not just
19577         the stdlib module (which wouldn't make sense: what package needs
19578         just struct random_data without also needing random_r?).
19579         * modules/stdlib (Depends-on): Remove stdint.
19580
19581         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19582         See the thread rooted at
19583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19584         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19585         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19586         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19587         __VMS)); previously it was always included (via fcntl--.h).
19588         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19589         hand; this is good enough for load averages.  Also, do not use
19590         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19591         flags directly if available and don't bother otherwise.  (Packages
19592         that need the extra reliability should use the modules that define
19593         these flags on older platforms that lack them.)
19594         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19595         fcntl-safer.
19596
19597 2011-02-08  Jim Meyering  <meyering@redhat.com>
19598
19599         di-set.h, ino-map.h: add multiple-inclusion guard
19600         Technically, the guard is required only for ino-map.h, due to its
19601         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19602         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19603         * lib/ino-map.h: Likewise.
19604
19605 2011-02-06  Bruno Haible  <bruno@clisp.org>
19606
19607         iswblank: Ensure declaration on glibc systems.
19608         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19609         * modules/iswblank (Dependencies): Add 'extensions'.
19610         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19611
19612 2011-02-06  Bruno Haible  <bruno@clisp.org>
19613
19614         New module 'iswblank'.
19615         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19616         * modules/iswblank: New file.
19617         * modules/wctype-h (Files): Remove lib/iswblank.c.
19618         (Makefile.am): Substitute GNULIB_ISWBLANK.
19619         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19620         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19621         (gl_WCTYPE_H_DEFAULTS): New macro.
19622         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19623         * modules/iswblank-tests: New file.
19624         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19625         * tests/test-wctype-h.c (main): Remove iswblank tests.
19626         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19627         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19628         of 'wctype-h'.
19629         * NEWS: Mention the change.
19630         * modules/mbchar (Depends-on): Add iswblank.
19631
19632 2011-02-08  Bruno Haible  <bruno@clisp.org>
19633
19634         di-set tests: Refactor.
19635         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19636         unnecessary includes.
19637         (ASSERT): Remove macro.
19638         (main): Make C90 compliant by avoiding variable declaration after
19639         statement.
19640         * modules/di-set-tests (Files): Add tests/macros.h.
19641
19642 2011-02-08  Bruno Haible  <bruno@clisp.org>
19643
19644         ino-map tests: Refactor.
19645         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19646         unnecessary includes.
19647         (ASSERT): Remove macro.
19648         (main): Make C90 compliant by avoiding variable declaration after
19649         statement.
19650         * modules/ino-map-tests (Files): Add tests/macros.h.
19651
19652 2011-02-08  Jim Meyering  <meyering@redhat.com>
19653
19654         di-set: add "const" to a cast
19655         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19656         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19657
19658 2011-02-06  Bruno Haible  <bruno@clisp.org>
19659
19660         Rename module 'wctype' to 'wctype-h'.
19661         * modules/wctype-h: Renamed from modules/wctype.
19662         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19663         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19664         (Files, Depends-on, Makefile.am): Update.
19665         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19666         (Files, Makefile.am): Update.
19667         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19668         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19669         * doc/posix-headers/wctype.texi: Update.
19670         * doc/posix-functions/iswalnum.texi: Update.
19671         * doc/posix-functions/iswalpha.texi: Update.
19672         * doc/posix-functions/iswblank.texi: Update.
19673         * doc/posix-functions/iswcntrl.texi: Update.
19674         * doc/posix-functions/iswdigit.texi: Update.
19675         * doc/posix-functions/iswgraph.texi: Update.
19676         * doc/posix-functions/iswlower.texi: Update.
19677         * doc/posix-functions/iswprint.texi: Update.
19678         * doc/posix-functions/iswpunct.texi: Update.
19679         * doc/posix-functions/iswspace.texi: Update.
19680         * doc/posix-functions/iswupper.texi: Update.
19681         * doc/posix-functions/iswxdigit.texi: Update.
19682         * doc/posix-functions/towlower.texi: Update.
19683         * doc/posix-functions/towupper.texi: Update.
19684         * NEWS: Mention the change.
19685         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19686         * modules/mbchar (Dependencies): Likewise.
19687         * modules/mbswidth (Dependencies): Likewise.
19688         * modules/quotearg (Dependencies): Likewise.
19689         * modules/regex (Dependencies): Likewise.
19690         * modules/wcscasecmp (Dependencies): Likewise.
19691         * modules/wcsncasecmp (Dependencies): Likewise.
19692         * modules/wcwidth (Dependencies): Likewise.
19693
19694 2011-02-06  Bruno Haible  <bruno@clisp.org>
19695
19696         New module 'wcswidth'.
19697         * modules/wcswidth: New file.
19698         * lib/wchar.in.h (wcswidth): New declaration.
19699         * lib/wcswidth.c: New file.
19700         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19701         * m4/wcswidth.m4: New file.
19702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19704         REPLACE_WCSWIDTH.
19705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19706         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19707         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19708         * doc/posix-functions/wcswidth.texi: Mention the new module.
19709
19710 2011-02-06  Bruno Haible  <bruno@clisp.org>
19711
19712         New module 'wcstok'.
19713         * modules/wcstok: New file.
19714         * lib/wchar.in.h (wcstok): New declaration.
19715         * lib/wcstok.c: New file.
19716         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19717         * m4/wcstok.m4: New file.
19718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19721         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19722         * doc/posix-functions/wcstok.texi: Mention the new module.
19723
19724 2011-02-06  Bruno Haible  <bruno@clisp.org>
19725
19726         New module 'wcsstr'.
19727         * modules/wcsstr: New file.
19728         * lib/wchar.in.h (wcsstr): New declaration.
19729         * lib/wcsstr.c: New file.
19730         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19731         * m4/wcsstr.m4: New file.
19732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19735         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19736         * doc/posix-functions/wcsstr.texi: Mention the new module.
19737
19738 2011-02-06  Bruno Haible  <bruno@clisp.org>
19739
19740         New module 'wcspbrk'.
19741         * modules/wcspbrk: New file.
19742         * lib/wchar.in.h (wcspbrk): New declaration.
19743         * lib/wcspbrk.c: New file.
19744         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19745         * m4/wcspbrk.m4: New file.
19746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19749         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19750         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19751
19752 2011-02-06  Bruno Haible  <bruno@clisp.org>
19753
19754         New module 'wcsspn'.
19755         * modules/wcsspn: New file.
19756         * lib/wchar.in.h (wcsspn): New declaration.
19757         * lib/wcsspn.c: New file.
19758         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19759         * m4/wcsspn.m4: New file.
19760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19763         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19764         * doc/posix-functions/wcsspn.texi: Mention the new module.
19765
19766 2011-02-06  Bruno Haible  <bruno@clisp.org>
19767
19768         New module 'wcscspn'.
19769         * modules/wcscspn: New file.
19770         * lib/wchar.in.h (wcscspn): New declaration.
19771         * lib/wcscspn.c: New file.
19772         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19773         * m4/wcscspn.m4: New file.
19774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19777         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19778         * doc/posix-functions/wcscspn.texi: Mention the new module.
19779
19780 2011-02-06  Bruno Haible  <bruno@clisp.org>
19781
19782         New module 'wcsrchr'.
19783         * modules/wcsrchr: New file.
19784         * lib/wchar.in.h (wcsrchr): New declaration.
19785         * lib/wcsrchr.c: New file.
19786         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19787         * m4/wcsrchr.m4: New file.
19788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19791         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19792         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19793
19794 2011-02-06  Bruno Haible  <bruno@clisp.org>
19795
19796         New module 'wcschr'.
19797         * modules/wcschr: New file.
19798         * lib/wchar.in.h (wcschr): New declaration.
19799         * lib/wcschr.c: New file.
19800         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19801         * m4/wcschr.m4: New file.
19802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19805         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19806         * doc/posix-functions/wcschr.texi: Mention the new module.
19807
19808 2011-02-06  Bruno Haible  <bruno@clisp.org>
19809
19810         New module 'wcsdup'.
19811         * modules/wcsdup: New file.
19812         * lib/wchar.in.h (wcsdup): New declaration.
19813         * lib/wcsdup.c: New file.
19814         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19815         * m4/wcsdup.m4: New file.
19816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19819         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19820         * doc/posix-functions/wcsdup.texi: Mention the new module.
19821
19822 2011-02-06  Bruno Haible  <bruno@clisp.org>
19823
19824         New module 'wcsxfrm'.
19825         * modules/wcsxfrm: New file.
19826         * lib/wchar.in.h (wcsxfrm): New declaration.
19827         * lib/wcsxfrm.c: New file.
19828         * lib/wcsxfrm-impl.h: New file.
19829         * m4/wcsxfrm.m4: New file.
19830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19833         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19834         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19835
19836 2011-02-06  Bruno Haible  <bruno@clisp.org>
19837
19838         New module 'wcscoll'.
19839         * modules/wcscoll: New file.
19840         * lib/wchar.in.h (wcscoll): New declaration.
19841         * lib/wcscoll.c: New file.
19842         * lib/wcscoll-impl.h: New file.
19843         * m4/wcscoll.m4: New file.
19844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19847         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19848         * doc/posix-functions/wcscoll.texi: Mention the new module.
19849
19850 2011-02-06  Bruno Haible  <bruno@clisp.org>
19851
19852         New module 'wcsncasecmp'.
19853         * modules/wcsncasecmp: New file.
19854         * lib/wchar.in.h (wcsncasecmp): New declaration.
19855         * lib/wcsncasecmp.c: New file.
19856         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19857         * m4/wcsncasecmp.m4: New file.
19858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19861         HAVE_WCSNCASECMP.
19862         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19863         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19864
19865 2011-02-06  Bruno Haible  <bruno@clisp.org>
19866
19867         New module 'wcscasecmp'.
19868         * modules/wcscasecmp: New file.
19869         * lib/wchar.in.h (wcscasecmp): New declaration.
19870         * lib/wcscasecmp.c: New file.
19871         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19872         * m4/wcscasecmp.m4: New file.
19873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19876         HAVE_WCSCASECMP.
19877         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19878         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19879
19880 2011-02-05  Bruno Haible  <bruno@clisp.org>
19881
19882         New module 'wcsncmp'.
19883         * modules/wcsncmp: New file.
19884         * lib/wchar.in.h (wcsncmp): New declaration.
19885         * lib/wcsncmp.c: New file.
19886         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19887         * m4/wcsncmp.m4: New file.
19888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19891         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19892         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19893
19894 2011-02-05  Bruno Haible  <bruno@clisp.org>
19895
19896         New module 'wcscmp'.
19897         * modules/wcscmp: New file.
19898         * lib/wchar.in.h (wcscmp): New declaration.
19899         * lib/wcscmp.c: New file.
19900         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19901         * m4/wcscmp.m4: New file.
19902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19905         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19906         * doc/posix-functions/wcscmp.texi: Mention the new module.
19907
19908 2011-02-05  Bruno Haible  <bruno@clisp.org>
19909
19910         New module 'wcsncat'.
19911         * modules/wcsncat: New file.
19912         * lib/wchar.in.h (wcsncat): New declaration.
19913         * lib/wcsncat.c: New file.
19914         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19915         * m4/wcsncat.m4: New file.
19916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19919         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19920         * doc/posix-functions/wcsncat.texi: Mention the new module.
19921
19922 2011-02-05  Bruno Haible  <bruno@clisp.org>
19923
19924         New module 'wcscat'.
19925         * modules/wcscat: New file.
19926         * lib/wchar.in.h (wcscat): New declaration.
19927         * lib/wcscat.c: New file.
19928         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19929         * m4/wcscat.m4: New file.
19930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19933         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19934         * doc/posix-functions/wcscat.texi: Mention the new module.
19935
19936 2011-02-05  Bruno Haible  <bruno@clisp.org>
19937
19938         New module 'wcpncpy'.
19939         * modules/wcpncpy: New file.
19940         * lib/wchar.in.h (wcpncpy): New declaration.
19941         * lib/wcpncpy.c: New file.
19942         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19943         * m4/wcpncpy.m4: New file.
19944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19946         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19947         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19948         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19949
19950 2011-02-05  Bruno Haible  <bruno@clisp.org>
19951
19952         New module 'wcsncpy'.
19953         * modules/wcsncpy: New file.
19954         * lib/wchar.in.h (wcsncpy): New declaration.
19955         * lib/wcsncpy.c: New file.
19956         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19957         * m4/wcsncpy.m4: New file.
19958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19961         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19962         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19963
19964 2011-02-05  Bruno Haible  <bruno@clisp.org>
19965
19966         New module 'wcpcpy'.
19967         * modules/wcpcpy: New file.
19968         * lib/wchar.in.h (wcpcpy): New declaration.
19969         * lib/wcpcpy.c: New file.
19970         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19971         * m4/wcpcpy.m4: New file.
19972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19974         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19975         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19976         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19977
19978 2011-02-05  Bruno Haible  <bruno@clisp.org>
19979
19980         New module 'wcscpy'.
19981         * modules/wcscpy: New file.
19982         * lib/wchar.in.h (wcscpy): New declaration.
19983         * lib/wcscpy.c: New file.
19984         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19985         * m4/wcscpy.m4: New file.
19986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19989         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19990         * doc/posix-functions/wcscpy.texi: Mention the new module.
19991
19992 2011-02-05  Bruno Haible  <bruno@clisp.org>
19993
19994         New module 'wcsnlen'.
19995         * modules/wcsnlen: New file.
19996         * lib/wchar.in.h (wcsnlen): New declaration.
19997         * lib/wcsnlen.c: New file.
19998         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19999         * m4/wcsnlen.m4: New file.
20000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20003         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20004         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20005
20006 2011-02-05  Bruno Haible  <bruno@clisp.org>
20007
20008         New module 'wcslen'.
20009         * modules/wcslen: New file.
20010         * lib/wchar.in.h (wcslen): New declaration.
20011         * lib/wcslen.c: New file.
20012         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20013         * m4/wcslen.m4: New file.
20014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20017         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20018         * doc/posix-functions/wcslen.texi: Mention the new module.
20019
20020 2011-02-05  Bruno Haible  <bruno@clisp.org>
20021
20022         New module 'wmemset'.
20023         * modules/wmemset: New file.
20024         * lib/wchar.in.h (wmemset): New declaration.
20025         * lib/wmemset.c: New file.
20026         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20027         * m4/wmemset.m4: New file.
20028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20030         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20031         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20032         * doc/posix-functions/wmemset.texi: Mention the new module.
20033
20034 2011-02-05  Bruno Haible  <bruno@clisp.org>
20035
20036         New module 'wmemmove'.
20037         * modules/wmemmove: New file.
20038         * lib/wchar.in.h (wmemmove): New declaration.
20039         * lib/wmemmove.c: New file.
20040         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20041         * m4/wmemmove.m4: New file.
20042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20044         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20045         HAVE_WMEMMOVE.
20046         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20047         * doc/posix-functions/wmemmove.texi: Mention the new module.
20048
20049 2011-02-05  Bruno Haible  <bruno@clisp.org>
20050
20051         New module 'wmemcpy'.
20052         * modules/wmemcpy: New file.
20053         * lib/wchar.in.h (wmemcpy): New declaration.
20054         * lib/wmemcpy.c: New file.
20055         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20056         * m4/wmemcpy.m4: New file.
20057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20059         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20060         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20061         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20062
20063 2011-02-05  Bruno Haible  <bruno@clisp.org>
20064
20065         New module 'wmemcmp'.
20066         * modules/wmemcmp: New file.
20067         * lib/wchar.in.h (wmemcmp): New declaration.
20068         * lib/wmemcmp.c: New file.
20069         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20070         * m4/wmemcmp.m4: New file.
20071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20073         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20074         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20075         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20076
20077 2011-02-07  Jim Meyering  <meyering@redhat.com>
20078
20079         di-set, ino-map: new modules, from coreutils
20080         * lib/di-set.c: New file.
20081         * lib/di-set.h: Likewise.
20082         * lib/ino-map.c: Likewise.
20083         * lib/ino-map.h: Likewise.
20084         * modules/di-set: Likewise.
20085         * modules/di-set-tests: Likewise.
20086         * modules/ino-map: Likewise.
20087         * modules/ino-map-tests: Likewise.
20088         * tests/test-di-set.c: Likewise.
20089         * tests/test-ino-map.c: Likewise.
20090
20091 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20092
20093         getloadavg: merge minor changes from Emacs
20094
20095         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20096         (getloadavg): Use memset, not bzero.
20097
20098         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20099         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20100         clash (bug#86).
20101
20102 2010-11-14  Bruno Haible  <bruno@clisp.org>
20103
20104         Allow multiple gnulib generated replacements to coexist.
20105         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20106         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20107         * lib/langinfo.in.h (nl_item): Likewise.
20108         * lib/math.in.h (_NaN, NAN): Likewise.
20109         * lib/netdb.in.h (struct addrinfo): Likewise.
20110         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20111         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20112         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20113         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20114         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20115         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20116         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20117         pthread_mutexattr_init, pthread_mutexattr_settype,
20118         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20119         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20120         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20121         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20122         * lib/sched.in.h (struct sched_param): Likewise.
20123         * lib/se-selinux.in.h (security_class_t, security_context_t,
20124         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20125         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20126         lsetfilecon, fsetfilecon, security_check_context,
20127         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20128         Likewise.
20129         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20130         Likewise.
20131         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20132         _gl_function_taking_int_returning_void_t, union sigval,
20133         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20134         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20135         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20136         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20137         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20138         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20139         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20140         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20141         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20142         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20143         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20144         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20145         socklen_t, rpl_fd_isset): Likewise.
20146         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20147         * lib/sys_time.in.h (struct timeval): Likewise.
20148         * lib/sys_times.in.h (struct tms): Likewise.
20149         * lib/sys_utsname.in.h (struct utsname):
20150         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20151         * lib/unistd.in.h (getpagesize): Likewise.
20152         * lib/wchar.in.h (mbstate_t): Likewise.
20153         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20154         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20155         towlower, towupper): Likewise.
20156         Reported by Sam Steingold <sds@gnu.org>.
20157
20158 2011-02-05  Eric Blake  <eblake@redhat.com>
20159
20160         unsetenv: work around Haiku issues
20161         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20162         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20163
20164 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20165
20166         libposix: avoid calling error() within libposix
20167         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20168         is defined.
20169
20170 2011-02-05  Eric Blake  <eblake@redhat.com>
20171
20172         strerror_r-posix: port to cygwin
20173         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20174         implementation.
20175         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20176         * tests/test-strerror_r.c (main): Fix test.
20177         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20178         issue.
20179
20180 2011-02-05  Bruno Haible  <bruno@clisp.org>
20181
20182         New module 'wmemchr'.
20183         * modules/wmemchr: New file.
20184         * lib/wchar.in.h (wmemchr): New declaration.
20185         * lib/wmemchr.c: New file.
20186         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20187         * m4/wmemchr.m4: New file.
20188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20190         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20191         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20192         * doc/posix-functions/wmemchr.texi: Mention the new module.
20193
20194 2011-02-04  Eric Blake  <eblake@redhat.com>
20195
20196         fdopendir: detect FreeBSD bug
20197         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20198         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20199
20200 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         stdbool: do not define HAVE_STDBOOL_H
20203         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20204         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20205         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20206         imported from the latest Autoconf git.  It was motivated by Emacs,
20207         which uses gnulib but does not need HAVE_STDBOOL_H.
20208
20209 2011-02-04  Bruno Haible  <bruno@clisp.org>
20210
20211         wcsnrtombs: Prepare for new module wwcsnrtombs.
20212         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20213         * lib/wcsnrtombs.c: Include it.
20214         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20215
20216         wcsrtombs: Prepare for new module wwcsrtombs.
20217         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20218         * lib/wcsrtombs.c: Include it.
20219         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20220
20221         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20222         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20223         * lib/mbsnrtowcs.c: Include it.
20224         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20225
20226         mbsrtowcs: Prepare for new module mbsrtowwcs.
20227         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20228         * lib/mbsrtowcs.c: Include it.
20229         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20230
20231 2011-02-04  Bruno Haible  <bruno@clisp.org>
20232
20233         vasnprintf: Reduce use of malloc for small format strings.
20234         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20235         (arguments): Add room for the first 7 arguments.
20236         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20237         (char_directives, u8_directives, u16_directives, u32_directives): Add
20238         room for the first 7 directives.
20239         * lib/printf-parse.c: Include <string.h>.
20240         (PRINTF_PARSE): Change memory handling code so that it uses the first
20241         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20242         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20243         Reported by Pádraig Brady <P@draigbrady.com>.
20244
20245 2011-01-31  Eric Blake  <eblake@redhat.com>
20246
20247         dup2: work around Haiku bug
20248         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20249         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20250         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20251         * tests/test-dup2.c (main): Enhance test.
20252
20253 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20254
20255         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20256         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20257         declared by eglibc 2.11.2.
20258         * lib/stdio.in.h: Likewise.
20259
20260 2011-01-31  Eric Blake  <eblake@redhat.com>
20261
20262         ignore-value: add missing test dependency
20263         * tests/test-ignore-value.c: Revert previous change; stdio.h
20264         provides off_t.
20265         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20266
20267 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20268
20269         mktime: clarify long_int width checking
20270         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20271         the top level, to make it clearer that the assumption about
20272         long_int width is being checked.  See
20273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20274
20275 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20276
20277         ignore-value: Fix self-test.
20278         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20279
20280 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20281
20282         TYPE_MAXIMUM: avoid theoretically undefined behavior
20283         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20284         negative number, which the C Standard says has undefined behavior.
20285         In practice this is not a problem, but might as well do it by the book.
20286         Reported by Rich Felker and Eric Blake; see
20287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20288         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20289         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20291         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20292         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20293         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20294
20295         mktime: #undef mktime before #defining it
20296         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20297
20298         mktime: systematically normalize tm_isdst comparisons
20299         * lib/mktime.c (isdst_differ): New function.
20300         (__mktime_internal): Use it systematically for all isdst comparisons.
20301         This completes the fix for libc BZ #6723, and removes the need for
20302         normalizing tm_isdst.  See
20303         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20304         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20305
20306         mktime: fix some integer overflow issues and sidestep the rest
20307
20308         This was prompted by a bug report by Benjamin Lindner for MinGW
20309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20310         His bug is due to signed integer overflow (0 - INT_MIN), and I
20311         I scanned through mktime.c looking for other integer overflow
20312         problems, fixing all the bugs I found.
20313
20314         Although the C Standard says the resulting code is still not safe
20315         in the presence of integer overflow, in practice it should be good
20316         enough for all real-world two's-complement implementations, except
20317         for debugging environments that deliberately trap on integer
20318         overflow (e.g., gcc -ftrapv).
20319
20320         * lib/mktime.c (WRAPV): New macro.
20321         (SHR): Also check that long_int and time_t shift right in the
20322         usual way, before using the fast-but-unportable method.
20323         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20324         used.  The code already assumed two's complement, so there's
20325         no need to test for alternatives.  All uses removed.
20326         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20327         the C standard.  Problem reported by Rich Felker in
20328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20329         (twos_complement_arithmetic): Also check long_int and time_t.
20330         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20331         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20332         (__mktime_internal): Avoid integer overflow with unary subtraction
20333         in two instances where -1 - X is an adequate replacement for -X,
20334         since the calculations are approximate.
20335
20336 2011-01-29  Eric Blake  <eblake@redhat.com>
20337
20338         mktime: avoid infinite loop
20339         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20340         type; behavior is still undefined but portable to all known targets.
20341         Reported by Rich Felker.
20342
20343 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20344
20345         rename, unlink, same-inode: Relicense.
20346         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20347         * modules/unlink (License): Likewise.
20348         * modules/same-inode (License): Likewise.
20349
20350 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20351
20352         mktime: avoid problems on NetBSD 5 / i386
20353         * lib/mktime.c (long_int): New type.  This works around a problem
20354         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20355         but time_t is 64 bits, and where I expect the existing code is
20356         wrong in some cases.
20357         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20358         (ydhms_diff): Bring back the compile-time check for wide-enough
20359         year and yday.
20360
20361         mktime: fix misspelling in comment
20362         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20363         This merges all recent glibc changes of importance.
20364
20365 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20366
20367         move-if-change: cope with concurrent mv of identical file.
20368         * build-aux/move-if-change (CMPPROG): Accept environment
20369         variable as an override for `cmp'.
20370         (usage): Document CMPPROG.
20371         Adjust comparison to drop stdout.  Cope with failure of mv if
20372         the target file exists and is identical to the source, for
20373         parallel builds.
20374         Report from H.J. Lu against binutils in PR binutils/12283.
20375
20376 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20377
20378         * users.txt: Mention sharutils.
20379
20380 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20381
20382         * users.txt: Mention OATH Toolkit.
20383
20384 2011-01-27  Bruno Haible  <bruno@clisp.org>
20385
20386         Prepare for supporting FreeBSD 10.
20387         * build-aux/config.libpath: Remove handling of freebsd1*.
20388
20389 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20390
20391         Prepare for supporting FreeBSD 10.
20392         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20393         match FreeBSD 10.0.
20394
20395 2011-01-27  Bruno Haible  <bruno@clisp.org>
20396
20397         vma-iter, get-rusage-as: Add OpenBSD support.
20398         * modules/vma-iter (configure.ac): Test for mquery.
20399         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20400         * lib/vma-iter.c: Include <sys/mman.h>.
20401         (vma_iterate): Add an implementation based on mquery().
20402         * lib/resource-ext.h (get_rusage_as): Update comments.
20403         * lib/get-rusage-as.c: Likewise.
20404         * lib/get-rusage-data.c: Likewise.
20405
20406 2011-01-26  Karl Berry  <karl@gnu.org>
20407
20408         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20409         variables to make it easier to override the makeinfo program used.
20410
20411 2011-01-26  Eric Blake  <eblake@redhat.com>
20412
20413         fcntl: work around Haiku F_DUPFD bugs
20414         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20415         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20416         cloexec bit on duplication.
20417         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20418
20419 2011-01-26  Bruno Haible  <bruno@clisp.org>
20420
20421         Enable memory leak tests on AIX.
20422         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20423         * tests/test-fprintf-posix3.c (main): Likewise.
20424
20425 2011-01-26  Bruno Haible  <bruno@clisp.org>
20426
20427         Tests for module 'get-rusage-data'.
20428         * modules/get-rusage-data-tests: New file.
20429         * tests/test-get-rusage-data.c: New file.
20430
20431         New module 'get-rusage-data'.
20432         * lib/resource-ext.h (get_rusage_data): New declaration.
20433         * lib/get-rusage-data.c: New file.
20434         * modules/get-rusage-data: New file.
20435
20436 2011-01-25  Bruno Haible  <bruno@clisp.org>
20437
20438         get-rusage-as: Allow for easier testing.
20439         * lib/resource-ext.h (get_rusage_as): Add comment.
20440         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20441         (main): New function for interactive testing.
20442
20443 2011-01-25  Bruno Haible  <bruno@clisp.org>
20444
20445         vma-iter: Treat Haiku like BeOS.
20446         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20447         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20448
20449 2011-01-25  Eric Blake  <eblake@redhat.com>
20450
20451         c-stack: fix regression on cygwin when libsigsegv is present
20452         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20453
20454 2011-01-24  Bruno Haible  <bruno@clisp.org>
20455
20456         vma-iter: Avoid empty intervals.
20457         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20458         on an empty interval.
20459
20460 2011-01-24  Jim Meyering  <meyering@redhat.com>
20461
20462         u64: remove unnecessary #include
20463         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20464
20465 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20468         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20469
20470 2011-01-23  Bruno Haible  <bruno@clisp.org>
20471
20472         New module 'vma-iter'.
20473         * lib/vma-iter.h: New file.
20474         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20475         * modules/vma-iter: New file.
20476         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20477         for get_rusage_as_via_iterator.
20478         (vma_iterate_callback): New function.
20479         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20480         * modules/get-rusage-as (Depends-on): Add vma-iter.
20481
20482 2011-01-23  Bruno Haible  <bruno@clisp.org>
20483
20484         uninorm: Tweak includes.
20485         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20486         Reported by Jim Meyering.
20487
20488 2011-01-23  Bruno Haible  <bruno@clisp.org>
20489
20490         get-rusage-as: Improve on NetBSD.
20491         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20492         /proc, like on FreeBSD.
20493
20494 2011-01-23  Jim Meyering  <meyering@redhat.com>
20495
20496         xreadlink.h: remove unnecessary #include
20497         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20498
20499         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20500         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20501
20502 2011-01-23  Bruno Haible  <bruno@clisp.org>
20503
20504         get-rusage-as: Fix bug.
20505         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20506         original limit when aborting the first loop.
20507
20508 2011-01-23  Bruno Haible  <bruno@clisp.org>
20509
20510         wctype: Ensure valid C syntax.
20511         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20512         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20513
20514 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20517         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20518         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20519         as they are needed only for configure's test case.
20520         This removes two unnecessary symbols from config.h.
20521
20522         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20523         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20525         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20526         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20527         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20528         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20529         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20530         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20531         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20532         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20534         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20535         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20536         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20537         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20538         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20539         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20540
20541 2011-01-21  Eric Blake  <eblake@redhat.com>
20542
20543         maintainer-makefile: work with older git for submodule check
20544         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20545         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20546         Reported by Matthias Bolte.
20547
20548         bootstrap: minor portability fixes
20549         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20550         (usage): Omit leading capital and trailing . on help phrases, per
20551         GNU Coding Standards.
20552         (check_versions, top level): Prefix messages with script name.
20553
20554 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20555
20556         bootstrap: support --no-git option
20557         * build-aux/bootstrap: Add --no-git option, to be used when
20558         --gnulib-srcdir points to the exact desired checkout.
20559
20560 2011-01-21  Eric Blake  <eblake@redhat.com>
20561
20562         strerror_r-posix: work with glibc 2.13
20563         * lib/strerror_r.c (strerror_r): Fix return type.
20564
20565 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20566             Bruno Haible  <bruno@clisp.org>
20567
20568         uN_strstr: New unit tests.
20569         * modules/unistr/u8-strstr-tests: New file.
20570         * modules/unistr/u16-strstr-tests: New file.
20571         * modules/unistr/u32-strstr-tests: New file.
20572         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20573         * tests/unistr/test-u8-strstr.c: New file.
20574         * tests/unistr/test-u16-strstr.c: New file.
20575         * tests/unistr/test-u32-strstr.c: New file.
20576
20577 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20578             Bruno Haible  <bruno@clisp.org>
20579
20580         Make uN_strstr functions O(n) worst-case.
20581         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20582         16-bit and 32-bit unit cases, use the unibyte algorithm from
20583         lib/mbsstr.c.
20584         * lib/unistr/u8-strstr.c: Include <string.h>.
20585         (UNIT_IS_UINT8_T): New macro.
20586         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20587         (U_STRLEN, U_STRNLEN): New macros.
20588         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20589         (U_STRLEN, U_STRNLEN): New macros.
20590         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20591         (configure.ac): Update required libunistring version.
20592         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20593         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20594         malloca.
20595         (configure.ac): Update required libunistring version.
20596         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20597         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20598         malloca.
20599         (configure.ac): Update required libunistring version.
20600
20601 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20602             Bruno Haible  <bruno@clisp.org>
20603
20604         Prepare for faster uN_strstr functions.
20605         * lib/str-kmp.h: Support definable UNITs.
20606         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20607         needle_len argument.
20608         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20609         * lib/mbscasestr.c (mbscasestr): Likewise.
20610
20611 2011-01-21  Pádraig Brady <P@draigBrady.com>
20612
20613         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20614         * tests/test-malloca.c (main): Unset the environment variable
20615         to greatly speed up the test.
20616         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20617         * modules/malloca-tests: Depend on unsetenv.
20618
20619 2011-01-21  Pádraig Brady <P@draigBrady.com>
20620
20621         ignore-value: remove stdint dependency
20622         * lib/ignore-value.h: Remove <stdint.h>
20623         * modules/ignore-value: Remove stdint dependency.
20624
20625 2011-01-21  Jim Meyering  <meyering@redhat.com>
20626
20627         maint.mk: adjust variable name to be consistent with other gl_ vars
20628         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20629         to be lower case.
20630
20631 2011-01-20  Jim Meyering  <meyering@redhat.com>
20632
20633         maint.mk: make "check" depend on public-submodule-commit by default
20634         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20635
20636 2011-01-20  Bruno Haible  <bruno@clisp.org>
20637
20638         mbfile, mbiter: Complete change from 2008-12-21.
20639         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20640         * m4/mbiter.m4 (gl_MBITER): Likewise.
20641
20642 2011-01-20  Jim Meyering  <meyering@redhat.com>
20643
20644         init.sh: insert space between each function name and "()"
20645         * tests/init.sh: Make it a little easier to see that a function's
20646         name is "warn_", and not "warn" when looking at the first part of
20647         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20648
20649 2011-01-20  Jim Meyering  <meyering@redhat.com>
20650
20651         mountlist: clean up code formatting
20652         * lib/mountlist.c (read_file_system_list): Split a long line,
20653         correct bracing style, use NULL in place of "(struct statfs *)0",
20654         don't parenthesize return value, add spaces around "=" and after
20655         ";-in-for-stmt".
20656
20657 2011-01-14  Markus Duft <mduft@gentoo.org>
20658
20659         mountlist: add support for Interix
20660         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20661         Apply statvfs to all entries of /dev/fs.
20662         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20663         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20664
20665 2011-01-20  Jim Meyering  <meyering@redhat.com>
20666
20667         maint.mk: improve the public-submodule-commit rule
20668         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20669         to suppress printing of its commands... unless V=1.
20670         Add git submodule's --quiet option to suppress printing of e.g.,
20671         "Entering gnulib" output.
20672         "cd" into $(srcdir) before running git submodule.
20673
20674 2011-01-20  Bruno Haible  <bruno@clisp.org>
20675
20676         include_next: Fix bug introduced on 2011-01-18.
20677         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20678         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20679         ac_cv_header_... variable if the second argument is not 'check'.
20680         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20681         gl_NEXT_HEADERS_INTERNAL.
20682
20683 2011-01-20  Bruno Haible  <bruno@clisp.org>
20684
20685         Allow the user to avoid the GNULIB_TEST_* macros.
20686         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20687         Suggested by Paul Eggert.
20688
20689 2011-01-14  Jim Meyering  <meyering@redhat.com>
20690
20691         bootstrap: avoid failure when there is no .gitmodules file
20692         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20693         has been assigned to, even when its value is the empty string.
20694         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20695         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20696         Reported by John W. Eaton <jwe@gnu.org>.
20697
20698 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20699
20700         assume <ctype.h>, ..., <time.h> exist
20701         For years gnulib has been assuming the existence of the headers
20702         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20703         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20704         them, since they don't appear to be needed.
20705         * README (Portability guidelines): Document this.
20706         * lib/flock.c: Assume <fcntl.h> exists.
20707         * lib/regex_internal.h: Assume <locale.h> exists.
20708         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20709         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20710         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20711         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20712         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20713         * m4/regex.m4 (gl_REGEX): Likewise.
20714         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20715         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20716         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20717         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20718         * tests/test-argp.c: Likewise.
20719         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20720
20721         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20722         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20723         AA_APPLE_UNIVERSAL_BUILD.  See
20724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20725         * NEWS: Document this.
20726
20727 2011-01-19  Eric Blake  <eblake@redhat.com>
20728
20729         c-stack: assume stack overflow if SA_SIGINFO unsupported
20730         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20731         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20732         sigaction will work.
20733         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20734         behavior match Linux.
20735         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20736
20737         stdbool-tests: accomodate Haiku
20738         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20739
20740         binary-io: fix O_TEXT on Haiku
20741         * modules/binary-io (Depends-on): Add fcntl-h.
20742         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20743         than blindly undefining O_TEXT.
20744         Reported by Scott McCreary.
20745
20746 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20747
20748         include_next: do not check for standard headers like stddef.h
20749
20750         I found this problem when modifying Emacs to use gnulib.
20751         I noticed that it added HAVE_STDDEF_H to config.h, even though
20752         gnulib always assumes <stddef.h> exists as per README and this
20753         symbol is unnecessary.
20754         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20755         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20756         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20757         faster for headers like stddef.h that are known to exist.
20758         (gl_CHECK_NEXT_HEADERS): Use it.
20759         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20760         rather than gl_CHECK_NEXT_HEADERS.
20761         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20762         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20763
20764 2011-01-18  Eric Blake  <eblake@redhat.com>
20765
20766         ansi-c++-opt: skip C++ dependency style if C++ is unused
20767         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20768         tests when we know C++ compilation is not desired.
20769         Reported by Scott McCreary.
20770
20771 2011-01-18  Bruno Haible  <bruno@clisp.org>
20772
20773         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20774         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20775         (main): Perform test also when getrlimit and setrlimit don't exist or
20776         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20777         limiting the address space size using setrlimit, compare the address
20778         space size before and after the the test.
20779         * tests/test-dprintf-posix2.c: Likewise.
20780         * tests/test-fprintf-posix3.sh: Update skip messages.
20781         * tests/test-dprintf-posix2.sh: Likewise.
20782         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20783         * modules/dprintf-posix-tests (Depends-on): Likewise.
20784         Reported by Bruce Korb <bkorb@gnu.org> and
20785         Gary V. Vaughan <gary@gnu.org>.
20786
20787 2011-01-18  Bruno Haible  <bruno@clisp.org>
20788
20789         get-rusage-as: Improvement for Cygwin.
20790         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20791         areas that are merely reserved.
20792
20793 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20794
20795         strftime: remove dependencies on multibyte modules
20796
20797         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20798         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20799         only if __osf__ is defined, and I suspect OSF doesn't need these
20800         other modules.  If my guess is wrong, we'll need to come up with a
20801         variant of strftime that doesn't need the multibyte modules.
20802
20803         I discovered this problem when attempting modify Emacs to use the
20804         strftime module.  With the previous gnulib, this caused Emacs to
20805         need 31 new files, ranging from lib/config.charset to
20806         m4/wint_t.m4.  This was overkill and I expect would be offputting
20807         to the Emacs maintainers.  After this change, only 6 new files are
20808         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20809         stdbool.m4, and tm_gmtoff.m4.
20810
20811         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20812         Suggested by Bruno Haible in
20813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20814         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20815         and do not check for wchar.h.
20816         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20817         (Depends-on): Remove mbrlen, mbsinit, wchar.
20818
20819 2011-01-18  Bruno Haible  <bruno@clisp.org>
20820
20821         Tests for module 'get-rusage-as'.
20822         * modules/get-rusage-as-tests: New file.
20823         * tests/test-get-rusage-as.c: New file.
20824
20825         New module 'get-rusage-as'.
20826         * modules/get-rusage-as: New file.
20827         * lib/resource-ext.h: New file.
20828         * lib/get-rusage-as.c: New file.
20829
20830 2011-01-17  Eric Blake  <eblake@redhat.com>
20831
20832         sigaction: relax license from LGPLv3+ to LGPLv2+
20833         * modules/sigaction (License): Relax to LGPLv2+.
20834
20835 2011-01-14  Bruno Haible  <bruno@clisp.org>
20836
20837         filemode: Make function declarations usable in C++ mode.
20838         * lib/filemode.h: Enclose function declarations in extern "C" block.
20839         Reported by John W. Eaton <jwe@gnu.org>.
20840
20841 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20842
20843         save-cwd: no longer include "xgetcwd.h"
20844         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20845         This avoids a compilation failure in projects that use save-cwd
20846         without also using the xgetcwd module.
20847
20848 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20849
20850         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20851         This is so that a program like Emacs, which needs only dtoastr,
20852         does not have to bother with distributing and compiling ftoastr
20853         and ldtoastr.
20854         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20855         * modules/dtoastr, modules/ldtoastr: New files.
20856         * modules/ftoastr: Now works just for 'float'.
20857         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20858         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20859         dtoastr.c, ldtoastr.c.
20860
20861 2011-01-11  Jim Meyering  <meyering@redhat.com>
20862
20863         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20864         There is no need to work around the lack of the fchdir function,
20865         since gnulib can now provide a replacement when required.
20866         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20867         * modules/save-cwd (Depends-on): Add fchdir.
20868
20869 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         openat, save-cwd: avoid xmalloc
20872
20873         This removes a direct (but undocumented) dependency of openat on
20874         xalloc, along with an indirect dependency via save-cwd.  It also
20875         removes a dependency of save-cwd on xgetcwd, and thereby
20876         indirectly on xalloc.  This change causes the openat substitute
20877         to fall back on save_cwd when memory is tight, and for save_cwd to
20878         fail instead of dying when memory is tight, but that's good enough.
20879         Problem and initial idea for fix reported by Bastien Roucaries in
20880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20881
20882         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20883         xalloc.h (for xmalloc).
20884         (openat_proc_name): Use malloc, not xmalloc.
20885         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20886         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20887
20888         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20889         This avoids heap allocation for file names whose lengths are in
20890         the range 512..1023, with the upper bound increasing to at most
20891         4031 depending on the platform's PATH_MAX.  (We do not want
20892         pathmax.h here as it might supply a non-constant PATH_MAX.)
20893         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20894         Perhaps they should be moved to malloca.h?
20895         (OPENAT_BUFFER_SIZE): Use them.
20896
20897 2011-01-10  Bruno Haible  <bruno@clisp.org>
20898
20899         doc: Update users.txt.
20900         * users.txt: Add recutils.
20901
20902 2011-01-09  Karl Berry  <karl@gnu.org>
20903
20904         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20905
20906         * doc/configmake.texi: New file.
20907         * doc/gnulib.texi: Include it.
20908         * modules/configmake: Move documentation from here.
20909
20910 2011-01-09  Bruno Haible  <bruno@clisp.org>
20911
20912         Update to Unicode 6.0.0.
20913         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20914         (get_lbp): Update for Unicode 6.0.0.
20915         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20916         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20917         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20918         U+11001, U+11038..U+11046. Remove U+06DE.
20919         (uc_width): Fix bounds of planes.
20920         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20921         lib/uniwidth/width.c.
20922         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20923         trailing whitespace removed.
20924         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20925         without comments, but with the original copyright notice.
20926         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20927         * lib/unicase/ignorable.h: Likewise.
20928         * lib/unicase/tocasefold.h: Likewise.
20929         * lib/unicase/tolower.h: Likewise.
20930         * lib/unicase/totitle.h: Likewise.
20931         * lib/unicase/toupper.h: Likewise.
20932         * lib/unictype/bidi_of.h: Likewise.
20933         * lib/unictype/blocks.h: Likewise.
20934         * lib/unictype/categ_C.h: Likewise.
20935         * lib/unictype/categ_Cn.h: Likewise.
20936         * lib/unictype/categ_L.h: Likewise.
20937         * lib/unictype/categ_Ll.h: Likewise.
20938         * lib/unictype/categ_Lm.h: Likewise.
20939         * lib/unictype/categ_Lo.h: Likewise.
20940         * lib/unictype/categ_Lu.h: Likewise.
20941         * lib/unictype/categ_M.h: Likewise.
20942         * lib/unictype/categ_Mc.h: Likewise.
20943         * lib/unictype/categ_Me.h: Likewise.
20944         * lib/unictype/categ_Mn.h: Likewise.
20945         * lib/unictype/categ_N.h: Likewise.
20946         * lib/unictype/categ_Nd.h: Likewise.
20947         * lib/unictype/categ_No.h: Likewise.
20948         * lib/unictype/categ_P.h: Likewise.
20949         * lib/unictype/categ_Po.h: Likewise.
20950         * lib/unictype/categ_S.h: Likewise.
20951         * lib/unictype/categ_Sc.h: Likewise.
20952         * lib/unictype/categ_Sk.h: Likewise.
20953         * lib/unictype/categ_Sm.h: Likewise.
20954         * lib/unictype/categ_So.h: Likewise.
20955         * lib/unictype/categ_of.h: Likewise.
20956         * lib/unictype/combining.h: Likewise.
20957         * lib/unictype/ctype_alnum.h: Likewise.
20958         * lib/unictype/ctype_alpha.h: Likewise.
20959         * lib/unictype/ctype_graph.h: Likewise.
20960         * lib/unictype/ctype_lower.h: Likewise.
20961         * lib/unictype/ctype_print.h: Likewise.
20962         * lib/unictype/ctype_punct.h: Likewise.
20963         * lib/unictype/ctype_upper.h: Likewise.
20964         * lib/unictype/decdigit.h: Likewise.
20965         * lib/unictype/digit.h: Likewise.
20966         * lib/unictype/numeric.h: Likewise.
20967         * lib/unictype/pr_alphabetic.h: Likewise.
20968         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20969         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20970         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20971         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20972         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20973         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20974         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20975         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20976         * lib/unictype/pr_case_ignorable.h: Likewise.
20977         * lib/unictype/pr_cased.h: Likewise.
20978         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20979         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20980         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20981         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20982         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20983         * lib/unictype/pr_combining.h: Likewise.
20984         * lib/unictype/pr_composite.h: Likewise.
20985         * lib/unictype/pr_currency_symbol.h: Likewise.
20986         * lib/unictype/pr_decimal_digit.h: Likewise.
20987         * lib/unictype/pr_deprecated.h: Likewise.
20988         * lib/unictype/pr_format_control.h: Likewise.
20989         * lib/unictype/pr_grapheme_base.h: Likewise.
20990         * lib/unictype/pr_grapheme_extend.h: Likewise.
20991         * lib/unictype/pr_grapheme_link.h: Likewise.
20992         * lib/unictype/pr_id_continue.h: Likewise.
20993         * lib/unictype/pr_id_start.h: Likewise.
20994         * lib/unictype/pr_ideographic.h: Likewise.
20995         * lib/unictype/pr_lowercase.h: Likewise.
20996         * lib/unictype/pr_math.h: Likewise.
20997         * lib/unictype/pr_numeric.h: Likewise.
20998         * lib/unictype/pr_other_alphabetic.h: Likewise.
20999         * lib/unictype/pr_other_id_continue.h: Likewise.
21000         * lib/unictype/pr_other_math.h: Likewise.
21001         * lib/unictype/pr_punctuation.h: Likewise.
21002         * lib/unictype/pr_sentence_terminal.h: Likewise.
21003         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21004         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21005         * lib/unictype/pr_unified_ideograph.h: Likewise.
21006         * lib/unictype/pr_uppercase.h: Likewise.
21007         * lib/unictype/pr_xid_continue.h: Likewise.
21008         * lib/unictype/pr_xid_start.h: Likewise.
21009         * lib/unictype/scripts.h: Likewise.
21010         * lib/unictype/scripts_byname.gperf: Likewise.
21011         * lib/unictype/sy_java_ident.h: Likewise.
21012         * lib/unigbrk/gbrkprop.h: Likewise.
21013         * lib/unilbrk/lbrkprop1.h: Likewise.
21014         * lib/unilbrk/lbrkprop2.h: Likewise.
21015         * lib/uninorm/decomposition-table2.h: Likewise.
21016         * lib/uniwbrk/wbrkprop.h: Likewise.
21017         * tests/unicase/test-cased.c: Likewise.
21018         * tests/unicase/test-ignorable.c: Likewise.
21019         * tests/unicase/test-uc_tolower.c: Likewise.
21020         * tests/unicase/test-uc_totitle.c: Likewise.
21021         * tests/unicase/test-uc_toupper.c: Likewise.
21022         * tests/unictype/test-categ_C.c: Likewise.
21023         * tests/unictype/test-categ_Cn.c: Likewise.
21024         * tests/unictype/test-categ_L.c: Likewise.
21025         * tests/unictype/test-categ_Ll.c: Likewise.
21026         * tests/unictype/test-categ_Lm.c: Likewise.
21027         * tests/unictype/test-categ_Lo.c: Likewise.
21028         * tests/unictype/test-categ_Lu.c: Likewise.
21029         * tests/unictype/test-categ_M.c: Likewise.
21030         * tests/unictype/test-categ_Mc.c: Likewise.
21031         * tests/unictype/test-categ_Me.c: Likewise.
21032         * tests/unictype/test-categ_Mn.c: Likewise.
21033         * tests/unictype/test-categ_N.c: Likewise.
21034         * tests/unictype/test-categ_Nd.c: Likewise.
21035         * tests/unictype/test-categ_No.c: Likewise.
21036         * tests/unictype/test-categ_P.c: Likewise.
21037         * tests/unictype/test-categ_Po.c: Likewise.
21038         * tests/unictype/test-categ_S.c: Likewise.
21039         * tests/unictype/test-categ_Sc.c: Likewise.
21040         * tests/unictype/test-categ_Sk.c: Likewise.
21041         * tests/unictype/test-categ_Sm.c: Likewise.
21042         * tests/unictype/test-categ_So.c: Likewise.
21043         * tests/unictype/test-ctype_alnum.c: Likewise.
21044         * tests/unictype/test-ctype_alpha.c: Likewise.
21045         * tests/unictype/test-ctype_graph.c: Likewise.
21046         * tests/unictype/test-ctype_lower.c: Likewise.
21047         * tests/unictype/test-ctype_print.c: Likewise.
21048         * tests/unictype/test-ctype_punct.c: Likewise.
21049         * tests/unictype/test-ctype_upper.c: Likewise.
21050         * tests/unictype/test-decdigit.h: Likewise.
21051         * tests/unictype/test-digit.h: Likewise.
21052         * tests/unictype/test-numeric.h: Likewise.
21053         * tests/unictype/test-pr_alphabetic.c: Likewise.
21054         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21055         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21056         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21057         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21058         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21059         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21060         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21061         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21062         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21063         * tests/unictype/test-pr_cased.c: Likewise.
21064         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21065         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21066         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21067         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21068         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21069         * tests/unictype/test-pr_combining.c: Likewise.
21070         * tests/unictype/test-pr_composite.c: Likewise.
21071         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21072         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21073         * tests/unictype/test-pr_deprecated.c: Likewise.
21074         * tests/unictype/test-pr_format_control.c: Likewise.
21075         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21076         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21077         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21078         * tests/unictype/test-pr_id_continue.c: Likewise.
21079         * tests/unictype/test-pr_id_start.c: Likewise.
21080         * tests/unictype/test-pr_ideographic.c: Likewise.
21081         * tests/unictype/test-pr_lowercase.c: Likewise.
21082         * tests/unictype/test-pr_math.c: Likewise.
21083         * tests/unictype/test-pr_numeric.c: Likewise.
21084         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21085         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21086         * tests/unictype/test-pr_other_math.c: Likewise.
21087         * tests/unictype/test-pr_punctuation.c: Likewise.
21088         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21089         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21090         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21091         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21092         * tests/unictype/test-pr_uppercase.c: Likewise.
21093         * tests/unictype/test-pr_xid_continue.c: Likewise.
21094         * tests/unictype/test-pr_xid_start.c: Likewise.
21095         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21096         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21097         changes.
21098         * lib/unictype/categ_Cc.h: Likewise.
21099         * lib/unictype/categ_Cf.h: Likewise.
21100         * lib/unictype/categ_Co.h: Likewise.
21101         * lib/unictype/categ_Cs.h: Likewise.
21102         * lib/unictype/categ_Lt.h: Likewise.
21103         * lib/unictype/categ_Nl.h: Likewise.
21104         * lib/unictype/categ_Pc.h: Likewise.
21105         * lib/unictype/categ_Pd.h: Likewise.
21106         * lib/unictype/categ_Pe.h: Likewise.
21107         * lib/unictype/categ_Pf.h: Likewise.
21108         * lib/unictype/categ_Pi.h: Likewise.
21109         * lib/unictype/categ_Ps.h: Likewise.
21110         * lib/unictype/categ_Z.h: Likewise.
21111         * lib/unictype/categ_Zl.h: Likewise.
21112         * lib/unictype/categ_Zp.h: Likewise.
21113         * lib/unictype/categ_Zs.h: Likewise.
21114         * lib/unictype/ctype_blank.h: Likewise.
21115         * lib/unictype/ctype_cntrl.h: Likewise.
21116         * lib/unictype/ctype_digit.h: Likewise.
21117         * lib/unictype/ctype_space.h: Likewise.
21118         * lib/unictype/ctype_xdigit.h: Likewise.
21119         * lib/unictype/mirror.h: Likewise.
21120         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21121         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21122         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21123         * lib/unictype/pr_bidi_control.h: Likewise.
21124         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21125         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21126         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21127         * lib/unictype/pr_bidi_pdf.h: Likewise.
21128         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21129         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21130         * lib/unictype/pr_dash.h: Likewise.
21131         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21132         * lib/unictype/pr_diacritic.h: Likewise.
21133         * lib/unictype/pr_extender.h: Likewise.
21134         * lib/unictype/pr_hex_digit.h: Likewise.
21135         * lib/unictype/pr_hyphen.h: Likewise.
21136         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21137         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21138         * lib/unictype/pr_ignorable_control.h: Likewise.
21139         * lib/unictype/pr_iso_control.h: Likewise.
21140         * lib/unictype/pr_join_control.h: Likewise.
21141         * lib/unictype/pr_left_of_pair.h: Likewise.
21142         * lib/unictype/pr_line_separator.h: Likewise.
21143         * lib/unictype/pr_logical_order_exception.h: Likewise.
21144         * lib/unictype/pr_non_break.h: Likewise.
21145         * lib/unictype/pr_not_a_character.h: Likewise.
21146         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21147         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21148         * lib/unictype/pr_other_id_start.h: Likewise.
21149         * lib/unictype/pr_other_lowercase.h: Likewise.
21150         * lib/unictype/pr_other_uppercase.h: Likewise.
21151         * lib/unictype/pr_paired_punctuation.h: Likewise.
21152         * lib/unictype/pr_paragraph_separator.h: Likewise.
21153         * lib/unictype/pr_pattern_syntax.h: Likewise.
21154         * lib/unictype/pr_pattern_white_space.h: Likewise.
21155         * lib/unictype/pr_private_use.h: Likewise.
21156         * lib/unictype/pr_quotation_mark.h: Likewise.
21157         * lib/unictype/pr_radical.h: Likewise.
21158         * lib/unictype/pr_soft_dotted.h: Likewise.
21159         * lib/unictype/pr_space.h: Likewise.
21160         * lib/unictype/pr_titlecase.h: Likewise.
21161         * lib/unictype/pr_variation_selector.h: Likewise.
21162         * lib/unictype/pr_white_space.h: Likewise.
21163         * lib/unictype/pr_zero_width.h: Likewise.
21164         * lib/unictype/sy_c_ident.h: Likewise.
21165         * lib/unictype/sy_c_whitespace.h: Likewise.
21166         * lib/unictype/sy_java_whitespace.h: Likewise.
21167         * lib/uninorm/composition-table.gperf: Likewise.
21168         * lib/uninorm/decomposition-table1.h: Likewise.
21169         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21170         LB8.
21171         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21172         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21173         * modules/unictype/*: Bump version number of expected libunistring
21174         version.
21175
21176 2011-01-09  Bruno Haible  <bruno@clisp.org>
21177
21178         Update to Unicode 5.2.0.
21179         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21180         trailing whitespace removed.
21181
21182 2011-01-09  Bruno Haible  <bruno@clisp.org>
21183
21184         New Unicode character properties, from Unicode 5.2.0.
21185         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21186         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21187         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21188         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21189         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21190         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21191         uc_is_property_cased, uc_is_property_case_ignorable,
21192         uc_is_property_changes_when_lowercased,
21193         uc_is_property_changes_when_uppercased,
21194         uc_is_property_changes_when_titlecased,
21195         uc_is_property_changes_when_casefolded,
21196         uc_is_property_changes_when_casemapped): New declarations.
21197         * lib/unictype/pr_byname.gperf: Add the new properties.
21198         * modules/unictype/property-byname (Depends-on): Depend on the new
21199         properties modules.
21200         * modules/unictype/property-all (Depends-on): Likewise.
21201         * MODULES.html.sh (Unicode string functions): Add
21202         unictype/property-case-ignorable, unictype/property-cased,
21203         unictype/property-changes-when-casefolded,
21204         unictype/property-changes-when-casemapped,
21205         unictype/property-changes-when-lowercased,
21206         unictype/property-changes-when-titlecased,
21207         unictype/property-changes-when-uppercased.
21208
21209         New module 'unictype/property-changes-when-casemapped'.
21210         * modules/unictype/property-changes-when-casemapped: New file.
21211         * lib/unictype/pr_changes_when_casemapped.c: New file.
21212         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21213         generated by gen-uni-tables.
21214         * modules/unictype/property-changes-when-casemapped-tests: New file.
21215         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21216         automatically generated by gen-uni-tables.
21217
21218         New module 'unictype/property-changes-when-casefolded'.
21219         * modules/unictype/property-changes-when-casefolded: New file.
21220         * lib/unictype/pr_changes_when_casefolded.c: New file.
21221         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21222         generated by gen-uni-tables.
21223         * modules/unictype/property-changes-when-casefolded-tests: New file.
21224         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21225         automatically generated by gen-uni-tables.
21226
21227         New module 'unictype/property-changes-when-titlecased'.
21228         * modules/unictype/property-changes-when-titlecased: New file.
21229         * lib/unictype/pr_changes_when_titlecased.c: New file.
21230         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21231         generated by gen-uni-tables.
21232         * modules/unictype/property-changes-when-titlecased-tests: New file.
21233         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21234         automatically generated by gen-uni-tables.
21235
21236         New module 'unictype/property-changes-when-uppercased'.
21237         * modules/unictype/property-changes-when-uppercased: New file.
21238         * lib/unictype/pr_changes_when_uppercased.c: New file.
21239         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21240         generated by gen-uni-tables.
21241         * modules/unictype/property-changes-when-uppercased-tests: New file.
21242         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21243         automatically generated by gen-uni-tables.
21244
21245         New module 'unictype/property-changes-when-lowercased'.
21246         * modules/unictype/property-changes-when-lowercased: New file.
21247         * lib/unictype/pr_changes_when_lowercased.c: New file.
21248         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21249         generated by gen-uni-tables.
21250         * modules/unictype/property-changes-when-lowercased-tests: New file.
21251         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21252         automatically generated by gen-uni-tables.
21253
21254         New module 'unictype/property-case-ignorable'.
21255         * modules/unictype/property-case-ignorable: New file.
21256         * lib/unictype/pr_case_ignorable.c: New file.
21257         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21258         by gen-uni-tables.
21259         * modules/unictype/property-case-ignorable-tests: New file.
21260         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21261         generated by gen-uni-tables.
21262
21263         New module 'unictype/property-cased'.
21264         * modules/unictype/property-cased: New file.
21265         * lib/unictype/pr_cased.c: New file.
21266         * lib/unictype/pr_cased.h: New file, automatically generated by
21267         gen-uni-tables.
21268         * modules/unictype/property-cased-tests: New file.
21269         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21270         gen-uni-tables.
21271
21272 2011-01-09  Bruno Haible  <bruno@clisp.org>
21273
21274         Update to Unicode 5.2.0.
21275         * lib/gen-uni-tables.c (output_predicate, output_category,
21276         output_combclass, output_bidi_category, output_decimal_digit_test,
21277         output_decimal_digit, output_digit_test, output_digit,
21278         output_numeric_test, output_numeric, output_mirror, output_scripts,
21279         output_scripts_byname, output_blocks, output_ident_category): Fix
21280         comment header.
21281         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21282         get_wbp.
21283         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21284         items.
21285         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21286         Changes_When_Lowercased, Changes_When_Uppercased,
21287         Changes_When_Titlecased, Changes_When_Casefolded,
21288         Changes_When_Casemapped.
21289         (is_property_alphabetic, is_property_default_ignorable_code_point):
21290         Update for Unicode 5.2.0.
21291         (is_property_cased, is_property_case_ignorable,
21292         is_property_changes_when_lowercased,
21293         is_property_changes_when_uppercased,
21294         is_property_changes_when_titlecased,
21295         is_property_changes_when_casefolded,
21296         is_property_changes_when_casemapped): New functions.
21297         (output_properties): Output also the properties cased, case_ignorable,
21298         changes_when_lowercased, changes_when_uppercased,
21299         changes_when_titlecased, changes_when_casefolded,
21300         changes_when_casemapped.
21301         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21302         Unicode TR#11 revision 17 -> 19.
21303         (LBP_CP): New enumeration value.
21304         (LBP_*): Adjust values accordingly.
21305         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21306         TR#14 revision 22 -> 24.
21307         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21308         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21309         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21310         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21311         is_WBP_MIDLETTER.
21312         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21313         the code1 and code2 of each composition rule.
21314         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21315         * lib/unicase/ignorable.h: Likewise.
21316         * lib/unicase/tocasefold.h: Likewise.
21317         * lib/unicase/tolower.h: Likewise.
21318         * lib/unicase/totitle.h: Likewise.
21319         * lib/unicase/toupper.h: Likewise.
21320         * lib/unictype/bidi_of.h: Likewise.
21321         * lib/unictype/blocks.h: Likewise.
21322         * lib/unictype/categ_C.h: Likewise.
21323         * lib/unictype/categ_Cf.h: Likewise.
21324         * lib/unictype/categ_Cn.h: Likewise.
21325         * lib/unictype/categ_L.h: Likewise.
21326         * lib/unictype/categ_Ll.h: Likewise.
21327         * lib/unictype/categ_Lm.h: Likewise.
21328         * lib/unictype/categ_Lo.h: Likewise.
21329         * lib/unictype/categ_Lu.h: Likewise.
21330         * lib/unictype/categ_M.h: Likewise.
21331         * lib/unictype/categ_Mc.h: Likewise.
21332         * lib/unictype/categ_Mn.h: Likewise.
21333         * lib/unictype/categ_N.h: Likewise.
21334         * lib/unictype/categ_Nd.h: Likewise.
21335         * lib/unictype/categ_Nl.h: Likewise.
21336         * lib/unictype/categ_No.h: Likewise.
21337         * lib/unictype/categ_P.h: Likewise.
21338         * lib/unictype/categ_Pd.h: Likewise.
21339         * lib/unictype/categ_Po.h: Likewise.
21340         * lib/unictype/categ_S.h: Likewise.
21341         * lib/unictype/categ_Sc.h: Likewise.
21342         * lib/unictype/categ_So.h: Likewise.
21343         * lib/unictype/categ_of.h: Likewise.
21344         * lib/unictype/combining.h: Likewise.
21345         * lib/unictype/ctype_alnum.h: Likewise.
21346         * lib/unictype/ctype_alpha.h: Likewise.
21347         * lib/unictype/ctype_graph.h: Likewise.
21348         * lib/unictype/ctype_lower.h: Likewise.
21349         * lib/unictype/ctype_print.h: Likewise.
21350         * lib/unictype/ctype_punct.h: Likewise.
21351         * lib/unictype/ctype_upper.h: Likewise.
21352         * lib/unictype/decdigit.h: Likewise.
21353         * lib/unictype/digit.h: Likewise.
21354         * lib/unictype/numeric.h: Likewise.
21355         * lib/unictype/pr_alphabetic.h: Likewise.
21356         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21357         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21358         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21359         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21360         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21361         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21362         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21363         * lib/unictype/pr_combining.h: Likewise.
21364         * lib/unictype/pr_composite.h: Likewise.
21365         * lib/unictype/pr_currency_symbol.h: Likewise.
21366         * lib/unictype/pr_dash.h: Likewise.
21367         * lib/unictype/pr_decimal_digit.h: Likewise.
21368         * lib/unictype/pr_deprecated.h: Likewise.
21369         * lib/unictype/pr_diacritic.h: Likewise.
21370         * lib/unictype/pr_extender.h: Likewise.
21371         * lib/unictype/pr_grapheme_base.h: Likewise.
21372         * lib/unictype/pr_grapheme_extend.h: Likewise.
21373         * lib/unictype/pr_grapheme_link.h: Likewise.
21374         * lib/unictype/pr_id_continue.h: Likewise.
21375         * lib/unictype/pr_id_start.h: Likewise.
21376         * lib/unictype/pr_ideographic.h: Likewise.
21377         * lib/unictype/pr_ignorable_control.h: Likewise.
21378         * lib/unictype/pr_logical_order_exception.h: Likewise.
21379         * lib/unictype/pr_lowercase.h: Likewise.
21380         * lib/unictype/pr_numeric.h: Likewise.
21381         * lib/unictype/pr_other_alphabetic.h: Likewise.
21382         * lib/unictype/pr_punctuation.h: Likewise.
21383         * lib/unictype/pr_sentence_terminal.h: Likewise.
21384         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21385         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21386         * lib/unictype/pr_unified_ideograph.h: Likewise.
21387         * lib/unictype/pr_uppercase.h: Likewise.
21388         * lib/unictype/pr_xid_continue.h: Likewise.
21389         * lib/unictype/pr_xid_start.h: Likewise.
21390         * lib/unictype/pr_zero_width.h: Likewise.
21391         * lib/unictype/scripts.h: Likewise.
21392         * lib/unictype/scripts_byname.gperf: Likewise.
21393         * lib/unictype/sy_java_ident.h: Likewise.
21394         * lib/unigbrk/gbrkprop.h: Likewise.
21395         * lib/unilbrk/lbrkprop1.h: Likewise.
21396         * lib/unilbrk/lbrkprop2.h: Likewise.
21397         * lib/unilbrk/lbrktables.h: Likewise.
21398         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21399         LBP_CP. Implement rule LB30.
21400         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21401         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21402         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21403         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21404         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21405         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21406         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21407         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21408         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21409         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21410         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21411         bits instead of 16 bits in the code1 and code2 of each composition
21412         rule.
21413         (uc_composition): Update for Unicode 5.2.0.
21414         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21415         * lib/uninorm/decomposition-table2.h: Likewise.
21416         * lib/uniwbrk/wbrkprop.h: Likewise.
21417         * tests/unicase/test-cased.c: Likewise.
21418         * tests/unicase/test-ignorable.c: Likewise.
21419         * tests/unicase/test-uc_tolower.c: Likewise.
21420         * tests/unicase/test-uc_totitle.c: Likewise.
21421         * tests/unicase/test-uc_toupper.c: Likewise.
21422         * tests/unictype/test-categ_C.c: Likewise.
21423         * tests/unictype/test-categ_Cf.c: Likewise.
21424         * tests/unictype/test-categ_Cn.c: Likewise.
21425         * tests/unictype/test-categ_L.c: Likewise.
21426         * tests/unictype/test-categ_Ll.c: Likewise.
21427         * tests/unictype/test-categ_Lm.c: Likewise.
21428         * tests/unictype/test-categ_Lo.c: Likewise.
21429         * tests/unictype/test-categ_Lu.c: Likewise.
21430         * tests/unictype/test-categ_M.c: Likewise.
21431         * tests/unictype/test-categ_Mc.c: Likewise.
21432         * tests/unictype/test-categ_Mn.c: Likewise.
21433         * tests/unictype/test-categ_N.c: Likewise.
21434         * tests/unictype/test-categ_Nd.c: Likewise.
21435         * tests/unictype/test-categ_Nl.c: Likewise.
21436         * tests/unictype/test-categ_No.c: Likewise.
21437         * tests/unictype/test-categ_P.c: Likewise.
21438         * tests/unictype/test-categ_Pd.c: Likewise.
21439         * tests/unictype/test-categ_Po.c: Likewise.
21440         * tests/unictype/test-categ_S.c: Likewise.
21441         * tests/unictype/test-categ_Sc.c: Likewise.
21442         * tests/unictype/test-categ_So.c: Likewise.
21443         * tests/unictype/test-ctype_alnum.c: Likewise.
21444         * tests/unictype/test-ctype_alpha.c: Likewise.
21445         * tests/unictype/test-ctype_graph.c: Likewise.
21446         * tests/unictype/test-ctype_lower.c: Likewise.
21447         * tests/unictype/test-ctype_print.c: Likewise.
21448         * tests/unictype/test-ctype_punct.c: Likewise.
21449         * tests/unictype/test-ctype_upper.c: Likewise.
21450         * tests/unictype/test-decdigit.h: Likewise.
21451         * tests/unictype/test-digit.h: Likewise.
21452         * tests/unictype/test-numeric.h: Likewise.
21453         * tests/unictype/test-pr_alphabetic.c: Likewise.
21454         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21455         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21456         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21457         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21458         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21459         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21460         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21461         * tests/unictype/test-pr_combining.c: Likewise.
21462         * tests/unictype/test-pr_composite.c: Likewise.
21463         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21464         * tests/unictype/test-pr_dash.c: Likewise.
21465         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21466         * tests/unictype/test-pr_deprecated.c: Likewise.
21467         * tests/unictype/test-pr_diacritic.c: Likewise.
21468         * tests/unictype/test-pr_extender.c: Likewise.
21469         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21470         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21471         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21472         * tests/unictype/test-pr_id_continue.c: Likewise.
21473         * tests/unictype/test-pr_id_start.c: Likewise.
21474         * tests/unictype/test-pr_ideographic.c: Likewise.
21475         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21476         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21477         * tests/unictype/test-pr_lowercase.c: Likewise.
21478         * tests/unictype/test-pr_numeric.c: Likewise.
21479         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21480         * tests/unictype/test-pr_punctuation.c: Likewise.
21481         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21482         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21483         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21484         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21485         * tests/unictype/test-pr_uppercase.c: Likewise.
21486         * tests/unictype/test-pr_xid_continue.c: Likewise.
21487         * tests/unictype/test-pr_xid_start.c: Likewise.
21488         * tests/unictype/test-pr_zero_width.c: Likewise.
21489         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21490         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21491         changed behaviour: line breaking is now disallowed between a letter
21492         or '=' and '('.
21493         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21494         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21495         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21496         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21497         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21498         lib/uniwidth/width.c.
21499         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21500         without comments, but with the original copyright notice.
21501         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21502         changes.
21503         * lib/unictype/categ_Cc.h: Likewise.
21504         * lib/unictype/categ_Co.h: Likewise.
21505         * lib/unictype/categ_Cs.h: Likewise.
21506         * lib/unictype/categ_Lt.h: Likewise.
21507         * lib/unictype/categ_Me.h: Likewise.
21508         * lib/unictype/categ_Pc.h: Likewise.
21509         * lib/unictype/categ_Pe.h: Likewise.
21510         * lib/unictype/categ_Pf.h: Likewise.
21511         * lib/unictype/categ_Pi.h: Likewise.
21512         * lib/unictype/categ_Ps.h: Likewise.
21513         * lib/unictype/categ_Sk.h: Likewise.
21514         * lib/unictype/categ_Sm.h: Likewise.
21515         * lib/unictype/categ_Z.h: Likewise.
21516         * lib/unictype/categ_Zl.h: Likewise.
21517         * lib/unictype/categ_Zp.h: Likewise.
21518         * lib/unictype/categ_Zs.h: Likewise.
21519         * lib/unictype/ctype_blank.h: Likewise.
21520         * lib/unictype/ctype_cntrl.h: Likewise.
21521         * lib/unictype/ctype_digit.h: Likewise.
21522         * lib/unictype/ctype_space.h: Likewise.
21523         * lib/unictype/ctype_xdigit.h: Likewise.
21524         * lib/unictype/mirror.h: Likewise.
21525         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21526         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21527         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21528         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21529         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21530         * lib/unictype/pr_bidi_control.h: Likewise.
21531         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21532         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21533         * lib/unictype/pr_bidi_pdf.h: Likewise.
21534         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21535         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21536         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21537         * lib/unictype/pr_format_control.h: Likewise.
21538         * lib/unictype/pr_hex_digit.h: Likewise.
21539         * lib/unictype/pr_hyphen.h: Likewise.
21540         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21541         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21542         * lib/unictype/pr_iso_control.h: Likewise.
21543         * lib/unictype/pr_join_control.h: Likewise.
21544         * lib/unictype/pr_left_of_pair.h: Likewise.
21545         * lib/unictype/pr_line_separator.h: Likewise.
21546         * lib/unictype/pr_math.h: Likewise.
21547         * lib/unictype/pr_non_break.h: Likewise.
21548         * lib/unictype/pr_not_a_character.h: Likewise.
21549         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21550         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21551         * lib/unictype/pr_other_id_continue.h: Likewise.
21552         * lib/unictype/pr_other_id_start.h: Likewise.
21553         * lib/unictype/pr_other_lowercase.h: Likewise.
21554         * lib/unictype/pr_other_math.h: Likewise.
21555         * lib/unictype/pr_other_uppercase.h: Likewise.
21556         * lib/unictype/pr_paired_punctuation.h: Likewise.
21557         * lib/unictype/pr_paragraph_separator.h: Likewise.
21558         * lib/unictype/pr_pattern_syntax.h: Likewise.
21559         * lib/unictype/pr_pattern_white_space.h: Likewise.
21560         * lib/unictype/pr_private_use.h: Likewise.
21561         * lib/unictype/pr_quotation_mark.h: Likewise.
21562         * lib/unictype/pr_radical.h: Likewise.
21563         * lib/unictype/pr_soft_dotted.h: Likewise.
21564         * lib/unictype/pr_space.h: Likewise.
21565         * lib/unictype/pr_titlecase.h: Likewise.
21566         * lib/unictype/pr_variation_selector.h: Likewise.
21567         * lib/unictype/pr_white_space.h: Likewise.
21568         * lib/unictype/sy_c_ident.h: Likewise.
21569         * lib/unictype/sy_c_whitespace.h: Likewise.
21570         * lib/unictype/sy_java_whitespace.h: Likewise.
21571         * modules/uni*/*: Bump version number of expected libunistring version.
21572         Reported by Simon Josefsson.
21573
21574 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21575
21576         useless-if-before-free: fix typo in --help and make the internal,
21577         automatic version date update process work once again.
21578         --help output contained a NUL character instead of the
21579         backslash-zero that was intended.  Also, the "must lie within
21580         the first 8 lines" line is on line 9, and hence not getting
21581         automatically updated.
21582         * build-aux/useless-if-before-free: Fix the former by adding a
21583         backslash, and the latter by condensing the three lines of what-it-does
21584         to a single line, leaving one line of slack for the future.
21585
21586 2011-01-09  Bruno Haible  <bruno@clisp.org>
21587
21588         uniwidth/width: Fix width of U+1D173..U+1D17A.
21589         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21590         symbolic_width, output_width_property_test): New functions.
21591         (main): Invoke output_nonspacing_property, output_width_property_test.
21592         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21593         U+1D173..U+1D17A.
21594         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21595         1.
21596         * modules/uniwidth/*: Bump version number of expected libunistring
21597         version.
21598         * modules/unilbrk/*: Likewise.
21599
21600 2011-01-08  Bruno Haible  <bruno@clisp.org>
21601
21602         uninorm tests: Preserve copyright of Unicode data file.
21603         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21604         Mention modifications.
21605
21606 2011-01-08  Bruno Haible  <bruno@clisp.org>
21607
21608         gen-uni-tables: Prepare for Unicode 5.2.0.
21609         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21610         (debug_output_lbp, output_lbp): Update.
21611
21612 2011-01-08  Bruno Haible  <bruno@clisp.org>
21613
21614         unilbrk: Clarify gen-uni-tables.c code.
21615         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21616         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21617         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21618
21619 2011-01-07  Bruno Haible  <bruno@clisp.org>
21620
21621         strtod: Restore errno when successfully parsing Infinity or NaN.
21622         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21623         restore the original errno.
21624
21625 2011-01-07  Bruno Haible  <bruno@clisp.org>
21626
21627         remove test: Avoid failure on HP-UX 11.
21628         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21629
21630 2011-01-07  Bruno Haible  <bruno@clisp.org>
21631
21632         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21633         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21634         error code.
21635
21636 2011-01-07  Pádraig Brady <P@draigBrady.com>
21637
21638         ignore-value: fixup comments, and add Eric Blake
21639         as an author since he rewrote the macros.
21640         * lib/ignore-value.h (ignore_value):  State that
21641         we now support aggregates.  Also specify exactly
21642         when the GCC warn_unused_result feature was added.
21643
21644 2011-01-06  Eric Blake  <eblake@redhat.com>
21645
21646         ignore-value: support aggregate types
21647         * lib/ignore-value.h (ignore_value): Provide separate gcc
21648         definition.
21649         * modules/ignore-value-tests: New test module.
21650         * tests/test-ignore-value.c: New test.
21651
21652         maint.mk: improve sc_prohibit_strcmp regex
21653         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21654         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21655         definition of STRNEQ.
21656
21657         signal: work around Haiku issue with SIGBUS
21658         * lib/siglist.h: Add comment.
21659         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21660         strsignal's favoring of SIGSEGV.
21661         * tests/test-signal.c (main): Avoid test failure.
21662         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21663         Reported by Scott McCreary.
21664
21665         maint.mk: add pre-release check to ensure submodule commits are public
21666         * top/maint.mk (public-submodule-commit): New rule.
21667         (submodule-checks): New variable.
21668         (alpha beta stable): Depend on the variable.
21669
21670 2011-01-05  Pádraig Brady <P@draigBrady.com>
21671         and Jim Meyering  <meyering@redhat.com>
21672
21673         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21674         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21675         (ATTRIBUTE_DEPRECATED): Define.
21676         (_ignore_case): New function.
21677         (ignore_value): New macro, to replace the old function.
21678         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21679         * modules/ignore-value (Depends-on): Add stdint.
21680
21681 2011-01-04  Eric Blake  <eblake@redhat.com>
21682
21683         doc: regenerate INSTALL
21684         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21685         @firstparagraphindent support, now that autoconf dropped it.
21686         (INSTALL_PRELUDE): Reinstate old macro.
21687         * doc/install.texi: Resync from autoconf.
21688         * doc/INSTALL: Reflect recent autoconf update.
21689         * doc/INSTALL.ISO: Likewise.
21690         * doc/INSTALL.UTF-8: Likewise.
21691         Reported by Karl Berry.
21692
21693 2011-01-04  Bruce Korb  <address@hidden>
21694
21695         git-version-gen: avoid a sub-shell
21696         * build-aux/git-version-gen: Redirect stderr in `...` via
21697         "exec 2>...", rather than via an added sub-shell.
21698
21699 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21700
21701         git-version-gen: use (...) rather than sh -c '...'
21702         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21703         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21704
21705 2011-01-03  Jim Meyering  <meyering@redhat.com>
21706
21707         git-version-gen: convert leading TABs to spaces
21708         * build-aux/git-version-gen: Expand leading TABs.
21709
21710         git-version-gen: handle failed "git rev-list"
21711         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21712         from git and proceeding as if it had succeeded but printed no SHA1
21713         checksums, suppress the diagnostic and handle the failure.
21714         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21715
21716         git-version-gen: include command name in one more diagnostic
21717         * build-aux/git-version-gen: When the required .tarball-version file
21718         was missing or unreadable, you might see the diagnostic from "cat",
21719         but no trace of the name of the invoking script.  Now, you still see
21720         the diagnostic from cat, but also get one from "git-version-gen: ".
21721         Inspired by a patch from Bruce Korb.
21722
21723         update-copyright: adjust test to match changed code
21724         * tests/test-update-copyright.sh: Change test's expected output
21725         to match new actual output.
21726
21727 2011-01-02  Bruno Haible  <bruno@clisp.org>
21728
21729         getlogin_r: Avoid test failure on HP-UX 11.
21730         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21731         ERANGE when the second argument is zero.
21732         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21733         portability problem.
21734
21735 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21736
21737         * build-aux/update-copyright: doc Simon's changes
21738
21739 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21740
21741         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21742         environment variable.
21743
21744 2011-01-02  Bruno Haible  <bruno@clisp.org>
21745
21746         unigbrk: Avoid gcc warnings.
21747         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21748         unused variable.
21749         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21750         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21751         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21752         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21753         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21754         Change type of first argument to 'const char *'.
21755         (main): Remove unused variable.
21756         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21757         type of first argument to 'const char *'.
21758         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21759         Likewise.
21760         (main): Change type of variable 's'.
21761         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21762         to 'int'.
21763
21764 2011-01-02  Bruno Haible  <bruno@clisp.org>
21765
21766         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21767         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21768         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21769         bug.
21770         * lib/pwrite.c: Undo 2010-12-31 patch.
21771         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21772
21773 2011-01-02  Bruno Haible  <bruno@clisp.org>
21774
21775         pread: Fix test whether it works.
21776         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21777
21778 2011-01-02  Bruno Haible  <bruno@clisp.org>
21779
21780         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21781         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21782         ends in "6". Don't require a specific month name. Try also the locale
21783         names found on HP-UX 11 and Solaris 7.
21784
21785 2011-01-02  Bruno Haible  <bruno@clisp.org>
21786
21787         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21788         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21789         C linkage.
21790         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21791
21792 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21793
21794         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21795         for consistency, since the "cluster" term is not used elsewhere.
21796         * lib/unigbrk.in.h: Update name.
21797         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21798         * lib/unigbrk/u16-grapheme-next.c: Update name.
21799         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21800         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21801         * lib/unigbrk/u32-grapheme-next.c: Update name.
21802         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21803         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21804         * lib/unigbrk/u8-grapheme-next.c: Update name.
21805         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21806         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21807         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21808         Suggested by Bruno Haible.
21809
21810 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21811
21812         Remove module 'u8-grapheme-len' as too redundant with
21813         'u8-grapheme-next'.
21814         * modules/unigbrk/u8-grapheme-len: Delete file.
21815         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21816         * lib/unigbrk.in.h: Remove prototype for deleted function.
21817         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21818         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21819
21820         Remove module 'u16-grapheme-len' as too redundant with
21821         'u16-grapheme-next'.
21822         * modules/unigbrk/u16-grapheme-len: Delete file.
21823         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21824         * lib/unigbrk.in.h: Remove prototype for deleted function.
21825         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21826         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21827
21828         Remove module 'u32-grapheme-len' as too redundant with
21829         'u32-grapheme-next'.
21830         * modules/unigbrk/u32-grapheme-len: Delete file.
21831         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21832         * lib/unigbrk.in.h: Remove prototype for deleted function.
21833         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21834         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21835
21836         Suggested by Bruno Haible.
21837
21838 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21839
21840         * unigbrk.in.h: Fix typo: "ben" => "been".
21841         Reported by Bruno Haible.
21842
21843 2011-01-01  Jim Meyering  <meyering@redhat.com>
21844
21845         maint: update almost all copyright ranges to include 2011
21846         Run the new "make update-copyright" rule.
21847
21848 2011-01-01  Jim Meyering  <meyering@redhat.com>
21849
21850         maint: update-copyright: exempt doc/INSTALL*
21851         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21852         since they are generated.  Suggested by Bruno Haible.
21853
21854 2011-01-01  Jim Meyering  <meyering@redhat.com>
21855
21856         maint: refine the update-copyright rule
21857         * Makefile (update-copyright): Also exclude any file that includes
21858         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21859         code that merely generates the comment.
21860
21861 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21862
21863         New module 'u8-grapheme-len'.
21864         * modules/unigbrk/u8-grapheme-len: New file.
21865         * modules/unigbrk/u8-grapheme-len-tests: New file.
21866         * lib/unigbrk.in.h: Add prototype for new function.
21867         * lib/unigbrk/u8-grapheme-len.c: New file.
21868         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21869
21870         New module 'u16-grapheme-len'.
21871         * modules/unigbrk/u16-grapheme-len: New file.
21872         * modules/unigbrk/u16-grapheme-len-tests: New file.
21873         * lib/unigbrk.in.h: Add prototype for new function.
21874         * lib/unigbrk/u16-grapheme-len.c: New file.
21875         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21876
21877         New module 'u32-grapheme-len'.
21878         * modules/unigbrk/u32-grapheme-len: New file.
21879         * modules/unigbrk/u32-grapheme-len-tests: New file.
21880         * lib/unigbrk.in.h: Add prototype for new function.
21881         * lib/unigbrk/u32-grapheme-len.c: New file.
21882         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21883
21884         New module 'u8-grapheme-next'.
21885         * modules/unigbrk/u8-grapheme-next: New file.
21886         * modules/unigbrk/u8-grapheme-next-tests: New file.
21887         * lib/unigbrk.in.h: Add prototype for new function.
21888         * lib/unigbrk/u8-grapheme-next.c: New file.
21889         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21890
21891         New module 'u16-grapheme-next'.
21892         * modules/unigbrk/u16-grapheme-next: New file.
21893         * modules/unigbrk/u16-grapheme-next-tests: New file.
21894         * lib/unigbrk.in.h: Add prototype for new function.
21895         * lib/unigbrk/u16-grapheme-next.c: New file.
21896         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21897
21898         New module 'u32-grapheme-next'.
21899         * modules/unigbrk/u32-grapheme-next: New file.
21900         * modules/unigbrk/u32-grapheme-next-tests: New file.
21901         * lib/unigbrk.in.h: Add prototype for new function.
21902         * lib/unigbrk/u32-grapheme-next.c: New file.
21903         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21904
21905         New module 'u8-grapheme-prev'.
21906         * modules/unigbrk/u8-grapheme-prev: New file.
21907         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21908         * lib/unigbrk.in.h: Add prototype for new function.
21909         * lib/unigbrk/u8-grapheme-prev.c: New file.
21910         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21911
21912         New module 'u16-grapheme-prev'.
21913         * modules/unigbrk/u16-grapheme-prev: New file.
21914         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21915         * lib/unigbrk.in.h: Add prototype for new function.
21916         * lib/unigbrk/u16-grapheme-prev.c: New file.
21917         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21918
21919         New module 'u32-grapheme-prev'.
21920         * modules/unigbrk/u32-grapheme-prev: New file.
21921         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21922         * lib/unigbrk.in.h: Add prototype for new function.
21923         * lib/unigbrk/u32-grapheme-prev.c: New file.
21924         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21925
21926         New module 'u8-grapheme-breaks'.
21927         * modules/unigbrk/u8-grapheme-breaks: New file.
21928         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21929         * lib/unigbrk.in.h: Add prototype for new function.
21930         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21931         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21932
21933         New module 'u16-grapheme-breaks'.
21934         * modules/unigbrk/u16-grapheme-breaks: New file.
21935         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21936         * lib/unigbrk.in.h: Add prototype for new function.
21937         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21938         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21939
21940         New module 'u32-grapheme-breaks'.
21941         * modules/unigbrk/u32-grapheme-breaks: New file.
21942         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21943         * lib/unigbrk.in.h: Add prototype for new function.
21944         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21945         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21946
21947         New module 'ulc-grapheme-breaks'.
21948         * modules/unigbrk/ulc-grapheme-breaks: New file.
21949         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21950         * m4/locale-ar.m4: New file.
21951         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21952         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21953         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21954
21955 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21956
21957         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21958         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21959         modified how this file was generated before I initially submitted
21960         the module, but failed to regenerate it.  This meant that several
21961         of the level2 entries were wrong.
21962         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21963         Remove the division-by-2 that is folded into the table now that
21964         gbrkprop.h has been regenerated properly.  Now -1 entries are
21965         handled correctly.
21966
21967         New module 'unigbrk/uc-gbrk-prop-tests'.
21968         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21969         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21970         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21971         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21972
21973 2011-01-01  Bruno Haible  <bruno@clisp.org>
21974
21975         Avoid use of hexadecimal escapes.
21976         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21977         instead of hexadecimal escapes.
21978
21979 2011-01-01  Jim Meyering  <meyering@redhat.com>
21980
21981         maint: new rule to update copyright year ranges
21982         * Makefile (update-copyright): New rule.
21983
21984         maint: indent with TABs in Makefile
21985         * Makefile: Expand leading sequences of spaces to TABs
21986
21987         version-etc: update the copyright year it reports
21988         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21989
21990 2010-12-31  Bruno Haible  <bruno@clisp.org>
21991
21992         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21993         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21994         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21995         zero.
21996
21997 2010-12-31  Bruno Haible  <bruno@clisp.org>
21998
21999         pwrite: Work around HP-UX 11.11 bug.
22000         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22001         works and set REPLACE_PWRITE if not.
22002         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22003         function.
22004         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22005
22006 2010-12-31  Bruno Haible  <bruno@clisp.org>
22007
22008         pread: Work around HP-UX 11 bugs.
22009         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22010         and set REPLACE_PREAD if not.
22011         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22012
22013 2010-12-31  Eric Blake  <eblake@redhat.com>
22014
22015         nl_langinfo: fix YESEXPR on Irix 6.5
22016         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22017         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22018         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22019         it.
22020
22021 2010-12-31  Bruno Haible  <bruno@clisp.org>
22022
22023         iconv: Document HP-UX 11 bug.
22024         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22025
22026 2010-12-31  Bruno Haible  <bruno@clisp.org>
22027
22028         ldexpl: Fix link error on HP-UX 11.
22029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22030         LDEXPL_LIBM, using $ISNANL_LIBM.
22031
22032 2010-12-31  Eric Blake  <eblake@redhat.com>
22033
22034         ftello: avoid compilation failure with SunStudio c89
22035         * lib/ftello.c (ftello): Use lseek, not llseek.
22036
22037         tests: avoid failing coreutils tests on cygwin
22038         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22039         (create_exe_shims_): Return 0 when skipping.
22040
22041 2010-12-31  Bruno Haible  <bruno@clisp.org>
22042
22043         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22044         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22045
22046 2010-12-31  Bruno Haible  <bruno@clisp.org>
22047
22048         waitpid: Fix link error in C++ mode.
22049         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22050
22051 2010-12-31  Bruno Haible  <bruno@clisp.org>
22052
22053         isnan: Use GCC built-ins when possible.
22054         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22055         __builtin_isnan.
22056         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22057         (isnan): Define using GCC built-ins for GCC >= 4.0.
22058
22059 2010-12-31  Bruno Haible  <bruno@clisp.org>
22060
22061         isnand: Fix mistake.
22062         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22063         __builtin_isnand.
22064
22065 2010-12-31  Bruno Haible  <bruno@clisp.org>
22066
22067         open: Avoid C++ error on HP-UX 11.
22068         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22069
22070 2010-12-31  Bruno Haible  <bruno@clisp.org>
22071
22072         time_r: Add missing declarations on HP-UX 11.
22073         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22074         instead of HAVE_LOCALTIME_R.
22075         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22076         HAVE_LOCALTIME_R always.
22077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22078         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22079         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22080         HAVE_LOCALTIME_R.
22081         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22082         * doc/posix-functions/localtime_r.texi: Likewise.
22083
22084 2010-12-29  Eric Blake  <eblake@redhat.com>
22085
22086         mountlist: tweak previous commit
22087         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22088         Reported by Paul Eggert.
22089
22090         mountlist: fix local drive detection on cygwin
22091         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22092         that works for cygwin.
22093
22094 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22095
22096         ftoastr, snprintf: ftoastr + snprintf module
22097         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22098         since the snprintf module now should be good enough here.
22099         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22100         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22101         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22102         GNULIB_SNPRINTF only for the test directory, and the latter
22103         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22104         seems to suffice by itself.
22105
22106 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22107
22108         alloca: one step towards thread-safety
22109         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22110         need for a static variable.  All callers changed.  This does not
22111         make the alloca replacement thread-safe, but it's one step.
22112
22113         tests: minor indenting change
22114         * tests/init.sh: Sync from coreutils housekeeping patch
22115         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22116         to keep lines within 80 columns.
22117
22118 2010-12-28  Jim Meyering  <meyering@redhat.com>
22119
22120         regex: don't infloop on persistent failing calloc
22121         * lib/regexec.c (build_trtable): Return failure indication upon
22122         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22123         In glibc, this was fixed for version 2.13:
22124         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22125
22126 2010-12-28  Bruno Haible  <bruno@clisp.org>
22127             Paul Eggert <eggert@cs.ucla.edu>
22128
22129         linkat: Make implementation robust against system behaviour variations.
22130         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22131         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22132         way, and to -2 if it needs a generic runtime test.
22133         * lib/linkat.c (solaris_optimized_link_immediate,
22134         solaris_optimized_link_follow): New functions.
22135         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22136         (check_same_link): Use it.
22137
22138 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22139
22140         New module 'unigbrk/base'.
22141         * modules/unigbrk/base: New file.
22142         * lib/unigbrk.in.h: New file.
22143
22144         New module 'unigbrk/uc-gbrk-prop'.
22145         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22146         * modules/unigbrk/uc-gbrk-prop: New file.
22147         * lib/unigbrk/gbrkprop.h: New file.
22148         * lib/unigbrk/uc-gbrk-prop.c: New file.
22149
22150         New module 'unigbrk/uc-is-grapheme-break'.
22151         * modules/unigbrk/uc-is-grapheme-break: New file.
22152         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22153         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22154         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22155         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22156         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22157
22158         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22159
22160 2010-12-27  Bruno Haible  <bruno@clisp.org>
22161
22162         linkat test: Avoid failure on Solaris 11 2010-11.
22163         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22164
22165 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22166
22167         utimens: work around glibc rounding bug on more platforms
22168         * lib/utimens.c (fdutimens): Work around rounding bug even if
22169         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22170         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22171
22172 2010-12-27  Bruno Haible  <bruno@clisp.org>
22173
22174         select tests: Improve comments.
22175         * tests/test-select.c (do_select): Add comments.
22176
22177 2010-12-27  Bruno Haible  <bruno@clisp.org>
22178
22179         select tests: Safer way of handling timeout.
22180         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22181         at every invocation.
22182
22183 2010-12-27  Bruno Haible  <bruno@clisp.org>
22184
22185         select tests: Use 'bool' where appropriate.
22186         * tests/test-select.c (connect_to_socket): Change argument type to
22187         'bool'.
22188
22189 2010-12-27  Bruno Haible  <bruno@clisp.org>
22190
22191         select tests: Use existing modules.
22192         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22193         (configure.ac): Don't test for unistd.h.
22194         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22195         declared in <unistd.h>.
22196
22197 2010-12-27  Bruno Haible  <bruno@clisp.org>
22198
22199         mbrtowc: Work around a Solaris 7 bug.
22200         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22201         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22202         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22203         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22204         MBRTOWC_NULL_ARG1_BUG.
22205         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22206         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22207         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22208         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22209
22210 2010-12-27  Jim Meyering  <meyering@redhat.com>
22211
22212         read-file.c: tweak syntax
22213         * lib/read-file.c (fread_file): Remove space after "*" in function
22214         definitions.
22215
22216 2010-12-27  Bruno Haible  <bruno@clisp.org>
22217
22218         times test: Avoid gcc warnings on OSF/1.
22219         * tests/test-times.c (main): Cast printf arguments from clock_t to
22220         'long int'.
22221
22222 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22223
22224         utimens: work around glibc rounding bug on older Linux kernels
22225         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22226         on Linux with a glibc whose utimes might not work, then work
22227         around a longstanding glibc bug involving rounding rather than
22228         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22229         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22230
22231 2010-12-26  Bruno Haible  <bruno@clisp.org>
22232
22233         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22234         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22235         _GL_CXXALIAS_SYS.
22236         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22237
22238 2010-12-26  Bruno Haible  <bruno@clisp.org>
22239
22240         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22241         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22243         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22244         looking for the declaration.
22245         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22246         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22247         problem.
22248         * doc/posix-functions/inet_pton.texi: Likewise.
22249
22250 2010-12-26  Bruno Haible  <bruno@clisp.org>
22251
22252         arpa_inet: Use the common idioms with C++ support.
22253         * lib/arpa_inet.in.h: Include c++defs.h.
22254         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22255         support.
22256         * modules/arpa_inet (Depends-on): Add c++defs.
22257         (Makefile.am): Substitute the contents of c++defs.h.
22258         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22259         * modules/arpa_inet-c++-tests: New file.
22260         * tests/test-arpa_inet-c++.cc: New file.
22261
22262 2010-12-25  Bruno Haible  <bruno@clisp.org>
22263
22264         Fix more C++ link errors on Solaris 8.
22265         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22266         $(LIB_EACCESS).
22267         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22268         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22269         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22270         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22271         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22272
22273 2010-12-25  Bruno Haible  <bruno@clisp.org>
22274
22275         printf-posix: Fix link error when a non-GCC compiler is used.
22276         * lib/stdio.in.h (printf): When not using GCC, override printf
22277         correctly.
22278         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22279
22280 2010-12-25  Bruno Haible  <bruno@clisp.org>
22281
22282         strerror_r-posix: Update doc.
22283         * doc/posix-functions/strerror_r.texi: Update doc about the return
22284         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22285
22286 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22287
22288         utimens: simplify the logic of the previous change
22289         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22290         This should not affect whether the test succeeds or fails.
22291
22292         utimens: configure better on hosts with NFS clock skew
22293         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22294         uses the clock of the local host.  It might use the clock of the
22295         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22297
22298 2010-12-25  Bruno Haible  <bruno@clisp.org>
22299
22300         ptsname test: Avoid failure on Solaris.
22301         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22302         open a pseudo-terminal; don't use BSD-style ptys.
22303         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22304
22305 2010-12-25  Bruno Haible  <bruno@clisp.org>
22306
22307         ptsname: Avoid ERANGE failure on some systems.
22308         * lib/ptsname.c (buffer): Increase size.
22309
22310 2010-12-25  Bruno Haible  <bruno@clisp.org>
22311
22312         rename, renameat: Avoid test failures at NFS mounted locations.
22313         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22314         so that subsequent mkdir calls succeed.
22315
22316 2010-12-25  Bruno Haible  <bruno@clisp.org>
22317
22318         iswblank: Fix C++ link error on Solaris 8.
22319         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22320         _GL_FUNCDECL_SYS.
22321
22322 2010-12-25  Bruno Haible  <bruno@clisp.org>
22323
22324         unistd: Fix C++ link error on Solaris 8.
22325         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22326
22327 2010-12-25  Bruno Haible  <bruno@clisp.org>
22328
22329         readlink doc: Mention an old glibc bug.
22330         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22331
22332 2010-12-25  Bruno Haible  <bruno@clisp.org>
22333
22334         fcntl-h: Fix for use of C++ on glibc systems.
22335         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22336         also on glibc systems in C++ mode.
22337         Reported by Gary V. Vaughan <gary@gnu.org>.
22338
22339 2010-12-25  Bruno Haible  <bruno@clisp.org>
22340
22341         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22342         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22343
22344 2010-12-25  Bruno Haible  <bruno@clisp.org>
22345
22346         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22347         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22348         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22349         test whether truncl works according to ISO C 99 with IEC 60559.
22350         * m4/truncl-ieee.m4: New file.
22351         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22352         m4/signbit.m4.
22353         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22354
22355 2010-12-25  Bruno Haible  <bruno@clisp.org>
22356
22357         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22358         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22359         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22360         test whether ceill works according to ISO C 99 with IEC 60559.
22361         * m4/ceill-ieee.m4: New file.
22362         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22363         m4/signbit.m4.
22364         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22365
22366 2010-12-25  Bruno Haible  <bruno@clisp.org>
22367
22368         Ensure all prerequisites of <wchar.h> are included.
22369         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22370         before <wchar.h>.
22371         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22372         gl_MBRLEN_NUL_RETVAL): Likewise.
22373         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22374         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22375         AC_FUNC_MBRTOWC): Likewise.
22376         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22377         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22378         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22379         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22380         Likewise.
22381         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22382         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22383         (gl_WCHAR_H): Improve comments.
22384         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22385
22386 2010-12-25  Bruno Haible  <bruno@clisp.org>
22387
22388         strtok_r: Fix C syntax error in autoconf macro.
22389         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22390         characters in test program.
22391
22392 2010-12-24  Bruno Haible  <bruno@clisp.org>
22393
22394         ceil, trunc, round: Fix gcc warnings.
22395         * lib/ceil.c (MIN): Undefine before redefining.
22396         * lib/trunc.c (MIN): Likewise.
22397         * lib/round.c (MIN): Likewise.
22398         Include <math.h> first.
22399
22400 2010-12-24  Bruno Haible  <bruno@clisp.org>
22401
22402         select tests: Avoid failures on OSF/1 5.1.
22403         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22404         failure of closing the last socket; it may fail with ECONNRESET.
22405
22406 2010-12-24  Eric Blake  <eblake@redhat.com>
22407
22408         stdint: avoid HP-UX 10.20 preprocessor bug
22409         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22410         than #if.
22411         * tests/test-floor2.c (main): Likewise.
22412         Reported by Peter O'Gorman.
22413
22414         pipe: make obsoletion transition easier
22415         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22416         * modules/pipe (Files): Include revived file.
22417         (Include): Drop reference, to mirror getdate's behavior.
22418
22419 2010-12-24  Bruno Haible  <bruno@clisp.org>
22420
22421         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22422         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22423         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22424         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22425
22426 2010-12-24  Bruno Haible  <bruno@clisp.org>
22427
22428         gethostname: Ensure declaration on NonStop Kernel.
22429         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22431
22432 2010-12-24  Bruno Haible  <bruno@clisp.org>
22433
22434         sys_select: Ensure all necessary types on NonStop Kernel.
22435         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22436         include <sys/time.h>.
22437         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22438         NonStop Kernel.
22439         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22440
22441 2010-12-24  Bruno Haible  <bruno@clisp.org>
22442
22443         sys_select: Remove unneeded include.
22444         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22445         have <sys/select.h>.
22446
22447 2010-12-24  Bruno Haible  <bruno@clisp.org>
22448
22449         gethostname: Provide a fallback for HOST_NAME_MAX.
22450         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22451         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22452         instead.
22453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22454
22455 2010-12-24  Bruno Haible  <bruno@clisp.org>
22456
22457         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22458         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22459         (SA_RESTART): Likewise.
22460         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22461
22462 2010-12-24  Bruno Haible  <bruno@clisp.org>
22463
22464         signal: Define NSIG.
22465         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22466         * tests/test-signal.c (nsig): New variable.
22467         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22468
22469 2010-12-24  Bruno Haible  <bruno@clisp.org>
22470
22471         rename, renameat: Avoid test failures on OSF/1 5.1.
22472         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22473         alternative error codes.
22474         * tests/test-renameat.c (main): Likewise.
22475
22476 2010-12-24  Bruno Haible  <bruno@clisp.org>
22477
22478         *printf: Detect large precisions bug on Solaris 10/SPARC.
22479         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22480         by Paul Eggert.
22481         * tests/test-snprintf-posix.h (test_function): Add this test code here
22482         too.
22483         * tests/test-sprintf-posix.h (test_function): Likewise.
22484         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22485         * tests/test-vasprintf-posix.c (test_function): Likewise.
22486         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22487         around by gnulib.
22488         * doc/posix-functions/printf.texi: Likewise.
22489         * doc/posix-functions/snprintf.texi: Likewise.
22490         * doc/posix-functions/sprintf.texi: Likewise.
22491         * doc/posix-functions/vfprintf.texi: Likewise.
22492         * doc/posix-functions/vprintf.texi: Likewise.
22493         * doc/posix-functions/vsnprintf.texi: Likewise.
22494         * doc/posix-functions/vsprintf.texi: Likewise.
22495         * doc/posix-functions/dprintf.texi: Undo last commit.
22496         * doc/posix-functions/vdprintf.texi: Likewise.
22497
22498 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         tests: port test-fdutimensat.c to Solaris 8
22501         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22502         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22503         On Solaris 8, it fails with errno == ENOSYS, because there is no
22504         futimens (so it can't use the fd), and there is no lutimens (so it
22505         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22506
22507         vsnprintf: make more consistent with snprintf; doc fixes
22508
22509         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22510         the byte count return problem was promoted from the snprintf-posix
22511         to the snprintf module.
22512         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22513         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22514         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22515         * tests/test-snprintf.c (main): Check the byte count returned.
22516         * tests/test-vsnprintf.c (main): Likewise.
22517
22518 2010-12-23  Eric Blake  <eblake@redhat.com>
22519
22520         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22521         * modules/sigpipe (License): Relax license.
22522
22523 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22524
22525         doc: document Solaris printf bug with large float precisions
22526         * doc/posix-functions/dprintf.texi (dprintf):
22527         * doc/posix-functions/fprintf.texi (fprintf):
22528         * doc/posix-functions/printf.texi (printf):
22529         * doc/posix-functions/snprintf.texi (snprintf):
22530         * doc/posix-functions/sprintf.texi (sprintf):
22531         * doc/posix-functions/vdprintf.texi (vdprintf):
22532         * doc/posix-functions/vfprintf.texi (vfprintf):
22533         * doc/posix-functions/vprintf.texi (vprintf):
22534         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22535         * doc/posix-functions/vsprintf.texi (vsprintf):
22536         Mention that these functions mishandle large floating point
22537         precisions on Solaris 10.  The same bug is also present in Solaris
22538         8, and I assume earlier.  This causes "cd gnulib-tests; make
22539         check" to fail on Solaris 8 (and I assume, later) when building
22540         the latest coreutils, in test-vasprintf-posix's call to
22541         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22542         the wide flavors (e.g., wprintf) so this patch just updates the
22543         documentation for the narrow ones.
22544
22545         test-posixtm.c: add two tests
22546         * tests/test-posixtm.c: Add two tests, to highlight the
22547         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22548         around this bug; this is merely to document it.
22549
22550 2010-12-22  Bruno Haible  <bruno@clisp.org>
22551
22552         getlogin_r: Work around portability problem on OSF/1.
22553         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22554         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22555         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22556         test for a truncated result.
22557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22558         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22559         * modules/getlogin_r (Depends-on): Add memchr.
22560         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22561
22562 2010-12-22  Bruno Haible  <bruno@clisp.org>
22563
22564         ptsname: Avoid test failure on OSF/1 5.1.
22565         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22566         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22567         (same_slave): New function.
22568         (main): Use it to compare ptsname's result with the expected file name.
22569
22570 2010-12-22  Bruno Haible  <bruno@clisp.org>
22571
22572         Port extended stdio modules to HP NonStop Kernel.
22573         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22574         macros.
22575         * lib/fbufmode.c: Update comments.
22576         * lib/fflush.c: Likewise.
22577         * lib/fpurge.c: Likewise.
22578         * lib/freadable.c: Likewise.
22579         * lib/freadahead.c: Likewise.
22580         * lib/freading.c: Likewise.
22581         * lib/freadptr.c: Likewise.
22582         * lib/freadseek.c: Likewise.
22583         * lib/fseeko.c: Likewise.
22584         * lib/fseterr.c: Likewise.
22585         * lib/fwritable.c: Likewise.
22586         * lib/fwriting.c: Likewise.
22587         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22588
22589 2010-12-22  Bruno Haible  <bruno@clisp.org>
22590
22591         ttyname_r: Work around bug on OSF/1 5.1.
22592         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22593         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22594         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22595         present.
22596         * lib/ttyname_r.c (ttyname_r): Update comments.
22597
22598 2010-12-22  Bruno Haible  <bruno@clisp.org>
22599
22600         round: Implement result sign according to IEEE 754.
22601         * lib/round.c (MIN, MINUS_ZERO): New macros.
22602         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22603         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22604         * tests/test-round-ieee.c (main): Likewise.
22605         * tests/test-roundl-ieee.c (main): Likewise.
22606
22607         trunc: Implement result sign according to IEEE 754.
22608         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22609         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22610         * tests/test-trunc2.c: Include minus-zero.h.
22611         (MINUS_ZERO): New macro.
22612         (trunc_reference): Keep in sync with lib/trunc.c.
22613         * tests/test-truncf2.c: Include minus-zero.h.
22614         (MINUS_ZERO): New macro.
22615         (truncf_reference): Keep in sync with lib/trunc.c.
22616         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22617         * tests/test-trunc-ieee.c (main): Likewise.
22618         * tests/test-truncl-ieee.c (main): Likewise.
22619
22620         ceil: Implement result sign according to IEEE 754.
22621         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22622         (FUNC): Return -0.0 for -1 < x < 0.
22623         * tests/test-ceil2.c: Include minus-zero.h.
22624         (MINUS_ZERO): New macro.
22625         (ceil_reference): Keep in sync with lib/ceil.c.
22626         * tests/test-ceilf2.c: Include minus-zero.h.
22627         (MINUS_ZERO): New macro.
22628         (ceilf_reference): Keep in sync with lib/ceil.c.
22629         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22630         * tests/test-ceil-ieee.c (main): Likewise.
22631         * tests/test-ceill-ieee.c (main): Likewise.
22632
22633         floor: Implement result sign according to IEEE 754.
22634         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22635         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22636         * tests/test-floorf2.c (floorf_reference): Likewise.
22637         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22638         * tests/test-floor-ieee.c (main): Likewise.
22639         * tests/test-floorl-ieee.c (main): Likewise.
22640
22641 2010-12-22  Bruno Haible  <bruno@clisp.org>
22642
22643         getaddrinfo: Update doc.
22644         * doc/posix-functions/gai_strerror.texi: Return type is also different
22645         on AIX and HP-UX.
22646
22647 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22648
22649         getaddrinfo, inet_ntop: Update doc for Solaris.
22650         * doc/posix-functions/gai_strerror.texi: Return type is also an
22651         issue on Solaris 9 and earlier.
22652         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22653         on Solaris 10 and earlier.
22654
22655 2010-12-21  Bruno Haible  <bruno@clisp.org>
22656
22657         New module 'roundl-ieee'.
22658         * modules/roundl-ieee: New file.
22659         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22660         test whether roundl works according to ISO C 99 with IEC 60559.
22661         * m4/roundl-ieee.m4: New file.
22662         * modules/roundl-ieee-tests: New file.
22663         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22664         * tests/test-roundl.c (main): Remove signbit tests.
22665         * modules/roundl-tests (Depends-on): Remove signbit.
22666         * doc/posix-functions/roundl.texi: Mention the new module.
22667
22668 2010-12-21  Bruno Haible  <bruno@clisp.org>
22669
22670         New module 'truncl-ieee'.
22671         * modules/truncl-ieee: New file.
22672         * modules/truncl-ieee-tests: New file.
22673         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22674         * tests/test-truncl.c (main): Remove signbit tests.
22675         * modules/truncl-tests (Depends-on): Remove signbit.
22676         * doc/posix-functions/truncl.texi: Mention the new module.
22677
22678 2010-12-21  Bruno Haible  <bruno@clisp.org>
22679
22680         New module 'ceill-ieee'.
22681         * modules/ceill-ieee: New file.
22682         * modules/ceill-ieee-tests: New file.
22683         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22684         * tests/test-ceill.c (main): Remove signbit tests.
22685         * modules/ceill-tests (Depends-on): Remove signbit.
22686         * doc/posix-functions/ceill.texi: Mention the new module.
22687
22688 2010-12-21  Bruno Haible  <bruno@clisp.org>
22689
22690         New module 'floorl-ieee'.
22691         * modules/floorl-ieee: New file.
22692         * modules/floorl-ieee-tests: New file.
22693         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22694         * tests/test-floorl.c (main): Remove signbit tests.
22695         * modules/floorl-tests (Depends-on): Remove signbit.
22696         * doc/posix-functions/floorl.texi: Mention the new module.
22697
22698 2010-12-21  Bruno Haible  <bruno@clisp.org>
22699
22700         New module 'round-ieee'.
22701         * modules/round-ieee: New file.
22702         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22703         whether round works according to ISO C 99 with IEC 60559.
22704         * m4/round-ieee.m4: New file.
22705         * modules/round-ieee-tests: New file.
22706         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22707         * tests/test-round1.c (main): Remove signbit tests.
22708         * modules/round-tests (Depends-on): Remove 'signbit'.
22709         * doc/posix-functions/round.texi: Mention the new module.
22710
22711 2010-12-21  Bruno Haible  <bruno@clisp.org>
22712
22713         New module 'trunc-ieee'.
22714         * modules/trunc-ieee: New file.
22715         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22716         whether trunc works according to ISO C 99 with IEC 60559.
22717         * m4/trunc-ieee.m4: New file.
22718         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22720         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22721         * modules/trunc-ieee-tests: New file.
22722         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22723         * tests/test-trunc1.c (main): Remove signbit tests.
22724         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22725         * doc/posix-functions/trunc.texi: Mention the new module.
22726
22727 2010-12-21  Bruno Haible  <bruno@clisp.org>
22728
22729         New module 'ceil-ieee'.
22730         * modules/ceil-ieee: New file.
22731         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22732         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22733         ISO C 99 with IEC 60559.
22734         * m4/ceil-ieee.m4: New file.
22735         * modules/ceil (Files): Add lib/ceil.c.
22736         (Depends-on): Add 'float'.
22737         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22738         * lib/math.in.h (ceil): New declaration.
22739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22740         REPLACE_CEIL.
22741         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22742         * modules/ceil-ieee-tests: New file.
22743         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22744         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22745         * doc/posix-functions/ceil.texi: Mention the new module.
22746
22747 2010-12-21  Bruno Haible  <bruno@clisp.org>
22748
22749         New module 'floor-ieee'.
22750         * modules/floor-ieee: New file.
22751         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22752         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22753         ISO C 99 with IEC 60559.
22754         * m4/floor-ieee.m4: New file.
22755         * modules/floor (Files): Add lib/floor.c.
22756         (Depends-on): Add 'float'.
22757         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22758         * lib/math.in.h (floor): New declaration.
22759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22760         REPLACE_FLOOR.
22761         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22762         * modules/floor-ieee-tests: New file.
22763         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22764         * tests/test-math-c++.cc: Check the signature of 'floor'.
22765         * doc/posix-functions/floor.texi: Mention the new module.
22766
22767 2010-12-21  Bruno Haible  <bruno@clisp.org>
22768
22769         New module 'roundf-ieee'.
22770         * modules/roundf-ieee: New file.
22771         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22772         test whether roundf works according to ISO C 99 with IEC 60559.
22773         * m4/roundf-ieee.m4: New file.
22774         * modules/roundf-ieee-tests: New file.
22775         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22776         * tests/test-roundf1.c (main): Remove signbit tests.
22777         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22778         * doc/posix-functions/roundf.texi: Mention the new module.
22779
22780 2010-12-21  Bruno Haible  <bruno@clisp.org>
22781
22782         New module 'truncf-ieee'.
22783         * modules/truncf-ieee: New file.
22784         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22785         test whether truncf works according to ISO C 99 with IEC 60559.
22786         * m4/truncf-ieee.m4: New file.
22787         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22789         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22790         * modules/truncf-ieee-tests: New file.
22791         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22792         * tests/test-truncf1.c (main): Remove signbit tests.
22793         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22794         * doc/posix-functions/truncf.texi: Mention the new module.
22795
22796 2010-12-21  Bruno Haible  <bruno@clisp.org>
22797
22798         New module 'ceilf-ieee'.
22799         * modules/ceilf-ieee: New file.
22800         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22801         test whether ceilf works according to ISO C 99 with IEC 60559.
22802         * m4/ceilf-ieee.m4: New file.
22803         * modules/ceilf-ieee-tests: New file.
22804         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22805         * tests/test-ceilf1.c (main): Remove signbit tests.
22806         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22807         * doc/posix-functions/ceilf.texi: Mention the new module.
22808
22809 2010-12-21  Bruno Haible  <bruno@clisp.org>
22810
22811         New module 'floorf-ieee'.
22812         * modules/floorf-ieee: New file.
22813         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22814         test whether floorf works according to ISO C 99 with IEC 60559.
22815         * m4/floorf-ieee.m4: New file.
22816         * modules/floorf-ieee-tests: New file.
22817         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22818         * tests/test-floorf1.c (main): Remove signbit tests.
22819         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22820         * doc/posix-functions/floorf.texi: Mention the new module.
22821
22822 2010-12-21  Bruno Haible  <bruno@clisp.org>
22823
22824         Support for minus zero in autoconf macros.
22825         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22826         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22827         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22828         * tests/minus-zero.h: Update comments.
22829
22830 2010-12-21  Bruno Haible  <bruno@clisp.org>
22831
22832         Tests for module 'ceil'.
22833         * modules/ceil-tests: New file.
22834         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22835         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22836
22837 2010-12-21  Bruno Haible  <bruno@clisp.org>
22838
22839         Tests for module 'floor'.
22840         * modules/floor-tests: New file.
22841         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22842         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22843
22844 2010-12-21  Bruno Haible  <bruno@clisp.org>
22845
22846         math: Fix indentation.
22847         * lib/math.in.h (floorf): Fix indentation.
22848
22849 2010-12-21  Bruno Haible  <bruno@clisp.org>
22850
22851         Fix cross-compilation guesses on Solaris.
22852         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22853         not match "solaris2.10".
22854         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22855         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22856         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22857
22858 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22859
22860         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22861         This fixes a problem observed with the latest coreutils snapshot
22862         that caused a test to fail on Solaris 8.  src/csplit.c's call
22863         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22864         earlier, instead of returning the number of bytes that would have
22865         been generated; this causes csplit to incorrectly report memory
22866         exhaustion.
22867         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22868         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22869         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22870         comments to match.
22871         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22872         Fix typo in matching older versions of Solaris: "solaris2.10"
22873         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22874         only for guessing while cross-compiling.
22875         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22876
22877 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22878
22879         ftoastr: fix comment again
22880         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22881         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22882         Also, simplify example a bit by using flags = 0.
22883
22884 2010-12-20  Bruno Haible  <bruno@clisp.org>
22885
22886         round*, trunc*: Update documentation regarding glibc.
22887         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22888         * doc/posix-functions/round.texi: Likewise.
22889         * doc/posix-functions/roundl.texi: Likewise.
22890         * doc/posix-functions/truncf.texi: Likewise.
22891         * doc/posix-functions/trunc.texi: Likewise.
22892         * doc/posix-functions/truncl.texi: Likewise.
22893
22894 2010-12-20  Bruno Haible  <bruno@clisp.org>
22895
22896         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22897         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22898         * doc/posix-functions/round.texi: Likewise.
22899         * doc/posix-functions/roundl.texi: Likewise.
22900
22901 2010-12-20  Bruno Haible  <bruno@clisp.org>
22902
22903         ttyname_r: Add missing declaration on HP-UX 11.
22904         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22905         HAVE_TTYNAME_R.
22906         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22907         declared. Set HAVE_TTYNAME_R always.
22908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22909         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22910         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22911         HAVE_TTYNAME_R.
22912         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22913
22914 2010-12-20  Bruno Haible  <bruno@clisp.org>
22915
22916         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22917         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22918         * doc/posix-functions/getlogin_r.texi: Likewise.
22919         * tests/test-getlogin.c: Include <errno.h>.
22920         (main): Avoid test failure on HP-UX 11.11.
22921         * tests/test-getlogin_r.c (main): Likewise.
22922
22923 2010-12-20  Bruno Haible  <bruno@clisp.org>
22924
22925         getlogin_r: Add missing declaration on HP-UX 11.
22926         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22927         declared also when it exists as a function.
22928         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22929
22930 2010-12-20  Bruno Haible  <bruno@clisp.org>
22931
22932         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22933         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22934         through wcrtomb.
22935
22936 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22937
22938         ftoastr: fix comment
22939         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22940         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22941
22942 2010-12-19  Bruno Haible  <bruno@clisp.org>
22943
22944         isnan: Ensure it is a macro.
22945         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22946         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22947         Solaris.
22948
22949 2010-12-19  Bruno Haible  <bruno@clisp.org>
22950
22951         ldexpl test: Fix link error on OSF/1 5.1.
22952         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22953
22954 2010-12-19  Bruno Haible  <bruno@clisp.org>
22955
22956         wctype: Make it work in C++ mode on OSF/1 5.1.
22957         * lib/wctype.in.h (iswblank): Declare but not define here.
22958         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22959         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22960         * modules/wctype (Files): Add lib/iswblank.c.
22961
22962 2010-12-19  Bruno Haible  <bruno@clisp.org>
22963
22964         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22965         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22966         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22967
22968 2010-12-19  Bruno Haible  <bruno@clisp.org>
22969
22970         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22971         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22972         _POSIX_PII_SOCKET.
22973         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22974         * doc/posix-functions/recvfrom.texi: Likewise.
22975         * doc/posix-functions/send.texi: Likewise.
22976         * doc/posix-functions/sendto.texi: Likewise.
22977
22978 2010-12-19  Bruno Haible  <bruno@clisp.org>
22979
22980         tcgetsid: Add missing declaration on OSF/1 5.1.
22981         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22982         HAVE_TCGETSID.
22983         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22984         Don't set HAVE_TCGETSID.
22985         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22986         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22987         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22988         HAVE_TCGETSID.
22989         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22990
22991 2010-12-19  Bruno Haible  <bruno@clisp.org>
22992
22993         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22994         * lib/stdio.in.h: During the include_next statement, let recursive
22995         includes of this file include only the system header file.
22996
22997 2010-12-19  Bruno Haible  <bruno@clisp.org>
22998
22999         iconv_open: Fix regression from 2010-12-04.
23000         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23001         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23002
23003 2010-12-19  Bruno Haible  <bruno@clisp.org>
23004
23005         stdbool test: Avoid a gcc warning.
23006         * tests/test-stdbool.c (main): Fail if e1 is false.
23007         Reported by Jim Meyering.
23008
23009 2010-12-19  Jim Meyering  <meyering@redhat.com>
23010
23011         setenv: restore to working order
23012         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23013         mistakenly removed.
23014         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23015         HAVE_SETENV.
23016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23017         HAVE_SETENV.
23018
23019 2010-12-19  Bruno Haible  <bruno@clisp.org>
23020
23021         Document some different function declarations on OSF/1 5.1.
23022         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23023         * doc/posix-functions/inet_ntop.texi: Likewise.
23024         * doc/posix-functions/gethostname.texi: Likewise.
23025         * lib/unistd.in.h (gethostname): Update comment.
23026
23027 2010-12-19  Bruno Haible  <bruno@clisp.org>
23028
23029         doc: Mention vasprintf-posix module.
23030         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23031         the 'vasprintf-posix' module.
23032         * doc/glibc-functions/vasprintf.texi: Likewise.
23033
23034 2010-12-19  Bruno Haible  <bruno@clisp.org>
23035
23036         unsetenv: Add missing declaration on OSF/1 5.1.
23037         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23039         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23041         not HAVE_UNSETENV.
23042         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23043         HAVE_UNSETENV.
23044         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23045
23046 2010-12-19  Bruno Haible  <bruno@clisp.org>
23047
23048         setenv: Add missing declaration on OSF/1 5.1.
23049         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23051         declared. Don't set HAVE_SETENV.
23052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23053         not HAVE_SETENV.
23054         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23055         HAVE_SETENV.
23056         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23057
23058 2010-12-19  Bruno Haible  <bruno@clisp.org>
23059
23060         nl_langinfo tests: Avoid gcc warning.
23061         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23062
23063 2010-12-19  Bruno Haible  <bruno@clisp.org>
23064
23065         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23066         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23067         _GL_CXXALIAS_SYS.
23068
23069 2010-12-19  Bruno Haible  <bruno@clisp.org>
23070
23071         stdbool: Relax test.
23072         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23073         address to 'bool' work in static initializer, for compilers other than
23074         GCC.
23075
23076 2010-12-19  Bruno Haible  <bruno@clisp.org>
23077
23078         ftello: Add missing declaration on OSF/1 5.1.
23079         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23080         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23082         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23083         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23084
23085 2010-12-19  Bruno Haible  <bruno@clisp.org>
23086
23087         fseeko: Add missing declaration on OSF/1 5.1.
23088         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23089         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23091         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23092         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23093
23094 2010-12-19  Bruno Haible  <bruno@clisp.org>
23095
23096         fchdir: Add missing declaration on OSF/1 5.1.
23097         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23100         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23101         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23102
23103 2010-12-19  Bruno Haible  <bruno@clisp.org>
23104
23105         relocatable-prog-wrapper: Separate from relocatable-prog.
23106         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23107         uninstall-relocwrapper rule here.
23108         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23109         Reported by Ian Beckwith <ianb@erislabs.net>.
23110
23111 2010-12-19  Bruno Haible  <bruno@clisp.org>
23112
23113         unistr/u8-mbsnlen: Add missing dependency.
23114         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23115         Reported by Ian Beckwith <ianb@erislabs.net>.
23116
23117 2010-12-19  Bruno Haible  <bruno@clisp.org>
23118
23119         iconv: Make it possible again to use this module without 'iconv-h'.
23120         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23121         if it is not defined.
23122         Reported by Ian Beckwith <ianb@erislabs.net>.
23123
23124 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23125
23126         acl: port to Solaris 8 when copying from tmpfs to ufs
23127         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23128         error number.  Problem observed on Solaris 8 with latest
23129         coreutils, with "mv A B", where A is on a tmpfs file system and B
23130         is on a ufs file system.  This caused coreutils' mv/part-symlink
23131         test to fail.
23132
23133         tests: set fail=0 at start
23134         * tests/init.sh (setup_): Move fail=0 initialization here ...
23135         (mktempd_): ... from here, so that tests can rely on fail being
23136         set to 0 initially.  This fixes a problem in coreutils; see:
23137         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23138
23139 2010-12-18  Bruno Haible  <bruno@clisp.org>
23140
23141         memmem-simple: Stylistic changes.
23142         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23143         Fix preprocessor directive indentation.
23144
23145 2010-12-15  Pádraig Brady <P@draigBrady.com>
23146
23147         memmem, memmem-simple: reorganize and expand empty needle check
23148         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23149         functional checks to memmem-simple so that one has a fully functional
23150         memmem by using just this module.
23151         Restrict the performance only check to the memmem module.
23152         Also expand the empty needle check to ensure the correct
23153         pointer is returned, not just a non NULL pointer.
23154         * doc/glibc-functions/memmem.texi: Rearrange the portability
23155         documentation to correlate with the rearranged checks.
23156         Clarify exactly how the memmem and memmem-simple modules
23157         relate to each other.
23158
23159 2010-12-15  Pádraig Brady <P@draigBrady.com>
23160             Bruno Haible  <bruno@clisp.org>
23161
23162         Improve cross-compilation guesses for uClibc.
23163         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23164         that uClibc does not have the glibc bug.
23165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23166         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23167
23168 2010-12-14  Eric Blake  <eblake@redhat.com>
23169
23170         configmake: provide fallbacks for oldest supported autotools
23171         * m4/configmake.m4: New file.
23172         * modules/configmake (Files): Ship it.
23173         (configure.ac): Use it to guarantee fallbacks.
23174
23175 2010-12-13  Pádraig Brady <P@draigBrady.com>
23176
23177         read-file: Improve handling of large files
23178         * lib/read-file.c (fread_file): Minimize realloc()s
23179         for regular files, and better manage sizes around SIZE_MAX.
23180
23181 2010-12-13  Eric Blake  <eblake@redhat.com>
23182
23183         cloexec, fcntl: relax license
23184         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23185         consent from all contributors.
23186         * modules/fcntl (License): Likewise.
23187
23188 2010-12-10  Bruno Haible  <bruno@clisp.org>
23189
23190         Tests for module 'pipe-posix'.
23191         * modules/pipe-posix-tests: New file.
23192         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23193
23194 2010-12-10  Bruno Haible  <bruno@clisp.org>
23195
23196         pipe-posix: Make it work in C++ mode.
23197         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23198         (pipe): Use common idiom, not a macro definition.
23199         * lib/pipe.c: New file.
23200         * m4/pipe.m4: New file.
23201         * modules/pipe-posix (Description): Enhance.
23202         (Files): Add lib/pipe.c, m4/pipe.m4.
23203         (configure.ac): Invoke gl_FUNC_PIPE.
23204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23205         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23206         * tests/test-unistd-c++.cc: Check the signature of pipe.
23207
23208 2010-12-10  Bruno Haible  <bruno@clisp.org>
23209
23210         Rename module 'pipe' to 'spawn-pipe'.
23211         * modules/spawn-pipe: New file, renamed from modules/pipe.
23212         (Files, configure.ac, Makefile.am): Update.
23213         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23214         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23215         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23216         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23217         "spawn-pipe.h" instead of "pipe.h".
23218         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23219         to gl_SPAWN_PIPE.
23220         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23221         (Files, Makefile.am): Update.
23222         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23223         Update.
23224         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23225         Include "spawn-pipe.h" instead of "pipe.h".
23226         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23227         * lib/javacomp.c: Likewise.
23228         * lib/javaversion.c: Likewise.
23229         * lib/pipe-filter-gi.c: Likewise.
23230         * lib/pipe-filter-ii.c: Likewise.
23231         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23232         * modules/javacomp (Depends-on): Likewise.
23233         * modules/javaversion (Depends-on): Likewise.
23234         * modules/pipe-filter-gi (Depends-on): Likewise.
23235         * modules/pipe-filter-ii (Depends-on): Likewise.
23236         * MODULES.html.sh (Executing programs): Update.
23237         * NEWS: Mention the change.
23238
23239 2010-12-10  Eric Blake  <eblake@redhat.com>
23240
23241         pipe-posix: new module
23242         * modules/pipe-posix: New file.
23243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23244         (gl_UNISTD_H): Check for declaration.
23245         * modules/unistd (Makefile.am): Substitute it.
23246         * lib/unistd.in.h (pipe): Provide it for mingw.
23247         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23248         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23249
23250 2010-12-07  Bruno Haible  <bruno@clisp.org>
23251
23252         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23253         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23254         u8_strcmp_gnu.
23255         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23256
23257 2010-12-06  Bruno Haible  <bruno@clisp.org>
23258
23259         Update internal documentation.
23260         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23261
23262 2010-12-04  Bruno Haible  <bruno@clisp.org>
23263
23264         Put more information about failed tests into the test return codes.
23265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23266         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23268         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23269         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23270         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23271         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23272         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23273         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23275         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23276         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23277         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23278         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23279         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23280         returns a bit mask.
23281         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23282         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23283         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23284         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23285         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23286         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23289         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23290         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23291         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23292         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23293         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23295         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23296         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23297         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23298         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23299         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23300         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23301         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23302         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23304         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23305         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23306         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23307         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23308         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23309         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23310         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23311         gl_PRINTF_PRECISION): Likewise.
23312         * m4/regex.m4 (gl_REGEX): Likewise.
23313         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23314         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23316         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23318         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23319         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23320         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23321         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23322         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23323         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23324         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23326         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23327         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23328         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23329         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23330         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23333         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23334         enumerated value.
23335         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23336
23337 2010-12-04  Bruno Haible  <bruno@clisp.org>
23338
23339         Update for Solaris 11 2010-11.
23340         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23341         Express, released in November 2010.
23342
23343 2010-12-04  Bruno Haible  <bruno@clisp.org>
23344
23345         nproc: Relax license.
23346         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23347         and Paul Eggert.
23348         Requested by Ludovic Courtès <ludo@gnu.org>.
23349
23350 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23351
23352         utimecmp: fine-grained src to nearby coarse-grained dest
23353
23354         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23355         and the source is on a file system with higher-resolution time
23356         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23357         not work, and the time stamps are close together, the algorithm to
23358         determine the exact resolution from the read-back mtime was buggy:
23359         it had a "!=" where it should have had an "==".  This bug has been
23360         in the code ever since it was introduced to gnulib.
23361         Problem reported by Dan Jacobson in
23362         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23363
23364 2010-11-30  Bruno Haible  <bruno@clisp.org>
23365
23366         strerror_r-posix: Fix autoconf test.
23367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23368
23369 2010-11-28  Bruno Haible  <bruno@clisp.org>
23370             Paul Eggert  <eggert@cs.ucla.edu>
23371
23372         Tests for module 'getdomainname'.
23373         * modules/getdomainname-tests: New file.
23374         * tests/test-getdomainname.c: New file, based on
23375         tests/test-gethostname.c.
23376
23377 2010-11-28  Bruno Haible  <bruno@clisp.org>
23378             Paul Eggert  <eggert@cs.ucla.edu>
23379
23380         getdomainname: Use the system function when possible.
23381         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23382         (getdomainname): Replace if needed. Provide the declaration if it is
23383         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23384         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23385         (getdomainname): When the system has getdomainname, call the system
23386         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23387         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23388         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23389         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23390         the function if its second argument is of type 'int' or if it is found
23391         in libnsl.
23392         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23393         <sys/systeminfo.h> and sysinfo().
23394         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23396         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23397         HAVE_GETDOMAINNAME.
23398         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23399         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23400         * doc/glibc-functions/getdomainname.texi: Document the problems with
23401         the getdomainname declaration.
23402
23403 2010-11-28  Bruno Haible  <bruno@clisp.org>
23404
23405         sys_socket: Ensure ss_family field on AIX.
23406         * lib/sys_socket.in.h (ss_family): New macro definition.
23407         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23408         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23409         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23410         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23411         * modules/sys_socket (Makefile.am): Substitute
23412         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23413         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23414
23415 2010-11-27  Bruno Haible  <bruno@clisp.org>
23416
23417         readline: Improve configure output.
23418         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23419         "checking for readline..." result understandable.
23420
23421 2010-11-27  Bruno Haible  <bruno@clisp.org>
23422
23423         *printf-posix: Detect a bug on Solaris 10/x86.
23424         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23425         for floating-point output.
23426         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23427         directive.
23428         * tests/test-snprintf-posix.h (test_function): Likewise.
23429         * tests/test-sprintf-posix.h (test_function): Likewise.
23430         * tests/test-vasprintf-posix.c (test_function): Likewise.
23431         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23432         * doc/posix-functions/printf.texi: Likewise.
23433         * doc/posix-functions/snprintf.texi: Likewise.
23434         * doc/posix-functions/sprintf.texi: Likewise.
23435         * doc/posix-functions/vfprintf.texi: Likewise.
23436         * doc/posix-functions/vprintf.texi: Likewise.
23437         * doc/posix-functions/vsnprintf.texi: Likewise.
23438         * doc/posix-functions/vsprintf.texi: Likewise.
23439         * doc/glibc-functions/obstack_printf.texi: Likewise.
23440         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23441
23442 2010-11-27  Bruno Haible  <bruno@clisp.org>
23443
23444         Fix link error when module libunistring-optional is in use.
23445         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23446         * modules/striconveha-tests (Makefile.am): Likewise.
23447
23448 2010-11-27  Bruno Haible  <bruno@clisp.org>
23449
23450         regex: Mention link dependencies.
23451         * modules/regex (Link): New section.
23452         * modules/rpmatch (Link): Likewise.
23453         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23454
23455 2010-11-27  Bruno Haible  <bruno@clisp.org>
23456
23457         ftoastr: Fix compilation error on Solaris.
23458         * lib/ftoastr.c: Include <config.h>.
23459
23460 2010-11-27  Bruno Haible  <bruno@clisp.org>
23461
23462         getloadavg: Update documentation.
23463         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23464
23465 2010-11-27  Bruno Haible  <bruno@clisp.org>
23466
23467         sys_socket: Fix test whether the functions are declared.
23468         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23469         not <sys/select.h>.
23470
23471 2010-11-27  Bruno Haible  <bruno@clisp.org>
23472
23473         getpass: Make sure to get system declaration on some platforms.
23474         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23475         gl_USE_SYSTEM_EXTENSIONS.
23476         * modules/getpass (Depends-on): Add extensions.
23477
23478 2010-11-26  Bruno Haible  <bruno@clisp.org>
23479
23480         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23481         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23482         'iconv' module is present.
23483         (ICONV_CONST): New macro.
23484         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23485         ICONV_CONST.
23486         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23487         set ICONV_CONST.
23488         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23489         here.
23490         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23491         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23492         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23493         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23494         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23495         present.
23496
23497 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23498
23499         ftoastr: comment fix
23500         * lib/ftoastr.c: "little" -> "little or no" in comment
23501
23502 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23503
23504         stdint: port to GCC 4.3 + OSX + Octave
23505         On this platform, stdint.h is buggy and defines int64_t to long
23506         long int.  The replacement defined it to long int, causing
23507         problems with C++ style name mangling.  Instead, trust the system
23508         definition if INT64_MAX is defined, and likewise for the unsigned
23509         variant.   Problem reported by Jarno Rajahalme in
23510         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23511         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23512         and don't mess with int64_t and INT64_MAX in this case.
23513         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23514
23515 2010-11-24  Bruno Haible  <bruno@clisp.org>
23516
23517         doc: Corrections regarding MacOS X 10.4 and 10.5.
23518         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23519         MacOS X.
23520         Reported by Simon Josefsson.
23521
23522 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23523
23524         Uninstall ".bin" files installed by relocwrapper.
23525         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23526         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23527         unless it is already there.
23528
23529 2010-11-21  Bruno Haible  <bruno@clisp.org>
23530
23531         Update for NetBSD 5.0.
23532         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23533         NetBSD; the test fails on NetBSD 5.0.
23534         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23535         about NetBSD.
23536
23537 2010-11-21  Bruno Haible  <bruno@clisp.org>
23538
23539         Update for HP-UX 11.23 and HP-UX 11.31.
23540         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23541         HP-UX.
23542
23543 2010-11-21  Bruno Haible  <bruno@clisp.org>
23544
23545         Update for MacOS X 10.5.
23546         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23547         MacOS X; the test fails on MacOS X 10.5.8.
23548         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23549         about MacOS X.
23550
23551 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23552
23553         bootstrap: add bootstrap_sync option.
23554         See discussion at
23555         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23557         * build-aux/bootstrap: Accept --bootstrap-sync to update
23558         bootstrap if it is not identical to the local gnulib's
23559         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23560         enable this by default.  Accept --no-bootstrap-sync to disable
23561         it.
23562
23563 2010-11-20  Bruno Haible  <bruno@clisp.org>
23564
23565         Ensure that <features.h> is included before __GLIBC__ is tested.
23566         * lib/printf-parse.h: Include <features.h>.
23567         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23568         Reported by Mike Frysinger <vapier@gentoo.org>.
23569
23570         Ensure that <features.h> is included before __GLIBC__ is tested.
23571         * lib/wchar.in.h: Include <features.h>.
23572         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23573         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23574         Reported by Mike Frysinger <vapier@gentoo.org>.
23575
23576         Ensure that <features.h> is included before __GLIBC__ is tested.
23577         * lib/arpa_inet.in.h: Include <features.h>.
23578         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23579         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23580         Reported by Mike Frysinger <vapier@gentoo.org>.
23581
23582         Ensure that <features.h> is included before __GLIBC__ is tested.
23583         * build-aux/link-warning.h: Include <features.h>.
23584         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23585         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23586         Reported by Mike Frysinger <vapier@gentoo.org>.
23587
23588         Ensure that <features.h> is included before __GLIBC__ is tested.
23589         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23590         Reported by Mike Frysinger <vapier@gentoo.org>.
23591
23592 2010-11-20  Bruno Haible  <bruno@clisp.org>
23593
23594         memmem: Fix autoconf test.
23595         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23596
23597 2010-11-20  Bruno Haible  <bruno@clisp.org>
23598
23599         Port to uClibc.
23600         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23601         * lib/fcntl.in.h: Likewise.
23602         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23603         * lib/mbrtowc.c (mbrtowc): Likewise.
23604         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23605         * lib/strerror_r.c: Likewise.
23606         * lib/unistr/u8-strnlen.c: Likewise.
23607         * lib/vasnprintf.c (decimal_point_char): Likewise.
23608         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23609         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23610         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23611         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23612         * tests/test-sigaction.c (handler, main): Likewise.
23613         * lib/freading.h: Treat uClibc like a non-glibc platform.
23614         * lib/freading.c: Likewise.
23615         * lib/gettext.h: Likewise.
23616         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23617         Likewise.
23618         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23619         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23620         * lib/propername.c (proper_name_utf8): Likewise.
23621         * lib/spawn.in.h: Likewise.
23622         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23623         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23624         mem_cd_iconveh_internal): Likewise.
23625         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23626         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23627         strstr, strcasestr): Likewise.
23628         * lib/unicodeio.c (unicode_to_mb): Likewise.
23629         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23630         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23631         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23632         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23633         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23634         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23635         * lib/unistr/u8-stpncpy.c: Likewise.
23636         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23637         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23638         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23639         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23640         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23641         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23642         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23645         Likewise.
23646         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23647         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23648         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23649         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23650         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23651         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23652         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23653         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23654         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23655         * tests/test-striconveha.c (main): Likewise.
23656         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23657         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23658         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23659         * doc/posix-functions/getline.texi: Likewise.
23660         Reported by Mike Frysinger <vapier@gentoo.org>.
23661
23662 2010-11-20  Bruno Haible  <bruno@clisp.org>
23663
23664         nproc: Fix condition.
23665         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23666         HAVE_PTHREAD_AFFINITY_NP.
23667
23668 2010-11-20  Bruno Haible  <bruno@clisp.org>
23669
23670         Fix a comment.
23671         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23672
23673 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23674
23675         ftoastr: don't assume snprintf
23676         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23677         Implement a subset of snprintf here, by using sprintf safely.
23678         * modules/ftoastr (Depends-on): Remove snprintf.
23679
23680 2010-11-19  Jim Meyering  <meyering@redhat.com>
23681
23682         test-rename.h: fix compilation failure
23683         * tests/test-rename.h (test_rename): Add omitted "}".
23684
23685 2010-11-17  Jim Meyering  <meyering@redhat.com>
23686
23687         maint.mk: add a URL discussing the no-@acronym policy
23688         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23689
23690 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23691
23692         ftoastr: depend on snprintf, improve comments
23693         * lib/ftoastr.c: Also mention Loitsch's draft.
23694         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23695         needed in the current implementation, but it might simplify
23696         speeding up the code later.
23697         * modules/ftoastr: Depend on snprintf; this improves portability.
23698         Suggested by Bruno Haible in the same email.
23699
23700         ftoastr: port to hosts lacking strtof and strtold
23701         Problem reported by Bruno Haible in
23702         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23703         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23704         environment and strtold (and presumably strtof) are not available.
23705         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23706         (configure.ac): Require gl_C99_STRTOLD.
23707
23708 2010-11-18  Bruno Haible  <bruno@clisp.org>
23709
23710         c-strtold: Avoid link error on AIX 7.
23711         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23712         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23713         (gl_C_STRTOLD): Test whether strtold_l exists.
23714         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23715
23716 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23717
23718         intprops: new macro INT_BITS_STRLEN_BOUND
23719         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23720         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23721         not exposed.  Also, it uses a slightly tighter bound than before;
23722         though this makes no practical difference, we might as well be as
23723         tight as we easily can.
23724
23725         ftoastr: new module, for lossless conversion of floats to short strings
23726         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23727         * modules/ftoastr: New files.
23728
23729 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23730
23731         bootstrap: port to Solaris sed
23732         * build-aux/bootstrap (get_version): Port to Solaris sed.
23733         See Ralf Wildenhues's note in
23734         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23735
23736 2010-11-14  Jim Meyering  <meyering@redhat.com>
23737
23738         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23739         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23740         and move definition closer to sole use.
23741
23742 2010-11-13  Jim Meyering  <meyering@redhat.com>
23743
23744         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23745         Now we require at least autoconf-2.59, which means the work-around
23746         is no longer needed.
23747         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23750         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23751         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23752
23753 2010-11-13  Bruno Haible  <bruno@clisp.org>
23754
23755         rename, renameat: Avoid test failures at NFS mounted locations.
23756         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23757         functions.
23758         (test_rename): Use assert_nonexistent.
23759         * tests/test-rename.c: Include <dirent.h>.
23760         * tests/test-renameat.c: Likewise.
23761         Reported by Gary V. Vaughan <gary@gnu.org>.
23762
23763         rename, renameat: Document Linux bug with NFS
23764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23765         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23766         * doc/posix-functions/renameat.texi: Likewise.
23767         Suggested by Eric Blake.
23768
23769 2010-11-13  Bruno Haible  <bruno@clisp.org>
23770
23771         rename test: Add comments.
23772         * tests/test-rename.h (test_rename): Add structure and comments.
23773
23774 2010-11-13  Eric Blake  <eblake@redhat.com>
23775
23776         maintainer-makefile: cover a few more files
23777         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23778         scripts generated within C files, for libvirt.
23779
23780 2010-11-13  Bruno Haible  <bruno@clisp.org>
23781
23782         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23783         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23784         character, return the number of bytes that belong together, not always
23785         1.
23786         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23787         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23788         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23789         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23790         number of bytes of an invalid character.
23791         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23792         (main): Invoke it.
23793         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23794         results.
23795         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23796         malformed byte sequences.
23797         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23798         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23799         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23800         Reported by Ben Pfaff and Paolo Bonzini.
23801
23802 2010-11-13  Bruno Haible  <bruno@clisp.org>
23803
23804         openat: Work around glibc bug with fchownat() and empty file names.
23805         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23806         (gl_FUNC_FCHOWNAT): Invoke it.
23807         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23808         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23809         Reported by Gary V. Vaughan <gary@gnu.org>.
23810
23811 2010-11-13  Bruno Haible  <bruno@clisp.org>
23812
23813         openat: Ensure autoconf macro ordering.
23814         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23815         gl_USE_SYSTEM_EXTENSIONS.
23816         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23817
23818 2010-11-13  Bruno Haible  <bruno@clisp.org>
23819
23820         Update comments.
23821         * lib/unistr/u8-check.c: Update file name in comments.
23822         * lib/unistr/u8-mblen.c: Likewise.
23823         * lib/unistr/u8-prev.c: Likewise.
23824         * lib/unistr/u8-strmblen.c: Likewise.
23825         * lib/unistr/u8-strmbtouc.c: Likewise.
23826
23827 2010-11-13  Jim Meyering  <meyering@redhat.com>
23828
23829         tests: avoid test failure on Solaris 10 due to lack of PATH export
23830         * tests/test-update-copyright.sh: Don't forget to export PATH.
23831
23832         init.sh: ensure that IFS is defined, just in case...
23833         * tests/init.sh (setup_): Ensure that IFS is defined,
23834         so that saving and restoring it works as expected.  This
23835         appears to be useful at least for an old version of dash
23836         from a long time ago (RH 6).  See here for details:
23837         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23838
23839         maint.mk: tighten "test a == b" check
23840         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23841         test to files that contain something like #!/bin/sh.
23842         Without this, coreutils would get two false positives in
23843         the comments of C source files.
23844
23845 2010-11-12  Eric Blake  <eblake@redhat.com>
23846
23847         bootstrap: fix typo in previous attempt
23848         * build-aux/bootstrap (buildreq): Correct the grouping.
23849         Reported by Paul Eggert.
23850
23851         maintainer-makefile: prohibit test x == x
23852         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23853         Based on a report by Matthias Bolte.
23854
23855         bootstrap: allow FreeBSD gzip
23856         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23857         which has no '.' and goes to stderr.
23858         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23859         Reported by Matthias Bolte.
23860
23861         maintainer-makefile: check for i18n setup
23862         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23863         will likely work.
23864
23865 2010-11-12  Bruno Haible  <bruno@clisp.org>
23866
23867         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23868         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23869         * lib/nanosleep.c (nanosleep): Likewise.
23870
23871 2010-11-11  Bruno Haible  <bruno@clisp.org>
23872
23873         fcntl-h: Fix for use of C++ on glibc systems.
23874         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23875         also on glibc systems in C++ mode.
23876         Reported by Gary V. Vaughan <gary@gnu.org>.
23877
23878 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23879
23880         mknod: avoid false failure with dash
23881         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23882
23883 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         unlink: Fix "is it should" typo in diagnostic.
23886         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23888
23889 2010-11-11  Bruno Haible  <bruno@clisp.org>
23890
23891         Tests for module 'strerror_r-posix'.
23892         * modules/strerror_r-posix-tests: New file.
23893         * tests/test-strerror_r.c: New file.
23894         * tests/test-string-c++.cc: Check the signature of strerror_r.
23895
23896         New module 'strerror_r-posix'.
23897         * lib/string.in.h (strerror_r): New declaration.
23898         * lib/strerror_r.c: New file.
23899         * m4/strerror_r.m4: New file.
23900         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23901         of strerror_r.
23902         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23903         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23904         * modules/strerror_r-posix: New file.
23905         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23906         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23907         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23908         portability problems.
23909
23910 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23911
23912         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23913         line is also considered for output. Quoted function name in shell
23914         command, so temporary files for functions like MyClass::operator()
23915         are removed correctly without errors.
23916
23917 2010-11-09  Bruno Haible  <bruno@clisp.org>
23918
23919         * doc/posix-functions/strerror.texi: List more failing platforms.
23920
23921         * doc/posix-functions/strerror.texi: Add a comment.
23922
23923 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23924
23925         fdopendir: fix bug on MacOS X when low on file descriptors
23926
23927         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23928         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23929         All callers changed.
23930         (fdopendir): Invoke save_cwd at the top level, not after using
23931         multiple dup() calls to use up file descriptors.  Then retry
23932         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23933         less than the maximum number of open file descriptors, because
23934         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23935         on Mac OS X 10.6.4 for tar 1.24
23936         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23937         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23938         and for tar 1.25
23939         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23940
23941 2010-11-07  Bruno Haible  <bruno@clisp.org>
23942
23943         vasnprintf: Support I flag on glibc systems.
23944         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23945         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23946         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23947         snprintf function.
23948         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23949         glibc systems.
23950         * tests/test-vasnprintf-posix3.c: New file.
23951         * modules/vasnprintf-posix-tests (Files): Add it.
23952         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23953
23954 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23955
23956         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23957         * MODULES.html.sh: For compiler warnings, use name
23958         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23959
23960 2010-11-05  Eric Blake  <eblake@redhat.com>
23961
23962         ceil, floor: avoid spurious failure with icc
23963         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23964         [denormals-as-zero] when optimizing without -mieee-fp option.
23965         * tests/test-floorf2.c (floorf_reference): Likewise.
23966         * tests/test-ceilf1.c (dummy): New function.
23967         (main): Use it to outsmart icc's optimization.
23968         * tests/test-floorf1.c (dummy, main): Likewise.
23969
23970         tests: require working signbit
23971         * modules/ceilf-tests (Depends-on): Add signbit.
23972         * modules/ceill-tests (Depends-on): Likewise.
23973         * modules/floorf-tests (Depends-on): Likewise.
23974         * modules/floorl-tests (Depends-on): Likewise.
23975         * modules/round-tests (Depends-on): Likewise.
23976         * modules/roundf-tests (Depends-on): Likewise.
23977         * modules/roundl-tests (Depends-on): Likewise.
23978         * modules/trunc-tests (Depends-on): Likewise.
23979         * modules/truncf-tests (Depends-on): Likewise.
23980         * modules/truncl-tests (Depends-on): Likewise.
23981
23982         strtod: work around icc bug
23983         * lib/strtod.c (minus_zero): Define to working value.
23984         (strtod): Use it to avoid icc bug.
23985
23986         copysign: enhance tests
23987         * modules/copysign-tests (Files): Add minus-zero.h.
23988         * tests/test-copysign.c (main): Also test zeros.
23989
23990 2010-11-04  Eric Blake  <eblake@redhat.com>
23991
23992         ceil, floor, round, trunc: enhance tests of -0
23993         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23994         * tests/test-ceill.c (main): Likewise.
23995         * tests/test-floorf1.c (main): Likewise.
23996         * tests/test-floorl.c (main): Likewise.
23997         * tests/test-round1.c (main): Likewise.
23998         * tests/test-roundf1.c (main): Likewise.
23999         * tests/test-roundl.c (main): Likewise.
24000         * tests/test-trunc1.c (main): Likewise.
24001         * tests/test-truncf1.c (main): Likewise.
24002         * tests/test-truncl.c (main): Likewise.
24003
24004 2010-11-04  Eric Blake  <eblake@redhat.com>
24005
24006         frexp, tests: work around ICC bug with -zero
24007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24008         works with more compilers.
24009         * tests/minus-zero.h: New file.
24010         * modules/ceilf-tests (Files): Include it.
24011         * modules/ceill-tests (Files): Likewise.
24012         * modules/floorf-tests (Files): Likewise.
24013         * modules/floorl-tests (Files): Likewise.
24014         * modules/frexp-nolibm-tests (Files): Likewise.
24015         * modules/frexp-tests (Files): Likewise.
24016         * modules/frexpl-nolibm-tests (Files): Likewise.
24017         * modules/frexpl-tests (Files): Likewise.
24018         * modules/isnan-tests (Files): Likewise.
24019         * modules/isnand-nolibm-tests (Files): Likewise.
24020         * modules/isnand-tests (Files): Likewise.
24021         * modules/isnanf-nolibm-tests (Files): Likewise.
24022         * modules/isnanf-tests (Files): Likewise.
24023         * modules/isnanl-nolibm-tests (Files): Likewise.
24024         * modules/isnanl-tests (Files): Likewise.
24025         * modules/round-tests (Files): Likewise.
24026         * modules/roundf-tests (Files): Likewise.
24027         * modules/roundl-tests (Files): Likewise.
24028         * modules/ldexpl-tests (Files): Likewise.
24029         * modules/signbit-tests (Files): Likewise.
24030         * modules/snprintf-posix-tests (Files): Likewise.
24031         * modules/sprintf-posix-tests (Files): Likewise.
24032         * modules/strtod-tests (Files): Likewise.
24033         * modules/trunc-tests (Files): Likewise.
24034         * modules/truncf-tests (Files): Likewise.
24035         * modules/truncl-tests (Files): Likewise.
24036         * modules/vsnprintf-posix-tests (Files): Likewise.
24037         * modules/vsprintf-posix-tests (Files): Likewise.
24038         * modules/vasnprintf-posix-tests (Files): Likewise.
24039         * modules/vasprintf-posix-tests (Files): Likewise.
24040         * tests/test-ceilf1.c (main): Use it.
24041         * tests/test-ceill.c (main): Likewise.
24042         * tests/test-floorf1.c (main): Likewise.
24043         * tests/test-floorl.c (main): Likewise.
24044         * tests/test-frexp.c (main): Likewise.
24045         * tests/test-frexpl.c (main): Likewise.
24046         * tests/test-isnan.c (main): Likewise.
24047         * tests/test-isnand.h (main): Likewise.
24048         * tests/test-isnanf.h (main): Likewise.
24049         * tests/test-isnanl.h (main): Likewise.
24050         * tests/test-ldexpl.c (main): Likewise.
24051         * tests/test-round.c (main): Likewise.
24052         * tests/test-roundf.c (main): Likewise.
24053         * tests/test-roundl.c (main): Likewise.
24054         * tests/test-signbit.c (test_signbitf, test_signbitd)
24055         (test_signbitl): Likewise.
24056         * tests/test-snprintf-posix.h (test_function): Likewise.
24057         * tests/test-sprintf-posix.h (test_function): Likewise.
24058         * tests/test-strtod.c (main): Likewise.
24059         * tests/test-trunc1.c (main): Likewise.
24060         * tests/test-truncf1.c (main): Likewise.
24061         * tests/test-truncl.c (main): Likewise.
24062
24063         isnanl: work around icc bug
24064         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24065
24066 2010-11-03  Eric Blake  <eblake@redhat.com>
24067
24068         tests: fix compiler warnings
24069         * tests/test-getopt.h (test_getopt): Fix condition.
24070         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24071         * tests/test-pipe2.c (main): Likewise.
24072         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24073
24074         utimens: fix broken m4 test
24075         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24076
24077 2010-10-28  Bruno Haible  <bruno@clisp.org>
24078
24079         posix_spawn*, getdtablesize: Relax license.
24080         * modules/posix_spawn (License): Change to LGPLv2+.
24081         * modules/posix_spawnp (License): Likewise.
24082         * modules/posix_spawn-internal (License): Likewise.
24083         * modules/posix_spawnattr_init (License): Likewise.
24084         * modules/posix_spawnattr_getflags (License): Likewise.
24085         * modules/posix_spawnattr_setflags (License): Likewise.
24086         * modules/posix_spawnattr_getpgroup (License): Likewise.
24087         * modules/posix_spawnattr_setpgroup (License): Likewise.
24088         * modules/posix_spawnattr_getschedparam (License): Likewise.
24089         * modules/posix_spawnattr_setschedparam (License): Likewise.
24090         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24091         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24092         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24093         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24094         * modules/posix_spawnattr_getsigmask (License): Likewise.
24095         * modules/posix_spawnattr_setsigmask (License): Likewise.
24096         * modules/posix_spawnattr_destroy (License): Likewise.
24097         * modules/posix_spawn_file_actions_init (License): Likewise.
24098         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24099         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24100         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24101         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24102         * modules/getdtablesize (License): Likewise.
24103         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24104
24105 2010-10-26  Bruno Haible  <bruno@clisp.org>
24106
24107         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24108         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24109         Cygwin and mingw.
24110         Suggested by Eric Blake.
24111
24112 2010-10-26  Bruno Haible  <bruno@clisp.org>
24113
24114         stdio: Work around compilation error due to renameat() on Solaris 10.
24115         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24116         * lib/renameat.c: Don't include <unistd.h> here.
24117         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24118         Reported by Paul Eggert and Eric Blake.
24119
24120 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24121
24122         renameat: port to Solaris 10, which declares renameat in unistd.h
24123
24124         * lib/renameat.c: Include unistd.h before stdio.h, because
24125         Solaris 10 declares renameat in unistd.h.  Problem encountered
24126         when building GNU tar 1.24 on Solaris 10.
24127
24128 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24129
24130         fdopendir: fix C89 compilation
24131         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24132         compilers.
24133
24134 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24135
24136         inttostr: simplify by removing unnecessary redundancy
24137         * lib/anytostr.c: Don't include verify.h.
24138         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24139         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24140         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24141         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24142         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24143         Likewise.
24144         * modules/inttostr (Depends-on): Remove 'verify'.
24145
24146 2010-10-23  Bruno Haible  <bruno@clisp.org>
24147
24148         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24149         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24150         Reported by Eric Blake.
24151
24152 2010-10-23  Bruno Haible  <bruno@clisp.org>
24153
24154         Tests: Fix LOCALE_JA on MirBSD 10.
24155         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24156         to an UTF-8 locale.
24157         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24158         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24159         Reported by Eric Blake.
24160
24161 2010-10-21  Bruno Haible  <bruno@clisp.org>
24162
24163         nl_langinfo test: Avoid test failure on NetBSD 5.
24164         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24165         Reported by Eric Blake.
24166
24167 2010-10-21  Eric Blake  <eblake@redhat.com>
24168
24169         c-stack: work around libsigsegv 2.8 bug
24170         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24171         overflow on at least PowerPC64.
24172
24173 2010-10-17  Bruno Haible  <bruno@clisp.org>
24174
24175         userspec: Drop redundant file.
24176         * modules/userspec (Files): Remove lib/inttostr.h.
24177
24178 2010-10-17  Bruno Haible  <bruno@clisp.org>
24179
24180         nl_langinfo tests: Silence some warnings.
24181         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24182         Reported by Jim Meyering.
24183
24184 2010-10-17  Bruno Haible  <bruno@clisp.org>
24185
24186         Make use of GCC's attribute __alloc_size__.
24187         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24188         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24189         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24190         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24191         __alloc_size__.
24192         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24193         Suggested by Jim Meyering.
24194
24195 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24196
24197         bootstrap: anchor .gitignore entries.
24198         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24199         with...
24200         (insert_vc_ignore): ... this new function, which prepends `/' to
24201         all .gitignore entries before passing them to
24202         insert_sorted_if_absent.
24203
24204 2010-10-16  Bruno Haible  <bruno@clisp.org>
24205
24206         nextafter: Fix configure check.
24207         * modules/nextafter (configure.ac): Correct expected prototype.
24208
24209 2010-10-16  Bruno Haible  <bruno@clisp.org>
24210
24211         termios: Update documentation.
24212         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24213
24214 2010-10-16  Bruno Haible  <bruno@clisp.org>
24215
24216         tests: Make them compile with TinyCC.
24217         * tests/test-strstr.c (main): Remove parentheses around array
24218         initializer.
24219
24220 2010-10-15  Eric Blake  <eblake@redhat.com>
24221
24222         ignore-value: make header idempotent
24223         * lib/ignore-value.h: Add double-inclusion guards.
24224         Reported by Stefan Berger.
24225
24226 2010-10-15  Jim Meyering  <meyering@redhat.com>
24227
24228         GNUmakefile: handle "stable" target, not "major"
24229         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24230         lists in maint.mk and announce-gen.  Without this, "make stable"
24231         would fail to ensure that $(VERSION) is up to date.
24232
24233 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24234
24235         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24236         & co.
24237
24238 2010-10-14  Bruno Haible  <bruno@clisp.org>
24239
24240         vasnprintf: Don't set errno to 0.
24241         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24242         block that sets it to 0.
24243         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24244
24245 2010-10-14  Bruno Haible  <bruno@clisp.org>
24246
24247         socketlib: Fix.
24248         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24249         gl_PREREQ_SYS_H_WINSOCK2.
24250         Reported by Ian Beckwith <ianb@erislabs.net>.
24251
24252 2010-10-13  Jim Meyering  <meyering@redhat.com>
24253
24254         test-select-stdin.c: avoid warn_unused_result warnings
24255         * tests/test-select-stdin.c: Include "macros.h".
24256         ASSERT that read and fflush succeed.
24257
24258 2010-10-13  Jim Meyering  <meyering@redhat.com>
24259
24260         git-version-gen: do require git-VC'd files in cwd
24261         * build-aux/git-version-gen: Reject a git version string
24262         if there are no commits associated with the current directory.
24263         This avoids an unlikely false-positive (unrelated dir whose parent
24264         repository also contains a tag matching v*), as pointed out
24265         by Giuseppe Scrivano in
24266         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24267
24268 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         argv-iter: omit nonconforming declaration
24271         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24272         enum arg_iter_err declaration, which doesn't conform to C99.
24273         Solaris 10 cc warns about this.
24274
24275 2010-10-13  Eric Blake  <eblake@redhat.com>
24276
24277         termios: fix compilation on mingw
24278         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24279         (gl_TERMIOS_H): Adjust it on mingw.
24280         * modules/termios (Makefile.am): Substitute new key.
24281         * lib/termios.in.h (includes): Make include_next conditional.
24282         * doc/posix-headers/termios.texi (termios.h): Update
24283         documentation.
24284         Reported by Daniel P. Berrange.
24285
24286 2010-10-13  Jim Meyering  <meyering@redhat.com>
24287
24288         git-version-gen: don't require that .git/ be in the current dir
24289         * build-aux/git-version-gen: Adjust this script so that it works
24290         when run from any working directory beneath the top-level .git/-
24291         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24293
24294         test-select: avoid warn_unused_result warnings
24295         * tests/test-select.c: Include "macros.h".
24296         ASSERT that each call to read, write, and pipe succeeds.
24297         While not technically required, also check each "close".
24298         * modules/select-tests (Files): Add tests/macros.h.
24299
24300         test-symlinkat: remove declaration of unused local
24301         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24302
24303         test-inttostr: avoid shadowing warnings
24304         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24305         and use malloc rather than the stack for the same reason as
24306         mentioned in the comment justifying the other allocation.
24307
24308 2010-10-11  Bruno Haible  <bruno@clisp.org>
24309
24310         stdlib: Allow multiple gnulib generated replacements to coexist.
24311         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24312         Reported by Sam Steingold <sds@gnu.org>.
24313
24314 2010-10-11  Jim Meyering  <meyering@redhat.com>
24315
24316         fix a documentation typo
24317         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24318
24319 2010-10-11  Eric Blake  <eblake@redhat.com>
24320
24321         futimens: work around Solaris 11 bug
24322         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24323         * tests/test-futimens.h (test_futimens): Enhance, rather than
24324         weaken test.
24325         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24326
24327 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24328
24329         Indentation.
24330         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24331         higher-level operators more to the left.
24332
24333 2010-10-11  Jim Meyering  <meyering@redhat.com>
24334
24335         test-futimens: avoid unwarranted test failure on Solaris 5.11
24336         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24337         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24338         because it tries to dereference the NULL name argument.
24339
24340 2010-10-11  Bruno Haible  <bruno@clisp.org>
24341
24342         Indentation.
24343         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24344         indentation.
24345
24346 2010-10-11  Jim Meyering  <meyering@redhat.com>
24347
24348         spawn.in.h: make indentation consistent with parentheses
24349         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24350         Make indentation consistent with parentheses.
24351
24352 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24353
24354         Fix mismatched parens in previous commit
24355         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24356         parens.
24357
24358 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24359
24360         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24361
24362         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24363         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24364         * lib/malloca.c: Include "verify.h".
24365         (verify1): Remove, replacing with a verify call.
24366         * lib/relocwrapper.c (verify1): Likewise.
24367         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24368         Likewise.
24369         * modules/malloca (Depends-on): Add 'verify'.
24370         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24371         * modules/vasnprintf (Depends-on): Add 'verify'.
24372         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24374         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24375         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24377         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24378         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24379
24380         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24381
24382         Formerly the style was sometimes 2*X - 1, because the C standard
24383         was wrongly thought to disallow ?: in integral constant expressions.
24384         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24385         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24386         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24387         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24388         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24389         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24390         verify that time_t cannot be floating.
24391
24392 2010-10-08  Eric Blake  <eblake@redhat.com>
24393
24394         time: enforce recent POSIX ruling that time_t is integral
24395         * lib/time.in.h (__time_t_must_be_integral): Detect any
24396         problematic systems, allowing the rest of gnulib to assume POSIX.
24397
24398 2010-10-08  Jim Meyering  <meyering@redhat.com>
24399
24400         fdopendir: fix a bug on systems lacking openat and /proc support
24401         OpenBSD 4.7 is one such system.  The most noticeable effect was
24402         failure of any application making nontrivial use of fts: rm, du,
24403         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24404           ./rm: traversal failed: `a': Bad file descriptor
24405         Debugging that, you see that even though FD 6 was closed just
24406         prior to the opendir call in fd_clone_opendir, its resulting
24407         dir->dd_fd was 8, rather than the expected value of 6:
24408
24409         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24410         93                close (fd);
24411         (gdb) n
24412         94                dir = fd_clone_opendir (dupfd);
24413         (gdb) n
24414         95                saved_errno = errno;
24415         (gdb) p dir->dd_fd
24416         $11 = 8
24417
24418         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24419         The problem is that on OpenBSD, fd_clone_opendir has to resort
24420         to using the old-style save/restore CWD mechanism, due to its
24421         lack of openat/proc support, and *that* would steal the FD (6)
24422         that opendir was supposed to use.
24423
24424         The fix is to squirrel away the desired FD so that save_cwd uses a
24425         different one, and then free the dest FD right before calling opendir.
24426         That guarantees opendir will use the required file descriptor.
24427
24428         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24429
24430 2010-10-08  Bruno Haible  <bruno@clisp.org>
24431
24432         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24433         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24434
24435 2010-10-08  Bruno Haible  <bruno@clisp.org>
24436
24437         nanosleep: Make replacement POSIX compliant.
24438         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24439         is out of range.
24440         Reported by Jim Meyering.
24441
24442 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24443
24444         bootstrap: add hook for altering gnulib.mk, for Bison
24445         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24446         the Bison bootstrapping process can rewrite file names and variables
24447         in this file before later parts of 'bootstrap' use the file.
24448         Bison wants to include lib/gnulib.mk from the top-level makefile,
24449         so it needs the file names in this file to be relative to the top
24450         level, not relative to lib; plus it needs variable names to be
24451         rewritten.
24452         (slurp): Use the new function.
24453
24454         bootstrap: reformat for readability
24455         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24456
24457 2010-10-08  Eric Blake  <eblake@redhat.com>
24458
24459         docs: update cygwin progress
24460         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24461         1.7.7.
24462         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24463         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24464         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24465         * doc/posix-functions/carg.texi (carg): Likewise.
24466         * doc/posix-functions/cargf.texi (cargf): Likewise.
24467         * doc/posix-functions/casin.texi (casin): Likewise.
24468         * doc/posix-functions/casinf.texi (casinf): Likewise.
24469         * doc/posix-functions/casinh.texi (casinh): Likewise.
24470         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24471         * doc/posix-functions/catan.texi (catan): Likewise.
24472         * doc/posix-functions/catanf.texi (catanf): Likewise.
24473         * doc/posix-functions/catanh.texi (catanh): Likewise.
24474         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24475         * doc/posix-functions/ccos.texi (ccos): Likewise.
24476         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24477         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24478         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24479         * doc/posix-functions/cexp.texi (cexp): Likewise.
24480         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24481         * doc/posix-functions/cimag.texi (cimag): Likewise.
24482         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24483         * doc/posix-functions/clog.texi (clog): Likewise.
24484         * doc/posix-functions/clogf.texi (clogf): Likewise.
24485         * doc/posix-functions/conj.texi (conj): Likewise.
24486         * doc/posix-functions/conjf.texi (conjf): Likewise.
24487         * doc/posix-functions/cpow.texi (cpow): Likewise.
24488         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24489         * doc/posix-functions/cproj.texi (cproj): Likewise.
24490         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24491         * doc/posix-functions/creal.texi (creal): Likewise.
24492         * doc/posix-functions/crealf.texi (crealf): Likewise.
24493         * doc/posix-functions/csin.texi (csin): Likewise.
24494         * doc/posix-functions/csinf.texi (csinf): Likewise.
24495         * doc/posix-functions/csinh.texi (csinh): Likewise.
24496         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24497         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24498         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24499         * doc/posix-functions/ctan.texi (ctan): Likewise.
24500         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24501         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24502         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24503         * doc/posix-headers/complex.texi (complex.h): Likewise.
24504
24505 2010-10-07  Jim Meyering  <meyering@redhat.com>
24506
24507         parse-datetime: avoid compilation failure on OpenBSD 4.7
24508         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24509         This works around a compilation failure on OpenBSD 4.7:
24510         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24511
24512 2010-10-07  Eric Blake  <eblake@redhat.com>
24513
24514         docs: update cygwin progress
24515         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24516         1.7.6.
24517         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24518         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24519         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24520         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24521         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24522         Likewise.
24523         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24524         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24525         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24526         Likewise.
24527         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24528         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24529         Likewise.
24530         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24531         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24532         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24533         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24534         Likewise.
24535         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24536         Likewise.
24537         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24538
24539         docs: update parse-datetime history
24540         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24541         documentation of this function's history and alternatives.
24542
24543         cygwin: use more robust version check
24544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24545         exclude an eventual cygwin 1.9.1.
24546         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24548         (gl_FUNC_STRCASESTR): Likewise.
24549         Reported by Bruno Haible.
24550
24551 2010-10-06  Bruno Haible  <bruno@clisp.org>
24552
24553         string, sys_select: Avoid #including large headers unless necessary.
24554         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24555         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24556         OSF/1, BeOS, Haiku.
24557         Reported by Jim Meyering.
24558
24559 2010-10-05  Eric Blake  <eblake@redhat.com>
24560
24561         memmem, strstr, strcasestr: fix bug with long periodic needle
24562         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24563         periodic needle having false positive.
24564         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24565         and cygwin 1.7.7.
24566         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24568         (gl_FUNC_STRCASESTR): Likewise.
24569         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24570         * tests/test-memmem.c (main): Expose the bug.
24571         * tests/test-strcasestr.c (main): Likewise.
24572         * tests/test-strstr.c (main): Likewise.
24573         * tests/test-c-strcasestr.c (main): Likewise.
24574         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24575         * doc/posix-functions/strstr.texi (strstr): Likewise.
24576         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24577         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24578
24579 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24580
24581         parse-datetime: do some more renaming
24582         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24583         parse_datetime, not get_date.  Mention the renaming.
24584         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24585         in comments.
24586         * m4/bison.m4: Likewise.
24587
24588 2010-10-05  Eric Blake  <eblake@redhat.com>
24589
24590         parse-datetime: better name than get_date
24591         * NEWS: Reword the deprecation notice.
24592         * modules/get_date: Rename to modules/parse-datetime.
24593         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24594         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24595         * lib/get_date.y: Rename to lib/parse-datetime.y.
24596         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24597         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24598         * doc/getdate.texi: Provide fallback wrapper.
24599         * lib/getdate.h: Move guts, and wrap...
24600         * lib/parse-datetime.h: ...new file.
24601         * lib/parse-datetime.y (get_date): Rename...
24602         (parse_datetime): ...to this.
24603         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24604         (gl_PARSE_DATETIME): ...to this.
24605         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24606         documentation.
24607         * modules/getdate (Files): Provide fallback docs and header.
24608         (Notice, Depends-on): Update references.
24609         * tests/test-parse-datetime.c: Likewise.
24610         * DEPENDENCIES: Likewise.
24611         * MODULES.html.sh (Date and time <time.h>): Likewise.
24612         * doc/parse-datetime.texi (Date input formats)
24613         (Authors of parse_datetime): Likewise.
24614         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24615         (Include): Likewise.
24616         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24617         * gnulib-tool: Likewise.
24618         * m4/bison.m4 (gl_BISON): Likewise.
24619         Suggested by Bruno Haible.
24620
24621 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24622
24623         more ports to Solaris tr, which needs [] around ranges
24624         * gnulib-tool: Solaris tr needs [] around ranges.
24625         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24626         * tests/test-pipe-filter-gi1.c (main): Likewise.
24627         * tests/test-pipe-filter-ii1.c (main): Likewise.
24628
24629 2010-10-05  Eric Blake  <eblake@redhat.com>
24630
24631         bootstrap: fix Solaris regression
24632         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24633         around ranges.
24634         Reported by Pádraig Brady.
24635
24636         bootstrap: work with pkg-config
24637         * build-aux/bootstrap (check_versions): Also transliterate - in
24638         prerequisite name.
24639         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24640         prerequisites that were already found, to avoid confusion.
24641         Reported by Justin Clift.
24642
24643         faccessat: remove unused wrappers
24644         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24645         presence of these wrappers dragged in -lgen on Solaris.
24646         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24647
24648 2010-10-05  Jim Meyering  <meyering@redhat.com>
24649
24650         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24651         * Makefile (sc_pragma_columns): New syntax-check rule.
24652
24653 2010-10-04  Bruno Haible  <bruno@clisp.org>
24654
24655         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24656         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24657         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24658         Reported by Bruce Korb and Eric Blake.
24659
24660 2010-10-04  Bruno Haible  <bruno@clisp.org>
24661
24662         threadlib: Make option --with-libpth-prefix work.
24663         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24664         use $LIBPTH, not just -lpth.
24665
24666 2010-10-04  Bruno Haible  <bruno@clisp.org>
24667
24668         Avoid line length limitation from HP NonStop system header files.
24669         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24670         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24671         * lib/ctype.in.h: Likewise.
24672         * lib/dirent.in.h: Likewise.
24673         * lib/errno.in.h: Likewise.
24674         * lib/fcntl.in.h: Likewise.
24675         * lib/float.in.h: Likewise.
24676         * lib/getopt.in.h: Likewise.
24677         * lib/iconv.in.h: Likewise.
24678         * lib/inttypes.in.h: Likewise.
24679         * lib/langinfo.in.h: Likewise.
24680         * lib/locale.in.h: Likewise.
24681         * lib/math.in.h: Likewise.
24682         * lib/netdb.in.h: Likewise.
24683         * lib/netinet_in.in.h: Likewise.
24684         * lib/poll.in.h: Likewise.
24685         * lib/pthread.in.h: Likewise.
24686         * lib/pty.in.h: Likewise.
24687         * lib/sched.in.h: Likewise.
24688         * lib/se-selinux.in.h: Likewise.
24689         * lib/search.in.h: Likewise.
24690         * lib/signal.in.h: Likewise.
24691         * lib/spawn.in.h: Likewise.
24692         * lib/stdarg.in.h: Likewise.
24693         * lib/stddef.in.h: Likewise.
24694         * lib/stdint.in.h: Likewise.
24695         * lib/stdio.in.h: Likewise.
24696         * lib/stdlib.in.h: Likewise.
24697         * lib/string.in.h: Likewise.
24698         * lib/strings.in.h: Likewise.
24699         * lib/sys_file.in.h: Likewise.
24700         * lib/sys_ioctl.in.h: Likewise.
24701         * lib/sys_select.in.h: Likewise.
24702         * lib/sys_socket.in.h: Likewise.
24703         * lib/sys_stat.in.h: Likewise.
24704         * lib/sys_time.in.h: Likewise.
24705         * lib/sys_times.in.h: Likewise.
24706         * lib/sys_utsname.in.h: Likewise.
24707         * lib/sys_wait.in.h: Likewise.
24708         * lib/sysexits.in.h: Likewise.
24709         * lib/termios.in.h: Likewise.
24710         * lib/time.in.h: Likewise.
24711         * lib/unistd.in.h: Likewise.
24712         * lib/wchar.in.h: Likewise.
24713         * lib/wctype.in.h: Likewise.
24714         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24715         * modules/ctype (Makefile.am): Likewise.
24716         * modules/dirent (Makefile.am): Likewise.
24717         * modules/errno (Makefile.am): Likewise.
24718         * modules/fcntl-h (Makefile.am): Likewise.
24719         * modules/float (Makefile.am): Likewise.
24720         * modules/getopt-posix (Makefile.am): Likewise.
24721         * modules/iconv-h (Makefile.am): Likewise.
24722         * modules/inttypes (Makefile.am): Likewise.
24723         * modules/langinfo (Makefile.am): Likewise.
24724         * modules/locale (Makefile.am): Likewise.
24725         * modules/math (Makefile.am): Likewise.
24726         * modules/netdb (Makefile.am): Likewise.
24727         * modules/netinet_in (Makefile.am): Likewise.
24728         * modules/poll-h (Makefile.am): Likewise.
24729         * modules/pthread (Makefile.am): Likewise.
24730         * modules/pty (Makefile.am): Likewise.
24731         * modules/sched (Makefile.am): Likewise.
24732         * modules/search (Makefile.am): Likewise.
24733         * modules/selinux-h (Makefile.am): Likewise.
24734         * modules/signal (Makefile.am): Likewise.
24735         * modules/spawn (Makefile.am): Likewise.
24736         * modules/stdarg (Makefile.am): Likewise.
24737         * modules/stddef (Makefile.am): Likewise.
24738         * modules/stdint (Makefile.am): Likewise.
24739         * modules/stdio (Makefile.am): Likewise.
24740         * modules/stdlib (Makefile.am): Likewise.
24741         * modules/string (Makefile.am): Likewise.
24742         * modules/strings (Makefile.am): Likewise.
24743         * modules/sys_file (Makefile.am): Likewise.
24744         * modules/sys_ioctl (Makefile.am): Likewise.
24745         * modules/sys_select (Makefile.am): Likewise.
24746         * modules/sys_socket (Makefile.am): Likewise.
24747         * modules/sys_stat (Makefile.am): Likewise.
24748         * modules/sys_time (Makefile.am): Likewise.
24749         * modules/sys_times (Makefile.am): Likewise.
24750         * modules/sys_utsname (Makefile.am): Likewise.
24751         * modules/sys_wait (Makefile.am): Likewise.
24752         * modules/sysexits (Makefile.am): Likewise.
24753         * modules/termios (Makefile.am): Likewise.
24754         * modules/time (Makefile.am): Likewise.
24755         * modules/unistd (Makefile.am): Likewise.
24756         * modules/wchar (Makefile.am): Likewise.
24757         * modules/wctype (Makefile.am): Likewise.
24758
24759 2010-10-04  Bruno Haible  <bruno@clisp.org>
24760
24761         read-file tests: Avoid a test failure on NonStop Kernel.
24762         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24763         a regular file.
24764         Reported by Joachim Schmitz <schmitz@hp.com>.
24765
24766 2010-10-03  Bruno Haible  <bruno@clisp.org>
24767
24768         gnulib-tool: Fixes for --create-testdir with --libtool.
24769         * gnulib-tool (func_get_automake_snippet): Don't augment
24770         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24771         an executable.
24772         (func_create_testdir): Handle module 'alloca' like func_import.
24773         Reported by Bruce Korb <bruce.korb@gmail.com>.
24774
24775 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24776
24777         Avoid some lines longer than 80 characters.
24778         * lib/stdint.in.h: Break long comment lines.
24779         * lib/math.in.h: Likewise.
24780         (_GL_NUM_UINT_WORDS): New macro, for readability.
24781         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24782         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24783         * lib/stdlib.in.h: Likewise.
24784         * lib/spawn.in.h: Likewise.
24785         * lib/sys_socket.in.h: Update an URL.
24786         * lib/sys_stat.in.h: Break long line.
24787
24788 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24789
24790         Improve pmccabe2html.
24791         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24792         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24793         when the sources change. Remove the line in the HTML about "Used
24794         ranges" (which implied that there might be other unused ranges),
24795         rename "Resume" to "Summary" (easier to understand for more users).
24796         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24797         styles, and some unnecessary blank lines.
24798
24799 2010-10-03  Bruno Haible  <bruno@clisp.org>
24800             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24801
24802         acl: Add support for ACLs on NonStop Kernel.
24803         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24804         Check whether the function aclsort() exists.
24805         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24806         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24807         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24808         (acl_nontrivial [HAVE_ACLSORT]: New function.
24809         (file_has_acl): Implement for NonStop Kernel.
24810         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24811         (qset_acl): Implement for NonStop Kernel.
24812         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24813         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24814         (main): Implement for NonStop Kernel.
24815         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24816         Kernel. Handle this flavor.
24817         * tests/test-set-mode-acl.sh: Likewise.
24818         * tests/test-copy-acl.sh: Likewise.
24819         * tests/test-copy-file.sh: Likewise.
24820
24821 2010-10-03  Bruno Haible  <bruno@clisp.org>
24822
24823         Info about ACLs on NonStop Kernel.
24824         * doc/acl-resources.txt: Add info about NonStop Kernel.
24825         References by Joachim Schmitz <schmitz@hp.com>.
24826
24827 2010-10-02  Bruno Haible  <bruno@clisp.org>
24828
24829         Define missing EDQUOT on NonStop Kernel.
24830         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24831         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24832         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24833         missing.
24834         * doc/posix-headers/errno.texi: Mention the NSK bug.
24835         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24836         Reported by Joachim Schmitz <schmitz@hp.com>.
24837
24838 2010-10-02  Bruno Haible  <bruno@clisp.org>
24839
24840         Update doc for POSIX:2008.
24841         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24842         Update URL of POSIX specification.
24843
24844 2010-10-02  Bruno Haible  <bruno@clisp.org>
24845
24846         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24847         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24848         from gnulib, not from Automake.
24849
24850 2010-10-02  Bruno Haible  <bruno@clisp.org>
24851
24852         New module 'system-posix'.
24853         * modules/system-posix: New file.
24854         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24855         module is present.
24856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24857         GNULIB_SYSTEM_POSIX.
24858         * modules/stdlib (Depends-on): Remove sys_wait.
24859         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24860         * doc/posix-functions/system.texi: Mention the new module.
24861         * doc/posix-headers/stdlib.texi: Likewise.
24862         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24863         define test_sys_wait_macros to a no-op.
24864         Reported by Sam Steingold <sds@gnu.org>.
24865
24866 2010-09-30  Bruno Haible  <bruno@clisp.org>
24867
24868         More renaming from 'getdate' to 'get_date'.
24869         * doc/get_date.texi: Renamed from doc/getdate.texi.
24870         * modules/get_date (Files): Update.
24871         * MODULES.html.sh (Date and time <time.h>): Update.
24872         * DEPENDENCIES: Update.
24873         * gnulib-tool: Update comment.
24874         * m4/bison.m4 (gl_BISON): Likewise.
24875         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24876
24877 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24878
24879         bootstrap: support ACLOCAL_FLAGS during aclocal
24880         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24881         can add additional -I dir for third-party .m4 files.
24882
24883 2010-09-30  Eric Blake  <eblake@redhat.com>
24884
24885         bootstrap: use glibtoolize on MacOS
24886         * build-aux/bootstrap (check_versions): Convert libtool into
24887         libtoolize.
24888         (tool search): Move libtool check earlier, and look for
24889         glibtoolize for MacOS.
24890         (gnulib_tool_options): Auto-add --libtool when appropriate.
24891         Reported by Justin Clift.
24892
24893         poll: fix typo that broke test on MacOS
24894         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24895         Reported by Justin Clift.
24896
24897         getdate: rename to get_date
24898         Note: getdate.h is not renamed, to minimize client impact.
24899         * modules/getdate: Mark obsolete.  Move old contents...
24900         * modules/get_date: ...to new module name.
24901         * modules/getdate-tests: Move...
24902         * modules/get_date-tests: ...here.
24903         * m4/getdate.m4: Move...
24904         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24905         * lib/getdate.y: Move...
24906         * lib/get_date.y: ...here.
24907         * tests/test-getdate.c: Move...
24908         * tests/test-get_date.c: ...here.
24909         * doc/posix-functions/getdate.texi (getdate): Update name.
24910         * NEWS: Mention the change.
24911
24912 2010-09-29  Bruno Haible  <bruno@clisp.org>
24913
24914         Separate the module 'waitpid' from the module 'sys_wait'.
24915         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24916         present.
24917         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24918         gl_MODULE_INDICATOR_FOR_TESTS.
24919         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24920         * modules/sys_wait (Depends-on): Remove waitpid.
24921         (Makefile.am): Substitute GNULIB_WAITPID.
24922         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24923         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24924         signature only if the 'waitpid' module is present.
24925         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24926         * NEWS: Mention the change.
24927         * modules/grantpt (Depends-on): Add waitpid.
24928         * modules/wait-process (Depends-on): Likewise.
24929
24930 2010-09-29  Bruno Haible  <bruno@clisp.org>
24931
24932         More tests for module 'sys_wait'.
24933         * modules/sys_wait-c++-tests: New file.
24934         * tests/test-sys_wait-c++.cc: New file.
24935         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24936         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24937
24938 2010-09-29  Bruno Haible  <bruno@clisp.org>
24939
24940         New module 'waitpid'.
24941         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24942         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24943         Don't include <process.h>.
24944         (waitpid): Declare only, using modern idiom.
24945         * m4/waitpid.m4: New file.
24946         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24947         * modules/waitpid: New file.
24948         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24949         (Makefile.am): Update.
24950         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24951
24952 2010-09-28  Bruno Haible  <bruno@clisp.org>
24953
24954         poll: Assume ANSI C.
24955         * lib/poll.c (poll): Use an ANSI C declaration.
24956
24957 2010-09-28  Bruno Haible  <bruno@clisp.org>
24958
24959         poll-h: Create poll.h on all platforms.
24960         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24961         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24962         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24963         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24964         (gl_REPLACE_POLL_H): Don't set POLL_H.
24965         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24966         * modules/poll-h (Depends-on): Add include_next.
24967         (Makefile.am): Create poll.h unconditionally. Substitute also
24968         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24969
24970 2010-09-28  Bruno Haible  <bruno@clisp.org>
24971
24972         Tests for module 'poll-h'.
24973         * modules/poll-h-c++-tests: New file.
24974         * tests/test-poll-h-c++.cc: New file.
24975
24976         Tests for module 'poll-h'.
24977         * modules/poll-h-tests: New file.
24978         * tests/test-poll-h.c: New file.
24979
24980 2010-09-28  Bruno Haible  <bruno@clisp.org>
24981
24982         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24983         * modules/poll-h (Depends-on): Add 'extensions'.
24984
24985 2010-09-28  Bruno Haible  <bruno@clisp.org>
24986
24987         New module 'poll-h'.
24988         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24989         (poll): Use modern idiom.
24990         * modules/poll-h: New file.
24991         * modules/poll (Files): Remove lib/poll.in.h.
24992         (Depends-on): Add poll-h.
24993         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24994         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24995         * m4/poll_h.m4: New file.
24996         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24997         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24998         and invoke gl_REPLACE_POLL_H.
24999         * lib/poll.c: Use common idiom.
25000         * tests/test-poll.c: Likewise.
25001         * doc/posix-headers/poll.texi: Mention the poll-h module.
25002         Suggested by Eric Blake.
25003
25004 2010-09-26  Bruno Haible  <bruno@clisp.org>
25005
25006         sys_wait: Implement WSTOPSIG.
25007         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25008         Reported by Simon Josefsson.
25009
25010 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25011
25012         stdlib, sys_wait: Avoid compilation error on mingw.
25013         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25014
25015 2010-09-26  Bruno Haible  <bruno@clisp.org>
25016
25017         stdlib tests: Avoid code duplication.
25018         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25019         * modules/sys_wait-tests (Files): Likewise.
25020         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25021         * tests/test-stdlib.c: Include test-sys_wait.h.
25022         (main): Invoke test_sys_wait_macros.
25023         * tests/test-sys_wait.c: Include test-sys_wait.h.
25024         (main): Invoke test_sys_wait_macros.
25025
25026 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25027
25028         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25029         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25030         sure Windows sockets are working before calling getaddrinfo.
25031         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25032         * doc/gnulib.texi (Windows sockets): Fix typo.
25033
25034 2010-09-25  Bruno Haible  <bruno@clisp.org>
25035
25036         Tests for module 'regex-quote'.
25037         * modules/regex-quote-tests: New file.
25038         * tests/test-regex-quote.c: New file.
25039
25040         New module 'regex-quote'.
25041         * lib/regex-quote.h: New file.
25042         * lib/regex-quote.c: New file.
25043         * modules/regex-quote: New file.
25044         Suggested by Reuben Thomas <rrt@sc3d.org>.
25045
25046 2010-09-24  Bruno Haible  <bruno@clisp.org>
25047
25048         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25049         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25050
25051 2010-09-23  Bruno Haible  <bruno@clisp.org>
25052
25053         setenv: Relax license.
25054         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25055         Blake.
25056         Requested by Eric Blake.
25057
25058 2010-09-22  Bruno Haible  <bruno@clisp.org>
25059
25060         termios: Relax license.
25061         * modules/termios (License): Change to LGPLv2+.
25062         Requested by Eric Blake.
25063
25064 2010-09-22  Bruno Haible  <bruno@clisp.org>
25065
25066         threadlib: Allow the package to change the default to 'no'.
25067         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25068         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25069         Reported by Paul Eggert.
25070
25071 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25072             Bruno Haible  <bruno@clisp.org>
25073
25074         Fix endless loop in mbmemcasecoll.
25075         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25076         byte.
25077         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25078
25079 2010-09-22  Bruno Haible  <bruno@clisp.org>
25080
25081         Tests for module 'memcoll'.
25082         * modules/memcoll-tests: New file.
25083         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25084
25085         memcoll, xmemcoll: Clarify size vs. length.
25086         * modules/memcoll.c (memcoll0): Clarify specification.
25087         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25088         passed to collate_error.
25089
25090 2010-09-22  Bruno Haible  <bruno@clisp.org>
25091
25092         Tests for module 'memcasecmp'.
25093         * modules/memcasecmp-tests: New file.
25094         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25095
25096 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25097
25098         * lib/pthread.in.h: Add split double-inclusion guard, and include
25099         system <pthread.h> if there is one.  Use @@-style as in other
25100         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25101         pthread.h doesn't.
25102         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25103         (pthread_mutexattr_settype, pthread_mutex_trylock):
25104         New static inline functions, if there's no system <pthread.h>.
25105         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25106         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25107         Approximate with mutexes if the system lacks spinlocks, as in
25108         MacOS.
25109         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25110         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25111         @@-style.  Check for spinlocks separately.
25112         (gl_PTHREAD_DEFAULTS): New macro.
25113         * modules/pthread: Redo to use a more typical style for in.h files.
25114
25115 2010-09-21  Eric Blake  <eblake@redhat.com>
25116
25117         net_if: enhance tests
25118         * tests/test-net_if.c (main): Move signature checks earlier.
25119         Print failures to stderr.
25120         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25121         Document the bug that we do not yet fix.
25122
25123 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25124
25125         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25126         about gnulib, not GSS.
25127
25128 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25129
25130         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25131         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25132         for Emacs.
25133         * build-aux/pmccabe2html: Make Makefile.am example code more
25134         cut-and-paste friendly.
25135
25136 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25137
25138         * tests/test-net_if.c: New file.
25139         * modules/net_if-tests: New file.
25140
25141 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25142
25143         pthread: add pthread_spin_destroy
25144         * lib/pthread.in.h (pthread_spin_destroy): New function.
25145
25146 2010-09-19  Bruno Haible  <bruno@clisp.org>
25147
25148         gnulib-tool: Fix --help output.
25149         * gnulib-tool (func_usage): Fix help message.
25150         Reported by Reuben Thomas <rrt@sc3d.org>.
25151
25152 2010-09-18  Jim Meyering  <meyering@redhat.com>
25153
25154         maint.mk: avoid unexpanded \n in two diagnostics
25155         * top/maint.mk (sc_prohibit_always_true_header_tests):
25156         Don't use a literal \n in a halt=... assignment.  It would not be
25157         expanded, and the two \n bytes would appear in the diagnostic output
25158         rather than the desired newline.  Use halt=$$(printf ... instead.
25159         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25160
25161 2010-09-18  Bruno Haible  <bruno@clisp.org>
25162
25163         netinet_in: Doc tweak.
25164         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25165         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25166
25167 2010-09-18  Jim Meyering  <meyering@redhat.com>
25168
25169         init.sh: correct an outdated comment
25170         * tests/init.sh (create_exe_shims_):  s/function/alias/
25171
25172         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25173         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25174         a file named "*.exe" is removed between the glob expansion and the
25175         processing of that oddly named file.
25176
25177 2010-09-17  Eric Blake  <eblake@redhat.com>
25178
25179         mirbsd: add some more support
25180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25181         in BSD family.
25182         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25183         devices as OpenBSD.
25184         * m4/host-os.m4 (mirbsd): Add MirBSD.
25185
25186         tests: fix unportable assumption on sys/wait.h
25187         * tests/test-sys_wait.c (main): Relax test.
25188         * tests/test-stdlib.c (main): Likewise.
25189
25190         init.sh: accomodate directory with no .exes
25191         * tests/init.sh: Accomodate directory containing only scripts.
25192
25193         tests: avoid compiler warning
25194         * tests/test-stdlib.c (main): Use the variable.
25195
25196         fdutimens, fdutimensat: update signature, again
25197         * lib/utimens.h (gl_futimens): Delete, and move signature...
25198         (fdutimens): ...here.
25199         (fdutimensat): Rearrange signature.
25200         (lutimensat): Rename variable for clarity.
25201         * lib/fdutimensat.c (fdutimensat): Update signature.
25202         * lib/utimens.c (fdutimens): Likewise.
25203         (gl_futimens): Delete.
25204         (utimens, lutimens): Update callers.
25205         * lib/futimens.c (futimens): Likewise.
25206         * tests/test-fdutimensat.c: Likewise.
25207         * tests/test-utimens.c: Likewise.
25208         * tests/test-futimens.h: Update comment.
25209         * NEWS: Mention this.
25210         Suggested by Paul Eggert.
25211
25212 2010-09-17  Bruno Haible  <bruno@clisp.org>
25213
25214         Take over the maintenance of some older macros from Autoconf.
25215         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25216         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25217         GNU Autoconf.
25218         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25219         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25220
25221 2010-09-17  Eric Blake  <eblake@redhat.com>
25222
25223         fdutimensat: drop atflag validation
25224         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25225         with valid fd, to close a race scenario where futimens is
25226         unsupported and FILE was replaced by a symlink.
25227         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25228         accordingly.
25229         Suggested by Paul Eggert.
25230
25231 2010-09-16  Bruno Haible  <bruno@clisp.org>
25232
25233         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25234         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25235
25236 2010-09-16  Bruno Haible  <bruno@clisp.org>
25237
25238         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25239         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25240         login_tty exists.
25241         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25242
25243 2010-09-16  Bruno Haible  <bruno@clisp.org>
25244
25245         login_tty: Make the replacement code work on BSD systems.
25246         * lib/login_tty.c: Include <sys/ioctl.h>.
25247         (login_tty): Use ioctl TIOCSCTTY when available.
25248         * modules/login_tty (Depends-on): Add sys_ioctl.
25249         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25250
25251 2010-09-16  Bruno Haible  <bruno@clisp.org>
25252
25253         login_tty: Stricter unit test.
25254         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25255         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25256         and tcgetsid() after login_tty.
25257         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25258
25259 2010-09-16  Bruno Haible  <bruno@clisp.org>
25260
25261         New module 'tcgetsid'.
25262         * lib/tcgetsid.c: New file.
25263         * m4/tcgetsid.m4: New file.
25264         * modules/tcgetsid: New file.
25265         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25266         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25267         GNULIB_TCGETSID, HAVE_TCGETSID.
25268         * lib/termios.in.h: Include <sys/types.h>.
25269         (tcgetsid): New declaration.
25270         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25271         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25272         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25273         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25274
25275 2010-09-16  Bruno Haible  <bruno@clisp.org>
25276
25277         Tests for module 'termios'.
25278         * modules/termios-c++-tests: New file.
25279         * modules/termios-tests: New file.
25280         * tests/test-termios-c++.cc: New file.
25281         * tests/test-termios.c: New file.
25282
25283         New module 'termios'.
25284         * modules/termios: New file.
25285         * lib/termios.in.h: New file.
25286         * m4/termios_h.m4: New file.
25287         * doc/posix-headers/termios.texi: Mention the new module.
25288
25289 2010-09-16  Eric Blake  <eblake@redhat.com>
25290
25291         fdutimensat: add an atflag parameter
25292         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25293         * lib/utimens.h (fdutimensat): Update prototype.
25294         * tests/test-fdutimensat.c: Adjust test to match.
25295         * NEWS: Document the change.
25296         Suggested by Paul Eggert.
25297
25298 2010-09-16  Bruno Haible  <bruno@clisp.org>
25299
25300         Fix typos in comments.
25301         * lib/striconveh.h: Fix typo in comment.
25302         * lib/login_tty.c (login_tty): Likewise.
25303
25304 2010-09-15  Bruno Haible  <bruno@clisp.org>
25305
25306         stdlib: clarify MirBSD WEXITSTATUS bug
25307         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25308         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25309
25310 2010-09-15  Eric Blake  <eblake@redhat.com>
25311
25312         stdlib: work around MirBSD WEXITSTATUS bug
25313         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25314         * modules/stdlib (Depends-on): Add sys_wait.
25315         * tests/test-sys_wait.c (main): Enhance test.
25316         * tests/test-stdlib.c (main): Likewise.
25317         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25318
25319         docs: mention MacOS issue with WEXITSTATUS(constant)
25320         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25321         issue.
25322         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25323
25324         strnlen: add tests
25325         * modules/strnlen-tests: New file.
25326         * tests/test-strnlen.c: Likewise.
25327
25328 2010-09-14  Bruno Haible  <bruno@clisp.org>
25329
25330         unistr/base: Avoid link errors when module 'libunistring' is also used.
25331         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25332         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25333         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25334         Declare also when HAVE_LIBUNISTRING is set.
25335         Reported by Pádraig Brady <P@draigbrady.com>.
25336
25337 2010-09-14  Eric Blake  <eblake@redhat.com>
25338
25339         test-rawmemchr: make more robust
25340         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25341         (Depends-on, configure.ac): Add needed prerequisites to use it.
25342         * modules/memchr-tests (Files, Depends-on, configure.ac):
25343         Likewise, to avoid implicit reliance on memchr module prereqs.
25344         * tests/test-memchr.c (main): Ensure proper masking.
25345         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25346         reads.
25347
25348         memchr: detect glibc Alpha bug
25349         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25351         Alpha.
25352         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25353         * tests/test-memchr.c (main): Enhance test.
25354         Reported by Nelson H. F. Beebe.
25355
25356 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25357
25358         fts, getcwd, glob: audit for dirfd returning -1
25359         * lib/fts.c (opendir): Remove #define; no longer used.
25360         (opendirat): New arg PDIR_FD.  All callers changed.
25361         (fts_build, _opendir2): Use new opendirat to avoid the need for
25362         dirfd, or for checking whether dirfd returns a negative value.
25363         Don't use opendir; always use openat followed by fdopendir.
25364         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25365         it.
25366         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25367         returns -1 here.
25368         * modules/fts (Depends-on): Remove dirfd.
25369         * modules/getcwd (Depends-on): Likewise.
25370
25371 2010-09-13  Eric Blake  <eblake@redhat.com>
25372
25373         float: fix broken MirBSD header
25374         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25375         * doc/posix-headers/float.texi (float.h): Document it.
25376
25377 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25378
25379         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25380         * lib/fts.c (opendirat): New arg extra_flags.
25381         (__opendir2): Use it to avoid following symlinks when opening
25382         a directory, if symlinks are not supposed to be followed.  See
25383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25384
25385         fdopendir: preserve argument fd before returning
25386         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25387         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25388         (fdopendir): Use them, arranging for FD to be open to the same
25389         directory that it was when it started.  (It might be temporarily
25390         closed while fdopendir is running, so this not thread- or
25391         signal-safe.)  Be careful to do the right thing even when file
25392         descriptors are scarce and dup fails with errno == EMFILE.  See
25393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25394
25395 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25396
25397         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25398         * NEWS: Document change.
25399         * m4/regex.m4: Disable test for regoff_t size.
25400
25401 2010-09-13  Jim Meyering  <meyering@redhat.com>
25402
25403         fts: don't operate on an invalid file descriptor after failed dup
25404         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25405         negative file descriptor.
25406
25407 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25408
25409         savedir: add streamsavedir, deprecate fdsavedir
25410         * NEWS: Mention deprecation of fdsavedir.
25411         * lib/savedir.c (streamsavedir): New extern function, whose name
25412         ends in "savedir" to be consistent with the others.  This differs
25413         from savedirstream in that it doesn't close its argument.  The
25414         next version of GNU tar will use this instead of fdsavedir, to
25415         avoid some race conditions and conserve file descriptors.
25416         (savedirstream): Reimplement as a wrapper around streamsavedir.
25417         (fdsavedir): Add a comment deprecating this function.  As far as
25418         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25419         * lib/savedir.h (streamsavedir): New decl.
25420         (fdsavedir): Add a comment deprecating this.
25421
25422 2010-09-10  Bruno Haible  <bruno@clisp.org>
25423
25424         langinfo: Fix last commit.
25425         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25426         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25428
25429 2010-09-10  Bruno Haible  <bruno@clisp.org>
25430
25431         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25432         * lib/progreloc.c (O_EXEC): Define fallback.
25433
25434 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25435
25436         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25437         * NEWS: Document recent changes to fcntl-h.
25438         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25439         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25440         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25441         Similarly for O_SEARCH; this last was already true, but not documented.
25442         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25443         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25444         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25445         Likewise.
25446         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25447         is zero, not whether it is defined.
25448         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25449         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25450         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25451
25452 2010-09-10  Bruno Haible  <bruno@clisp.org>
25453
25454         langinfo, nl_langinfo: Fix for IRIX 5.3.
25455         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25456         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25457         HAVE_LANGINFO_YESEXPR.
25458         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25459         HAVE_LANGINFO_YESEXPR.
25460         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25461         HAVE_LANGINFO_T_FMT_AMPM is 0.
25462         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25463         HAVE_LANGINFO_YESEXPR is 0.
25464         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25465         NOEXPR.
25466         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25467         * doc/posix-functions/nl_langinfo.texi: Likewise.
25468         Reported by Eric Blake.
25469
25470 2010-09-10  Bruno Haible  <bruno@clisp.org>
25471
25472         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25473         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25474         on FreeBSD 8.0 and OpenBSD 4.6.
25475         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25476         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25477         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25478         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25479         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25480         ac_includes_default.
25481         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25482
25483 2010-09-09  Eric Blake  <eblake@redhat.com>
25484
25485         strsignal: work around NetBSD bug
25486         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25487         * lib/string.in.h (includes): Likewise.
25488         * doc/posix-functions/strsignal.texi (strsignal): Document the
25489         bug.
25490         Reported by Nelson H. F. Beebe.
25491
25492         gnulib-tool: work with NetBSD /bin/sh
25493         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25494         (func_get_description, func_get_comment, func_get_status)
25495         (func_get_notice, func_get_applicability, func_get_filelist)
25496         (func_get_dependencies, func_get_autoconf_early_snippet)
25497         (func_get_autoconf_snippet, func_get_automake_snippet)
25498         (func_get_include_directive, func_get_link_directive)
25499         (func_get_license, func_get_maintainer, func_import): Avoid
25500         shell syntax errors from parsing syntax extensions.
25501
25502 2010-09-09  Bruno Haible  <bruno@clisp.org>
25503
25504         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25505         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25506         a reliable way to determine whether the 'alias' command works.
25507
25508 2010-09-08  Jim Meyering  <meyering@redhat.com>
25509
25510         init.sh: penalize a set-x-impaired shell; don't disqualify it
25511         * tests/init.sh: Too many shells corrupt application stderr when
25512         you set -x, so we can't afford to disqualify them, since at least
25513         on Irix-6.5, that would disqualify all bourne shells.
25514         Instead, use a two-pass approach.
25515         On the first pass, try to find a shell that meets the stricter
25516         condition that set -x does not corrupt stderr.
25517         If no shell meets the stricter condition, retest each candidate
25518         shell, but without that extra condition.  Finally, when
25519         VERBOSE=yes is requested and set -x might cause trouble, simply
25520         issue a warning and refrain from enabling debug output.
25521
25522 2010-09-08  Eric Blake  <eblake@redhat.com>
25523
25524         unsetenv: fix OpenBSD bug
25525         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25526         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25527         documentation.
25528         Reported by Jim Meyering.
25529
25530         strtod: work around IRIX 6.5 bug
25531         * lib/strtod.c (strtod): Reparse number on shorter string if
25532         exponent parse was invalid.
25533         * tests/test-strtod.c (main): Add check for "0x1p 2".
25534         Reported by Tom G. Christensen.
25535
25536         getopt: optimize previous patch
25537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25538         empty variable.  Speed up awk script.
25539         Reported by Paolo Bonzini.
25540
25541 2010-09-08  Jim Meyering  <meyering@redhat.com>
25542
25543         test.sh: disqualify shells for which set -x corrupts stderr
25544         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25545         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25546         appear in stderr output.  For example, this command:
25547             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25548         prints "P=1" on those two systems:
25549
25550 2010-09-08  Bruno Haible  <bruno@clisp.org>
25551
25552         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25553         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25554         commands, because some shells ignore redirections when there is an
25555         error in the command lookup.
25556         Reported by Eric Blake.
25557
25558 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25559
25560         * lib/regex.h: Fix a mention of `regex_compile' (should be
25561         `re_compile_pattern').
25562         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25563         (re_set_registers): Correct name of parameter in comment.
25564
25565         * doc/regex.texi: Add documentation for missing syntax flags.
25566         Remove commented-out documentation of defunct syntax option
25567         RE_NO_EMPTY_ALTS.
25568         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25569         Add documentation of re_set_registers.
25570         Document trick to re-use a pattern buffer by setting fastmap manually.
25571         Update documentation of struct re_pattern_buffer per public members.
25572         Uncomment documentation of equivalence class operators and
25573         collating symbol operators, since they are now implemented,
25574         Explain leftmost-longest matching in relation to alternatives.
25575         Tidy documentation of substring matching.
25576         Remove POSIX documentation, which is done better in
25577         glibc, and refer the reader there. Keep BSD API documentation, as
25578         that is not readily available elsewhere.
25579
25580 2010-09-07  Eric Blake  <eblake@redhat.com>
25581
25582         getopt: handle POSIXLY_CORRECT set but not exported
25583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25584         export state of POSIXLY_CORRECT, due to bash set -o posix.
25585         Reported by Dustin J. Mitchell.
25586
25587 2010-09-05  Bruno Haible  <bruno@clisp.org>
25588
25589         gnulib-tool: Highlight the changed options.
25590         * gnulib-tool (func_usage): Display the --import, --add-import,
25591         --remove-import explanations in bold font.
25592
25593 2010-09-06  Karl Berry  <karl@gnu.org>
25594
25595         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25596
25597 2010-09-05  Bruno Haible  <bruno@clisp.org>
25598
25599         uniwidth/width: Update comment.
25600         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25601         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25602
25603 2010-09-05  Bruno Haible  <bruno@clisp.org>
25604
25605         isinf, isnan: Relax license.
25606         * modules/isinf (License): Change from GPL to LGPL, with consent from
25607         Ben Pfaff.
25608         * modules/isnan (License): Likewise.
25609         Requested by Ludovic Courtès.
25610
25611 2010-09-04  Bruno Haible  <bruno@clisp.org>
25612
25613         gnulib-tool: Help migration from --import to --add-import or --update.
25614         * gnulib-tool: Emit a verbose error message when --import is used
25615         without any module name.
25616
25617 2010-09-04  Bruno Haible  <bruno@clisp.org>
25618
25619         Update doc about gnulib-tool.
25620         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25621         'gnulib-tool --update' in more detail.
25622         Reported by Eric Blake.
25623
25624 2010-09-04  Bruno Haible  <bruno@clisp.org>
25625
25626         gnulib-tool: Change --import. New options --add/remove-import.
25627         * gnulib-tool: New options --add-import, --remove-import.
25628         (func_usage): Document them.
25629         (have_associative): Define always.
25630         (func_import): In import mode, don't merge the specified settings with
25631         the cached settings. Implement remove-import mode.
25632         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25633         Explain when to use them versus --import.
25634         (Simple update): Use --add-import instead of --import.
25635         * NEWS: Mention the change.
25636
25637 2010-09-04  Bruno Haible  <bruno@clisp.org>
25638
25639         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25640         separate gnulib.mk.
25641
25642 2010-09-04  Bruno Haible  <bruno@clisp.org>
25643
25644         gnulib-tool: Don't talk about CVS any more.
25645         * gnulib-tool (func_usage, func_import): Write "version control"
25646         instead of CVS.
25647
25648 2010-09-04  Jim Meyering  <meyering@redhat.com>
25649
25650         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25651         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25652         false positives (whose names may be ill-chosen) when searching
25653         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25654         would cause a false-positive.
25655
25656         avoid coreutils "make distcheck" failure
25657         Coreutils tests with an absolute build directory name that contains
25658         a space.  Not quoting this directory name caused a failure.
25659         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25660         * tests/test-vc-list-files-cvs.sh: Likewise.
25661
25662 2010-09-04  Bruno Haible  <bruno@clisp.org>
25663
25664         gnulib-tool: Avoid error when run in a package without Makefile.am.
25665         * gnulib-tool: When collecting the m4dirs in a package that does not
25666         have a Makefile.am, eliminate those directories that contain no
25667         gnulib-cache.m4. Fix expression that counts these directories.
25668
25669 2010-09-04  Bruno Haible  <bruno@clisp.org>
25670
25671         update-copyright test: Improve output when perl is missing or too old.
25672         * tests/test-update-copyright.sh: Move test of Perl version down after
25673         the test whether Perl exists. Provide an explanation relating Perl's
25674         error message to Automake's SKIP: message.
25675
25676 2010-09-04  Bruno Haible  <bruno@clisp.org>
25677
25678         Don't augment PATH in TESTS_ENVIRONMENT.
25679         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25680         set abs_aux_dir instead of augmenting PATH.
25681         * modules/vc-list-files-tests (Makefile.am): Likewise.
25682         * tests/test-update-copyright.sh: Augment PATH here.
25683         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25684         path_prepend_.
25685         * tests/test-vc-list-files-git.sh: Likewise.
25686
25687 2010-09-04  Jim Meyering  <meyering@redhat.com>
25688
25689         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25690         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25691
25692 2010-09-04  Bruno Haible  <bruno@clisp.org>
25693
25694         strdup: Fix compilation error in C++ mode.
25695         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25696         the macro.
25697
25698 2010-09-04  Bruno Haible  <bruno@clisp.org>
25699
25700         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25701         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25702         macro into a function.
25703         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25704
25705 2010-09-04  Bruno Haible  <bruno@clisp.org>
25706
25707         Set PATH_SEPARATOR the same way autoconf does.
25708         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25709         the value of PATH_SEPARATOR the same way autoconf-generated configure
25710         scripts do.
25711         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25712         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25713
25714 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25715
25716         Set PATH_SEPARATOR the same way autoconf does.
25717         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25718         the same way autoconf-generated configure scripts do.
25719         * posix-modules: Likewise.
25720
25721 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25722
25723         hash: fix safe_hasher const typo
25724         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25725         const; otherwise, there is a type error later.
25726
25727 2010-09-02  Jim Meyering  <meyering@redhat.com>
25728
25729         test-update-copyright.sh: require perl 5.8.0
25730         * tests/test-update-copyright.sh: Require 5.8.0,
25731         which Tom G. Christensen has confirmed is adequate,
25732         while 5.6.1 is not.
25733
25734 2010-09-02  Eric Blake  <eblake@redhat.com>
25735
25736         tests: init.sh improvements for re-exec'ing with zsh
25737         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25738         -vx through shell re-exec.
25739         Reported by Tom G. Christensen.
25740
25741         wctype: fix typo in previous commit
25742         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25743         Reported by Ludovic Courtès.
25744
25745 2010-09-02  Jim Meyering  <meyering@redhat.com>
25746
25747         test-update-copyright.sh: skip test if Perl is too old
25748         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25749         Reported by Tom G. Christensen.
25750
25751 2010-09-02  Bruno Haible  <bruno@clisp.org>
25752
25753         wctype: Avoid compilation error on IRIX 6.5.30.
25754         * lib/wctype.in.h (iswblank): Declare with a replacement if
25755         REPLACE_ISWBLANK is set.
25756         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25757         declared. Set REPLACE_ISWBLANK.
25758         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25759         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25760         * doc/posix-headers/wctype.texi: Likewise.
25761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25762
25763 2010-09-01  Bruno Haible  <bruno@clisp.org>
25764
25765         New module 'socketlib'.
25766         * modules/socketlib: New file.
25767         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25768         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25769         * modules/sockets (Depends-on): Add socketlib.
25770         Suggested by Sam Steingold <sds@gnu.org>.
25771
25772 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25773
25774         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25775
25776         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25777         when one needs search access to a directory but not read access.
25778         On systems where it is available, it works in some cases where
25779         O_RDONLY does not, namely on directories that are searchable but
25780         not readable, and which need only to be searchable.  If O_SEARCH
25781         is not available, fall back to the traditional method of using
25782         O_RDONLY.
25783
25784         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25785         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25786         when opening a directory that needs only to be searchable.
25787         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25788         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25789         * lib/openat-proc.c (openat_proc_name): Likewise.
25790         * lib/openat.c (openat_needs_fchdir): Likewise.
25791         * lib/save-cwd.c (save_cwd): Likewise.
25792         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25793
25794 2010-08-28  Bruno Haible  <bruno@clisp.org>
25795
25796         New module 'host-cpu-c-abi'.
25797         * modules/host-cpu-c-abi: New file.
25798         * m4/host-cpu-c-abi.m4: New file, based on part of
25799         clisp/src/m4/general.m4.
25800         Requested by Sam Steingold <sds@gnu.org>.
25801
25802 2010-08-31  Eric Blake  <eblake@redhat.com>
25803         and Jim Meyering  <meyering@redhat.com>
25804
25805         hash: factor, and guard against misbehaving hasher function
25806         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25807         of table->hasher's return value.  Also protect against a hash value
25808         so large that adding it to table->bucket results in a NULL pointer.
25809         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25810         Use it in place of open-coded check-and-abort.
25811
25812 2010-08-30  Bruno Haible  <bruno@clisp.org>
25813
25814         hash: silence spurious clang warning
25815         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25816         Reported by Eric Blake.
25817
25818 2010-08-30  Eric Blake  <eblake@redhat.com>
25819
25820         strstr, memmem, strcasestr: avoid leaked shell message
25821         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25822         FreeBSD.
25823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25825
25826         tests: silence clang warning
25827         * tests/test-malloca.c (do_allocation): Avoid dead store.
25828
25829 2010-08-29  Bruno Haible  <bruno@clisp.org>
25830
25831         gettext: Fix recent mistake.
25832         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25833
25834 2010-08-29  Bruno Haible  <bruno@clisp.org>
25835
25836         selinux-h: Offer a --without-selinux option.
25837         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25838         --without-selinux was specified, skip all tests and define
25839         HAVE_SELINUX_SELINUX_H to 0.
25840         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25841         set LIB_SELINUX to empty.
25842         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25843         gl_LIBSELINUX. If --without-selinux was specified, replace
25844         selinux/context.h.
25845         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25846
25847 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25848             Bruno Haible  <bruno@clisp.org>
25849
25850         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25851         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25852         of HAVE_REALLOC.
25853         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25854         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25855         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25856         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25857
25858 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25859             Bruno Haible  <bruno@clisp.org>
25860
25861         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25862         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25863         HAVE_CALLOC.
25864         * lib/xmalloc.c: Update accordingly.
25865         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25866         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25867         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25868
25869 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25873         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25874         HAVE_MALLOC.
25875         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25876         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25877         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25878
25879 2010-08-29  Bruno Haible  <bruno@clisp.org>
25880
25881         Update modules list.
25882         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25883         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25884         (String handling <string.h>): Add astrxfrm.
25885         (File system functions): Add readlinkat.
25886
25887 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25888
25889         Tests for module 'realloc-gnu'.
25890         * modules/realloc-gnu-tests: New file.
25891         * tests/test-realloc-gnu.c: New file.
25892
25893         Tests for module 'calloc-gnu'.
25894         * modules/calloc-gnu-tests: New file.
25895         * tests/test-calloc-gnu.c: New file.
25896
25897         Tests for module 'malloc-gnu'.
25898         * modules/malloc-gnu-tests: New file.
25899         * tests/test-malloc-gnu.c: New file.
25900
25901 2010-08-28  Bruno Haible  <bruno@clisp.org>
25902
25903         Rename module 'realloc' -> 'realloc-gnu'.
25904         * modules/realloc-gnu: New file, copied from modules/realloc.
25905         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25906         obsolete.
25907         * modules/mgetgroups (Depends-on): Update.
25908         * doc/posix-functions/realloc.texi: Update.
25909         * NEWS: Mention the change.
25910
25911         Rename module 'calloc' -> 'calloc-gnu'.
25912         * modules/calloc-gnu: New file, copied from modules/calloc.
25913         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25914         obsolete.
25915         * doc/posix-functions/calloc.texi: Update.
25916         * NEWS: Mention the change.
25917
25918         Rename module 'malloc' -> 'malloc-gnu'.
25919         * modules/malloc-gnu: New file, copied from modules/malloc.
25920         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25921         obsolete.
25922         * modules/argp (Depends-on): Update.
25923         * modules/regex (Depends-on): Update.
25924         * doc/posix-functions/malloc.texi: Update.
25925         * NEWS: Mention the change.
25926
25927 2010-08-28  Eric Blake  <eblake@redhat.com>
25928
25929         pread, pwrite: add missing dependency
25930         * modules/pread (Depends-on): Add extensions.
25931         * modules/pwrite (Depends-on): Likewise.
25932
25933 2010-08-28  Bruno Haible  <bruno@clisp.org>
25934
25935         unistr/u*-strchr: Fix tests dependencies.
25936         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25937         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25938         Reported by Ian Beckwith <ianb@erislabs.net>.
25939
25940 2010-08-28  Bruno Haible  <bruno@clisp.org>
25941
25942         read-file: Don't occupy too much unused memory.
25943         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25944
25945 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25946             Eric Blake  <eblake@redhat.com>
25947             Bruno Haible  <bruno@clisp.org>
25948
25949         read-file: Avoid memory reallocations with regular files.
25950         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25951         (fread_file): With regular files, use the remaining length as the
25952         initial buffer size.  Check against overflow.
25953         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25954         sys_stat.
25955
25956 2010-08-28  Bruno Haible  <bruno@clisp.org>
25957
25958         ftello: Relax license.
25959         * modules/ftello (License): Relax to LGPLv2+.
25960         Reported by Eric Blake.
25961
25962 2010-08-28  Bruno Haible  <bruno@clisp.org>
25963
25964         Avoid relocwrapper link errors due to gnulib replacement functions.
25965         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25966         function.
25967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25968
25969 2010-08-28  Bruno Haible  <bruno@clisp.org>
25970
25971         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25972         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25973         defined.
25974         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25975         Suggested by Eric Blake.
25976
25977 2010-08-28  Bruno Haible  <bruno@clisp.org>
25978
25979         sys_socket, netdb: Ensure socklen_t gets defined.
25980         * modules/sys_socket (Depends-on): Add socklen.
25981         * modules/netdb (Depends-on): Likewise.
25982         * modules/getaddrinfo (Depends-on): Remove socklen.
25983         * modules/getsockopt (Depends-on): Likewise.
25984         * modules/setsockopt (Depends-on): Likewise.
25985         * tests/test-sys_socket.c: Check that socklen_t is defined.
25986         * tests/test-netdb.c: Likewise.
25987         * m4/socklen.m4: Update comments.
25988         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25989
25990 2010-08-27  Eric Blake  <eblake@redhat.com>
25991
25992         login_tty: add missing dependency
25993         * modules/login_tty (Depends-on): Add pty.
25994
25995 2010-08-26  Eric Blake  <eblake@redhat.com>
25996
25997         lib-symbol-versions: fix m4 quoting
25998         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25999         format for AC_LINK_IFELSE.
26000
26001         glob: fix compile test
26002         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26003
26004         btowc: fix missing file
26005         * modules/btowc (Files): Also ship locale-fr.m4.
26006
26007         lseek: fix link test
26008         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26009         AC_LINK_IFELSE.
26010
26011         include_next: silence autoconf 2.68 warning
26012         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26013         AC_COMPILE_IFELSE as special.
26014         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26015         autoconf < 2.68.
26016
26017         acl: fix compilation test
26018         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26019         AC_COMPILE_IFELSE.
26020
26021 2010-08-26  Bruno Haible  <bruno@clisp.org>
26022
26023         Modernize AC_TRY_RUN invocations.
26024         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26025         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26026         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26027         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26028         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26029         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26030         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26031         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26032         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26033         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26034         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26035         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26036         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26037         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26038         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26039         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26040         gl_MBRLEN_NUL_RETVAL): Likewise.
26041         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26042         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26043         Likewise.
26044         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26045         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26046         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26047         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26048         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26049         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26050         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26051         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26052         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26053         Likewise.
26054         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26055         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26056         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26057         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26058         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26059         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26060         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26061         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26062         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26064
26065 2010-08-26  Bruno Haible  <bruno@clisp.org>
26066
26067         Modernize AC_TRY_LINK invocations.
26068         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26069         AC_TRY_LINK.
26070         * m4/argp.m4 (gl_ARGP): Likewise.
26071         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26072         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26073         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26074         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26075         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26076         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26077         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26078         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26079         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26081         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26082         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26083         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26084         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26085         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26086         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26087         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26088         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26089         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26090         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26091         Likewise.
26092         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26093         Likewise.
26094         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26095         Likewise.
26096         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26097         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26098         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26099         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26100         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26101         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26102         * m4/servent.m4 (gl_SERVENT): Likewise.
26103         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26104         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26105         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26106         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26107         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26108         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26109         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26110         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26111         * modules/tsearch-tests (configure.ac): Likewise.
26112
26113 2010-08-26  Bruno Haible  <bruno@clisp.org>
26114
26115         Modernize AC_TRY_COMPILE invocations.
26116         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26117         AC_TRY_COMPILE.
26118         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26119         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26120         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26121         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26122         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26123         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26124         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26125         * m4/lock.m4 (gl_LOCK): Likewise.
26126         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26127         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26128         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26130         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26131         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26132         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26133         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26134         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26135         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26136         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26137         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26138         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26139         extraneous semicolon.
26140
26141 2010-08-26  Jim Meyering  <meyering@redhat.com>
26142
26143         stat-time: relax license LGPL
26144         * modules/stat-time (License): Change from GPL to LGPL,
26145         with consent from all contributors, for use in libguile.
26146         Requested by Ludovic Courtès.
26147
26148 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26149
26150         poll: return immediately on POLLHUP.
26151         * lib/poll.c (poll): Always set timeout before wait_timeout is
26152         computed.
26153
26154 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26155
26156         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26157         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26158         rmdir ("dir/.//"), unlinkat.
26159
26160 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26161
26162         stdbool: avoid spurious failure with modern xlc
26163         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26164
26165 2010-08-24  Bruno Haible  <bruno@clisp.org>
26166
26167         getloadavg: simplify code
26168         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26169         gl_have_func. Update comments.
26170
26171 2010-08-24  Eric Blake  <eblake@redhat.com>
26172
26173         getloadavg: don't define SVR4 on cygwin
26174         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26175         only define SVR4 when -lkvm is required.
26176         Reported by Yaakov Selkowitz.
26177
26178 2010-08-24  Bruno Haible  <bruno@clisp.org>
26179
26180         priv-set: fix comment
26181         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26182
26183 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26184
26185         priv-set: fix comments
26186         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26187         to match code, as suggested by David Bartley in:
26188         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26189
26190 2010-08-23  Eric Blake  <eblake@redhat.com>
26191
26192         stdbool: avoid rejecting clang
26193         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26194         * tests/test-stdbool.c: Enable more tests if using the system
26195         <stdbool.h> instead of the gnulib replacement.
26196         (main): Move xlc bug test to a runtime test for all compilers.
26197         Reported by Anders Kaseorg.
26198
26199         argz: fix shell quoting issue
26200         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26201         Reported by Charles Wilson.
26202
26203 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26204             Erik Faye-Lund <kusmabite@gmail.com>
26205
26206         poll, select: handle ERROR_BROKEN_PIPE.
26207         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26208         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26209         * lib/select.c (win32_compute_revents): Do not mark a pipe
26210         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26211
26212 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26213
26214         fts: allow compilation with C++
26215         * lib/fts_.h: Specify extern "C" linkage with C++.
26216
26217 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26218
26219         Fix gnulib-tool sed script de-commentation for AIX sed.
26220         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26221         sed.
26222
26223 2010-08-17  Eric Blake  <eblake@redhat.com>
26224
26225         test-stddef: test for (some) offsetof bugs
26226         * tests/test-stddef.c: Enhance test to ensure correct type of
26227         offsetof.
26228         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26229         that we are not fixing at this time.
26230
26231 2010-08-15  Bruno Haible  <bruno@clisp.org>
26232
26233         stpncpy: Allow stpncpy to be defined as a macro.
26234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26235         if it's already correctly declared.
26236         * lib/string.in.h (stpncpy): Undefine before redefining.
26237         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26238
26239 2010-08-14  Bruno Haible  <bruno@clisp.org>
26240
26241         Rename module 'memxfrm' to 'amemxfrm'.
26242         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26243         (amemxfrm): Renamed from memxfrm.
26244         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26245         (amemxfrm): Renamed from memxfrm.
26246         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26247         * NEWS: Mention the change.
26248         * MODULES.html.sh (String handling <string.h>): Update.
26249         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26250         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26251         * lib/unicase/u16-casexfrm.c: Likewise.
26252         * lib/unicase/u32-casexfrm.c: Likewise.
26253         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26254         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26255         * lib/uninorm/u16-normxfrm.c: Likewise.
26256         * lib/uninorm/u32-normxfrm.c: Likewise.
26257         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26258         memxfrm.
26259         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26260         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26261         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26262         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26263         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26264         Suggested by Paul Eggert.
26265
26266 2010-08-14  Bruno Haible  <bruno@clisp.org>
26267
26268         Tests for module 'astrxfrm'.
26269         * modules/astrxfrm-tests: New file.
26270         * tests/test-astrxfrm.c: New file.
26271
26272         New module 'astrxfrm'.
26273         * lib/astrxfrm.h: New file.
26274         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26275         * modules/astrxfrm: New file.
26276
26277 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26278
26279         regex: Tweak doc.
26280         * doc/regex.texi (Overview): Don't mention regex.c.
26281         (GNU Regular Expression Compiling): Likewise.
26282         (Match-end-of-line Operator): Mention 'not_eol'.
26283
26284 2010-08-14  Brian Gough  <bjg@gnu.org>
26285             Bruno Haible  <bruno@clisp.org>
26286
26287         git-merge-changelog: add doc relating to use with bzr and hg.
26288         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26289
26290 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26291
26292         pthread: fix pthread.h creation for srcdir != builddir
26293         * modules/pthread (Makefile.am): Fix the rule to work also in a
26294         non-srcdir build.
26295
26296 2010-08-13  Karl Berry  <karl@gnu.org>
26297
26298         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26299         * doc/posix-*/*: force line break before @url of POSIX
26300         specifications.
26301         Suggested by Werner Lemberg.
26302
26303 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26304
26305         strtod: fix const diagnostic
26306         * lib/strtod.c (strtod): Don't assign const char * to char *,
26307         as this elicits a warning from GCC when warnings are enabled.
26308
26309 2010-08-10  Pádraig Brady <P@draigbrady.com>
26310         and Eric Blake  <eblake@redhat.com>
26311
26312         copy-acl: ignore ENOTSUP on HP-UX
26313         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26314         so that it is available for HP-UX.
26315         * lib/copy-acl.c (qcopy_acl): Use it.
26316         Reported by Patrick M. Callahan.
26317
26318 2010-08-10  Eric Blake  <eblake@redhat.com>
26319
26320         open, chown: relax license
26321         * modules/open (License): Change to LGPLv2+, with consent by all
26322         authors, for use in augeas.
26323         * modules/chown (License): Likewise.
26324         * modules/lchown (Likewise): Likewise.
26325         Requested by Adam Stokes.
26326
26327 2010-08-09  Karl Berry  <karl@gnu.org>
26328
26329         * build-aux/ar-lib: new file, import from Automake.
26330         * config/srclist.txt: autocheck for updates.
26331
26332 2010-08-09  Eric Blake  <eblake@redhat.com>
26333
26334         readlinkat: adjust client modules
26335         * modules/areadlinkat (Depends-on): Use readlinkat, not
26336         symlinkat.
26337         * modules/areadlinkat-with-size (Depends-on): Likewise.
26338
26339         mknod: be more vocal about danger of running tests as root
26340         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26341         root, since that is just asking for problems.
26342         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26343
26344         readlinkat: split into its own module
26345         * modules/symlinkat: Split readlinkat...
26346         * modules/readlinkat: ...into separate module.
26347         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26348         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26349         * lib/symlinkat.c (readlinkat): Move...
26350         * lib/readlinkat.c: ...into new file.
26351         * modules/symlinkat-tests: Split readlinkat test...
26352         * modules/readlinkat-tests: ...into separate module.
26353         * tests/test-symlinkat.c: Split...
26354         * tests/test-readlinkat.c: ...into new file.
26355         * NEWS: Document the split.
26356         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26357         * lib/unistd.in.h (readlinkat): Likewise.
26358         Suggested by Bruno Haible.
26359
26360 2010-08-08  Bruno Haible  <bruno@clisp.org>
26361
26362         memxfrm: Speed up.
26363         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26364         that usually only one call to strxfrm is necessary for each string
26365         part.
26366         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26367
26368 2010-08-07  Karl Berry  <karl@gnu.org>
26369
26370         * doc/posix-headers/limits.texi,
26371         * doc/posix-functions/malloc.texi,
26372         * doc/posix-functions/strsignal.texi: missing @item.
26373         * doc/ld-version-script.texi: spurious leading i.
26374         * doc/regex.texi (Interval Operators): no commas inside @var.
26375
26376 2010-08-01  Bruno Haible  <bruno@clisp.org>
26377
26378         Integrate the regex documentation.
26379         * doc/gnulib.texi: Define 'cn' index.
26380         (Regular expressions): New a chapter that includes regex.texi and
26381         regexprops-generic.texi.
26382         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26383         syntax.
26384
26385         Whitespace cleanup.
26386         * doc/regex.texi: Remove trailing spaces.
26387
26388         Add regex documentation.
26389         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26390         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26391         Written by Kathy A. Hargreaves and Karl Berry.
26392
26393 2010-08-01  Bruno Haible  <bruno@clisp.org>
26394
26395         link: Update documentation.
26396         * doc/posix-functions/link.texi: Update regarding Solaris.
26397
26398 2010-07-31  Bruno Haible  <bruno@clisp.org>
26399
26400         Update modules list.
26401         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26402         (String handling <string.h>): Add memcmp2, memxfrm.
26403         (Container data structures): Add xlist, xsublist, xoset.
26404         (Core language properties): Add alignof, unused-parameter.
26405         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26406         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26407         (Unibyte characters <ctype.h>): New section.
26408         (String handling <string.h>): New section.
26409         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26410         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26411         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26412         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26413         tan, tanh, tanl, y0, y1, yn.
26414         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26415         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26416         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26417         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26418         unlockpt, vdprintf, vdprintf-posix.
26419         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26420         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26421         xconcat-filename.
26422         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26423         getdtablesize, pipe2, pipe2-safer.
26424         (Security): New section.
26425         (Networking functions): Add accept4.
26426         (Signal handling): Add sigpipe.
26427         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26428         mbmemcasecoll.
26429         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26430         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26431         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26432         pipe-filter-ii.
26433         (Misc): Add argp-version-etc, login_tty, parse-duration.
26434
26435 2010-07-31  Bruno Haible  <bruno@clisp.org>
26436
26437         Improve doc in MODULES.html.
26438         * modules/linkat (Description): Add the word "function".
26439         * modules/mkfifo (Description): Likewise.
26440         * modules/mknod (Description): Likewise.
26441         * modules/remove (Description): Likewise.
26442         * modules/renameat (Description): Likewise.
26443         * modules/stat (Description): Likewise.
26444         * modules/symlink (Description): Likewise.
26445         * modules/unlink (Description): Likewise.
26446
26447 2010-07-31  Bruno Haible  <bruno@clisp.org>
26448
26449         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26450         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26451         option --enable/disable-c++ instead of --enable/disable-cxx.
26452         * NEWS: Mention the change.
26453
26454 2010-07-31  Bruno Haible  <bruno@clisp.org>
26455
26456         readlink, areadlink: Relax test a bit.
26457         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26458         alternative to ENOTDIR.
26459         * tests/test-areadlink.h (test_areadlink): Likewise.
26460         Reported by Rainer Tammer.
26461
26462 2010-07-31  Bruno Haible  <bruno@clisp.org>
26463
26464         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26465         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26466         character, perform the search using U_STRCHR.
26467         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26468         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26469         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26470         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26471         Suggested by Paolo Bonzini.
26472
26473 2010-07-31  Bruno Haible  <bruno@clisp.org>
26474
26475         unistr/u*-strstr: Fix dependencies.
26476         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26477         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26478         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26479
26480 2010-07-31  Bruno Haible  <bruno@clisp.org>
26481
26482         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26483         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26484         the beginning of the loop.
26485         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26486         cases in 'switch' statement.
26487
26488         unistr/u8-strchr: Fix several bugs.
26489         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26490         the string. When not found, return NULL, not a pointer near the end.
26491
26492         More tests for unistr/u8-strchr.
26493         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26494         that the function does not read past the first occurrence of the byte
26495         being searched.
26496         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26497         * tests/unistr/test-u16-strchr.c (main): New function.
26498         * tests/unistr/test-u32-strchr.c (main): New function.
26499
26500 2010-07-31  Bruno Haible  <bruno@clisp.org>
26501
26502         posix-modules: Ignore backup files of documentation files.
26503         * posix-modules: grep only through files named *.texi.
26504
26505 2010-07-31  Bruno Haible  <bruno@clisp.org>
26506
26507         symlinkat: Fix documentation.
26508         * doc/posix-functions/readlinkat.texi: Fix module name.
26509
26510 2010-07-31  Bruno Haible  <bruno@clisp.org>
26511
26512         fchownat: Replace also when chown has the trailing slash bug.
26513         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26514         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26515         introduced on 2010-04-10.
26516         Reported by Rainer Tammer.
26517
26518 2010-07-31  Bruno Haible  <bruno@clisp.org>
26519
26520         linkat: Work around AIX 7.1 bug.
26521         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26522         whether linkat handles trailing slash correctly. If not, replace linkat
26523         and define LINKAT_TRAILING_SLASH_BUG.
26524         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26525         check whether (fd1,file1) points to a directory if file1 or file2 ends
26526         in a slash. Code taken from lib/link.c.
26527         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26528         Reported by Rainer Tammer.
26529
26530 2010-07-31  Bruno Haible  <bruno@clisp.org>
26531
26532         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26533         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26534         This disables an xlc optimization that was causing wrong test results.
26535         Reported by Rainer Tammer.
26536
26537 2010-07-31  Bruno Haible  <bruno@clisp.org>
26538
26539         iconv: Work around AIX 6.1..7.1 bug.
26540         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26541         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26542         cross-compiling, guess no on all versions of AIX.
26543         Reported by Rainer Tammer.
26544
26545 2010-07-31  Bruno Haible  <bruno@clisp.org>
26546
26547         readlink: Relax test a bit.
26548         * tests/test-readlink.h (test_readlink): Allow different errno value
26549         when readlink is called with a file name that ends in / and refers to
26550         a file.
26551         Suggested by Eric Blake.
26552         Reported by Rainer Tammer.
26553
26554 2010-07-31  Bruno Haible  <bruno@clisp.org>
26555
26556         copysign: Does not require -lm on glibc systems.
26557         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26558         gl_COMMON_DOUBLE_MATHFUNC.
26559         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26560
26561 2010-07-31  Bruno Haible  <bruno@clisp.org>
26562
26563         duplocale: Work around AIX 7.1 bug.
26564         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26565         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26566         * lib/duplocale.c (rpl_duplocale): Update comment.
26567         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26568         Reported by Rainer Tammer.
26569
26570 2010-07-30  Bruno Haible  <bruno@clisp.org>
26571
26572         dirfd: Avoid link error on AIX 7.1.
26573         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26574         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26575         exist, set REPLACE_DIRFD.
26576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26577         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26578         * doc/posix-functions/dirfd.texi: Update.
26579         Reported by Rainer Tammer.
26580
26581 2010-07-30  Eric Blake  <eblake@redhat.com>
26582
26583         strtod: next round of AIX fixes
26584         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26585         exponent.
26586         * tests/test-strtod.c (main): Enhance tests.
26587         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26588         Reported by Rainer Tammer.
26589
26590         futimens: fix configure check
26591         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26592         Reported by Bruno Haible.
26593
26594 2010-07-30  Bruno Haible  <bruno@clisp.org>
26595
26596         getline: Update regarding AIX.
26597         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26598         Reported by Rainer Tammer.
26599
26600 2010-07-30  Bruno Haible  <bruno@clisp.org>
26601
26602         wcwidth: Drop replacement on AIX 7.
26603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26604         AIX 7.
26605         Reported by Rainer Tammer.
26606
26607 2010-07-30  Bruno Haible  <bruno@clisp.org>
26608
26609         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26610         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26611         a 'char *'.
26612         Reported by Rainer Tammer.
26613
26614 2010-07-30  Bruno Haible  <bruno@clisp.org>
26615
26616         unlink: Update regarding AIX.
26617         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26618         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26619         Reported by Rainer Tammer.
26620
26621 2010-07-30  Bruno Haible  <bruno@clisp.org>
26622
26623         symlink: Update regarding AIX.
26624         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26625         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26626         Reported by Rainer Tammer.
26627
26628 2010-07-30  Bruno Haible  <bruno@clisp.org>
26629
26630         strndup: Update regarding AIX.
26631         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26632         AIX 7.
26633         Reported by Rainer Tammer.
26634
26635 2010-07-30  Bruno Haible  <bruno@clisp.org>
26636
26637         stat: Update regarding AIX.
26638         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26639         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26640         Reported by Rainer Tammer.
26641
26642 2010-07-30  Bruno Haible  <bruno@clisp.org>
26643
26644         truncl: Fix autoconf test.
26645         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26646         whether truncl works.
26647         Reported by Rainer Tammer.
26648
26649 2010-07-30  Bruno Haible  <bruno@clisp.org>
26650
26651         round: Update regarding AIX.
26652         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26653         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26654         Reported by Rainer Tammer.
26655
26656 2010-07-30  Bruno Haible  <bruno@clisp.org>
26657
26658         rename: Update regarding AIX.
26659         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26660         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26661         Reported by Rainer Tammer.
26662
26663 2010-07-30  Bruno Haible  <bruno@clisp.org>
26664
26665         printf.m4: Update regarding AIX.
26666         * m4/printf.m4: Update comments regarding AIX.
26667         Reported by Rainer Tammer.
26668
26669 2010-07-30  Bruno Haible  <bruno@clisp.org>
26670
26671         iconv: Update regarding AIX.
26672         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26673         AIX 7.
26674         Reported by Rainer Tammer.
26675
26676 2010-07-30  Bruno Haible  <bruno@clisp.org>
26677
26678         getopt: Update regarding AIX.
26679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26680         no on AIX.
26681         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26682         Reported by Rainer Tammer.
26683
26684 2010-07-30  Bruno Haible  <bruno@clisp.org>
26685
26686         ldexpl; Update regarding AIX.
26687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26688         on AIX 7.
26689         Reported by Rainer Tammer.
26690
26691 2010-07-30  Bruno Haible  <bruno@clisp.org>
26692
26693         frexpl: Update regarding AIX.
26694         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26695         on AIX 7.
26696         Reported by Rainer Tammer.
26697
26698 2010-07-30  Bruno Haible  <bruno@clisp.org>
26699
26700         open, fopen: Update regarding AIX.
26701         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26702         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26703         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26704         * doc/posix-functions/fopen.texi: Likewise.
26705         Reported by Rainer Tammer.
26706
26707 2010-07-30  Bruno Haible  <bruno@clisp.org>
26708
26709         chown: Update doc regarding AIX.
26710         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26711         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26712         Reported by Rainer Tammer.
26713
26714 2010-07-30  Eric Blake  <eblake@redhat.com>
26715
26716         strtod: fix bug in replacement function on AIX
26717         * lib/strtod.c (strtod): Special case broken "0x" parse in
26718         underlying strtod.
26719         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26720         * doc/posix-functions/strtod.texi (strtod): Likewise.
26721         Reported by Rainer Tammer.
26722
26723 2010-07-30  Bruno Haible  <bruno@clisp.org>
26724
26725         mbrlen: Fix cross-compilation guess for AIX.
26726         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26727         guess. Leftover from 2008-12-22.
26728
26729 2010-07-30  Bruno Haible  <bruno@clisp.org>
26730
26731         mbrtowc: Fix cross-compilation guess for AIX.
26732         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26733         guess. Leftover from 2008-12-21.
26734
26735 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26736
26737         init.sh: work around trap limitation of some shells
26738         * tests/init.sh (setup_): Move exit trap outside of shell function.
26739
26740 2010-07-29  Eric Blake  <eblake@redhat.com>
26741
26742         strtod: aid debugging
26743         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26744         understanding why strtod is rejected.
26745
26746 2010-07-28  Bruno Haible  <bruno@clisp.org>
26747
26748         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26749         * lib/unistr/u8-chr.c: Include <string.h>.
26750         * tests/unistr/test-u8-chr.c: Likewise.
26751         * tests/unistr/test-u16-chr.c: Likewise.
26752         * tests/unistr/test-u32-chr.c: Likewise.
26753         * tests/unistr/test-u8-strchr.c: Likewise.
26754         * tests/unistr/test-u16-strchr.c: Likewise.
26755         * tests/unistr/test-u32-strchr.c: Likewise.
26756         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26757         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26758         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26759         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26760
26761 2010-07-28  Bruno Haible  <bruno@clisp.org>
26762
26763         Use spaces for indentation, not tabs.
26764         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26765
26766 2010-07-27  Bruno Haible  <bruno@clisp.org>
26767
26768         mbspcasecmp: Fix function specification.
26769         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26770         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26771         Reported by Eric Blake <eblake@redhat.com>.
26772
26773 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26774
26775         timespec: use cast and not conditional, as truncation isn't possible
26776         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26777         instead of a conditional.  Comment about the situation in more detail.
26778         This undoes most of the 2009-10-29 patch.
26779
26780 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26781
26782         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26783         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26784         * lib/unistr/u8-strchr.c: Likewise.
26785         * modules/unistr/u8-chr: Depend on memchr.
26786
26787         unistr/u*-strchr: add tests
26788         * modules/unistr/u8-strchr-tests: New file.
26789         * modules/unistr/u16-strchr-tests: New file.
26790         * modules/unistr/u32-strchr-tests: New file.
26791         * tests/unistr/test-strchr.h: New file.
26792         * tests/unistr/test-u8-strchr.c: New file.
26793         * tests/unistr/test-u16-strchr.c: New file.
26794         * tests/unistr/test-u32-strchr.c: New file.
26795
26796         unistr/u*-chr: test multibyte sequences more
26797         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26798         test vector.
26799         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26800         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26801         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26802
26803         unistr/u*-chr: test multibyte sequences
26804         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26805
26806         unistr/u*-chr: prepare for multibyte tests
26807         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26808         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26809         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26810         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26811         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26812         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26813
26814 2010-07-18  Bruno Haible  <bruno@clisp.org>
26815
26816         unistr/u8-strchr: Optimize non-ASCII argument case.
26817         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26818         because the first byte often matches anyway.
26819         Reported by Pádraig Brady <P@draigbrady.com>.
26820
26821 2010-07-15  Karl Berry  <karl@gnu.org>
26822
26823         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26824
26825 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26826
26827         getcwd: on Solaris, work better if ancestors are inaccessible
26828         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26829         buffer and size, try again with a large buffer.  This works better
26830         on Solaris, since its getcwd succeeds even if the path to the root
26831         is inaccessible, and this is helpful in common cases such as .zfs
26832         hidden directories.  Problem reported by J Chapman Flack in
26833         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26834         Use system getcwd if it's declared, not merely if it's partly
26835         working; use the partly-working test only to avoid needless effort
26836         if the system getcwd fails.
26837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26838         comment that was already obsolete and is now even more obsolete.
26839         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26840         now might call strdup.
26841
26842 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26843
26844         pthread: Add enough so that coreutils/src/sort.c compiles.
26845         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26846         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26847         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26848         Include <sys/types.h>, in case it defines pthread_t.
26849         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26850         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26851         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26852         (pthread_rwlockattr_t, pthread_spinlock_t):
26853         New typedefs, if HAVE_PTHREAD_T is not defined.
26854         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26855         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26856         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26857         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26858         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26859         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26860         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26861         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26862         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26863         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26864         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26865         New macros.
26866         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26867         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26868         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26869         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26870         (pthread_spin_unlock): New dummy functions.
26871         (pthread_create): Return EAGAIN; don't set errno.
26872         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26873         require AC_C_INLINE.
26874         * modules/pthread (Depends-on): Add sched, time.
26875         (pthread.h): Use AM_V_GEN.
26876
26877 2010-07-13  Bruno Haible  <bruno@clisp.org>
26878
26879         striconveh: Don't malloc memory if the result buffer is sufficient.
26880         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26881         buffer if its size is sufficient.
26882         Reported by Ludovic Courtès <ludo@gnu.org>.
26883
26884 2010-07-13  Bruno Haible  <bruno@clisp.org>
26885
26886         strtod: Add safety check.
26887         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26888
26889 2010-07-12  Bruno Haible  <bruno@clisp.org>
26890
26891         Unify tests that set gl_cv_func_ldexpl_no_libm.
26892         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26893         gl_FUNC_LDEXPL.
26894         (gl_FUNC_LDEXPL): Invoke it.
26895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26896
26897 2010-07-12  Bruno Haible  <bruno@clisp.org>
26898
26899         Unify tests that set gl_cv_func_ldexp_no_libm.
26900         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26901         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26902         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26903         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26904         * modules/strtod (Files): Add m4/ldexp.m4.
26905
26906 2010-07-12  Bruno Haible  <bruno@clisp.org>
26907
26908         Unify tests that set gl_cv_func_frexpl_no_libm.
26909         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26910         gl_FUNC_FREXPL_NO_LIBM.
26911         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26912         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26913
26914 2010-07-12  Bruno Haible  <bruno@clisp.org>
26915
26916         Unify tests that set gl_cv_func_frexp_no_libm.
26917         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26918         gl_FUNC_FREXP_NO_LIBM.
26919         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26920         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26921
26922 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26923
26924         memcoll: clarify sizes versus lengths, document better, and tweak perf
26925         * lib/memcoll.c (strcoll_loop, memcoll0):
26926         Improve quality of descriptive comments.  Name variables
26927         consistently as to whether they are lengths (which do not include
26928         terminating null) versus sizes (which do).
26929         * lib/xmemcoll.c (xmemcoll0): Likewise.
26930         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26931         returned when s1size == 0; this is easier to compile and saves
26932         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26933
26934 2010-07-12  Bruno Haible  <bruno@clisp.org>
26935
26936         Tests for module '_Exit'.
26937         * modules/_Exit-tests: New file.
26938         * tests/test-_Exit.sh: New file.
26939         * tests/test-_Exit.c: New file.
26940
26941         New module '_Exit'.
26942         * lib/stdlib.in.h (__attribute__): New macro.
26943         (_Exit): New declaration.
26944         * lib/_Exit.c: New file.
26945         * m4/_Exit.m4: New file.
26946         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26947         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26948         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26949         * modules/_Exit: New file.
26950         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26951         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26952
26953 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26954
26955         strtod: make it more-accurate typically, and don't require libm
26956         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26957         Include limits.h.  Don't include string.h.
26958         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26959         (locale_isspace): New function, so that no casts are needed to
26960         check whether *s is a space.
26961         (ldexp): Provide an unused dummy if not available.
26962         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26963         (strtod): Use them.  This implementation prefers to use the
26964         underlying strtod if available, falling back on our own code
26965         only to fix known bugs.  This is more likely to produce an
26966         accurate result.  Also, it avoids the use of libm functions.
26967         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26968         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26969         was absent, but it caused a test failure with coreutils.
26970         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26971         with libm.
26972         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26973         * modules/strtod-tests (Makefile.am): Likewise.
26974
26975 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26976             Bruno Haible  <bruno@clisp.org>
26977
26978         unistr/u8-strchr: Optimize ASCII argument case.
26979         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26980
26981 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26982
26983         (x)memcoll: minor tweaks
26984         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26985         is after the type that it qualifies.
26986         (memcoll0): Likewise.
26987         * lib/memcoll.h (memcoll0): Likewise.
26988         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26989         * lib/xmemcoll.h (xmemcoll0): Likewise.
26990         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26991         differs from memcoll in that the NUL byte is part of the argument.
26992         Omit the abort-checks, as performance is a real issue here.  Plus,
26993         the checks were wrong anyway (an off-by-one error).  Omit local
26994         variable 'diff', as it's a bit clearer that way.
26995         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26996         no longer needed.
26997
26998 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26999
27000         (x)memcoll: speedup when input is known to be NUL delimited
27001         * lib/memcoll.c: Include stdlib.
27002         (memcoll0): New function.
27003         (strcoll_loop): New function, refactored for use in both memcoll
27004         and memcoll0.
27005         * lib/memcoll.h (memcoll0): Add prototype.
27006         * lib/xmemcoll.c (xmemcoll0): New function.
27007         (collate_error): New function, refactored for use in both xmemcoll
27008         and xmemcoll0.
27009         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27010         * m4/memcoll.m4: add inline invocation.
27011
27012 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27013
27014         * build-aux/bootstrap: Remove any local translations
27015         from the translation project synchronization directory,
27016         so that local only translations are not distributed.
27017
27018 2010-07-04  Bruno Haible  <bruno@clisp.org>
27019
27020         fsusage: Clarify which code applies to which platforms.
27021         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27022         platform.
27023         * lib/fsusage.c (get_fs_usage): Likewise.
27024
27025 2010-07-04  Bruno Haible  <bruno@clisp.org>
27026
27027         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27028         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27029         Reported by Martin Lambers <marlam@marlam.de>.
27030
27031 2010-07-04  Jim Meyering  <meyering@redhat.com>
27032
27033         hash: once again explicitly disallow insertion of NULL
27034         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27035         inserting a NULL pointer cannot work with these functions.
27036         Add a comment with details.
27037         This reverts part of the 2010-07-01 commit, 5bef1a35
27038         "hash: extend module to deal with non-pointer keys".
27039
27040 2010-07-01  Bruno Haible  <bruno@clisp.org>
27041
27042         stdbool: Update doc.
27043         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27044         Info from Christian Weisgerber <naddy@mips.inka.de>.
27045
27046 2010-07-01  Jim Meyering  <meyering@redhat.com>
27047
27048         hash: extend module to deal with non-pointer keys
27049         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27050         but that allows insertion of non-pointer entries.
27051         Do not disallow an ENTRY value of NULL.
27052         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27053         * lib/hash.h (hash_insert0): Declare.
27054
27055 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27056
27057         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27058         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27059         not present (i.e. with autoconf 2.59 and when using gettextize, not
27060         gnulib), require AC_GNU_SOURCE instead.
27061
27062 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27063
27064         idpriv-drop: Fix tests.
27065         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27066         not to the test-idpriv-droptemp program.
27067
27068 2010-06-29  Bruno Haible  <bruno@clisp.org>
27069
27070         string: Fix syntax error with g++ 2.96.
27071         * lib/string.in.h (__pure__): Remove definition.
27072         (_GL_ATTRIBUTE_PURE): New macro.
27073         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27074         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27075         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27076
27077 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27078
27079         unitypes: Fix bug introduced on 2010-05-18.
27080         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27081
27082 2010-06-22  Eric Blake  <eblake@redhat.com>
27083
27084         memmem: slight optimization
27085         * lib/str-two-way.h (critical_factorization): Update comments.
27086         Reduce work during factorization phase.
27087         Reported by Carlos Bueno <carlos@bueno.org>.
27088
27089 2010-06-21  Bruno Haible  <bruno@clisp.org>
27090
27091         Fix HAVE_CALLOC_POSIX misnomer.
27092         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27093         !HAVE_CALLOC_POSIX.
27094         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27095         HAVE_CALLOC_POSIX.
27096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27097         instead of HAVE_CALLOC_POSIX.
27098         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27099         HAVE_CALLOC_POSIX.
27100
27101         Use modern idiom for calloc() replacement.
27102         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27103         AC_FUNC_CALLOC.
27104         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27105         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27106         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27107         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27108         (gl_REPLACE_CALLOC): New macro.
27109
27110 2010-06-21  Bruno Haible  <bruno@clisp.org>
27111
27112         Fix HAVE_REALLOC_POSIX misnomer.
27113         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27114         !HAVE_REALLOC_POSIX.
27115         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27116         HAVE_REALLOC_POSIX.
27117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27118         instead of HAVE_REALLOC_POSIX.
27119         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27120         HAVE_REALLOC_POSIX.
27121
27122         Use modern idiom for realloc() replacement.
27123         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27124         AC_FUNC_REALLOC.
27125         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27126         Autoconf's AC_FUNC_REALLOC.
27127         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27128         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27129         (gl_REPLACE_REALLOC): New macro.
27130         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27131
27132 2010-06-21  Bruno Haible  <bruno@clisp.org>
27133
27134         Fix HAVE_MALLOC_POSIX misnomer.
27135         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27136         !HAVE_MALLOC_POSIX.
27137         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27138         HAVE_MALLOC_POSIX.
27139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27140         instead of HAVE_MALLOC_POSIX.
27141         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27142         HAVE_MALLOC_POSIX.
27143
27144         Use modern idiom for malloc() replacement.
27145         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27146         AC_FUNC_MALLOC.
27147         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27148         Autoconf's AC_FUNC_MALLOC.
27149         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27150         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27151         (gl_REPLACE_MALLOC): New macro.
27152         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27153
27154 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27155
27156         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27157         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27158         This macro takes 3 arguments, not 4.
27159
27160 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27161
27162         ipv6: fix detection under mingw
27163         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27164         in6_addr.
27165
27166 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27167
27168         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27169         that strtod() works when cross-compiling to a glibc version known
27170         to work.
27171
27172 2010-06-15  Bruno Haible  <bruno@clisp.org>
27173
27174         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27175
27176 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27177
27178         select: Correct timeout.
27179         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27180
27181 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27182
27183         git-version-gen: init shell var to avoid env var influence
27184         * build-aux/git-version-gen (v): Init shell var to empty.
27185
27186 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27187
27188         priv-set: Don't assume that priv.h exists merely because getppriv does.
27189         See Jan Andersen's bug report about AIX 5L in
27190         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27191         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27192         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27193         * lib/priv-set.h: Likewise.
27194         * tests/test-priv-set.c: Likewise.
27195
27196 2010-06-13  Bruno Haible  <bruno@clisp.org>
27197
27198         relocatable: Make it easier to test whether to install wrappers.
27199         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27200         RELOCATABLE_VIA_WRAPPER.
27201
27202 2010-06-13  Bruno Haible  <bruno@clisp.org>
27203
27204         gnulib-tool: Display specified modules and dependencies differently.
27205         * gnulib-tool (func_show_module_list): New function.
27206         (func_import, func_create_testdir): Invoke it.
27207         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27208
27209 2010-06-13  Bruno Haible  <bruno@clisp.org>
27210
27211         gnulib-tool: Align code of func_import and func_create_testdir.
27212         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27213         specified_modules.
27214
27215 2010-06-12  Jim Meyering  <meyering@redhat.com>
27216
27217         test-inttostr: avoid spurious failure on Solaris 9
27218         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27219         to accept "%ju".  Reported by Bruno Haible.
27220
27221 2010-06-11  Jim Meyering  <meyering@redhat.com>
27222
27223         test-sys_socket: mark variables as used more readably
27224         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27225         as "used" explicitly via (void) statement casts.  This is more
27226         readable than using them in an artificial return expression.
27227         Suggestion from Bruno Haible.
27228
27229 2010-06-11  Bruno Haible  <bruno@clisp.org>
27230
27231         Avoid some more warnings from "gcc -Wwrite-strings".
27232         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27233         to 'const char *'.
27234         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27235         * tests/test-c-strcasestr.c (main): Likewise.
27236         * tests/test-mbscasestr1.c (main): Likewise.
27237         * tests/test-mbscasestr2.c (main): Likewise.
27238         * tests/test-memmem.c (main): Likewise.
27239         * tests/test-strstr.c (main): Likewise.
27240         * tests/test-strcasestr.c (main): Likewise.
27241
27242 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27243
27244         init.sh: change framework_failure_ to fail with status 99, not 1
27245         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27246         automake's parallel-tests rule that this is an unexpected failure,
27247         even if the test is listed in XFAIL_TESTS.
27248
27249 2010-06-11  Jim Meyering  <meyering@redhat.com>
27250
27251         test-inttostr: avoid warnings about 4-6KB literal strings
27252         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27253         Include "macros.h", for its definition of ASSERT.
27254         (CK): s/assert/ASSERT/
27255         * modules/inttostr-tests (Files): Add macros.h.
27256
27257         init.sh: don't use $ME_ or skip_ before they are defined
27258         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27259         their first uses.  Also hoist their companions: warn_, fail_,
27260         framework_failure_, $stderr_fileno.  Prompted by a patch from
27261         Stefano Lattarini.
27262
27263         test-sys_socket: avoid set-but-not-used warnings from gcc
27264         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27265         avoid warning about set-but-not-used variables.
27266
27267         test-xvasprintf: avoid 'const' discard warnings
27268         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27269         "const" when assigning from literal strings.
27270         (test_xasprintf): Add "void" in function argument list to placate
27271         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27272
27273         tests: avoid compilation warnings in argmatch and exclude tests...
27274         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27275         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27276         Since it always exits, declare with the "noreturn" attribute.
27277         * tests/test-argmatch.c: Likewise.
27278
27279         tests: avoid 'const' discard warnings in mbsstr tests
27280         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27281         * tests/test-mbsstr2.c (main): Likewise.
27282
27283         test-verify: avoid warning from gcc's -Wmissing-declarations
27284         * tests/test-verify.c (function): Declare to be static.
27285
27286         test-inttostr.c: include <string.h> for use of strcmp
27287         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27288
27289         test-linkat: avoid failed assertion on "other" architectures
27290         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27291         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27292         sparc: https://bugs.launchpad.net/bugs/591968
27293
27294 2010-06-11  Jim Meyering  <meyering@redhat.com>
27295
27296         printf.m4: avoid autoconf's "Expanded Before Required" warning
27297         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27298         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27299         autoconf warning.
27300
27301 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27302
27303         Replacement header templates are now named with ".in", not "_".
27304         * doc/gnulib-intro.texi: Correct.
27305
27306 2010-06-10  Jim Meyering  <meyering@redhat.com>
27307
27308         inttostr-tests: depend on snprintf, not snprintf-posix
27309         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27310         snprintf-posix, to avoid this aclocal failure:
27311           missing file gnulib-tests/vasnprintf.c
27312           configure.ac:45: error: expected source file, required through \
27313           AC_LIBSOURCES, not found
27314
27315 2010-06-10  Jim Meyering  <meyering@redhat.com>
27316
27317         inttostr: add a new function, inttostr, and tests
27318         The namesake function was not available.  The existence of the
27319         template file, inttostr.c makes its addition nontrivial.
27320         * lib/anytostr.c: Rename from inttostr.c.
27321         (anytostr): Rename from inttostr.
27322         * lib/inttostr.c: New file.
27323         * modules/inttostr (Files): Add anytostr.c.
27324         (Makefile.am): Set lib_SOURCES instead of ...
27325         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27326         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27327         * lib/offtostr.c: Likewise.
27328         * lib/uinttostr.c: Likewise.
27329         * lib/umaxtostr.c: Likewise.
27330         * modules/inttostr-tests: New file.
27331         * tests/test-inttostr.c: New file.  Test these functions.
27332
27333 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27334             Bruno Haible  <bruno@clisp.org>
27335
27336         Add "Extending Gnulib" chapter to manual.
27337         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27338         chapter.
27339         (Extending Gnulib): New chapter.
27340         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27341         chapter.
27342
27343 2010-06-09  Bruno Haible  <bruno@clisp.org>
27344
27345         Avoid relocwrapper link errors due to gnulib replacement functions.
27346         * lib/areadlink.c: Use the system's malloc, realloc functions.
27347         (areadlink): Set errno to ENOMEM explicitly.
27348         * modules/areadlink (Depends-on): Remove malloc-posix.
27349         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27350
27351 2010-06-09  Bruno Haible  <bruno@clisp.org>
27352
27353         Avoid relocwrapper link errors due to gnulib replacement functions.
27354         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27355         * lib/malloca.c: Likewise.
27356         * lib/relocatable.c: Likewise.
27357         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27358         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27359         * lib/setenv.c: Use the system's malloc, realloc functions.
27360         * lib/strerror.c: Use the system's sprintf function.
27361         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27362
27363 2010-06-04  Bruno Haible  <bruno@clisp.org>
27364
27365         Prefer documented low-level autoconf macro names.
27366         * m4/lib-link.m4: Use m4_translit instead of translit.
27367         * m4/environ.m4: Likewise.
27368         * m4/mathfunc.m4: Likewise.
27369         * m4/onceonly.m4: Likewise.
27370         * m4/stdint.m4: Likewise.
27371         Suggested by Eric Blake.
27372
27373 2010-06-04  Martin Lambers  <marlam@marlam.de>
27374             Bruno Haible  <bruno@clisp.org>
27375
27376         havelib: Allow library names with '+' characters.
27377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27378         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27379
27380 2010-06-09  Bruno Haible  <bruno@clisp.org>
27381
27382         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27383         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27384         realloc failed.
27385
27386 2010-06-08  Peter Simons  <simons@cryp.to>
27387
27388         maint.mk: make the news-check rule more configurable
27389         * top/maint.mk (news-check-lines-spec): New variable.
27390         (news-check): Use "sed -n 1,10p" in place of "head".
27391
27392 2010-06-07  Jim Meyering  <meyering@redhat.com>
27393
27394         do-release-commit-and-tag: fix typo in --help
27395         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27396
27397         regex: avoid new dead-code warning with gcc-4.6.0
27398         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27399         if-block containing a while-loop.  It's been unused for at least
27400         5 years.
27401
27402 2010-06-05  Bruno Haible  <bruno@clisp.org>
27403
27404         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27405         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27406
27407 2010-06-04  Bruno Haible  <bruno@clisp.org>
27408
27409         Update to GNU gettext 0.18.1.
27410         * modules/gettext (configure.ac): Require gettext infrastructure from
27411         version 0.18.1.
27412
27413 2010-06-03  Bruno Haible  <bruno@clisp.org>
27414
27415         Don't use AC_LIBOBJ with file names in subdirectories.
27416         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27417         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27418         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27419         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27420         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27421         gl_LIBUNISTRING_LIBSOURCE.
27422         (Makefile.am): Augment lib_SOURCES here, conditionally.
27423         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27424
27425 2010-06-03  Bruno Haible  <bruno@clisp.org>
27426
27427         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27428         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27429         expansion does not end with a newline.
27430         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27431         unnecessary newline.
27432
27433 2010-06-03  Bruno Haible  <bruno@clisp.org>
27434
27435         Reduce dependencies.
27436         * tests/test-quotearg.h: New file, extracted from
27437         tests/test-quotearg.c.
27438         * tests/test-quotearg-simple.c: New file, extracted from
27439         tests/test-quotearg.c.
27440         * tests/test-quotearg.c: Don't include <ctype.h>.
27441         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27442         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27443         use_quote_double_quotes, use_quotearg_colon): Moved to
27444         tests/test-quotearg.h.
27445         (results_g, flag_results, custom_quotes, custom_results): Moved
27446         to tests/test-quotearg-simple.c.
27447         (main): Moved the part that does not depend on gettext to
27448         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27449         performed.
27450         * modules/quotearg-simple: New file.
27451         * modules/quotearg-simple-tests: New file.
27452         * modules/quotearg (Depends-on): Add quotearg-simple.
27453         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27454         (Files): Add tests/test-quotearg.h.
27455         Reported by Paolo Bonzini.
27456
27457 2010-06-03  Bruno Haible  <bruno@clisp.org>
27458
27459         Reduce dependencies.
27460         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27461
27462 2010-06-03  Bruno Haible  <bruno@clisp.org>
27463
27464         time: Undefine more broken macros.
27465         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27466         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27467         Reported by Eric Blake.
27468
27469 2010-06-03  Bruno Haible  <bruno@clisp.org>
27470
27471         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27472         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27473         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27474         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27475         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27476         Reported by Ludovic Courtès <ludo@gnu.org>.
27477
27478 2010-06-02  Eric Blake  <eblake@redhat.com>
27479
27480         time: work with mingw + pthreads-win32 library
27481         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27482         if timespec is defined only in pthread.h.
27483         * modules/time (Makefile.am): Substitute it.
27484         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27485         <pthread.h>, when needed.
27486         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27487         from the library.
27488
27489 2010-05-31  Bruno Haible  <bruno@clisp.org>
27490
27491         Avoid expanding two macros in the wrong order.
27492         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27493         gl_LIBUNISTRING if it is defined.
27494         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27495         autoconf >= 2.64.
27496         Reported by Ludovic Courtès <ludo@gnu.org>.
27497
27498 2010-05-27  Jim Meyering  <meyering@redhat.com>
27499
27500         maint.mk: also prohibit "#undef" of always-defined symbols
27501         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27502         Allow more than one space before the symbol name.
27503         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27504         the regexp uses alternation.
27505
27506 2010-05-26  Eric Blake  <eblake@redhat.com>
27507
27508         maint.mk: avoid echo -e
27509         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27510         Convert all uses of echo -* to printf.
27511         Reported by Matthias Bolte.
27512
27513 2010-05-25  Bruno Haible  <bruno@clisp.org>
27514
27515         Update to GNU gettext 0.18, part 2.
27516         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27517         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27518
27519 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27520
27521         Add missing include in test-pwrite.c.
27522         * tests/test-pwrite.c: Include string.h, for strcmp.
27523
27524 2010-05-24  Bruno Haible  <bruno@clisp.org>
27525
27526         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27527
27528 2010-05-24  Bruno Haible  <bruno@clisp.org>
27529
27530         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27531         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27532         iconveh_error argument.
27533         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27534         U_STRCONV_TO_LOCALE.
27535         * lib/unistr/u16-strcoll.c: Likewise.
27536         * lib/unistr/u32-strcoll.c: Likewise.
27537         * modules/unistr/u8-strcoll (Depends-on): Add
27538         uniconv/u8-strconv-to-enc, localcharset. Remove
27539         uniconv/u8-strconv-to-locale.
27540         (configure.ac): Bump version number.
27541         * modules/unistr/u16-strcoll (Depends-on): Add
27542         uniconv/u16-strconv-to-enc, localcharset. Remove
27543         uniconv/u16-strconv-to-locale.
27544         (configure.ac): Bump version number.
27545         * modules/unistr/u32-strcoll (Depends-on): Add
27546         uniconv/u32-strconv-to-enc, localcharset. Remove
27547         uniconv/u32-strconv-to-locale.
27548         (configure.ac): Bump version number.
27549
27550 2010-05-24  Bruno Haible  <bruno@clisp.org>
27551
27552         Avoid a test failure on NetBSD 5.0.
27553         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27554         an iconv() bug.
27555
27556 2010-05-24  Bruno Haible  <bruno@clisp.org>
27557
27558         Adjust #include directive style.
27559         * modules/regex (Includes): Recommend to write <regex.h>.
27560
27561 2010-05-24  Bruno Haible  <bruno@clisp.org>
27562
27563         regex: Don't require alloca.
27564         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27565         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27566         only inside if (0).
27567
27568 2010-05-23  Jim Meyering  <meyering@redhat.com>
27569
27570         test-renameat.c: include <sys/stat.h>
27571         * tests/test-renameat.c: Include <sys/stat.h>; required for
27572         definition of S_IS* macros.
27573
27574 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27575
27576         Update maintainer documentation for 'relocatable-prog' module.
27577         * doc/relocatable-maint.texi: Update.
27578         Comments by Bruno Haible.
27579
27580 2010-05-23  Bruno Haible  <bruno@clisp.org>
27581
27582         git-merge-changelog: Enable --split-merged-entry by default.
27583         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27584         (usage): Don't mention this option any more.
27585         Reported by Ralf Wildenhues.
27586
27587 2010-05-23  Jim Meyering  <meyering@redhat.com>
27588
27589         test-pwrite: do not leave behind a test file named "out"
27590         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27591         The trivial-looking use of init.sh is really necessary.
27592         It ensures that the temporary file, "out", is created in
27593         a temporary directory, and removed upon termination.
27594         * tests/test-pwrite.sh: Re-add file.
27595         * modules/pwrite-tests: Reference it.
27596
27597 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27598
27599         Fix output redirection buglet in init.sh.
27600         * tests/init.sh: Fix redirection of stderr.
27601
27602 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27603
27604         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27605
27606 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27607
27608         * modules/valgrind-tests: New file.
27609         * m4/valgrind-tests.m4: New file.
27610         * doc/valgrind-tests.texi: New file.
27611         * doc/gnulib.texi (Running self-tests under valgrind): New
27612         section.
27613
27614 2010-05-19  Bruno Haible  <bruno@clisp.org>
27615
27616         Clean up dead code in recent commit.
27617         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27618         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27619         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27620         Suggested by Paolo Bonzini.
27621
27622 2010-05-19  Bruno Haible  <bruno@clisp.org>
27623
27624         Avoid valgrind error reports from libunistring.
27625         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27626         * modules/libunistring (Files): Add it.
27627         * modules/libunistring-optional (Files): Likewise.
27628
27629 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27630             Bruno Haible  <bruno@clisp.org>
27631
27632         New module 'libunistring-optional'.
27633         * modules/libunistring-optional: New file.
27634         * m4/libunistring-base.m4: New file.
27635         * m4/libunistring-optional.m4: New file.
27636         * lib/unicase.in.h: Renamed from lib/unicase.h.
27637         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27638         * lib/unictype.in.h: Renamed from lib/unictype.h.
27639         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27640         * lib/uniname.in.h: Renamed from lib/uniname.h.
27641         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27642         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27643         * lib/unistr.in.h: Renamed from lib/unistr.h.
27644         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27645         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27646         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27647         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27648         gl_LIBUNISTRING. If the library was found, determine the installed
27649         version and set LIBUNISTRING_VERSION.
27650         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27651         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27652         handle a configuration option --with-included-libunistring.
27653         * modules/libunistring (Files): Add m4/absolute-header.m4.
27654         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27655         Add m4/libunistring-base.m4.
27656         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27657         (Makefile.am): Build unicase.h from unicase.in.h.
27658         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27659         Add m4/libunistring-base.m4.
27660         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27661         (Makefile.am): Build uniconv.h from uniconv.in.h.
27662         * modules/unictype/base (Files): Use unictype.in.h instead of
27663         unictype.h. Add m4/libunistring-base.m4.
27664         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27665         (Makefile.am): Build unictype.h from unictype.in.h.
27666         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27667         Add m4/libunistring-base.m4.
27668         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27669         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27670         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27671         Add m4/libunistring-base.m4.
27672         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27673         (Makefile.am): Build uniname.h from uniname.in.h.
27674         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27675         Add m4/libunistring-base.m4.
27676         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27677         (Makefile.am): Build uninorm.h from uninorm.in.h.
27678         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27679         unistdio.h. Add m4/libunistring-base.m4.
27680         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27681         (Makefile.am): Build unistdio.h from unistdio.in.h.
27682         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27683         Add m4/libunistring-base.m4.
27684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27685         (Makefile.am): Build unistr.h from unistr.in.h.
27686         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27687         Add m4/libunistring-base.m4.
27688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27689         (Makefile.am): Build unitypes.h from unitypes.in.h.
27690         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27691         Add m4/libunistring-base.m4.
27692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27693         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27694         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27695         uniwidth.h. Add m4/libunistring-base.m4.
27696         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27697         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27698         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27699         instead of augmenting lib_SOURCES.
27700         * modules/unicase/empty-suffix-context: Likewise.
27701         * modules/unicase/locale-language: Likewise.
27702         * modules/unicase/tolower: Likewise.
27703         * modules/unicase/totitle: Likewise.
27704         * modules/unicase/toupper: Likewise.
27705         * modules/unicase/u8-casecmp: Likewise.
27706         * modules/unicase/u8-casecoll: Likewise.
27707         * modules/unicase/u8-casefold: Likewise.
27708         * modules/unicase/u8-casexfrm: Likewise.
27709         * modules/unicase/u8-ct-casefold: Likewise.
27710         * modules/unicase/u8-ct-tolower: Likewise.
27711         * modules/unicase/u8-ct-totitle: Likewise.
27712         * modules/unicase/u8-ct-toupper: Likewise.
27713         * modules/unicase/u8-is-cased: Likewise.
27714         * modules/unicase/u8-is-casefolded: Likewise.
27715         * modules/unicase/u8-is-lowercase: Likewise.
27716         * modules/unicase/u8-is-titlecase: Likewise.
27717         * modules/unicase/u8-is-uppercase: Likewise.
27718         * modules/unicase/u8-prefix-context: Likewise.
27719         * modules/unicase/u8-suffix-context: Likewise.
27720         * modules/unicase/u8-tolower: Likewise.
27721         * modules/unicase/u8-totitle: Likewise.
27722         * modules/unicase/u8-toupper: Likewise.
27723         * modules/unicase/u16-casecmp: Likewise.
27724         * modules/unicase/u16-casecoll: Likewise.
27725         * modules/unicase/u16-casefold: Likewise.
27726         * modules/unicase/u16-casexfrm: Likewise.
27727         * modules/unicase/u16-ct-casefold: Likewise.
27728         * modules/unicase/u16-ct-tolower: Likewise.
27729         * modules/unicase/u16-ct-totitle: Likewise.
27730         * modules/unicase/u16-ct-toupper: Likewise.
27731         * modules/unicase/u16-is-cased: Likewise.
27732         * modules/unicase/u16-is-casefolded: Likewise.
27733         * modules/unicase/u16-is-lowercase: Likewise.
27734         * modules/unicase/u16-is-titlecase: Likewise.
27735         * modules/unicase/u16-is-uppercase: Likewise.
27736         * modules/unicase/u16-prefix-context: Likewise.
27737         * modules/unicase/u16-suffix-context: Likewise.
27738         * modules/unicase/u16-tolower: Likewise.
27739         * modules/unicase/u16-totitle: Likewise.
27740         * modules/unicase/u16-toupper: Likewise.
27741         * modules/unicase/u32-casecmp: Likewise.
27742         * modules/unicase/u32-casecoll: Likewise.
27743         * modules/unicase/u32-casefold: Likewise.
27744         * modules/unicase/u32-casexfrm: Likewise.
27745         * modules/unicase/u32-ct-casefold: Likewise.
27746         * modules/unicase/u32-ct-tolower: Likewise.
27747         * modules/unicase/u32-ct-totitle: Likewise.
27748         * modules/unicase/u32-ct-toupper: Likewise.
27749         * modules/unicase/u32-is-cased: Likewise.
27750         * modules/unicase/u32-is-casefolded: Likewise.
27751         * modules/unicase/u32-is-lowercase: Likewise.
27752         * modules/unicase/u32-is-titlecase: Likewise.
27753         * modules/unicase/u32-is-uppercase: Likewise.
27754         * modules/unicase/u32-prefix-context: Likewise.
27755         * modules/unicase/u32-suffix-context: Likewise.
27756         * modules/unicase/u32-tolower: Likewise.
27757         * modules/unicase/u32-totitle: Likewise.
27758         * modules/unicase/u32-toupper: Likewise.
27759         * modules/unicase/ulc-casecmp: Likewise.
27760         * modules/unicase/ulc-casecoll: Likewise.
27761         * modules/unicase/ulc-casexfrm: Likewise.
27762         * modules/uniconv/u8-conv-from-enc: Likewise.
27763         * modules/uniconv/u8-conv-to-enc: Likewise.
27764         * modules/uniconv/u8-strconv-from-enc: Likewise.
27765         * modules/uniconv/u8-strconv-from-locale: Likewise.
27766         * modules/uniconv/u8-strconv-to-enc: Likewise.
27767         * modules/uniconv/u8-strconv-to-locale: Likewise.
27768         * modules/uniconv/u16-conv-from-enc: Likewise.
27769         * modules/uniconv/u16-conv-to-enc: Likewise.
27770         * modules/uniconv/u16-strconv-from-enc: Likewise.
27771         * modules/uniconv/u16-strconv-from-locale: Likewise.
27772         * modules/uniconv/u16-strconv-to-enc: Likewise.
27773         * modules/uniconv/u16-strconv-to-locale: Likewise.
27774         * modules/uniconv/u32-conv-from-enc: Likewise.
27775         * modules/uniconv/u32-conv-to-enc: Likewise.
27776         * modules/uniconv/u32-strconv-from-enc: Likewise.
27777         * modules/uniconv/u32-strconv-from-locale: Likewise.
27778         * modules/uniconv/u32-strconv-to-enc: Likewise.
27779         * modules/uniconv/u32-strconv-to-locale: Likewise.
27780         * modules/unictype/bidicategory-byname: Likewise.
27781         * modules/unictype/bidicategory-name: Likewise.
27782         * modules/unictype/bidicategory-of: Likewise.
27783         * modules/unictype/bidicategory-test: Likewise.
27784         * modules/unictype/block-list: Likewise.
27785         * modules/unictype/block-test: Likewise.
27786         * modules/unictype/category-C: Likewise.
27787         * modules/unictype/category-Cc: Likewise.
27788         * modules/unictype/category-Cf: Likewise.
27789         * modules/unictype/category-Cn: Likewise.
27790         * modules/unictype/category-Co: Likewise.
27791         * modules/unictype/category-Cs: Likewise.
27792         * modules/unictype/category-L: Likewise.
27793         * modules/unictype/category-Ll: Likewise.
27794         * modules/unictype/category-Lm: Likewise.
27795         * modules/unictype/category-Lo: Likewise.
27796         * modules/unictype/category-Lt: Likewise.
27797         * modules/unictype/category-Lu: Likewise.
27798         * modules/unictype/category-M: Likewise.
27799         * modules/unictype/category-Mc: Likewise.
27800         * modules/unictype/category-Me: Likewise.
27801         * modules/unictype/category-Mn: Likewise.
27802         * modules/unictype/category-N: Likewise.
27803         * modules/unictype/category-Nd: Likewise.
27804         * modules/unictype/category-Nl: Likewise.
27805         * modules/unictype/category-No: Likewise.
27806         * modules/unictype/category-P: Likewise.
27807         * modules/unictype/category-Pc: Likewise.
27808         * modules/unictype/category-Pd: Likewise.
27809         * modules/unictype/category-Pe: Likewise.
27810         * modules/unictype/category-Pf: Likewise.
27811         * modules/unictype/category-Pi: Likewise.
27812         * modules/unictype/category-Po: Likewise.
27813         * modules/unictype/category-Ps: Likewise.
27814         * modules/unictype/category-S: Likewise.
27815         * modules/unictype/category-Sc: Likewise.
27816         * modules/unictype/category-Sk: Likewise.
27817         * modules/unictype/category-Sm: Likewise.
27818         * modules/unictype/category-So: Likewise.
27819         * modules/unictype/category-Z: Likewise.
27820         * modules/unictype/category-Zl: Likewise.
27821         * modules/unictype/category-Zp: Likewise.
27822         * modules/unictype/category-Zs: Likewise.
27823         * modules/unictype/category-and: Likewise.
27824         * modules/unictype/category-and-not: Likewise.
27825         * modules/unictype/category-byname: Likewise.
27826         * modules/unictype/category-name: Likewise.
27827         * modules/unictype/category-none: Likewise.
27828         * modules/unictype/category-of: Likewise.
27829         * modules/unictype/category-or: Likewise.
27830         * modules/unictype/category-test: Likewise.
27831         * modules/unictype/combining-class: Likewise.
27832         * modules/unictype/ctype-alnum: Likewise.
27833         * modules/unictype/ctype-alpha: Likewise.
27834         * modules/unictype/ctype-blank: Likewise.
27835         * modules/unictype/ctype-cntrl: Likewise.
27836         * modules/unictype/ctype-digit: Likewise.
27837         * modules/unictype/ctype-graph: Likewise.
27838         * modules/unictype/ctype-lower: Likewise.
27839         * modules/unictype/ctype-print: Likewise.
27840         * modules/unictype/ctype-punct: Likewise.
27841         * modules/unictype/ctype-space: Likewise.
27842         * modules/unictype/ctype-upper: Likewise.
27843         * modules/unictype/ctype-xdigit: Likewise.
27844         * modules/unictype/decimal-digit: Likewise.
27845         * modules/unictype/digit: Likewise.
27846         * modules/unictype/mirror: Likewise.
27847         * modules/unictype/numeric: Likewise.
27848         * modules/unictype/property-alphabetic: Likewise.
27849         * modules/unictype/property-ascii-hex-digit: Likewise.
27850         * modules/unictype/property-bidi-arabic-digit: Likewise.
27851         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27852         * modules/unictype/property-bidi-block-separator: Likewise.
27853         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27854         * modules/unictype/property-bidi-common-separator: Likewise.
27855         * modules/unictype/property-bidi-control: Likewise.
27856         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27857         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27858         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27859         * modules/unictype/property-bidi-european-digit: Likewise.
27860         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27861         * modules/unictype/property-bidi-left-to-right: Likewise.
27862         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27863         * modules/unictype/property-bidi-other-neutral: Likewise.
27864         * modules/unictype/property-bidi-pdf: Likewise.
27865         * modules/unictype/property-bidi-segment-separator: Likewise.
27866         * modules/unictype/property-bidi-whitespace: Likewise.
27867         * modules/unictype/property-byname: Likewise.
27868         * modules/unictype/property-combining: Likewise.
27869         * modules/unictype/property-composite: Likewise.
27870         * modules/unictype/property-currency-symbol: Likewise.
27871         * modules/unictype/property-dash: Likewise.
27872         * modules/unictype/property-decimal-digit: Likewise.
27873         * modules/unictype/property-default-ignorable-code-point: Likewise.
27874         * modules/unictype/property-deprecated: Likewise.
27875         * modules/unictype/property-diacritic: Likewise.
27876         * modules/unictype/property-extender: Likewise.
27877         * modules/unictype/property-format-control: Likewise.
27878         * modules/unictype/property-grapheme-base: Likewise.
27879         * modules/unictype/property-grapheme-extend: Likewise.
27880         * modules/unictype/property-grapheme-link: Likewise.
27881         * modules/unictype/property-hex-digit: Likewise.
27882         * modules/unictype/property-hyphen: Likewise.
27883         * modules/unictype/property-id-continue: Likewise.
27884         * modules/unictype/property-id-start: Likewise.
27885         * modules/unictype/property-ideographic: Likewise.
27886         * modules/unictype/property-ids-binary-operator: Likewise.
27887         * modules/unictype/property-ids-trinary-operator: Likewise.
27888         * modules/unictype/property-ignorable-control: Likewise.
27889         * modules/unictype/property-iso-control: Likewise.
27890         * modules/unictype/property-join-control: Likewise.
27891         * modules/unictype/property-left-of-pair: Likewise.
27892         * modules/unictype/property-line-separator: Likewise.
27893         * modules/unictype/property-logical-order-exception: Likewise.
27894         * modules/unictype/property-lowercase: Likewise.
27895         * modules/unictype/property-math: Likewise.
27896         * modules/unictype/property-non-break: Likewise.
27897         * modules/unictype/property-not-a-character: Likewise.
27898         * modules/unictype/property-numeric: Likewise.
27899         * modules/unictype/property-other-alphabetic: Likewise.
27900         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27901         * modules/unictype/property-other-grapheme-extend: Likewise.
27902         * modules/unictype/property-other-id-continue: Likewise.
27903         * modules/unictype/property-other-id-start: Likewise.
27904         * modules/unictype/property-other-lowercase: Likewise.
27905         * modules/unictype/property-other-math: Likewise.
27906         * modules/unictype/property-other-uppercase: Likewise.
27907         * modules/unictype/property-paired-punctuation: Likewise.
27908         * modules/unictype/property-paragraph-separator: Likewise.
27909         * modules/unictype/property-pattern-syntax: Likewise.
27910         * modules/unictype/property-pattern-white-space: Likewise.
27911         * modules/unictype/property-private-use: Likewise.
27912         * modules/unictype/property-punctuation: Likewise.
27913         * modules/unictype/property-quotation-mark: Likewise.
27914         * modules/unictype/property-radical: Likewise.
27915         * modules/unictype/property-sentence-terminal: Likewise.
27916         * modules/unictype/property-soft-dotted: Likewise.
27917         * modules/unictype/property-space: Likewise.
27918         * modules/unictype/property-terminal-punctuation: Likewise.
27919         * modules/unictype/property-test: Likewise.
27920         * modules/unictype/property-titlecase: Likewise.
27921         * modules/unictype/property-unassigned-code-value: Likewise.
27922         * modules/unictype/property-unified-ideograph: Likewise.
27923         * modules/unictype/property-uppercase: Likewise.
27924         * modules/unictype/property-variation-selector: Likewise.
27925         * modules/unictype/property-white-space: Likewise.
27926         * modules/unictype/property-xid-continue: Likewise.
27927         * modules/unictype/property-xid-start: Likewise.
27928         * modules/unictype/property-zero-width: Likewise.
27929         * modules/unictype/scripts: Likewise.
27930         * modules/unictype/syntax-c-ident: Likewise.
27931         * modules/unictype/syntax-c-whitespace: Likewise.
27932         * modules/unictype/syntax-java-ident: Likewise.
27933         * modules/unictype/syntax-java-whitespace: Likewise.
27934         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27935         * modules/unilbrk/u8-width-linebreaks: Likewise.
27936         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27937         * modules/unilbrk/u16-width-linebreaks: Likewise.
27938         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27939         * modules/unilbrk/u32-width-linebreaks: Likewise.
27940         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27941         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27942         * modules/uniname/uniname: Likewise.
27943         * modules/uninorm/canonical-decomposition: Likewise.
27944         * modules/uninorm/composition: Likewise.
27945         * modules/uninorm/decomposing-form: Likewise.
27946         * modules/uninorm/decomposition: Likewise.
27947         * modules/uninorm/filter: Likewise.
27948         * modules/uninorm/nfc: Likewise.
27949         * modules/uninorm/nfd: Likewise.
27950         * modules/uninorm/nfkc: Likewise.
27951         * modules/uninorm/nfkd: Likewise.
27952         * modules/uninorm/u8-normalize: Likewise.
27953         * modules/uninorm/u8-normcmp: Likewise.
27954         * modules/uninorm/u8-normcoll: Likewise.
27955         * modules/uninorm/u8-normxfrm: Likewise.
27956         * modules/uninorm/u16-normalize: Likewise.
27957         * modules/uninorm/u16-normcmp: Likewise.
27958         * modules/uninorm/u16-normcoll: Likewise.
27959         * modules/uninorm/u16-normxfrm: Likewise.
27960         * modules/uninorm/u32-normalize: Likewise.
27961         * modules/uninorm/u32-normcmp: Likewise.
27962         * modules/uninorm/u32-normcoll: Likewise.
27963         * modules/uninorm/u32-normxfrm: Likewise.
27964         * modules/unistdio/u8-asnprintf: Likewise.
27965         * modules/unistdio/u8-asprintf: Likewise.
27966         * modules/unistdio/u8-snprintf: Likewise.
27967         * modules/unistdio/u8-sprintf: Likewise.
27968         * modules/unistdio/u8-u8-asnprintf: Likewise.
27969         * modules/unistdio/u8-u8-asprintf: Likewise.
27970         * modules/unistdio/u8-u8-snprintf: Likewise.
27971         * modules/unistdio/u8-u8-sprintf: Likewise.
27972         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27973         * modules/unistdio/u8-u8-vasprintf: Likewise.
27974         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27975         * modules/unistdio/u8-u8-vsprintf: Likewise.
27976         * modules/unistdio/u8-vasnprintf: Likewise.
27977         * modules/unistdio/u8-vasprintf: Likewise.
27978         * modules/unistdio/u8-vsnprintf: Likewise.
27979         * modules/unistdio/u8-vsprintf: Likewise.
27980         * modules/unistdio/u16-asnprintf: Likewise.
27981         * modules/unistdio/u16-asprintf: Likewise.
27982         * modules/unistdio/u16-snprintf: Likewise.
27983         * modules/unistdio/u16-sprintf: Likewise.
27984         * modules/unistdio/u16-u16-asnprintf: Likewise.
27985         * modules/unistdio/u16-u16-asprintf: Likewise.
27986         * modules/unistdio/u16-u16-snprintf: Likewise.
27987         * modules/unistdio/u16-u16-sprintf: Likewise.
27988         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27989         * modules/unistdio/u16-u16-vasprintf: Likewise.
27990         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27991         * modules/unistdio/u16-u16-vsprintf: Likewise.
27992         * modules/unistdio/u16-vasnprintf: Likewise.
27993         * modules/unistdio/u16-vasprintf: Likewise.
27994         * modules/unistdio/u16-vsnprintf: Likewise.
27995         * modules/unistdio/u16-vsprintf: Likewise.
27996         * modules/unistdio/u32-asnprintf: Likewise.
27997         * modules/unistdio/u32-asprintf: Likewise.
27998         * modules/unistdio/u32-snprintf: Likewise.
27999         * modules/unistdio/u32-sprintf: Likewise.
28000         * modules/unistdio/u32-u32-asnprintf: Likewise.
28001         * modules/unistdio/u32-u32-asprintf: Likewise.
28002         * modules/unistdio/u32-u32-snprintf: Likewise.
28003         * modules/unistdio/u32-u32-sprintf: Likewise.
28004         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28005         * modules/unistdio/u32-u32-vasprintf: Likewise.
28006         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28007         * modules/unistdio/u32-u32-vsprintf: Likewise.
28008         * modules/unistdio/u32-vasnprintf: Likewise.
28009         * modules/unistdio/u32-vasprintf: Likewise.
28010         * modules/unistdio/u32-vsnprintf: Likewise.
28011         * modules/unistdio/u32-vsprintf: Likewise.
28012         * modules/unistdio/ulc-asnprintf: Likewise.
28013         * modules/unistdio/ulc-asprintf: Likewise.
28014         * modules/unistdio/ulc-fprintf: Likewise.
28015         * modules/unistdio/ulc-snprintf: Likewise.
28016         * modules/unistdio/ulc-sprintf: Likewise.
28017         * modules/unistdio/ulc-vasnprintf: Likewise.
28018         * modules/unistdio/ulc-vasprintf: Likewise.
28019         * modules/unistdio/ulc-vfprintf: Likewise.
28020         * modules/unistdio/ulc-vsnprintf: Likewise.
28021         * modules/unistdio/ulc-vsprintf: Likewise.
28022         * modules/unistr/u8-check: Likewise.
28023         * modules/unistr/u8-chr: Likewise.
28024         * modules/unistr/u8-cmp: Likewise.
28025         * modules/unistr/u8-cmp2: Likewise.
28026         * modules/unistr/u8-cpy: Likewise.
28027         * modules/unistr/u8-cpy-alloc: Likewise.
28028         * modules/unistr/u8-endswith: Likewise.
28029         * modules/unistr/u8-mblen: Likewise.
28030         * modules/unistr/u8-mbsnlen: Likewise.
28031         * modules/unistr/u8-mbtouc: Likewise.
28032         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28033         * modules/unistr/u8-mbtoucr: Likewise.
28034         * modules/unistr/u8-move: Likewise.
28035         * modules/unistr/u8-next: Likewise.
28036         * modules/unistr/u8-prev: Likewise.
28037         * modules/unistr/u8-set: Likewise.
28038         * modules/unistr/u8-startswith: Likewise.
28039         * modules/unistr/u8-stpcpy: Likewise.
28040         * modules/unistr/u8-stpncpy: Likewise.
28041         * modules/unistr/u8-strcat: Likewise.
28042         * modules/unistr/u8-strchr: Likewise.
28043         * modules/unistr/u8-strcmp: Likewise.
28044         * modules/unistr/u8-strcoll: Likewise.
28045         * modules/unistr/u8-strcpy: Likewise.
28046         * modules/unistr/u8-strcspn: Likewise.
28047         * modules/unistr/u8-strdup: Likewise.
28048         * modules/unistr/u8-strlen: Likewise.
28049         * modules/unistr/u8-strmblen: Likewise.
28050         * modules/unistr/u8-strmbtouc: Likewise.
28051         * modules/unistr/u8-strncat: Likewise.
28052         * modules/unistr/u8-strncmp: Likewise.
28053         * modules/unistr/u8-strncpy: Likewise.
28054         * modules/unistr/u8-strnlen: Likewise.
28055         * modules/unistr/u8-strpbrk: Likewise.
28056         * modules/unistr/u8-strrchr: Likewise.
28057         * modules/unistr/u8-strspn: Likewise.
28058         * modules/unistr/u8-strstr: Likewise.
28059         * modules/unistr/u8-strtok: Likewise.
28060         * modules/unistr/u8-to-u16: Likewise.
28061         * modules/unistr/u8-to-u32: Likewise.
28062         * modules/unistr/u8-uctomb: Likewise.
28063         * modules/unistr/u16-check: Likewise.
28064         * modules/unistr/u16-chr: Likewise.
28065         * modules/unistr/u16-cmp: Likewise.
28066         * modules/unistr/u16-cmp2: Likewise.
28067         * modules/unistr/u16-cpy: Likewise.
28068         * modules/unistr/u16-cpy-alloc: Likewise.
28069         * modules/unistr/u16-endswith: Likewise.
28070         * modules/unistr/u16-mblen: Likewise.
28071         * modules/unistr/u16-mbsnlen: Likewise.
28072         * modules/unistr/u16-mbtouc: Likewise.
28073         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28074         * modules/unistr/u16-mbtoucr: Likewise.
28075         * modules/unistr/u16-move: Likewise.
28076         * modules/unistr/u16-next: Likewise.
28077         * modules/unistr/u16-prev: Likewise.
28078         * modules/unistr/u16-set: Likewise.
28079         * modules/unistr/u16-startswith: Likewise.
28080         * modules/unistr/u16-stpcpy: Likewise.
28081         * modules/unistr/u16-stpncpy: Likewise.
28082         * modules/unistr/u16-strcat: Likewise.
28083         * modules/unistr/u16-strchr: Likewise.
28084         * modules/unistr/u16-strcmp: Likewise.
28085         * modules/unistr/u16-strcoll: Likewise.
28086         * modules/unistr/u16-strcpy: Likewise.
28087         * modules/unistr/u16-strcspn: Likewise.
28088         * modules/unistr/u16-strdup: Likewise.
28089         * modules/unistr/u16-strlen: Likewise.
28090         * modules/unistr/u16-strmblen: Likewise.
28091         * modules/unistr/u16-strmbtouc: Likewise.
28092         * modules/unistr/u16-strncat: Likewise.
28093         * modules/unistr/u16-strncmp: Likewise.
28094         * modules/unistr/u16-strncpy: Likewise.
28095         * modules/unistr/u16-strnlen: Likewise.
28096         * modules/unistr/u16-strpbrk: Likewise.
28097         * modules/unistr/u16-strrchr: Likewise.
28098         * modules/unistr/u16-strspn: Likewise.
28099         * modules/unistr/u16-strstr: Likewise.
28100         * modules/unistr/u16-strtok: Likewise.
28101         * modules/unistr/u16-to-u32: Likewise.
28102         * modules/unistr/u16-to-u8: Likewise.
28103         * modules/unistr/u16-uctomb: Likewise.
28104         * modules/unistr/u32-check: Likewise.
28105         * modules/unistr/u32-chr: Likewise.
28106         * modules/unistr/u32-cmp: Likewise.
28107         * modules/unistr/u32-cmp2: Likewise.
28108         * modules/unistr/u32-cpy: Likewise.
28109         * modules/unistr/u32-cpy-alloc: Likewise.
28110         * modules/unistr/u32-endswith: Likewise.
28111         * modules/unistr/u32-mblen: Likewise.
28112         * modules/unistr/u32-mbsnlen: Likewise.
28113         * modules/unistr/u32-mbtouc: Likewise.
28114         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28115         * modules/unistr/u32-mbtoucr: Likewise.
28116         * modules/unistr/u32-move: Likewise.
28117         * modules/unistr/u32-next: Likewise.
28118         * modules/unistr/u32-prev: Likewise.
28119         * modules/unistr/u32-set: Likewise.
28120         * modules/unistr/u32-startswith: Likewise.
28121         * modules/unistr/u32-stpcpy: Likewise.
28122         * modules/unistr/u32-stpncpy: Likewise.
28123         * modules/unistr/u32-strcat: Likewise.
28124         * modules/unistr/u32-strchr: Likewise.
28125         * modules/unistr/u32-strcmp: Likewise.
28126         * modules/unistr/u32-strcoll: Likewise.
28127         * modules/unistr/u32-strcpy: Likewise.
28128         * modules/unistr/u32-strcspn: Likewise.
28129         * modules/unistr/u32-strdup: Likewise.
28130         * modules/unistr/u32-strlen: Likewise.
28131         * modules/unistr/u32-strmblen: Likewise.
28132         * modules/unistr/u32-strmbtouc: Likewise.
28133         * modules/unistr/u32-strncat: Likewise.
28134         * modules/unistr/u32-strncmp: Likewise.
28135         * modules/unistr/u32-strncpy: Likewise.
28136         * modules/unistr/u32-strnlen: Likewise.
28137         * modules/unistr/u32-strpbrk: Likewise.
28138         * modules/unistr/u32-strrchr: Likewise.
28139         * modules/unistr/u32-strspn: Likewise.
28140         * modules/unistr/u32-strstr: Likewise.
28141         * modules/unistr/u32-strtok: Likewise.
28142         * modules/unistr/u32-to-u16: Likewise.
28143         * modules/unistr/u32-to-u8: Likewise.
28144         * modules/unistr/u32-uctomb: Likewise.
28145         * modules/uniwbrk/u8-wordbreaks: Likewise.
28146         * modules/uniwbrk/u16-wordbreaks: Likewise.
28147         * modules/uniwbrk/u32-wordbreaks: Likewise.
28148         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28149         * modules/uniwbrk/wordbreak-property: Likewise.
28150         * modules/uniwidth/u8-strwidth: Likewise.
28151         * modules/uniwidth/u8-width: Likewise.
28152         * modules/uniwidth/u16-strwidth: Likewise.
28153         * modules/uniwidth/u16-width: Likewise.
28154         * modules/uniwidth/u32-strwidth: Likewise.
28155         * modules/uniwidth/u32-width: Likewise.
28156         * modules/uniwidth/width: Likewise.
28157         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28158         with $(LIBUNISTRING).
28159         * modules/unicase/ignorable-tests: Likewise.
28160         * modules/unicase/locale-language-tests: Likewise.
28161         * modules/unicase/tolower-tests: Likewise.
28162         * modules/unicase/totitle-tests: Likewise.
28163         * modules/unicase/toupper-tests: Likewise.
28164         * modules/unicase/u8-casecmp-tests: Likewise.
28165         * modules/unicase/u8-casecoll-tests: Likewise.
28166         * modules/unicase/u8-casefold-tests: Likewise.
28167         * modules/unicase/u8-is-cased-tests: Likewise.
28168         * modules/unicase/u8-is-casefolded-tests: Likewise.
28169         * modules/unicase/u8-is-lowercase-tests: Likewise.
28170         * modules/unicase/u8-is-titlecase-tests: Likewise.
28171         * modules/unicase/u8-is-uppercase-tests: Likewise.
28172         * modules/unicase/u8-tolower-tests: Likewise.
28173         * modules/unicase/u8-totitle-tests: Likewise.
28174         * modules/unicase/u8-toupper-tests: Likewise.
28175         * modules/unicase/u16-casecmp-tests: Likewise.
28176         * modules/unicase/u16-casecoll-tests: Likewise.
28177         * modules/unicase/u16-casefold-tests: Likewise.
28178         * modules/unicase/u16-is-cased-tests: Likewise.
28179         * modules/unicase/u16-is-casefolded-tests: Likewise.
28180         * modules/unicase/u16-is-lowercase-tests: Likewise.
28181         * modules/unicase/u16-is-titlecase-tests: Likewise.
28182         * modules/unicase/u16-is-uppercase-tests: Likewise.
28183         * modules/unicase/u16-tolower-tests: Likewise.
28184         * modules/unicase/u16-totitle-tests: Likewise.
28185         * modules/unicase/u16-toupper-tests: Likewise.
28186         * modules/unicase/u32-casecmp-tests: Likewise.
28187         * modules/unicase/u32-casecoll-tests: Likewise.
28188         * modules/unicase/u32-casefold-tests: Likewise.
28189         * modules/unicase/u32-is-cased-tests: Likewise.
28190         * modules/unicase/u32-is-casefolded-tests: Likewise.
28191         * modules/unicase/u32-is-lowercase-tests: Likewise.
28192         * modules/unicase/u32-is-titlecase-tests: Likewise.
28193         * modules/unicase/u32-is-uppercase-tests: Likewise.
28194         * modules/unicase/u32-tolower-tests: Likewise.
28195         * modules/unicase/u32-totitle-tests: Likewise.
28196         * modules/unicase/u32-toupper-tests: Likewise.
28197         * modules/unicase/ulc-casecmp-tests: Likewise.
28198         * modules/unicase/ulc-casecoll-tests: Likewise.
28199         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28200         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28201         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28202         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28203         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28204         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28205         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28206         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28207         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28208         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28209         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28210         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28211         * modules/unictype/bidicategory-byname-tests: Likewise.
28212         * modules/unictype/bidicategory-name-tests: Likewise.
28213         * modules/unictype/bidicategory-of-tests: Likewise.
28214         * modules/unictype/bidicategory-test-tests: Likewise.
28215         * modules/unictype/block-list-tests: Likewise.
28216         * modules/unictype/block-of-tests: Likewise.
28217         * modules/unictype/block-test-tests: Likewise.
28218         * modules/unictype/category-C-tests: Likewise.
28219         * modules/unictype/category-Cc-tests: Likewise.
28220         * modules/unictype/category-Cf-tests: Likewise.
28221         * modules/unictype/category-Cn-tests: Likewise.
28222         * modules/unictype/category-Co-tests: Likewise.
28223         * modules/unictype/category-Cs-tests: Likewise.
28224         * modules/unictype/category-L-tests: Likewise.
28225         * modules/unictype/category-Ll-tests: Likewise.
28226         * modules/unictype/category-Lm-tests: Likewise.
28227         * modules/unictype/category-Lo-tests: Likewise.
28228         * modules/unictype/category-Lt-tests: Likewise.
28229         * modules/unictype/category-Lu-tests: Likewise.
28230         * modules/unictype/category-M-tests: Likewise.
28231         * modules/unictype/category-Mc-tests: Likewise.
28232         * modules/unictype/category-Me-tests: Likewise.
28233         * modules/unictype/category-Mn-tests: Likewise.
28234         * modules/unictype/category-N-tests: Likewise.
28235         * modules/unictype/category-Nd-tests: Likewise.
28236         * modules/unictype/category-Nl-tests: Likewise.
28237         * modules/unictype/category-No-tests: Likewise.
28238         * modules/unictype/category-P-tests: Likewise.
28239         * modules/unictype/category-Pc-tests: Likewise.
28240         * modules/unictype/category-Pd-tests: Likewise.
28241         * modules/unictype/category-Pe-tests: Likewise.
28242         * modules/unictype/category-Pf-tests: Likewise.
28243         * modules/unictype/category-Pi-tests: Likewise.
28244         * modules/unictype/category-Po-tests: Likewise.
28245         * modules/unictype/category-Ps-tests: Likewise.
28246         * modules/unictype/category-S-tests: Likewise.
28247         * modules/unictype/category-Sc-tests: Likewise.
28248         * modules/unictype/category-Sk-tests: Likewise.
28249         * modules/unictype/category-Sm-tests: Likewise.
28250         * modules/unictype/category-So-tests: Likewise.
28251         * modules/unictype/category-Z-tests: Likewise.
28252         * modules/unictype/category-Zl-tests: Likewise.
28253         * modules/unictype/category-Zp-tests: Likewise.
28254         * modules/unictype/category-Zs-tests: Likewise.
28255         * modules/unictype/category-and-not-tests: Likewise.
28256         * modules/unictype/category-and-tests: Likewise.
28257         * modules/unictype/category-byname-tests: Likewise.
28258         * modules/unictype/category-name-tests: Likewise.
28259         * modules/unictype/category-none-tests: Likewise.
28260         * modules/unictype/category-of-tests: Likewise.
28261         * modules/unictype/category-or-tests: Likewise.
28262         * modules/unictype/category-test-withtable-tests: Likewise.
28263         * modules/unictype/combining-class-tests: Likewise.
28264         * modules/unictype/ctype-alnum-tests: Likewise.
28265         * modules/unictype/ctype-alpha-tests: Likewise.
28266         * modules/unictype/ctype-blank-tests: Likewise.
28267         * modules/unictype/ctype-cntrl-tests: Likewise.
28268         * modules/unictype/ctype-digit-tests: Likewise.
28269         * modules/unictype/ctype-graph-tests: Likewise.
28270         * modules/unictype/ctype-lower-tests: Likewise.
28271         * modules/unictype/ctype-print-tests: Likewise.
28272         * modules/unictype/ctype-punct-tests: Likewise.
28273         * modules/unictype/ctype-space-tests: Likewise.
28274         * modules/unictype/ctype-upper-tests: Likewise.
28275         * modules/unictype/ctype-xdigit-tests: Likewise.
28276         * modules/unictype/decimal-digit-tests: Likewise.
28277         * modules/unictype/digit-tests: Likewise.
28278         * modules/unictype/mirror-tests: Likewise.
28279         * modules/unictype/numeric-tests: Likewise.
28280         * modules/unictype/property-alphabetic-tests: Likewise.
28281         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28282         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28283         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28284         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28285         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28286         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28287         * modules/unictype/property-bidi-control-tests: Likewise.
28288         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28289         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28290         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28291         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28292         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28293         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28294         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28295         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28296         * modules/unictype/property-bidi-pdf-tests: Likewise.
28297         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28298         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28299         * modules/unictype/property-byname-tests: Likewise.
28300         * modules/unictype/property-combining-tests: Likewise.
28301         * modules/unictype/property-composite-tests: Likewise.
28302         * modules/unictype/property-currency-symbol-tests: Likewise.
28303         * modules/unictype/property-dash-tests: Likewise.
28304         * modules/unictype/property-decimal-digit-tests: Likewise.
28305         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28306         * modules/unictype/property-deprecated-tests: Likewise.
28307         * modules/unictype/property-diacritic-tests: Likewise.
28308         * modules/unictype/property-extender-tests: Likewise.
28309         * modules/unictype/property-format-control-tests: Likewise.
28310         * modules/unictype/property-grapheme-base-tests: Likewise.
28311         * modules/unictype/property-grapheme-extend-tests: Likewise.
28312         * modules/unictype/property-grapheme-link-tests: Likewise.
28313         * modules/unictype/property-hex-digit-tests: Likewise.
28314         * modules/unictype/property-hyphen-tests: Likewise.
28315         * modules/unictype/property-id-continue-tests: Likewise.
28316         * modules/unictype/property-id-start-tests: Likewise.
28317         * modules/unictype/property-ideographic-tests: Likewise.
28318         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28319         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28320         * modules/unictype/property-ignorable-control-tests: Likewise.
28321         * modules/unictype/property-iso-control-tests: Likewise.
28322         * modules/unictype/property-join-control-tests: Likewise.
28323         * modules/unictype/property-left-of-pair-tests: Likewise.
28324         * modules/unictype/property-line-separator-tests: Likewise.
28325         * modules/unictype/property-logical-order-exception-tests: Likewise.
28326         * modules/unictype/property-lowercase-tests: Likewise.
28327         * modules/unictype/property-math-tests: Likewise.
28328         * modules/unictype/property-non-break-tests: Likewise.
28329         * modules/unictype/property-not-a-character-tests: Likewise.
28330         * modules/unictype/property-numeric-tests: Likewise.
28331         * modules/unictype/property-other-alphabetic-tests: Likewise.
28332         * modules/unictype/property-other-default-ignorable-code-point-tests:
28333         Likewise.
28334         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28335         * modules/unictype/property-other-id-continue-tests: Likewise.
28336         * modules/unictype/property-other-id-start-tests: Likewise.
28337         * modules/unictype/property-other-lowercase-tests: Likewise.
28338         * modules/unictype/property-other-math-tests: Likewise.
28339         * modules/unictype/property-other-uppercase-tests: Likewise.
28340         * modules/unictype/property-paired-punctuation-tests: Likewise.
28341         * modules/unictype/property-paragraph-separator-tests: Likewise.
28342         * modules/unictype/property-pattern-syntax-tests: Likewise.
28343         * modules/unictype/property-pattern-white-space-tests: Likewise.
28344         * modules/unictype/property-private-use-tests: Likewise.
28345         * modules/unictype/property-punctuation-tests: Likewise.
28346         * modules/unictype/property-quotation-mark-tests: Likewise.
28347         * modules/unictype/property-radical-tests: Likewise.
28348         * modules/unictype/property-sentence-terminal-tests: Likewise.
28349         * modules/unictype/property-soft-dotted-tests: Likewise.
28350         * modules/unictype/property-space-tests: Likewise.
28351         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28352         * modules/unictype/property-test-tests: Likewise.
28353         * modules/unictype/property-titlecase-tests: Likewise.
28354         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28355         * modules/unictype/property-unified-ideograph-tests: Likewise.
28356         * modules/unictype/property-uppercase-tests: Likewise.
28357         * modules/unictype/property-variation-selector-tests: Likewise.
28358         * modules/unictype/property-white-space-tests: Likewise.
28359         * modules/unictype/property-xid-continue-tests: Likewise.
28360         * modules/unictype/property-xid-start-tests: Likewise.
28361         * modules/unictype/property-zero-width-tests: Likewise.
28362         * modules/unictype/scripts-tests: Likewise.
28363         * modules/unictype/syntax-c-ident-tests: Likewise.
28364         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28365         * modules/unictype/syntax-java-ident-tests: Likewise.
28366         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28367         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28368         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28369         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28370         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28371         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28372         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28373         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28374         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28375         * modules/uniname/uniname-tests: Likewise.
28376         * modules/uninorm/canonical-decomposition-tests: Likewise.
28377         * modules/uninorm/compat-decomposition-tests: Likewise.
28378         * modules/uninorm/composition-tests: Likewise.
28379         * modules/uninorm/decomposing-form-tests: Likewise.
28380         * modules/uninorm/decomposition-tests: Likewise.
28381         * modules/uninorm/filter-tests: Likewise.
28382         * modules/uninorm/nfc-tests: Likewise.
28383         * modules/uninorm/nfd-tests: Likewise.
28384         * modules/uninorm/nfkc-tests: Likewise.
28385         * modules/uninorm/nfkd-tests: Likewise.
28386         * modules/uninorm/u8-normcmp-tests: Likewise.
28387         * modules/uninorm/u8-normcoll-tests: Likewise.
28388         * modules/uninorm/u16-normcmp-tests: Likewise.
28389         * modules/uninorm/u16-normcoll-tests: Likewise.
28390         * modules/uninorm/u32-normcmp-tests: Likewise.
28391         * modules/uninorm/u32-normcoll-tests: Likewise.
28392         * modules/unistdio/u8-asnprintf-tests: Likewise.
28393         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28394         * modules/unistdio/u8-vasprintf-tests: Likewise.
28395         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28396         * modules/unistdio/u8-vsprintf-tests: Likewise.
28397         * modules/unistdio/u16-asnprintf-tests: Likewise.
28398         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28399         * modules/unistdio/u16-vasprintf-tests: Likewise.
28400         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28401         * modules/unistdio/u16-vsprintf-tests: Likewise.
28402         * modules/unistdio/u32-asnprintf-tests: Likewise.
28403         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28404         * modules/unistdio/u32-vasprintf-tests: Likewise.
28405         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28406         * modules/unistdio/u32-vsprintf-tests: Likewise.
28407         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28408         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28409         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28410         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28411         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28412         * modules/unistr/u8-check-tests: Likewise.
28413         * modules/unistr/u8-chr-tests: Likewise.
28414         * modules/unistr/u8-cmp-tests: Likewise.
28415         * modules/unistr/u8-cmp2-tests: Likewise.
28416         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28417         * modules/unistr/u8-cpy-tests: Likewise.
28418         * modules/unistr/u8-mblen-tests: Likewise.
28419         * modules/unistr/u8-mbsnlen-tests: Likewise.
28420         * modules/unistr/u8-mbtouc-tests: Likewise.
28421         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28422         * modules/unistr/u8-mbtoucr-tests: Likewise.
28423         * modules/unistr/u8-move-tests: Likewise.
28424         * modules/unistr/u8-next-tests: Likewise.
28425         * modules/unistr/u8-prev-tests: Likewise.
28426         * modules/unistr/u8-set-tests: Likewise.
28427         * modules/unistr/u8-stpcpy-tests: Likewise.
28428         * modules/unistr/u8-stpncpy-tests: Likewise.
28429         * modules/unistr/u8-strcat-tests: Likewise.
28430         * modules/unistr/u8-strcmp-tests: Likewise.
28431         * modules/unistr/u8-strcoll-tests: Likewise.
28432         * modules/unistr/u8-strcpy-tests: Likewise.
28433         * modules/unistr/u8-strdup-tests: Likewise.
28434         * modules/unistr/u8-strlen-tests: Likewise.
28435         * modules/unistr/u8-strmblen-tests: Likewise.
28436         * modules/unistr/u8-strmbtouc-tests: Likewise.
28437         * modules/unistr/u8-strncat-tests: Likewise.
28438         * modules/unistr/u8-strncmp-tests: Likewise.
28439         * modules/unistr/u8-strncpy-tests: Likewise.
28440         * modules/unistr/u8-strnlen-tests: Likewise.
28441         * modules/unistr/u8-to-u16-tests: Likewise.
28442         * modules/unistr/u8-to-u32-tests: Likewise.
28443         * modules/unistr/u8-uctomb-tests: Likewise.
28444         * modules/unistr/u16-check-tests: Likewise.
28445         * modules/unistr/u16-chr-tests: Likewise.
28446         * modules/unistr/u16-cmp-tests: Likewise.
28447         * modules/unistr/u16-cmp2-tests: Likewise.
28448         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28449         * modules/unistr/u16-cpy-tests: Likewise.
28450         * modules/unistr/u16-mblen-tests: Likewise.
28451         * modules/unistr/u16-mbsnlen-tests: Likewise.
28452         * modules/unistr/u16-mbtouc-tests: Likewise.
28453         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28454         * modules/unistr/u16-mbtoucr-tests: Likewise.
28455         * modules/unistr/u16-move-tests: Likewise.
28456         * modules/unistr/u16-next-tests: Likewise.
28457         * modules/unistr/u16-prev-tests: Likewise.
28458         * modules/unistr/u16-set-tests: Likewise.
28459         * modules/unistr/u16-stpcpy-tests: Likewise.
28460         * modules/unistr/u16-stpncpy-tests: Likewise.
28461         * modules/unistr/u16-strcat-tests: Likewise.
28462         * modules/unistr/u16-strcmp-tests: Likewise.
28463         * modules/unistr/u16-strcoll-tests: Likewise.
28464         * modules/unistr/u16-strcpy-tests: Likewise.
28465         * modules/unistr/u16-strdup-tests: Likewise.
28466         * modules/unistr/u16-strlen-tests: Likewise.
28467         * modules/unistr/u16-strmblen-tests: Likewise.
28468         * modules/unistr/u16-strmbtouc-tests: Likewise.
28469         * modules/unistr/u16-strncat-tests: Likewise.
28470         * modules/unistr/u16-strncmp-tests: Likewise.
28471         * modules/unistr/u16-strncpy-tests: Likewise.
28472         * modules/unistr/u16-strnlen-tests: Likewise.
28473         * modules/unistr/u16-to-u32-tests: Likewise.
28474         * modules/unistr/u16-to-u8-tests: Likewise.
28475         * modules/unistr/u16-uctomb-tests: Likewise.
28476         * modules/unistr/u32-check-tests: Likewise.
28477         * modules/unistr/u32-chr-tests: Likewise.
28478         * modules/unistr/u32-cmp-tests: Likewise.
28479         * modules/unistr/u32-cmp2-tests: Likewise.
28480         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28481         * modules/unistr/u32-cpy-tests: Likewise.
28482         * modules/unistr/u32-mblen-tests: Likewise.
28483         * modules/unistr/u32-mbsnlen-tests: Likewise.
28484         * modules/unistr/u32-mbtouc-tests: Likewise.
28485         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28486         * modules/unistr/u32-mbtoucr-tests: Likewise.
28487         * modules/unistr/u32-move-tests: Likewise.
28488         * modules/unistr/u32-next-tests: Likewise.
28489         * modules/unistr/u32-prev-tests: Likewise.
28490         * modules/unistr/u32-set-tests: Likewise.
28491         * modules/unistr/u32-stpcpy-tests: Likewise.
28492         * modules/unistr/u32-stpncpy-tests: Likewise.
28493         * modules/unistr/u32-strcat-tests: Likewise.
28494         * modules/unistr/u32-strcmp-tests: Likewise.
28495         * modules/unistr/u32-strcoll-tests: Likewise.
28496         * modules/unistr/u32-strcpy-tests: Likewise.
28497         * modules/unistr/u32-strdup-tests: Likewise.
28498         * modules/unistr/u32-strlen-tests: Likewise.
28499         * modules/unistr/u32-strmblen-tests: Likewise.
28500         * modules/unistr/u32-strmbtouc-tests: Likewise.
28501         * modules/unistr/u32-strncat-tests: Likewise.
28502         * modules/unistr/u32-strncmp-tests: Likewise.
28503         * modules/unistr/u32-strncpy-tests: Likewise.
28504         * modules/unistr/u32-strnlen-tests: Likewise.
28505         * modules/unistr/u32-to-u16-tests: Likewise.
28506         * modules/unistr/u32-to-u8-tests: Likewise.
28507         * modules/unistr/u32-uctomb-tests: Likewise.
28508         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28509         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28510         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28511         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28512         * modules/uniwidth/u8-strwidth-tests: Likewise.
28513         * modules/uniwidth/u8-width-tests: Likewise.
28514         * modules/uniwidth/u16-strwidth-tests: Likewise.
28515         * modules/uniwidth/u16-width-tests: Likewise.
28516         * modules/uniwidth/u32-strwidth-tests: Likewise.
28517         * modules/uniwidth/u32-width-tests: Likewise.
28518         * modules/uniwidth/width-tests: Likewise.
28519
28520 2010-05-18  Richard Jones  <rjones@redhat.com>
28521
28522         doc: users.txt: list hivex
28523         * users.txt: Add hivex.
28524
28525 2010-05-18  Richard Jones  <rjones@redhat.com>
28526
28527         doc: users.txt: list febootstrap
28528         * users.txt: Add febootstrap.
28529
28530 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28531
28532         bootstrap: fix an error when gnulib is not used as a git submodule
28533         * build-aux/bootstrap (gnulib_path): If its length is zero then
28534         assign "gnulib" to it.
28535         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28536
28537 2010-05-16  Bruno Haible  <bruno@clisp.org>
28538
28539         Avoid autoconf warnings about AM_ICONV.
28540         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28541         2.64.
28542
28543 2010-05-16  Bruno Haible  <bruno@clisp.org>
28544
28545         absolute-header: Make the macro usable in more situations.
28546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28547         from gl_ABSOLUTE_HEADER.
28548         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28549
28550 2010-05-16  James Youngman  <jay@gnu.org>
28551
28552         doc: update users.txt
28553         * users.txt: Add CSSC.
28554
28555 2010-05-16  Jim Meyering  <meyering@redhat.com>
28556
28557         init.sh: fix an error in the previous change; add more comments
28558         * tests/init.sh: Compare exit code in loop against 9, not 2.
28559         Patch by Bruno Haible.
28560         Make the two tests more similar by adding an empty "then" clause.
28561         Add comments.
28562
28563         init.sh: avoid unnecessary shell re-exec
28564         * tests/init.sh: Improve the re-exec-required check to first test the
28565         current shell.  If it passes the test, do not search for a shell that
28566         does pass, and do not re-exec.  This test is particularly contorted to
28567         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28568         of $(...) evokes a syntax error and causes immediate shell exit with
28569         status 2.  Bruno Haible reported that the re-exec made it impossible
28570         to single-step through any init.sh-using script.
28571
28572 2010-05-16  Bruno Haible  <bruno@clisp.org>
28573
28574         Fix collision between gnulib's and libintl's printf replacements.
28575         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28576         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28577         (printf): When using GNU C, map the __printf__ function to rpl_printf
28578         via __asm__. When not using GNU C, define rpl_printf instead of
28579         __printf__.
28580         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28581         commit.
28582         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28583         commit.
28584         * m4/asm-underscore.m4: New file.
28585         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28586         * modules/stdio (Files): Add m4/asm-underscore.m4.
28587         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28588         Reported by Ben Pfaff.
28589
28590 2010-05-16  Bruno Haible  <bruno@clisp.org>
28591
28592         verify: Avoid skipping the test on openSUSE 11.0.
28593         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28594
28595 2010-05-13  Bruno Haible  <bruno@clisp.org>
28596
28597         Avoid useless warnings from G++.
28598         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28599         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28600         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28601
28602 2010-05-11  Jim Meyering  <meyering@redhat.com>
28603
28604         maint.mk: tweak preceding change
28605         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28606         regexps tighter by anchoring at EOL, and make the new group "shy"
28607         for slightly decreased overhead.
28608
28609 2010-05-11  Eric Blake  <eblake@redhat.com>
28610
28611         maint.mk: gnulib doesn't guarantee NSIG
28612         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28613
28614 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28615
28616         test-pwrite.c: Remove unused variable declaration.
28617         * tests/test-pwrite.c (main): Remove read_buf declaration.
28618
28619         Remove useless test-pwrite.sh file.
28620         * tests/test-pwrite.sh: Delete file.
28621         * modules/pwrite-tests: Remove references.
28622         Reported by Bruno Haible.
28623
28624 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28625
28626         init.sh: fix a typo
28627         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28628
28629 2010-05-10  Jim Meyering  <meyering@redhat.com>
28630
28631         maint.mk: avoid using a temporary file in the always-defined-macros check
28632         * top/maint.mk (.re-defmac): Remove rule.
28633         (gl_trap_): Remove definition.
28634         (sc_prohibit_always-defined_macros): Rewrite not to create and
28635         depend on a temporary file.  Instead, depend on GNU grep's ability
28636         to read a list of regular expressions from stdin when given "-f -".
28637
28638 2010-05-09  Bruno Haible  <bruno@clisp.org>
28639
28640         Update to GNU gettext 0.18, part 1.
28641         * m4/gettext.m4: Update to GNU gettext 0.18.
28642         * m4/intl.m4: Likewise.
28643         * m4/po.m4: Likewise.
28644         * modules/gettext (Files): Add m4/fcntl-o.m4.
28645         (configure.ac): Require gettext infrastructure from version 0.18.
28646
28647 2010-05-09  Jim Meyering  <meyering@redhat.com>
28648
28649         init.sh: enable MALLOC_PERTURB_
28650         * tests/init.sh: Enable glibc's malloc-perturbing option.
28651
28652         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28653         With my recent change in init.sh from the two-line form:
28654             -#   : ${srcdir=.}
28655             -#   . "$srcdir/init.sh"; path_prepend_ .
28656             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28657         I noticed that using the one-line form would cause this test
28658         to fail with a false-positive, or to stop working altogether,
28659         depending on whether help-version changed or all the tests did.
28660         * top/maint.mk (_hv_regex): Remove this definition.
28661         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28662         (_hv_regex_strong): Use a stronger regex to check for conformance.
28663         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28664         Give a separate diagnostic for lack of conforming use.
28665
28666         maint.mk: prohibit definition of symbols defined by gnulib
28667         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28668         definition of symbols defined by gnulib.
28669
28670 2010-05-09  Bruno Haible  <bruno@clisp.org>
28671
28672         acl: Avoid test failure on Cygwin-hosted mingw.
28673         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28674
28675 2010-05-09  Bruno Haible  <bruno@clisp.org>
28676
28677         error: Use system's fcntl function.
28678         * lib/error.c (fcntl): Undefine.
28679
28680 2010-05-09  Jim Meyering  <meyering@redhat.com>
28681
28682         verify: adjust formatting to be more consistent
28683         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28684         argument-list '('s, and after one comma.
28685
28686 2010-05-09  Bruno Haible  <bruno@clisp.org>
28687
28688         error: More reliable output on mingw.
28689         * lib/error.c: Include <windows.h>.
28690         (is_open): New function.
28691         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28692         defined.
28693
28694 2010-05-09  Bruno Haible  <bruno@clisp.org>
28695
28696         vasnprintf: Fix syntax errors in libintl build on mingw.
28697         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28698         pad_ourselves and prec_ourselves after use.
28699
28700 2010-05-08  Bruno Haible  <bruno@clisp.org>
28701
28702         * lib/config.charset: Update comments for Cygwin 1.7.
28703         * lib/localcharset.c: Likewise.
28704
28705 2010-05-07  Jim Meyering  <meyering@redhat.com>
28706
28707         init.sh: improve comments
28708         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28709         . "${srcdir=.}/init.sh"; path_prepend_ .
28710         Add a note about path_prepend_ and the alternative of using
28711         TESTS_ENVIRONMENT.
28712
28713 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28714
28715         exclude: Unescape hashed patterns in wildcard mode.
28716         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28717         to the hash list.
28718         * tests/test-exclude8.sh: New test case.
28719         * modules/exclude-tests: Add new test.
28720
28721 2010-05-05  Eric Blake  <eblake@redhat.com>
28722
28723         verify: automate tests
28724         * modules/verify-tests: New module.
28725         * tests/test-verify.sh: New file.
28726         * tests/test-verify.c: Guard each negative test with a unique id.
28727         Also avoid warning about unused left hand of comma expressions.
28728
28729 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28730
28731         Further improvements to verify.h, suggested by Eric Blake.
28732         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28733         the GL_* versions, to avoid collision with OpenGL.
28734         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28735         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28736         than testing merely whether it's defined.
28737
28738         Modify verify.h to pacify gcc -Wredundant_decls.
28739         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28740         These use the prefix "GL_" since they're likely to be useful elsewhere.
28741         We may need to break them out into a different .h file.
28742         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28743         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28744         of verify_function__.
28745
28746 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28747
28748         Tests for module pwrite.
28749         * modules/pwrite-tests: New file.
28750         * tests/test-pwrite.sh: New file.
28751         * tests/test-pwrite.c: New file.
28752
28753         New module pwrite.
28754         * lib/unistd.in.h (pwrite): New declaration.
28755         * lib/pwrite.c: New file, from glibc with modifications.
28756         * m4/pwrite.m4: New file.
28757         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28758         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28759         REPLACE_PWRITE.
28760         * modules/pwrite: New file.
28761         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28762         REPLACE_PWRITE.
28763         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28764         * doc/posix-functions/pwrite.texi: Mention the new module.
28765
28766 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28767
28768         pread: Update documentation.
28769         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28770
28771 2010-05-04  Eric Blake  <eblake@redhat.com>
28772
28773         docs: update cygwin progress
28774         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28775         this bug.
28776         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28777         Added in cygwin 1.7.2.
28778         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28779         Likewise.
28780         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28781         Likewise.
28782         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28783         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28784         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28785         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28786         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28787         Mention nproc module.
28788         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28789         bug in cygwin 1.7.5 addition.
28790         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28791         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28792         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28793         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28794         1.7.5.
28795         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28796         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28797         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28798         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28799         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28800         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28801         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28802         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28803         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28804         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28805         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28806         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28807         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28808         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28809         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28810         Likewise.
28811         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28812         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28813         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28814         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28815         Likewise.
28816         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28817         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28818         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28819         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28820         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28821         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28822         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28823         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28824         Likewise.
28825         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28826         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28827         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28828         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28829         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28830         Likewise.
28831         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28832         Likewise.
28833         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28834         Likewise.
28835         * doc/glibc-functions/xdrrec_endofrecord.texi
28836         (xdrrec_endofrecord): Likewise.
28837         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28838         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28839         Likewise.
28840         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28841         Likewise.
28842
28843 2010-05-04  Jim Meyering  <meyering@redhat.com>
28844
28845         gendocs.sh: make its "-s FILE" option more useful
28846         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28847         $PACKAGE to reflect the probably-different basename of "FILE".
28848
28849 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28850
28851         bootstrap: don't ignore download_po_files failure
28852         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28853         failure.
28854
28855 2010-05-03  Jim Meyering  <meyering@redhat.com>
28856
28857         maint.mk: allow to pass options to gendocs.sh
28858         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28859         (gendocs_options_): New overridable variable.
28860
28861         gnu-web-doc-update: don't ignore configure or build failure
28862         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28863
28864         announce-gen: backslash-escape '@'s in --help output
28865         * build-aux/announce-gen: Fix syntax errors.
28866
28867         maint.mk, announce-gen: allow project-specific announcement mail headers
28868         * top/maint.mk (translation_project_): Define default.
28869         (announcement_Cc_, announcement_mail_headers_): Likewise.
28870         (announcement): Invoke announce-gen with new --mail-headers option.
28871         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28872
28873         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28874         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28875         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28876         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28877         line in the "err2" output file when running "make check" in verbose
28878         mode (i.e., with set -x enabled).
28879
28880 2010-05-03  Bruno Haible  <bruno@clisp.org>
28881
28882         wctob: Fix for weird platforms.
28883         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28884         argument value.
28885
28886 2010-05-03  Jim Meyering  <meyering@redhat.com>
28887
28888         maint.mk: prohibit unwarranted use of <strings.h>
28889         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28890         strings.h in a file that does not also use strcasecmp, strncasecmp,
28891         ffs or ffsll.
28892
28893         maint.mk: remove obsolete comments
28894         * top/maint.mk: Remove stale, commented-out rules.
28895
28896 2010-05-02  Bruno Haible  <bruno@clisp.org>
28897
28898         wcwidth: Declare also when it's aliased.
28899         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28900         macro.
28901
28902 2010-05-02  Bruno Haible  <bruno@clisp.org>
28903
28904         Fix regression from 2010-04-25.
28905         * gnulib-tool (func_modules_transitive_closure): Check the status of
28906         all modules, not only of the tests that are of the form foo-tests where
28907         foo is a module.
28908
28909 2010-05-02  Bruno Haible  <bruno@clisp.org>
28910
28911         wctob: Work around nasty Cygwin 1.7.2 bug.
28912         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28913         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28914
28915 2010-05-01  Bruno Haible  <bruno@clisp.org>
28916
28917         fpurge: Sharper test.
28918         * tests/test-fpurge.c (main): Add one more ftell check.
28919         * modules/fpurge-tests (Depends-on): Add ftell.
28920         Suggested by Eric Blake.
28921
28922 2010-05-01  Bruno Haible  <bruno@clisp.org>
28923
28924         ftello: Another test.
28925         * tests/test-ftello3.c: New file.
28926         * modules/ftello-tests (Files): Add it.
28927         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28928         MOSTLYCLEANFILES.
28929
28930         ftell: Another test.
28931         * tests/test-ftell3.c: New file.
28932         * modules/ftell-tests (Files): Add it.
28933         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28934         MOSTLYCLEANFILES.
28935
28936 2010-05-01  Bruno Haible  <bruno@clisp.org>
28937
28938         ftell, ftello: Work around Solaris bug.
28939         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28940         * lib/ftello.c: Include stdio-impl.h.
28941         (ftello): On Solaris, when _IOWRT is set, compute the result without
28942         looking at _IOREAD.
28943         * modules/ftello (Files): Add lib/stdio-impl.h.
28944         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28945         * doc/posix-functions/ftello.texi: Likewise.
28946         Reported by Eric Blake.
28947
28948 2010-05-01  Bruno Haible  <bruno@clisp.org>
28949
28950         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28951         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28952         the _IOWRT flag is also set.
28953
28954 2010-05-01  Bruno Haible  <bruno@clisp.org>
28955
28956         Fix doc about a HP-UX stdio bug.
28957         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28958         * doc/posix-functions/ftello.texi: Likewise.
28959
28960 2010-05-01  Bruno Haible  <bruno@clisp.org>
28961
28962         lseek test: Fix failure on Solaris.
28963         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28964         output.
28965
28966 2010-04-30  Jim Meyering  <meyering@redhat.com>
28967
28968         bootstrap: don't ignore failure to generate po*/Makevars
28969         * build-aux/bootstrap (with_gettext): Don't ignore failure
28970         to create po/Makevars or runtime-po/Makevars.
28971
28972 2010-04-29  Eric Blake  <eblake@redhat.com>
28973
28974         headers: relax license to LGPLv2+
28975         * modules/fcntl-h (License): Relax license.
28976         * modules/getopt-posix (License): Likewise.
28977         * modules/locale (License): Likewise.
28978         * modules/math (License): Likewise.
28979         * modules/pty (License): Likewise.
28980         * modules/sched (License): Likewise.
28981         * modules/search (License): Likewise.
28982         * modules/spawn (License): Likewise.
28983         * modules/stdarg (License): Likewise.
28984         * modules/sysexits (License): Likewise.
28985
28986 2010-04-29  Jim Meyering  <meyering@redhat.com>
28987
28988         inttypes: relax license to LGPLv2+
28989         * modules/inttypes (License): Relax license.
28990
28991 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28992
28993         * top/maint.mk (indent): Run twice to produce idempotent results.
28994
28995 2010-04-28  Bruno Haible  <bruno@clisp.org>
28996
28997         getdate: Generate getdate.c in the source directory.
28998         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28999         MOSTLYCLEANFILES.
29000         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29001
29002 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29003
29004         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29005         is not declared as a const *; avoid warnings in that case.
29006
29007 2010-04-28  Eric Blake  <eblake@redhat.com>
29008
29009         canonicalize-lgpl: avoid compiler warning
29010         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29011         declaration' / 'extraneous semicolon' warning with some compilers.
29012         Reported by Andreas Gruenbacher.
29013
29014 2010-04-28  Jim Meyering  <meyering@redhat.com>
29015
29016         init.sh: ensure a more reliable exit status when exiting via trap
29017         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29018         Inspired by patches from Dmitry V. Levin.
29019         Also trap on signal 3 (SIGQUIT).
29020
29021 2010-04-27  Bruno Haible  <bruno@clisp.org>
29022
29023         Update doc about utimes().
29024         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29025         'utimens' module.
29026         Reported by Andreas Gruenbacher <agruen@suse.de>.
29027
29028 2010-04-27  Eric Blake  <eblake@redhat.com>
29029
29030         full-read, full-write: relax license
29031         * modules/full-read (License): Drop to LGPLv2+.
29032         * modules/full-write (License): Likewise.
29033         * modules/safe-read (License): Likewise.
29034         * modules/safe-write (License): Likewise.
29035
29036         pthread: mention library for linking
29037         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29038
29039 2010-04-27  Jim Meyering  <meyering@redhat.com>
29040
29041         maint.mk: fix a bug introduced in last change
29042         * top/maint.mk (gl_assured_headers_): Now that all names are on
29043         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29044         is not anchored to end of word, it should be adequate.
29045
29046         maint.mk: avoid side-effect in latest syntax-check
29047         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29048         to run commands via $(shell...), and hence to incur cost only when
29049         the new rule is actually run.
29050
29051         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29052         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29053         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29054         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29055         (gl_assured_headers_, az_, AZ_): Define.
29056         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29057
29058 2010-04-26  Jim Meyering  <jim@meyering.net>
29059             Bruno Haible  <bruno@clisp.org>
29060
29061         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29062         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29063         Prompted by an exchange with Gilles Espinasse.
29064
29065 2010-04-26  Jim Meyering  <meyering@redhat.com>
29066
29067         git-version-gen: aesthetic tweak
29068         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29069         so that the command remains on a single line.
29070
29071 2010-04-26  Eric Blake  <eblake@redhat.com>
29072
29073         git-version-gen: allow use on EBCDIC hosts
29074         * build-aux/git-version-gen (dirty): Use literal rather than tying
29075         ourselves to ascii.
29076         Reported by Steve Goetze.
29077
29078 2010-04-25  Bruno Haible  <bruno@clisp.org>
29079
29080         netdb: Add support for GNULIB_POSIXCHECK.
29081         * lib/netdb.in.h: Include warn-on-use.h.
29082         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29083         functions are used when GNULIB_POSIXCHECK is defined and the
29084         getaddrinfo module is not in use.
29085         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29086         freeaddrinfo, gai_strerror, getnameinfo are declared.
29087         * modules/netdb (Depends-on): Add warn-on-use.
29088         (Makefile.am): Include warn-on-use.h in netdb.h.
29089
29090 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29091
29092         build: avoid "make check" failure without .git/ directory
29093         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29094         there is no .git/ directory.
29095
29096 2010-04-25  Bruno Haible  <bruno@clisp.org>
29097
29098         ptsname: Fix misuse of ttyname_r.
29099         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29100         of errno.
29101
29102 2010-04-25  Bruno Haible  <bruno@clisp.org>
29103
29104         ttyname_r: Make it work on Solaris 10.
29105         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29106         if the system function has the POSIX declaration. Test whether the
29107         function fails if the buffer is less than 128 bytes large.
29108         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29109         system's ttyname_r function. Provide a reasonably large buffer.
29110         * modules/ttyname_r (Depends-on): Add extensions.
29111         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29112
29113 2010-04-25  Bruno Haible  <bruno@clisp.org>
29114
29115         Use the 'extensions' module for some more functions on Solaris.
29116         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29117         module.
29118         * doc/posix-functions/ctime_r.texi: Likewise.
29119         * doc/posix-functions/getgrgid_r.texi: Likewise.
29120         * doc/posix-functions/getgrnam_r.texi: Likewise.
29121         * doc/posix-functions/getpwnam_r.texi: Likewise.
29122         * doc/posix-functions/getpwuid_r.texi: Likewise.
29123         * doc/posix-functions/readdir_r.texi: Likewise.
29124         * doc/posix-functions/sigwait.texi: Likewise.
29125         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29126         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29127
29128 2010-04-25  Bruno Haible  <bruno@clisp.org>
29129
29130         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29131         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29132         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29133         * lib/ttyname_r.c: Include <limits.h>.
29134         (ttyname_r): Define using the system's ttyname_r function, if it exists
29135         and not on Solaris.
29136         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29137         set.
29138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29139         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29140         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29141         Reported by Simon Josefsson.
29142
29143 2010-04-25  Bruno Haible  <bruno@clisp.org>
29144
29145         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29146         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29147         * doc/posix-functions/ctime_r.texi: Likewise.
29148         * doc/posix-functions/getgrgid_r.texi: Likewise.
29149         * doc/posix-functions/getgrnam_r.texi: Likewise.
29150         * doc/posix-functions/getlogin_r.texi: Likewise.
29151         * doc/posix-functions/getpwnam_r.texi: Likewise.
29152         * doc/posix-functions/getpwuid_r.texi: Likewise.
29153         * doc/posix-functions/readdir_r.texi: Likewise.
29154         * doc/posix-functions/sigwait.texi: Likewise.
29155         * doc/posix-functions/ttyname_r.texi: Likewise.
29156         Reported by Simon Josefsson.
29157
29158 2010-04-25  Bruno Haible  <bruno@clisp.org>
29159
29160         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29161         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29162         also to --create-testdir.
29163         (func_acceptable): Don't consider the status of *-tests modules here.
29164         (func_modules_transitive_closure): Consider it here, before including a
29165         test module.
29166         (func_import, func_create_testdir): Set inc_all_direct_tests,
29167         inc_all_indirect_tests.
29168         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29169         --create-testdir and --create-megatestdir.
29170
29171 2010-04-25  Bruno Haible  <bruno@clisp.org>
29172
29173         gnulib-tool: Add --without-*-tests options.
29174         * gnulib-tool (func_usage): Document the --without-*-tests options.
29175         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29176         excl_unportable_tests): New variables.
29177         Fail if they are specified with --import or --update.
29178         (func_acceptable): Respect the excl_*_tests variables.
29179         (func_import): Set the excl_*_tests variables to empty.
29180
29181 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29182             Bruno Haible  <bruno@clisp.org>
29183
29184         Work around a MacOS X 10.4 bug with openpty.
29185         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29186         * tests/test-openpty.c (main): Close the master side explicitly.
29187
29188 2010-04-25  Bruno Haible  <bruno@clisp.org>
29189
29190         strnlen: Fix a C++ test error on MacOS X and Solaris.
29191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29192         the function is not declared.
29193         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29194         Simon Josefsson.
29195
29196 2010-04-24  Bruno Haible  <bruno@clisp.org>
29197
29198         Avoid a gcc warning.
29199         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29200         of correct type for %08lx directive.
29201         Reported by Eric Blake.
29202
29203 2010-04-24  Bruno Haible  <bruno@clisp.org>
29204
29205         vasnprintf: Correct errno value in case of out-of-memory.
29206         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29207         or sprintf. Use the errno value from SNPRINTF or sprintf.
29208         Reported by Ian Beckwith <ianb@erislabs.net>.
29209
29210 2010-04-24  Bruno Haible  <bruno@clisp.org>
29211
29212         ansi-c++-opt: Find correct compiler when cross-compiling.
29213         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29214         AC_CHECK_PROGS.
29215         Reported by Simon Josefsson.
29216
29217 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29218
29219         vc-list-files: Add support for subversion
29220         * build-aux/vc-list-files: Use "svn list" to generate the list of
29221         files controlled by subversion.
29222
29223 2010-04-23  Jim Meyering  <meyering@redhat.com>
29224
29225         vc-list-files tests: convert to use init.sh
29226         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29227         path_prepend_.
29228         Use Exit, not exit.
29229         Use skip_ rather than open coding it.
29230         Remove trap set-up and compare definitions.
29231         * tests/test-vc-list-files-git.sh: Likewise.
29232         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29233
29234 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29235
29236         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29237         backup files.
29238
29239 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29240
29241         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29242
29243 2010-04-20  Eric Blake  <eblake@redhat.com>
29244
29245         tests: be robust to ignored SIGPIPE
29246         * tests/test-select-in.sh: Consume all output.
29247         * tests/test-lseek.sh: Check correct exit status, while avoiding
29248         EPIPE.
29249
29250 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29251             Bruno Haible  <bruno@clisp.org>
29252
29253         visibility: Don't use -fvisibility if it leads to a warning.
29254         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29255         yes, don't pretend that visibility works if it leads to a warning.
29256         Reported by Mike Gran <spk121@yahoo.com>.
29257
29258 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29259
29260         * build-aux/bootstrap: Use "git -h" for testing for supported options
29261         instead of "git --help".  The short-form option only shows a summary,
29262         and doesn't layout the full man page.  Grep for the full option name
29263         in the summary, too.
29264
29265 2010-04-19  Bruno Haible  <bruno@clisp.org>
29266
29267         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29268         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29269         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29270         mention of RELOCATABLE_STRIP.
29271         Reported by Sylvain Beucler <beuc@beuc.net>.
29272
29273 2010-04-19  Bruno Haible  <bruno@clisp.org>
29274
29275         * lib/diffseq.h: Fix typo in comment.
29276         Reported by Eric Blake.
29277
29278 2010-04-19  Bruno Haible  <bruno@clisp.org>
29279
29280         ioctl: Move autoconf macro to a .m4 file.
29281         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29282         * modules/ioctl (Files): Add it.
29283         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29284         Reported by Ian Beckwith <ianb@erislabs.net>.
29285
29286 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29287             Bruno Haible  <bruno@clisp.org>
29288
29289         diffseq: Accommodate use-case with abstract arrays.
29290         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29291         is not defined.
29292         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29293         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29294
29295 2010-04-18  Bruno Haible  <bruno@clisp.org>
29296
29297         * doc/posix-headers/stdbool.texi: More precise wording.
29298
29299 2010-04-17  Jim Meyering  <meyering@redhat.com>
29300
29301         maint.mk: use gnu-style indentation in an embedded perl script
29302         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29303         Rename variable: s/two/last_two_bytes/
29304
29305 2010-04-16  Eric Blake  <eblake@redhat.com>
29306
29307         test-stdbool: skip test that fails with Solaris CC
29308         * tests/test-stdbool.c (f): Skip test that causes compilation
29309         error under buggy C++ compiler.
29310         * lib/stdbool.in.h: Document the limitation.
29311         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29312
29313         setenv: allow compilation with C++
29314         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29315         register keyword.
29316
29317         stdint: allow test to pass with C++
29318         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29319
29320         getopt: allow compilation with C++
29321         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29322         struct.
29323         * lib/getopt.c (_getopt_internal_r): Use correct type.
29324         Reported by Dagobert Michelson, via Joel E. Denny.
29325
29326 2010-04-16  Bruno Haible  <bruno@clisp.org>
29327
29328         Override netdb.h always.
29329         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29330         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29331         Reported by Ludovic Courtès <ludo@gnu.org>.
29332
29333 2010-04-15  Bruno Haible  <bruno@clisp.org>
29334
29335         openpty: Fix mistake from 2010-03-21.
29336         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29337         Reported by Simon Josefsson.
29338
29339 2010-04-15  Eric Blake  <eblake@redhat.com>
29340
29341         test-forkpty: fix expected signature
29342         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29343         Reported by Simon Josefsson.
29344
29345 2010-04-15  Jim Meyering  <meyering@redhat.com>
29346
29347         maint.mk: texinfo_suffix_re_: correct the default regexp
29348         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29349
29350         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29351         make it configurable via texinfo_suffix_re_.
29352
29353 2010-04-14  Eric Blake  <eblake@redhat.com>
29354
29355         strtok_r: relax license to LGPLv2+
29356         * modules/strtok_r (License): Relax license.
29357         Reported by Matthias Bolte.
29358
29359 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29360
29361         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29362         version 1.4.4 by default instead of requiring the libgcrypt
29363         version used during build.  This makes it possible to use the
29364         application with older but still binary compatible libgcrypt
29365         versions.
29366
29367 2010-04-13  Eric Blake  <eblake@redhat.com>
29368
29369         getopt-gnu: match recent glibc fixes and posix ruling
29370         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29371         '+' handling, when requesting extensions.
29372         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29373         'W;' handling.
29374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29375         * doc/posix-functions/getopt.texi (getopt): Document this.
29376         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29377         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29378         Likewise.
29379
29380         getopt: merge bug fixes from glibc
29381         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29382         diagnostics.  Honor '+:' correctly.  Reject ';'.
29383
29384         getopt-posix: detect MacOS bug
29385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29386         optind when missing a required argument.
29387         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29388         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29389         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29390         Likewise.
29391
29392         getopt-posix: avoid spurious failure on Solaris
29393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29394         an indicator that setting optind=1 is sufficient for reset.
29395
29396         getopt-posix: avoid spurious failure on FreeBSD
29397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29398         in POSIX mode, since the m4 test uses it.
29399
29400         gnulib-tool: silence warning on BSD sh
29401         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29402
29403 2010-04-13  Jim Meyering  <meyering@redhat.com>
29404
29405         doc: users.txt: GNU patch now uses gnulib
29406         * users.txt: Add patch.
29407
29408 2010-04-12  Jim Meyering  <meyering@redhat.com>
29409
29410         maint.mk: generate more concise timing data for syntax-check rules
29411         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29412         " done" from each line that reports a syntax-check test duration.
29413
29414 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29415
29416         git-version-gen: use "git update-index..." rather than "git status"
29417         * build-aux/git-version-gen: Use git update-index --refresh, not
29418         "git status".  With some versions of git, "git status" would fail
29419         to update the index and result in an unwarranted "-dirty" suffix.
29420
29421 2010-04-11  Jim Meyering  <meyering@redhat.com>
29422
29423         openat: correct formatting (no semantic change)
29424         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29425         Suggested by Bruno Haible.
29426
29427 2010-04-11  Bruno Haible  <bruno@clisp.org>
29428
29429         Stricter declaration checking in testdirs.
29430         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29431         If for_tests is true, augment AM_CPPFLAGS to define
29432         GNULIB_STRICT_CHECKING.
29433         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29434         GNULIB_STRICT_CHECKING is defined, verify that the function is
29435         declared.
29436
29437 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29438             Bruno Haible  <bruno@clisp.org>
29439
29440         libunistring: Improve configure output.
29441         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29442         Don't say "consider installing GNU libunistring" when checking again
29443         with libiconv.
29444
29445 2010-04-11  Bruno Haible  <bruno@clisp.org>
29446
29447         libunistring: Correct value of $LTLIBUNISTRING.
29448         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29449         correct the value of $LTLIBUNISTRING.
29450
29451 2010-04-11  Bruno Haible  <bruno@clisp.org>
29452
29453         havelib: Add static libraries to LIBS in the right order.
29454         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29455         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29456
29457 2010-04-11  Bruno Haible  <bruno@clisp.org>
29458
29459         libunistring: Detect libunistring also when it depends on libiconv.
29460         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29461         the second AC_LIB_HAVE_LINKFLAGS invocation.
29462
29463 2010-04-11  James Youngman  <jay@gnu.org>
29464
29465         close-stream: declare local scalars to be "const"
29466         * lib/close-stream.c (close_stream): Make boolean variables const
29467         to document the fact that we set but do not change them.
29468
29469 2010-04-11  Bruno Haible  <bruno@clisp.org>
29470
29471         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29472
29473 2010-04-11  Jim Meyering  <meyering@redhat.com>
29474
29475         maint.mk: don't include dist-check.mk
29476         * top/maint.mk: Remove bogus include directive.
29477
29478         maint.mk: improve empty-line-at-EOF check
29479         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29480         solution, rather than tail+Perl-based one.  The latter would read
29481         a few kilobytes from the end of each file, and did not handle empty
29482         files properly.
29483
29484         maint.mk: print the elapsed time for each syntax-check rule
29485         * top/maint.mk (sc_m_rules_): Save start time in a file.
29486         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29487         (local-check): Interpose the .z rules
29488
29489 2010-04-11  Jim Meyering  <meyering@redhat.com>
29490
29491         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29492         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29493         empty file with one that ends in an empty line.
29494
29495 2010-04-10  Bruno Haible  <bruno@clisp.org>
29496
29497         mkdir: Make it work on mingw64.
29498         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29499         * lib/mkdir.c: Update comment.
29500         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29501
29502 2010-04-10  Bruno Haible  <bruno@clisp.org>
29503
29504         Don't override improved macro from newer autoconf.
29505         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29506         autoconf >= 2.62.
29507         Reported by Joel E. Denny <jdenny@clemson.edu>.
29508
29509 2010-04-10  Jim Meyering  <meyering@redhat.com>
29510
29511         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29512         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29513
29514         maint.mk: correct a diagnostic
29515         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29516         in diagnostic; now use $prohibit.
29517
29518 2010-04-10  Bruno Haible  <address@hidden>
29519
29520         fchownat: Fix a C++ test error on Solaris 8.
29521         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29522         the function does not exist.
29523
29524 2010-04-10  Bruno Haible  <bruno@clisp.org>
29525
29526         vasnprintf: Add more tests.
29527         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29528         (test_function): Test converting an invalid wide string.
29529
29530         vasnprintf: Correct handling of unconvertible wide string arguments.
29531         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29532         VASNPRINTF.
29533         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29534         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29535         smaller than the expected maximum need for the directive. Set errno to
29536         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29537         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29539         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29540         * modules/vasnprintf (Files): Add m4/printf.m4.
29541         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29542
29543 2010-04-10  Bruno Haible  <bruno@clisp.org>
29544
29545         vasnprintf: Fix crash in %ls directive.
29546         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29547         string is passed as argument to %ls, with no precision and no width.
29548         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29549
29550 2010-04-10  Bruno Haible  <bruno@clisp.org>
29551
29552         vasnprintf: Fix multiple test failures on mingw.
29553         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29554         _snprintf, or snwprintf, not _snwprintf.
29555
29556 2010-04-10  Bruno Haible  <bruno@clisp.org>
29557
29558         write: Fix a C++ test error on mingw.
29559         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29560
29561 2010-04-10  Bruno Haible  <bruno@clisp.org>
29562
29563         vasnprintf test: Reduce code duplication.
29564         * tests/test-vasnprintf.c (test_function): New function, extracted from
29565         test_vasnprintf.
29566         (test_vasnprintf, test_asnprintf): Invoke it.
29567
29568 2010-04-10  Bruno Haible  <bruno@clisp.org>
29569
29570         strnlen: Fix warning in C++ mode on MacOS X.
29571         * lib/string.in.h (strnlen): Use the modern idiom.
29572         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29573         defining strnlen as a macro already in <config.h>.
29574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29575         REPLACE_STRNLEN.
29576         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29577         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29578
29579 2010-04-08  James Youngman  <jay@gnu.org>
29580
29581         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29582         the example.
29583
29584 2010-04-09  Jim Meyering  <meyering@redhat.com>
29585
29586         maint.mk: print better diagnostic when there is no $(_hv_file)
29587         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29588         announce that when $(_hv_file) (aka help-version) does not exist.
29589
29590         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29591         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29592         not try to interpret its random input bytes.  Jarno Rajahalme reported
29593         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29594         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29595         (mktempd_): Likewise, just in case.
29596
29597         ftruncate: add two years to projected module removal date: 2012
29598         * m4/ftruncate.m4: Adjust comments.
29599
29600         ftruncate: mark module as obsolete; even MinGW provides it, now
29601         * modules/ftruncate (Status): Obsolete.
29602         (Notice): Say that.
29603         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29605
29606 2010-04-08  Bruno Haible  <bruno@clisp.org>
29607
29608         Fix side effects from tests-related modules.
29609         * modules/dprintf-posix (Comment): New section.
29610         * modules/fprintf-posix (Comment): Likewise.
29611         * modules/obstack-printf-posix (Comment): Likewise.
29612         * modules/printf-posix (Comment): Likewise.
29613         * modules/snprintf-posix (Comment): Likewise.
29614         * modules/sprintf-posix (Comment): Likewise.
29615         * modules/vasnprintf-posix (Comment): Likewise.
29616         * modules/vasprintf-posix (Comment): Likewise.
29617         * modules/vdprintf-posix (Comment): Likewise.
29618         * modules/vfprintf-posix (Comment): Likewise.
29619         * modules/vprintf-posix (Comment): Likewise.
29620         * modules/vsnprintf-posix (Comment): Likewise.
29621         * modules/vsprintf-posix (Comment): Likewise.
29622         * modules/xprintf-posix (Comment): Likewise.
29623         * modules/xvasprintf-posix (Comment): Likewise.
29624         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29625         * modules/floorf-tests (Depends-on): Likewise.
29626         * modules/round-tests (Depends-on): Likewise.
29627         * modules/roundf-tests (Depends-on): Likewise.
29628         * modules/trunc-tests (Depends-on): Likewise.
29629         * modules/truncf-tests (Depends-on): Likewise.
29630         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29631         'fprintf-posix' module is not present.
29632         * tests/test-floorf2.c (check): Likewise.
29633         * tests/test-trunc2.c (check): Likewise.
29634         * tests/test-truncf2.c (check): Likewise.
29635         * tests/test-round2.c (equal): Likewise.
29636         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29637
29638 2010-04-07  Karl Berry  <karl@gnu.org>
29639
29640         * config/srclist.txt,
29641         * config/srclistvars.sh,
29642         * config/srclist-update: doc fixes.
29643
29644 2010-04-07  Jim Meyering  <meyering@redhat.com>
29645
29646         maint.mk: add a PATH crosschecking syntax-check rule
29647         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29648         Useful if you use a test like the one in help-version (coreutils,
29649         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29650         printed by prog --version.
29651
29652 2010-04-06  Bruno Haible  <bruno@clisp.org>
29653
29654         Fix link error on mingw.
29655         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29656         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29657
29658 2010-04-06  Bruno Haible  <bruno@clisp.org>
29659
29660         Assume rmdir exists.
29661         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29662
29663 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29664
29665         doc: update users.txt
29666         * users.txt: Add gcal.
29667
29668 2010-04-06  Jim Meyering  <meyering@redhat.com>
29669
29670         init.sh: simply unset TMPDIR rather than risking env -i
29671         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29672         although it probably works fine on all Unix-based systems, some
29673         systems (Cygwin?) cannot tolerate a totally cleared environment.
29674         Suggestion from Eric Blake.
29675
29676 2010-04-06  Jim Meyering  <meyering@redhat.com>
29677
29678         init.sh: portability fix: use env's POSIX-specified -i option not -u
29679         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29680         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29681
29682 2010-04-05  Bruno Haible  <bruno@clisp.org>
29683
29684         btowc: Work around Cygwin 1.7.2 bug.
29685         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29686         does not map NUL to 0.
29687         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29688
29689 2010-04-05  Bruno Haible  <bruno@clisp.org>
29690
29691         Make the multithread modules work on Cygwin 1.7.2.
29692         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29693         imported symbols can be declared weak, so that it returns "no" on
29694         Cygwin 1.7.2.
29695
29696 2010-04-05  Bruno Haible  <bruno@clisp.org>
29697
29698         Use the module 'strncat'.
29699         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29700
29701         Tests for module 'strncat'.
29702         * modules/strncat-tests: New file.
29703         * tests/test-strncat.c: New file.
29704
29705         New module 'strncat'.
29706         * lib/string.in.h (strncat): New declaration.
29707         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29708         * m4/strncat.m4: New file, based on m4/memchr.m4.
29709         * modules/strncat: New file.
29710         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29711         is declared.
29712         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29713         REPLACE_STRNCAT.
29714         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29715         REPLACE_STRNCAT.
29716         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29717         module.
29718         * tests/test-string-c++.cc: Check signature of strncat.
29719
29720 2010-04-05  Jim Meyering  <meyering@redhat.com>
29721
29722         xstrtoumax-tests: convert to use init.sh
29723         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29724         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29725         Use Exit, not exit.
29726         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29727
29728         xstrtoimax-tests: convert to use init.sh
29729         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29730         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29731         Use Exit, not exit.
29732         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29733
29734 2010-04-05  Bruno Haible  <bruno@clisp.org>
29735
29736         sys_socket: Avoid #define replacements in C++ mode.
29737         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29738         warning to the function if possible, rather than #defining the symbol
29739         to a dysfunctional alias.
29740
29741 2010-04-05  Bruno Haible  <bruno@clisp.org>
29742
29743         fseeko: Fix C++ test error on mingw.
29744         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29745         gl_FUNC_FSEEKO.
29746         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29747         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29748         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29749         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29750
29751 2010-04-05  Bruno Haible  <bruno@clisp.org>
29752
29753         duplocale: Improve test output.
29754         * tests/test-duplocale.c (main): Print reason for skipped test.
29755
29756 2010-04-05  Bruno Haible  <bruno@clisp.org>
29757
29758         Assume rmdir exists.
29759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29760         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29761
29762 2010-04-05  Bruno Haible  <bruno@clisp.org>
29763
29764         Fix link error on Solaris 8 with cc.
29765         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29766
29767 2010-04-05  Bruno Haible  <bruno@clisp.org>
29768
29769         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29770         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29771
29772 2010-04-05  Bruno Haible  <bruno@clisp.org>
29773
29774         vasprintf: Update documentation.
29775         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29776
29777 2010-04-05  Bruno Haible  <bruno@clisp.org>
29778
29779         ptsname: Improve test.
29780         * tests/test-ptsname.c (main): Also try the various master names of BSD
29781         systems.
29782
29783 2010-04-05  Bruno Haible  <bruno@clisp.org>
29784
29785         memchr: Avoid a possible C++ test error.
29786         * lib/string.in.h (memchr): Provide declaration if function is missing.
29787         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29788         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29790         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29791
29792 2010-04-05  Bruno Haible  <bruno@clisp.org>
29793
29794         strtok_r: Improve idiom.
29795         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29796         AC_LIBOBJ is used.
29797
29798 2010-04-05  Bruno Haible  <bruno@clisp.org>
29799
29800         strdup: Improve idiom.
29801         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29802         AC_LIBOBJ is used.
29803         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29804         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29805         when AC_LIBOBJ is used.
29806
29807 2010-04-05  Bruno Haible  <bruno@clisp.org>
29808
29809         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29810         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29811         don't set REPLACE_MBSINIT to 1.
29812         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29813         don't set REPLACE_MBRTOWC to 1.
29814         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29815         exist, don't set REPLACE_MBSRTOWCS to 1.
29816         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29817         exist, don't set REPLACE_MBSNRTOWCS to 1.
29818         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29819         don't set REPLACE_WCRTOMB to 1.
29820         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29821         exist, don't set REPLACE_WCSRTOMBS to 1.
29822         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29823         exist, don't set REPLACE_WCSNRTOMBS to 1.
29824
29825 2010-04-05  Bruno Haible  <bruno@clisp.org>
29826
29827         ldexpl: Improve idiom.
29828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29829         make sure to set HAVE_DECL_LDEXPL to 0.
29830
29831 2010-04-05  Jim Meyering  <meyering@redhat.com>
29832
29833         xstrtol-tests: convert to use init.sh
29834         * modules/xstrtol-tests (Files): Add tests/init.sh.
29835         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29836         Use Exit, not exit.
29837         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29838
29839         atexit-tests: convert to use init.sh
29840         * modules/atexit-tests (Files): Add tests/init.sh.
29841         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29842         Use Exit, not exit.
29843         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29844
29845         init.sh: fix typo
29846         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29847
29848         init.sh: make it easier for a test script to write to the tty, ...
29849         when using automake's parallel-tests mode.
29850         * tests/init.sh (stderr_fileno_): Define overridable variable.
29851         (warn_): New function, to use it.
29852         (fail_, skip_, framework_failure_): Use warn_.
29853
29854 2010-04-04  Bruno Haible  <bruno@clisp.org>
29855
29856         btowc: Avoid warning.
29857         * lib/btowc.c: Include <stdlib.h>.
29858         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29859
29860 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29861             Bruno Haible  <bruno@clisp.org>
29862
29863         wchar: Port to NetBSD 1.5.
29864         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29865         * lib/wctype.in.h (WEOF): Likewise.
29866
29867 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29868             Bruno Haible  <bruno@clisp.org>
29869
29870         Port extended stdio to NetBSD 1.5.
29871         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29872         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29873         older.
29874
29875 2010-04-04  Bruno Haible  <bruno@clisp.org>
29876
29877         string: Remove unused substitution.
29878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29879         HAVE_DECL_STRERROR.
29880         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29881
29882 2010-04-04  Bruno Haible  <bruno@clisp.org>
29883
29884         strtod: Avoid a possible C++ test error.
29885         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29886         set REPLACE_STRTOD.
29887
29888 2010-04-04  Bruno Haible  <bruno@clisp.org>
29889
29890         strerror: Update documentation.
29891         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29892
29893 2010-04-04  Bruno Haible  <bruno@clisp.org>
29894
29895         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29896         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29897         _GL_CXXALIAS_SYS_CAST.
29898
29899 2010-04-04  Bruno Haible  <bruno@clisp.org>
29900
29901         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29902         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29903         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29904         REPLACE_FREXPL to 1.
29905         * doc/posix-functions/frexpl.texi: Update documentation.
29906
29907 2010-04-04  Bruno Haible  <bruno@clisp.org>
29908
29909         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29910         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29911
29912 2010-04-04  Bruno Haible  <bruno@clisp.org>
29913
29914         Implement nanosleep for native Windows.
29915         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29916
29917 2010-04-04  Bruno Haible  <bruno@clisp.org>
29918
29919         math: Fix some C++ test errors on Solaris 8.
29920         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29921
29922 2010-04-04  Bruno Haible  <bruno@clisp.org>
29923
29924         math: Fix some C++ test errors on Cygwin.
29925         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29926         truncl): Provide declaration if the system does not have it.
29927         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29928         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29929         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29930         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29931         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29932         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29933         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29934         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29935         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29936         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29937         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29938         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29939         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29940         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29941         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29942         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29944         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29945         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29946         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29947         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29948         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29949
29950 2010-04-04  Bruno Haible  <bruno@clisp.org>
29951
29952         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29953         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29954         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29955         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29956         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29957         * m4/isinf.m4 (gl_ISINF): Likewise.
29958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29959
29960 2010-04-04  Bruno Haible  <bruno@clisp.org>
29961
29962         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29963         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29964
29965 2010-04-04  Bruno Haible  <bruno@clisp.org>
29966
29967         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29968         * modules/tmpfile (configure.ac): Update.
29969
29970         tmpfile: Fix C++ test error on mingw.
29971         * lib/stdio.in.h (tmpfile): New declaration.
29972         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29973         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29974         * modules/tmpfile (Depends-on): Add stdio.
29975         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29976         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29977         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29978         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29979         REPLACE_TMPFILE.
29980         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29981
29982 2010-04-04  Bruno Haible  <bruno@clisp.org>
29983
29984         ioctl: Fix C++ test error on mingw.
29985         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29986         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29987         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29988
29989 2010-04-03  Bruno Haible  <bruno@clisp.org>
29990
29991         wcwidth: Fix C++ test error on mingw.
29992         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29994         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29995
29996 2010-04-03  Bruno Haible  <bruno@clisp.org>
29997
29998         nanosleep: Fix C++ test error on mingw.
29999         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30000         * lib/time.in.h (nanosleep): Use modern idiom.
30001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30002         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30003         REPLACE_NANOSLEEP to 1.
30004         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30005         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30006
30007 2010-04-03  Bruno Haible  <bruno@clisp.org>
30008
30009         strptime: Fix C++ test error on mingw.
30010         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30011         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30012         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30013         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30014         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30015         not REPLACE_STRPTIME.
30016         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30017         REPLACE_STRPTIME.
30018
30019 2010-04-03  Bruno Haible  <bruno@clisp.org>
30020
30021         timegm: Fix C++ test error on mingw.
30022         * lib/time.in.h (timegm): Use modern idiom.
30023         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30024         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30025         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30026         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30027
30028 2010-04-03  Bruno Haible  <bruno@clisp.org>
30029
30030         timegm: Assume declaration if function exists.
30031         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30032         if it exists. Don't clobber ac_cv_func_timegm.
30033
30034 2010-04-03  Bruno Haible  <bruno@clisp.org>
30035
30036         time_r: Fix C++ test error on mingw.
30037         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30038         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30039         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30040         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30041         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30042
30043 2010-04-03  Bruno Haible  <bruno@clisp.org>
30044
30045         time_r: Minor updates.
30046         * modules/time_r (Description): Mention the provided functions.
30047         * lib/time_r.c: Don't include <string.h>.
30048         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30049         * doc/posix-functions/localtime_r.texi: Likewise.
30050
30051 2010-04-03  Bruno Haible  <bruno@clisp.org>
30052
30053         time: Fix regression introduced on 2010-03-08.
30054         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30055         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30056
30057 2010-04-03  Jim Meyering  <meyering@redhat.com>
30058
30059         maint.mk: don't silently disable project-specific syntax-check rules
30060         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30061         that they need to convert their project-specific syntax-check rules
30062         to use the new _sc_search_regexp.
30063
30064 2010-04-03  Bruno Haible  <bruno@clisp.org>
30065
30066         fchdir: Fix regression introduced on 2010-03-08.
30067         * lib/unistd.in.h (fchdir): Fix declaration.
30068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30070         REPLACE_FCHDIR.
30071         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30072         REPLACE_FCHDIR.
30073
30074 2010-04-03  Bruno Haible  <bruno@clisp.org>
30075
30076         getpagesize: Fix C++ test error on mingw.
30077         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30078         system does not declare the function.
30079         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30080         declared.
30081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30082         HAVE_DECL_GETPAGESIZE.
30083         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30084
30085 2010-04-03  Bruno Haible  <bruno@clisp.org>
30086
30087         stdio: Make C++ tests work on mingw.
30088         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30089         does not declare the function.
30090
30091 2010-04-03  Bruno Haible  <bruno@clisp.org>
30092
30093         ftello: Fix C++ test error on mingw.
30094         * lib/stdio.in.h (ftello): Use modern idiom.
30095         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30096         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30097         is missing and that it needs to be replaced.
30098         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30100         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30101
30102 2010-04-03  Bruno Haible  <bruno@clisp.org>
30103
30104         fseeko: Fix C++ test error on mingw.
30105         * lib/stdio.in.h (fseeko): Use modern idiom.
30106         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30107         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30108         is missing and that it needs to be replaced.
30109         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30111         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30112
30113 2010-04-03  Bruno Haible  <bruno@clisp.org>
30114
30115         mkstemp: Fix C++ test error on mingw.
30116         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30117         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30118         function is missing and that it needs to be replaced.
30119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30120         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30121
30122 2010-04-03  Bruno Haible  <bruno@clisp.org>
30123
30124         stpncpy: Fix C++ test error on mingw.
30125         * lib/string.in.h (stpncpy): Use modern idiom.
30126         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30127         function is missing and that it needs to be replaced.
30128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30129         REPLACE_STPNCPY.
30130         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30131
30132 2010-04-03  Bruno Haible  <bruno@clisp.org>
30133
30134         sys_stat: Fix C++ test error on mingw.
30135         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30136         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30137
30138 2010-04-03  Bruno Haible  <bruno@clisp.org>
30139
30140         pty: Update doc.
30141         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30142
30143 2010-04-03  Bruno Haible  <bruno@clisp.org>
30144
30145         unistd: Fix C++ test error on mingw.
30146         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30147
30148 2010-04-03  Bruno Haible  <bruno@clisp.org>
30149
30150         Update doc regarding mingw.
30151         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30152         * doc/glibc-functions/login_tty.texi: Likewise.
30153         * doc/glibc-functions/forkpty.texi: Likewise.
30154
30155 2010-04-03  Bruno Haible  <bruno@clisp.org>
30156
30157         stdlib: Avoid compilation failure of c-strtold on mingw.
30158         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30159
30160 2010-04-03  Bruno Haible  <bruno@clisp.org>
30161
30162         locale: Make C++ tests work on Cygwin and mingw.
30163         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30164         cannot provide the function.
30165         Reported by Simon Josefsson.
30166
30167 2010-04-03  Bruno Haible  <bruno@clisp.org>
30168
30169         localename: Port to MacOS X 10.6.
30170         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30171         memory layout of the locales in MacOS X 10.6 as well.
30172         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30173
30174 2010-04-02  Bruno Haible  <bruno@clisp.org>
30175
30176         gnulib-tool: Ensure that long-running tests are executed last.
30177         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30178         running tests after the one for the other tests.
30179
30180 2010-04-02  Bruno Haible  <bruno@clisp.org>
30181
30182         gnulib-tool: Ensure the tests in the main directory are executed first.
30183         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30184         start with the current directory.
30185
30186 2010-04-02  Bruno Haible  <bruno@clisp.org>
30187
30188         Tests for module 'havelib', moved here from GNU gettext.
30189         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30190         modifications.
30191         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30192         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30193         with modifications.
30194         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30195         modifications.
30196         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30197         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30198         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30199         with modifications.
30200         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30201         with modifications.
30202         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30203         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30204         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30205         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30206         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30207         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30208         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30209         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30210         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30211         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30212         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30213         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30214         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30215         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30216         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30217         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30218         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30219         with modifications.
30220         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30221         with modifications.
30222         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30223         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30224         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30225         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30226         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30227         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30228         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30229         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30230         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30231         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30232         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30233         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30234         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30235         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30236         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30237         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30238         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30239         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30240         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30241         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30242         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30243         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30244         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30245         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30246         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30247         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30248         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30249         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30250         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30251         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30252         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30253         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30254         * tests/havelib/rpathx/rpathx.c: New file, from
30255         gettext/autoconf-lib-link.
30256         * tests/havelib/rpathx/Makefile.am: New file, from
30257         gettext/autoconf-lib-link.
30258         * tests/havelib/rpathx/configure.ac: New file, from
30259         gettext/autoconf-lib-link with modifications.
30260         * tests/havelib/rpathy/rpathy.c: New file, from
30261         gettext/autoconf-lib-link.
30262         * tests/havelib/rpathy/Makefile.am: New file, from
30263         gettext/autoconf-lib-link.
30264         * tests/havelib/rpathy/configure.ac: New file, from
30265         gettext/autoconf-lib-link with modifications.
30266         * tests/havelib/rpathz/rpathz.c: New file, from
30267         gettext/autoconf-lib-link.
30268         * tests/havelib/rpathz/Makefile.am: New file, from
30269         gettext/autoconf-lib-link.
30270         * tests/havelib/rpathz/configure.ac: New file, from
30271         gettext/autoconf-lib-link with modifications.
30272         * tests/havelib/rpathlx/usex.c: New file, from
30273         gettext/autoconf-lib-link.
30274         * tests/havelib/rpathlx/Makefile.am: New file, from
30275         gettext/autoconf-lib-link.
30276         * tests/havelib/rpathlx/configure.ac: New file, from
30277         gettext/autoconf-lib-link with modifications.
30278         * tests/havelib/rpathly/usey.c: New file, from
30279         gettext/autoconf-lib-link.
30280         * tests/havelib/rpathly/Makefile.am: New file, from
30281         gettext/autoconf-lib-link.
30282         * tests/havelib/rpathly/configure.ac: New file, from
30283         gettext/autoconf-lib-link with modifications.
30284         * tests/havelib/rpathlz/usez.c: New file, from
30285         gettext/autoconf-lib-link.
30286         * tests/havelib/rpathlz/Makefile.am: New file, from
30287         gettext/autoconf-lib-link.
30288         * tests/havelib/rpathlz/configure.ac: New file, from
30289         gettext/autoconf-lib-link with modifications.
30290         * tests/havelib/rpathlyx/usey.c: New file, from
30291         gettext/autoconf-lib-link.
30292         * tests/havelib/rpathlyx/Makefile.am: New file, from
30293         gettext/autoconf-lib-link.
30294         * tests/havelib/rpathlyx/configure.ac: New file, from
30295         gettext/autoconf-lib-link with modifications.
30296         * tests/havelib/rpathlzyx/usez.c: New file, from
30297         gettext/autoconf-lib-link.
30298         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30299         gettext/autoconf-lib-link.
30300         * tests/havelib/rpathlzyx/configure.ac: New file, from
30301         gettext/autoconf-lib-link with modifications.
30302         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30303         with modifications.
30304
30305 2010-04-02  Bruno Haible  <bruno@clisp.org>
30306
30307         gnulib-tool: Create distributed built sources also for the tests.
30308         * gnulib-tool (func_create_testdir): Also generate distributed built
30309         sources in the tests directory.
30310
30311 2010-04-02  Bruno Haible  <bruno@clisp.org>
30312
30313         gnulib-tool: Obey user's environment variables.
30314         * gnulib-tool (func_create_testdir): When creating built sources,
30315         respect the environment variables for autoconf, automake, etc. given by
30316         the user.
30317
30318 2010-04-02  Bruno Haible  <bruno@clisp.org>
30319
30320         gnulib-tool: Provide the value of --m4-base to modules.
30321         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30322         of gl_m4_base.
30323
30324 2010-04-02  Eric Blake  <eblake@redhat.com>
30325
30326         maint.mk: fix some fallout
30327         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30328         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30329
30330 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30331
30332         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30333         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30334         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30335         (sc_cast_of_x_alloc_return_value): Likewise.
30336         (sc_cast_of_alloca_return_value): Likewise.
30337         (sc_space_tab): Likewise.
30338         (sc_prohibit_atoi_atof): Likewise.
30339         (sc_prohibit_magic_number_exit): Likewise.
30340         (sc_error_exit_success): Likewise.
30341         (sc_file_system): Likewise.
30342         (sc_prohibit_have_config_h): Likewise.
30343         (sc_require_config_h): Likewise.
30344         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30345         (sc_obsolete_symbols): Likewise.
30346         (sc_changelog): Likewise.
30347         (sc_program_name): Likewise.
30348         (sc_the_the): Likewise.
30349         (sc_trailing_blank): Likewise.
30350         (sc_two_space_separator_in_usage): Likewise.
30351         (sc_useless_cpp_parens): Likewise.
30352         (sc_GPL_version): Likewise.
30353         (sc_GFDL_version): Likewise.
30354         (sc_texinfo_acronym): Likewise.
30355         (sc_prohibit_cvs_keyword): Likewise.
30356         (sc_prohibit_stat_st_blocks): Likewise.
30357         (sc_prohibit_S_IS_definition): Likewise.
30358         (sc_redundant_const): Likewise.
30359         (sc_makefile_TAB_only_indentation): Likewise.
30360         (sc_m4_quote_check): Likewise.
30361         (sc_makefile_path_separator_check): Likewise.
30362         (sc_copyright_check): Likewise.
30363         (sc_Wundef_boolean): Likewise.
30364         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30365
30366         maint.mk: match 0 or more whitespace-before-function-call '('
30367         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30368         that have zero or two-and-more spaces between the function name
30369         and the open parenthesis.
30370         (sc_error_message_warn_fatal): Likewise.
30371         (sc_error_message_uppercase): Likewise.
30372         (sc_error_message_period): Likewise.
30373
30374 2010-03-31  Eric Blake  <eblake@redhat.com>
30375
30376         maint.mk: check for [ as well as test
30377         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30378         Based on a libvirt report by Matthias Bolte.
30379
30380         gnumakefile: don't squelch _version output
30381         * top/GNUmakefile (_version): Create one-shot dependency rather
30382         than using $(shell) when version must be regenerated.
30383         (_autoreconf): Run verbosely, by default.
30384
30385         sys_time: avoid compiler warnings
30386         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30387         unconditional, fixing regression from 2010-03-29.
30388         Reported by Simon Josefsson.
30389
30390 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30391
30392         maint.mk: s/_header_without_use/_sc_header_without_use/
30393         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30394         (sc_prohibit_assert_without_use): Use the new name.
30395         (sc_prohibit_close_stream_without_use): Likewise.
30396         (sc_prohibit_getopt_without_use): Likewise.
30397         (sc_prohibit_quotearg_without_use): Likewise.
30398         (sc_prohibit_quote_without_use): Likewise.
30399         (sc_prohibit_long_options_without_use): Likewise.
30400         (sc_prohibit_inttostr_without_use): Likewise.
30401         (sc_prohibit_ignore_value_without_use): Likewise.
30402         (sc_prohibit_error_without_use): Likewise.
30403         (sc_prohibit_xalloc_without_use): Likewise.
30404         (sc_prohibit_hash_without_use): Likewise.
30405         (sc_prohibit_hash_pjw_without_use): Likewise.
30406         (sc_prohibit_safe_read_without_use): Likewise.
30407         (sc_prohibit_argmatch_without_use): Likewise.
30408         (sc_prohibit_canonicalize_without_use): Likewise.
30409         (sc_prohibit_root_dev_ino_without_use): Likewise.
30410         (sc_prohibit_openat_without_use): Likewise.
30411         (sc_prohibit_c_ctype_without_use): Likewise.
30412         (sc_prohibit_signal_without_use): Likewise.
30413         (sc_prohibit_intprops_without_use): Likewise.
30414
30415 2010-03-30  Eric Blake  <eblake@redhat.com>
30416
30417         maint: improve module indicators
30418         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30419         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30420         columns, and avoid extra macro expansion.
30421
30422         fdopendir: work around FreeBSD bug
30423         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30424         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30425         * modules/dirent (Makefile.am): Substitute it.
30426         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30427         declaration.
30428         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30429         fix.
30430         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30431
30432 2010-03-29  Bruno Haible  <bruno@clisp.org>
30433
30434         Emit #pragma system_header after the inclusion guard, not before.
30435         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30436         guard that spans the entire file, not before. This enables an
30437         optimization in GCC's preprocessor.
30438         * lib/ctype.in.h: Likewise.
30439         * lib/dirent.in.h: Likewise.
30440         * lib/errno.in.h: Likewise.
30441         * lib/float.in.h: Likewise.
30442         * lib/getopt.in.h: Likewise.
30443         * lib/iconv.in.h: Likewise.
30444         * lib/langinfo.in.h: Likewise.
30445         * lib/locale.in.h: Likewise.
30446         * lib/math.in.h: Likewise.
30447         * lib/netdb.in.h: Likewise.
30448         * lib/netinet_in.in.h: Likewise.
30449         * lib/pty.in.h: Likewise.
30450         * lib/sched.in.h: Likewise.
30451         * lib/se-selinux.in.h: Likewise.
30452         * lib/search.in.h: Likewise.
30453         * lib/spawn.in.h: Likewise.
30454         * lib/stdarg.in.h: Likewise.
30455         * lib/stdint.in.h: Likewise.
30456         * lib/string.in.h: Likewise.
30457         * lib/strings.in.h: Likewise.
30458         * lib/sys_file.in.h: Likewise.
30459         * lib/sys_ioctl.in.h: Likewise.
30460         * lib/sys_time.in.h: Likewise.
30461         * lib/sys_times.in.h: Likewise.
30462         * lib/sys_utsname.in.h: Likewise.
30463         * lib/sys_wait.in.h: Likewise.
30464         * lib/sysexits.in.h: Likewise.
30465         * lib/wctype.in.h: Likewise.
30466
30467 2010-03-28  James Youngman  <jay@gnu.org>
30468
30469         save-cwd: don't leak a file descriptor when the caller execs.
30470         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30471         saved file descriptor.
30472         * modules/save-cwd (Depends-on): Depend on cloexec.
30473
30474 2010-03-29  Bruno Haible  <bruno@clisp.org>
30475
30476         Remove vestiges of fts-lgpl module.
30477         * lib/fts_.h: Assume GNULIB_FTS is 1.
30478         * lib/fts.c: Likewise.
30479         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30480
30481 2010-03-28  Bruno Haible  <bruno@clisp.org>
30482
30483         Fix definition of tests witness macro.
30484         * gnulib-tool (func_import): Fix definition of witness macro.
30485
30486 2010-03-28  Bruno Haible  <bruno@clisp.org>
30487
30488         Fix ioctl's protoype on glibc systems.
30489         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30490         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30491         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30492         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30493         signature. If not, arrange to replace the ioctl function.
30494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30495         REPLACE_IOCTL.
30496         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30497         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30498         Reported by Ludovic Courtès <ludo@gnu.org>.
30499
30500 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30501
30502         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30503         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30504         made it so grep -r --include=GLOB* ... did not work.
30505
30506 2010-03-26  Jim Meyering  <meyering@redhat.com>
30507             Eric Blake  <eblake@redhat.com>
30508
30509         maint.mk: prohibit use of test's -o and -a operators
30510         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30511
30512 2010-03-28  Bruno Haible  <bruno@clisp.org>
30513
30514         Remove unused GNULIB_XYZ macro definitions.
30515         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30516         invocation.
30517
30518 2010-03-28  Bruno Haible  <bruno@clisp.org>
30519
30520         Mark privileged tests modules.
30521         * modules/idpriv-drop-tests (Status): New section.
30522         * modules/idpriv-droptemp-tests (Status): New section.
30523
30524 2010-03-28  Bruno Haible  <bruno@clisp.org>
30525
30526         Split C++ tests into separate tests modules.
30527         * modules/dirent-c++-tests: New file, extracted from
30528         modules/dirent-tests.
30529         * modules/dirent-tests: Depend on it.
30530         * modules/fcntl-h-c++-tests: New file, extracted from
30531         modules/fcntl-h-tests.
30532         * modules/fcntl-h-tests: Depend on it.
30533         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30534         * modules/glob-tests: Depend on it.
30535         * modules/iconv-h-c++-tests: New file, extracted from
30536         modules/iconv-h-tests.
30537         * modules/iconv-h-tests: Depend on it.
30538         * modules/langinfo-c++-tests: New file, extracted from
30539         modules/langinfo-tests.
30540         * modules/langinfo-tests: Depend on it.
30541         * modules/locale-c++-tests: New file, extracted from
30542         modules/locale-tests.
30543         * modules/locale-tests: Depend on it.
30544         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30545         * modules/math-tests: Depend on it.
30546         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30547         * modules/pty-tests: Depend on it.
30548         * modules/search-c++-tests: New file, extracted from
30549         modules/search-tests.
30550         * modules/search-tests: Depend on it.
30551         * modules/signal-c++-tests: New file, extracted from
30552         modules/signal-tests.
30553         * modules/signal-tests: Depend on it.
30554         * modules/spawn-c++-tests: New file, extracted from
30555         modules/spawn-tests.
30556         * modules/spawn-tests: Depend on it.
30557         * modules/stdio-c++-tests: New file, extracted from
30558         modules/stdio-tests.
30559         * modules/stdio-tests: Depend on it.
30560         * modules/stdlib-c++-tests: New file, extracted from
30561         modules/stdlib-tests.
30562         * modules/stdlib-tests: Depend on it.
30563         * modules/string-c++-tests: New file, extracted from
30564         modules/string-tests.
30565         * modules/string-tests: Depend on it.
30566         * modules/sys_ioctl-c++-tests: New file, extracted from
30567         modules/sys_ioctl-tests.
30568         * modules/sys_ioctl-tests: Depend on it.
30569         * modules/sys_select-c++-tests: New file, extracted from
30570         modules/sys_select-tests.
30571         * modules/sys_select-tests: Depend on it.
30572         * modules/sys_socket-c++-tests: New file, extracted from
30573         modules/sys_socket-tests.
30574         * modules/sys_socket-tests: Depend on it.
30575         * modules/sys_stat-c++-tests: New file, extracted from
30576         modules/sys_stat-tests.
30577         * modules/sys_stat-tests: Depend on it.
30578         * modules/sys_time-c++-tests: New file, extracted from
30579         modules/sys_time-tests.
30580         * modules/sys_time-tests: Depend on it.
30581         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30582         * modules/time-tests: Depend on it.
30583         * modules/unistd-c++-tests: New file, extracted from
30584         modules/unistd-tests.
30585         * modules/unistd-tests: Depend on it.
30586         * modules/wchar-c++-tests: New file, extracted from
30587         modules/wchar-tests.
30588         * modules/wchar-tests: Depend on it.
30589         * modules/wctype-c++-tests: New file, extracted from
30590         modules/wctype-tests.
30591         * modules/wctype-tests: Depend on it.
30592         Reported by Simon Josefsson.
30593
30594 2010-03-28  Bruno Haible  <bruno@clisp.org>
30595
30596         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30597         * gnulib-tool (func_exists_module): New function, extracted from
30598         func_verify_module.
30599         (func_verify_module): Use it.
30600         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30601         'foo' only if 'foo' exists.
30602         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30603         module.
30604
30605 2010-03-28  Bruno Haible  <bruno@clisp.org>
30606
30607         gnulib-tool: Add support for special categories of tests.
30608         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30609         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30610         (func_usage): Document them.
30611         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30612         inc_unportable_tests, inc_all_tests): New variables.
30613         (func_acceptable): Consider these variables.
30614         (func_modules_transitive_closure): Make it work when the 'Status' field
30615         consists of multiple words.
30616         (func_import): Store and restore the values of inc_cxx_tests,
30617         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30618         inc_all_tests in gnulib-comp.m4.
30619         (func_create_testdir): Set inc_all_tests to true.
30620         * doc/gnulib.texi (Extra tests modules): New section.
30621         Suggested by Jim Meyering.
30622
30623 2010-03-28  Bruno Haible  <bruno@clisp.org>
30624
30625         ansi-c++-opt: Allow turning off the C++ build by default.
30626         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30627         gl_CXX_CHOICE_DEFAULT_NO is defined.
30628         Requested by Eric Blake.
30629
30630 2010-03-28  Bruno Haible  <bruno@clisp.org>
30631
30632         unistd: Avoid #define replacements in C++ mode.
30633         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30634         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30635         setsockopt, shutdown, select): In C++, attach a warning to the function
30636         if possible, rather than #defining the symbol to a dysfunctional alias.
30637         Reported by John W. Eaton <jwe@gnu.org>.
30638
30639 2010-03-28  Bruno Haible  <bruno@clisp.org>
30640
30641         Fix link errors on mingw.
30642         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30643         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30644         $(LIBSOCKET).
30645         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30646         $(LIBSOCKET).
30647
30648 2010-03-28  Bruno Haible  <bruno@clisp.org>
30649             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30650
30651         lib-ignore: Determine different options for different compilers.
30652         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30653         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30654         Add comments.
30655         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30656         * NEWS: Mention the change.
30657
30658 2010-03-27  Bruno Haible  <bruno@clisp.org>
30659
30660         Remove unused GNULIB_XYZ macro definitions.
30661         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30662         * modules/fseek (configure.ac): Likewise.
30663         * modules/ioctl (configure.ac): Likewise.
30664         * modules/open (configure.ac): Likewise.
30665         * modules/stdlib-safer (configure.ac): Likewise.
30666
30667 2010-03-27  Bruno Haible  <bruno@clisp.org>
30668
30669         Add a remark about certain modules.
30670         * modules/malloc (Comment): New section.
30671         * modules/realloc (Comment): Likewise.
30672         * modules/sigpipe (Comment): Likewise.
30673
30674 2010-03-27  Bruno Haible  <bruno@clisp.org>
30675
30676         Resolve conflict between the two kinds of module indicators.
30677         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30678         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30679         * modules/canonicalize (configure.ac): Invoke
30680         gl_MODULE_INDICATOR_FOR_TESTS.
30681         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30682         GNULIB_XYZ.
30683         * tests/test-dirent-c++.cc: Likewise.
30684         * tests/test-dirent-safer.c: Likewise.
30685         * tests/test-dup2.c: Likewise.
30686         * tests/test-fchdir.c: Likewise.
30687         * tests/test-fcntl-h-c++.cc: Likewise.
30688         * tests/test-getopt.c: Likewise.
30689         * tests/test-getopt.h: Likewise.
30690         * tests/test-langinfo-c++.cc: Likewise.
30691         * tests/test-locale-c++.cc: Likewise.
30692         * tests/test-math-c++.cc: Likewise.
30693         * tests/test-pty-c++.cc: Likewise.
30694         * tests/test-search-c++.cc: Likewise.
30695         * tests/test-signal-c++.cc: Likewise.
30696         * tests/test-spawn-c++.cc: Likewise.
30697         * tests/test-stdio-c++.cc: Likewise.
30698         * tests/test-stdlib-c++.cc: Likewise.
30699         * tests/test-string-c++.cc: Likewise.
30700         * tests/test-sys_ioctl-c++.cc: Likewise.
30701         * tests/test-sys_select-c++.cc: Likewise.
30702         * tests/test-sys_socket-c++.cc: Likewise.
30703         * tests/test-sys_stat-c++.cc: Likewise.
30704         * tests/test-sys_time-c++.cc: Likewise.
30705         * tests/test-time-c++.cc: Likewise.
30706         * tests/test-unistd-c++.cc: Likewise.
30707         * tests/test-wchar-c++.cc: Likewise.
30708         * tests/uninorm/test-u8-nfc.c: Likewise.
30709         * tests/uninorm/test-u8-nfd.c: Likewise.
30710         * tests/uninorm/test-u8-nfkc.c: Likewise.
30711         * tests/uninorm/test-u8-nfkd.c: Likewise.
30712         * tests/uninorm/test-u16-nfc.c: Likewise.
30713         * tests/uninorm/test-u16-nfd.c: Likewise.
30714         * tests/uninorm/test-u16-nfkc.c: Likewise.
30715         * tests/uninorm/test-u16-nfkd.c: Likewise.
30716         * tests/uninorm/test-u32-nfc.c: Likewise.
30717         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30718         * tests/uninorm/test-u32-nfd.c: Likewise.
30719         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30720         * tests/uninorm/test-u32-nfkc.c: Likewise.
30721         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30722         * tests/uninorm/test-u32-nfkd.c: Likewise.
30723         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30724         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30725
30726 2010-03-27  Bruno Haible  <bruno@clisp.org>
30727
30728         Distinguish two kinds of module indicators.
30729         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30730         gl_MODULE_INDICATOR.
30731         (gl_MODULE_INDICATOR): New macro.
30732         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30733         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30734         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30735         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30736         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30737         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30738         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30739         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30740         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30741         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30742         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30743         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30745         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30746         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30748         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30749         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30750         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30751         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30752         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30753         * modules/cloexec (configure.ac): Likewise.
30754         * modules/getopt-gnu (configure.ac): Likewise.
30755         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30756         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30757         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30758         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30759
30760 2010-03-27  Bruno Haible  <bruno@clisp.org>
30761
30762         New module description field 'Comment'.
30763         * gnulib-tool: New option --extract-comment.
30764         (func_usage): Document it.
30765         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30766         (func_get_comment): New function.
30767         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30768
30769 2010-03-27  Bruno Haible  <bruno@clisp.org>
30770
30771         Addendum to 2010-02-07 commit.
30772         * gnulib-tool (func_usage): Document --extract-applicability option.
30773
30774 2010-03-27  Bruno Haible  <bruno@clisp.org>
30775
30776         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30777         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30778         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30779         rather than link errors.
30780
30781 2010-03-27  Bruno Haible  <bruno@clisp.org>
30782
30783         Avoid side effects from tests-related modules on the compilation of lib.
30784         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30785         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30786         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30787         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30788         macro.
30789         (func_import): Define a witness macro. Assign it a value that depends
30790         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30791         tests-related modules.
30792         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30793         Reported by Jim Meyering.
30794
30795 2010-03-27  Bruno Haible  <bruno@clisp.org>
30796
30797         Factorize common .m4 code.
30798         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30799         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30800         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30801         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30802         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30803         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30804         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30805         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30806         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30807         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30808         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30809         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30810         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30811         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30812         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30813         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30814         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30815         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30817         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30818         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30819         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30820         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30821         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30822         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30823         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30824         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30825         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30826         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30827         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30828         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30829         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30830
30831 2010-03-27  Bruno Haible  <bruno@clisp.org>
30832
30833         Fix a compilation error on Cygwin with g++ >= 4.3.
30834         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30835         if it is undefined or if we alias it to chmod.
30836         (lstat): Don't warn about the use of this function if it is undefined
30837         or if we alias it to stat.
30838         Reported by Simon Josefsson.
30839
30840 2010-03-27  Bruno Haible  <bruno@clisp.org>
30841
30842         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30843         * modules/getlogin (configure.ac): Update.
30844
30845         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30846         * modules/getlogin_r (configure.ac): Update.
30847
30848         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30850         * modules/inet_ntop (configure.ac): Update.
30851
30852         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30853         * modules/inet_pton (configure.ac): Update.
30854
30855         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30856         * modules/mbslen (configure.ac): Update.
30857
30858         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30859         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30860         * modules/forkpty (configure.ac): Update.
30861         * modules/openpty (configure.ac): Update.
30862
30863 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30864
30865         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30866         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30867
30868 2010-03-25  Eric Blake  <eblake@redhat.com>
30869
30870         maint: use pragma consistently across replacement headers
30871         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30872         * lib/dirent.in.h (system_header): Likewise.
30873         * lib/errno.in.h (system_header): Likewise.
30874         * lib/float.in.h (system_header): Likewise.
30875         * lib/getopt.in.h (system_header): Likewise.
30876         * lib/iconv.in.h (system_header): Likewise.
30877         * lib/inttypes.in.h (system_header): Likewise.
30878         * lib/langinfo.in.h (system_header): Likewise.
30879         * lib/locale.in.h (system_header): Likewise.
30880         * lib/math.in.h (system_header): Likewise.
30881         * lib/netdb.in.h (system_header): Likewise.
30882         * lib/netinet_in.in.h (system_header): Likewise.
30883         * lib/pty.in.h (system_header): Likewise.
30884         * lib/sched.in.h (system_header): Likewise.
30885         * lib/se-selinux.in.h (system_header): Likewise.
30886         * lib/search.in.h (system_header): Likewise.
30887         * lib/spawn.in.h (system_header): Likewise.
30888         * lib/stdarg.in.h (system_header): Likewise.
30889         * lib/stdint.in.h (system_header): Likewise.
30890         * lib/string.in.h (system_header): Likewise.
30891         * lib/strings.in.h (system_header): Likewise.
30892         * lib/sys_file.in.h (system_header): Likewise.
30893         * lib/sys_ioctl.in.h (system_header): Likewise.
30894         * lib/sys_socket.in.h (system_header): Likewise.
30895         * lib/sys_times.in.h (system_header): Likewise.
30896         * lib/sys_utsname.in.h (system_header): Likewise.
30897         * lib/sys_wait.in.h (system_header): Likewise.
30898         * lib/sysexits.in.h (system_header): Likewise.
30899         * lib/unistd.in.h (system_header): Likewise.
30900         * lib/wctype.in.h (system_header): Likewise.
30901
30902         arpa/inet: fix mingw compilation warning
30903         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30904         Reported by Matthew Bolte.
30905
30906 2010-03-25  Bruno Haible  <bruno@clisp.org>
30907
30908         Avoid collision between gnulib wrapper and libintl wrapper.
30909         * lib/printf.c (printf): Don't define if a printf wrapper is already
30910         defined in intl/printf.c.
30911         Reported by Michel Boaventura <michel@michelboaventura.com>.
30912
30913 2010-03-25  Bruno Haible  <bruno@clisp.org>
30914
30915         Use ANSI C.
30916         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30917
30918 2010-03-25  Bruno Haible  <bruno@clisp.org>
30919
30920         Minor formatting changes.
30921         * lib/acosl.c: Insert space before function argument list.
30922         * lib/argz.c: Likewise.
30923         * lib/asinl.c: Likewise.
30924         * lib/expl.c: Likewise.
30925         * lib/gen-uni-tables.c: Likewise.
30926         * lib/gettext.h: Likewise.
30927         * lib/glthread/lock.h: Likewise.
30928         * lib/tanl.c: Likewise.
30929         * lib/uniname/uniname.c: Likewise.
30930         * tests/test-idpriv-drop.c: Likewise.
30931         * tests/test-idpriv-droptemp.c: Likewise.
30932         * tests/test-lock.c: Likewise.
30933         * tests/test-tls.c: Likewise.
30934         * lib/argp-help.c: Insert space before function-like macro argument
30935         list.
30936         * lib/memcmp.c: Likewise.
30937         * tests/test-base64.c: Likewise.
30938         * lib/localename.c: Insert space before sizeof's argument list.
30939         * lib/safe-alloc.h: Likewise.
30940         * lib/file-set.h: Insert space before macro argument list.
30941         * tests/test-argp.c: Likewise.
30942         * lib/argp-namefrob.h: Insert space before function parameter list.
30943         * lib/getaddrinfo.c: Likewise.
30944         * lib/netdb.in.h: Likewise.
30945         * lib/parse-duration.h: Likewise.
30946         * lib/parse-duration.c: Likewise.
30947         * lib/poll.c: Likewise.
30948         * lib/select.c: Likewise.
30949         * lib/trim.h: Likewise.
30950         * tests/test-usleep.c: Likewise.
30951         * lib/ldexpl.c: Insert space before function parameter list and before
30952         function argument list.
30953         * lib/logl.c: Likewise.
30954         * lib/sqrtl.c: Likewise.
30955         * lib/trim.c: Likewise.
30956         * lib/cosl.c: Use GNU style indentation. Insert space before function
30957         argument list.
30958         * lib/sinl.c: Likewise.
30959         * lib/tsearch.c: Insert space after 'for'.
30960         Reported by Jim Meyering.
30961
30962 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30963
30964         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30965         config header before grepping, as it's not present before
30966         autoreconf/configure are run.  Reported by Simon Josefsson.
30967
30968 2010-03-23  Bruno Haible  <bruno@clisp.org>
30969
30970         pt_chown: Make it work with automake < 1.11.
30971         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30972         Reported by Simon Josefsson.
30973
30974 2010-03-23  Bruno Haible  <bruno@clisp.org>
30975
30976         pt_chown: Don't depend on GPLed modules.
30977         * lib/pt_chown.c: Don't include idpriv.h.
30978         (main): Don't drop privileges.
30979         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30980         Reported by Simon Josefsson.
30981
30982 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30983
30984         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30985         suggestions from karl@freefriends.org (Karl Berry).
30986
30987 2010-03-22  Eric Blake  <eblake@redhat.com>
30988
30989         gethostname: further tweaks
30990         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30991         are overriding gethostname.
30992         Suggested by Bruno Haible.
30993
30994 2010-03-21  Bruno Haible  <bruno@clisp.org>
30995
30996         Fix comments.
30997         * lib/forkpty.c (rpl_forkpty): Fix comment.
30998         * lib/openpty.c (rpl_openpty): Likewise.
30999         Reported by Eric Blake.
31000
31001 2010-03-22  Eric Blake  <eblake@redhat.com>
31002
31003         gethostname: fix build on mingw
31004         * lib/unistd.in.h (includes): Work around fact that mingw
31005         <winsock2.h> re-includes <unistd.h>, by avoiding any
31006         redeclarations if we are being included by <winsock2.h>.
31007         Reported by Matthias Bolte.
31008
31009 2010-03-21  Bruno Haible  <bruno@clisp.org>
31010
31011         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31012         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31013         modifications.
31014         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31015         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31016         provide the replacement.
31017         * modules/forkpty (Depends-on): Add openpty, login_tty.
31018         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31019         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31020         * doc/glibc-functions/forkpty.texi: More supported platforms.
31021         * config/srclist.txt: Add forkpty.c (commented).
31022
31023 2010-03-21  Bruno Haible  <bruno@clisp.org>
31024
31025         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31026         (Makefile.am): Verify that PTY_LIB is defined.
31027
31028         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31029
31030 2010-03-21  Bruno Haible  <bruno@clisp.org>
31031
31032         Tests for module 'login_tty'.
31033         * modules/login_tty-tests: New file.
31034         * tests/test-login_tty.c: New file.
31035
31036         New module 'login_tty'.
31037         * lib/login_tty.c: New file.
31038         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31039         * modules/login_tty: New file.
31040         * doc/glibc-functions/login_tty.texi: Mention the new module.
31041
31042 2010-03-21  Bruno Haible  <bruno@clisp.org>
31043
31044         login_tty: Documentation.
31045         * doc/glibc-functions/login_tty.texi: New file.
31046         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31047
31048 2010-03-21  Bruno Haible  <bruno@clisp.org>
31049
31050         pty: Consistent macro naming.
31051         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31052         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31053         * modules/pty (configure.ac): Update.
31054
31055 2010-03-21  Bruno Haible  <bruno@clisp.org>
31056
31057         Tests for openpty: Make stricter.
31058         * tests/test-openpty.c (main): Add test of canonical processing and
31059         erase.
31060         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31061
31062         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31063         * lib/openpty.c (openpty): New replacement function.
31064         * lib/pty.in.h: Include <termios.h>.
31065         (openpty): Update declaration. Add comments.
31066         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31067         is not declared, arrange to provide the replacement. Check for _getpty
31068         and posix_openpt.
31069         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31070         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31071         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31072         * modules/pty-tests (test_pty_c___LDADD): New variable.
31073         * doc/glibc-functions/openpty.texi: More supported platforms.
31074
31075 2010-03-21  Bruno Haible  <bruno@clisp.org>
31076
31077         setenv: Tweaks.
31078         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31079         the test program.
31080         * doc/posix-functions/setenv.texi: Update platforms list.
31081
31082 2010-03-21  Bruno Haible  <bruno@clisp.org>
31083
31084         New module 'unlockpt'.
31085         * lib/unlockpt.c: New file, from glibc with modifications.
31086         * m4/unlockpt.m4: New file.
31087         * modules/unlockpt: New file.
31088         * lib/stdlib.in.h (unlockpt): New declaration.
31089         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31090         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31091         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31092         HAVE_UNLOCKPT.
31093         * doc/posix-functions/unlockpt.texi: Mention the new module.
31094         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31095         * config/srclist.txt: Add unlockpt.c (commented).
31096
31097 2010-03-21  Jim Meyering  <meyering@redhat.com>
31098
31099         maint.mk: prohibit inclusion of "intprops.h" without use
31100         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31101
31102 2010-03-21  Bruno Haible  <bruno@clisp.org>
31103
31104         New module 'grantpt'.
31105         * lib/grantpt.c: New file, from glibc with modifications.
31106         * m4/grantpt.m4: New file.
31107         * modules/grantpt: New file.
31108         * lib/stdlib.in.h (grantpt): New declaration.
31109         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31110         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31111         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31112         HAVE_GRANTPT.
31113         * doc/posix-functions/grantpt.texi: Mention the new module.
31114         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31115         * config/srclist.txt: Add grantpt.c (commented).
31116
31117 2010-03-21  Bruno Haible  <bruno@clisp.org>
31118
31119         New module 'pt_chown'.
31120         * lib/pt_chown.c: New file, from glibc with modifications.
31121         * lib/pty-private.h: New file, from glibc with modifications.
31122         * modules/pt_chown: New file.
31123         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31124
31125 2010-03-21  Bruno Haible  <bruno@clisp.org>
31126
31127         Tests for module 'ptsname'.
31128         * modules/ptsname-tests: New file.
31129         * tests/test-ptsname.c: New file.
31130
31131         New module 'ptsname'.
31132         * lib/ptsname.c: New file, from glibc with modifications.
31133         * m4/ptsname.m4: New file.
31134         * modules/ptsname: New file.
31135         * lib/stdlib.in.h (ptsname): New declaration.
31136         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31137         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31138         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31139         HAVE_PTSNAME.
31140         * doc/posix-functions/ptsname.texi: Mention the new module.
31141         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31142         * config/srclist.txt: Add ptsname.c (commented).
31143
31144 2010-03-21  Bruno Haible  <bruno@clisp.org>
31145
31146         Tests for module 'ttyname_r'.
31147         * modules/ttyname_r-tests: New file.
31148         * tests/test-ttyname_r.c: New file.
31149
31150         New module 'ttyname_r'.
31151         * lib/ttyname_r.c: New file.
31152         * m4/ttyname_r.m4: New file.
31153         * modules/ttyname_r: New file.
31154         * lib/unistd.in.h (ttyname_r): New declaration.
31155         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31156         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31157         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31158         HAVE_TTYNAME_R.
31159         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31160         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31161
31162 2010-03-20  Bruno Haible  <bruno@clisp.org>
31163
31164         signal: Undefine macro definitions in C++ mode.
31165         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31166         sigfillset): Undefine macro definitions from the system header in C++
31167         mode.
31168         Reported by John W. Eaton <jwe@gnu.org>.
31169
31170 2010-03-20  Bruno Haible  <bruno@clisp.org>
31171
31172         Ensure no #include statements inside extern "C" { ... }.
31173         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31174         contain #include statements.
31175         * lib/time.in.h: Likewise.
31176
31177 2010-03-20  Bruno Haible  <bruno@clisp.org>
31178
31179         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31180         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31181         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31182         Reported by John W. Eaton <jwe@gnu.org>.
31183
31184 2010-03-20  Bruno Haible  <bruno@clisp.org>
31185
31186         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31187         Reported by Jim Meyering.
31188
31189 2010-03-20  Bruno Haible  <bruno@clisp.org>
31190
31191         pipe: Set errno upon failure.
31192         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31193         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31194         errno value in error message.
31195
31196 2010-03-20  Bruno Haible  <bruno@clisp.org>
31197             Jim Meyering  <meyering@redhat.com>
31198
31199         lchown: Avoid "unused variable" warning.
31200         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31201
31202 2010-03-20  Bruno Haible  <bruno@clisp.org>
31203
31204         Work around unlink() bug on MacOS X 10.5.6.
31205         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31206         attempting to unlink a parent directory.
31207         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31208         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31209         activate for the replacement function.
31210         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31211
31212 2010-03-20  Bruno Haible  <bruno@clisp.org>
31213
31214         Fix link errors on Solaris 8.
31215         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31216         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31217
31218 2010-03-19  Jim Meyering  <meyering@redhat.com>
31219
31220         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31221         The _LIBC implementation of build_range_exp correctly honors the
31222         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31223         However, the non-_LIBC implementation would ignore that syntax-bit
31224         flag and return REG_ERANGE unconditionally.
31225         This change makes it honor that flag.
31226         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31227         Make two pointer parameters "const".
31228         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31229         (parse_bracket_exp): Update caller.
31230
31231         regex.m4: correct the reversed range endpoint ([b-a]) test
31232         * m4/regex.m4: When requiring that [b-a] evoke failure,
31233         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31234         test pass once again for x86-based systems.
31235
31236 2010-03-19  Bruno Haible  <bruno@clisp.org>
31237
31238         scandir: Fix link error on Solaris 8.
31239         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31240         macros.
31241
31242 2010-03-19  Bruno Haible  <bruno@clisp.org>
31243
31244         getusershell: Fix documentation.
31245         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31246         module.
31247         * doc/glibc-functions/setusershell.texi: Likewise.
31248
31249         getusershell: Provide declaration, missing on Solaris 9.
31250         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31251         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31252         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31253         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31255         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31256         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31257         HAVE_GETUSERSHELL.
31258         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31259
31260 2010-03-19  Bruno Haible  <bruno@clisp.org>
31261
31262         wctype: Provide iswblank function.
31263         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31264         exists and is fine.
31265         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31266         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31267         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31268         * doc/posix-functions/iswblank.texi: Update.
31269
31270 2010-03-19  Bruno Haible  <bruno@clisp.org>
31271
31272         Tests of module 'pty' in C++ mode.
31273         * modules/pty-tests: New file.
31274         * tests/test-pty-c++.cc: New file.
31275         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31276
31277 2010-03-19  Eric Blake  <eblake@redhat.com>
31278
31279         logb: fix documentation
31280         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31281         1.5 declaration bug.
31282
31283         forkpty, openpty: prefer glibc's const-safe prototype
31284         * lib/forkpty.c (rpl_forkpty): New file.
31285         * lib/openpty.c (rpl_openpty): Likewise.
31286         * modules/forkpty (Files): Distribute it.
31287         * modules/openpty (Files): Likewise.
31288         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31289         check...
31290         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31291         replacement for for non-const BSD signature.
31292         * modules/pty (Makefile.am): Substitute witnesses.
31293         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31294         * tests/test-forkpty.c: Update signature check.
31295         * tests/test-openpty.c: Likewise.
31296         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31297         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31298
31299         forkpty, openpty: split functions into new modules
31300         * modules/pty (Makefile.am): Substitute new witnesses.
31301         (Libraries): Move library detection...
31302         * modules/forkpty: ...into new module.
31303         * modules/openpty: Another new module.
31304         * modules/pty-tests: Rename and split...
31305         * modules/forkpty-tests: ...to this...
31306         * modules/openpty-tests: ...and this.
31307         * tests/test-pty.c: Rename and split...
31308         * tests/test-forkpty.c: ...to this...
31309         * tests/test-openpty.c: ...and this.
31310         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31311         (gl_PTY): Split library searching...
31312         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31313         (gl_FORKPTY, gl_OPENPTY): New macros.
31314         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31315         * NEWS: Mention the split.
31316         * MODULES.html.sh (Misc): Document the modules.
31317         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31318         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31319
31320         pty: improve replacement header
31321         * lib/pty.in.h: New file.
31322         * modules/pty (Files): Ship it.
31323         (Makefile.am): Always build replacement.
31324         * m4/pty.m4: Rename...
31325         * m4/pty_h.m4: ...to this.
31326         (gl_PTY): Modernize setting of witness macros; update check of
31327         forkpty to take proper advantage of cache.
31328         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31329
31330         getopt: avoid compiler warning
31331         * lib/getopt.c (attribute_hidden): Remove unused macro.
31332
31333 2010-03-18  Bruno Haible  <bruno@clisp.org>
31334
31335         Fix link errors on Solaris 8.
31336         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31337         * modules/search-tests (test_search_c___LDADD): Likewise.
31338         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31339         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31340         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31341         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31342         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31343         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31344         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31345
31346 2010-03-18  Bruno Haible  <bruno@clisp.org>
31347
31348         Fix bug introduced on 2010-03-14.
31349         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31350         (gl_SPAWN_H): Require it.
31351         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31352         Reported by Simon Josefsson.
31353
31354 2010-03-18  Bruno Haible  <bruno@clisp.org>
31355
31356         Fix typo introduced on 2009-12-31.
31357         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31358         posix_spawn_file_actions_adddup2.
31359
31360 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31361         and Eric Blake  <eblake@redhat.com>
31362
31363         test-vc-list-files-git: make more robust
31364         * tests/test-vc-list-files-git.sh: Unset problematic environment
31365         variables.  Chain commands together.
31366
31367 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31368
31369         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31370         `AC_CHECK_DECL' invocation.
31371
31372 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31373
31374         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31375         appears before executable statements. Suggested by Petr Sumbera
31376         <Petr.Sumbera@Sun.COM>.
31377
31378 2010-03-14  Bruno Haible  <bruno@clisp.org>
31379
31380         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31381         portability problems. Instead use a simpler test.
31382         (main): Check that invalid arguments are rejected only on Linux.
31383
31384 2010-03-14  Bruno Haible  <bruno@clisp.org>
31385
31386         Fix bug introduced on 2009-12-31.
31387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31388         gl_PREREQ_SYS_H_WINSOCK2 always.
31389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31390         SYS_SOCKET_H variable.
31391         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31392         Update comments.
31393         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31394         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31395         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31396         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31397         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31398
31399 2010-03-14  Bruno Haible  <bruno@clisp.org>
31400
31401         Fix values returned by sinl, cosl.
31402         * lib/trigl.h: Add specification comments.
31403         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31404         that combines the values from the precomputed table with the values of
31405         the Chebyshev polynomials.
31406
31407 2010-03-14  Bruno Haible  <bruno@clisp.org>
31408
31409         Fix compilation error when modules 'posix_spawn[p]' are not used.
31410         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31412
31413 2010-03-14  Bruno Haible  <bruno@clisp.org>
31414
31415         Fix compilation error on mingw when module 'time_r' is not used.
31416         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31417         is 1.
31418         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31419         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31420         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31421         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31422
31423 2010-03-14  Bruno Haible  <bruno@clisp.org>
31424
31425         Fix compilation error with Sun C.
31426         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31427         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31428         instead of GCC specific ULONG_LONG_MAX.
31429         * lib/xstrtoll.c: Likewise.
31430         * lib/xstrtoull.c: Likewise.
31431
31432 2010-03-13  Bruno Haible  <bruno@clisp.org>
31433
31434         Allow the user to disable C++ code and tests.
31435         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31436         (gl_PROG_ANSI_CXX): Require it.
31437
31438 2010-03-13  Bruno Haible  <bruno@clisp.org>
31439
31440         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31441         cases.
31442
31443 2010-03-13  Bruno Haible  <bruno@clisp.org>
31444
31445         Test that gnulib does not break the standard C++ headers.
31446         * tests/test-locale-c++2.cc: New file.
31447         * modules/locale-tests (Files): Add it.
31448         (Makefile.am): Compile it for test-locale-c++.
31449         * tests/test-math-c++2.cc: New file.
31450         * modules/math-tests (Files): Add it.
31451         (Makefile.am): Compile it for test-math-c++.
31452         * tests/test-signal-c++2.cc: New file.
31453         * modules/signal-tests (Files): Add it.
31454         (Makefile.am): Compile it for test-signal-c++.
31455         * tests/test-stdio-c++2.cc: New file.
31456         * modules/stdio-tests (Files): Add it.
31457         (Makefile.am): Compile it for test-stdio-c++.
31458         * tests/test-stdlib-c++2.cc: New file.
31459         * modules/stdlib-tests (Files): Add it.
31460         (Makefile.am): Compile it for test-stdlib-c++.
31461         * tests/test-string-c++2.cc: New file.
31462         * modules/string-tests (Files): Add it.
31463         (Makefile.am): Compile it for test-string-c++.
31464         * tests/test-time-c++2.cc: New file.
31465         * modules/time-tests (Files): Add it.
31466         (Makefile.am): Compile it for test-time-c++.
31467         Reported by John W. Eaton <jwe@gnu.org>.
31468
31469 2010-03-13  Bruno Haible  <bruno@clisp.org>
31470
31471         * gnulib-tool (func_usage): Clarify which options are available for
31472         --create-testdir and --create-megatestdir.
31473
31474 2010-03-13  Bruno Haible  <bruno@clisp.org>
31475
31476         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31477         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31478         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31479         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31480         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31481         when appropriate.
31482         Reported by Jim Meyering.
31483
31484 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31485
31486         * gnulib-tool (func_import): Explain origin of code.
31487
31488 2010-03-12  Bruno Haible  <bruno@clisp.org>
31489
31490         Fix problem with automake's definition of CXXLINK.
31491         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31492         Reported by Simon Josefsson and Ludovic Courtès.
31493
31494 2010-03-12  Bruno Haible  <bruno@clisp.org>
31495
31496         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31497         stable releases.
31498
31499 2010-03-11  Bruno Haible  <bruno@clisp.org>
31500
31501         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31502         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31503         whether the system provides one variant or multiple variants of the
31504         function.
31505         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31506         C++ compilers.
31507         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31508         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31509         Reported by Jim Meyering.
31510
31511 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31512
31513         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31514
31515 2010-03-08  Bruno Haible  <bruno@clisp.org>
31516
31517         gnulib-tool: Add support for --libtool in --create-testdir.
31518         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31519         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31520
31521 2010-03-08  Eric Blake  <eblake@redhat.com>
31522
31523         gnulib-tool.texi: mention possibility of git submodule
31524         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31525         submodules.
31526         * doc/.gitignore: Ignore another generated file.
31527
31528 2010-03-08  Karl Berry  <karl@gnu.org>
31529
31530         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31531         of committing gnulib files while skipping others.
31532
31533 2010-03-07  Bruno Haible  <bruno@clisp.org>
31534
31535         Tests of module 'wctype' in C++ mode.
31536         * tests/test-wctype-c++.cc: New file.
31537         * modules/wctype-tests (Files): Add it and tests/signature.h.
31538         (Depends-on): Add ansi-c++-opt.
31539         (Makefile.am): Arrange to compile and run test-wctype-c++.
31540
31541         Tests of module 'wchar' in C++ mode.
31542         * tests/test-wchar-c++.cc: New file.
31543         * modules/wchar-tests (Files): Add it and tests/signature.h.
31544         (Depends-on): Add ansi-c++-opt.
31545         (Makefile.am): Arrange to compile and run test-wchar-c++.
31546         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31547         gl_MODULE_INDICATOR.
31548
31549         Tests of module 'unistd' in C++ mode.
31550         * tests/test-unistd-c++.cc: New file.
31551         * modules/unistd-tests (Files): Add it and tests/signature.h.
31552         (Depends-on): Add ansi-c++-opt.
31553         (Makefile.am): Arrange to compile and run test-unistd-c++.
31554         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31555         gl_MODULE_INDICATOR.
31556
31557         Tests of module 'time' in C++ mode.
31558         * tests/test-time-c++.cc: New file.
31559         * modules/time-tests (Files): Add it and tests/signature.h.
31560         (Depends-on): Add ansi-c++-opt.
31561         (Makefile.am): Arrange to compile and run test-time-c++.
31562         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31563
31564         Tests of module 'sys_time' in C++ mode.
31565         * tests/test-sys_time-c++.cc: New file.
31566         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31567         (Depends-on): Add ansi-c++-opt.
31568         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31569         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31570         gl_MODULE_INDICATOR.
31571
31572         Tests of module 'sys_stat' in C++ mode.
31573         * tests/test-sys_stat-c++.cc: New file.
31574         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31575         (Depends-on): Add ansi-c++-opt.
31576         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31577         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31578         gl_MODULE_INDICATOR.
31579
31580         Tests of module 'sys_socket' in C++ mode.
31581         * tests/test-sys_socket-c++.cc: New file.
31582         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31583         (Depends-on): Add ansi-c++-opt.
31584         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31585         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31586         gl_MODULE_INDICATOR.
31587
31588         Tests of module 'sys_select' in C++ mode.
31589         * tests/test-sys_select-c++.cc: New file.
31590         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31591         (Depends-on): Add ansi-c++-opt.
31592         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31593         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31594         gl_MODULE_INDICATOR.
31595
31596         Tests of module 'sys_ioctl' in C++ mode.
31597         * tests/test-sys_ioctl-c++.cc: New file.
31598         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31599         (Depends-on): Add ansi-c++-opt.
31600         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31601         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31602         gl_MODULE_INDICATOR.
31603
31604         Tests of module 'string' in C++ mode.
31605         * tests/test-string-c++.cc: New file.
31606         * modules/string-tests (Files): Add it and tests/signature.h.
31607         (Depends-on): Add ansi-c++-opt.
31608         (Makefile.am): Arrange to compile and run test-string-c++.
31609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31610         gl_MODULE_INDICATOR.
31611
31612         Tests of module 'stdlib' in C++ mode.
31613         * tests/test-stdlib-c++.cc: New file.
31614         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31615         (Depends-on): Add ansi-c++-opt.
31616         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31617         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31618         gl_MODULE_INDICATOR.
31619
31620         Tests of module 'stdio' in C++ mode.
31621         * tests/test-stdio-c++.cc: New file.
31622         * modules/stdio-tests (Files): Add it and tests/signature.h.
31623         (Depends-on): Add ansi-c++-opt.
31624         (Makefile.am): Arrange to compile and run test-stdio-c++.
31625         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31626         gl_MODULE_INDICATOR.
31627
31628         Tests of module 'spawn' in C++ mode.
31629         * tests/test-spawn-c++.cc: New file.
31630         * modules/spawn-tests (Files): Add it and tests/signature.h.
31631         (Depends-on): Add ansi-c++-opt.
31632         (Makefile.am): Arrange to compile and run test-spawn-c++.
31633         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31634         gl_MODULE_INDICATOR.
31635
31636         Tests of module 'signal' in C++ mode.
31637         * tests/test-signal-c++.cc: New file.
31638         * modules/signal-tests (Files): Add it and tests/signature.h.
31639         (Depends-on): Add ansi-c++-opt.
31640         (Makefile.am): Arrange to compile and run test-signal-c++.
31641         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31642         gl_MODULE_INDICATOR.
31643
31644         Tests of module 'search' in C++ mode.
31645         * tests/test-search-c++.cc: New file.
31646         * modules/search-tests (Files): Add it and tests/signature.h.
31647         (Depends-on): Add ansi-c++-opt.
31648         (Makefile.am): Arrange to compile and run test-search-c++.
31649         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31650         gl_MODULE_INDICATOR.
31651
31652         Tests of module 'math' in C++ mode.
31653         * tests/test-math-c++.cc: New file.
31654         * modules/math-tests (Files): Add it and tests/signature.h.
31655         (Depends-on): Add ansi-c++-opt.
31656         (Makefile.am): Arrange to compile and run test-math-c++.
31657         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31658
31659         Tests of module 'locale' in C++ mode.
31660         * tests/test-locale-c++.cc: New file.
31661         * modules/locale-tests (Files): Add it and tests/signature.h.
31662         (Depends-on): Add ansi-c++-opt.
31663         (Makefile.am): Arrange to compile and run test-locale-c++.
31664         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31665         gl_MODULE_INDICATOR.
31666
31667         Tests of module 'langinfo' in C++ mode.
31668         * tests/test-langinfo-c++.cc: New file.
31669         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31670         (Depends-on): Add ansi-c++-opt.
31671         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31672         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31673         gl_MODULE_INDICATOR.
31674
31675         Tests of module 'iconv-h' in C++ mode.
31676         * tests/test-iconv-h-c++.cc: New file.
31677         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31678         (Depends-on): Add ansi-c++-opt.
31679         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31680
31681         Tests of module 'glob' in C++ mode.
31682         * tests/test-glob-c++.cc: New file.
31683         * modules/glob-tests (Files): Add it.
31684         (Depends-on): Add ansi-c++-opt.
31685         (Makefile.am): Arrange to compile and run test-glob-c++.
31686
31687         Tests of module 'fcntl-h' in C++ mode.
31688         * tests/test-fcntl-h-c++.cc: New file.
31689         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31690         (Depends-on): Add ansi-c++-opt.
31691         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31692         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31693         gl_MODULE_INDICATOR.
31694
31695         Tests of module 'dirent' in C++ mode.
31696         * tests/test-dirent-c++.cc: New file.
31697         * modules/dirent-tests (Files): Add it and tests/signature.h.
31698         (Depends-on): Add ansi-c++-opt.
31699         (Makefile.am): Arrange to compile and run test-dirent-c++.
31700         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31701         gl_MODULE_INDICATOR.
31702
31703         New module 'ansi-c++-opt'.
31704         * modules/ansi-c++-opt: New file.
31705         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31706
31707         Document C++ namespace mode.
31708         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31709
31710         wctype: Avoid #define replacements in C++ mode.
31711         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31712         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31713         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31714         In C++, define a namespaced alias symbol.
31715         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31716         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31717         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31718         rule.
31719
31720         wchar: Avoid #define replacements in C++ mode.
31721         * lib/wchar.in.h: Include c++defs.h.
31722         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31723         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31724         symbol.
31725         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31726         * modules/wchar (Depends-on): Add c++defs.
31727         (Makefile.am): Update wchar.h rule.
31728
31729         unistd: Avoid #define replacements in C++ mode.
31730         * lib/unistd.in.h: Include c++defs.h.
31731         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31732         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31733         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31734         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31735         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31736         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31737         symbol.
31738         (environ): Update.
31739         * modules/unistd (Depends-on): Add c++defs.
31740         (Makefile.am): Update unistd.h rule.
31741
31742         time: Avoid #define replacements in C++ mode.
31743         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31744         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31745         define a namespaced alias symbol.
31746         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31747         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31748         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31749         * modules/time (Depends-on): Add c++defs, warn-on-use.
31750         (Makefile.am): Update time.h rule.
31751         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31752         * modules/nanosleep (configure.ac): Likewise.
31753         * modules/strptime (configure.ac): Likewise.
31754         * modules/timegm (configure.ac): Likewise.
31755
31756         sys_time: Avoid #define replacements in C++ mode.
31757         * lib/sys_time.in.h: Include c++defs.h.
31758         (gettimeofday): In C++, define a namespaced alias symbol.
31759         * modules/sys_time (Depends-on): Add c++defs.
31760         (Makefile.am): Update sys/time.h rule.
31761
31762         sys_stat: Avoid #define replacements in C++ mode.
31763         * lib/sys_stat.in.h: Include c++defs.h.
31764         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31765         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31766         namespaced alias symbol.
31767         In C++, define a namespaced alias symbol.
31768         * modules/sys_stat (Depends-on): Add c++defs.
31769         (Makefile.am): Update sys/stat.h rule.
31770
31771         sys_socket: Avoid #define replacements in C++ mode.
31772         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31773         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31774         definitions also when the system has a <sys/socket.h>.
31775         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31776         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31777         In C++, define a namespaced alias symbol.
31778         * modules/sys_socket (Depends-on): Add c++defs.
31779         (Makefile.am): Update sys/socket.h rule.
31780
31781         sys_select: Avoid #define replacements in C++ mode.
31782         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31783         definitions also when the system has a <sys/select.h>.
31784         (select): In C++, define a namespaced alias symbol.
31785         * modules/sys_select (Depends-on): Add c++defs.
31786         (Makefile.am): Update sys/select.h rule.
31787
31788         sys_ioctl: Avoid #define replacements in C++ mode.
31789         * lib/sys_ioctl.in.h: Include c++defs.h.
31790         (ioctl): In C++, define a namespaced alias symbol.
31791         * modules/sys_ioctl (Depends-on): Add c++defs.
31792         (Makefile.am): Update sys/ioctl.h rule.
31793
31794         string: Avoid #define replacements in C++ mode.
31795         * lib/string.in.h: Include c++defs.h.
31796         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31797         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31798         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31799         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31800         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31801         * modules/string (Depends-on): Add c++defs.
31802         (Makefile.am): Update string.h rule.
31803
31804         stdlib: Avoid #define replacements in C++ mode.
31805         * lib/stdlib.in.h: Include c++defs.h.
31806         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31807         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31808         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31809         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31810         symbol.
31811         * modules/stdlib (Depends-on): Add c++defs.
31812         (Makefile.am): Update stdlib.h rule.
31813
31814         stdio: Avoid #define replacements in C++ mode.
31815         * lib/stdio.in.h: Include c++defs.h.
31816         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31817         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31818         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31819         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31820         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31821         namespaced alias symbol.
31822         * modules/stdio (Depends-on): Add c++defs.
31823         (Makefile.am): Update stdio.h rule.
31824
31825         spawn: Avoid #define replacements in C++ mode.
31826         * lib/spawn.in.h: Include c++defs.h.
31827         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31828         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31829         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31830         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31831         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31832         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31833         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31834         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31835         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31836         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31837         In C++, define a namespaced alias symbol.
31838         * modules/spawn (Depends-on): Add c++defs.
31839         (Makefile.am): Update spawn.h rule.
31840
31841         signal: Avoid #define replacements in C++ mode.
31842         * lib/signal.in.h: Include c++defs.h.
31843         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31844         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31845         namespaced alias symbol.
31846         * modules/signal (Depends-on): Add c++defs.
31847         (Makefile.am): Update signal.h rule.
31848
31849         search: Avoid #define replacements in C++ mode.
31850         * lib/search.in.h: Include c++defs.h.
31851         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31852         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31853         symbol.
31854         * modules/search (Depends-on): Add c++defs.
31855         (Makefile.am): Update search.h rule.
31856
31857         math: Avoid #define replacements in C++ mode.
31858         * lib/math.in.h: Include c++defs.h.
31859         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31860         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31861         trunc, truncl): In C++, define a namespaced alias symbol.
31862         * modules/math (Depends-on): Add c++defs.
31863         (Makefile.am): Update math.h rule.
31864
31865         locale: Avoid #define replacements in C++ mode.
31866         * lib/locale.in.h: Include c++defs.h.
31867         (duplocale): In C++, define a namespaced alias symbol.
31868         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31869         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31870         * modules/locale (Depends-on): Add c++defs.
31871         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31872
31873         langinfo: Avoid #define replacements in C++ mode.
31874         * lib/langinfo.in.h: Include c++defs.h.
31875         (nl_langinfo): In C++, define a namespaced alias symbol.
31876         * modules/langinfo (Depends-on): Add c++defs.
31877         (Makefile.am): Update langinfo.h rule.
31878
31879         iconv-h: Avoid #define replacements in C++ mode.
31880         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31881         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31882         symbol.
31883         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31884         whenever iconv is present.
31885         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31886         (Makefile.am): Update iconv.h rule.
31887
31888         glob: Avoid #define replacements in C++ mode.
31889         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31890         (_gl_glob_errfunc_fn): New type.
31891         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31892         symbol.
31893         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31894         (Makefile.am): Update glob.h rule.
31895
31896         fcntl-h: Avoid #define replacements in C++ mode.
31897         * lib/fcntl.in.h: Include c++defs.h.
31898         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31899         * modules/fcntl-h (Depends-on): Add c++defs.
31900         (Makefile.am): Update fcntl.h rule.
31901
31902         dirent: Avoid #define replacements in C++ mode.
31903         * lib/dirent.in.h: Include c++defs.h.
31904         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31905         namespaced alias symbol.
31906         (dirfd): Update declaration.
31907         * modules/dirent (Depends-on): Add c++defs.
31908         (Makefile.am): Update dirent.h rule.
31909
31910         ctype: Make it usable in C++ code.
31911         * lib/ctype.in.h: Include c++defs.h.
31912         (isblank): Declare as extern "C".
31913         * modules/ctype (Depends-on): Add c++defs.
31914         (Makefile.am): Update ctype.h rule.
31915
31916         New module 'c++defs'.
31917         * modules/c++defs: New file.
31918         * build-aux/c++defs.h: New file.
31919         Reported by John W. Eaton <jwe@gnu.org>.
31920
31921 2010-03-07  Bruno Haible  <bruno@clisp.org>
31922
31923         logb: Provide missing declaration for Cygwin.
31924         * lib/math.in.h (logb): New declaration.
31925         * m4/logb.m4: New file.
31926         * modules/logb (Files): Add m4/logb.m4.
31927         (Depends-on): Add math.
31928         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31929         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31931         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31932         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31933
31934 2010-03-07  Bruno Haible  <bruno@clisp.org>
31935
31936         Fix test-cond link error.
31937         * tests/test-cond.c: Include <stdio.h>.
31938
31939 2010-03-07  Bruno Haible  <bruno@clisp.org>
31940
31941         Fix test-dirent-safer link error.
31942         * modules/dirent-safer-tests (Makefile.am): Define
31943         test_dirent_safer_LDADD.
31944
31945 2010-03-07  Bruno Haible  <bruno@clisp.org>
31946
31947         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31948         among default module list.
31949
31950 2010-03-07  Bruno Haible  <bruno@clisp.org>
31951
31952         Fix link error on platforms with GNU libiconv.
31953         * modules/unistr/u8-strcoll-tests (Makefile): Define
31954         test_u8_strcoll_LDADD.
31955         * modules/unistr/u16-strcoll-tests (Makefile): Define
31956         test_u16_strcoll_LDADD.
31957         * modules/unistr/u32-strcoll-tests (Makefile): Define
31958         test_u32_strcoll_LDADD.
31959
31960 2010-03-07  Bruno Haible  <bruno@clisp.org>
31961
31962         Use POSIX declarations for socket functions.
31963         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31964         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31965         rpl_sendto): Change declaration to match POSIX.
31966         * lib/connect.c (rpl_connect): Likewise.
31967         * lib/accept.c (rpl_accept): Likewise.
31968         * lib/bind.c (rpl_bind): Likewise.
31969         * lib/getpeername.c (rpl_getpeername): Likewise.
31970         * lib/getsockname.c (rpl_getsockname): Likewise.
31971         * lib/recv.c (rpl_recv): Likewise.
31972         * lib/send.c (rpl_send): Likewise.
31973         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31974         * lib/sendto.c (rpl_sendto): Likewise.
31975
31976 2010-03-06  Bruno Haible  <bruno@clisp.org>
31977
31978         Clarify access, euidaccess, faccessat.
31979         * doc/posix-functions/faccessat.texi: Mention security problem under
31980         "Other problems", not "Portability problems".
31981         * doc/posix-functions/access.texi: Likewise. Mention a related security
31982         problem.
31983         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31984         * lib/euidaccess.c: Add comments about platforms.
31985         * lib/unistd.in.h (access, euidaccess): Add warnings.
31986
31987 2010-03-07  Bruno Haible  <bruno@clisp.org>
31988
31989         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31990         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31991         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31992         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31993         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31994         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31995         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31996         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31997         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31999         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32000         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32001         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32002         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32003         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32004         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32005         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32006         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32007         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32008         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32009         Likewise.
32010         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32011         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32012         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32013         Likewise.
32014         * tests/test-spawn.c (main): Make it work when
32015         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32016
32017 2010-03-07  Bruno Haible  <bruno@clisp.org>
32018
32019         Fix incorrect Makefile.am generation in German locale.
32020         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32021         Execute sed command with character range in C locale.
32022
32023 2010-03-06  Bruno Haible  <bruno@clisp.org>
32024
32025         Tests for module 'iconv-h'.
32026         * modules/iconv-h-tests: New file.
32027         * tests/test-iconv-h.c: New file.
32028
32029         New module 'iconv-h'.
32030         * modules/iconv-h: New file.
32031         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32032         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32033         (configure.ac): Remove gl_ICONV_H.
32034         (Makefile.am): Remove rule for iconv.h.
32035
32036 2010-03-06  Bruno Haible  <bruno@clisp.org>
32037
32038         More consistent naming of *.m4 files.
32039         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32040         * modules/wctype (Files): Update.
32041
32042         More consistent naming of *.m4 files.
32043         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32044         * modules/wchar (Files): Update.
32045
32046 2010-03-06  Jim Meyering  <meyering@redhat.com>
32047
32048         euidaccess: relax license to LGPLv2+
32049         * modules/euidaccess (License): Relax to LGPLv2+.
32050
32051 2010-03-06  Bruno Haible  <bruno@clisp.org>
32052
32053         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32054         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32055         (Makefile.am): Augment lib_SOURCES instead.
32056
32057 2010-03-04  Jim Meyering  <meyering@redhat.com>
32058
32059         utime: remove obsolete module
32060         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32061         unnecessary for years, and has been marked as obsolete for 10 months.
32062         * modules/utime: Remove file.
32063         * lib/utime.c: Remove file.
32064         * m4/utime.m4: Remove file.
32065         * m4/utimes-null.m4: Remove file.
32066         * doc/posix-functions/utime.texi (utime): Remove reference to
32067         the module.  Move the sole "fixed by gnulib" item into the
32068         "problems not fixed by Gnulib" list.
32069         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32070
32071 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32072
32073         * modules/exit (License): Relax license to LGPLv2+.
32074         (Status): Mark as obsolete.
32075         * NEWS: Mention deprecated 'exit' module.
32076         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32077         of now obsolete 'exit'.
32078
32079 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32080
32081         fts-lgpl: remove unused module
32082         * modules/fts-lgpl: Remove.
32083         * MODULES.html.sh (func_all_modules): Adjust.
32084         * check-module (find_included_lib_files): Adjust.
32085         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32086
32087 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32088
32089         copy-acl: enhance Solaris ACL error handling
32090         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32091         * lib/set-mode-acl.c (qset_acl): Likewise.
32092
32093 2010-03-02  Bruno Haible  <bruno@clisp.org>
32094
32095         spawn: Don't override the system defined values on FreeBSD 8.
32096         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32097         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32098         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32099         if HAVE_POSIX_SPAWN is 1.
32100         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32101
32102 2010-03-01  Bruno Haible  <bruno@clisp.org>
32103
32104         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32105         regarding Automake.
32106
32107 2010-02-25  Bruno Haible  <bruno@clisp.org>
32108
32109         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32110         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32111         setting, not afterwards.
32112         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32113
32114 2010-02-24  Eric Blake  <eblake@redhat.com>
32115
32116         bootstrap, git-version-gen: use timestamp
32117         * build-aux/git-version-gen (scriptversion): Force UTC.
32118         * build-aux/bootstrap (scriptversion): New variable.
32119
32120         bootstrap: allow older git
32121         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32122         older than 1.6.4.  Requested by the libvirt project.
32123
32124 2010-02-23  Eric Blake  <eblake@redhat.com>
32125
32126         warn-on-use: work with old autoconf
32127         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32128         AS_VAR semantics of autoconf 2.60.
32129         Reported by Bruno Haible.
32130
32131         bootstrap: improve some comments
32132         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32133         clarification comments.
32134
32135         gettimeofday: provide correct function
32136         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32137         when replacement is declared, otherwise provide gettimeofday.
32138         Reported by Michael Goffioul.
32139
32140 2010-02-23  Jim Meyering  <meyering@redhat.com>
32141
32142         lib-ignore: relax license to "unlimited", not LGPLv2+
32143         * modules/lib-ignore (License): Relax to "unlimited".
32144
32145 2010-02-23  Jim Meyering  <meyering@redhat.com>
32146
32147         lib-ignore: relax license to LGPLv2+
32148         * modules/lib-ignore (License): Relax to LGPLv2+.
32149
32150 2010-02-22  Eric Blake  <eblake@redhat.com>
32151
32152         lseek: avoid bash 3.2 broken pipe bug
32153         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32154         warning from bash 3.2.
32155         Reported by Ben Pfaff, with analysis from Bruno Haible.
32156
32157         bootstrap: support non-FSF copyright holder
32158         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32159         bootstrap.conf override of COPYRIGHT_HOLDER.
32160         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32161
32162         bootstrap: interoperate with gettext 0.14.1
32163         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32164
32165         bootstrap: allow for alternate submodule location
32166         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32167         hardcoding submodule location.
32168         (gnulib_mk): Allow direct use of Makefile.am.
32169
32170         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32171         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32172         rather than reconfiguring where the submodule points.
32173
32174         gettimeofday: restore support for platforms that lack function
32175         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32176         replacement if function is missing.
32177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32178         * modules/sys_time (Makefile.am): Substitute it.
32179         * lib/sys_time.in.h (gettimeofday): Check it.
32180         Reported by Michael Goffioul.
32181
32182 2010-02-21  Bruno Haible  <bruno@clisp.org>
32183
32184         * lib/stdio.in.h (obstack_printf): Fix typo.
32185
32186 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32187
32188         vc-list-files: use bzr ls's -R option
32189         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32190         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32191
32192 2010-02-21  Jim Meyering  <meyering@redhat.com>
32193
32194         init.sh: fix EXEEXT shims to work also for names like test-prog
32195         * tests/init.sh: Re-exec a better shell, when needed.
32196         If the current shell lacks support for posix $(...), an init.sh-using
32197         test will now try to find a shell that supports that.  If EXEEXT is
32198         nonempty, we also require support for hyphen-in-alias-name and shell
32199         substitutions like ${var#glob}.  Failure to find such a shell results
32200         in a skipped test.
32201
32202 2010-02-21  Bruno Haible  <bruno@clisp.org>
32203
32204         Really work around around "broken pipe" error message from bash 3.2.
32205         * gnulib-tool (func_reset_sigpipe): Remove function.
32206         (echo): In bash 3.2, define to a function that uses printf.
32207         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32208
32209 2010-02-20  Bruno Haible  <bruno@clisp.org>
32210
32211         Restore support for automake 1.9.6 with autoconf 2.61.
32212         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32213         Reported by James Youngman <jay@gnu.org>.
32214
32215 2010-02-20  Bruno Haible  <bruno@clisp.org>
32216
32217         Improve *printf warning condition.
32218         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32219         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32220         and the function is overridden due to SIGPIPE emulation.
32221
32222 2010-02-20  Bruno Haible  <bruno@clisp.org>
32223
32224         * lib/stdio.in.h: Tweak comments.
32225
32226 2010-02-19  Bruno Haible  <bruno@clisp.org>
32227
32228         Make it easier to find modules. New gnulib-tool option '--find'.
32229         * gnulib-tool: New option --find.
32230         (func_usage): Document it.
32231         (func_sanitize_modulelist): New function, extracted from
32232         func_all_modules.
32233         (func_all_modules): Invoke it.
32234         * doc/gnulib-tool.texi (Which modules?): New node.
32235
32236 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32237
32238         * lib/sys_select.in.h: Provide select replacement even if
32239         sys/select.h exists on a system, for Interix.
32240
32241 2010-02-18  Jim Meyering  <meyering@redhat.com>
32242
32243         init.sh: don't use $(...) just yet
32244         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32245         to accommodate e.g., Solaris' /bin/sh.
32246
32247 2010-02-17  Bruno Haible  <bruno@clisp.org>
32248
32249         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32250         Reported by Ludovic Courtès <ludo@gnu.org>.
32251
32252 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32253
32254         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32255         linking with -lintl.
32256
32257 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32258
32259         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32260         if not provided by the system's netdb.h.  Reported by
32261         ludo@gnu.org (Ludovic Courtès).
32262
32263 2010-02-15  Jim Meyering  <meyering@redhat.com>
32264
32265         init.sh: improve portability and efficiency
32266         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32267         "dummy" in a for loop.
32268         Use '!', not '^' to select the complement of a character set used
32269         in a "case" statement.
32270         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32271         Suggestions from Eric Blake.
32272
32273         init.sh: automatically accommodate programs with the .exe suffix
32274         Automatically arrange for an invocation of "prog" to execute the
32275         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32276         may use the simpler "prog", yet still work when built on a system
32277         that requires specifying the added suffix.
32278         Do this by constructing a function named "prog" that invokes
32279         "prog.exe" for each .exe file in selected directories.
32280         * tests/init.sh (find_exe_basenames_): New function.
32281         (create_exe_shim_functions_): New function.
32282         (path_prepend_): Use it.
32283
32284         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32285         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32286         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32287
32288 2010-02-14  Jim Meyering  <meyering@redhat.com>
32289
32290         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32291         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32292         (sc_prohibit_hash_pjw_without_use): New rule.
32293
32294         maint.mk: allow the default upload destination dir to be overridden
32295         * top/maint.mk (upload_dest_dir_): Define with a default that
32296         preserves the status quo.
32297         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32298         Reported by Peter Simons.
32299
32300         maint.mk: prohibit inclusion of "hash.h" without_use
32301         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32302
32303 2010-02-10  Jim Meyering  <meyering@redhat.com>
32304
32305         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32306         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32307
32308 2010-02-09  Eric Blake  <ebb9@byu.net>
32309         and Bruno Haible  <bruno@clisp.org>
32310
32311         obstack-printf-posix: ensure declaration
32312         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32313         extracted from gl_FUNC_OBSTACK_PRINTF.
32314         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32315         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32316         Likewise.
32317         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32318         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32319         0.
32320
32321 2010-02-08  Bruno Haible  <bruno@clisp.org>
32322
32323         gnulib-tool: Fix typo in 2010-02-07 commit.
32324         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32325         Reported by Eric Blake.
32326
32327 2010-02-07  Bruno Haible  <bruno@clisp.org>
32328
32329         gnulib-tool: Fix up caching patches.
32330         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32331         option --no-cache. Use associative arrays when supported by the shell.
32332         (sed_comments): New variable.
32333         (modcache): Renamed from do_cache.
32334         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32335         abbreviate unnecessarily.
32336         (have_associative): New variable.
32337         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32338         way also for ksh and zsh.
32339         (func_init_sed_convert_to_cache_statements): New function, extracted
32340         from func_cache_lookup_module. Add support for associative arrays.
32341         Don't set the c_MODULE_cached variable here. Ignore all lines before
32342         the first field header. Remove only the final newline, not all trailing
32343         newlines. Support empty fields correctly. Limit the use of 'eval' to
32344         assignments.
32345         (func_get_description, func_get_status, func_get_notice,
32346         func_get_applicability, func_get_filelist, func_get_dependencies,
32347         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32348         func_get_automake_snippet, func_get_include_directive,
32349         func_get_link_directive, func_get_license, func_get_maintainer):
32350         Update documentation. List the unoptimized code first. Add support for
32351         associative arrays. Limit the use of 'eval' to assignments.
32352         (func_get_applicability): Undo stylistic pessimisations.
32353         (func_get_automake_snippet, func_get_include_directive): Reduce code
32354         duplication.
32355         (func_modules_transitive_closure, func_modules_add_dummy,
32356         func_modules_notice, func_modules_to_filelist, func_add_file,
32357         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32358         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32359         func_create_testdir, func_create_megatestdir): Update documentation.
32360
32361 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32362
32363         * gnulib-tool (func_cache_lookup_module): Store the module name
32364         belonging to the cache variable; error out if two different
32365         module names map to the same cache variable name.
32366
32367 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32368
32369         gnulib-tool: Make caching optional.
32370         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32371         Update matching short versions of --no-changelog.
32372         (func_usage): Update.
32373         (sed_extract_cache_prog): Renamed from ...
32374         (sed_extract_prog): ... this; revert to old extraction script.
32375         (func_get_description, func_get_status)
32376         (func_get_notice, func_get_applicability, func_get_filelist)
32377         (func_get_dependencies, func_get_autoconf_early_snippet)
32378         (func_get_autoconf_snippet, func_get_automake_snippet)
32379         (func_get_include_directive, func_get_link_directive)
32380         (func_get_license, func_get_maintainer): If $do_cache is false,
32381         use old, non-caching extraction scripts.
32382         Suggestion by Bruno Haible.
32383
32384 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32385
32386         gnulib-tool: cache module metainformation.
32387         * gnulib-tool (sed_extract_prog): Match newline before each
32388         header, and rewrite header to a shell variable suffix.
32389         (func_cache_var, func_cache_lookup_module): New functions,
32390         to turn a module name into a cache variable prefix, and to
32391         look up and cache module metainformation.
32392         (func_get_description, func_get_status)
32393         (func_get_notice, func_get_applicability, func_get_filelist)
32394         (func_get_dependencies, func_get_autoconf_early_snippet)
32395         (func_get_autoconf_snippet, func_get_automake_snippet)
32396         (func_get_include_directive, func_get_link_directive)
32397         (func_get_license, func_get_maintainer): Use
32398         func_cache_lookup_module.
32399
32400 2010-02-07  Bruno Haible  <bruno@clisp.org>
32401
32402         fnctl: Fix missing dependency.
32403         * modules/fcntl (Depends-on): Add getdtablesize.
32404         Reported by John W. Eaton <jwe@gnu.org>.
32405
32406 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32407
32408         Argp: fix recognition of short alias options.
32409
32410         * lib/argp-parse.c (convert_options): Fix improper use of
32411         `|' between character values.
32412         * tests/test-argp.c (group1_option): New alias option
32413         --read (-r).
32414         (group1_parser): Special handling for 'r'.
32415         (test15): New test case.
32416         (test_fun): Add test15.
32417         * tests/test-argp-2.sh: Update expected --help and --usage
32418         outputs.
32419
32420 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32421
32422         * tests/test-argp.c: Fix indentation.
32423
32424 2010-02-04  Eric Blake  <ebb9@byu.net>
32425
32426         gettimeofday: expose type of second argument
32427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32428         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32429         * tests/test-gettimeofday.c: Use it to silence warning.
32430         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32431         the issue.
32432
32433 2010-02-03  Jim Meyering  <meyering@redhat.com>
32434
32435         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32436         * lib/regcomp.c (TYPE_SIGNED): Define.
32437         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32438
32439         regcomp.c: avoid a new -Wshadow warning
32440         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32441
32442 2010-02-01  Jim Meyering  <meyering@redhat.com>
32443
32444         removing useless parentheses in cpp #define directives
32445         For motivation, see commit c0221df4, "define STREQ(a,b)
32446         consistently, removing useless parentheses"
32447         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32448         * lib/mountlist.c (MNT_IGNORE): Likewise.
32449         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32450
32451 2010-02-01  Eric Blake  <ebb9@byu.net>
32452
32453         sys_time: use link-warning
32454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32455         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32456         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32457         * modules/sys_time (Depends-on): Add warn-on-use.
32458         (Makefile.am): Always build replacement.
32459         (configure.ac): Update substitutions.
32460         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32461         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32462         bother with SYS_TIME_H.
32463         * modules/gettimeofday (configure.ac): Declare indicator.
32464         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32465         in use.
32466
32467         closein-tests: silence compiler warning
32468         * tests/test-closein.c (main): Ignore fread result.
32469         * modules/closein-tests (Depends-on): Add ignore-value.
32470
32471         tests: silence warning about system return
32472         * tests/test-areadlink-with-size.c (main): Ignore system result.
32473         * tests/test-areadlink.c (main): Likewise.
32474         * tests/test-areadlinkat-with-size.c (main): Likewise.
32475         * tests/test-areadlinkat.c (main): Likewise.
32476         * tests/test-canonicalize-lgpl.c (main): Likewise.
32477         * tests/test-canonicalize.c (main): Likewise.
32478         * tests/test-chown.c (main): Likewise.
32479         * tests/test-fchownat.c (main): Likewise.
32480         * tests/test-fdutimensat.c (main): Likewise.
32481         * tests/test-fstatat.c (main): Likewise.
32482         * tests/test-futimens.c (main): Likewise.
32483         * tests/test-lchown.c (main): Likewise.
32484         * tests/test-link.c (main): Likewise.
32485         * tests/test-linkat.c (main): Likewise.
32486         * tests/test-lstat.c (main): Likewise.
32487         * tests/test-mkdir.c (main): Likewise.
32488         * tests/test-mkdirat.c (main): Likewise.
32489         * tests/test-mkfifo.c (main): Likewise.
32490         * tests/test-mkfifoat.c (main): Likewise.
32491         * tests/test-mknod.c (main): Likewise.
32492         * tests/test-readlink.c (main): Likewise.
32493         * tests/test-remove.c (main): Likewise.
32494         * tests/test-rename.c (main): Likewise.
32495         * tests/test-renameat.c (main): Likewise.
32496         * tests/test-rmdir.c (main): Likewise.
32497         * tests/test-symlink.c (main): Likewise.
32498         * tests/test-symlinkat.c (main): Likewise.
32499         * tests/test-unlink.c (main): Likewise.
32500         * tests/test-unlinkat.c (main): Likewise.
32501         * tests/test-utimens.c (main): Likewise.
32502         * tests/test-utimensat.c (main): Likewise.
32503         * modules/areadlink-tests (Depends-on): Add ignore-value.
32504         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32505         * modules/areadlinkat-tests (Depends-on): Likewise.
32506         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32507         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32508         * modules/canonicalize-tests (Depends-on): Likewise.
32509         * modules/chown-tests (Depends-on): Likewise.
32510         * modules/fdutimensat-tests (Depends-on): Likewise.
32511         * modules/futimens-tests (Depends-on): Likewise.
32512         * modules/lchown-tests (Depends-on): Likewise.
32513         * modules/link-tests (Depends-on): Likewise.
32514         * modules/linkat-tests (Depends-on): Likewise.
32515         * modules/lstat-tests (Depends-on): Likewise.
32516         * modules/mkdir-tests (Depends-on): Likewise.
32517         * modules/mkfifo-tests (Depends-on): Likewise.
32518         * modules/mkfifoat-tests (Depends-on): Likewise.
32519         * modules/mknod-tests (Depends-on): Likewise.
32520         * modules/openat-tests (Depends-on): Likewise.
32521         * modules/readlink-tests (Depends-on): Likewise.
32522         * modules/remove-tests (Depends-on): Likewise.
32523         * modules/rename-tests (Depends-on): Likewise.
32524         * modules/renameat-tests (Depends-on): Likewise.
32525         * modules/rmdir-tests (Depends-on): Likewise.
32526         * modules/symlink-tests (Depends-on): Likewise.
32527         * modules/symlinkat-tests (Depends-on): Likewise.
32528         * modules/unlink-tests (Depends-on): Likewise.
32529         * modules/utimens-tests (Depends-on): Likewise.
32530         * modules/utimensat-tests (Depends-on): Likewise.
32531
32532 2010-01-31  Bruno Haible  <bruno@clisp.org>
32533
32534         Perform the same test for many <math.h> functions.
32535         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32536         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32537         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32538         of gl_MATHFUNC.
32539         * modules/acos (configure.ac): Likewise.
32540         * modules/asin (configure.ac): Likewise.
32541         * modules/atan (configure.ac): Likewise.
32542         * modules/atan2 (configure.ac): Likewise.
32543         * modules/cbrt (configure.ac): Likewise.
32544         * modules/copysign (configure.ac): Likewise.
32545         * modules/cos (configure.ac): Likewise.
32546         * modules/cosh (configure.ac): Likewise.
32547         * modules/erf (configure.ac): Likewise.
32548         * modules/erfc (configure.ac): Likewise.
32549         * modules/exp (configure.ac): Likewise.
32550         * modules/fmod (configure.ac): Likewise.
32551         * modules/hypot (configure.ac): Likewise.
32552         * modules/j0 (configure.ac): Likewise.
32553         * modules/j1 (configure.ac): Likewise.
32554         * modules/jn (configure.ac): Likewise.
32555         * modules/lgamma (configure.ac): Likewise.
32556         * modules/log (configure.ac): Likewise.
32557         * modules/log10 (configure.ac): Likewise.
32558         * modules/log1p (configure.ac): Likewise.
32559         * modules/pow (configure.ac): Likewise.
32560         * modules/remainder (configure.ac): Likewise.
32561         * modules/sin (configure.ac): Likewise.
32562         * modules/sinh (configure.ac): Likewise.
32563         * modules/tan (configure.ac): Likewise.
32564         * modules/tanh (configure.ac): Likewise.
32565         * modules/y0 (configure.ac): Likewise.
32566         * modules/y1 (configure.ac): Likewise.
32567         * modules/yn (configure.ac): Likewise.
32568         Suggested by Paolo Bonzini.
32569
32570 2010-01-31  Bruno Haible  <bruno@clisp.org>
32571
32572         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32573
32574 2010-01-31  Bruno Haible  <bruno@clisp.org>
32575
32576         Work around getdelim() bug on FreeBSD 8.0.
32577         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32578         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32579         not work.
32580         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32581         is 1.
32582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32583         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32584         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32585         a non-zero size.
32586         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32587
32588 2010-01-31  Bruno Haible  <bruno@clisp.org>
32589
32590         Work around getline() bug on FreeBSD 8.0.
32591         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32592         and a non-zero size.
32593         * tests/test-getline.c (main): Likewise.
32594         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32595         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32596
32597 2010-01-28  Eric Blake  <ebb9@byu.net>
32598
32599         regex: fix build failure
32600         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32601         platforms.
32602
32603 2010-01-28  Jim Meyering  <meyering@redhat.com>
32604
32605         regex: do not ignore memory allocation failure
32606         * lib/regex_internal.c (create_cd_newstate): Detect
32607         re_node_set_init_copy failure.   Extracted from glibc commit
32608         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32609
32610         regex: sync more white-space changes from libc
32611         * lib/regex_internal.c: White-space only changes.
32612         * lib/regexec.c: Likewise.
32613
32614         regex: add many uses of __attribute_warn_unused_result__
32615         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32616         * lib/regexec.c: Likewise.
32617         Extracted from a messy glibc commit.
32618
32619         regcomp.c: spelling and merge-artifact from glibc
32620         * lib/regcomp.c: Merge remainder of glibc's
32621         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32622
32623         regcomp.c: sync white-space changes from glibc
32624         * lib/regcomp.c: Merge to accommodate white space
32625         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32626
32627         regcomp.c: do not ignore internal return values
32628         * lib/regcomp.c: Do not ignore internal return values.
32629         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32630         but without its white-space changes and spelling fixes.
32631
32632         regex_internal.h: define __attribute_warn_unused_result__
32633         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32634
32635         maint: add a syntax-check rule to check for vulnerable Makefile.in
32636         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32637
32638 2010-01-27  Jim Meyering  <meyering@redhat.com>
32639
32640         ncftpput-ftp: clean up spaces
32641         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32642         Remove trailing blanks.
32643
32644 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32645
32646         * build-aux/git-version-gen: Fix copyright statement.
32647         * build-aux/gnupload: Likewise.
32648         * tests/test-arcfour.c: Likewise.
32649         * tests/test-arctwo.c: Likewise.
32650         * tests/test-count-one-bits.c: Likewise.
32651         * tests/test-crc.c: Likewise.
32652         * tests/test-des.c: Likewise.
32653         * tests/test-gc-arcfour.c: Likewise.
32654         * tests/test-gc-arctwo.c: Likewise.
32655         * tests/test-gc-des.c: Likewise.
32656         * tests/test-gc-hmac-md5.c: Likewise.
32657         * tests/test-gc-hmac-sha1.c: Likewise.
32658         * tests/test-gc-md2.c: Likewise.
32659         * tests/test-gc-md4.c: Likewise.
32660         * tests/test-gc-md5.c: Likewise.
32661         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32662         * tests/test-gc-rijndael.c: Likewise.
32663         * tests/test-gc-sha1.c: Likewise.
32664         * tests/test-gc.c: Likewise.
32665         * tests/test-gethostname.c: Likewise.
32666         * tests/test-gettimeofday.c: Likewise.
32667         * tests/test-hash.c: Likewise.
32668         * tests/test-hmac-md5.c: Likewise.
32669         * tests/test-hmac-sha1.c: Likewise.
32670         * tests/test-md2.c: Likewise.
32671         * tests/test-md4.c: Likewise.
32672         * tests/test-md5.c: Likewise.
32673         * tests/test-memchr.c: Likewise.
32674         * tests/test-memchr2.c: Likewise.
32675         * tests/test-memcmp.c: Likewise.
32676         * tests/test-memmem.c: Likewise.
32677         * tests/test-memrchr.c: Likewise.
32678         * tests/test-rawmemchr.c: Likewise.
32679         * tests/test-read-file.c: Likewise.
32680         * tests/test-rijndael.c: Likewise.
32681         * tests/test-sockets.c: Likewise.
32682         * tests/test-strchrnul.c: Likewise.
32683         * tests/test-strstr.c: Likewise.
32684         * tests/test-strtod.c: Likewise.
32685         * build-aux/ncftpput-ftp: Likewise.
32686
32687 2010-01-26  Eric Blake  <ebb9@byu.net>
32688
32689         ignore-value: update recommended header name
32690         * modules/ignore-value (Include): Only use <> for headers that
32691         exist in glibc.
32692
32693 2010-01-26  Jim Meyering  <meyering@redhat.com>
32694
32695         test-userspec.c: avoid compiler warnings
32696         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32697         and "initialization discards qualifiers..." warnings.
32698         Put the first "uid" in its own scope, and make char* members "const".
32699
32700 2010-01-25  Bruno Haible  <bruno@clisp.org>
32701
32702         gnulib-tool: Make warning diagnostics consistent.
32703         * gnulib-tool (func_warning): New function.
32704         Use it everywhere where gnulib-tool produces output to stderr and it is
32705         not a fatal error.
32706
32707 2010-01-25  Bruno Haible  <bruno@clisp.org>
32708
32709         Fix test dependencies.
32710         * modules/xstrtol-tests (Depends-on): Add inttypes.
32711         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32712
32713 2010-01-25 Pádraig Brady <P@draigBrady.com>
32714
32715         syntax-check: detect incorrect boolean macro values in config.h
32716         * modules/maintainer-makefile (configure.ac): Parameterize the location
32717         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32718         The logic is from Eric Blake and the location indicated by Jim Meyering.
32719         Note the more natural CONFIG_HEADER name is prohibited by automake
32720         for backwards compatibility reasons.
32721         * top/maint.mk (sc_Wundef_boolean): New rule.
32722
32723 2010-01-25  Jim Meyering  <meyering@redhat.com>
32724
32725         bootstrap: detect MacOS 10.6's shasum, too
32726         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32727         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32728
32729 2010-01-23  Jim Meyering  <meyering@redhat.com>
32730
32731         xstrtoll: new module
32732         * modules/xstrtoll: New file.
32733         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32734         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32735         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32736         ./configure fails if you use this module and lack "long long".
32737         * modules/xstrtoll-tests: New module.
32738         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32739         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32740         new init.sh-based test framework.
32741
32742 2010-01-24  Bruno Haible  <bruno@clisp.org>
32743
32744         Tests for module 'yn'.
32745         * modules/yn-tests: New file.
32746         * tests/test-yn.c: New file.
32747
32748         Tests for module 'y1'.
32749         * modules/y1-tests: New file.
32750         * tests/test-y1.c: New file.
32751
32752         Tests for module 'y0'.
32753         * modules/y0-tests: New file.
32754         * tests/test-y0.c: New file.
32755
32756         Tests for module 'tanh'.
32757         * modules/tanh-tests: New file.
32758         * tests/test-tanh.c: New file.
32759
32760         Tests for module 'tan'.
32761         * modules/tan-tests: New file.
32762         * tests/test-tan.c: New file.
32763
32764         Tests for module 'sqrt'.
32765         * modules/sqrt-tests: New file.
32766         * tests/test-sqrt.c: New file.
32767
32768         Tests for module 'sinh'.
32769         * modules/sinh-tests: New file.
32770         * tests/test-sinh.c: New file.
32771
32772         Tests for module 'sin'.
32773         * modules/sin-tests: New file.
32774         * tests/test-sin.c: New file.
32775
32776         Tests for module 'rint'.
32777         * modules/rint-tests: New file.
32778         * tests/test-rint.c: New file.
32779
32780         Tests for module 'remainder'.
32781         * modules/remainder-tests: New file.
32782         * tests/test-remainder.c: New file.
32783
32784         Tests for module 'pow'.
32785         * modules/pow-tests: New file.
32786         * tests/test-pow.c: New file.
32787
32788         Tests for module 'nextafter'.
32789         * modules/nextafter-tests: New file.
32790         * tests/test-nextafter.c: New file.
32791
32792         Tests for module 'modf'.
32793         * modules/modf-tests: New file.
32794         * tests/test-modf.c: New file.
32795
32796         Tests for module 'logb'.
32797         * modules/logb-tests: New file.
32798         * tests/test-logb.c: New file.
32799
32800         Tests for module 'log1p'.
32801         * modules/log1p-tests: New file.
32802         * tests/test-log1p.c: New file.
32803
32804         Tests for module 'log10'.
32805         * modules/log10-tests: New file.
32806         * tests/test-log10.c: New file.
32807
32808         Tests for module 'log'.
32809         * modules/log-tests: New file.
32810         * tests/test-log.c: New file.
32811
32812         Tests for module 'lgamma'.
32813         * modules/lgamma-tests: New file.
32814         * tests/test-lgamma.c: New file.
32815
32816         Tests for module 'ldexp'.
32817         * modules/ldexp-tests: New file.
32818         * tests/test-ldexp.c: New file.
32819
32820         Tests for module 'jn'.
32821         * modules/jn-tests: New file.
32822         * tests/test-jn.c: New file.
32823
32824         Tests for module 'j1'.
32825         * modules/j1-tests: New file.
32826         * tests/test-j1.c: New file.
32827
32828         Tests for module 'j0'.
32829         * modules/j0-tests: New file.
32830         * tests/test-j0.c: New file.
32831
32832         Tests for module 'hypot'.
32833         * modules/hypot-tests: New file.
32834         * tests/test-hypot.c: New file.
32835
32836         Tests for module 'fmod'.
32837         * modules/fmod-tests: New file.
32838         * tests/test-fmod.c: New file.
32839
32840         Tests for module 'fabs'.
32841         * modules/fabs-tests: New file.
32842         * tests/test-fabs.c: New file.
32843
32844         Tests for module 'exp'.
32845         * modules/exp-tests: New file.
32846         * tests/test-exp.c: New file.
32847
32848         Tests for module 'erfc'.
32849         * modules/erfc-tests: New file.
32850         * tests/test-erfc.c: New file.
32851
32852         Tests for module 'erf'.
32853         * modules/erf-tests: New file.
32854         * tests/test-erf.c: New file.
32855
32856         Tests for module 'cosh'.
32857         * modules/cosh-tests: New file.
32858         * tests/test-cosh.c: New file.
32859
32860         Tests for module 'cos'.
32861         * modules/cos-tests: New file.
32862         * tests/test-cos.c: New file.
32863
32864         Tests for module 'copysign'.
32865         * modules/copysign-tests: New file.
32866         * tests/test-copysign.c: New file.
32867
32868         Tests for module 'cbrt'.
32869         * modules/cbrt-tests: New file.
32870         * tests/test-cbrt.c: New file.
32871
32872         Tests for module 'atan2'.
32873         * modules/atan2-tests: New file.
32874         * tests/test-atan2.c: New file.
32875
32876         Tests for module 'atan'.
32877         * modules/atan-tests: New file.
32878         * tests/test-atan.c: New file.
32879
32880         Tests for module 'asin'.
32881         * modules/asin-tests: New file.
32882         * tests/test-asin.c: New file.
32883
32884         Tests for module 'acos'.
32885         * modules/acos-tests: New file.
32886         * tests/test-acos.c: New file.
32887
32888 2010-01-24  Bruno Haible  <bruno@clisp.org>
32889
32890         Fix tests for common <math.h> functions.
32891         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32892         code snippet that references the function pointer, rather than merely
32893         calling the function. Substitute the FUNC_LIBM variable.
32894         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32895         * modules/acos (configure.ac): Likewise.
32896         * modules/asin (configure.ac): Likewise.
32897         * modules/atan (configure.ac): Likewise.
32898         * modules/atan2 (configure.ac): Likewise.
32899         * modules/cbrt (configure.ac): Likewise.
32900         * modules/copysign (configure.ac): Likewise.
32901         * modules/cos (configure.ac): Likewise.
32902         * modules/cosh (configure.ac): Likewise.
32903         * modules/erf (configure.ac): Likewise.
32904         * modules/erfc (configure.ac): Likewise.
32905         * modules/exp (configure.ac): Likewise.
32906         * modules/fabs (configure.ac): Likewise.
32907         * modules/fmod (configure.ac): Likewise.
32908         * modules/hypot (configure.ac): Likewise.
32909         * modules/j0 (configure.ac): Likewise.
32910         * modules/j1 (configure.ac): Likewise.
32911         * modules/jn (configure.ac): Likewise.
32912         * modules/ldexp (configure.ac): Likewise.
32913         * modules/lgamma (configure.ac): Likewise.
32914         * modules/log (configure.ac): Likewise.
32915         * modules/log10 (configure.ac): Likewise.
32916         * modules/log1p (configure.ac): Likewise.
32917         * modules/logb (configure.ac): Likewise.
32918         * modules/modf (configure.ac): Likewise.
32919         * modules/nextafter (configure.ac): Likewise.
32920         * modules/pow (configure.ac): Likewise.
32921         * modules/remainder (configure.ac): Likewise.
32922         * modules/rint (configure.ac): Likewise.
32923         * modules/sin (configure.ac): Likewise.
32924         * modules/sinh (configure.ac): Likewise.
32925         * modules/tan (configure.ac): Likewise.
32926         * modules/tanh (configure.ac): Likewise.
32927         * modules/y0 (configure.ac): Likewise.
32928         * modules/y1 (configure.ac): Likewise.
32929         * modules/yn (configure.ac): Likewise.
32930
32931 2010-01-24  Bruno Haible  <bruno@clisp.org>
32932
32933         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32934         * tests/test-acosl.c (x): New variable.
32935         (main): Store argument in x and fetch it from x.
32936         * tests/test-asinl.c (x): New variable.
32937         (main): Store argument in x and fetch it from x.
32938         * tests/test-atanl.c (x): New variable.
32939         (main): Store argument in x and fetch it from x.
32940         * tests/test-cosl.c (x): New variable.
32941         (main): Store argument in x and fetch it from x.
32942         * tests/test-expl.c (x): New variable.
32943         (main): Store argument in x and fetch it from x.
32944         * tests/test-logl.c (x): New variable.
32945         (main): Store argument in x and fetch it from x.
32946         * tests/test-sinl.c (x): New variable.
32947         (main): Store argument in x and fetch it from x.
32948         * tests/test-sqrtl.c (x): New variable.
32949         (main): Store argument in x and fetch it from x.
32950         * tests/test-tanl.c (x): New variable.
32951         (main): Store argument in x and fetch it from x.
32952
32953 2010-01-24  Bruno Haible  <bruno@clisp.org>
32954
32955         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32956         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32957         assignments to the initial TESTS_ENVIRONMENT.
32958         * doc/gnulib.texi (Unit test modules): Document it.
32959         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32960         TESTS_ENVIRONMENT.
32961         * modules/btowc-tests (Makefile.am): Likewise.
32962         * modules/c-stack-tests (Makefile.am): Likewise.
32963         * modules/c-strcase-tests (Makefile.am): Likewise.
32964         * modules/copy-file-tests (Makefile.am): Likewise.
32965         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32966         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32967         * modules/mbrtowc-tests (Makefile.am): Likewise.
32968         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32969         * modules/mbscasestr-tests (Makefile.am): Likewise.
32970         * modules/mbschr-tests (Makefile.am): Likewise.
32971         * modules/mbscspn-tests (Makefile.am): Likewise.
32972         * modules/mbsinit-tests (Makefile.am): Likewise.
32973         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32974         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32975         * modules/mbspbrk-tests (Makefile.am): Likewise.
32976         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32977         * modules/mbsrchr-tests (Makefile.am): Likewise.
32978         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32979         * modules/mbsspn-tests (Makefile.am): Likewise.
32980         * modules/mbsstr-tests (Makefile.am): Likewise.
32981         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32982         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32983         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32984         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32985         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32986         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32987         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32988         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32989         * modules/wcrtomb-tests (Makefile.am): Likewise.
32990         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32991         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32992         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32993         assignments from TESTS_ENVIRONMENT.
32994         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32995         augmentation.
32996         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32997         * modules/atexit-tests (Makefile.am): Likewise.
32998         * modules/binary-io-tests (Makefile.am): Likewise.
32999         * modules/closein-tests (Makefile.am): Likewise.
33000         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33001         * modules/exclude-tests (Makefile.am): Likewise.
33002         * modules/fflush-tests (Makefile.am): Likewise.
33003         * modules/fpending-tests (Makefile.am): Likewise.
33004         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33005         * modules/freadahead-tests (Makefile.am): Likewise.
33006         * modules/freadptr-tests (Makefile.am): Likewise.
33007         * modules/freadseek-tests (Makefile.am): Likewise.
33008         * modules/fseek-tests (Makefile.am): Likewise.
33009         * modules/fseeko-tests (Makefile.am): Likewise.
33010         * modules/ftell-tests (Makefile.am): Likewise.
33011         * modules/ftello-tests (Makefile.am): Likewise.
33012         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33013         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33014         * modules/lseek-tests (Makefile.am): Likewise.
33015         * modules/parse-duration-tests (Makefile.am): Likewise.
33016         * modules/perror-tests (Makefile.am): Likewise.
33017         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33018         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33019         * modules/pipe-tests (Makefile.am): Likewise.
33020         * modules/pread-tests (Makefile.am): Likewise.
33021         * modules/printf-posix-tests (Makefile.am): Likewise.
33022         * modules/select-tests (Makefile.am): Likewise.
33023         * modules/sigpipe-tests (Makefile.am): Likewise.
33024         * modules/tsearch-tests (Makefile.am): Likewise.
33025         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33026         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33027         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33028         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33029         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33030         * modules/version-etc-tests (Makefile.am): Likewise.
33031         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33032         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33033         * modules/xalloc-die-tests (Makefile.am): Likewise.
33034         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33035         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33036         * modules/xstrtol-tests (Makefile.am): Likewise.
33037         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33038         * modules/yesno-tests (Makefile.am): Likewise.
33039         Suggested by Jim Meyering.
33040
33041 2010-01-24  Bruno Haible  <bruno@clisp.org>
33042
33043         More documentation.
33044         * doc/gnulib.texi (Writing modules): New chapter.
33045         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33046         the new chapter.
33047
33048 2010-01-24  Jim Meyering  <meyering@redhat.com>
33049
33050         maint.mk: do not prepend "./" after filtering
33051         * top/maint.mk (_prepend_srcdir_prefix): New variable
33052         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33053         "./" when $(srcdir) is ".".
33054
33055         define STREQ(a,b) consistently, removing useless parentheses
33056         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33057         since the only risk is that "a" or "b" contains an unparenthesized
33058         comma, but if either did that, STREQ would have 3 or more arguments.
33059         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33060         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33061         * lib/hash-triple.c (STREQ): Likewise.
33062         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33063         * lib/getugroups.c (STREQ): Likewise.
33064
33065 2010-01-23  Jim Meyering  <meyering@redhat.com>
33066
33067         maint.mk: fix syntax-check in a non-srcdir build directory
33068         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33069         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33070
33071 2010-01-22  Jim Meyering  <meyering@redhat.com>
33072
33073         userspec: add unit tests
33074         * tests/test-userspec.c: New file.
33075         * modules/userspec-tests: Likewise.
33076
33077 2010-01-21  Jim Meyering  <meyering@redhat.com>
33078
33079         maint.mk: handle source file names containing "." robustly
33080         * top/maint.mk (_dot_escaped_srcdir): Define.
33081         (VC_LIST): Use it in LHS of sed substitution.
33082
33083 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33084
33085         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33086         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33087         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33088         from a non-srcdir build.
33089
33090 2010-01-20  Eric Blake  <ebb9@byu.net>
33091
33092         warn-on-use: use instead of link-warning
33093         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33094         * modules/unistd (Depends-on, Makefile.am): Likewise.
33095         * modules/arpa_inet (Depends-on): Replace link-warning with
33096         warn-on-use.
33097         (Makefile.am): Update rules accordingly.
33098         * modules/ctype (Depends-on, Makefile.am): Likewise.
33099         * modules/dirent (Depends-on, Makefile.am): Likewise.
33100         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33101         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33102         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33103         * modules/locale (Depends-on, Makefile.am): Likewise.
33104         * modules/math (Depends-on, Makefile.am): Likewise.
33105         * modules/search (Depends-on, Makefile.am): Likewise.
33106         * modules/signal (Depends-on, Makefile.am): Likewise.
33107         * modules/spawn (Depends-on, Makefile.am): Likewise.
33108         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33109         * modules/string (Depends-on, Makefile.am): Likewise.
33110         * modules/strings (Depends-on, Makefile.am): Likewise.
33111         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33112         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33113         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33114         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33115         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33116         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33117         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33118         * modules/wchar (Depends-on, Makefile.am): Likewise.
33119         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33120         should be poisoned.
33121         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33122         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33123         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33124         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33125         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33126         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33127         * m4/math_h.m4 (gl_MATH_H): Likewise.
33128         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33129         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33130         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33131         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33132         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33133         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33134         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33135         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33136         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33137         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33140         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33141         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33142         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33143         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33144         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33145         GL_LINK_WARNING.
33146         * lib/ctype.in.h: Likewise.
33147         * lib/dirent.in.h: Likewise.
33148         * lib/fcntl.in.h: Likewise.
33149         * lib/inttypes.in.h: Likewise.
33150         * lib/langinfo.in.h: Likewise.
33151         * lib/locale.in.h: Likewise.
33152         * lib/math.in.h: Likewise.
33153         * lib/search.in.h: Likewise.
33154         * lib/signal.in.h: Likewise.
33155         * lib/spawn.in.h: Likewise.
33156         * lib/stdio.in.h: Likewise.
33157         * lib/stdlib.in.h: Likewise.
33158         * lib/string.in.h: Likewise.
33159         * lib/strings.in.h: Likewise.
33160         * lib/sys_file.in.h: Likewise.
33161         * lib/sys_ioctl.in.h: Likewise.
33162         * lib/sys_select.in.h: Likewise.
33163         * lib/sys_socket.in.h: Likewise.
33164         * lib/sys_stat.in.h: Likewise.
33165         * lib/sys_times.in.h: Likewise.
33166         * lib/sys_utsname.in.h: Likewise.
33167         * lib/unistd.in.h: Likewise.
33168         * lib/wchar.in.h: Likewise.
33169
33170 2010-01-20  Bruno Haible  <bruno@clisp.org>
33171
33172         Avoid duplicate -lm.
33173         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33174         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33175         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33176         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33177         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33178         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33179         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33180         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33181         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33182         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33183         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33184         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33185         Reported by Paolo Bonzini.
33186
33187 2010-01-19  Bruno Haible  <bruno@clisp.org>
33188
33189         langinfo, nl_langinfo: Relicense under LGPLv2+.
33190         * modules/langinfo (License): Change to LGPLv2+.
33191         * modules/nl_langinfo (License): Likewise.
33192         Patch by David Lutterkort <lutter@redhat.com>.
33193
33194 2010-01-19  Bruno Haible  <bruno@clisp.org>
33195
33196         Avoid compilation error with cc on OSF/1 5.1.
33197         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33198         statement, not before.
33199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33200
33201 2010-01-18  Bruno Haible  <bruno@clisp.org>
33202
33203         Avoid a link error due to the __printf__ symbol.
33204         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33205         and 2.6.x.
33206         (__format__, __printf__): Remove definitions.
33207         * lib/argp-fmtstream.h: Likewise.
33208         * lib/argp.h: Likewise.
33209         * lib/error.h: Likewise.
33210         * lib/vasnprintf.h: Likewise.
33211         * lib/xprintf.h: Likewise.
33212         * lib/xvasprintf.h: Likewise.
33213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33214
33215 2010-01-18  Bruno Haible  <bruno@clisp.org>
33216
33217         Tests for module 'tanl'.
33218         * modules/tanl-tests: New file.
33219         * tests/test-tanl.c: New file.
33220
33221         Tests for module 'sqrtl'.
33222         * modules/sqrtl-tests: New file.
33223         * tests/test-sqrtl.c: New file.
33224
33225         Tests for module 'sinl'.
33226         * modules/sinl-tests: New file.
33227         * tests/test-sinl.c: New file.
33228
33229         Tests for module 'logl'.
33230         * modules/logl-tests: New file.
33231         * tests/test-logl.c: New file.
33232
33233         Tests for module 'expl'.
33234         * modules/expl-tests: New file.
33235         * tests/test-expl.c: New file.
33236
33237         Tests for module 'cosl'.
33238         * modules/cosl-tests: New file.
33239         * tests/test-cosl.c: New file.
33240
33241         Tests for module 'atanl'.
33242         * modules/atanl-tests: New file.
33243         * tests/test-atanl.c: New file.
33244
33245         Tests for module 'asinl'.
33246         * modules/asinl-tests: New file.
33247         * tests/test-asinl.c: New file.
33248
33249         Tests for module 'acosl'.
33250         * modules/acosl-tests: New file.
33251         * tests/test-acosl.c: New file.
33252
33253         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33254         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33255         tanl): Use the standard gnulib idiom.
33256         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33257         * lib/sinl.c: Likewise.
33258         * lib/tanl.c: Don't include trigl.c.
33259         (kernel_tanl): Make static.
33260         * lib/sincosl.c: Include trigl.h first.
33261         * lib/trigl.c: Likewise.
33262         * m4/acosl.m4: New file.
33263         * m4/asinl.m4: New file.
33264         * m4/atanl.m4: New file.
33265         * m4/cosl.m4: New file.
33266         * m4/expl.m4: New file.
33267         * m4/logl.m4: New file.
33268         * m4/sinl.m4: New file.
33269         * m4/sqrtl.m4: New file.
33270         * m4/tanl.m4: New file.
33271         * m4/mathl.m4: Remove file.
33272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33273         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33274         Don't initialize GNULIB_MATHL.
33275         * modules/acosl: New file.
33276         * modules/asinl: New file.
33277         * modules/atanl: New file.
33278         * modules/cosl: New file.
33279         * modules/expl: New file.
33280         * modules/logl: New file.
33281         * modules/sinl: New file.
33282         * modules/sqrtl: New file.
33283         * modules/tanl: New file.
33284         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33285         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33286         substitute GNULIB_MATHL.
33287         * modules/mathl: Rewritten.
33288         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33289         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33290         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33291         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33292         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33293         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33294         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33295         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33296         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33297
33298 2010-01-18  Bruno Haible  <bruno@clisp.org>
33299
33300         sqrt: Make gl_FUNC_SQRT requirable.
33301         * m4/sqrt.m4: New file.
33302         * modules/sqrt (Files): Add it.
33303         (configure.ac): Invoke gl_FUNC_SQRT.
33304
33305 2010-01-18  Bruno Haible  <bruno@clisp.org>
33306
33307         New modules for common <math.h> functions.
33308         * m4/mathfunc.m4: New file.
33309         * modules/acos: New file.
33310         * modules/asin: New file.
33311         * modules/atan: New file.
33312         * modules/atan2: New file.
33313         * modules/cbrt: New file.
33314         * modules/copysign: New file.
33315         * modules/cos: New file.
33316         * modules/cosh: New file.
33317         * modules/erf: New file.
33318         * modules/erfc: New file.
33319         * modules/exp: New file.
33320         * modules/fabs: New file.
33321         * modules/fmod: New file.
33322         * modules/hypot: New file.
33323         * modules/j0: New file.
33324         * modules/j1: New file.
33325         * modules/jn: New file.
33326         * modules/ldexp: New file.
33327         * modules/lgamma: New file.
33328         * modules/log: New file.
33329         * modules/log10: New file.
33330         * modules/log1p: New file.
33331         * modules/logb: New file.
33332         * modules/modf: New file.
33333         * modules/nextafter: New file.
33334         * modules/pow: New file.
33335         * modules/remainder: New file.
33336         * modules/rint: New file.
33337         * modules/sin: New file.
33338         * modules/sinh: New file.
33339         * modules/sqrt: New file.
33340         * modules/tan: New file.
33341         * modules/tanh: New file.
33342         * modules/y0: New file.
33343         * modules/y1: New file.
33344         * modules/yn: New file.
33345         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33346         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33347         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33348         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33349         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33350         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33351         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33352         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33353         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33354         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33355         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33356         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33357         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33358         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33359         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33360         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33361         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33362         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33363         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33364         * doc/posix-functions/log.texi: Mention the 'log' module.
33365         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33366         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33367         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33368         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33369         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33370         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33371         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33372         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33373         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33374         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33375         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33376         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33377         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33378         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33379         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33380         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33381
33382 2010-01-18  Jim Meyering  <meyering@redhat.com>
33383
33384         ignore-value: relax license to LGPLv2+
33385         * modules/ignore-value (License): Relax to LGPLv2+.
33386
33387         getdate: don't leak when TZ contains two or more '"'s
33388         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33389         double quote in TZ after the first one.
33390
33391         readtokens: do not leak internal token_lengths buffer
33392         * lib/readtokens.c (readtokens): Free the local, lengths,
33393         when the supplied "token_lengths" parameter is NULL.
33394
33395 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33396
33397         Fix a couple of missing LIBTHREAD link failures on AIX.
33398         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33399         $(LIBTHREAD).
33400         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33401
33402         Link test-poll against INET_PTON_LIB.
33403         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33404         for inet_pton on Solaris 10.
33405
33406 2010-01-17  Bruno Haible  <bruno@clisp.org>
33407
33408         unistdio/*-sprintf: Fix typo in module description.
33409         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33410         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33411         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33412         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33413         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33414         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33415         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33416         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33417
33418 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33419
33420         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33421         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33422         variables in shell case patterns, for AIX and HP-UX ksh.
33423
33424         Split large sed scripts, for HP-UX sed.
33425         * modules/stdio: Split sed scripts around 50 sed commands,
33426         to avoid HP-UX limit of 99 commands, in the near future.
33427         * modules/string: Likewise.
33428         * modules/unistd: Likewise.
33429
33430         gnulib-tool: avoid writing in the current directory.
33431         * gnulib-tool (func_emit_lib_Makefile_am)
33432         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33433         not in the current directory, so concurrent gnulib-tool
33434         instances do not interfere.
33435
33436 2010-01-16  Jim Meyering  <meyering@redhat.com>
33437
33438         doc: update users.txt
33439         * users.txt: Add grep.
33440         (diffutils, gzip): Update URLs.
33441
33442 2010-01-12  Bruno Haible  <bruno@clisp.org>
33443
33444         posix_spawn: Avoid test failure on Cygwin.
33445         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33446         characters.
33447         Reported by Simon Josefsson.
33448
33449 2010-01-12  Bruno Haible  <bruno@clisp.org>
33450
33451         * tests/test-cond.c (main): When skipping the test, show the reason.
33452
33453 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33454
33455         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33456
33457 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33458
33459         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33460         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33461
33462 2010-01-12  Eric Blake  <ebb9@byu.net>
33463
33464         build: guarantee AS_VAR_IF
33465         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33466         (gl_AS_VAR_IF): Move...
33467         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33468         Reported by Simon Josefsson.
33469
33470 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33471
33472         * lib/stdio.in.h: Fix typo.
33473
33474 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33475
33476         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33477         libgpg-error.
33478
33479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33480
33481         * tests/test-xalloc-die.sh: Use $EXEEXT.
33482
33483 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33484             Bruno Haible  <bruno@clisp.org>
33485
33486         getlogin, getlogin_r: Avoid test failure.
33487         * tests/test-getlogin.c: Include <stdio.h>.
33488         (main): Skip the test when the function fails because stdin is not a
33489         tty.
33490         * tests/test-getlogin_r.c: Include <stdio.h>.
33491         (main): Skip the test when the function fails because stdin is not a
33492         tty.
33493
33494 2010-01-11  Eric Blake  <ebb9@byu.net>
33495
33496         tests: avoid more large file warnings
33497         * tests/test-fflush.c: Avoid warning about ftell use.
33498         * tests/test-fseek.c: Avoid warning about fseek use.
33499
33500 2010-01-10  Bruno Haible  <bruno@clisp.org>
33501
33502         nproc: Work better on Linux when /proc and /sys are not mounted.
33503         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33504         as lower bound when, on glibc/Linux systems,
33505         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33506         Suggested by Pádraig Brady <P@draigbrady.com>.
33507         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33508
33509         nproc: Refactor.
33510         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33511         extracted from num_processors.
33512         (num_processors): Call it.
33513
33514 2010-01-11  Jim Meyering  <meyering@redhat.com>
33515
33516         utimecmp: avoid new warning from upcoming gcc-4.5.0
33517         * lib/utimecmp.c (BILLION): Define using #define rather than an
33518         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33519
33520 2010-01-11  Eric Blake  <ebb9@byu.net>
33521
33522         math: add portability warnings for classification macros
33523         * modules/math (Depends-on): Add warn-on-use.
33524         (Makefile.am): Provide new substitutions.
33525         * m4/math_h.m4 (gl_MATH_H): Require inline.
33526         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33527         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33528         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33529         implement warnings.
33530
33531         unistd: warn on use of environ without module
33532         * modules/unistd (Depends-on): Add warn-on-use.
33533         (Makefile.am): Provide new substitutions.
33534         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33535         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33536
33537         stdio: warn on suspicious uses
33538         * modules/stdio (Depends-on): Add warn-on-use.
33539         (Makefile.am): Provide new substitutions.
33540         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33541         fseeko.
33542         * lib/stdio.in.h (gets): Always warn on use.
33543         (fseek, ftell): Adjust when warnings are issued, and honor
33544         _GL_NO_LARGE_FILES as a way to silence the warning.
33545         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33546         any warning about large file offsets.
33547         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33548         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33549         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33550         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33551         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33552         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33553         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33554         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33555
33556         warn-on-use: new module
33557         * modules/warn-on-use: New file.
33558         * build-aux/warn-on-use.h: Likewise.
33559         * m4/warn-on-use.m4: Likewise.
33560         * MODULES.html.sh (Support for building): Mention it.
33561
33562 2010-01-10  Bruno Haible  <bruno@clisp.org>
33563
33564         Tests for module 'unistr/u32-strdup'.
33565         * modules/unistr/u32-strdup-tests: New file.
33566         * tests/unistr/test-u32-strdup.c: New file.
33567
33568         Tests for module 'unistr/u16-strdup'.
33569         * modules/unistr/u16-strdup-tests: New file.
33570         * tests/unistr/test-u16-strdup.c: New file.
33571
33572         Tests for module 'unistr/u8-strdup'.
33573         * modules/unistr/u8-strdup-tests: New file.
33574         * tests/unistr/test-u8-strdup.c: New file.
33575         * tests/unistr/test-strdup.h: New file.
33576
33577         Tests for module 'unistr/u32-strncmp'.
33578         * modules/unistr/u32-strncmp-tests: New file.
33579         * tests/unistr/test-u32-strncmp.c: New file.
33580
33581         Tests for module 'unistr/u16-strncmp'.
33582         * modules/unistr/u16-strncmp-tests: New file.
33583         * tests/unistr/test-u16-strncmp.c: New file.
33584
33585         Tests for module 'unistr/u8-strncmp'.
33586         * modules/unistr/u8-strncmp-tests: New file.
33587         * tests/unistr/test-u8-strncmp.c: New file.
33588         * tests/unistr/test-strncmp.h: New file.
33589
33590         Tests for module 'unistr/u32-strcoll'.
33591         * modules/unistr/u32-strcoll-tests: New file.
33592         * tests/unistr/test-u32-strcoll.c: New file.
33593
33594         Tests for module 'unistr/u16-strcoll'.
33595         * modules/unistr/u16-strcoll-tests: New file.
33596         * tests/unistr/test-u16-strcoll.c: New file.
33597
33598         Tests for module 'unistr/u8-strcoll'.
33599         * modules/unistr/u8-strcoll-tests: New file.
33600         * tests/unistr/test-u8-strcoll.c: New file.
33601
33602         Tests for module 'unistr/u32-strcmp'.
33603         * modules/unistr/u32-strcmp-tests: New file.
33604         * tests/unistr/test-u32-strcmp.c: New file.
33605         * tests/unistr/test-u32-strcmp.h: New file.
33606
33607         Tests for module 'unistr/u16-strcmp'.
33608         * modules/unistr/u16-strcmp-tests: New file.
33609         * tests/unistr/test-u16-strcmp.c: New file.
33610         * tests/unistr/test-u16-strcmp.h: New file.
33611
33612         Tests for module 'unistr/u8-strcmp'.
33613         * modules/unistr/u8-strcmp-tests: New file.
33614         * tests/unistr/test-u8-strcmp.c: New file.
33615         * tests/unistr/test-u8-strcmp.h: New file.
33616         * tests/unistr/test-strcmp.h: New file.
33617
33618         Tests for module 'unistr/u32-strncat'.
33619         * modules/unistr/u32-strncat-tests: New file.
33620         * tests/unistr/test-u32-strncat.c: New file.
33621
33622         Tests for module 'unistr/u16-strncat'.
33623         * modules/unistr/u16-strncat-tests: New file.
33624         * tests/unistr/test-u16-strncat.c: New file.
33625
33626         Tests for module 'unistr/u8-strncat'.
33627         * modules/unistr/u8-strncat-tests: New file.
33628         * tests/unistr/test-u8-strncat.c: New file.
33629         * tests/unistr/test-strncat.h: New file.
33630
33631         Tests for module 'unistr/u32-strcat'.
33632         * modules/unistr/u32-strcat-tests: New file.
33633         * tests/unistr/test-u32-strcat.c: New file.
33634
33635         Tests for module 'unistr/u16-strcat'.
33636         * modules/unistr/u16-strcat-tests: New file.
33637         * tests/unistr/test-u16-strcat.c: New file.
33638
33639         Tests for module 'unistr/u8-strcat'.
33640         * modules/unistr/u8-strcat-tests: New file.
33641         * tests/unistr/test-u8-strcat.c: New file.
33642         * tests/unistr/test-strcat.h: New file.
33643
33644         Tests for module 'unistr/u32-stpncpy'.
33645         * modules/unistr/u32-stpncpy-tests: New file.
33646         * tests/unistr/test-u32-stpncpy.c: New file.
33647
33648         Tests for module 'unistr/u16-stpncpy'.
33649         * modules/unistr/u16-stpncpy-tests: New file.
33650         * tests/unistr/test-u16-stpncpy.c: New file.
33651
33652         Tests for module 'unistr/u8-stpncpy'.
33653         * modules/unistr/u8-stpncpy-tests: New file.
33654         * tests/unistr/test-u8-stpncpy.c: New file.
33655         * tests/unistr/test-stpncpy.h: New file.
33656
33657         Tests for module 'unistr/u32-strncpy'.
33658         * modules/unistr/u32-strncpy-tests: New file.
33659         * tests/unistr/test-u32-strncpy.c: New file.
33660
33661         Tests for module 'unistr/u16-strncpy'.
33662         * modules/unistr/u16-strncpy-tests: New file.
33663         * tests/unistr/test-u16-strncpy.c: New file.
33664
33665         Tests for module 'unistr/u8-strncpy'.
33666         * modules/unistr/u8-strncpy-tests: New file.
33667         * tests/unistr/test-u8-strncpy.c: New file.
33668         * tests/unistr/test-strncpy.h: New file.
33669
33670         Tests for module 'unistr/u32-stpcpy'.
33671         * modules/unistr/u32-stpcpy-tests: New file.
33672         * tests/unistr/test-u32-stpcpy.c: New file.
33673
33674         Tests for module 'unistr/u16-stpcpy'.
33675         * modules/unistr/u16-stpcpy-tests: New file.
33676         * tests/unistr/test-u16-stpcpy.c: New file.
33677
33678         Tests for module 'unistr/u8-stpcpy'.
33679         * modules/unistr/u8-stpcpy-tests: New file.
33680         * tests/unistr/test-u8-stpcpy.c: New file.
33681         * tests/unistr/test-stpcpy.h: New file.
33682
33683         Tests for module 'unistr/u32-strcpy'.
33684         * modules/unistr/u32-strcpy-tests: New file.
33685         * tests/unistr/test-u32-strcpy.c: New file.
33686
33687         Tests for module 'unistr/u16-strcpy'.
33688         * modules/unistr/u16-strcpy-tests: New file.
33689         * tests/unistr/test-u16-strcpy.c: New file.
33690
33691         Tests for module 'unistr/u8-strcpy'.
33692         * modules/unistr/u8-strcpy-tests: New file.
33693         * tests/unistr/test-u8-strcpy.c: New file.
33694         * tests/unistr/test-strcpy.h: New file.
33695
33696         Tests for module 'unistr/u32-strnlen'.
33697         * modules/unistr/u32-strnlen-tests: New file.
33698         * tests/unistr/test-u32-strnlen.c: New file.
33699
33700         Tests for module 'unistr/u16-strnlen'.
33701         * modules/unistr/u16-strnlen-tests: New file.
33702         * tests/unistr/test-u16-strnlen.c: New file.
33703
33704         Tests for module 'unistr/u8-strnlen'.
33705         * modules/unistr/u8-strnlen-tests: New file.
33706         * tests/unistr/test-u8-strnlen.c: New file.
33707         * tests/unistr/test-strnlen.h: New file.
33708
33709         Tests for module 'unistr/u32-strlen'.
33710         * modules/unistr/u32-strlen-tests: New file.
33711         * tests/unistr/test-u32-strlen.c: New file.
33712
33713         Tests for module 'unistr/u16-strlen'.
33714         * modules/unistr/u16-strlen-tests: New file.
33715         * tests/unistr/test-u16-strlen.c: New file.
33716
33717         Tests for module 'unistr/u8-strlen'.
33718         * modules/unistr/u8-strlen-tests: New file.
33719         * tests/unistr/test-u8-strlen.c: New file.
33720
33721         Tests for module 'unistr/u32-prev'.
33722         * modules/unistr/u32-prev-tests: New file.
33723         * tests/unistr/test-u32-prev.c: New file.
33724
33725         Tests for module 'unistr/u16-prev'.
33726         * modules/unistr/u16-prev-tests: New file.
33727         * tests/unistr/test-u16-prev.c: New file.
33728
33729         Tests for module 'unistr/u8-prev'.
33730         * modules/unistr/u8-prev-tests: New file.
33731         * tests/unistr/test-u8-prev.c: New file.
33732
33733         Tests for module 'unistr/u32-next'.
33734         * modules/unistr/u32-next-tests: New file.
33735         * tests/unistr/test-u32-next.c: New file.
33736
33737         Tests for module 'unistr/u16-next'.
33738         * modules/unistr/u16-next-tests: New file.
33739         * tests/unistr/test-u16-next.c: New file.
33740
33741         Tests for module 'unistr/u8-next'.
33742         * modules/unistr/u8-next-tests: New file.
33743         * tests/unistr/test-u8-next.c: New file.
33744
33745         Tests for module 'unistr/u32-strmbtouc'.
33746         * modules/unistr/u32-strmbtouc-tests: New file.
33747         * tests/unistr/test-u32-strmbtouc.c: New file.
33748
33749         Tests for module 'unistr/u16-strmbtouc'.
33750         * modules/unistr/u16-strmbtouc-tests: New file.
33751         * tests/unistr/test-u16-strmbtouc.c: New file.
33752
33753         Tests for module 'unistr/u8-strmbtouc'.
33754         * modules/unistr/u8-strmbtouc-tests: New file.
33755         * tests/unistr/test-u8-strmbtouc.c: New file.
33756
33757         Tests for module 'unistr/u32-strmblen'.
33758         * modules/unistr/u32-strmblen-tests: New file.
33759         * tests/unistr/test-u32-strmblen.c: New file.
33760
33761         Tests for module 'unistr/u16-strmblen'.
33762         * modules/unistr/u16-strmblen-tests: New file.
33763         * tests/unistr/test-u16-strmblen.c: New file.
33764
33765         Tests for module 'unistr/u8-strmblen'.
33766         * modules/unistr/u8-strmblen-tests: New file.
33767         * tests/unistr/test-u8-strmblen.c: New file.
33768
33769         Tests for module 'unistr/u32-cpy-alloc'.
33770         * modules/unistr/u32-cpy-alloc-tests: New file.
33771         * tests/unistr/test-u32-cpy-alloc.c: New file.
33772
33773         Tests for module 'unistr/u16-cpy-alloc'.
33774         * modules/unistr/u16-cpy-alloc-tests: New file.
33775         * tests/unistr/test-u16-cpy-alloc.c: New file.
33776
33777         Tests for module 'unistr/u8-cpy-alloc'.
33778         * modules/unistr/u8-cpy-alloc-tests: New file.
33779         * tests/unistr/test-u8-cpy-alloc.c: New file.
33780         * tests/unistr/test-cpy-alloc.h: New file.
33781
33782         Tests for module 'unistr/u32-mbsnlen'.
33783         * modules/unistr/u32-mbsnlen-tests: New file.
33784         * tests/unistr/test-u32-mbsnlen.c: New file.
33785
33786         Tests for module 'unistr/u16-mbsnlen'.
33787         * modules/unistr/u16-mbsnlen-tests: New file.
33788         * tests/unistr/test-u16-mbsnlen.c: New file.
33789
33790         Tests for module 'unistr/u8-mbsnlen'.
33791         * modules/unistr/u8-mbsnlen-tests: New file.
33792         * tests/unistr/test-u8-mbsnlen.c: New file.
33793
33794         Tests for module 'unistr/u32-chr'.
33795         * modules/unistr/u32-chr-tests: New file.
33796         * tests/unistr/test-u32-chr.c: New file.
33797
33798         Tests for module 'unistr/u16-chr'.
33799         * modules/unistr/u16-chr-tests: New file.
33800         * tests/unistr/test-u16-chr.c: New file.
33801
33802         Tests for module 'unistr/u8-chr'.
33803         * modules/unistr/u8-chr-tests: New file.
33804         * tests/unistr/test-u8-chr.c: New file.
33805         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33806
33807         Tests for module 'unistr/u32-cmp2'.
33808         * modules/unistr/u32-cmp2-tests: New file.
33809         * tests/unistr/test-u32-cmp2.c: New file.
33810
33811         Tests for module 'unistr/u16-cmp2'.
33812         * modules/unistr/u16-cmp2-tests: New file.
33813         * tests/unistr/test-u16-cmp2.c: New file.
33814
33815         Tests for module 'unistr/u8-cmp2'.
33816         * modules/unistr/u8-cmp2-tests: New file.
33817         * tests/unistr/test-u8-cmp2.c: New file.
33818         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33819
33820         Tests for module 'unistr/u32-cmp'.
33821         * modules/unistr/u32-cmp-tests: New file.
33822         * tests/unistr/test-u32-cmp.c: New file.
33823
33824         Tests for module 'unistr/u16-cmp'.
33825         * modules/unistr/u16-cmp-tests: New file.
33826         * tests/unistr/test-u16-cmp.c: New file.
33827
33828         Tests for module 'unistr/u8-cmp'.
33829         * modules/unistr/u8-cmp-tests: New file.
33830         * tests/unistr/test-u8-cmp.c: New file.
33831         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33832
33833         Tests for module 'unistr/u32-set'.
33834         * modules/unistr/u32-set-tests: New file.
33835         * tests/unistr/test-u32-set.c: New file.
33836
33837         Tests for module 'unistr/u16-set'.
33838         * modules/unistr/u16-set-tests: New file.
33839         * tests/unistr/test-u16-set.c: New file.
33840
33841         Tests for module 'unistr/u8-set'.
33842         * modules/unistr/u8-set-tests: New file.
33843         * tests/unistr/test-u8-set.c: New file.
33844         * tests/unistr/test-set.h: New file.
33845
33846         Tests for module 'unistr/u32-move'.
33847         * modules/unistr/u32-move-tests: New file.
33848         * tests/unistr/test-u32-move.c: New file.
33849
33850         Tests for module 'unistr/u16-move'.
33851         * modules/unistr/u16-move-tests: New file.
33852         * tests/unistr/test-u16-move.c: New file.
33853
33854         Tests for module 'unistr/u8-move'.
33855         * modules/unistr/u8-move-tests: New file.
33856         * tests/unistr/test-u8-move.c: New file.
33857         * tests/unistr/test-move.h: New file.
33858
33859         Tests for module 'unistr/u32-cpy'.
33860         * modules/unistr/u32-cpy-tests: New file.
33861         * tests/unistr/test-u32-cpy.c: New file.
33862
33863         Tests for module 'unistr/u16-cpy'.
33864         * modules/unistr/u16-cpy-tests: New file.
33865         * tests/unistr/test-u16-cpy.c: New file.
33866
33867         Tests for module 'unistr/u8-cpy'.
33868         * modules/unistr/u8-cpy-tests: New file.
33869         * tests/unistr/test-u8-cpy.c: New file.
33870         * tests/unistr/test-cpy.h: New file.
33871
33872 2010-01-09  Bruno Haible  <bruno@clisp.org>
33873
33874         Tests for module 'unistr/u32-uctomb'.
33875         * modules/unistr/u32-uctomb-tests: New file.
33876         * tests/unistr/test-u32-uctomb.c: New file.
33877
33878         Tests for module 'unistr/u16-uctomb'.
33879         * modules/unistr/u16-uctomb-tests: New file.
33880         * tests/unistr/test-u16-uctomb.c: New file.
33881
33882         Tests for module 'unistr/u8-uctomb'.
33883         * modules/unistr/u8-uctomb-tests: New file.
33884         * tests/unistr/test-u8-uctomb.c: New file.
33885
33886         Tests for module 'unistr/u32-mbtoucr'.
33887         * modules/unistr/u32-mbtoucr-tests: New file.
33888         * tests/unistr/test-u32-mbtoucr.c: New file.
33889
33890         Tests for module 'unistr/u16-mbtoucr'.
33891         * modules/unistr/u16-mbtoucr-tests: New file.
33892         * tests/unistr/test-u16-mbtoucr.c: New file.
33893
33894         Tests for module 'unistr/u8-mbtoucr'.
33895         * modules/unistr/u8-mbtoucr-tests: New file.
33896         * tests/unistr/test-u8-mbtoucr.c: New file.
33897
33898         Tests for module 'unistr/u32-mbtouc'.
33899         * modules/unistr/u32-mbtouc-tests: New file.
33900         * tests/unistr/test-u32-mbtouc.c: New file.
33901
33902         Tests for module 'unistr/u16-mbtouc'.
33903         * modules/unistr/u16-mbtouc-tests: New file.
33904         * tests/unistr/test-u16-mbtouc.c: New file.
33905
33906         Tests for module 'unistr/u8-mbtouc'.
33907         * modules/unistr/u8-mbtouc-tests: New file.
33908         * tests/unistr/test-u8-mbtouc.c: New file.
33909
33910         Tests for module 'unistr/u32-mbtouc-unsafe'.
33911         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33912         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33913         * tests/unistr/test-u32-mbtouc.h: New file.
33914
33915         Tests for module 'unistr/u16-mbtouc-unsafe'.
33916         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33917         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33918         * tests/unistr/test-u16-mbtouc.h: New file.
33919
33920         Tests for module 'unistr/u8-mbtouc-unsafe'.
33921         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33922         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33923         * tests/unistr/test-u8-mbtouc.h: New file.
33924
33925         Tests for module 'unistr/u32-mblen'.
33926         * modules/unistr/u32-mblen-tests: New file.
33927         * tests/unistr/test-u32-mblen.c: New file.
33928
33929         Tests for module 'unistr/u16-mblen'.
33930         * modules/unistr/u16-mblen-tests: New file.
33931         * tests/unistr/test-u16-mblen.c: New file.
33932
33933         Tests for module 'unistr/u8-mblen'.
33934         * modules/unistr/u8-mblen-tests: New file.
33935         * tests/unistr/test-u8-mblen.c: New file.
33936
33937         Tests for module 'unistr/u32-to-u16'.
33938         * modules/unistr/u32-to-u16-tests: New file.
33939         * tests/unistr/test-u32-to-u16.c: New file.
33940
33941         Tests for module 'unistr/u32-to-u8'.
33942         * modules/unistr/u32-to-u8-tests: New file.
33943         * tests/unistr/test-u32-to-u8.c: New file.
33944
33945         Tests for module 'unistr/u16-to-u32'.
33946         * modules/unistr/u16-to-u32-tests: New file.
33947         * tests/unistr/test-u16-to-u32.c: New file.
33948
33949         Tests for module 'unistr/u16-to-u8'.
33950         * modules/unistr/u16-to-u8-tests: New file.
33951         * tests/unistr/test-u16-to-u8.c: New file.
33952
33953         Tests for module 'unistr/u8-to-u32'.
33954         * modules/unistr/u8-to-u32-tests: New file.
33955         * tests/unistr/test-u8-to-u32.c: New file.
33956
33957         Tests for module 'unistr/u8-to-u16'.
33958         * modules/unistr/u8-to-u16-tests: New file.
33959         * tests/unistr/test-u8-to-u16.c: New file.
33960
33961         Tests for module 'unistr/u32-check'.
33962         * modules/unistr/u32-check-tests: New file.
33963         * tests/unistr/test-u32-check.c: New file.
33964
33965         Tests for module 'unistr/u16-check'.
33966         * modules/unistr/u16-check-tests: New file.
33967         * tests/unistr/test-u16-check.c: New file.
33968
33969         Tests for module 'unistr/u8-check'.
33970         * modules/unistr/u8-check-tests: New file.
33971         * tests/unistr/test-u8-check.c: New file.
33972
33973         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33974         (category_equals): New function.
33975         (main): Add more tests.
33976         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33977
33978         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33979
33980 2010-01-10  Bruno Haible  <bruno@clisp.org>
33981
33982         unistr/u*-strcoll: Try harder to distinguish different strings.
33983         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33984         compare s1 and s2 to see if they are different.
33985
33986 2010-01-10  Bruno Haible  <bruno@clisp.org>
33987
33988         unistr/u*-stpncpy: Fix the return value.
33989         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33990         description of the return value consistent with stpncpy in glibc.
33991         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33992         written non-NUL unit.
33993
33994 2010-01-10  Bruno Haible  <bruno@clisp.org>
33995
33996         unistr/u*-next: Add missing dependencies.
33997         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33998         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33999         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34000
34001 2010-01-10  Bruno Haible  <bruno@clisp.org>
34002
34003         unistr/u8-mbsnlen: Fix return value for incomplete character.
34004         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34005         u8_mblen.
34006         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34007         Remove unistr/u8-mblen.
34008         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34009         u16_mblen.
34010         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34011         Remove unistr/u16-mblen.
34012
34013 2010-01-10  Bruno Haible  <bruno@clisp.org>
34014
34015         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34016         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34017         Reported by Brian Gough <bjg@gnu.org> and
34018         Chris Clayton <chris2553@googlemail.com> via
34019         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34020
34021 2010-01-09  Bruno Haible  <bruno@clisp.org>
34022
34023         unistr/u16-to-u32: Reject invalid input.
34024         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34025         u16_mbtouc.
34026         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34027         Remove unistr/u16-mbtouc.
34028
34029         unistr/u16-to-u8: Reject invalid input.
34030         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34031         u16_mbtouc.
34032         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34033         Remove unistr/u16-mbtouc.
34034
34035         unistr/u8-to-u32: Reject invalid input.
34036         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34037         u8_mbtouc.
34038         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34039         Remove unistr/u8-mbtouc.
34040
34041         unistr/u8-to-u16: Reject invalid input.
34042         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34043         u8_mbtouc.
34044         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34045         Remove unistr/u8-mbtouc.
34046
34047 2010-01-09  Bruno Haible  <bruno@clisp.org>
34048
34049         Tests for module 'getlogin'.
34050         * modules/getlogin-tests: New file.
34051         * tests/test-getlogin.c: New file.
34052
34053         New module 'getlogin'.
34054         * lib/unistd.in.h (getlogin): New declaration.
34055         * lib/getlogin.c: New file.
34056         * m4/getlogin.m4: New file.
34057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34058         HAVE_GETLOGIN.
34059         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34060         HAVE_GETLOGIN.
34061         * modules/getlogin: New file.
34062         * doc/posix-functions/getlogin.texi: Mention the new module.
34063         Reported by John W. Eaton <jwe@gnu.org>.
34064
34065 2010-01-09  Bruno Haible  <bruno@clisp.org>
34066
34067         getlogin_r: Support for native Windows.
34068         * lib/getlogin_r.c: Include <windows.h>
34069         (getlogin_r): Implement for native Windows.
34070         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34071         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34072         via John W. Eaton <jwe@gnu.org>.
34073
34074 2010-01-09  Bruno Haible  <bruno@clisp.org>
34075
34076         getlogin_r: Small fixes.
34077         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34078         succeeds.
34079         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34080         before testing whether getlogin_r is declared. No need to set
34081         HAVE_DECL_GETLOGIN_R to 1.
34082         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34083
34084 2010-01-09  Bruno Haible  <bruno@clisp.org>
34085
34086         * lib/unistd.in.h (getlogin_r): Add comment.
34087
34088 2010-01-09  Bruno Haible  <bruno@clisp.org>
34089
34090         Tests for module 'getlogin_r'.
34091         * modules/getlogin_r-tests: New file.
34092         * tests/test-getlogin_r.c: New file.
34093
34094 2010-01-09  Jim Meyering  <meyering@redhat.com>
34095
34096         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34097         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34098         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34099
34100 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34101
34102         * lib/dup2.c (rpl_dup2): Improve comment.
34103
34104 2010-01-08  Eric Blake  <ebb9@byu.net>
34105
34106         maint.mk: allow packages to add makefile @@ exceptions
34107         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34108         (sc_makefile_check): Rename...
34109         (sc_makefile_at_at_check): ...to this, and use hook.
34110
34111         dup2: work around mingw bug
34112         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34113         Reported by Simon Josefsson.
34114
34115 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34116
34117         glob: Fix C++ compilation.
34118         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34119         C++.
34120
34121 2010-01-07  Bruno Haible  <bruno@clisp.org>
34122
34123         Fix indentation of wctype.in.h, broken since 2007-01-06.
34124         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34125
34126 2010-01-07  Bruno Haible  <bruno@clisp.org>
34127
34128         mbslen: Avoid collision with system function.
34129         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34130         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34131         * m4/mbslen.m4: New file.
34132         * modules/mbslen (Files): Add it.
34133         (configure.ac): Invoke gl_MBSLEN.
34134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34135         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34136         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34137         via Ian Beckwith <ianb@erislabs.net>.
34138
34139 2010-01-07  Bruno Haible  <bruno@clisp.org>
34140
34141         dirent: Document the last fix.
34142         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34143
34144 2010-01-07  Bruno Haible  <bruno@clisp.org>
34145
34146         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34147         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34148         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34149         va_list are defined.
34150         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34151         Reported by Eric Blake.
34152
34153 2010-01-07  Bruno Haible  <bruno@clisp.org>
34154
34155         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34156         * modules/xlist (Depends-on): Add 'list',
34157         * modules/xoset (Depends-on): Add 'oset'.
34158         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34159
34160 2010-01-07  Bruno Haible  <bruno@clisp.org>
34161
34162         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34163         * doc/posix-functions/strncasecmp.texi: Likewise.
34164
34165 2010-01-07  Bruno Haible  <bruno@clisp.org>
34166
34167         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34168
34169 2010-01-07  John W. Eaton  <jwe@octave.org>
34170
34171         wctype: allow C++ use
34172         * lib/wctype.in.h: Add extern "C" block for C++.
34173
34174 2010-01-06  Eric Blake  <ebb9@byu.net>
34175
34176         maint.mk: detect incorrect GFDL usage
34177         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34178
34179 2010-01-06  Jim Meyering  <meyering@redhat.com>
34180         and Eric Blake  <ebb9@byu.net>
34181
34182         maint.mk: ignore multi-line copyright in NEWS
34183         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34184
34185 2010-01-06  Eric Blake  <ebb9@byu.net>
34186
34187         select: add missing dependency
34188         * modules/select-tests (Depends-on): Move sockets dependency...
34189         * modules/select (Depends-on): ...here.
34190         Reported by Ian Beckwith.
34191
34192         doc: regenerate INSTALL
34193         * doc/INSTALL: Reflect recent autoconf update.
34194         * doc/INSTALL.ISO: Likewise.
34195         * doc/INSTALL.UTF-8: Likewise.
34196
34197         pread: fix compilation on glibc
34198         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34199         Reported by Ralf Wildenhues.
34200
34201         dirent: fix test failure
34202         * lib/dirent.in.h (includes): Guarantee ino_t.
34203         Reported by Ralf Wildenhues.
34204
34205 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34206
34207         linkat, renameat: avoid bad free
34208         * lib/at-func2.c (at_func2): Fix typo.
34209         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34210
34211 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34212
34213         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34214         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34215         to avoid failure of symlink test later.
34216
34217 2010-01-06  Eric Blake  <ebb9@byu.net>
34218
34219         stdio, unistd: guarantee ssize_t
34220         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34221         2008 are exposed when needed.
34222         * lib/stdio.in.h (includes): Likewise.
34223         Reported by Ralf Wildenhues.
34224
34225 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34226
34227         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34228         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34229         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34230
34231 2010-01-06  Jim Meyering  <meyering@redhat.com>
34232
34233         readtokens: this module *does* require xalloc.h
34234         It uses only functions that were omitted by the old syntax-check rule.
34235         * lib/readtokens.c: Include "xalloc.h" once again.
34236         * modules/readtokens (Depends-on): Add xalloc.
34237         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34238
34239 2010-01-05  Eric Blake  <ebb9@byu.net>
34240
34241         maint: support 'make announcement' from a VPATH build
34242         * top/maint.mk (announcement): Look for correct NEWS file.
34243
34244 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34245
34246         utimens (fdutimens): ignore a negative FD, per contract
34247         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34248         when we have a valid file descriptor.  Otherwise, using a brand
34249         new glibc (with just-patched futimens that now fails with EBADF)
34250         would cause this function to fail with ENOSYS.
34251         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34252         See also http://bugzilla.redhat.com/552320.
34253
34254 2010-01-05  Eric Blake  <ebb9@byu.net>
34255
34256         strcase: document what it provides
34257         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34258         gnulib module.
34259         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34260         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34261
34262 2010-01-05  Jim Meyering  <meyering@redhat.com>
34263
34264         maint: remove useless inclusions of "xalloc.h"
34265         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34266         * lib/readtokens.c: Likewise.
34267         * lib/same.c: Likewise.
34268         * modules/getloadavg (Depends-on): Remove xalloc.
34269         * modules/readtokens: Likewise.
34270         * modules/same: Likewise.
34271
34272         maint.mk: include 4 more function names in alloca.h-checking regexp
34273         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34274         regexp.  Before, we would give a false-positive (saying alloca.h
34275         is included unnecessarily) when the only uses involved omitted symbols.
34276
34277         xalloc.h: use consistent formatting
34278         * lib/xalloc.h: Move declarations to start in the first column.
34279
34280 2010-01-05  Eric Blake  <ebb9@byu.net>
34281
34282         mkdir: avoid xalloc
34283         * lib/mkdir.c (includes): Drop unused header.
34284         Reported by John W. Eaton.
34285
34286 2010-01-04  Jim Meyering  <meyering@redhat.com>
34287
34288         nl_langinfo: avoid configure-time syntax error
34289         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34290         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34291         the empty string.  Don't let that provoke a shell syntax error.
34292
34293         regcomp, regexec, fnmatch: avoid array bounds read error
34294         * lib/regcomp.c (build_equiv_class): From glibc:
34295         Use only the low 24 bits of a findidx return value as an index
34296         into the weights array.  Patch by Ulrich Drepper:
34297         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34298         * lib/regexec.c (check_node_accept_bytes): Likewise.
34299         * lib/fnmatch_loop.c (FCT): Likewise.
34300
34301         regcomp: skip collseq lookup when there are no rules
34302         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34303         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34304
34305         regcomp: recognize ill-formed { } expressions
34306         * lib/regcomp.c (parse_dup_op): From glibc:
34307         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34308
34309         regcomp: fix typo in comment
34310         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34311         s/satisfy/satisfies/.
34312
34313         regcomp: sync from glibc: remove dead store
34314         * lib/regcomp.c (duplicate_node_closure): Remove useless
34315         search_duplicated_node call and dead store.
34316
34317         regcomp: sync from glibc; always use nl_langinfo
34318         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34319         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34320         * modules/regex (Depends-on): Add nl_langinfo.
34321
34322 2010-01-04  Eric Blake  <ebb9@byu.net>
34323
34324         fdopendir: fix configure test
34325         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34326
34327 2010-01-01  Bruno Haible  <bruno@clisp.org>
34328
34329         wchar: Remove unused configure check.
34330         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34331
34332 2010-01-01  Eric Blake  <ebb9@byu.net>
34333
34334         headers: make check of system header explicit
34335         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34336         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34337         ourselves.
34338         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34340         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34341         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34342         internals.
34343         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34344         missing.
34345         Suggested by Bruno Haible.
34346
34347 2010-01-01  Jim Meyering  <meyering@redhat.com>
34348
34349         ChangeLog: tweak to eliminate unnecessary copyright line
34350         * ChangeLog: Remove a copyright line that was mistakenly updated
34351         by today's update-copyright run.  Reported by Eric Blake.
34352
34353         test-update-copyright: don't let envvar setting cause test failure
34354         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34355
34356 2010-01-01  Bruno Haible  <bruno@clisp.org>
34357
34358         localename: Avoid gcc warning.
34359         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34360         function if it is not used.
34361
34362 2010-01-01  Jim Meyering  <meyering@redhat.com>
34363
34364         update nearly all FSF copyright year lists to include 2010
34365         Use the same procedure as for 2009, outlined in
34366         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34367
34368         version-etc: set COPYRIGHT_YEAR to 2010
34369         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34370
34371 2009-12-31  Eric Blake  <ebb9@byu.net>
34372
34373         doc: correct availability of cygwin 1.5.x getopt
34374         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34375         variables.
34376         * doc/posix-functions/opterr.texi (opterr): Likewise.
34377         * doc/posix-functions/optind.texi (optind): Likewise.
34378         * doc/posix-functions/optopt.texi (optopt): Likewise.
34379         * doc/posix-functions/tzname.texi (tzname): Likewise.
34380
34381         openat: update maintainer
34382         * modules/openat (Maintainer): Add myself.
34383
34384         utimens: avoid shadowing warning
34385         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34386         buffers into one, to avoid shadowing, as well as avoiding a
34387         redundant stat.
34388         Reported by Jim Meyering.
34389
34390         test-dup2: avoid compiler warning
34391         * tests/test-dup2.c (is_inheritable): Only define if used.
34392
34393 2010-01-01  Bruno Haible  <bruno@clisp.org>
34394
34395         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34396         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34397         defined, use wctomb instead of wcrtomb.
34398
34399 2010-01-01  Bruno Haible  <bruno@clisp.org>
34400
34401         iconv: Reject native Solaris iconv.
34402         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34403         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34404
34405 2009-12-31  Bruno Haible  <bruno@clisp.org>
34406
34407         * tests/test-signal.c (main): Remove test of 'SIG'.
34408
34409 2009-12-31  Bruno Haible  <bruno@clisp.org>
34410
34411         spawn: Fix incomplete fix.
34412         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34413         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34414         warnings for GNULIB_POSIXCHECK again.
34415         Reported by Eric Blake.
34416
34417 2009-12-31  Bruno Haible  <bruno@clisp.org>
34418
34419         Avoid namespace pollution on glibc systems.
34420         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34421         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34422         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34423         glibc systems.
34424
34425 2009-12-31  Bruno Haible  <bruno@clisp.org>
34426
34427         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34428         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34429         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34430         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34431         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34432         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34433         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34434
34435 2009-12-31  Bruno Haible  <bruno@clisp.org>
34436
34437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34438         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34439         afterwards.
34440
34441 2009-12-31  Bruno Haible  <bruno@clisp.org>
34442
34443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34444         SYS_UTSNAME_H.
34445
34446 2009-12-31  Bruno Haible  <bruno@clisp.org>
34447
34448         spawn: Fix misapplied patch.
34449         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34450         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34451         warnings for GNULIB_POSIXCHECK.
34452
34453 2009-12-31  Bruno Haible  <bruno@clisp.org>
34454
34455         times: Update after sys_times changed.
34456         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34457         * modules/times (Files): Add it.
34458         (configure.ac): Invoke gl_FUNC_TIMES.
34459
34460 2009-12-31  Bruno Haible  <bruno@clisp.org>
34461
34462         Use AC_C_INLINE where necessary.
34463         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34464         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34466         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34467         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34468         * m4/mbiter.m4 (gl_MBITER): Likewise.
34469         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34470         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34471         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34472         * modules/u64 (configure.ac): Likewise.
34473
34474 2009-12-31  Bruno Haible  <bruno@clisp.org>
34475
34476         Use AC_C_INLINE instead of module 'inline' where possible.
34477         * modules/inline (Description): Clarify purpose.
34478         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34479         * modules/count-one-bits (Depends-on): Remove inline.
34480         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34481         * modules/openat (Depends-on): Remove inline.
34482         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34483         instead of depending on module 'inline'.
34484         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34485         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34486         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34487         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34488         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34489         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34490         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34491         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34492         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34493         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34494         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34495         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34496         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34497         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34498         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34499         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34500         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34501         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34502         Likewise.
34503         * modules/unictype/property-ascii-hex-digit (Depends-on,
34504         configure.ac): Likewise.
34505         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34506         configure.ac): Likewise.
34507         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34508         configure.ac): Likewise.
34509         * modules/unictype/property-bidi-block-separator (Depends-on,
34510         configure.ac): Likewise.
34511         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34512         configure.ac): Likewise.
34513         * modules/unictype/property-bidi-common-separator (Depends-on,
34514         configure.ac): Likewise.
34515         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34516         Likewise.
34517         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34518         configure.ac): Likewise.
34519         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34520         configure.ac): Likewise.
34521         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34522         configure.ac): Likewise.
34523         * modules/unictype/property-bidi-european-digit (Depends-on,
34524         configure.ac): Likewise.
34525         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34526         configure.ac): Likewise.
34527         * modules/unictype/property-bidi-left-to-right (Depends-on,
34528         configure.ac): Likewise.
34529         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34530         configure.ac): Likewise.
34531         * modules/unictype/property-bidi-other-neutral (Depends-on,
34532         configure.ac): Likewise.
34533         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34534         Likewise.
34535         * modules/unictype/property-bidi-segment-separator (Depends-on,
34536         configure.ac): Likewise.
34537         * modules/unictype/property-bidi-whitespace (Depends-on,
34538         configure.ac): Likewise.
34539         * modules/unictype/property-combining (Depends-on, configure.ac):
34540         Likewise.
34541         * modules/unictype/property-composite (Depends-on, configure.ac):
34542         Likewise.
34543         * modules/unictype/property-currency-symbol (Depends-on,
34544         configure.ac): Likewise.
34545         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34546         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34547         Likewise.
34548         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34549         configure.ac): Likewise.
34550         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34551         Likewise.
34552         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34553         Likewise.
34554         * modules/unictype/property-extender (Depends-on, configure.ac):
34555         Likewise.
34556         * modules/unictype/property-format-control (Depends-on, configure.ac):
34557         Likewise.
34558         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34559         Likewise.
34560         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34561         Likewise.
34562         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34563         Likewise.
34564         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34565         Likewise.
34566         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34567         Likewise.
34568         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34569         Likewise.
34570         * modules/unictype/property-id-start (Depends-on, configure.ac):
34571         Likewise.
34572         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34573         Likewise.
34574         * modules/unictype/property-ids-binary-operator (Depends-on,
34575         configure.ac): Likewise.
34576         * modules/unictype/property-ids-trinary-operator (Depends-on,
34577         configure.ac): Likewise.
34578         * modules/unictype/property-ignorable-control (Depends-on,
34579         configure.ac): Likewise.
34580         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34581         Likewise.
34582         * modules/unictype/property-join-control (Depends-on, configure.ac):
34583         Likewise.
34584         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34585         Likewise.
34586         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34587         Likewise.
34588         * modules/unictype/property-logical-order-exception (Depends-on,
34589         configure.ac): Likewise.
34590         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34591         Likewise.
34592         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34593         * modules/unictype/property-non-break (Depends-on, configure.ac):
34594         Likewise.
34595         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34596         Likewise.
34597         * modules/unictype/property-numeric (Depends-on, configure.ac):
34598         Likewise.
34599         * modules/unictype/property-other-alphabetic (Depends-on,
34600         configure.ac): Likewise.
34601         * modules/unictype/property-other-default-ignorable-code-point
34602         (Depends-on, configure.ac): Likewise.
34603         * modules/unictype/property-other-grapheme-extend (Depends-on,
34604         configure.ac): Likewise.
34605         * modules/unictype/property-other-id-continue (Depends-on,
34606         configure.ac): Likewise.
34607         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34608         Likewise.
34609         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34610         Likewise.
34611         * modules/unictype/property-other-math (Depends-on, configure.ac):
34612         Likewise.
34613         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34614         Likewise.
34615         * modules/unictype/property-paired-punctuation (Depends-on,
34616         configure.ac): Likewise.
34617         * modules/unictype/property-paragraph-separator (Depends-on,
34618         configure.ac): Likewise.
34619         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34620         Likewise.
34621         * modules/unictype/property-pattern-white-space (Depends-on,
34622         configure.ac): Likewise.
34623         * modules/unictype/property-private-use (Depends-on, configure.ac):
34624         Likewise.
34625         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34626         Likewise.
34627         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34628         Likewise.
34629         * modules/unictype/property-radical (Depends-on, configure.ac):
34630         Likewise.
34631         * modules/unictype/property-sentence-terminal (Depends-on,
34632         configure.ac): Likewise.
34633         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34634         Likewise.
34635         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34636         * modules/unictype/property-terminal-punctuation (Depends-on,
34637         configure.ac): Likewise.
34638         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34639         Likewise.
34640         * modules/unictype/property-unassigned-code-value (Depends-on,
34641         configure.ac): Likewise.
34642         * modules/unictype/property-unified-ideograph (Depends-on,
34643         configure.ac): Likewise.
34644         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34645         Likewise.
34646         * modules/unictype/property-variation-selector (Depends-on,
34647         configure.ac): Likewise.
34648         * modules/unictype/property-white-space (Depends-on, configure.ac):
34649         Likewise.
34650         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34651         Likewise.
34652         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34653         Likewise.
34654         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34655         Likewise.
34656         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34657         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34658         Likewise.
34659
34660 2009-12-31  Bruno Haible  <bruno@clisp.org>
34661
34662         Remove unnecessary AC_C_INLINE invocation.
34663         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34664         since 2009-08-21.
34665
34666 2009-12-31  Jim Meyering  <meyering@redhat.com>
34667
34668         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34669         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34670         With this change, we can all remove the gpg_key_ID = ... definition
34671         from our respective cfg.mk files.
34672
34673         maint.mk: create announcement template in ~/, not in /tmp
34674         * top/maint.mk (emit_upload_commands): Adjust.
34675         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34676         Remove temporary file, .ci-msg.
34677
34678 2009-12-31  Eric Blake  <ebb9@byu.net>
34679
34680         link-warning: always build headers with link warnings
34681         * modules/arpa_inet (Makefile.am): Always build replacement
34682         header.
34683         * modules/ctype (Makefile.am): Likewise.
34684         * modules/dirent (Makefile.am): Likewise.
34685         * modules/inttypes (Makefile.am): Likewise.
34686         * modules/langinfo (Makefile.am): Likewise.
34687         * modules/locale (Makefile.am): Likewise.
34688         * modules/spawn (Makefile.am): Likewise.
34689         * modules/sys_file (Makefile.am): Likewise.
34690         * modules/sys_ioctl (Makefile.am): Likewise.
34691         * modules/sys_select (Makefile.am): Likewise.
34692         * modules/sys_socket (Makefile.am): Likewise.
34693         * modules/sys_times (Makefile.am): Likewise.
34694         * modules/sys_utsname (Makefile.am): Likewise.
34695         * modules/sys_wait (Makefile.am): Likewise.
34696         * modules/wchar (Makefile.am): Likewise.
34697         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34698         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34699         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34700         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34701         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34702         Likewise.
34703         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34704         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34705         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34706         Likewise.
34707         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34708         Likewise.
34709         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34710         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34711         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34713         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34714         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34715         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34716         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34717         (gl_WCHAR_H_DEFAULTS): Likewise.
34718
34719 2009-12-31  Eric Blake  <ebb9@byu.net>
34720
34721         signal, spawn: use link warnings
34722         * lib/signal.in.h (sigset_t): Make unconditional.
34723         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34724         (sigpending, sigprocmask, sigaction): Add link warnings.
34725         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34726         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34727         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34728         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34729         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34730         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34731         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34732         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34733         (posix_spawn_file_actions_destroy)
34734         (posix_spawn_file_actions_addopen)
34735         (posix_spawn_file_actions_addclose)
34736         (posix_spawn_file_actions_adddup2): Likewise.
34737         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34738         * tests/test-signal.c (main): Enhance test.
34739
34740         spawn: improve wrapper support
34741         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34742         (gl_SPAWN_H_DEFAULTS): New defaults.
34743         * modules/spawn (Makefile.am): Substitute them.
34744         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34745         Only declare if missing or broken.
34746
34747         sys_times, sys_utsname: use include_next
34748         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34749         header.
34750         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34751         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34752         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34753         * modules/sys_times (Depends-on): Add include_next.
34754         (Makefile.am): Substitute additional values.
34755         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34756         * lib/sys_times.in.h (includes): Include native header, if
34757         available.
34758         * lib/sys_utsname.in.h (includes): Likewise.
34759         * tests/test-sys_times.c (main): Enhance test.
34760
34761         fdutimensat: revert prior patch
34762         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34763         utimens.h.
34764         Reported by Bruno Haible.
34765
34766 2009-12-30  Eric Blake  <ebb9@byu.net>
34767
34768         sys_wait: drop link-warning dependency
34769         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34770         link-warning efforts.
34771         * lib/sys_wait.in.h: Likewise.
34772
34773         fdutimensat: remove bogus dependency
34774         * modules/fdutimensat (Depends-on): Drop inline.
34775
34776         unistd: fix typo
34777         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34778
34779 2009-12-30  Bruno Haible  <bruno@clisp.org>
34780
34781         Fix compilation error with Solaris cc.
34782         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34783         * lib/unicase/u16-is-invariant.c: Likewise.
34784         * lib/unicase/u32-is-invariant.c: Likewise.
34785         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34786
34787 2009-12-30  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix test crash.
34790         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34791         locales.
34792         Reported by Simon Josefsson <simon@josefsson.org>.
34793
34794 2009-12-30  Bruno Haible  <bruno@clisp.org>
34795
34796         Fix compilation error on most platforms.
34797         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34798         Reported by Simon Josefsson <simon@josefsson.org>
34799         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34800
34801 2009-12-30  Eric Blake  <ebb9@byu.net>
34802
34803         futimens, utimensat: work around ntfs-3g bug
34804         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34805         a ctime bug is present, and expand workaround to cover ntfs-3g.
34806         * lib/utimens.c (fdutimens, lutimens): Likewise.
34807         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34808         (validate_timespec): Adjust return value.
34809         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34810         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34811         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34812
34813 2009-12-29  Eric Blake  <ebb9@byu.net>
34814
34815         link-warning: make usage consistent
34816         * modules/ctype (Depends-on): Add link-warning.
34817         (Makefile.am): Update rules accordingly.
34818         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34819         * modules/locale (Depends-on, Makefile.am): Likewise.
34820         * modules/sys_file (Makefile.am): Likewise.
34821         * modules/getopt-posix (Makefile.am): Delete unused link warning
34822         efforts.
34823         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34824         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34825         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34826         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34827
34828         stdio: remove unused variables
34829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34830         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34831         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34832
34833         tests: test more substitute headers
34834         * modules/ctype-tests: New file.
34835         * modules/dirent-tests: Likewise.
34836         * modules/spawn-tests: Likewise.
34837         * modules/sys_file-tests: Likewise.
34838         * modules/sys_ioctl-tests: Likewise.
34839         * modules/sys_wait-tests: Likewise.
34840         * tests/test-ctype.c: Likewise.
34841         * tests/test-dirent.c: Likewise.
34842         * tests/test-spawn.c: Likewise.
34843         * tests/test-sys_file.c: Likewise.
34844         * tests/test-sys_ioctl.c: Likewise.
34845         * tests/test-sys_wait.c: Likewise.
34846         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34847         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34848         whether or not flock is in use.
34849
34850         tests: remove License section from module
34851         * modules/arpa_inet-tests: Remove unneeded section.
34852         * modules/byteswap-tests: Likewise.
34853         * modules/ceilf-tests: Likewise.
34854         * modules/ceill-tests: Likewise.
34855         * modules/crypto/des-tests: Likewise.
34856         * modules/crypto/gc-arcfour-tests: Likewise.
34857         * modules/crypto/gc-arctwo-tests: Likewise.
34858         * modules/crypto/gc-des-tests: Likewise.
34859         * modules/crypto/gc-hmac-md5-tests: Likewise.
34860         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34861         * modules/crypto/gc-md2-tests: Likewise.
34862         * modules/crypto/gc-md4-tests: Likewise.
34863         * modules/crypto/gc-md5-tests: Likewise.
34864         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34865         * modules/crypto/gc-rijndael-tests: Likewise.
34866         * modules/crypto/gc-sha1-tests: Likewise.
34867         * modules/crypto/gc-tests: Likewise.
34868         * modules/crypto/md2-tests: Likewise.
34869         * modules/crypto/md4-tests: Likewise.
34870         * modules/fcntl-h-tests: Likewise.
34871         * modules/floorf-tests: Likewise.
34872         * modules/floorl-tests: Likewise.
34873         * modules/frexp-nolibm-tests: Likewise.
34874         * modules/frexp-tests: Likewise.
34875         * modules/frexpl-nolibm-tests: Likewise.
34876         * modules/frexpl-tests: Likewise.
34877         * modules/getaddrinfo-tests: Likewise.
34878         * modules/inttypes-tests: Likewise.
34879         * modules/isfinite-tests: Likewise.
34880         * modules/isinf-tests: Likewise.
34881         * modules/ldexpl-tests: Likewise.
34882         * modules/locale-tests: Likewise.
34883         * modules/math-tests: Likewise.
34884         * modules/netdb-tests: Likewise.
34885         * modules/netinet_in-tests: Likewise.
34886         * modules/printf-frexp-tests: Likewise.
34887         * modules/printf-frexpl-tests: Likewise.
34888         * modules/priv-set-tests: Likewise.
34889         * modules/random_r-tests: Likewise.
34890         * modules/round-tests: Likewise.
34891         * modules/roundf-tests: Likewise.
34892         * modules/roundl-tests: Likewise.
34893         * modules/search-tests: Likewise.
34894         * modules/select-tests: Likewise.
34895         * modules/signal-tests: Likewise.
34896         * modules/stdbool-tests: Likewise.
34897         * modules/stddef-tests: Likewise.
34898         * modules/stdint-tests: Likewise.
34899         * modules/stdio-tests: Likewise.
34900         * modules/stdlib-tests: Likewise.
34901         * modules/string-tests: Likewise.
34902         * modules/strings-tests: Likewise.
34903         * modules/sys_select-tests: Likewise.
34904         * modules/sys_socket-tests: Likewise.
34905         * modules/sys_stat-tests: Likewise.
34906         * modules/sys_time-tests: Likewise.
34907         * modules/sys_utsname-tests: Likewise.
34908         * modules/sysexits-tests: Likewise.
34909         * modules/time-tests: Likewise.
34910         * modules/trunc-tests: Likewise.
34911         * modules/truncf-tests: Likewise.
34912         * modules/truncl-tests: Likewise.
34913         * modules/tsearch-tests: Likewise.
34914         * modules/unistd-tests: Likewise.
34915         * modules/wchar-tests: Likewise.
34916         * modules/wctype-tests: Likewise.
34917
34918         tests: fix license on several tests
34919         * tests/test-des.c: Update to GPLv3+.
34920         * tests/test-flock.c: Likewise.
34921         * tests/test-fsync.c: Likewise.
34922         * tests/test-futimens.h: Likewise.
34923         * tests/test-gc-arcfour.c: Likewise.
34924         * tests/test-gc-arctwo.c: Likewise.
34925         * tests/test-gc-des.c: Likewise.
34926         * tests/test-gc-hmac-md5.c: Likewise.
34927         * tests/test-gc-hmac-sha1.c: Likewise.
34928         * tests/test-gc-md2.c: Likewise.
34929         * tests/test-gc-md4.c: Likewise.
34930         * tests/test-gc-md5.c: Likewise.
34931         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34932         * tests/test-gc-rijndael.c: Likewise.
34933         * tests/test-gc-sha1.c: Likewise.
34934         * tests/test-gc.c: Likewise.
34935         * tests/test-getcwd.c: Likewise.
34936         * tests/test-link.c: Likewise.
34937         * tests/test-link.h: Likewise.
34938         * tests/test-lutimens.h: Likewise.
34939         * tests/test-md2.c: Likewise.
34940         * tests/test-md4.c: Likewise.
34941         * tests/test-mkdir.h: Likewise.
34942         * tests/test-rename.c: Likewise.
34943         * tests/test-rename.h: Likewise.
34944         * tests/test-safe-alloc.c: Likewise.
34945         * tests/test-utimens-common.h: Likewise.
34946         * tests/test-utimens.h: Likewise.
34947
34948         maint: sync license texts
34949         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34950         * doc/gpl-3.0.texi: Revert copyright year update.
34951         * doc/lgpl-3.0.texi: Likewise.
34952
34953 2009-12-29  Jim Meyering  <meyering@redhat.com>
34954
34955         update nearly all FSF copyright year lists to include 2009
34956         The files named by the following are exempted:
34957             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34958               test -f "$dst" && { echo "$dst"; continue; }
34959               test -d "$dst" || continue
34960               echo "$dst"/$(basename "$src")
34961             done > exempt
34962             git ls-files tests/unictype >> exempt
34963         In the remaining files, convert to all-interval notation if
34964         - there is already at least one year interval like 2000-2003
34965         - the file is maintained by me
34966         - the file is in lib/uni*/, where that style already prevails
34967         Otherwise, use update-copyright's default.
34968
34969 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34970         and Eric Blake  <ebb9@byu.net>
34971
34972         tests: don't require debug system() to pass
34973         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34974         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34975         * tests/test-unlink.h (test_unlink_func): Likewise.
34976         * tests/test-fstatat.c (main): ...into callers.
34977         * tests/test-lstat.c (main): Likewise.
34978         * tests/test-rmdir.c (main): Likewise.
34979         * tests/test-unlink.c (main): Likewise.
34980         * tests/test-unlinkat.c (main): Likewise.
34981         * tests/test-areadlink-with-size.c (main): Don't require a
34982         debug-only system call to pass, aiding cross-testing to mingw.
34983         * tests/test-areadlink.c (main): Likewise.
34984         * tests/test-areadlinkat-with-size.c (main): Likewise.
34985         * tests/test-areadlinkat.c (main): Likewise.
34986         * tests/test-canonicalize-lgpl.c (main): Likewise.
34987         * tests/test-canonicalize.c (main): Likewise.
34988         * tests/test-chown.c (main): Likewise.
34989         * tests/test-fchownat.c (main): Likewise.
34990         * tests/test-lchown.c (main): Likewise.
34991         * tests/test-fdutimensat.c (main): Likewise.
34992         * tests/test-futimens.c (main): Likewise.
34993         * tests/test-link.c (main): Likewise.
34994         * tests/test-linkat.c (main): Likewise.
34995         * tests/test-mkdir.c (main): Likewise.
34996         * tests/test-mkdirat.c (main): Likewise.
34997         * tests/test-mkfifo.c (main): Likewise.
34998         * tests/test-mkfifoat.c (main): Likewise.
34999         * tests/test-mknod.c (main): Likewise.
35000         * tests/test-readlink.c (main): Likewise.
35001         * tests/test-remove.c (main): Likewise.
35002         * tests/test-rename.c (main): Likewise.
35003         * tests/test-renameat.c (main): Likewise.
35004         * tests/test-symlink.c (main): Likewise.
35005         * tests/test-symlinkat.c (main): Likewise.
35006         * tests/test-utimens.c (main): Likewise.
35007         * tests/test-utimensat.c (main): Likewise.
35008
35009 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35010
35011         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35012         on $(UNUSED_PARAMETER_H) to avoid build failure.
35013
35014 2009-12-28  Jim Meyering  <meyering@redhat.com>
35015
35016         update-copyright: you may specify a max. line length other than 72
35017         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35018
35019         maint: use consistent FSF copyright line syntax
35020         * lib/posixtm.c: Add missing comma in FSF copyright line.
35021         * lib/posixtm.h: Likewise.
35022         * lib/getugroups.c: Add missing ", Inc.".
35023
35024         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35025         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35026         FSF copyright line.  Remove trailing blanks.
35027
35028 2009-12-28  Eric Blake  <ebb9@byu.net>
35029
35030         test-dup2: reduce dependencies
35031         * modules/cloexec (Configure.ac): Set witness.
35032         * modules/dup2-tests (Depends-on): Drop cloexec.
35033         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35034         not present.
35035         Suggested by Bruno Haible.
35036
35037 2009-12-26  Bruno Haible  <bruno@clisp.org>
35038
35039         Remove an unneeded dependency.
35040         * modules/fseterr (Depends-on): Remove dup2.
35041
35042 2009-12-26  Eric Blake  <ebb9@byu.net>
35043
35044         tests: use macros.h in more places
35045         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35046         (ASSERT_STREAM): Provide default of stderr.
35047         * tests/test-dirent-safer.c: Include macros.h, using alternate
35048         stream for assertions.
35049         * tests/test-dup-safer.c: Likewise.
35050         * tests/test-freopen-safer.c: Likewise.
35051         * tests/test-getopt.c: Likewise.
35052         * tests/test-openat-safer.c: Likewise.
35053         * tests/test-pipe.c: Likewise.
35054         * tests/test-popen-safer.c: Likewise.
35055         * modules/dirent-safer-tests (Files): Include macros.h.
35056         * modules/unistd-safer-tests (Files): Likewise.
35057         * modules/freopen-safer-tests (Files): Likewise.
35058         * modules/getopt-posix-tests (Files): Likewise.
35059         * modules/openat-safer-tests (Files): Likewise.
35060         * modules/pipe-tests (Files): Likewise.
35061
35062 2009-12-26  Bruno Haible  <bruno@clisp.org>
35063
35064         javacomp: Portability fix.
35065         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35066         that it also works on Solaris.
35067
35068 2009-12-26  Bruno Haible  <bruno@clisp.org>
35069
35070         localename: Fix storage allocation of gl_locale_name_thread's result.
35071         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35072         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35073         all platforms that have 'uselocale'.
35074         (gl_locale_name_thread_unsafe): New function, extracted from
35075         gl_locale_name_thread.
35076         (gl_locale_name_thread): Call struniq on all platforms that have
35077         'uselocale'.
35078         * tests/test-localename.c (test_locale_name_thread): Check that the
35079         resulting strings are permanently allocated.
35080         * modules/localename-tests (Depends-on): Add strdup.
35081
35082 2009-12-26  Bruno Haible  <bruno@clisp.org>
35083
35084         * tests/test-localename.c (categories): Fill in the strings.
35085
35086 2009-12-26  Jim Meyering  <meyering@redhat.com>
35087
35088         isdir: complete the removal of m4/isdir.m4
35089         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35090
35091         isdir: clean up, since at least grep still uses it
35092         * lib/isdir.c: Include "isdir.h".
35093         (S_ISDIR): Remove now-unneeded definition.
35094         * modules/isdir (Files): Add lib/isdir.h.
35095         * lib/isdir.h: New file, with declaration.
35096         * m4/isdir.m4: Remove file -- unneeded.
35097
35098 2009-12-25  Bruno Haible  <bruno@clisp.org>
35099
35100         selinux-h: Make generated .h files standalone.
35101         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35102         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35103         * lib/se-selinux.in.h: Likewise.
35104         * modules/selinux-h (Depends-on): Add unused-parameter.
35105         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35106         selinux/selinux.h and selinux/context.h.
35107         Suggested by Eric Blake.
35108
35109 2009-12-25  Bruno Haible  <bruno@clisp.org>
35110
35111         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35112         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35113         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35114         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35115         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35116
35117 2009-12-24  Bruno Haible  <bruno@clisp.org>
35118
35119         openat: Fix warning.
35120         * lib/openat-proc.c: Include <unistd.h>.
35121
35122 2009-12-24  Bruno Haible  <bruno@clisp.org>
35123
35124         New module 'unused-parameter'.
35125         * build-aux/unused-parameter.h: New file, extracted from earlier
35126         gnulib-common.m4.
35127         * modules/unused-parameter: New file.
35128         * lib/unistr.h: Include unused-parameter.h.
35129         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35130         _GL_UNUSED.
35131         * modules/unistr/base (Depends-on): Add unused-parameter.
35132
35133 2009-12-24  Bruno Haible  <bruno@clisp.org>
35134
35135         Add missing dependencies to 'extensions' module.
35136         * m4/extensions.m4: Add comment.
35137         * modules/accept4 (Depends-on): Add extensions.
35138         * modules/dup3 (Depends-on): Likewise.
35139         * modules/fcntl (Depends-on): Likewise.
35140         * modules/futimens (Depends-on): Likewise.
35141         * modules/mknod (Depends-on): Likewise.
35142         * modules/pipe2 (Depends-on): Likewise.
35143         * modules/stat-time (Depends-on): Likewise.
35144         * modules/strcasestr-simple (Depends-on): Likewise.
35145         * modules/strsignal (Depends-on): Likewise.
35146         * modules/utimensat (Depends-on): Likewise.
35147         * modules/localcharset (Depends-on): Likewise. Needed because of
35148         gl_FCNTL_O_FLAGS.
35149         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35150         AC_TYPE_MBSTATE_T.
35151         * modules/wcsnrtombs (Depends-on): Likewise.
35152         * modules/wcsrtombs (Depends-on): Likewise.
35153
35154 2009-12-24  Bruno Haible  <bruno@clisp.org>
35155
35156         binary-io: Avoid gcc warning due to SET_BINARY.
35157         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35158         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35159
35160 2009-12-24  Bruno Haible  <bruno@clisp.org>
35161
35162         Avoid future namespace pollution on glibc systems.
35163         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35164         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35165         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35166         glibc systems.
35167
35168 2009-12-24  Bruno Haible  <bruno@clisp.org>
35169
35170         Refactor common macros used in tests.
35171         * tests/macros.h: New file.
35172         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35173         and/or <stdlib.h>, if appropriate.
35174         (ASSERT, SIZEOF): Remove macros.
35175         * tests/test-areadlink-with-size.c: Likewise.
35176         * tests/test-areadlinkat.c: Likewise.
35177         * tests/test-areadlinkat-with-size.c: Likewise.
35178         * tests/test-argmatch.c: Likewise.
35179         * tests/test-argv-iter.c: Likewise.
35180         * tests/test-array-mergesort.c: Likewise.
35181         * tests/test-array_list.c: Likewise.
35182         * tests/test-array_oset.c: Likewise.
35183         * tests/test-avltree_list.c: Likewise.
35184         * tests/test-avltree_oset.c: Likewise.
35185         * tests/test-avltreehash_list.c: Likewise.
35186         * tests/test-base64.c: Likewise.
35187         * tests/test-binary-io.c: Likewise.
35188         * tests/test-bitrotate.c: Likewise.
35189         * tests/test-btowc.c: Likewise.
35190         * tests/test-byteswap.c: Likewise.
35191         * tests/test-c-ctype.c: Likewise.
35192         * tests/test-c-stack.c: Likewise.
35193         * tests/test-c-strcasecmp.c: Likewise.
35194         * tests/test-c-strcasestr.c: Likewise.
35195         * tests/test-c-strncasecmp.c: Likewise.
35196         * tests/test-c-strstr.c: Likewise.
35197         * tests/test-canonicalize-lgpl.c: Likewise.
35198         * tests/test-canonicalize.c: Likewise.
35199         * tests/test-carray_list.c: Likewise.
35200         * tests/test-ceilf1.c: Likewise.
35201         * tests/test-ceilf2.c: Likewise.
35202         * tests/test-ceill.c: Likewise.
35203         * tests/test-chown.c: Likewise.
35204         * tests/test-cloexec.c: Likewise.
35205         * tests/test-copy-acl.c: Likewise.
35206         * tests/test-copy-file.c: Likewise.
35207         * tests/test-count-one-bits.c: Likewise.
35208         * tests/test-dprintf-posix.c: Likewise.
35209         * tests/test-dup2.c: Likewise.
35210         * tests/test-dup3.c: Likewise.
35211         * tests/test-duplocale.c: Likewise.
35212         * tests/test-fbufmode.c: Likewise.
35213         * tests/test-fchdir.c: Likewise.
35214         * tests/test-fchownat.c: Likewise.
35215         * tests/test-fcntl-safer.c: Likewise.
35216         * tests/test-fcntl.c: Likewise.
35217         * tests/test-fdopendir.c: Likewise.
35218         * tests/test-fdutimensat.c: Likewise.
35219         * tests/test-fflush2.c: Likewise.
35220         * tests/test-file-has-acl.c: Likewise.
35221         * tests/test-filevercmp.c: Likewise.
35222         * tests/test-flock.c: Likewise.
35223         * tests/test-floorf1.c: Likewise.
35224         * tests/test-floorf2.c: Likewise.
35225         * tests/test-floorl.c: Likewise.
35226         * tests/test-fnmatch.c: Likewise.
35227         * tests/test-fopen.h: Likewise.
35228         * tests/test-fpending.c: Likewise.
35229         * tests/test-fprintf-posix.c: Likewise.
35230         * tests/test-fpurge.c: Likewise.
35231         * tests/test-freadable.c: Likewise.
35232         * tests/test-freadahead.c: Likewise.
35233         * tests/test-freading.c: Likewise.
35234         * tests/test-freadptr.c: Likewise.
35235         * tests/test-freadptr2.c: Likewise.
35236         * tests/test-freadseek.c: Likewise.
35237         * tests/test-freopen.c: Likewise.
35238         * tests/test-frexp.c: Likewise.
35239         * tests/test-frexpl.c: Likewise.
35240         * tests/test-fseek.c: Likewise.
35241         * tests/test-fseeko.c: Likewise.
35242         * tests/test-fstatat.c: Likewise.
35243         * tests/test-fstrcmp.c: Likewise.
35244         * tests/test-fsync.c: Likewise.
35245         * tests/test-ftell.c: Likewise.
35246         * tests/test-ftello.c: Likewise.
35247         * tests/test-func.c: Likewise.
35248         * tests/test-futimens.c: Likewise.
35249         * tests/test-fwritable.c: Likewise.
35250         * tests/test-fwriting.c: Likewise.
35251         * tests/test-getcwd.c: Likewise.
35252         * tests/test-getdate.c: Likewise.
35253         * tests/test-getdelim.c: Likewise.
35254         * tests/test-getdtablesize.c: Likewise.
35255         * tests/test-getgroups.c: Likewise.
35256         * tests/test-getline.c: Likewise.
35257         * tests/test-getndelim2.c: Likewise.
35258         * tests/test-glob.c: Likewise.
35259         * tests/test-hash.c: Likewise.
35260         * tests/test-i-ring.c: Likewise.
35261         * tests/test-iconv-utf.c: Likewise.
35262         * tests/test-iconv.c: Likewise.
35263         * tests/test-idpriv-drop.c: Likewise.
35264         * tests/test-idpriv-droptemp.c: Likewise.
35265         * tests/test-inet_ntop.c: Likewise.
35266         * tests/test-inet_pton.c: Likewise.
35267         * tests/test-isblank.c: Likewise.
35268         * tests/test-isfinite.c: Likewise.
35269         * tests/test-isinf.c: Likewise.
35270         * tests/test-isnan.c: Likewise.
35271         * tests/test-isnand.h: Likewise.
35272         * tests/test-isnanf.h: Likewise.
35273         * tests/test-isnanl.h: Likewise.
35274         * tests/test-lchown.c: Likewise.
35275         * tests/test-ldexpl.c: Likewise.
35276         * tests/test-link.c: Likewise.
35277         * tests/test-linkat.c: Likewise.
35278         * tests/test-linked_list.c: Likewise.
35279         * tests/test-linkedhash_list.c: Likewise.
35280         * tests/test-localename.c: Likewise.
35281         * tests/test-lseek.c: Likewise.
35282         * tests/test-lstat.c: Likewise.
35283         * tests/test-mbmemcasecmp.c: Likewise.
35284         * tests/test-mbmemcasecoll.c: Likewise.
35285         * tests/test-mbrtowc.c: Likewise.
35286         * tests/test-mbscasecmp.c: Likewise.
35287         * tests/test-mbscasestr1.c: Likewise.
35288         * tests/test-mbscasestr2.c: Likewise.
35289         * tests/test-mbscasestr3.c: Likewise.
35290         * tests/test-mbscasestr4.c: Likewise.
35291         * tests/test-mbschr.c: Likewise.
35292         * tests/test-mbscspn.c: Likewise.
35293         * tests/test-mbsinit.c: Likewise.
35294         * tests/test-mbsncasecmp.c: Likewise.
35295         * tests/test-mbsnrtowcs.c: Likewise.
35296         * tests/test-mbspbrk.c: Likewise.
35297         * tests/test-mbspcasecmp.c: Likewise.
35298         * tests/test-mbsrchr.c: Likewise.
35299         * tests/test-mbsrtowcs.c: Likewise.
35300         * tests/test-mbsspn.c: Likewise.
35301         * tests/test-mbsstr1.c: Likewise.
35302         * tests/test-mbsstr2.c: Likewise.
35303         * tests/test-mbsstr3.c: Likewise.
35304         * tests/test-memchr.c: Likewise.
35305         * tests/test-memchr2.c: Likewise.
35306         * tests/test-memcmp.c: Likewise.
35307         * tests/test-memmem.c: Likewise.
35308         * tests/test-memrchr.c: Likewise.
35309         * tests/test-mkdir.c: Likewise.
35310         * tests/test-mkdirat.c: Likewise.
35311         * tests/test-mkfifo.c: Likewise.
35312         * tests/test-mkfifoat.c: Likewise.
35313         * tests/test-mknod.c: Likewise.
35314         * tests/test-nanosleep.c: Likewise.
35315         * tests/test-nl_langinfo.c: Likewise.
35316         * tests/test-obstack-printf.c: Likewise.
35317         * tests/test-open.c: Likewise.
35318         * tests/test-openat.c: Likewise.
35319         * tests/test-pipe-filter-gi1.c: Likewise.
35320         * tests/test-pipe-filter-gi2-main.c: Likewise.
35321         * tests/test-pipe-filter-ii1.c: Likewise.
35322         * tests/test-pipe-filter-ii2-main.c: Likewise.
35323         * tests/test-pipe2.c: Likewise.
35324         * tests/test-popen.h: Likewise.
35325         * tests/test-posixtm.c: Likewise.
35326         * tests/test-pread.c: Likewise.
35327         * tests/test-printf-frexp.c: Likewise.
35328         * tests/test-printf-frexpl.c: Likewise.
35329         * tests/test-printf-posix.c: Likewise.
35330         * tests/test-priv-set.c: Likewise.
35331         * tests/test-quotearg.c: Likewise.
35332         * tests/test-random_r.c: Likewise.
35333         * tests/test-rawmemchr.c: Likewise.
35334         * tests/test-rbtree_list.c: Likewise.
35335         * tests/test-rbtree_oset.c: Likewise.
35336         * tests/test-rbtreehash_list.c: Likewise.
35337         * tests/test-readlink.c: Likewise.
35338         * tests/test-remove.c: Likewise.
35339         * tests/test-rename.c: Likewise.
35340         * tests/test-renameat.c: Likewise.
35341         * tests/test-rmdir.c: Likewise.
35342         * tests/test-round1.c: Likewise.
35343         * tests/test-roundf1.c: Likewise.
35344         * tests/test-roundl.c: Likewise.
35345         * tests/test-safe-alloc.c: Likewise.
35346         * tests/test-sameacls.c: Likewise.
35347         * tests/test-set-mode-acl.c: Likewise.
35348         * tests/test-setenv.c: Likewise.
35349         * tests/test-sigaction.c: Likewise.
35350         * tests/test-signbit.c: Likewise.
35351         * tests/test-sleep.c: Likewise.
35352         * tests/test-snprintf-posix.c: Likewise.
35353         * tests/test-snprintf.c: Likewise.
35354         * tests/test-sprintf-posix.c: Likewise.
35355         * tests/test-stat-time.c: Likewise.
35356         * tests/test-stat.c: Likewise.
35357         * tests/test-strcasestr.c: Likewise.
35358         * tests/test-strchrnul.c: Likewise.
35359         * tests/test-strerror.c: Likewise.
35360         * tests/test-striconv.c: Likewise.
35361         * tests/test-striconveh.c: Likewise.
35362         * tests/test-striconveha.c: Likewise.
35363         * tests/test-strsignal.c: Likewise.
35364         * tests/test-strstr.c: Likewise.
35365         * tests/test-strtod.c: Likewise.
35366         * tests/test-strverscmp.c: Likewise.
35367         * tests/test-symlink.c: Likewise.
35368         * tests/test-symlinkat.c: Likewise.
35369         * tests/test-trunc1.c: Likewise.
35370         * tests/test-trunc2.c: Likewise.
35371         * tests/test-truncf1.c: Likewise.
35372         * tests/test-truncf2.c: Likewise.
35373         * tests/test-truncl.c: Likewise.
35374         * tests/test-uname.c: Likewise.
35375         * tests/test-unlink.c: Likewise.
35376         * tests/test-unlinkat.c: Likewise.
35377         * tests/test-unsetenv.c: Likewise.
35378         * tests/test-usleep.c: Likewise.
35379         * tests/test-utimens.c: Likewise.
35380         * tests/test-utimensat.c: Likewise.
35381         * tests/test-vasnprintf-posix.c: Likewise.
35382         * tests/test-vasnprintf-posix2.c: Likewise.
35383         * tests/test-vasnprintf.c: Likewise.
35384         * tests/test-vasprintf-posix.c: Likewise.
35385         * tests/test-vasprintf.c: Likewise.
35386         * tests/test-vdprintf-posix.c: Likewise.
35387         * tests/test-vfprintf-posix.c: Likewise.
35388         * tests/test-vprintf-posix.c: Likewise.
35389         * tests/test-vsnprintf-posix.c: Likewise.
35390         * tests/test-vsnprintf.c: Likewise.
35391         * tests/test-vsprintf-posix.c: Likewise.
35392         * tests/test-wcrtomb.c: Likewise.
35393         * tests/test-wcsnrtombs.c: Likewise.
35394         * tests/test-wcsrtombs.c: Likewise.
35395         * tests/test-wctype.c: Likewise.
35396         * tests/test-wcwidth.c: Likewise.
35397         * tests/test-xfprintf-posix.c: Likewise.
35398         * tests/test-xmemdup0.c: Likewise.
35399         * tests/test-xprintf-posix.c: Likewise.
35400         * tests/test-xvasprintf.c: Likewise.
35401         * tests/unicase/test-locale-language.c: Likewise.
35402         * tests/unicase/test-mapping-part1.h: Likewise.
35403         * tests/unicase/test-predicate-part1.h: Likewise.
35404         * tests/unicase/test-u8-casecmp.c: Likewise.
35405         * tests/unicase/test-u8-casecoll.c: Likewise.
35406         * tests/unicase/test-u8-casefold.c: Likewise.
35407         * tests/unicase/test-u8-is-cased.c: Likewise.
35408         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35409         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35410         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35411         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35412         * tests/unicase/test-u8-tolower.c: Likewise.
35413         * tests/unicase/test-u8-totitle.c: Likewise.
35414         * tests/unicase/test-u8-toupper.c: Likewise.
35415         * tests/unicase/test-u16-casecmp.c: Likewise.
35416         * tests/unicase/test-u16-casecoll.c: Likewise.
35417         * tests/unicase/test-u16-casefold.c: Likewise.
35418         * tests/unicase/test-u16-is-cased.c: Likewise.
35419         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35420         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35421         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35422         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35423         * tests/unicase/test-u16-tolower.c: Likewise.
35424         * tests/unicase/test-u16-totitle.c: Likewise.
35425         * tests/unicase/test-u16-toupper.c: Likewise.
35426         * tests/unicase/test-u32-casecmp.c: Likewise.
35427         * tests/unicase/test-u32-casecoll.c: Likewise.
35428         * tests/unicase/test-u32-casefold.c: Likewise.
35429         * tests/unicase/test-u32-is-cased.c: Likewise.
35430         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35431         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35432         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35433         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35434         * tests/unicase/test-u32-tolower.c: Likewise.
35435         * tests/unicase/test-u32-totitle.c: Likewise.
35436         * tests/unicase/test-u32-toupper.c: Likewise.
35437         * tests/unicase/test-ulc-casecmp.c: Likewise.
35438         * tests/unicase/test-ulc-casecoll.c: Likewise.
35439         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35440         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35441         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35442         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35443         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35444         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35445         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35446         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35447         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35448         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35449         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35450         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35451         * tests/unictype/test-bidi_byname.c: Likewise.
35452         * tests/unictype/test-bidi_name.c: Likewise.
35453         * tests/unictype/test-bidi_of.c: Likewise.
35454         * tests/unictype/test-bidi_test.c: Likewise.
35455         * tests/unictype/test-block_list.c: Likewise.
35456         * tests/unictype/test-block_of.c: Likewise.
35457         * tests/unictype/test-block_test.c: Likewise.
35458         * tests/unictype/test-categ_and.c: Likewise.
35459         * tests/unictype/test-categ_and_not.c: Likewise.
35460         * tests/unictype/test-categ_byname.c: Likewise.
35461         * tests/unictype/test-categ_name.c: Likewise.
35462         * tests/unictype/test-categ_none.c: Likewise.
35463         * tests/unictype/test-categ_of.c: Likewise.
35464         * tests/unictype/test-categ_or.c: Likewise.
35465         * tests/unictype/test-categ_test_withtable.c: Likewise.
35466         * tests/unictype/test-combining.c: Likewise.
35467         * tests/unictype/test-decdigit.c: Likewise.
35468         * tests/unictype/test-digit.c: Likewise.
35469         * tests/unictype/test-mirror.c: Likewise.
35470         * tests/unictype/test-numeric.c: Likewise.
35471         * tests/unictype/test-pr_byname.c: Likewise.
35472         * tests/unictype/test-pr_test.c: Likewise.
35473         * tests/unictype/test-predicate-part1.h: Likewise.
35474         * tests/unictype/test-scripts.c: Likewise.
35475         * tests/unictype/test-sy_c_ident.c: Likewise.
35476         * tests/unictype/test-sy_java_ident.c: Likewise.
35477         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35478         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35479         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35480         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35481         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35482         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35483         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35484         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35485         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35486         * tests/uninorm/test-compat-decomposition.c: Likewise.
35487         * tests/uninorm/test-composition.c: Likewise.
35488         * tests/uninorm/test-decomposing-form.c: Likewise.
35489         * tests/uninorm/test-decomposition.c: Likewise.
35490         * tests/uninorm/test-u8-nfc.c: Likewise.
35491         * tests/uninorm/test-u8-nfd.c: Likewise.
35492         * tests/uninorm/test-u8-nfkc.c: Likewise.
35493         * tests/uninorm/test-u8-nfkd.c: Likewise.
35494         * tests/uninorm/test-u8-normcmp.c: Likewise.
35495         * tests/uninorm/test-u8-normcoll.c: Likewise.
35496         * tests/uninorm/test-u16-nfc.c: Likewise.
35497         * tests/uninorm/test-u16-nfd.c: Likewise.
35498         * tests/uninorm/test-u16-nfkc.c: Likewise.
35499         * tests/uninorm/test-u16-nfkd.c: Likewise.
35500         * tests/uninorm/test-u16-normcmp.c: Likewise.
35501         * tests/uninorm/test-u16-normcoll.c: Likewise.
35502         * tests/uninorm/test-u32-nfc.c: Likewise.
35503         * tests/uninorm/test-u32-nfd.c: Likewise.
35504         * tests/uninorm/test-u32-nfkc.c: Likewise.
35505         * tests/uninorm/test-u32-nfkd.c: Likewise.
35506         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35507         * tests/uninorm/test-u32-normcmp.c: Likewise.
35508         * tests/uninorm/test-u32-normcoll.c: Likewise.
35509         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35510         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35511         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35512         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35513         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35514         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35515         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35516         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35517         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35518         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35519         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35520         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35521         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35522         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35523         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35524         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35525         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35526         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35527         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35528         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35529         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35530         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35531         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35532         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35533         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35534         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35535         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35536         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35537         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35538         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35539         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35540         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35541         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35542         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35543         * tests/uniwidth/test-u8-width.c: Likewise.
35544         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35545         * tests/uniwidth/test-u16-width.c: Likewise.
35546         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35547         * tests/uniwidth/test-u32-width.c: Likewise.
35548         * tests/uniwidth/test-uc_width.c: Likewise.
35549         * tests/uniwidth/test-uc_width2.c: Likewise.
35550         * modules/acl-tests (Files): Add tests/macros.h.
35551         * modules/areadlink-tests (Files): Likewise.
35552         * modules/areadlink-with-size-tests (Files): Likewise.
35553         * modules/areadlinkat-tests (Files): Likewise.
35554         * modules/areadlinkat-with-size-tests (Files): Likewise.
35555         * modules/argmatch-tests (Files): Likewise.
35556         * modules/argv-iter-tests (Files): Likewise.
35557         * modules/array-list-tests (Files): Likewise.
35558         * modules/array-mergesort-tests (Files): Likewise.
35559         * modules/array-oset-tests (Files): Likewise.
35560         * modules/avltree-list-tests (Files): Likewise.
35561         * modules/avltree-oset-tests (Files): Likewise.
35562         * modules/avltreehash-list-tests (Files): Likewise.
35563         * modules/base64-tests (Files): Likewise.
35564         * modules/binary-io-tests (Files): Likewise.
35565         * modules/bitrotate-tests (Files): Likewise.
35566         * modules/btowc-tests (Files): Likewise.
35567         * modules/byteswap-tests (Files): Likewise.
35568         * modules/c-ctype-tests (Files): Likewise.
35569         * modules/c-stack-tests (Files): Likewise.
35570         * modules/c-strcase-tests (Files): Likewise.
35571         * modules/c-strcasestr-tests (Files): Likewise.
35572         * modules/c-strstr-tests (Files): Likewise.
35573         * modules/canonicalize-lgpl-tests (Files): Likewise.
35574         * modules/canonicalize-tests (Files): Likewise.
35575         * modules/carray-list-tests (Files): Likewise.
35576         * modules/ceilf-tests (Files): Likewise.
35577         * modules/ceill-tests (Files): Likewise.
35578         * modules/chown-tests (Files): Likewise.
35579         * modules/cloexec-tests (Files): Likewise.
35580         * modules/copy-file-tests (Files): Likewise.
35581         * modules/count-one-bits-tests (Files): Likewise.
35582         * modules/dprintf-posix-tests (Files): Likewise.
35583         * modules/dup2-tests (Files): Likewise.
35584         * modules/dup3-tests (Files): Likewise.
35585         * modules/duplocale-tests (Files): Likewise.
35586         * modules/fbufmode-tests (Files): Likewise.
35587         * modules/fchdir-tests (Files): Likewise.
35588         * modules/fcntl-safer-tests (Files): Likewise.
35589         * modules/fcntl-tests (Files): Likewise.
35590         * modules/fdopendir-tests (Files): Likewise.
35591         * modules/fdutimensat-tests (Files): Likewise.
35592         * modules/fflush-tests (Files): Likewise.
35593         * modules/filevercmp-tests (Files): Likewise.
35594         * modules/flock-tests (Files): Likewise.
35595         * modules/floorf-tests (Files): Likewise.
35596         * modules/floorl-tests (Files): Likewise.
35597         * modules/fnmatch-tests (Files): Likewise.
35598         * modules/fopen-safer-tests (Files): Likewise.
35599         * modules/fopen-tests (Files): Likewise.
35600         * modules/fpending-tests (Files): Likewise.
35601         * modules/fprintf-posix-tests (Files): Likewise.
35602         * modules/fpurge-tests (Files): Likewise.
35603         * modules/freadable-tests (Files): Likewise.
35604         * modules/freadahead-tests (Files): Likewise.
35605         * modules/freading-tests (Files): Likewise.
35606         * modules/freadptr-tests (Files): Likewise.
35607         * modules/freadseek-tests (Files): Likewise.
35608         * modules/freopen-tests (Files): Likewise.
35609         * modules/frexp-nolibm-tests (Files): Likewise.
35610         * modules/frexp-tests (Files): Likewise.
35611         * modules/frexpl-nolibm-tests (Files): Likewise.
35612         * modules/frexpl-tests (Files): Likewise.
35613         * modules/fseek-tests (Files): Likewise.
35614         * modules/fseeko-tests (Files): Likewise.
35615         * modules/fstrcmp-tests (Files): Likewise.
35616         * modules/fsync-tests (Files): Likewise.
35617         * modules/ftell-tests (Files): Likewise.
35618         * modules/ftello-tests (Files): Likewise.
35619         * modules/func-tests (Files): Likewise.
35620         * modules/futimens-tests (Files): Likewise.
35621         * modules/fwritable-tests (Files): Likewise.
35622         * modules/fwriting-tests (Files): Likewise.
35623         * modules/getcwd-tests (Files): Likewise.
35624         * modules/getdate-tests (Files): Likewise.
35625         * modules/getdelim-tests (Files): Likewise.
35626         * modules/getdtablesize-tests (Files): Likewise.
35627         * modules/getgroups-tests (Files): Likewise.
35628         * modules/getline-tests (Files): Likewise.
35629         * modules/getndelim2-tests (Files): Likewise.
35630         * modules/glob-tests (Files): Likewise.
35631         * modules/hash-tests (Files): Likewise.
35632         * modules/i-ring-tests (Files): Likewise.
35633         * modules/iconv-tests (Files): Likewise.
35634         * modules/iconv_open-utf-tests (Files): Likewise.
35635         * modules/idpriv-drop-tests (Files): Likewise.
35636         * modules/idpriv-droptemp-tests (Files): Likewise.
35637         * modules/inet_ntop-tests (Files): Likewise.
35638         * modules/inet_pton-tests (Files): Likewise.
35639         * modules/isblank-tests (Files): Likewise.
35640         * modules/isfinite-tests (Files): Likewise.
35641         * modules/isinf-tests (Files): Likewise.
35642         * modules/isnan-tests (Files): Likewise.
35643         * modules/isnand-nolibm-tests (Files): Likewise.
35644         * modules/isnand-tests (Files): Likewise.
35645         * modules/isnanf-nolibm-tests (Files): Likewise.
35646         * modules/isnanf-tests (Files): Likewise.
35647         * modules/isnanl-nolibm-tests (Files): Likewise.
35648         * modules/isnanl-tests (Files): Likewise.
35649         * modules/lchown-tests (Files): Likewise.
35650         * modules/ldexpl-tests (Files): Likewise.
35651         * modules/link-tests (Files): Likewise.
35652         * modules/linkat-tests (Files): Likewise.
35653         * modules/linked-list-tests (Files): Likewise.
35654         * modules/linkedhash-list-tests (Files): Likewise.
35655         * modules/localename-tests (Files): Likewise.
35656         * modules/lseek-tests (Files): Likewise.
35657         * modules/lstat-tests (Files): Likewise.
35658         * modules/mbmemcasecmp-tests (Files): Likewise.
35659         * modules/mbmemcasecoll-tests (Files): Likewise.
35660         * modules/mbrtowc-tests (Files): Likewise.
35661         * modules/mbscasecmp-tests (Files): Likewise.
35662         * modules/mbscasestr-tests (Files): Likewise.
35663         * modules/mbschr-tests (Files): Likewise.
35664         * modules/mbscspn-tests (Files): Likewise.
35665         * modules/mbsinit-tests (Files): Likewise.
35666         * modules/mbsncasecmp-tests (Files): Likewise.
35667         * modules/mbsnrtowcs-tests (Files): Likewise.
35668         * modules/mbspbrk-tests (Files): Likewise.
35669         * modules/mbspcasecmp-tests (Files): Likewise.
35670         * modules/mbsrchr-tests (Files): Likewise.
35671         * modules/mbsrtowcs-tests (Files): Likewise.
35672         * modules/mbsspn-tests (Files): Likewise.
35673         * modules/mbsstr-tests (Files): Likewise.
35674         * modules/memchr-tests (Files): Likewise.
35675         * modules/memchr2-tests (Files): Likewise.
35676         * modules/memcmp-tests (Files): Likewise.
35677         * modules/memmem-tests (Files): Likewise.
35678         * modules/memrchr-tests (Files): Likewise.
35679         * modules/mkdir-tests (Files): Likewise.
35680         * modules/mkfifo-tests (Files): Likewise.
35681         * modules/mkfifoat-tests (Files): Likewise.
35682         * modules/mknod-tests (Files): Likewise.
35683         * modules/nanosleep-tests (Files): Likewise.
35684         * modules/nl_langinfo-tests (Files): Likewise.
35685         * modules/obstack-printf-tests (Files): Likewise.
35686         * modules/open-tests (Files): Likewise.
35687         * modules/openat-tests (Files): Likewise.
35688         * modules/pipe-filter-gi-tests (Files): Likewise.
35689         * modules/pipe-filter-ii-tests (Files): Likewise.
35690         * modules/pipe2-tests (Files): Likewise.
35691         * modules/popen-safer-tests (Files): Likewise.
35692         * modules/popen-tests (Files): Likewise.
35693         * modules/posixtm-tests (Files): Likewise.
35694         * modules/pread-tests (Files): Likewise.
35695         * modules/printf-frexp-tests (Files): Likewise.
35696         * modules/printf-frexpl-tests (Files): Likewise.
35697         * modules/printf-posix-tests (Files): Likewise.
35698         * modules/priv-set-tests (Files): Likewise.
35699         * modules/quotearg-tests (Files): Likewise.
35700         * modules/random_r-tests (Files): Likewise.
35701         * modules/rawmemchr-tests (Files): Likewise.
35702         * modules/rbtree-list-tests (Files): Likewise.
35703         * modules/rbtree-oset-tests (Files): Likewise.
35704         * modules/rbtreehash-list-tests (Files): Likewise.
35705         * modules/readlink-tests (Files): Likewise.
35706         * modules/remove-tests (Files): Likewise.
35707         * modules/rename-tests (Files): Likewise.
35708         * modules/renameat-tests (Files): Likewise.
35709         * modules/rmdir-tests (Files): Likewise.
35710         * modules/round-tests (Files): Likewise.
35711         * modules/roundf-tests (Files): Likewise.
35712         * modules/roundl-tests (Files): Likewise.
35713         * modules/safe-alloc-tests (Files): Likewise.
35714         * modules/setenv-tests (Files): Likewise.
35715         * modules/sigaction-tests (Files): Likewise.
35716         * modules/signbit-tests (Files): Likewise.
35717         * modules/sleep-tests (Files): Likewise.
35718         * modules/snprintf-posix-tests (Files): Likewise.
35719         * modules/snprintf-tests (Files): Likewise.
35720         * modules/sprintf-posix-tests (Files): Likewise.
35721         * modules/stat-tests (Files): Likewise.
35722         * modules/stat-time-tests (Files): Likewise.
35723         * modules/strcasestr-tests (Files): Likewise.
35724         * modules/strchrnul-tests (Files): Likewise.
35725         * modules/strerror-tests (Files): Likewise.
35726         * modules/striconv-tests (Files): Likewise.
35727         * modules/striconveh-tests (Files): Likewise.
35728         * modules/striconveha-tests (Files): Likewise.
35729         * modules/strsignal-tests (Files): Likewise.
35730         * modules/strstr-tests (Files): Likewise.
35731         * modules/strtod-tests (Files): Likewise.
35732         * modules/strverscmp-tests (Files): Likewise.
35733         * modules/symlink-tests (Files): Likewise.
35734         * modules/symlinkat-tests (Files): Likewise.
35735         * modules/trunc-tests (Files): Likewise.
35736         * modules/truncf-tests (Files): Likewise.
35737         * modules/truncl-tests (Files): Likewise.
35738         * modules/uname-tests (Files): Likewise.
35739         * modules/unicase/cased-tests (Files): Likewise.
35740         * modules/unicase/ignorable-tests (Files): Likewise.
35741         * modules/unicase/locale-language-tests (Files): Likewise.
35742         * modules/unicase/tolower-tests (Files): Likewise.
35743         * modules/unicase/totitle-tests (Files): Likewise.
35744         * modules/unicase/toupper-tests (Files): Likewise.
35745         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35746         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35747         * modules/unicase/u8-casefold-tests (Files): Likewise.
35748         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35749         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35750         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35751         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35752         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35753         * modules/unicase/u8-tolower-tests (Files): Likewise.
35754         * modules/unicase/u8-totitle-tests (Files): Likewise.
35755         * modules/unicase/u8-toupper-tests (Files): Likewise.
35756         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35757         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35758         * modules/unicase/u16-casefold-tests (Files): Likewise.
35759         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35760         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35761         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35762         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35763         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35764         * modules/unicase/u16-tolower-tests (Files): Likewise.
35765         * modules/unicase/u16-totitle-tests (Files): Likewise.
35766         * modules/unicase/u16-toupper-tests (Files): Likewise.
35767         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35768         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35769         * modules/unicase/u32-casefold-tests (Files): Likewise.
35770         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35771         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35772         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35773         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35774         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35775         * modules/unicase/u32-tolower-tests (Files): Likewise.
35776         * modules/unicase/u32-totitle-tests (Files): Likewise.
35777         * modules/unicase/u32-toupper-tests (Files): Likewise.
35778         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35779         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35780         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35781         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35782         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35783         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35784         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35785         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35786         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35787         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35788         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35789         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35790         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35791         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35792         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35793         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35794         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35795         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35796         * modules/unictype/block-list-tests (Files): Likewise.
35797         * modules/unictype/block-of-tests (Files): Likewise.
35798         * modules/unictype/block-test-tests (Files): Likewise.
35799         * modules/unictype/category-C-tests (Files): Likewise.
35800         * modules/unictype/category-Cc-tests (Files): Likewise.
35801         * modules/unictype/category-Cf-tests (Files): Likewise.
35802         * modules/unictype/category-Cn-tests (Files): Likewise.
35803         * modules/unictype/category-Co-tests (Files): Likewise.
35804         * modules/unictype/category-Cs-tests (Files): Likewise.
35805         * modules/unictype/category-L-tests (Files): Likewise.
35806         * modules/unictype/category-Ll-tests (Files): Likewise.
35807         * modules/unictype/category-Lm-tests (Files): Likewise.
35808         * modules/unictype/category-Lo-tests (Files): Likewise.
35809         * modules/unictype/category-Lt-tests (Files): Likewise.
35810         * modules/unictype/category-Lu-tests (Files): Likewise.
35811         * modules/unictype/category-M-tests (Files): Likewise.
35812         * modules/unictype/category-Mc-tests (Files): Likewise.
35813         * modules/unictype/category-Me-tests (Files): Likewise.
35814         * modules/unictype/category-Mn-tests (Files): Likewise.
35815         * modules/unictype/category-N-tests (Files): Likewise.
35816         * modules/unictype/category-Nd-tests (Files): Likewise.
35817         * modules/unictype/category-Nl-tests (Files): Likewise.
35818         * modules/unictype/category-No-tests (Files): Likewise.
35819         * modules/unictype/category-P-tests (Files): Likewise.
35820         * modules/unictype/category-Pc-tests (Files): Likewise.
35821         * modules/unictype/category-Pd-tests (Files): Likewise.
35822         * modules/unictype/category-Pe-tests (Files): Likewise.
35823         * modules/unictype/category-Pf-tests (Files): Likewise.
35824         * modules/unictype/category-Pi-tests (Files): Likewise.
35825         * modules/unictype/category-Po-tests (Files): Likewise.
35826         * modules/unictype/category-Ps-tests (Files): Likewise.
35827         * modules/unictype/category-S-tests (Files): Likewise.
35828         * modules/unictype/category-Sc-tests (Files): Likewise.
35829         * modules/unictype/category-Sk-tests (Files): Likewise.
35830         * modules/unictype/category-Sm-tests (Files): Likewise.
35831         * modules/unictype/category-So-tests (Files): Likewise.
35832         * modules/unictype/category-Z-tests (Files): Likewise.
35833         * modules/unictype/category-Zl-tests (Files): Likewise.
35834         * modules/unictype/category-Zp-tests (Files): Likewise.
35835         * modules/unictype/category-Zs-tests (Files): Likewise.
35836         * modules/unictype/category-and-not-tests (Files): Likewise.
35837         * modules/unictype/category-and-tests (Files): Likewise.
35838         * modules/unictype/category-byname-tests (Files): Likewise.
35839         * modules/unictype/category-name-tests (Files): Likewise.
35840         * modules/unictype/category-none-tests (Files): Likewise.
35841         * modules/unictype/category-of-tests (Files): Likewise.
35842         * modules/unictype/category-or-tests (Files): Likewise.
35843         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35844         * modules/unictype/combining-class-tests (Files): Likewise.
35845         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35846         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35847         * modules/unictype/ctype-blank-tests (Files): Likewise.
35848         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35849         * modules/unictype/ctype-digit-tests (Files): Likewise.
35850         * modules/unictype/ctype-graph-tests (Files): Likewise.
35851         * modules/unictype/ctype-lower-tests (Files): Likewise.
35852         * modules/unictype/ctype-print-tests (Files): Likewise.
35853         * modules/unictype/ctype-punct-tests (Files): Likewise.
35854         * modules/unictype/ctype-space-tests (Files): Likewise.
35855         * modules/unictype/ctype-upper-tests (Files): Likewise.
35856         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35857         * modules/unictype/decimal-digit-tests (Files): Likewise.
35858         * modules/unictype/digit-tests (Files): Likewise.
35859         * modules/unictype/mirror-tests (Files): Likewise.
35860         * modules/unictype/numeric-tests (Files): Likewise.
35861         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35862         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35863         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35864         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35865         Likewise.
35866         * modules/unictype/property-bidi-block-separator-tests (Files):
35867         Likewise.
35868         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35869         Likewise.
35870         * modules/unictype/property-bidi-common-separator-tests (Files):
35871         Likewise.
35872         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35873         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35874         Likewise.
35875         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35876         Likewise.
35877         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35878         Likewise.
35879         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35880         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35881         Likewise.
35882         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35883         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35884         Likewise.
35885         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35886         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35887         * modules/unictype/property-bidi-segment-separator-tests (Files):
35888         Likewise.
35889         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35890         * modules/unictype/property-byname-tests (Files): Likewise.
35891         * modules/unictype/property-combining-tests (Files): Likewise.
35892         * modules/unictype/property-composite-tests (Files): Likewise.
35893         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35894         * modules/unictype/property-dash-tests (Files): Likewise.
35895         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35896         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35897         Likewise.
35898         * modules/unictype/property-deprecated-tests (Files): Likewise.
35899         * modules/unictype/property-diacritic-tests (Files): Likewise.
35900         * modules/unictype/property-extender-tests (Files): Likewise.
35901         * modules/unictype/property-format-control-tests (Files): Likewise.
35902         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35903         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35904         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35905         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35906         * modules/unictype/property-hyphen-tests (Files): Likewise.
35907         * modules/unictype/property-id-continue-tests (Files): Likewise.
35908         * modules/unictype/property-id-start-tests (Files): Likewise.
35909         * modules/unictype/property-ideographic-tests (Files): Likewise.
35910         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35911         * modules/unictype/property-ids-trinary-operator-tests (Files):
35912         Likewise.
35913         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35914         * modules/unictype/property-iso-control-tests (Files): Likewise.
35915         * modules/unictype/property-join-control-tests (Files): Likewise.
35916         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35917         * modules/unictype/property-line-separator-tests (Files): Likewise.
35918         * modules/unictype/property-logical-order-exception-tests (Files):
35919         Likewise.
35920         * modules/unictype/property-lowercase-tests (Files): Likewise.
35921         * modules/unictype/property-math-tests (Files): Likewise.
35922         * modules/unictype/property-non-break-tests (Files): Likewise.
35923         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35924         * modules/unictype/property-numeric-tests (Files): Likewise.
35925         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35926         * modules/unictype/property-other-default-ignorable-code-point-tests
35927         (Files): Likewise.
35928         * modules/unictype/property-other-grapheme-extend-tests (Files):
35929         Likewise.
35930         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35931         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35932         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35933         * modules/unictype/property-other-math-tests (Files): Likewise.
35934         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35935         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35936         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35937         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35938         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35939         * modules/unictype/property-private-use-tests (Files): Likewise.
35940         * modules/unictype/property-punctuation-tests (Files): Likewise.
35941         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35942         * modules/unictype/property-radical-tests (Files): Likewise.
35943         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35944         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35945         * modules/unictype/property-space-tests (Files): Likewise.
35946         * modules/unictype/property-terminal-punctuation-tests (Files):
35947         Likewise.
35948         * modules/unictype/property-test-tests (Files): Likewise.
35949         * modules/unictype/property-titlecase-tests (Files): Likewise.
35950         * modules/unictype/property-unassigned-code-value-tests (Files):
35951         Likewise.
35952         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35953         * modules/unictype/property-uppercase-tests (Files): Likewise.
35954         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35955         * modules/unictype/property-white-space-tests (Files): Likewise.
35956         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35957         * modules/unictype/property-xid-start-tests (Files): Likewise.
35958         * modules/unictype/property-zero-width-tests (Files): Likewise.
35959         * modules/unictype/scripts-tests (Files): Likewise.
35960         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35961         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35962         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35963         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35964         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35965         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35966         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35967         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35968         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35969         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35970         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35971         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35972         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35973         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35974         * modules/uninorm/composition-tests (Files): Likewise.
35975         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35976         * modules/uninorm/decomposition-tests (Files): Likewise.
35977         * modules/uninorm/filter-tests (Files): Likewise.
35978         * modules/uninorm/nfc-tests (Files): Likewise.
35979         * modules/uninorm/nfd-tests (Files): Likewise.
35980         * modules/uninorm/nfkc-tests (Files): Likewise.
35981         * modules/uninorm/nfkd-tests (Files): Likewise.
35982         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35983         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35984         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35985         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35986         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35987         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35988         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35989         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35990         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35991         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35992         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35993         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35994         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35995         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35996         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35997         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35998         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35999         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36000         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36001         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36002         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36003         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36004         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36005         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36006         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36007         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36008         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36009         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36010         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36011         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36012         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36013         * modules/uniwidth/u8-width-tests (Files): Likewise.
36014         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36015         * modules/uniwidth/u16-width-tests (Files): Likewise.
36016         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36017         * modules/uniwidth/u32-width-tests (Files): Likewise.
36018         * modules/uniwidth/width-tests (Files): Likewise.
36019         * modules/unlink-tests (Files): Likewise.
36020         * modules/unsetenv-tests (Files): Likewise.
36021         * modules/usleep-tests (Files): Likewise.
36022         * modules/utimens-tests (Files): Likewise.
36023         * modules/utimensat-tests (Files): Likewise.
36024         * modules/vasnprintf-posix-tests (Files): Likewise.
36025         * modules/vasnprintf-tests (Files): Likewise.
36026         * modules/vasprintf-posix-tests (Files): Likewise.
36027         * modules/vasprintf-tests (Files): Likewise.
36028         * modules/vdprintf-posix-tests (Files): Likewise.
36029         * modules/vfprintf-posix-tests (Files): Likewise.
36030         * modules/vprintf-posix-tests (Files): Likewise.
36031         * modules/vsnprintf-posix-tests (Files): Likewise.
36032         * modules/vsnprintf-tests (Files): Likewise.
36033         * modules/vsprintf-posix-tests (Files): Likewise.
36034         * modules/wcrtomb-tests (Files): Likewise.
36035         * modules/wcsnrtombs-tests (Files): Likewise.
36036         * modules/wcsrtombs-tests (Files): Likewise.
36037         * modules/wctype-tests (Files): Likewise.
36038         * modules/wcwidth-tests (Files): Likewise.
36039         * modules/xmemdup0-tests (Files): Likewise.
36040         * modules/xprintf-posix-tests (Files): Likewise.
36041         * modules/xvasprintf-tests (Files): Likewise.
36042
36043 2009-12-24  Eric Blake  <ebb9@byu.net>
36044
36045         test-nanosleep: fix typo
36046         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36047         patch.
36048         Reported by Bruno Haible.
36049
36050 2009-12-24  Bruno Haible  <bruno@clisp.org>
36051
36052         Reduce namespace pollution on glibc systems.
36053         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36054         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36055         systems.
36056         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36057         <getopt.h> on glibc systems.
36058         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36059         systems.
36060         * lib/fcntl.c: Include <unistd.h> here instead.
36061
36062 2009-12-24  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36065
36066 2009-12-24  Eric Blake  <ebb9@byu.net>
36067
36068         tests: add signature checks
36069         * tests/signature.h (SIGNATURE_CHECK): New file.
36070         * modules/atexit-tests (Files): Use it.
36071         * modules/btowc-tests (Files): Likewise.
36072         * modules/canonicalize-lgpl-tests (Files): Likewise.
36073         * modules/ceilf-tests (Files): Likewise.
36074         * modules/ceill-tests (Files): Likewise.
36075         * modules/chown-tests (Files): Likewise.
36076         * modules/dprintf-posix-tests (Files): Likewise.
36077         * modules/dup2-tests (Files): Likewise.
36078         * modules/dup3-tests (Files): Likewise.
36079         * modules/duplocale-tests (Files): Likewise.
36080         * modules/fchdir-tests (Files): Likewise.
36081         * modules/fcntl-tests (Files): Likewise.
36082         * modules/fdopendir-tests (Files): Likewise.
36083         * modules/fflush-tests (Files): Likewise.
36084         * modules/flock-tests (Files): Likewise.
36085         * modules/floorf-tests (Files): Likewise.
36086         * modules/floorl-tests (Files): Likewise.
36087         * modules/fnmatch-tests (Files): Likewise.
36088         * modules/fopen-tests (Files): Likewise.
36089         * modules/fprintf-posix-tests (Files): Likewise.
36090         * modules/freopen-tests (Files): Likewise.
36091         * modules/frexp-nolibm-tests (Files): Likewise.
36092         * modules/frexp-tests (Files): Likewise.
36093         * modules/frexpl-nolibm-tests (Files): Likewise.
36094         * modules/frexpl-tests (Files): Likewise.
36095         * modules/fseek-tests (Files): Likewise.
36096         * modules/fseeko-tests (Files): Likewise.
36097         * modules/fsync-tests (Files): Likewise.
36098         * modules/ftell-tests (Files): Likewise.
36099         * modules/ftello-tests (Files): Likewise.
36100         * modules/futimens-tests (Files): Likewise.
36101         * modules/getaddrinfo-tests (Files): Likewise.
36102         * modules/getcwd-tests (Files): Likewise.
36103         * modules/getdelim-tests (Files): Likewise.
36104         * modules/getdtablesize-tests (Files): Likewise.
36105         * modules/getgroups-tests (Files): Likewise.
36106         * modules/gethostname-tests (Files): Likewise.
36107         * modules/getline-tests (Files): Likewise.
36108         * modules/getopt-posix-tests (Files): Likewise.
36109         * modules/gettimeofday-tests (Files): Likewise.
36110         * modules/glob-tests (Files): Likewise.
36111         * modules/iconv-tests (Files): Likewise.
36112         * modules/inet_ntop-tests (Files): Likewise.
36113         * modules/inet_pton-tests (Files): Likewise.
36114         * modules/isblank-tests (Files): Likewise.
36115         * modules/lchown-tests (Files): Likewise.
36116         * modules/ldexpl-tests (Files): Likewise.
36117         * modules/link-tests (Files): Likewise.
36118         * modules/linkat-tests (Files): Likewise.
36119         * modules/lseek-tests (Files): Likewise.
36120         * modules/lstat-tests (Files): Likewise.
36121         * modules/mbrtowc-tests (Files): Likewise.
36122         * modules/mbsinit-tests (Files): Likewise.
36123         * modules/mbsnrtowcs-tests (Files): Likewise.
36124         * modules/mbsrtowcs-tests (Files): Likewise.
36125         * modules/memchr-tests (Files): Likewise.
36126         * modules/memcmp-tests (Files): Likewise.
36127         * modules/memmem-tests (Files): Likewise.
36128         * modules/memrchr-tests (Files): Likewise.
36129         * modules/mkdir-tests (Files): Likewise.
36130         * modules/mkfifo-tests (Files): Likewise.
36131         * modules/mkfifoat-tests (Files): Likewise.
36132         * modules/mknod-tests (Files): Likewise.
36133         * modules/nanosleep-tests (Files): Likewise.
36134         * modules/nl_langinfo-tests (Files): Likewise.
36135         * modules/obstack-printf-tests (Files): Likewise.
36136         * modules/open-tests (Files): Likewise.
36137         * modules/openat-tests (Files): Likewise.
36138         * modules/perror-tests (Files): Likewise.
36139         * modules/pipe2-tests (Files): Likewise.
36140         * modules/poll-tests (Files): Likewise.
36141         * modules/popen-tests (Files): Likewise.
36142         * modules/posix_spawn-tests (Files): Likewise.
36143         * modules/posix_spawnp-tests (Files): Likewise.
36144         * modules/pread-tests (Files): Likewise.
36145         * modules/printf-posix-tests (Files): Likewise.
36146         * modules/pty-tests (Files): Likewise.
36147         * modules/random_r-tests (Files): Likewise.
36148         * modules/rawmemchr-tests (Files): Likewise.
36149         * modules/readlink-tests (Files): Likewise.
36150         * modules/remove-tests (Files): Likewise.
36151         * modules/rename-tests (Files): Likewise.
36152         * modules/renameat-tests (Files): Likewise.
36153         * modules/rmdir-tests (Files): Likewise.
36154         * modules/round-tests (Files): Likewise.
36155         * modules/roundf-tests (Files): Likewise.
36156         * modules/roundl-tests (Files): Likewise.
36157         * modules/select-tests (Files): Likewise.
36158         * modules/setenv-tests (Files): Likewise.
36159         * modules/sigaction-tests (Files): Likewise.
36160         * modules/sleep-tests (Files): Likewise.
36161         * modules/snprintf-posix-tests (Files): Likewise.
36162         * modules/snprintf-tests (Files): Likewise.
36163         * modules/sprintf-posix-tests (Files): Likewise.
36164         * modules/stat-tests (Files): Likewise.
36165         * modules/strcasestr-tests (Files): Likewise.
36166         * modules/strchrnul-tests (Files): Likewise.
36167         * modules/strerror-tests (Files): Likewise.
36168         * modules/strsignal-tests (Files): Likewise.
36169         * modules/strstr-tests (Files): Likewise.
36170         * modules/strtod-tests (Files): Likewise.
36171         * modules/strverscmp-tests (Files): Likewise.
36172         * modules/symlink-tests (Files): Likewise.
36173         * modules/symlinkat-tests (Files): Likewise.
36174         * modules/times-tests (Files): Likewise.
36175         * modules/trunc-tests (Files): Likewise.
36176         * modules/truncf-tests (Files): Likewise.
36177         * modules/truncl-tests (Files): Likewise.
36178         * modules/tsearch-tests (Files): Likewise.
36179         * modules/uname-tests (Files): Likewise.
36180         * modules/unlink-tests (Files): Likewise.
36181         * modules/unsetenv-tests (Files): Likewise.
36182         * modules/usleep-tests (Files): Likewise.
36183         * modules/utimensat-tests (Files): Likewise.
36184         * modules/vasprintf-tests (Files): Likewise.
36185         * modules/vdprintf-posix-tests (Files): Likewise.
36186         * modules/vfprintf-posix-tests (Files): Likewise.
36187         * modules/vprintf-posix-tests (Files): Likewise.
36188         * modules/vsnprintf-posix-tests (Files): Likewise.
36189         * modules/vsnprintf-tests (Files): Likewise.
36190         * modules/vsprintf-posix-tests (Files): Likewise.
36191         * modules/wcrtomb-tests (Files): Likewise.
36192         * modules/wcsnrtombs-tests (Files): Likewise.
36193         * modules/wcsrtombs-tests (Files): Likewise.
36194         * modules/wcwidth-tests (Files): Likewise.
36195         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36196         * tests/test-isinf.c (isinf): Likewise.
36197         * tests/test-isnan.c (isnan): Likewise.
36198         * tests/test-signbit.c (signbit): Likewise.
36199         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36200         declaration, either as macro or with correct signature.
36201         (select): Ensure function under test is declared with correct
36202         signature in correct header.
36203         * tests/test-atexit.c (atexit): Likewise.
36204         * tests/test-btowc.c (btowc): Likewise.
36205         * tests/test-canonicalize-lgpl.c (realpath)
36206         (canonicalize_file_name): Likewise.
36207         * tests/test-ceilf1.c (ceilf): Likewise.
36208         * tests/test-ceill.c (ceill): Likewise.
36209         * tests/test-chown.c (chown): Likewise.
36210         * tests/test-dprintf-posix.c (dprintf): Likewise.
36211         * tests/test-dup2.c (dup2): Likewise.
36212         * tests/test-dup3.c (dup3): Likewise.
36213         * tests/test-duplocale.c (duplocale): Likewise.
36214         * tests/test-fchdir.c (fchdir): Likewise.
36215         * tests/test-fchownat.c (fchownat): Likewise.
36216         * tests/test-fcntl.c (fcntl): Likewise.
36217         * tests/test-fdopendir.c (fdopendir): Likewise.
36218         * tests/test-fflush.c (fflush): Likewise.
36219         * tests/test-flock.c (flock): Likewise.
36220         * tests/test-floorf1.c (floorf): Likewise.
36221         * tests/test-floorl.c (floorl): Likewise.
36222         * tests/test-fnmatch.c (fnmatch): Likewise.
36223         * tests/test-fopen.c (fopen): Likewise.
36224         * tests/test-fprintf-posix.c (fprintf): Likewise.
36225         * tests/test-freopen.c (freopen): Likewise.
36226         * tests/test-frexp.c (frexp): Likewise.
36227         * tests/test-frexpl.c (frexpl): Likewise.
36228         * tests/test-fseek.c (fseek): Likewise.
36229         * tests/test-fseeko.c (fseeko): Likewise.
36230         * tests/test-fstatat.c (fstatat): Likewise.
36231         * tests/test-fsync.c (fsync): Likewise.
36232         * tests/test-ftell.c (ftell): Likewise.
36233         * tests/test-ftello.c (ftello): Likewise.
36234         * tests/test-futimens.c (futimens): Likewise.
36235         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36236         (gai_strerror): Likewise.
36237         * tests/test-getcwd.c (getcwd): Likewise.
36238         * tests/test-getdelim.c (getdelim): Likewise.
36239         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36240         * tests/test-getgroups.c (getgroups): Likewise.
36241         * tests/test-gethostname.c (gethostname): Likewise.
36242         * tests/test-getline.c (getline): Likewise.
36243         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36244         Likewise.
36245         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36246         * tests/test-glob.c (glob, globfree): Likewise.
36247         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36248         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36249         * tests/test-inet_pton.c (inet_pton): Likewise.
36250         * tests/test-isblank.c (isblank): Likewise.
36251         * tests/test-lchown.c (lchown): Likewise.
36252         * tests/test-ldexpl.c (ldexpl): Likewise.
36253         * tests/test-link.c (link): Likewise.
36254         * tests/test-linkat.c (linkat): Likewise.
36255         * tests/test-lseek.c (lseek): Likewise.
36256         * tests/test-lstat.c (lstat): Likewise.
36257         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36258         * tests/test-mbsinit.c (mbsinit): Likewise.
36259         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36260         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36261         * tests/test-memchr.c (memchr): Likewise.
36262         * tests/test-memcmp.c (memcmp): Likewise.
36263         * tests/test-memmem.c (memmem): Likewise.
36264         * tests/test-memrchr.c (memrchr): Likewise.
36265         * tests/test-mkdir.c (mkdir): Likewise.
36266         * tests/test-mkdirat.c (mkdirat): Likewise.
36267         * tests/test-mkfifo.c (mkfifo): Likewise.
36268         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36269         * tests/test-mknod.c (mknod): Likewise.
36270         * tests/test-nanosleep.c (nanosleep): Likewise.
36271         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36272         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36273         Likewise.
36274         * tests/test-open.c (open): Likewise.
36275         * tests/test-openat.c (openat): Likewise.
36276         * tests/test-perror.c (perror): Likewise.
36277         * tests/test-pipe2.c (pipe2): Likewise.
36278         * tests/test-poll.c (poll): Likewise.
36279         * tests/test-popen.c (popen, pclose): Likewise.
36280         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36281         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36282         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36283         (posix_spawn_file_actions_destroy)
36284         (posix_spawn_file_actions_addclose)
36285         (posix_spawn_file_actions_addopen)
36286         (posix_spawn_file_actions_adddup2): Likewise.
36287         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36288         * tests/test-pread.c (pread): Likewise.
36289         * tests/test-printf-posix.c (printf): Likewise.
36290         * tests/test-pty.c (openpty, forkpty): Likewise.
36291         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36292         (random_r): Likewise.
36293         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36294         * tests/test-readlink.c (readlink): Likewise.
36295         * tests/test-remove.c (remove): Likewise.
36296         * tests/test-rename.c (rename): Likewise.
36297         * tests/test-renameat.c (renameat): Likewise.
36298         * tests/test-rmdir.c (rmdir): Likewise.
36299         * tests/test-round1.c (round): Likewise.
36300         * tests/test-roundf1.c (roundf): Likewise.
36301         * tests/test-roundl.c (roundl): Likewise.
36302         * tests/test-setenv.c (setenv): Likewise.
36303         * tests/test-sigaction.c (sigaction): Likewise.
36304         * tests/test-sleep.c (sleep): Likewise.
36305         * tests/test-snprintf.c (snprintf): Likewise.
36306         * tests/test-sprintf-posix.c (sprintf): Likewise.
36307         * tests/test-stat.c (stat): Likewise.
36308         * tests/test-stpncpy.c (stpncpy): Likewise.
36309         * tests/test-strcasestr.c (strcasestr): Likewise.
36310         * tests/test-strchrnul.c (strchrnul): Likewise.
36311         * tests/test-strerror.c (strerror): Likewise.
36312         * tests/test-strsignal.c (strsignal): Likewise.
36313         * tests/test-strstr.c (strstr): Likewise.
36314         * tests/test-strtod.c (strtod): Likewise.
36315         * tests/test-strverscmp.c (strverscmp): Likewise.
36316         * tests/test-symlink.c (symlink): Likewise.
36317         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36318         * tests/test-times.c (times): Likewise.
36319         * tests/test-trunc1.c (trunc): Likewise.
36320         * tests/test-truncf1.c (truncf): Likewise.
36321         * tests/test-truncl.c (truncl): Likewise.
36322         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36323         Likewise.
36324         * tests/test-uname.c (uname): Likewise.
36325         * tests/test-unlink.c (unlink): Likewise.
36326         * tests/test-unlinkat.c (unlinkat): Likewise.
36327         * tests/test-unsetenv.c (unsetenv): Likewise.
36328         * tests/test-usleep.c (usleep): Likewise.
36329         * tests/test-utimensat.c (utimensat): Likewise.
36330         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36331         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36332         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36333         * tests/test-vprintf-posix.c (vprintf): Likewise.
36334         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36335         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36336         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36337         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36338         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36339         * tests/test-wcwidth.c (wcwidth): Likewise.
36340
36341         build: pull in conditional headers during GNULIB_POSIXCHECK
36342         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36343         definitions from any conditionally-included headers.
36344         * lib/stdlib.in.h (includes): Likewise.
36345         * lib/unistd.in.h (includes): Likewise.
36346
36347 2009-12-24  Bruno Haible  <bruno@clisp.org>
36348
36349         * tests/test-argv-iter.c: Include header file being tested immediately
36350         after config.h.
36351         * tests/test-base64.c: Likewise.
36352         * tests/test-flock.c: Likewise.
36353         * tests/test-fsync.c: Likewise.
36354         * tests/test-getdate.c: Likewise.
36355         * tests/test-getndelim2.c: Likewise.
36356         * tests/test-isfinite.c: Likewise.
36357         * tests/test-isinf.c: Likewise.
36358         * tests/test-strerror.c: Likewise.
36359         * tests/test-strsignal.c: Likewise.
36360
36361 2009-12-23  Eric Blake  <ebb9@byu.net>
36362
36363         unistd: work around cygwin bug
36364         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36365         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36366         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36367
36368 2009-12-23  Bruno Haible  <bruno@clisp.org>
36369
36370         localename: More tests.
36371         * tests/test-localename.c (SIZEOF): New macro.
36372         (categories): New variable.
36373         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36374         test_locale_name_default): Add test w.r.t. thread locale.
36375         (test_locale_name_thread): New function.
36376         (main): Invoke it.
36377
36378         localename: Make aware of thread locale.
36379         * lib/localename.h (gl_locale_name_thread): New declaration.
36380         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36381         behaviour with respect to thread locale.
36382         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36383         <langinfo.h>, glthread/lock.h.
36384         (SIZE_BITS): New macro.
36385         (string_hash): New function.
36386         (struct hash_node): New type.
36387         (HASH_TABLE_SIZE): New macro.
36388         (struniq_hash_table, struniq_lock): New variables.
36389         (struniq): New function.
36390         (gl_locale_name_thread): New function.
36391         (gl_locale_name): Invoke it.
36392         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36393         * modules/localename (Depends-on): Add lock.
36394         Reported by Mike Gran <spk121@yahoo.com>.
36395
36396 2009-12-23  Eric Blake  <ebb9@byu.net>
36397
36398         va-args: new module
36399         * modules/va-args: New file.
36400         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36401         * MODULES.html.sh (Core language properties): Mention it.
36402
36403         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36404         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36405         named alias for __attribute__((__unused__)).
36406         * lib/chown.c: Update client.
36407         * lib/fchmodat.c: Likewise.
36408         * lib/fts.c: Likewise.
36409         * lib/getdate.y: Likewise.
36410         * lib/getgroups.c: Likewise.
36411         * lib/getopt.c: Likewise.
36412         * lib/getugroups.c: Likewise.
36413         * lib/mkdir.c: Likewise.
36414         * lib/mkfifo.c: Likewise.
36415         * lib/mkfifoat.c: Likewise.
36416         * lib/mknod.c: Likewise.
36417         * lib/mknodat.c: Likewise.
36418         * lib/readlink.c: Likewise.
36419         * lib/se-context.in.h: Likewise.
36420         * lib/se-selinux.in.h: Likewise.
36421         * lib/sockets.c: Likewise.
36422         * lib/symlink.c: Likewise.
36423         * lib/symlinkat.c: Likewise.
36424         * lib/unicodeio.c: Likewise.
36425         * lib/unistr.h: Likewise.
36426         * tests/test-areadlink.c: Likewise.
36427         * tests/test-areadlinkat.c: Likewise.
36428         * tests/test-filenamecat.c: Likewise.
36429         * tests/test-fseeko.c: Likewise.
36430         * tests/test-ftello.c: Likewise.
36431         * tests/test-getdate.c: Likewise.
36432         * tests/test-getgroups.c: Likewise.
36433         * tests/test-gethostname.c: Likewise.
36434         * tests/test-quotearg.c: Likewise.
36435         * tests/test-version-etc.c: Likewise.
36436         * tests/test-xalloc-die.c: Likewise.
36437         * tests/test-xfprintf-posix.c: Likewise.
36438         * tests/test-xprintf-posix.c: Likewise.
36439         * tests/test-xvasprintf.c: Likewise.
36440
36441         tests: avoid compiler warnings
36442         * tests/test-fcntl.c (main): Delete unused parameters.
36443         * tests/test-freopen-safer.c (main): Likewise.
36444         * tests/test-xalloc-die.c (main): Mark unused parameters.
36445         * tests/test-fseeko.c (main): Likewise.
36446         * tests/test-ftello.c (main): Likewise.
36447         * tests/test-nanosleep.c (main): Avoid declaration warning.
36448         * tests/test-sleep.c (main): Likewise.
36449         * tests/test-unsetenv.c (main): Silence warning about string
36450         literal.
36451         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36452
36453 2009-12-23  Bruno Haible  <bruno@clisp.org>
36454
36455         * tests/test-localename.c (test_locale_name): New function, extracted
36456         from main. Also test mixed situations.
36457         (test_locale_name_posix, test_locale_name_environ,
36458         test_locale_name_default): New functions.
36459         (main): Invoke them all.
36460         * modules/localename-tests (configure.ac): Test for newlocale.
36461
36462 2009-12-23  Bruno Haible  <bruno@clisp.org>
36463
36464         unistd: Ensure getcwd gets declared before being overridden.
36465         * lib/unistd.in.h: Conditionally include <io.h>.
36466
36467 2009-12-22  Bruno Haible  <bruno@clisp.org>
36468
36469         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36470         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36471         (gl_WCHAR_H): Invoke it.
36472         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36473         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36474         Reported by Karl Berry <karl@freefriends.org>.
36475
36476 2009-12-22  Eric Blake  <ebb9@byu.net>
36477
36478         math, unistd: avoid redundant includes
36479         * lib/math.in.h (isnan): No need to re-include <math.h>.
36480         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36481
36482         getsubopt: work around cygwin bug
36483         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36484         avoid conflicting with system getsubopt.
36485         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36486         bug.
36487
36488         getopt: synchronize from glibc
36489         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36490         parameter order.  Adjust all callers.
36491         (_getopt_internal_r, main): Adjust quoting in error messages.
36492         Drop considerations for outdated POSIX 1003.2 error message.
36493         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36494         callers.
36495         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36496
36497         test-getopt: test stderr behavior
36498         * modules/getopt-posix-tests (Depends-on): Add dup2.
36499         * tests/test-getopt.c (ASSERT): Avoid stderr.
36500         (main): Move stderr to a temporary file.
36501         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36502         Instead, add parameter to inform caller if output occurred.
36503         (test_getopt): Adjust all existing tests to expect silence, and
36504         add new tests of leading ":".
36505         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36506         glibc shortcomings with leading "-:" or "+:" in optstring.
36507         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36508         Likewise.
36509         * doc/posix-functions/getopt.texi (getopt): Likewise.
36510
36511         test-getopt: enhance test
36512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36513         supports optind=0.
36514         * tests/test-getopt.c (OPTIND_MIN): Move...
36515         * tests/test-getopt.h (OPTIND_MIN): ...here.
36516         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36517         Require that optind=0 works, since modern BSD supports it in
36518         addition to optreset, and since coreutils expects it.
36519         (test_getopt_long_only): New test.
36520         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36521         glibc shortcomings with 'W;', and enforcement of optind=0.
36522         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36523         Likewise.
36524
36525 2009-12-21  Bruno Haible  <bruno@clisp.org>
36526
36527         localename: Improvements for MacOS X and Cygwin.
36528         * lib/localename.h (gl_locale_name_environ): New declaration.
36529         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36530         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36531         (gl_locale_name_posix): Invoke it.
36532         (gl_locale_name_default): Add comments. Use Windows native API also on
36533         Cygwin.
36534
36535 2009-12-21  Bruno Haible  <bruno@clisp.org>
36536
36537         Update list of Win32 locale ids.
36538         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36539         (LANG_SAMI): Renamed from LANG_SAAMI.
36540         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36541         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36542         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36543         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36544         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36545         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36546         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36547         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36548         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36549         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36550         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36551         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36552         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36553         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36554         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36555         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36556         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36557         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36558         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36559         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36560         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36561         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36562         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36563         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36564         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36565         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36566         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36567         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36568         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36569         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36570         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36571         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36572         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36573         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36574         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36575         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36576         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36577         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36578         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36579         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36580         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36581         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36582         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36583         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36584         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36585         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36586         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36587         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36588         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36589         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36590         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36591         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36592         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36593         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36594         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36595         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36596         Add more languages and countries for Sami, Sorbian. Add more countries
36597         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36598         for Pashto. Change country for Syriac, Tswana.
36599
36600 2009-12-21  Eric Blake  <ebb9@byu.net>
36601
36602         test-utimens: avoid spurious failure
36603         * tests/test-chown.h (nap): Factor...
36604         * tests/nap.h: ...into new file.
36605         * tests/test-lchown.h (nap): Avoid duplication.
36606         * tests/test-utimens-common.h (nap): Use shared implementation,
36607         necessary on file systems with 1-second resolution.
36608         * modules/chown-tests (Files): Include new file.
36609         * modules/fdutimensat-tests (Files): Likewise.
36610         * modules/futimens-tests (Files): Likewise.
36611         * modules/lchown-tests (Files): Likewise.
36612         * modules/openat-tests (Files): Likewise.
36613         * modules/utimens-tests (Files): Likewise.
36614         * modules/utimensat-tests (Files): Likewise.
36615
36616 2009-12-19  Eric Blake  <ebb9@byu.net>
36617
36618         futimens, utimensat: work around Linux bug
36619         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36620         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36621         * lib/utimensat.c (rpl_utimensat): Work around it.
36622         * lib/futimens.c (rpl_futimens): Adjust comment.
36623
36624         utimens: work around Linux ctime bug
36625         * lib/utimens.c (detect_ctime_bug): New helper function.
36626         (update_timespec): Differentiate between workaround needed for
36627         this bug vs. what is needed for systems that lack utimensat.
36628         (fdutimens, lutimens): Work around bug.
36629
36630         utimens: check for ctime update
36631         * tests/test-utimens-common.h (check_ctime): Define.
36632         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36633         * tests/test-futimens.h (test_futimens): Likewise.
36634         * tests/test-lutimens.h (test_lutimens): Likewise.
36635         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36636         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36637
36638 2009-12-19  Bruno Haible  <bruno@clisp.org>
36639
36640         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36641         * tests/test-dprintf-posix2.sh: New file.
36642         * tests/test-dprintf-posix2.c: New file.
36643         * modules/dprintf-posix-tests (Files): Add them.
36644         (configure.ac): Check for getrlimit and setrlimit.
36645         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36646
36647 2009-12-19  Bruno Haible  <bruno@clisp.org>
36648
36649         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36650         * tests/test-fprintf-posix3.sh: New file.
36651         * tests/test-fprintf-posix3.c: New file.
36652         * modules/fprintf-posix-tests (Files): Add them.
36653         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36654
36655 2009-12-19  Eric Blake  <ebb9@byu.net>
36656
36657         dirfd: fix prototype
36658         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36659         * lib/dirfd.c (dirfd): Likewise.
36660
36661         canonicalize: reduce memory usage
36662         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36663         allocation to size.
36664         Reported by Solar Designer <solar@openwall.com>.
36665
36666 2009-12-19  Bruno Haible  <bruno@clisp.org>
36667
36668         New module attribute 'Applicability'.
36669         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36670         * gnulib-tool: New option --extract-applicability.
36671         (func_usage): Document it.
36672         (sed_extract_prog): Recognize it.
36673         (func_get_applicability): New function.
36674         (func_import): Generalize handling of 'link-warning' module.
36675         * modules/link-warning (Applicability): New section.
36676         * modules/arg-nonnull (Applicability): New section.
36677         Repoted by Simon Josefsson <simon@josefsson.org>.
36678
36679 2009-12-19  Bruno Haible  <bruno@clisp.org>
36680
36681         fflush: tweak
36682         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36683         * lib/fseeko.c (rpl_fseeko): Likewise.
36684
36685 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36686
36687         * lib/gl_list.h: Fix typo in comment.
36688
36689 2009-12-16  Eric Blake  <ebb9@byu.net>
36690
36691         fcntl: use to simplify other modules
36692         * modules/cloexec (Depends-on): Add fcntl.
36693         * modules/fchdir (Depends-on): Likewise.
36694         * modules/fd-safer-flag (Depends-on): Likewise.
36695         * modules/unistd-safer (Depends-on): Likewise.
36696         * modules/dup3 (configure.ac): Set module indicator.
36697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36698         missing.
36699         * lib/fchdir.c (_gl_register_dup): Fix comment.
36700         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36701         * lib/dup-safer.c (dup_safer): Likewise.
36702         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36703         * lib/dup3.c (dup3): Likewise.
36704         * tests/test-fchdir.c (main): Enhance test.
36705         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36706
36707         fcntl: port portions of fcntl to mingw
36708         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36709         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36710         replacement for mingw.
36711         * modules/fcntl (Description): Update.
36712         (Depends-on): Add dup2.
36713         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36714         * modules/fcntl-h (Makefile.am): Substitute it.
36715         * lib/fcntl.in.h (fcntl): Update declaration.
36716         (F_DUPFD, F_GETFD): New macros, when needed.
36717         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36718         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36719         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36720         we now guarantee.
36721
36722         fcntl: work around cygwin bug in F_DUPFD
36723         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36724         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36725         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36726         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36727         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36728
36729         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36730         * modules/fcntl (Files): List new files.
36731         (configure.ac): Run a test.
36732         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36733         * lib/fcntl.c (rpl_fcntl): Likewise.
36734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36735         (gl_FCNTL_H): Always replace fcntl.h.
36736         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36737         * lib/fcntl.in.h (fcntl): Declare replacement.
36738         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36739         needed, plus a witness.
36740         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36741         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36742         * tests/test-fcntl.c: New file.
36743         * modules/fcntl-tests: Likewise.
36744
36745         binary-io: avoid potential compilation warning
36746         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36747         directives.
36748
36749         fflush: avoid compilation error on NetBSD
36750         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36751         between off_t and fpos_t, since the latter is sometimes a struct.
36752         * lib/fseeko.c (rpl_fseeko): Likewise.
36753         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36754
36755 2009-12-15  Eric Blake  <ebb9@byu.net>
36756
36757         fcntl-h, stdio, sys_ioctl: fix declarations
36758         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36759         function must not take arguments.
36760         * lib/sys_ioctl.in.h (ioctl): Likewise.
36761         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36762         (open): Add a link warning.
36763
36764 2009-12-15  Jim Meyering  <meyering@redhat.com>
36765
36766         areadlink, areadlink-with-size: relax license to LGPLv2+
36767         * modules/areadlink (License): Relax to LGPLv2+.
36768         * modules/areadlink-with-size (License): Likewise.
36769
36770 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36771             Bruno Haible  <bruno@clisp.org>
36772
36773         *printf: Fix memory leak.
36774         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36775         * lib/vfprintf.c (vfprintf): Likewise.
36776         * lib/dprintf.c (dprintf): Likewise.
36777         * lib/vdprintf.c (vdprintf): Likewise.
36778
36779 2009-12-14  Eric Blake  <ebb9@byu.net>
36780
36781         accept4: adjust module dependencies
36782         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36783
36784         utimens: one more try at avoiding compiler warning
36785         * lib/utimens.c (lutimens): Lower scope of result.
36786
36787 2009-12-13  Bruno Haible  <bruno@clisp.org>
36788
36789         Move the malloc checking from module 'list' to new module 'xlist'.
36790         * modules/xlist: New file.
36791         * lib/gl_xlist.h: New file.
36792         * lib/gl_xlist.c: New file.
36793         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36794         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36795         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36796         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36797         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36798         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36799         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36800         gl_sortedlist_nx_add): New declarations.
36801         (struct gl_list_implementation): Rename and change methods accordingly.
36802         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36803         (gl_list_nx_create): Renamed from gl_list_create.
36804         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36805         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36806         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36807         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36808         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36809         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36810         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36811         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36812         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36813         gl_list_create_empty.
36814         (gl_list_nx_create): Renamed from gl_list_create.
36815         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36816         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36817         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36818         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36819         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36820         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36821         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36822         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36823         * lib/gl_array_list.c: Don't include xalloc.h.
36824         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36825         NULL upon out-of-memory.
36826         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36827         out-of-memory.
36828         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36829         Change return type to 'int'.
36830         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36831         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36832         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36833         upon out-of-memory.
36834         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36835         upon out-of-memory.
36836         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36837         upon out-of-memory.
36838         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36839         upon out-of-memory.
36840         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36841         out-of-memory.
36842         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36843         Update.
36844         (gl_array_list_implementation): Update.
36845         * lib/gl_carray_list.c: Don't include xalloc.h.
36846         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36847         Return NULL upon out-of-memory.
36848         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36849         out-of-memory.
36850         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36851         Change return type to 'int'.
36852         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36853         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36854         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36855         upon out-of-memory.
36856         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36857         upon out-of-memory.
36858         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36859         out-of-memory.
36860         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36861         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36862         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36863         Update.
36864         (gl_carray_list_implementation): Update.
36865         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36866         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36867         gl_linked_create_empty. Return NULL upon out-of-memory.
36868         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36869         out-of-memory.
36870         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36871         Change return type to 'int'. Return -1 upon out-of-memory.
36872         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36873         out-of-memory.
36874         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36875         upon out-of-memory.
36876         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36877         upon out-of-memory.
36878         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36879         NULL upon out-of-memory.
36880         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36881         upon out-of-memory.
36882         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36883         out-of-memory.
36884         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36885         Update.
36886         * lib/gl_linked_list.c: Don't include xalloc.h.
36887         (gl_linked_list_implementation): Update.
36888         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36889         (add_to_bucket): Change return type to 'int'.
36890         (gl_linkedhash_list_implementation): Update.
36891         * lib/gl_anytree_list1.h (free_subtree): New function.
36892         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36893         gl_tree_create_empty. Return NULL upon out-of-memory.
36894         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36895         Change return type to 'int'. Return -1 upon out-of-memory.
36896         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36897         out-of-memory.
36898         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36899         (gl_tree_remove_node): New function, moved here from
36900         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36901         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36902         Update.
36903         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36904         malloc, not xmalloc. Return NULL upon out-of-memory.
36905         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36906         out-of-memory.
36907         (gl_tree_remove_node_from_tree): New function, extracted from
36908         gl_tree_remove_node.
36909         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36910         upon out-of-memory.
36911         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36912         out-of-memory.
36913         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36914         upon out-of-memory.
36915         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36916         upon out-of-memory.
36917         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36918         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36919         not xmalloc. Return NULL upon out-of-memory.
36920         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36921         out-of-memory.
36922         (gl_tree_remove_node_from_tree): New function, extracted from
36923         gl_tree_remove_node.
36924         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36925         upon out-of-memory.
36926         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36927         out-of-memory.
36928         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36929         upon out-of-memory.
36930         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36931         upon out-of-memory.
36932         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36933         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36934         gl_anytree_list1.h before gl_anyavltree_list2.h.
36935         (gl_avltree_list_implementation): Update.
36936         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36937         gl_anytree_list1.h before gl_anyavltree_list2.h.
36938         (gl_rbtree_list_implementation): Update.
36939         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36940         Change return type to 'int'. Return -1 upon out-of-memory. Use
36941         __builtin_expect.
36942         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36943         (gl_avltreehash_list_implementation): Update.
36944         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36945         (gl_rbtreehash_list_implementation): Update.
36946         * modules/array-list (Depends-on): Remove xalloc.
36947         * modules/carray-list (Depends-on): Likewise.
36948         * modules/linked-list (Depends-on): Likewise.
36949         * modules/linkedhash-list (Depends-on): Likewise.
36950         * modules/avltree-list (Depends-on): Likewise.
36951         * modules/rbtree-list (Depends-on): Likewise.
36952         * modules/avltreehash-list (Depends-on): Likewise.
36953         * modules/rbtreehash-list (Depends-on): Likewise.
36954
36955         * modules/xsublist: New file.
36956         * lib/gl_xsublist.h: New file.
36957         * lib/gl_xsublist.c: New file.
36958         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36959         (gl_sublist_nx_create): New declaration.
36960         * lib/gl_sublist.c: Don't include xalloc.h.
36961         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36962         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36963         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36964         Change return type to 'int'. Return -1 upon out-of-memory.
36965         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36966         upon out-of-memory.
36967         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36968         NULL upon out-of-memory.
36969         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36970         upon out-of-memory.
36971         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36972         NULL upon out-of-memory.
36973         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36974         NULL upon out-of-memory.
36975         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36976         upon out-of-memory.
36977         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36978         (gl_sublist_list_implementation): Update.
36979         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36980         upon out-of-memory.
36981         * modules/sublist (Depends-on): Remove xalloc.
36982
36983         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36984         * tests/test-carray_list.c: Likewise.
36985         * tests/test-linked_list.c: Likewise.
36986         * tests/test-linkedhash_list.c: Likewise.
36987         * tests/test-avltree_list.c: Likewise.
36988         * tests/test-rbtree_list.c: Likewise.
36989         * tests/test-avltreehash_list.c: Likewise.
36990         * tests/test-rbtreehash_list.c: Likewise.
36991         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36992         * modules/carray-list-tests (Makefile.am): Likewise.
36993         * modules/linked-list-tests (Makefile.am): Likewise.
36994         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36995         * modules/avltree-list-tests (Makefile.am): Likewise.
36996         * modules/rbtree-list-tests (Makefile.am): Likewise.
36997         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36998         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36999
37000         * NEWS: Mention the changes.
37001
37002         * lib/clean-temp.c: Include gl_xlist.h.
37003         * modules/clean-temp (Depends-on): Add xlist.
37004
37005         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37006         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37007
37008         * tests/test-array_oset.c: Include gl_xlist.h.
37009         * modules/array-oset-tests (Depends-on): Add xlist.
37010
37011         Reported by José E. Marchesi <jemarch@gnu.org>.
37012
37013 2009-12-13  Bruno Haible  <bruno@clisp.org>
37014
37015         Move the malloc checking from module 'oset' to new module 'xoset'.
37016         * modules/xoset: New file.
37017         * lib/gl_xoset.h: New file.
37018         * lib/gl_xoset.c: New file.
37019         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37020         declarations.
37021         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37022         (struct gl_oset_implementation): Rename and change methods accordingly.
37023         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37024         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37025         'int'. Mark as __warn_unused_result__.
37026         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37027         gl_oset_create_empty.
37028         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37029         'int'.
37030         * lib/gl_array_oset.c: Don't include xalloc.h.
37031         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37032         malloc, not xmalloc.
37033         (grow): Change return type to 'int'. Don't call xalloc_die.
37034         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37035         to 'int'.
37036         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37037         'int'.
37038         (gl_array_oset_implementation): Update.
37039         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37040         gl_tree_create_empty.
37041         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37042         'int'.
37043         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37044         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37045         xmalloc.
37046         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37047         not xmalloc.
37048         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37049         xmalloc.
37050         (gl_avltree_oset_implementation): Update.
37051         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37052         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37053         xmalloc.
37054         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37055         not xmalloc.
37056         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37057         xmalloc.
37058         (gl_rbtree_oset_implementation): Update.
37059         * modules/array-oset (Depends-on): Remove xalloc.
37060         * modules/avltree-oset (Depends-on): Likewise.
37061         * modules/rbtree-oset (Depends-on): Likewise.
37062         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37063         * tests/test-avltree_oset.c: Likewise.
37064         * tests/test-rbtree_oset.c: Likewise.
37065         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37066         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37067         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37068         * NEWS: Mention the change.
37069
37070 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37071
37072         maint.mk: allow a project to override release-prep commands
37073         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37074         commands into a new rule.
37075         (release-prep): New rule.
37076         (release-prep-hook): New overridable variable.
37077
37078 2009-12-13  Bruno Haible  <bruno@clisp.org>
37079
37080         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37081
37082 2009-12-13  Jim Meyering  <meyering@redhat.com>
37083
37084         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37085         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37086
37087 2009-12-12  Bruno Haible  <bruno@clisp.org>
37088
37089         duplocale: Tweak.
37090         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37091
37092 2009-12-12  Karl Berry  <karl@gnu.org>
37093
37094         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37095
37096 2009-12-12  Bruno Haible  <bruno@clisp.org>
37097
37098         * m4/po.m4: Undo incorrect untabification.
37099
37100 2009-12-12  Bruno Haible  <bruno@clisp.org>
37101
37102         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37103         * modules/c-strtod (Depends-on): Add locale.
37104         * modules/c-strtold (Depends-on): Likewise.
37105
37106 2009-12-12  Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37109
37110 2009-12-11  Eric Blake  <ebb9@byu.net>
37111
37112         setenv: relax requirement in light of POSIX ruling
37113         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37114         not NULL.
37115         * tests/test-setenv.c (main): Relax test.
37116         * tests/test-unsetenv.c (main): Likewise.
37117         * doc/posix-functions/setenv.texi (setenv): Document this.
37118         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37119
37120 2009-12-11  Bruno Haible  <bruno@clisp.org>
37121
37122         New module 'fd-safer-flag'.
37123         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37124         * lib/dup-safer.c (dup_safer_flag): Remove function.
37125         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37126         * lib/fd-safer.c (fd_safer_flag): Remove function.
37127         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37128         * modules/cloexec (configure.ac): Drop indicator macro.
37129         * modules/fd-safer-flag: New file.
37130         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37131         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37132         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37133
37134 2009-12-11  Bruno Haible  <bruno@clisp.org>
37135
37136         Tests for module 'nl_langinfo'.
37137         * modules/nl_langinfo-tests: New file.
37138         * tests/test-nl_langinfo.sh: New file.
37139         * tests/test-nl_langinfo.c: New file.
37140
37141         New module 'nl_langinfo'.
37142         * lib/nl_langinfo.c: New file.
37143         * m4/nl_langinfo.m4: New file.
37144         * modules/nl_langinfo: New file.
37145         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37146
37147 2009-12-11  Bruno Haible  <bruno@clisp.org>
37148
37149         Tests for module 'langinfo'.
37150         * modules/langinfo-tests: New file.
37151         * tests/test-langinfo.c: New file.
37152
37153         New module 'langinfo'.
37154         * lib/langinfo.in.h: New file.
37155         * m4/langinfo_h.m4: New file.
37156         * modules/langinfo: New file.
37157         * doc/posix-headers/langinfo.texi: Mention the new module.
37158
37159 2009-12-11  Bruno Haible  <bruno@clisp.org>
37160
37161         * lib/config.charset: Untabify.
37162
37163 2009-12-11  Bruno Haible  <bruno@clisp.org>
37164
37165         * modules/unistd-safer (configure.ac): Drop indicator macro.
37166
37167 2009-12-11  Bruno Haible  <bruno@clisp.org>
37168
37169         Move pipe2-safer code to its own file.
37170         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37171         * lib/pipe-safer.c (pipe2_safer): Remove function.
37172         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37173         (Makefile.am): Add it to lib_SOURCES.
37174
37175 2009-12-10  Bruno Haible  <bruno@clisp.org>
37176
37177         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37178
37179 2009-12-10  Bruno Haible  <bruno@clisp.org>
37180
37181         Declare which arguments expect non-NULL values, for GCC and clang.
37182         * build-aux/arg-nonnull.h: New file.
37183         * modules/arg-nonnull: New file.
37184         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37185         (inet_ntop, inet_pton): Use it.
37186         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37187         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37188         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37189         (open, openat): Use it.
37190         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37191         (fnmatch): Use it.
37192         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37193         (getopt, getopt_long, getopt_long_only): Use it.
37194         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37195         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37196         Use it.
37197         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37198         (iconv_open): Use it.
37199         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37200         (strtoimax, strtoumax): Use it.
37201         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37202         (duplocale): Use it.
37203         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37204         (frexp, frexpl): Use it.
37205         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37206         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37207         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37208         (tsearch, tfind, tdelete, twalk): Use it.
37209         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37210         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37211         sigpending): Use it.
37212         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37213         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37214         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37215         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37216         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37217         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37218         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37219         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37220         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37221         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37222         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37223         Use it.
37224         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37225         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37226         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37227         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37228         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37229         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37230         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37231         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37232         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37233         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37234         strtoull, unsetenv): Use it.
37235         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37236         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37237         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37238         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37239         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37240         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37241         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37242         (strcasecmp, strncasecmp): Use it.
37243         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37244         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37245         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37246         rpl_setsockopt): Use it.
37247         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37248         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37249         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37250         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37251         (gettimeofday): Use it.
37252         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37253         (times): Use it.
37254         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37255         (uname): Use it.
37256         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37257         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37258         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37259         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37260         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37261         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37262         unlinkat, write): Use it.
37263         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37264         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37265         * lib/argv-iter.h: Include arg-nonnull.h.
37266         (_ATTRIBUTE_NONNULL_): Remove macro.
37267         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37268         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37269         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37270         optimization.
37271         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37272         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37273         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37274         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37275         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37276         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37277         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37278         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37279         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37280         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37281         * modules/dirent (Depends-on): Add arg-nonnull.
37282         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37283         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37284         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37285         * modules/fnmatch (Depends-on): Add arg-nonnull.
37286         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37287         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37288         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37289         * modules/glob (Depends-on): Add arg-nonnull.
37290         (Makefile.am): Insert arg-nonnull.h into glob.h.
37291         * modules/iconv_open (Depends-on): Add arg-nonnull.
37292         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37293         * modules/inttypes (Depends-on): Add arg-nonnull.
37294         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37295         * modules/locale (Depends-on): Add arg-nonnull.
37296         (Makefile.am): Insert arg-nonnull.h into locale.h.
37297         * modules/math (Depends-on): Add arg-nonnull.
37298         (Makefile.am): Insert arg-nonnull.h into math.h.
37299         * modules/netdb (Depends-on): Add arg-nonnull.
37300         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37301         * modules/search (Depends-on): Add arg-nonnull.
37302         (Makefile.am): Insert arg-nonnull.h into search.h.
37303         * modules/signal (Depends-on): Add arg-nonnull.
37304         (Makefile.am): Insert arg-nonnull.h into signal.h.
37305         * modules/spawn (Depends-on): Add arg-nonnull.
37306         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37307         * modules/stdio (Depends-on): Add arg-nonnull.
37308         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37309         * modules/stdlib (Depends-on): Add arg-nonnull.
37310         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37311         * modules/string (Depends-on): Add arg-nonnull.
37312         (Makefile.am): Insert arg-nonnull.h into string.h.
37313         * modules/strings (Depends-on): Add arg-nonnull.
37314         (Makefile.am): Insert arg-nonnull.h into strings.h.
37315         * modules/sys_socket (Depends-on): Add arg-nonnull.
37316         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37317         * modules/sys_stat (Depends-on): Add arg-nonnull.
37318         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37319         * modules/sys_time (Depends-on): Add arg-nonnull.
37320         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37321         * modules/sys_times (Depends-on): Add arg-nonnull.
37322         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37323         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37324         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37325         * modules/time (Depends-on): Add arg-nonnull.
37326         (Makefile.am): Insert arg-nonnull.h into time.h.
37327         * modules/unistd (Depends-on): Add arg-nonnull.
37328         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37329         * modules/wchar (Depends-on): Add arg-nonnull.
37330         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37331         * modules/argv-iter (Depends-on): Add arg-nonnull.
37332         * tests/test-canonicalize.c (null_ptr): New function.
37333         (main): Use it.
37334         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37335         (main): Use it.
37336         * tests/test-memmem.c (null_ptr): New function.
37337         (main): Use it.
37338         Reported by Jim Meyering.
37339
37340 2009-12-10  Bruno Haible  <bruno@clisp.org>
37341
37342         Use spaces for indentation, not tabs.
37343         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37344         * m4/*.m4: Untabify.
37345         * build-aux/*.h: Untabify.
37346         * tests/**/*.[hc]: Untabify.
37347         * README: New section "Indent with spaces, not TABs", based on
37348         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37349         * NEWS: Mention the change.
37350
37351 2009-12-10  Bruno Haible  <bruno@clisp.org>
37352
37353         pty test: Fix link error.
37354         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37355         test_pty_LDADD.
37356
37357 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37358
37359         * modules/pty: New file.
37360         * modules/pty-tests: New file.
37361         * m4/pty.m4: New file.
37362         * tests/test-pty.c: New file.
37363         * doc/glibc-headers/pty.texi: Modified.
37364         * doc/glibc-functions/forkpty.texi: Modified.
37365         * doc/glibc-functions/openpty.texi: Modified.
37366
37367 2009-12-10  Bruno Haible  <bruno@clisp.org>
37368
37369         Avoid syntax error in C++ mode.
37370         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37371
37372 2009-12-10  Bruno Haible  <bruno@clisp.org>
37373
37374         Use sed with option -e.
37375         * gnulib-tool (func_version, func_emit_copyright_notice,
37376         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37377         option -e to sed.
37378         * modules/link-warning (Makefile.am): Likewise.
37379
37380 2009-12-10  Jim Meyering  <meyering@redhat.com>
37381
37382         mgetgroups: do not write bytes beyond end of malloc'd buffer
37383         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37384         username, we call getgroups with a one-element-shorter buffer,
37385         but still told it the length was original, max_n_groups.
37386
37387 2009-12-09  Eric Blake  <ebb9@byu.net>
37388
37389         cloexec: relax license
37390         * modules/cloexec (Maintainer): Add myself.
37391         (License): Use LGPL, not GPL.
37392
37393         link-warning: optimize generation
37394         * modules/link-warning (Makefile.am): Reduce process usage.
37395
37396 2009-12-09  Bruno Haible  <bruno@clisp.org>
37397
37398         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37399         workaround was added on 2009-11-17.
37400
37401 2009-12-09  Jim Meyering  <meyering@redhat.com>
37402             Bruno Haible  <bruno@clisp.org>
37403
37404         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37405         * modules/link-warning (Makefile.am): Make the comment-removing sed
37406         command more robust in the face of bootstrap-prepended comment lines.
37407
37408 2009-12-09  Bruno Haible  <bruno@clisp.org>
37409
37410         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37411         most one group.
37412
37413 2009-12-09  Simon Josefsson <simon@josefsson.org>
37414             Bruno Haible  <bruno@clisp.org>
37415
37416         * build-aux/link-warning.h: Add copyright notice.
37417         * modules/link-warning (Makefile.am): Generate link-warning.h from
37418         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37419         * NEWS: Mention change in link-warning module.
37420         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37421         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37422         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37423         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37424         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37425         * modules/math (Makefile.am): Add dependency to math.h.
37426         * modules/search (Makefile.am): Add dependency to search.h.
37427         * modules/signal (Makefile.am): Add dependency to signal.h.
37428         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37429         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37430         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37431         * modules/string (Makefile.am): Add dependency to string.h.
37432         * modules/strings (Makefile.am): Add dependency to strings.h.
37433         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37434         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37435         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37436         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37437         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37438         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37439         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37440         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37441         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37442
37443 2009-12-09  Bruno Haible  <bruno@clisp.org>
37444
37445         fchdir: Optimize away rpl_fstat when possible.
37446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37447         REPLACE_OPEN_DIRECTORY.
37448         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37449
37450 2009-12-09  Bruno Haible  <bruno@clisp.org>
37451
37452         * lib/fchdir.c: Update comment.
37453
37454 2009-12-09  Bruno Haible  <bruno@clisp.org>
37455
37456         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37457
37458 2009-12-08  Eric Blake  <ebb9@byu.net>
37459
37460         fchdir: avoid memory leak on re-registration.
37461         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37462
37463 2009-12-08  Jim Meyering  <meyering@redhat.com>
37464
37465         init.sh: avoid Solaris 10 /bin/sh portability problem
37466         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37467         sourced script:
37468           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37469           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37470           bar
37471         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37472         and two tests used that idiom.
37473         * tests/init.sh: Update suggested usage comments.
37474         (path_prepend_): New function, to be used in place
37475         of the --src-path=DIR option.
37476         (setup_): Move PATH-prepending code into path_prepend_.
37477         * tests/test-pread.sh: Adapt to new usage.
37478         * tests/test-xalloc-die.sh: Likewise.
37479
37480 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37481
37482         * doc/gnulib.texi (Glibc pty.h): Add.
37483         * doc/glibc-functions/forkpty.texi: Add.
37484         * doc/glibc-functions/openpty.texi: Add.
37485         Suggested by Bruno Haible.
37486
37487 2009-12-08  Eric Blake  <ebb9@byu.net>
37488
37489         fchdir: fix logic bugs
37490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37491         * tests/test-fchdir.c (main): Enhance test.
37492         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37493         is in use.
37494
37495         dup2: fix logic bugs
37496         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37497         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37498         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37499         exists.
37500         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37501
37502 2009-12-07  Eric Blake  <ebb9@byu.net>
37503
37504         unlink: fix m4 detection
37505         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37506
37507         unistd-safer: add unit test
37508         * modules/unistd-safer-tests: New file.
37509         * tests/test-dup-safer.c: Likewise.
37510         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37511         * tests/test-dup2.c (setmode): Likewise.
37512         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37513
37514         cloexec: preserve text vs. binary across dup_cloexec
37515         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37516         mode.
37517         * modules/dup2-tests (Depends-on): Add binary-io.
37518         * modules/cloexec-tests (Depends-on): Likewise.
37519         * tests/test-dup2.c (setmode, is_mode): New helpers.
37520         (main): Add tests that translation mode is preserved.
37521         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37522         Reported by Bruno Haible.
37523
37524         mgetgroups: reduce duplicate listings
37525         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37526         resulting array.
37527         * tests/test-chown.h (test_chown): Simplify client.
37528         * tests/test-lchown.h (test_lchown): Likewise.
37529
37530 2009-12-06  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37533         value.
37534
37535 2009-12-06  Bruno Haible  <bruno@clisp.org>
37536
37537         * lib/progname.c: Include stdio.h, stdlib.h.
37538         (set_program_name): Reject a NULL argument.
37539
37540 2009-12-05  Eric Blake  <ebb9@byu.net>
37541
37542         pipe2-safer: new module
37543         * modules/pipe2-safer: New file.
37544         * lib/unistd-safer.h (pipe2_safer): New prototype.
37545         * lib/unistd--.h (pipe2): New wrapper.
37546         * lib/pipe-safer.c (pipe2_safer): New function.
37547         * modules/pipe (Depends-on): Add pipe2-safer.
37548         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37549
37550         stdlib-safer: preserve cloexec flag for mkostemp[s]
37551         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37552         fd_safer_flag.
37553
37554         unistd-safer: allow preservation of cloexec status via flag
37555         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37556         prototypes.
37557         * lib/dup-safer.c (dup_safer_flag): New function.
37558         * lib/fd-safer.c (fd_safer_flag): Likewise.
37559         * modules/cloexec (configure.ac): Set witness.
37560
37561         test-dup2: enhance test
37562         * modules/dup2-tests (Depends-on): Add cloexec.
37563         * tests/test-dup2.c (main): Enhance test.
37564
37565         cloexec: add dup_cloexec
37566         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37567         header and comments.
37568         * lib/cloexec.c (set_cloexec_flag): Add comments.
37569         (dup_cloexec): New function, with mingw implementation borrowed
37570         from...
37571         * lib/w32spawn.h (dup_noinherit): ...here.
37572         * modules/execute (Depends-on): Add cloexec.
37573         * modules/pipe (Depends-on): Likewise.
37574         * modules/cloexec (Depends-on): Add dup2.
37575         * modules/cloexec-tests (Files): New file.
37576         * tests/test-cloexec.c: Likewise.
37577
37578         test-xalloc-die: fix test for mingw
37579         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37580         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37581         directory and .exe suffix off argv[0] output.
37582
37583         test-fseeko: fix test for mingw
37584         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37585         than undefining fseek, so test will pass on mingw.
37586
37587 2009-12-05  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/progname.h (set_program_name): Clarify specification.
37590         * lib/progname.c (set_program_name): Likewise.
37591         Reported by Jim Meyering.
37592
37593 2009-12-05  Jim Meyering  <meyering@redhat.com>
37594
37595         maint.mk: backslash-escape parens in default regexp
37596         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37597         backslash-escape the literal parentheses.
37598
37599         maint.mk: news-date-check: use grep -E
37600         * top/maint.mk (today): Define a Make variable, not a...
37601         (news-date-check): ...shell variable.
37602         (news-date-regexp): Use the Make variable.
37603         Use grep's -E option.  Change the failing diagnostic to mention
37604         the variable, $(news-date-regexp).
37605
37606 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37607
37608         maintainer-makefile: allow customization of NEWS entry format
37609         * top/maint.mk (news-date-regexp): New overridable variable.
37610         (news-date-check): Use it.
37611
37612 2009-12-04  Eric Blake  <ebb9@byu.net>
37613
37614         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37615         * lib/mgetgroups.h (xgetgroups): New prototype.
37616         * lib/mgetgroups.c (xgetgroups): New wrapper.
37617         (mgetgroups): Handle ENOSYS.
37618         * modules/mgetgroups (Depends-on): Add realloc.
37619         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37620
37621         mgetgroups: avoid argument promotion issues with -1
37622         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37623         for invalid gid_t.
37624         * tests/test-chown.h (getegid, test_chown): Likewise.
37625         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37626
37627 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37628
37629         exclude: Fix header file problems.
37630         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37631
37632 2009-12-01  Jim Meyering  <meyering@redhat.com>
37633
37634         fts: fts_open: do not let an empty string cause immediate failure
37635         This is required in support of GNU rm, for which the command
37636         "rm A '' B" must process and remove both A and B, in spite of
37637         the empty string argument.
37638         * lib/fts.c (fts_open): Do not let the presence of an empty string
37639         cause fts_open to fail immediately.  Most fts-using tools must be
37640         able to process all arguments, in order, and can be expected to
37641         diagnose such arguments themselves.
37642
37643 2009-11-30  Eric Blake  <ebb9@byu.net>
37644
37645         utimens: fix compilation error
37646         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37647         Declare variable at right scope.
37648
37649 2009-11-29  Jim Meyering  <meyering@redhat.com>
37650
37651         bootstrap: handle perl-5.11's changed --version output
37652         * build-aux/bootstrap (get_version): Handle perl separately,
37653         since perl-5.11's --version output is different.
37654
37655 2009-11-28  Jim Meyering  <meyering@redhat.com>
37656
37657         userspec: depend on the inttostr module, too
37658         * modules/userspec (Depends-on): Add inttostr.
37659
37660         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37661         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37662         number of MAXUID when it evaluates to (uid_t) -1.
37663         Likewise for group ID.  Reported by Matt McCutchen in
37664         <http://savannah.gnu.org/bugs/?28113>
37665
37666         userspec: reformat to use spaces, not TABs
37667         * lib/userspec.c: Expand TABs to spaces.
37668         Add Emacs' "indent-tabs-mode: nil" hint.
37669
37670 2009-11-27  Eric Blake  <ebb9@byu.net>
37671
37672         getopt-gnu: flush out another BSD bug
37673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37674         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37675         flush out BSD bug.
37676         * tests/test-getopt.h (test_getopt): End lists with NULL.
37677         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37678         (test_getopt_long_posix): Enhance test.
37679         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37680         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37681         getopt-gnu.
37682         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37683         Likewise.
37684
37685 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37686
37687         * modules/idpriv-droptemp-tests (Notice): Fix text.
37688
37689 2009-11-27  Jim Meyering  <meyering@redhat.com>
37690
37691         test-xalloc-die: avoid spurious failure due to libtool argv difference
37692         In a libtool-enabled project, this test would fail due to a difference
37693         in the emitted program name, e.g.,
37694         -test-xalloc-die: memory exhausted
37695         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37696         Use program to avoid that.
37697         * modules/xalloc-die-tests (Depends-on): Add progname.
37698         * tests/test-xalloc-die.c: Include progname.h".
37699         (program_name): Remove decl.
37700         (main): Call set_program_name.
37701         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37702
37703 2009-11-26  Richard Jones  <rjones@redhat.com>
37704
37705         w32sock: leave win32 error in place.
37706         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37707
37708 2009-11-26  Eric Blake  <ebb9@byu.net>
37709
37710         init.sh: suggest to use skip_ and fail_ functions in comments
37711         * tests/init.sh: Add a sentence.
37712
37713 2009-11-25  Bruno Haible  <bruno@clisp.org>
37714
37715         init.sh: add documentation in comments
37716         * tests/init.sh: Add some developer and user documentation.
37717
37718 2009-11-26  Jim Meyering  <meyering@redhat.com>
37719
37720         init.sh: accommodate even those who specify bogus srcdir manually
37721         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37722         configure-time tests to be sanitized, so that there is no need to
37723         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37724         (with no double quotes) suffices.  However, since tests may be
37725         invoked manually, and since you may explicitly set srcdir to the
37726         name of a directory containing spaces, do quote its uses here.
37727         * tests/test-pread.sh: Likewise.
37728         Suggested by Bruno Haible.
37729
37730         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37731         * tests/test-pread.sh: Write no data into the pipe, because
37732         test-pread actually reads none.  This avoids a diagnostic,
37733         "bash: echo: write error: Broken pipe", that arises in the unusual
37734         event something is ignoring SIGPIPE, and might be interpreted
37735         as some sort of failure.  Reported by Bruno Haible.
37736
37737 2009-11-25  Jim Meyering  <meyering@redhat.com>
37738
37739         test-pread: cover failure with ESPIPE and EINVAL
37740         * tests/test-pread.c (main): Test for failure, too.
37741         * tests/test-pread.sh: Invoke with stdin on a pipe.
37742         Suggested by Eric Blake.
37743
37744         pread: improvement and fix
37745         * modules/pread (Depends-on): Depend on lseek, for portability to
37746         e.g., mingw.  Suggested by Eric Blake.
37747         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37748
37749         unistd.in.h: correct declaration of pread
37750         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37751         Reported by Richard W.M. Jones.
37752
37753         test-pread.sh: distribute the test script
37754         * modules/pread-tests (Files): Include test-pread.sh.
37755
37756         test-pread.sh: clean up
37757         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37758         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37759         That is unnecessary, since it's always ".".
37760         Suggestion from Eric Blake.
37761
37762         test-pread.sh: make executable
37763         * tests/test-pread.sh: Set executable bit.
37764         Reported by Eric Blake.
37765
37766         correct typo in test-pread.sh
37767         * tests/test-pread.sh: Add #! line.
37768
37769         test pread
37770         * tests/test-pread.c: New file.
37771         * tests/test-pread.sh: Likewise.
37772         * modules/pread-tests: Likewise.
37773
37774         pread: new module
37775         * modules/pread: New file.
37776         * lib/unistd.in.h (pread): Define/declare.
37777         * lib/pread.c (pread): New file.
37778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37779         * modules/unistd (Makefile.am): Substitute witnesses.
37780         * doc/posix-functions/pread.texi (pread): Update.
37781         * MODULES.html.sh: Add pread.
37782
37783 2009-11-25  Jim Meyering  <meyering@redhat.com>
37784
37785         tests/init.sh: new file to be used via most *.sh tests
37786         * tests/init.sh: New file.
37787
37788 2009-11-25  Eric Blake  <ebb9@byu.net>
37789
37790         utimens: work around older Linux failure with symlinks
37791         * lib/utimens.c (lutimensat_works_really): New variable.
37792         (fdutimens, lutimens): Use it to manage kernels that support
37793         nanosecond times on files, but not on symlinks.
37794         Reported by OndÅ™ej Vašík.
37795
37796         utimes: fix configure grammar
37797         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37798
37799 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37800
37801         regex: Fix fastmap for multibyte character ranges.
37802         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37803         characters when a multibyte character range is included.
37804
37805 2009-11-22  Andy Wingo  <wingo@pobox.com>
37806
37807         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37808         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37809
37810 2009-11-24  Bruno Haible  <bruno@clisp.org>
37811
37812         doc: Most *_l functions exist in MacOS X 10.5.
37813         * doc/posix-functions/duplocale.texi: Update platforms list.
37814         * doc/posix-functions/freelocale.texi: Likewise.
37815         * doc/posix-functions/newlocale.texi: Likewise.
37816         * doc/posix-functions/uselocale.texi: Likewise.
37817         * doc/posix-functions/isalnum_l.texi: Likewise.
37818         * doc/posix-functions/isalpha_l.texi: Likewise.
37819         * doc/posix-functions/isblank_l.texi: Likewise.
37820         * doc/posix-functions/iscntrl_l.texi: Likewise.
37821         * doc/posix-functions/isdigit_l.texi: Likewise.
37822         * doc/posix-functions/isgraph_l.texi: Likewise.
37823         * doc/posix-functions/islower_l.texi: Likewise.
37824         * doc/posix-functions/isprint_l.texi: Likewise.
37825         * doc/posix-functions/ispunct_l.texi: Likewise.
37826         * doc/posix-functions/isspace_l.texi: Likewise.
37827         * doc/posix-functions/isupper_l.texi: Likewise.
37828         * doc/posix-functions/iswalnum_l.texi: Likewise.
37829         * doc/posix-functions/iswalpha_l.texi: Likewise.
37830         * doc/posix-functions/iswblank_l.texi: Likewise.
37831         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37832         * doc/posix-functions/iswctype_l.texi: Likewise.
37833         * doc/posix-functions/iswdigit_l.texi: Likewise.
37834         * doc/posix-functions/iswgraph_l.texi: Likewise.
37835         * doc/posix-functions/iswlower_l.texi: Likewise.
37836         * doc/posix-functions/iswprint_l.texi: Likewise.
37837         * doc/posix-functions/iswpunct_l.texi: Likewise.
37838         * doc/posix-functions/iswspace_l.texi: Likewise.
37839         * doc/posix-functions/iswupper_l.texi: Likewise.
37840         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37841         * doc/posix-functions/isxdigit_l.texi: Likewise.
37842         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37843         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37844         * doc/posix-functions/strcoll_l.texi: Likewise.
37845         * doc/posix-functions/strfmon_l.texi: Likewise.
37846         * doc/posix-functions/strftime_l.texi: Likewise.
37847         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37848         * doc/posix-functions/strxfrm_l.texi: Likewise.
37849         * doc/posix-functions/tolower_l.texi: Likewise.
37850         * doc/posix-functions/toupper_l.texi: Likewise.
37851         * doc/posix-functions/towctrans_l.texi: Likewise.
37852         * doc/posix-functions/towlower_l.texi: Likewise.
37853         * doc/posix-functions/towupper_l.texi: Likewise.
37854         * doc/posix-functions/wcscoll_l.texi: Likewise.
37855         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37856         * doc/posix-functions/wctrans_l.texi: Likewise.
37857         * doc/posix-functions/wctype_l.texi: Likewise.
37858         * doc/glibc-functions/strptime_l.texi: Likewise.
37859         * doc/glibc-functions/strtod_l.texi: Likewise.
37860         * doc/glibc-functions/strtof_l.texi: Likewise.
37861         * doc/glibc-functions/strtol_l.texi: Likewise.
37862         * doc/glibc-functions/strtold_l.texi: Likewise.
37863         * doc/glibc-functions/strtoll_l.texi: Likewise.
37864         * doc/glibc-functions/strtoul_l.texi: Likewise.
37865         * doc/glibc-functions/strtoull_l.texi: Likewise.
37866         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37867         * doc/glibc-functions/wcstod_l.texi: Likewise.
37868         * doc/glibc-functions/wcstof_l.texi: Likewise.
37869         * doc/glibc-functions/wcstol_l.texi: Likewise.
37870         * doc/glibc-functions/wcstold_l.texi: Likewise.
37871         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37872         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37873         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37874
37875 2009-11-24  Bruno Haible  <bruno@clisp.org>
37876
37877         duplocale: Fix logic bug.
37878         * lib/duplocale.c: Don't include <langinfo.h>.
37879         (_NL_LOCALE_NAME): Remove macro.
37880         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37881         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37882
37883 2009-11-23  Jim Meyering  <meyering@redhat.com>
37884
37885         test-update-copyright: don't hard-code /usr/bin/perl
37886         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37887         perl to print the current year.  Gilles Espinasse reported that
37888         the replaced use of perl was hard-coded as /usr/bin/perl.
37889
37890 2009-11-23  Bruno Haible  <bruno@clisp.org>
37891
37892         duplocale: Add support for glibc 2.3.x.
37893         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37894
37895 2009-11-22  Bruno Haible  <bruno@clisp.org>
37896
37897         vasnprintf: Tiny optimization.
37898         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37899         MacOS X.
37900
37901 2009-11-22  Bruno Haible  <bruno@clisp.org>
37902
37903         Tests for module 'duplocale'.
37904         * modules/duplocale-tests: New file.
37905         * tests/test-duplocale.c: New file.
37906
37907         New module 'duplocale'.
37908         * m4/duplocale.m4: New file.
37909         * lib/locale.in.h (duplocale): New declaration.
37910         * lib/duplocale.c: New file.
37911         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37912         gl_LOCALE_H_DEFAULTS): New macros.
37913         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37914         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37915         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37916         REPLACE_DUPLOCALE.
37917         * modules/duplocale: New file.
37918         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37919
37920 2009-11-22  Bruno Haible  <bruno@clisp.org>
37921
37922         * modules/locale-tests (configure.ac): Test for newlocale function.
37923         * tests/test-locale.c: When the system has extended locale functions,
37924         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37925
37926         locale: Make locale_t available when possible.
37927         * lib/locale.in.h: Include <xlocale.h> when it exists.
37928         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37929         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37930         * modules/locale (Depends-on): Add extensions.
37931         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37932         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37933
37934 2009-11-22  Bruno Haible  <bruno@clisp.org>
37935
37936         Add comments.
37937         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37938         invocation.
37939         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37940         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37941         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37942
37943 2009-11-22  Bruno Haible  <bruno@clisp.org>
37944
37945         error: account for the possibility of freopen (stdout).
37946         * lib/error.c: Include <unistd.h>.
37947         (flush_stdout): New function, extracted from error and error_at_line.
37948         Determine stdout's fd dynamically.
37949         (error, error_at_line): Invoke flush_stdout.
37950         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37951         * modules/error (Depends-on): Add unistd.
37952
37953 2009-11-22  Bruno Haible  <bruno@clisp.org>
37954
37955         diffseq: Add comment.
37956         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37957
37958 2009-11-22  Jim Meyering  <meyering@redhat.com>
37959
37960         c-stack: avoid defining an unused static function
37961         * lib/c-stack.c (find_stack_direction): Do not define this function
37962         when it will not be used.
37963
37964         diffseq: avoid spurious gcc warnings
37965         * lib/diffseq.h (IF_LINT2): Define.
37966         (compareseq): Use it to initialize two members of "part".
37967         This avoids two used-uninitialized warnings.
37968
37969 2009-11-21  Jim Meyering  <meyering@redhat.com>
37970
37971         c-stack: avoid "ignoring return value of `write'" warning
37972         * lib/c-stack.c: Include "ignore-value.h".
37973         (die): Explicitly ignore each write return value.
37974         * modules/c-stack (Depends-on): Add ignore-value.
37975
37976 2009-11-21  Bruno Haible  <bruno@clisp.org>
37977
37978         diffseq: reduce scope of variable 'best'.
37979         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37980         variable, earlier used for two different purposes.
37981
37982 2009-11-21  Jim Meyering  <meyering@redhat.com>
37983
37984         diffseq: remove useless assignment to "best"
37985         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37986         assignment.  At that point "best" is already guaranteed to be zero.
37987
37988 2009-11-20  Eric Blake  <ebb9@byu.net>
37989
37990         build: mention ftp redirector in release announcements
37991         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37992         values that used to come from cfg.mk; mention FTP redirect URL.
37993         * build-aux/announce-gen: Mention the mirror list.
37994         Suggested by Karl Berry.
37995
37996         nanosleep: improve port to mingw
37997         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37999         LIB_NANOSLEEP, but only when needed.
38000         * modules/select (Link): Document LIBSOCKET.
38001         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38002         enough.
38003
38004         nanosleep: work around cygwin bug
38005         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38006         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38007         bug.
38008         (getnow): Delete, not needed.
38009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38010         LIB_CLOCK_GETTIME.
38011         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38012         clock-time, gettime.
38013         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38014         bug.
38015         * modules/nanosleep-tests: New test.
38016         * tests/test-nanosleep.c: New file.
38017
38018         sleep: work around cygwin bug
38019         * lib/sleep.c (rpl_sleep): Work around the bug.
38020         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38021         (gl_PREREQ_SLEEP): Delete unused macro.
38022         * modules/sleep (Depends-on): Add verify.
38023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38024         * modules/unistd (Makefile.am): Substitute witness.
38025         * lib/unistd.in.h (sleep): Update prototype.
38026         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38027         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38028         * modules/sleep-tests (Depends-on): Check for alarm.
38029
38030 2009-11-20  Jim Meyering  <meyering@redhat.com>
38031
38032         maint.mk: improve sc_prohibit_magic_number_exit
38033         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38034         so it does not match uses like System.exit(1).
38035         Add comments showing how to correct all offenders.
38036
38037 2009-11-19  Eric Blake  <ebb9@byu.net>
38038
38039         xalloc-die-tests: add missing library
38040         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38041
38042         test-xvasprintf: silence compiler warnings
38043         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38044         empty string from gcc.
38045
38046 2009-11-19  Jim Meyering  <meyering@redhat.com>
38047
38048         xfreopen: new module, from coreutils
38049         * modules/xfreopen: New module.
38050         * lib/xfreopen.c: New file.
38051         * lib/xfreopen.h: New file.
38052         * MODULES.html.sh (File stream based Input/Output"): Add it.
38053
38054 2009-11-19  Eric Blake  <ebb9@byu.net>
38055
38056         manywarnings: depend on warnings
38057         * modules/manywarnings (Depends-on): Add warnings.
38058
38059         build: avoid compiler warnings
38060         * lib/select.c (rpl_select): Delete unused variable.
38061         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38062
38063 2009-11-18  Eric Blake  <ebb9@byu.net>
38064
38065         tests: avoid false negative with --with-packager
38066         * tests/test-version-etc.sh: Discard packager information.
38067         * tests/test-argp-version-etc-1.sh: Likewise.
38068         Reported by Mike Frysinger.
38069
38070         utimens: fix regression on Solaris
38071         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38072         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38073         can only change fd timestamps via futimesat.  Instead, use an
38074         additional witness macro to avoid BSD bug.
38075         Reported by Jim Meyering.
38076
38077 2009-11-17  Eric Blake  <ebb9@byu.net>
38078
38079         usleep: use it to simplify tests
38080         * modules/stat-time-tests (Depends-on): Add usleep.
38081         (configure.ac): Drop usleep check.
38082         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38083         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38084         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38085         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38086         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38087         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38088         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38089         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38090         Likewise.
38091         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38092         * tests/test-lchown.h (nap): Likewise.
38093         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38094         * tests/test-stat-time.c (nap): Likewise.
38095         * tests/test-utimens-common.h (nap): Update comments.
38096
38097         usleep: new module
38098         * modules/usleep: New file.
38099         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38100         * lib/usleep.c (usleep): Likewise.
38101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38102         * modules/unistd (Makefile.am): Substitute witnesses.
38103         * lib/unistd.in.h (usleep): Add declaration.
38104         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38105         * MODULES.html.sh (Date and time): Likewise.
38106         * modules/usleep-tests (Depends-on): New test.
38107         * tests/test-usleep.c: New file.
38108
38109         chown: work around OpenBSD bug
38110         * lib/chown.c (rpl_chown): Work around the bug.
38111         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38112         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38113         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38114         * modules/chown (Depends-on): Add stdbool.
38115         * modules/lchown (Depends-on): Likewise.
38116         * doc/posix-functions/chown.texi (chown): Document the bug.
38117         * doc/posix-functions/lchown.texi (lchown): Likewise.
38118         * tests/test-lchown.h (test_chown): Relax test.
38119
38120         mkstemp: avoid conflict with C++ keyword template
38121         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38122         * lib/mkostemp.c (mkostemp): Likewise.
38123         * lib/mkostemps.c (mkostemps): Likewise.
38124         * lib/mkstemp.c (mkstemp): Likewise.
38125         * lib/mkstemps.c (mkstemps): Likewise.
38126
38127         xalloc-die-tests: optimize
38128         * tests/test-xalloc-die.sh: Reduce number of processes.
38129
38130 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38131
38132         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38133         patch from ludo@gnu.org (Ludovic Courtès).
38134
38135 2009-11-17  Jim Meyering  <meyering@redhat.com>
38136
38137         version-etc: use proper license string
38138         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38139         * modules/version-etc-fsf: Likewise.
38140
38141 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38142
38143         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38144         printed to stdout.  Deal with EOL differences.
38145
38146 2009-11-17  Eric Blake  <ebb9@byu.net>
38147
38148         unsetenv: work around Solaris bug
38149         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38150         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38151         Reported by Jim Meyering.
38152
38153         vasnprintf: avoid compiler warnings
38154         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38155         variables.
38156         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38157
38158 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38159
38160         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38161         settings since xalloc-die is no longer the self test,
38162         xalloc-die.sh is.
38163
38164 2009-11-17  Jim Meyering  <meyering@redhat.com>
38165
38166         test-xalloc-die.sh: make the code agree with the commit log
38167         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38168         at the end, just in case you happen to have a test-xalloc-die
38169         program in some other PATH directory.
38170
38171         test-xalloc-die.sh: fix a portability bug
38172         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38173         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38174         Otherwise, argv[0] (as often seen in diagnostics) would be too
38175         system-dependent, sometimes with, and sometimes without the leading "./".
38176
38177         version-etc-fsf: relax license to LGPLv3+
38178         * modules/version-etc-fsf (License): Relax license.
38179
38180 2009-11-16  Eric Blake  <ebb9@byu.net>
38181
38182         xalloc-die-tests: avoid printing null pointer
38183         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38184         shell script.
38185         * tests/test-xalloc-die.c (program_name): Declare.
38186         * tests/test-xalloc-die.sh (tmpfiles): New file.
38187
38188         setenv, unsetenv: work around various bugs
38189         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38190         (setenv) [HAVE_SETENV]: Work around bugs.
38191         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38192         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38193         for bugs.
38194         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38195         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38197         * modules/stdlib (Makefile.am): Update substitutions.
38198         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38199         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38200         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38201         * modules/setenv-tests: New test.
38202         * modules/unsetenv-tests: Likewise.
38203         * tests/test-setenv.c: New file.
38204         * tests/test-unsetenv.c: Likewise.
38205
38206 2009-11-16  Jim Meyering  <meyering@redhat.com>
38207
38208         version-etc: relax license to LGPLv3+
38209         * modules/version-etc (License): Relax license.
38210
38211         better AC_REQUIRE expanded-before-required-warning avoidance
38212         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38213         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38214         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38215         which is no longer needed.
38216
38217 2009-11-16  Eric Blake  <ebb9@byu.net>
38218
38219         test-freading: clean up temporary file
38220         * tests/test-freading.c (main): Remove file on success, and use
38221         ASSERT more liberally.
38222         Reported by Jim Meyering.
38223
38224 2009-11-16  Jim Meyering  <meyering@redhat.com>
38225
38226         avoid new AC_REQUIRE expanded-before-required warnings
38227         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38228         merely using it.
38229         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38230         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38231
38232 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38233
38234         * tests/test-xalloc-die.c: New file.
38235         * modules/xalloc-die-tests: New file.
38236         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38237         XFAIL_TESTS so it can be appended by modules.
38238
38239 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38240
38241         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38242         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38243
38244 2009-11-14  Eric Blake  <ebb9@byu.net>
38245
38246         fnmatch: avoid compiler warning
38247         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38248         to silence compiler warning about mismatch signedness in ?:.
38249         Reported by Robert Millan.
38250
38251         intprops: add double-inclusion guard
38252         * lib/intprops.h: Allow idempotent includes.
38253         Suggested by Bruce Korb.
38254
38255         openat: detect Solaris fchownat bug
38256         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38257         penalizing glibc chownat when only lchownat is broken.
38258         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38259         trailing slash bugs.
38260         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38261         * modules/openat-tests (Files): Include more files.
38262         (Depends-on): Add mgetgroups, sleep, stat-time.
38263         (configure.ac): Add additional checks.
38264         (Makefile.am): Build new test.
38265         * tests/test-fchownat.c: New file.
38266
38267         lchown: detect Solaris and FreeBSD bug
38268         * lib/lchown.c (rpl_lchown): Work around bug.
38269         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38271         * modules/unistd (Makefile.am): Populate it.
38272         * lib/unistd.in.h (lchown): Update declaration.
38273         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38274         * modules/lchown-tests: New file.
38275         * tests/test-lchown.h (test_lchown): Likewise.
38276         * tests/test-lchown.c (main): Likewise.
38277
38278         chown: detect Solaris and FreeBSD bug
38279         * lib/chown.c (rpl_chown): Work around bug.
38280         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38281         (gl_PREREQ_CHOWN): Delete.
38282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38283         * modules/unistd (Makefile.am): Populate it.
38284         * lib/unistd.in.h (chown): Update declaration.
38285         * lib/lchown.c (chown): Update client.
38286         * modules/lchown (Depends-on): Add lstat.
38287         * doc/posix-functions/chown.texi (chown): Document the bug.
38288         * doc/posix-functions/getgroups.texi (getgroups): Document
38289         getgroups pitfall.
38290         * modules/chown-tests: New file.
38291         * tests/test-chown.h (test_chown): Likewise.
38292         * tests/test-chown.c (main): Likewise.
38293
38294 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38295
38296         gnulib-tool: correctly detect absence of m4 directories
38297         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38298
38299 2009-11-14  Jim Meyering  <meyering@redhat.com>
38300
38301         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38302         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38303
38304 2009-11-14  John W. Eaton  <jwe@gnu.org>
38305
38306         strftime.h: wrap funtion declaration in extern "C" block
38307         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38308
38309 2009-11-13  Eric Blake  <ebb9@byu.net>
38310
38311         getgroups: avoid compiler warning
38312         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38313
38314         getgroups: work around FreeBSD bug
38315         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38316         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38317         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38318         * tests/test-getgroups.c (main): Fix buffer overrun.
38319
38320         getgroups: avoid compilation failure
38321         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38322         * modules/getgroups (Depends-on): Add stdint.
38323
38324 2009-11-13  Jim Meyering  <meyering@redhat.com>
38325
38326         test-getgroups: avoid compilation failure
38327         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38328
38329 2009-11-13  Eric Blake  <ebb9@byu.net>
38330
38331         mgetgroups: new module, taken from coreutils
38332         * modules/mgetgroups: New file.
38333         * lib/mgetgroups.h: Likewise.
38334         * lib/mgetgroups.c (mgetgroups): Likewise.
38335         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38336         * MODULES.html.sh (Users and groups): Mention it.
38337
38338         getgroups: don't expose GETGROUPS_T to user
38339         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38340         an element at a time if GETGROUPS_T is wrong size.
38341         * lib/getugroups.h (getugroups): Change signature.
38342         * lib/unistd.in.h (getgroups): Likewise.
38343         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38344         signature needs fixing.
38345         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38346         AC_TYPE_GETGROUPS.
38347         * modules/group-member (Depends-on): Add getgroups.
38348         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38349         (group_member): Rely on getgroups replacement.
38350         * lib/getugroups.c (getugroups): Use gid_t.
38351         * tests/test-getgroups.c (main): Likewise.
38352         * NEWS: Mention the signature change.
38353         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38354         problem with signature.
38355         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38356         GETGROUPS_T is still useful for setgroups.
38357
38358         getgroups, getugroups: provide stubs for mingw
38359         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38360         * lib/getugroups.c (getugroups): Likewise.
38361         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38362         function.  Modernize replacement scheme.
38363         (gl_PREREQ_GETGROUPS): Delete.
38364         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38365         * modules/getgroups (configure.ac): Declare witness.
38366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38367         * modules/unistd (Depends-on): Substitute witness.
38368         * lib/unistd.in.h (getgroups): Declare replacement.
38369
38370         getgroups: avoid calling exit
38371         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38372         drop xalloc.
38373         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38374         dependencies.
38375         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38376         exiting, in the rare case of malloc failure.
38377
38378         getgroups: fix logic error
38379         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38380         has more than 20 groups.
38381         * modules/getgroups-tests: New test.
38382         * tests/test-getgroups.c: New file.
38383
38384 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38385
38386         * tests/test-base64.c: Improve.
38387
38388 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38389
38390         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38391         Blake <ebb9@byu.net>.
38392
38393 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38394
38395         * tests/test-xvasprintf.c: Add %s%s related checks.
38396
38397 2009-11-12  Eric Blake  <ebb9@byu.net>
38398
38399         version-etc: match standards.texi style
38400         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38401         and use <> only for URLs.
38402
38403 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38404
38405         fts: do not fail on a submount during traversal
38406         * lib/fts.c (fts_build): Read the stat info again after opening
38407         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38408         Original report at http://bugzilla.redhat.com/501848.
38409
38410 2009-11-12  Jim Meyering  <meyering@redhat.com>
38411
38412         bootstrap: sync from coreutils
38413         * build-aux/bootstrap (bootstrap_epilogue): New function.
38414         Use git_modules_config in one more place.  This make bootstrap's
38415         --gnulib-srcdir option more useful for testing.
38416
38417         bootstrap: generalize autoheader check
38418         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38419         AC_CONFIG_HEADERS.
38420
38421 2009-11-11  Eric Blake  <ebb9@byu.net>
38422
38423         mkfifoat: use new modules for Solaris and BSD bugs
38424         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38425         * lib/mkfifoat.c (mknodat): Split...
38426         * lib/mknodat.c (mknodat): ...into new file.
38427         * modules/mkfifoat (Files): Ship new file.
38428         (Depends-on): Add mkfifo, mknod.
38429         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38430         (Depends-on): Add symlink.
38431         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38432         redundant with test_mkfifo.h.
38433         (do_mkfifoat, do_mknodat): New helpers.
38434
38435         mknod: new module
38436         * modules/mknod: New file.
38437         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38438         * lib/mknod.c (mknod): Likewise.
38439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38440         defaults.
38441         * modules/sys_stat (Makefile.am): Substitute them.
38442         * lib/sys_stat.in.h (mknod): Declare replacement.
38443         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38444         Document it.
38445         * doc/posix-functions/mknod.texi (mknod): Likewise.
38446         * modules/mknod-tests: New test.
38447         * tests/test-mknod.c: Likewise.
38448
38449         mkfifo: new module
38450         * modules/mkfifo: New file.
38451         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38452         * lib/mkfifo.c (mkfifo): Likewise.
38453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38454         defaults.
38455         * modules/sys_stat (Makefile.am): Substitute them.
38456         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38457         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38458         Document it.
38459         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38460         * modules/mkfifo-tests: New test.
38461         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38462         from test-mkfifoat.c.
38463         * tests/test-mkfifo.c: New file.
38464
38465         readlink: detect FreeBSD bug
38466         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38467         slash on symlink.
38468         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38469         * tests/test-readlink.h (test_readlink): Enhance test.
38470
38471         symlink: detect FreeBSD bug
38472         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38473         slash on symlink.
38474         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38475         * tests/test-symlink.h (test_symlink): Enhance test.
38476
38477 2009-11-10  Eric Blake  <ebb9@byu.net>
38478
38479         link: detect FreeBSD bug
38480         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38481         symlink.
38482         * doc/posix-functions/link.texi (link): Document the bug.
38483         * tests/test-link.h (test_link): Enhance test.
38484         * tests/test-linkat.c (main): Update caller.
38485
38486         unlink, remove: detect FreeBSD bug
38487         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38488         slash on symlink.
38489         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38490         * doc/posix-functions/remove.texi (remove): Likewise.
38491         * tests/test-unlink.h (test_unlink): Enhance test.
38492         * tests/test-remove.c (main): Likewise.
38493
38494 2009-11-09  Eric Blake  <ebb9@byu.net>
38495
38496         rename: detect FreeBSD bug
38497         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38498         slash on symlink.
38499         * modules/renameat-tests (Depends-on): Add filenamecat.
38500         * tests/test-rename.h (test_rename): Allow one more errno.
38501         * tests/test-renameat.c (main): Likewise.
38502         * doc/posix-functions/rename.texi (rename): Document the bug.
38503
38504         open: detect FreeBSD bug
38505         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38506         symlink.
38507         * doc/posix-functions/open.texi (open): Document the bug.
38508         * doc/posix-functions/utimes.texi (utimes): Likewise.
38509         * tests/test-open.h (test_open): Add parameters, and test symlink
38510         handling.
38511         * tests/test-open.c (main): Adjust caller.
38512         * tests/test-fcntl-safer.c (main): Likewise.
38513         * modules/open-tests (Depends-on): Add stdbool, symlink.
38514         * modules/fcntl-safer-tests (Depends-on): Likewise.
38515         * tests/test-openat.c (main): Add test-open tests.
38516
38517         stat: detect FreeBSD bug
38518         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38519         symlink.
38520         * doc/posix-functions/stat.texi (stat): Document the bug.
38521         * tests/test-stat.h (test_stat_func): Add argument.
38522         * tests/test-stat.c (main): Adjust caller.
38523         * tests/test-fstatat.c (main): Likewise.
38524         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38525         Reported by Jim Meyering.
38526
38527 2009-11-09  James Youngman  <jay@gnu.org>
38528
38529         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38530         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38531
38532 2009-11-08  Jim Meyering  <meyering@redhat.com>
38533
38534         utimens: remove invalid futimesat call
38535         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38536         It used the file descriptor of the target file as the DIR_FD
38537         parameter and NULL as the file name.  That caused failure with
38538         errno == EFAULT on FreeBSD-8.0-rc2
38539
38540 2009-11-07  Eric Blake  <ebb9@byu.net>
38541
38542         fflush, freadseek: use fseeko, not fseek
38543         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38544         (clear_ungetc_buffer): Avoid potential problems on large files.
38545         * lib/freadseek.c (freadseek): Likewise.
38546         * modules/freadseek (Depends-on): Add fseeko.
38547         * modules/fseek (configure.ac): Set a witness.
38548         * tests/test-fflush.c (main): Use fseeko.
38549         * tests/test-fpurge.c (fseek): Disable link warning.
38550         * tests/test-freadable.c (fseek): Likewise.
38551         * tests/test-freading.c (fseek): Likewise.
38552         * tests/test-fseeko.c (fseek): Likewise.
38553         * tests/test-ftell.c (fseek): Likewise.
38554         * tests/test-ftello.c (fseek): Likewise.
38555         * tests/test-fwritable.c (fseek): Likewise.
38556         * tests/test-fwriting.c (fseek): Likewise.
38557
38558 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38559
38560         * modules/memchr (Depends-on): Drop getpagesize dependency.
38561
38562 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38563
38564         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38565         Reported by Ludovic Courtès.
38566         * build-aux/pmccabe2html: Improve example usage.
38567         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38568
38569 2009-11-06  Jim Meyering  <meyering@redhat.com>
38570
38571         do-release-commit-and-tag: New module.
38572         Automate the release-commit and tag process.
38573         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38574         * modules/do-release-commit-and-tag: New file.
38575         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38576
38577 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38578
38579         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38580         because test-select.c uses inet_pton.
38581
38582 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38583
38584         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38585         GETADDRINFO_LIB.  Bump serial number.
38586         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38587         Suggested by Eric Blake <ebb9@byu.net>.
38588
38589 2009-11-05  Eric Blake  <ebb9@byu.net>
38590
38591         strtod: detect darwin bug
38592         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38593         Reported by Leo Davis.
38594
38595         freopen-safer: new module
38596         * modules/freopen-safer: New module.
38597         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38598         * lib/freopen-safer.c (freopen_safer): New file.
38599         * lib/stdio-safer.h (freopen_safer): New declaration.
38600         * lib/stdio--.h (freopen): New override.
38601         * MODULES.html.sh (File stream based Input/Output): Mention it.
38602         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38603         freopen-safer module.
38604         * doc/posix-functions/stderr.texi (stderr): Likewise.
38605         * doc/posix-functions/stdin.texi (stdin): Likewise.
38606         * doc/posix-functions/stdout.texi (stdout): Likewise.
38607         * modules/freopen-safer-tests: New test.
38608         * tests/test-reopen-safer.c: New file.
38609
38610 2009-11-05  Jim Meyering  <meyering@redhat.com>
38611
38612         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38613         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38614
38615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38616
38617         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38618
38619 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38620
38621         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38622
38623 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38624
38625         Fix link error.
38626         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38627         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38628
38629 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38630
38631         * tests/test-func.c: Also test value of __func__.
38632
38633 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38634
38635         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38636         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38637
38638 2009-11-05  Bruno Haible  <bruno@clisp.org>
38639
38640         Fix link error.
38641         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38642         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38643         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38644
38645 2009-11-05  Bruno Haible  <bruno@clisp.org>
38646
38647         Tests for module 'inet_pton'.
38648         * modules/inet_pton-tests: New file.
38649         * tests/test-inet_pton.c: New file.
38650
38651 2009-11-05  Bruno Haible  <bruno@clisp.org>
38652
38653         Tests for module 'inet_ntop'.
38654         * modules/inet_ntop-tests: New file.
38655         * tests/test-inet_ntop.c: New file.
38656
38657 2009-11-04  Eric Blake  <ebb9@byu.net>
38658
38659         stdlib-safer: wrap all mkstemp variants
38660         * modules/mkostemp (configure.ac): Set witness.
38661         * modules/mkostemps (configure.ac): Likewise.
38662         * modules/mkstemps (configure.ac): Likewise.
38663         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38664         (mkstemps_safer): Wrap more functions.
38665         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38666         wrapping.
38667         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38668         (mkstemps_safer): Implement the wrappers.
38669
38670         mkstemps, mkostemps: new modules
38671         * modules/mkostemps: New module.
38672         * modules/mkstemps: Likewise.
38673         * lib/mkostemps.c (mkostemps): New file.
38674         * lib/mkstemps.c (mkstemps): Likewise.
38675         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38676         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38678         * modules/stdlib (Makefile.am): Substitute them.
38679         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38680         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38681         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38682         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38683         * MODULES.html.sh (File system functions): Mention them.
38684
38685         tempname: resync from glibc
38686         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38687         same values for __GT_FILE as glibc.  Abort even when assertions
38688         are disabled.
38689         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38690         match its value otherwise.  Allow idempotent inclusion.
38691         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38692         * lib/mkostemp.c (mkostemp): Likewise.
38693         * lib/mkstemp.c (mkstemp): Likewise.
38694         * lib/tmpfile.c (tmpfile): Likewise.
38695         * NEWS: Document this.
38696
38697         utimens: fix use of futimens on older Linux
38698         * lib/utimens.c (fdutimens): Use updated, rather than original,
38699         timespec to avoid bug in older Linux kernel.
38700         Reported by Simon Josefsson.
38701
38702 2009-11-04  Bruno Haible  <bruno@clisp.org>
38703
38704         Make num_processors more flexible and consistent.
38705         * lib/nproc.h (enum nproc_query): New type.
38706         (num_processors): Add a 'query' argument.
38707         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38708         (num_processors): Add a 'query' argument. Test the value of the
38709         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38710         mingw, count the number of CPUs available for the current process.
38711         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38712         Check for sched_getaffinity and sched_getaffinity_np.
38713         * modules/nproc (Depends-on): Add c-ctype, extensions.
38714         * NEWS: Mention the change.
38715
38716 2009-11-03  Bruno Haible  <bruno@clisp.org>
38717
38718         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38719
38720 2009-11-03  Jim Meyering  <meyering@redhat.com>
38721
38722         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38723         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38724         if it is defined.
38725
38726 2009-11-02  Eric Blake  <ebb9@byu.net>
38727
38728         mktime, timegm: share common declaration
38729         * lib/mktime-internal.h: New file.
38730         * lib/mktime.c: Use it rather than open-coding a declaration.
38731         * lib/timegm.c: Likewise.
38732         * modules/mktime (Files): Ship it.
38733         * modules/timegm (Files): Likewise.
38734         Suggested by Bruno Haible.
38735
38736         test-update-copyright: update test to match script changes
38737         * tests/test-update-copyright.sh: Avoid hard-coding perl
38738         location.  Don't update *.bak created by earlier runs.
38739
38740 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38741             Simon Josefsson  <simon@josefsson.org>
38742             Bruno Haible  <bruno@clisp.org>
38743
38744         Fix link error on Solaris 8.
38745         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38746         also in libnsl. Define also INET_PTON_LIB.
38747         * modules/inet_pton (Link): New section.
38748
38749 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38750             Bruno Haible  <bruno@clisp.org>
38751
38752         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38753         * modules/inet_ntop (Link): New section.
38754         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38755
38756 2009-11-02  Eric Blake  <ebb9@byu.net>
38757
38758         maint: avoid compiler warnings in m4 macros
38759         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38761
38762 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38763
38764         * m4/pmccabe2html.m4: Remove file.
38765         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38766         function.  Change maintainer.
38767         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38768         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38769         Courtès).
38770
38771 2009-10-31  Eric Blake  <ebb9@byu.net>
38772
38773         fseeko: fix m4 regression
38774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38775         regression from 2009-10-27.
38776         Reported by Ralf Wildenhues.
38777
38778 2009-10-31  Jim Meyering  <meyering@redhat.com>
38779
38780         inttostr: aesthetics and improved (compile-time) safety
38781         Define inttype_is_signed rather than inttype_is_unsigned,
38782         since the sole use is via "#if inttype_is_signed".
38783         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38784         inttype_is_unsigned.
38785         * lib/offtostr.c (inttype_is_signed): Likewise.
38786         * lib/uinttostr.c (inttype_is_signed): Likewise.
38787         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38788         * lib/inttostr.c (inttostr): Use verify to cross-check the
38789         inttype_is_signed value and the signedness of the actual type.
38790         * modules/inttostr (Depends-on): Add verify.
38791
38792 2009-10-30  Eric Blake  <ebb9@byu.net>
38793
38794         build: avoid compiler warnings
38795         * lib/fchmodat.c (lchmod): Mark unused variables.
38796         * lib/getopt.c (_getopt_initialize): Likewise.
38797         * lib/mktime.c (__mktime_internal): Provide prototype.
38798         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38799         older gcc that do not understand #pragma GCC diagnostic.
38800         * lib/uinttostr.c (inttype_is_unsigned): Define.
38801         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38802
38803 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38804
38805         stat: fix compilation on AIX
38806         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38807         only see struct stat64.
38808
38809 2009-10-30  Eric Blake  <ebb9@byu.net>
38810
38811         exclude: make more robust
38812         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38813         rather than masking a coding bug.
38814         Suggested by Bruno Haible.
38815
38816 2009-10-30  Jim Meyering  <meyering@redhat.com>
38817
38818         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38819         Rather than putting #!/usr/bin/perl on the first line,
38820         start with a variant of what's recommended by "man perlrun" that
38821         invokes the first "perl" program from your shell's search path.
38822         * build-aux/gitlog-to-changelog: Replace #!... as above.
38823         Add a "Local Variables" perl mode setting.
38824         Prompted by a patch from Ludovic Courtès.
38825         Improved by Eric Blake.
38826         * build-aux/useless-if-before-free: Likewise.
38827         * build-aux/announce-gen: Likewise.
38828         * build-aux/update-copyright: Likewise.
38829
38830 2009-10-29  Eric Blake  <ebb9@byu.net>
38831
38832         filenamecat-lgpl: adjust clients
38833         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38834         filenamecat.
38835         * modules/renameat (Depends-on): Likewise.
38836
38837         filenamecat: split into filenamecat-lgpl
38838         * modules/filenamecat-lgpl: New module.
38839         * modules/filenamecat (Files): Move library-safe files into
38840         filenamecat-lgpl.
38841         (Depends-on): Add filenamecat-lgpl.
38842         (configure.ac): Declare witness.
38843         * lib/filenamecat.h (file_name_concat): Only declare when using
38844         GPL module.
38845         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38846         Move...
38847         * lib/filenamecat-lgpl.c: ...into new file.
38848         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38849         (gl_FILE_NAME_CONCAT): Use it.
38850         * MODULES.html.sh (File system functions): Mention new module.
38851
38852         argp: avoid memory leak
38853         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38854         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38855         base_name, since the latter malloc()s and can call exit().
38856         Leak introduced 2006-07-03.
38857
38858         dirname-lgpl: adjust clients that don't need full dirname
38859         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38860         * modules/filenamecat (Depends-on): Likewise.
38861         * modules/linkat (Depends-on): Likewise.
38862         * modules/mkancesdirs (Depends-on): Likewise.
38863         * modules/mkdir (Depends-on): Likewise.
38864         * modules/openat (Depends-on): Likewise.
38865         * modules/savewd (Depends-on): Likewise.
38866         * modules/rename (Depends-on): Likewise.
38867         (License): Relax license.
38868         * modules/mkdir-tests (Depends-on): Drop progname.
38869         (Makefile.am): Delete unneeded LDADD.
38870         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38871
38872         dirname: split into dirname-lgpl
38873         * modules/dirname-lgpl: New module.
38874         * modules/dirname (Files): Move library-safe files into
38875         dirname-lgpl.
38876         (Depends-on): Add dirname-lgpl.
38877         (configure.ac): Declare witness.
38878         * modules/double-slash-root (License): Relax license.
38879         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38880         module.
38881         * lib/dirname.c (dir_len, mdir_name): Move...
38882         * lib/dirname-lgpl.c: ...into new file.
38883         * lib/basename.c (last_component, base_len): Move...
38884         * lib/basename-lgpl.c: ...into new file.
38885         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38886         (gl_DIRNAME): Use it.
38887         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38888         Mention new module.
38889         * modules/dirname-tests (Depends-on): Add progname.
38890         * tests/test-dirname.c (program_name): Delete.
38891
38892         mkdir: make safe for libraries
38893         * modules/mkdir (Depends-on): Drop xalloc.
38894         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38895         exit.
38896
38897         tests: avoid some compiler warnings
38898         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38899         literals.
38900         * tests/test-memchr.c (main): Avoid type mismatch.
38901         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38902         * tests/test-base64.c (main): Likewise.
38903         * tests/test-getdelim.c (main): Likewise.
38904         * tests/test-gethostname.c (main): Likewise.
38905         * tests/test-getline.c (main): Likewise.
38906         * tests/test-netinet_in.c (main): Likewise.
38907         * tests/test-select.c (open_server_socket, main): Likewise.
38908         * tests/test-select-stdin.c (main): Likewise.
38909         * tests/test-sockets.c (main): Likewise.
38910         * tests/test-strsignal.c (main): Likewise.
38911         * tests/test-sys_select.c (main): Likewise.
38912         * tests/test-sys_socket.c (main): Likewise.
38913         * tests/test-u64.c (main): Likewise.
38914         * tests/test-xfprintf-posix.c (main): Likewise.
38915         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38916
38917         sockets: avoid compiler warning
38918         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38919
38920         maint: detect usage(1) and other suspicious exits
38921         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38922
38923 2009-10-29  Jim Meyering  <meyering@redhat.com>
38924
38925         timespec: long-to-int truncation could make timespec_cmp malfunction
38926         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38927         a multiple of 2^32 nanoseconds as no difference.
38928
38929 2009-10-28  Jim Meyering  <meyering@redhat.com>
38930
38931         fprintftime: wrap macro code argument in "do {...} while(0)"
38932         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38933         cpy macro must be a statement that can be followed by a semicolon.
38934         Now that the else clause contains a comment and is hence longer
38935         than one line, I require curly braces.  That in turn requires
38936         that we wrap this code block in the standard do...while(0).
38937
38938         fprintftime: remove stray semicolon from previous change
38939         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38940
38941         fprintftime: avoid a warning about ignored fwrite return value
38942         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38943         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38944         that is unsafe.
38945         * modules/fprintftime (Depends-on): Add ignore-value.
38946
38947         exclude: avoid an unwarranted warning
38948         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38949
38950 2009-10-27  Eric Blake  <ebb9@byu.net>
38951
38952         fseek: avoid compilation failure when fflush is replaced
38953         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38954         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38955         module is in use.
38956         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38957         module is not in use; since REPLACE_FSEEK worked otherwise.
38958         (GNULIB_FTELLO): Likewise for ftell.
38959         Reported by Ian Beckwith and others.
38960
38961 2009-10-27  Bruno Haible  <bruno@clisp.org>
38962
38963         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38964         Reported by Jim Meyering.
38965
38966 2009-10-27  Jim Meyering  <jim@meyering.net>
38967             Bruno Haible  <bruno@clisp.org>
38968
38969         Avoid warning despite dropping the return value of fwrite.
38970         * lib/unicodeio.c: Include ignore-value.h.
38971         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38972         * modules/unicodeio (Depends-on): Add ignore-value.
38973
38974 2009-10-26  Eric Blake  <ebb9@byu.net>
38975
38976         areadlinkat: fix fallback path
38977         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38978         pointer and zero.
38979
38980 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38981
38982         Use a better IO block size for modern systems
38983         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38984         * lib/md2.c: Likewise.
38985         * lib/md4.c: Likewise.
38986         * lib/md5.c: Likewise.
38987         * lib/sha1.c: Likewise.
38988         * lib/sha256.c: Likewise.
38989         * lib/sha512.c: Likewise.
38990
38991 2009-10-22  Eric Blake  <ebb9@byu.net>
38992
38993         tests: avoid several compiler warnings
38994         * tests/test-getcwd.c (main): Avoid buffer underflow.
38995         * tests/test-getdate.c (main): String literals are not safe with
38996         putenv, so use setenv.  Declare unused argument.
38997         * modules/getdate-tests (Depends-on): Add setenv.
38998         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38999         problems with string literals in char *.
39000         * tests/test-hash.c (main): Avoid shadowing declaration.
39001         (insert_new): Treat string literals as char const *.
39002         * tests/test-getopt.h (test_getopt): Likewise.
39003         (getopt_loop): Alter types to minimize casting elsewhere.
39004         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39005         (test_getopt_long_posix): Likewise.
39006         (do_getopt_long): Add wrapper to minimize casting.
39007         * tests/test-atexit.c (clear_temp_file): Use void.
39008         * tests/test-areadlink-with-size.c (main): Declare unused
39009         arguments.
39010         * tests/test-areadlink.c (main): Likewise.
39011         * tests/test-areadlinkat-with-size.c (main): Likewise.
39012         * tests/test-areadlinkat.c (main): Likewise.
39013         * tests/test-canonicalize-lgpl.c (main): Likewise.
39014         * tests/test-canonicalize.c (main): Likewise.
39015         * tests/test-dirent-safer.c (main): Likewise.
39016         * tests/test-dirname.c (main): Likewise.
39017         * tests/test-dup2.c (main): Likewise.
39018         * tests/test-fchdir.c (main): Likewise.
39019         * tests/test-fcntl-h.c (main): Likewise.
39020         * tests/test-fcntl-safer.c (main): Likewise.
39021         * tests/test-fdopendir.c (main): Likewise.
39022         * tests/test-fdutimensat.c (main): Likewise.
39023         * tests/test-fflush.c (main): Likewise.
39024         * tests/test-filenamecat.c (main): Likewise.
39025         * tests/test-filevercmp.c (main): Likewise.
39026         * tests/test-fopen-safer.c (main): Likewise.
39027         * tests/test-fopen.c (main): Likewise.
39028         * tests/test-fpending.c (main): Likewise.
39029         * tests/test-fpurge.c (main): Likewise.
39030         * tests/test-freading.c (main): Likewise.
39031         * tests/test-fstatat.c (main): Likewise.
39032         * tests/test-fsync.c (main): Likewise.
39033         * tests/test-futimens.c (main): Likewise.
39034         * tests/test-getndelim2.c (main): Likewise.
39035         * tests/test-gettimeofday.c (main): Likewise.
39036         * tests/test-getopt.c (main): Likewise.
39037         * tests/test-i-ring.c (main): Likewise.
39038         * tests/test-inttypes.c (main): Likewise.
39039         * tests/test-link.c (main): Likewise.
39040         * tests/test-lstat.c (main): Likewise.
39041         * tests/test-math.c (main): Likewise.
39042         * tests/test-md5.c (main): Likewise.
39043         * tests/test-memchr2.c (main): Likewise.
39044         * tests/test-memrchr.c (main): Likewise.
39045         * tests/test-mkdir.c (main): Likewise.
39046         * tests/test-mkdirat.c (main): Likewise.
39047         * tests/test-mkfifoat.c (main): Likewise.
39048         * tests/test-open.c (main): Likewise.
39049         * tests/test-openat-safer.c (main): Likewise.
39050         * tests/test-openat.c (main): Likewise.
39051         * tests/test-quotearg.c (main): Likewise.
39052         * tests/test-rawmemchr.c (main): Likewise.
39053         * tests/test-readlink.c (main): Likewise.
39054         * tests/test-remove.c (main): Likewise.
39055         * tests/test-rename.c (main): Likewise.
39056         * tests/test-renameat.c (main): Likewise.
39057         * tests/test-rmdir.c (main): Likewise.
39058         * tests/test-sha1.c (main): Likewise.
39059         * tests/test-signal.c (main): Likewise.
39060         * tests/test-sigaction.c (main): Likewise.
39061         * tests/test-stat.c (main): Likewise.
39062         * tests/test-stat-time.c (main): Likewise.
39063         * tests/test-stddef.c (main): Likewise.
39064         * tests/test-stdint.c (main): Likewise.
39065         * tests/test-stdio.c (main): Likewise.
39066         * tests/test-stdlib.c (main): Likewise.
39067         * tests/test-strchrnul.c (main): Likewise.
39068         * tests/test-strerror.c (main): Likewise.
39069         * tests/test-string.c (main): Likewise.
39070         * tests/test-strtod.c (main): Likewise.
39071         * tests/test-strverscmp.c (main): Likewise.
39072         * tests/test-symlink.c (main): Likewise.
39073         * tests/test-symlinkat.c (main): Likewise.
39074         * tests/test-sys_stat.c (main): Likewise.
39075         * tests/test-sys_time.c (main): Likewise.
39076         * tests/test-time.c (main): Likewise.
39077         * tests/test-unistd.c (main): Likewise.
39078         * tests/test-unlink.c (main): Likewise.
39079         * tests/test-unlinkat.c (main): Likewise.
39080         * tests/test-utimens.c (main): Likewise.
39081         * tests/test-utimensat.c (main): Likewise.
39082         * tests/test-version-etc.c (main): Likewise.
39083         * tests/test-wchar.c (main): Likewise.
39084         * tests/test-wctype.c (main): Likewise.
39085         * tests/test-xprintf-posix.c (main): Likewise.
39086         * tests/test-posixtm.c (main): Likewise.
39087         (STREQ): Delete unused macro.
39088         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39089         shadowed variables.
39090         * tests/test-memchr.c (main): Likewise.
39091
39092 2009-10-21  Eric Blake  <ebb9@byu.net>
39093
39094         areadlinkat: avoid failure on older glibc
39095         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39096         rather than mis-comparing 0 against FUNC_RESULT of char*.
39097
39098 2009-10-21  Bruno Haible  <bruno@clisp.org>
39099
39100         * modules/stpncpy (License): Relicense under LGPLv2+.
39101         Reported by David Lutterkort <lutter@redhat.com>.
39102
39103 2009-10-20  Eric Blake  <ebb9@byu.net>
39104
39105         utimensat: work around Solaris 9 bug
39106         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39107         has trailing slash bugs.
39108         * tests/test-lutimens.h (test_lutimens): Enhance test.
39109         * tests/test-utimens.h (test_utimens): Likewise.
39110         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39111         * doc/posix-functions/utimes.texi (utimes): Likewise.
39112         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39113         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39114         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39115         * doc/posix-functions/futimens.texi (futimens): Likewise.
39116
39117         fdutimensat: new module
39118         * modules/fdutimensat: New file.
39119         * lib/fdutimensat.c (fdutimensat): Likewise.
39120         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39121         * MODULES.html.sh (File system functions): Mention module.
39122         * modules/fdutimensat-tests: New test.
39123         * tests/test-fdutimensat.c: Likewise.
39124
39125         doc: regenerate INSTALL
39126         * doc/INSTALL: Reflect recent autoconf update.
39127         * doc/INSTALL.ISO: Likewise.
39128         * doc/INSTALL.UTF-8: Likewise.
39129
39130 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39131
39132         acl: warn if ACL support is not detected
39133         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39134
39135 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39136
39137         * lib/nproc.h: Add extern "C" block for C++.
39138
39139 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39140             Bruno Haible  <bruno@clisp.org>
39141
39142         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39143         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39144         * doc/posix-functions/isalpha.texi: Likewise.
39145         * doc/posix-functions/isblank.texi: Likewise.
39146         * doc/posix-functions/iscntrl.texi: Likewise.
39147         * doc/posix-functions/isdigit.texi: Likewise.
39148         * doc/posix-functions/isgraph.texi: Likewise.
39149         * doc/posix-functions/islower.texi: Likewise.
39150         * doc/posix-functions/isprint.texi: Likewise.
39151         * doc/posix-functions/ispunct.texi: Likewise.
39152         * doc/posix-functions/isspace.texi: Likewise.
39153         * doc/posix-functions/isupper.texi: Likewise.
39154         * doc/posix-functions/isxdigit.texi: Likewise.
39155
39156 2009-10-18  Bruno Haible  <bruno@clisp.org>
39157
39158         Tests for module 'isblank'.
39159         * modules/isblank-tests: New file.
39160         * tests/test-isblank.c: New file.
39161
39162         New module 'isblank'.
39163         * lib/isblank.c: New file.
39164         * m4/isblank.m4: New file.
39165         * modules/isblank: New file.
39166         * doc/posix-functions/isblank.texi: Mention the new module.
39167
39168 2009-10-18  Bruno Haible  <bruno@clisp.org>
39169
39170         New module 'ctype'.
39171         * lib/ctype.in.h: New file.
39172         * m4/ctype.m4: New file.
39173         * modules/ctype: New file.
39174         * doc/posix-headers/ctype.texi: Mention the new module.
39175
39176 2009-10-18  Jim Meyering  <meyering@redhat.com>
39177
39178         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39179         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39180         right after its initialization, rather than farther down.
39181         Keeping these in close proximity makes it easier to ensure
39182         that each such variable is initialized.  E.g.,
39183
39184             LIB_CLOCK_GETTIME=
39185             AC_SUBST([LIB_CLOCK_GETTIME])
39186
39187         This change also increments these serial numbers.
39188         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39189         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39191
39192 2009-10-18  Bruno Haible  <bruno@clisp.org>
39193
39194         Don't let environment variables perturb build.
39195         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39196         (gl_PREREQ_GETHRXTIME): ... not here.
39197
39198 2009-10-18  Bruno Haible  <bruno@clisp.org>
39199
39200         Avoid symlink attack in localcharset module.
39201         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39202         (O_NOFOLLOW): Define fallback.
39203         (get_charset_aliases): Don't open the file if it is a symbolic link.
39204         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39205         gl_FCNTL_H.
39206         (gl_FCNTL_H): Require it.
39207         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39208         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39209         Reported by Fergal Glynn <fglynn@veracode.com>.
39210
39211 2009-10-18  Bruno Haible  <bruno@clisp.org>
39212
39213         Implement nproc for mingw.
39214         * lib/nproc.c: Include <windows.h>
39215         (num_processors): On native Windows platforms, try GetSystemInfo.
39216
39217 2009-10-18  Bruno Haible  <bruno@clisp.org>
39218
39219         Implement nproc for IRIX.
39220         * lib/nproc.c: Include <sys/sysmp.h>.
39221         (num_processors): On IRIX systems, try sysmp.
39222         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39223
39224 2009-10-18  Bruno Haible  <bruno@clisp.org>
39225
39226         Implement nproc for HP-UX.
39227         * lib/nproc.c: Include <sys/pstat.h>
39228         (num_processors): On HP-UX systems, try pstat_getdynamic.
39229         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39230         pstat_getdynamic.
39231
39232 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39233             Bruno Haible  <bruno@clisp.org>
39234
39235         Implement nproc for NetBSD, OpenBSD.
39236         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39237         (ARRAY_SIZE): New macro.
39238         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39239         * m4/nproc.m4: New file.
39240         * modules/nproc (Files): Add m4/nproc.m4.
39241         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39242         (Makefile.am): Instead, augment lib_SOURCES.
39243
39244 2009-10-18  Bruno Haible  <bruno@clisp.org>
39245
39246         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39247         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39248         sys/param.h.
39249
39250 2009-10-16  Eric Blake  <ebb9@byu.net>
39251
39252         utimensat: new module
39253         * modules/utimensat: New file.
39254         * lib/utimensat.c (utimensat): Likewise.
39255         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39256         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39257         so we can work around Linux bugs.
39258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39259         * modules/sys_stat (Makefile.am): Substitute them.
39260         * lib/sys_stat.in.h (utimensat): Declare it.
39261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39262         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39263         * modules/utimensat-tests: New test.
39264         * tests/test-utimensat.c: Likewise.
39265
39266         utimens: let lutimens work on non-symlinks
39267         * lib/utimens.c (lutimens): Fall back to utimens rather than
39268         failing with ENOSYS, when file is not a symlink.
39269         (utimens): Reduce redirection.
39270         * tests/test-lutimens.h (test_lutimens): Update test to cover
39271         non-symlinks.
39272         * tests/test-utimens.h (test_utimens): Update test to cover
39273         symlinks.
39274         * tests/test-utimens.c (main): Update caller.
39275
39276         utimens: cache whether utimensat syscall works
39277         * lib/utimens.c (utimensat_works_really): New cache variable.
39278         (fdutimens, lutimens): Use it to avoid failing syscall.
39279
39280         test-stat-time, test-utimens: improve portability
39281         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39282         ext4 on alpha, and for cygwin.
39283         * tests/test-utimens-common.h: New file.
39284         (nap): Factor delays into single function.
39285         * tests/test-lutimens.h (test_lutimens): Use new header.
39286         * tests/test-futimens.h (test_futimens): Likewise.
39287         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39288         timestamps to occur from same machine, as was done previously for
39289         test_utimens.
39290         * modules/utimens-tests (Files): Ship new file.
39291         * modules/futimens-tests (Files): Likewise.
39292         Reported in part by Jim Meyering.
39293
39294         sys_stat: sort replacement declarations
39295         * lib/sys_stat.in.h: Sort declarations.
39296         * lib/futimens.c (futimens): Fix typo.
39297
39298 2009-10-15  Jim Meyering  <meyering@redhat.com>
39299
39300         don't let environment settings perturb build
39301         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39302         could cause a configure-time and/or build-time malfunction.
39303         Typically, a configure-time function-in-library test is performed
39304         via code like this:
39305
39306           LIB_VAR=
39307           AC_SUBST([LIB_VAR])
39308           prefix_saved_LIBS=$LIBS
39309             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39310                        [test "$ac_cv_search_FUNC" = "none required" ||
39311                         LIB_VAR=$ac_cv_search_FUNC])
39312           LIBS=$prefix_saved_LIBS
39313
39314         However, in each of the files affected by this change, the LIB_VAR=
39315         initialization was omitted.  Thus, when set in the environment, its
39316         value would propagate into generated Makefiles when FUNC is not found
39317         in LIB_NAME.
39318         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39319         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39321
39322 2009-10-14  Eric Blake  <ebb9@byu.net>
39323
39324         fchdir: avoid infinite recursion in mingw
39325         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39326         recursing.
39327
39328         test-stat-time: port to mingw
39329         * tests/test-stat-time.c (force_unlink): Return a value.
39330         (test_ctime) [W32]: Fix compilation error.
39331         (nap): Don't call usleep with too large an argument.  Use
39332         force_unlink.
39333         * doc/pastposix-functions/usleep.texi (usleep): Document the
39334         portability issue.
39335
39336 2009-10-13  Jim Meyering  <meyering@redhat.com>
39337
39338         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39339         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39340         * modules/pipe-filter-ii: Likewise.
39341         * modules/sys_socket-tests: Likewise.
39342         * modules/tsearch-tests: Likewise.
39343         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39344         (check): Depend on it.
39345
39346 2009-10-12  Eric Blake  <ebb9@byu.net>
39347
39348         utimens-tests: port to NFS file systems
39349         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39350         comparisons to avoid spurious failures from timestamp drift
39351         between NFS machines.
39352
39353 2009-10-12  Eric Blake  <ebb9@byu.net>
39354
39355         stat-time-tests: minor cleanups
39356         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39357         * tests/test-stat-time.c (nap): Separate assignment from call.
39358         Suggested by Paolo Bonzini and Bruno Haible.
39359
39360         sys_stat: guarantee struct timespec
39361         * lib/sys_stat.in.h (includes): Always include <time.h>
39362         * modules/sys_stat (Depends-on): Add time.
39363         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39364         mode_t permission values.
39365         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39366         get at subsecond timestamps.
39367
39368 2009-10-10  Eric Blake  <ebb9@byu.net>
39369
39370         futimens: new module
39371         * modules/futimens: New file.
39372         * lib/futimens.c (futimens): Likewise.
39373         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39374         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39375         we can work around Linux bugs.
39376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39377         * modules/sys_stat (Makefile.am): Substitute them.
39378         * lib/sys_stat.in.h (futimens): Declare it.
39379         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39380         * doc/posix-functions/futimens.texi (futimens): Likewise.
39381         * modules/futimens-tests: New test.
39382         * tests/test-futimens.c: Likewise.
39383
39384         utimens: introduce fdutimens
39385         * lib/utimens.h (fdutimens): New prototype.
39386         * lib/utimens.c (gl_futimens): Move guts...
39387         (fdutimens): ...to new interface.
39388         * tests/test-utimens.c (do_fdutimens): Use it.
39389
39390         utimens: add UTIME_NOW and UTIME_OMIT support
39391         * lib/utimens.c (validate_timespec, update_timespec): New helper
39392         functions.
39393         (gl_futimens, lutimens): Use them.
39394         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39395         stdbool, sys_stat.
39396         (Link): Mention resulting library dependency.
39397         * modules/utimecmp (Link): Likewise.
39398         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39399         (Makefile.am): Pick up library dependency.
39400         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39401         definition.
39402         * tests/test-sys_stat.c: Test the definitions.
39403         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39404         * NEWS: Document library dependency.
39405
39406         utimecmp: support symlink timestamps
39407         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39408         hashing when possible.  Use pathconf when available.
39409         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39410         * modules/utimecmp (Depends-on): Add lstat.
39411
39412         utimens: add lutimens interface
39413         * lib/utimens.c (lutimens): New function.
39414         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39415         * lib/utimens.h (lutimens): Declare new interface.
39416         * tests/test-utimens.c (main): Enhance test.
39417         * tests/test-lutimens.h (test_lutimens): New file.
39418         * modules/utimens-tests (Files): Distribute it.
39419         (Depends-on): Add symlink.
39420         (configure.ac): Check for usleep.
39421
39422         utimens: validate futimens usage
39423         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39424         fewer syscalls on failure later on.  Avoid compiler warning on
39425         mingw.
39426         * modules/utimens (Depends-on): Add dup2.
39427
39428         utimens: add test
39429         * modules/utimens-tests: New test.
39430         * tests/test-utimens.h: New file.
39431         * tests/test-futimens.h: Likewise.
39432         * tests/test-utimens.c: Likewise.
39433
39434         doc: mention timestamp portability issues
39435         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39436         instead.
39437         * doc/posix-functions/utime.texi (utime): Likewise.
39438         * doc/posix-functions/utimes.texi (utimes): Likewise.
39439         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39440         instead.
39441         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39442         module.
39443         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39444         Mention weakness with symlink timestamps.
39445         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39446         to utimensat/futimens instead.
39447         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39448
39449         test-dup2: enhance test
39450         * tests/test-dup2.c (main): Also check AT_FDCWD.
39451
39452         test-stat-time: avoid more spurious failures
39453         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39454         xfs; and avoid race if the two timestamps cross quantization edge.
39455
39456         relocatable: prefer 'file system' over 'filesystem'
39457         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39458         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39459         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39460         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39461         * lib/relocatable.c (compute_curr_prefix): Likewise.
39462
39463 2009-10-10  Jim Meyering  <meyering@redhat.com>
39464
39465         stat-time-tests: check for the usleep function
39466         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39467
39468 2009-10-10  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/xnanosleep: Put the Link section after the Include section.
39471
39472 2009-10-09  Eric Blake  <ebb9@byu.net>
39473
39474         dup2: work around FreeBSD 6.1 bug
39475         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39476         * doc/posix-functions/dup2.texi (dup2): Document it.
39477         Reported by Nelson H. F. Beebe and Jim Meyering.
39478
39479         test-stat-time: port to buggy NFS clients
39480         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39481         (test_ctime): Also skip test if mtime and ctime are skewed.
39482
39483         maint: prefer 'file system' over 'filesystem'
39484         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39485         * doc/posix-functions/lstat.texi (lstat): Likewise.
39486         * lib/file-has-acl.c (file_has_acl): Likewise.
39487         * lib/fwriteerror.c [TEST]: Likewise.
39488         * tests/test-areadlink.h (test_areadlink): Likewise.
39489         * tests/test-areadlinkat-with-size.c (main): Likewise.
39490         * tests/test-areadlinkat.c (main): Likewise.
39491         * tests/test-canonicalize-lgpl.c (main): Likewise.
39492         * tests/test-canonicalize.c (main): Likewise.
39493         * tests/test-fstatat.c (main): Likewise.
39494         * tests/test-linkat.c (main): Likewise.
39495         * tests/test-lstat.h (test_lstat_func): Likewise.
39496         * tests/test-mkdir.h (test_mkdir): Likewise.
39497         * tests/test-readlink.h (test_readlink): Likewise.
39498         * tests/test-remove.c (main): Likewise.
39499         * tests/test-rename.h (test_rename): Likewise.
39500         * tests/test-renameat.c (main): Likewise.
39501         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39502         * tests/test-symlink.h (test_symlink): Likewise.
39503         * tests/test-symlinkat.c (main): Likewise.
39504         * tests/test-unlink.h (test_unlink_func): Likewise.
39505         * tests/test-unlinkat.c (main): Likewise.
39506
39507         maint: make realtime library usage explicit
39508         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39509         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39510         * modules/settime (Link): Likewise.
39511         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39512
39513         test-stat-time: speed up execution
39514         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39515         warning on mingw.
39516         (nap): New helper function.
39517         (prepare_test): Use it to reduce sleep time.
39518         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39519         execution.
39520         * modules/stat-time-tests (configure.ac): Check for usleep.
39521
39522 2009-10-09  Jim Meyering  <meyering@redhat.com>
39523
39524         selinux-h: always use getfilecon wrappers
39525         * lib/getfilecon.c: New file.
39526         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39527         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39528         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39529         (fgetfilecon): Provide a stub.
39530         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39531         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39532         file unconditionally.
39533         When <selinux/selinux.h> is found, arrange to use wrappers.
39534         * modules/selinux-h (Files): Add getfilecon.c.
39535         (Makefile.am): Substitute include-next-related bits
39536         into the now-always-generated selinux/selinux.h file.
39537         * doc/glibc-functions/lgetfilecon.texi: New file.
39538         * doc/glibc-functions/fgetfilecon.texi: New file.
39539         * doc/glibc-functions/getfilecon.texi: New file.
39540         * doc/glibc-functions/getfilecon-desc.texi: New file.
39541         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39542         which to pull in the new files.
39543         * MODULES.html.sh (Misc): Add selinux-h.
39544
39545 2009-10-08  Jim Meyering  <meyering@redhat.com>
39546
39547         unistd: fix comment typo
39548         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39549
39550 2009-10-08  Eric Blake  <ebb9@byu.net>
39551
39552         areadlink: use SIZE_MAX consistently
39553         * modules/areadlink (Depends-on): Add stdint.
39554         * modules/areadlink-with-size (Depends-on): Likewise.
39555         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39556         gives NULL; drop sys/types, since unistd gives size_t; and add
39557         stdint for SIZE_MAX.
39558         (SIZE_MAX): Rely on headers.
39559         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39560         and add stdint.
39561         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39562         (SIZE_MAX): Likewise.
39563         (INITIAL_BUF_SIZE): Turn into enum.
39564         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39565
39566 2009-10-08  Jim Meyering  <meyering@redhat.com>
39567
39568         areadlinkat: avoid compilation failure
39569         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39570         Fix typo in comment.
39571
39572 2009-10-07  Eric Blake  <ebb9@byu.net>
39573
39574         areadlinkat-with-size: new module
39575         * modules/areadlinkat-with-size: New module.
39576         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39577         * lib/areadlink.h (areadlinkat): Declare it.
39578         * MODULES.html.sh (File system functions): Mention it.
39579         * modules/areadlinkat-with-size-tests: New test.
39580         * tests/test-areadlinkat-with-size.c: New file.
39581
39582         xreadlinkat: new module
39583         * modules/xreadlinkat: New module.
39584         * lib/xreadlinkat.c (xreadlinkat): New file.
39585         * lib/xreadlink.h (xreadlinkat): Declare it.
39586         * MODULES.html.sh (File system functions): Mention it.
39587
39588         areadlinkat: new module
39589         * lib/at-func.c (FUNC_FAIL): New define.
39590         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39591         * modules/areadlinkat: New module.
39592         * lib/linkat.c (areadlinkat): Move...
39593         * lib/areadlinkat.c (areadlinkat): ...to new file.
39594         * lib/areadlink.h (areadlinkat): Declare it.
39595         * modules/linkat (Depends-on): Add areadlinkat.
39596         * MODULES.html.sh (File system functions): Mention it.
39597         * modules/areadlinkat-tests: New test.
39598         * tests/test-areadlinkat.c: New file.
39599
39600         areadlink, areadlink-with-size: add tests
39601         * modules/areadlink-tests: New test.
39602         * modules/areadlink-with-size-tests: Likewise.
39603         * tests/test-areadlink.h: New file.
39604         * tests/test-areadlink.c: Likewise.
39605         * tests/test-areadlink-with-size.c: Likewise.
39606
39607         maint: minor cleanups
39608         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39609         _UNUSED_PARAMETER_ instead.
39610         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39611         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39612         * modules/linkat-tests (Files): Distribute test-link.h.
39613
39614         openat, utimens: whitespace cleanup
39615         * lib/openat.c: Prefer space throughout, rather than mix of 8
39616         spaces vs. tabs.
39617         * lib/at-func.c: Likewise.
39618         * lib/utimens.c: Likewise.
39619
39620         openat: avoid using wrong fd
39621         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39622         working directory chooses same fd.
39623         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39624
39625         mkdir, mkdirat: fix cygwin 1.5.x bug
39626         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39627         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39628         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39629         bug.
39630         (gl_PREREQ_MKDIR): Delete unused macro.
39631         * modules/mkdir (Files): Track file rename.
39632         (configure.ac): Update macro name.
39633         * modules/openat (Depends-on): Add mkdir.
39634         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39635
39636         mkdir, mkdirat: add tests
39637         * modules/mkdir-tests: New test.
39638         * tests/test-mkdir.h: New file.
39639         * tests/test-mkdir.c: Likewise.
39640         * tests/test-mkdirat.c: Likewise.
39641         * modules/openat-tests (Files): Add new files.
39642         (Makefile.am): Run new test.
39643
39644 2009-10-06  Eric Blake  <ebb9@byu.net>
39645
39646         doc: tweak *at function documentation
39647         * doc/posix-functions/faccessat.texi (faccessat): Mention
39648         known issue with replacement.
39649         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39650         * doc/posix-functions/linkat.texi (linkat): Likewise.
39651         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39652         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39653         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39654         * doc/posix-functions/renameat.texi (renameat): Likewise.
39655         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39656
39657         openat: fix GNU/Hurd bug in unlinkat
39658         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39659         broken.
39660         * doc/posix-functions/unlink.texi (unlink): Document this.
39661         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39662
39663         fdopendir: fix GNU/Hurd bug
39664         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39665         allowing non-directory fds.
39666         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39668         * modules/dirent (Makefile.am): Substitute it.
39669         * lib/dirent.in.h (fdopendir): Declare replacement.
39670         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39671         * tests/test-fdopendir.c (main): Test something other than
39672         /dev/null, since on Hurd that behaves like a directory.
39673
39674         test-symlink: port to GNU/Hurd
39675         * tests/test-symlink.h (test_symlink): Relax expected errno.
39676
39677         doc: tweak more cygwin information
39678         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39679         now compatible with glibc.
39680         * doc/posix-functions/getopt.texi (getopt): Likewise.
39681
39682         getopt-gnu: add another test
39683         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39684         guarantee behavior relied on by m4.
39685         * tests/test-getopt.c (main): Use it.
39686         * modules/getopt-posix-tests (Depends-on): Add setenv.
39687         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39688
39689         getopt: fix compilation on darwin
39690         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39691         include.
39692         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39693         Reported by Ludovic Courtès.
39694
39695 2009-10-06  Bruno Haible  <bruno@clisp.org>
39696
39697         * modules/size_max (Description): Discourage its use.
39698         Reported by Simon Josefsson.
39699
39700 2009-10-06  Jim Meyering  <meyering@redhat.com>
39701
39702         linkat: avoid compilation failure
39703         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39704
39705 2009-10-05  Eric Blake  <ebb9@byu.net>
39706
39707         linkat: support Linux 2.6.17
39708         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39709         linkat on Linux, but allow cache variable override.
39710         * lib/linkat.c (rpl_linkat): Define override.
39711         * modules/linkat (Depends-on): Add symlinkat.
39712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39713         * modules/unistd (Makefile.am): Substitute it.
39714         * lib/unistd.in.h (linkat): Declare replacement.
39715         Reported by Pádraig Brady.
39716
39717         quotearg: port test to systems with C.UTF-8 locale
39718         * tests/test-quotearg.c (struct result_strings): Add another
39719         member, differentiating between C.ASCII and C.UTF-8 handling.
39720         (compare_strings): Add parameter.
39721         (main): Adjust all callers.
39722
39723         getopt: avoid clash with FreeBSD _getopt_internal
39724         * lib/getopt.in.h (_getopt_internal): Override the name.
39725         * lib/getopt_int.h (includes): Pick up any overrides.
39726         Reported by Reuben Thomas.
39727
39728         hash: allow C89 compilation
39729         * lib/hash.c (check_tuning): Move declaration before statement.
39730         Reported by Reuben Thomas.
39731
39732 2009-10-05  Karl Berry  <karl@gnu.org>
39733
39734         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39735
39736 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39737             Bruno Haible  <bruno@clisp.org>
39738
39739         * lib/uname.c (uname): Use a table-driven algorithm to compute
39740         Windows NT versions.
39741
39742 2009-10-04  Bruno Haible  <bruno@clisp.org>
39743
39744         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39745         program_invocation_short_name.
39746         * modules/progname (configure.ac): Test for presence of
39747         program_invocation_short_name.
39748         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39749
39750 2009-10-04  Bruno Haible  <bruno@clisp.org>
39751
39752         * lib/progname.c (set_program_name): Fix comment.
39753         Reported by Jim Meyering.
39754
39755 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39756             Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/uname.c: Include <string.h>.
39759         (uname): Do only one call to GetVersionEx in the common case.
39760
39761 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39762             Bruno Haible  <bruno@clisp.org>
39763
39764         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39765         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39766         (uname): Add support for Windows CE and various non-x86 CPU types.
39767
39768 2009-10-03  Bruno Haible  <bruno@clisp.org>
39769
39770         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39771         invocation to tests/configure.ac.
39772         Reported by Ian Beckwith <ianb@erislabs.net>.
39773
39774 2009-10-02  Eric Blake  <ebb9@byu.net>
39775
39776         fchdir: avoid compiler warning
39777         * lib/fchdir.c (canonicalize_file_name)
39778         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39779
39780         test-open: support mingw errno values
39781         * tests/test-open.h (test_open): Relax test.
39782         * tests/test-fopen.h (test_fopen): Likewise.
39783         * tests/test-openat-safer.c (main): Likewise.
39784
39785         open: fix opening directory on mingw
39786         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39787
39788         test-open: on GNU/Hurd, /dev/null is a directory
39789         * tests/test-fopen.h (main): Rename...
39790         (test_fopen): ...to this.  Use a guaranteed non-directory when
39791         confirming open behavior on trailing slash.
39792         * tests/test-openat-safer.c (main): Likewise.
39793         * tests/test-open.h (main): Likewise....
39794         (test_open): ...to this.
39795         * tests/test-fopen.c (main): Adjust caller.
39796         * tests/test-fopen-safer.c (main): Likewise.
39797         * tests/test-open.c (main): Likewise.
39798         * tests/test-fcntl-safer.c (main): Likewise.
39799         Reported by Samuel Thibault.
39800
39801         rename, fchdir: don't ignore chdir failure
39802         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39803         * lib/rename.c (rpl_rename) [W32]: Likewise.
39804         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39805         an empty destination directory if source cannot be renamed,
39806         although there is still possibility for failure.
39807         * doc/posix-functions/rename.texi (rename): Document the race.
39808         Reported by Jim Meyering.
39809
39810         maint: cleanup whitespace in recent commits
39811         * lib/rename.c (rpl_rename): Remove tabs.
39812         * tests/test-link.h (test_link): Likewise.
39813         * lib/fchdir.c (get_name): Likewise.
39814         Reported by Jim Meyering.
39815
39816 2009-10-02  Ben Pfaff  <blp@gnu.org>
39817
39818         relocatable-prog-wrapper: Add missing dependency on
39819         double-slash-root.
39820         * modules/relocatable-prog-wrapper: Add dependency.
39821         Reported by Ian Beckwith <ianb@erislabs.net>.
39822
39823 2009-10-02  Eric Blake  <ebb9@byu.net>
39824
39825         renameat: fix Solaris bugs
39826         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39827         needed fixing.
39828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39829         * modules/stdio (Makefile.am): Substitute it.
39830         * lib/stdio.in.h (renameat): Declare replacement.
39831         * lib/renameat.c (rpl_renameat): Implement fix.
39832
39833         renameat: new module
39834         * modules/renameat: New file.
39835         * lib/renameat.c (renameat): Likewise.
39836         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39838         * modules/stdio (Makefile.am): Substitute them.
39839         * lib/stdio.in.h (renameat): Declare it.
39840         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39841         * doc/posix-functions/renameat.texi (renameat): Likewise.
39842         * modules/renameat-tests: New test.
39843         * tests/test-renameat.c: Likewise.
39844
39845         rename: fix mingw bugs
39846         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39847         directory overwrite bugs.
39848
39849         rename: fix another cygwin 1.5 bug
39850         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39851         checks.
39852         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39853         unnecessary cygwin workarounds.  Also work around bug with moving
39854         full directory onto an empty one.
39855         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39856
39857         rename-dest-slash: merge into rename module
39858         * modules/rename-dest-slash (Status): Mark obsolete.
39859         (Depends-on): Add rename.
39860         (Files): Let rename do it all.
39861         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39862         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39863         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39864         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39865         * lib/rename.c (rpl_rename): Update comments.
39866
39867         rename: fix cygwin 1.5.x bugs
39868         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39869         * lib/rename.c (rpl_rename): Work around them.
39870         * modules/rename (Depends-on): Add same-inode.
39871
39872         rename: fix Solaris 10 bug
39873         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39874         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39875         was the only bug.
39876
39877         rename: fix Solaris 9 bug
39878         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39879         on non-directory.  Avoid calling exit.
39880         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39881         strdup.
39882         * modules/rename-tests (Depends-on): Drop lstat.
39883         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39884         (gl_PREREQ_RENAME): Delete unused macro.
39885
39886         rename-dest-slash: fix NetBSD bug
39887         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39888         links.
39889         * modules/rename-dest-slash (Depends-on): Add same-inode.
39890
39891         rename-tests: new test, exposes several platform bugs
39892         * modules/rename-tests: New file.
39893         * tests/test-rename.h: Likewise.
39894         * tests/test-rename.c: Likewise.
39895         * doc/posix-functions/rename.texi (rename): Improve documentation,
39896         including bugs that will eventually be fixed in gnulib.
39897
39898 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39899
39900         * lib/uname.c: Include <stdlib.h>
39901         (uname): Assume version info is available.
39902
39903 2009-10-02  Jim Meyering  <meyering@redhat.com>
39904
39905         gnu-web-doc-update: correct --help output
39906         * build-aux/gnu-web-doc-update: Make --help output relevant.
39907
39908         gnu-web-doc-update: add standard options
39909         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39910
39911         gnu-web-doc-update: New module.
39912         Use this script to automatically update the on-line web documentation
39913         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39914         * modules/gnu-web-doc-update: New file, from coreutils.
39915         * build-aux/gnu-web-doc-update: New script.
39916
39917 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39918
39919         link: LoadLibrary is not needed.
39920         * lib/link.c: Use GetModuleHandle.
39921
39922 2009-10-01  Eric Blake  <ebb9@byu.net>
39923
39924         getopt: bump serial number
39925         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39926         change.
39927
39928         tests: tighten link, rmdir, and remove tests
39929         * tests/test-link.h (includes): No need to use <config.h> here.
39930         Clean up if directory hard link was created, otherwise test for
39931         trailing '.'.
39932         * tests/test-linkat.c (main): Simplify.
39933         * tests/test-remove.c (main): Enhance test for trailing '.'.
39934         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39935
39936 2009-10-01  Jim Meyering  <meyering@redhat.com>
39937
39938         maint.mk: requiring "make major" was annoying, for a "minor" release.
39939         What is intended is "stable", to contrast with alpha and beta,
39940         so require "make stable", not "make major".
39941         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39942         (get_tool_versions): Likewise.
39943         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39944
39945 2009-09-30  Ben Pfaff  <blp@gnu.org>
39946
39947         Fix broken build of replacement for Windows tmpfile().
39948         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39949         flags argument added along with the 'mkostemp' module.
39950
39951 2009-09-28  Bruno Haible  <bruno@clisp.org>
39952
39953         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39954         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39955         to 'remove_elt'.
39956         (gl_list_remove): Update.
39957         * lib/gl_list.c (gl_list_remove): Update.
39958         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39959         to 'remove_elt'.
39960         (gl_oset_remove): Update.
39961         * lib/gl_list.c (gl_oset_remove): Update.
39962         Reported by Eric Blake.
39963
39964 2009-09-28  Eric Blake  <ebb9@byu.net>
39965
39966         doc: mention yet more cygwin 1.7 status
39967         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39968         cygwin.
39969         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39970         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39971
39972         argp: fix test failure
39973         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39974         that are not upper-case.  Pass correct range to tolower.
39975
39976 2009-09-27  Jim Meyering  <meyering@redhat.com>
39977
39978         test-yesno: work around sparc-dash here-document infelicity
39979         Without this change, the literal \177 byte in a here document
39980         would make dash 0.5.5.1-3 access uninitialized memory.
39981         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39982         Instead, use a marker, "@", and filter through tr to create the desired
39983         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39984
39985 2009-09-27  Bruno Haible  <bruno@clisp.org>
39986
39987         Disable untested support for new flavours of ACLs on AIX.
39988         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39989         progress.
39990         * lib/set-mode-acl.c (qset_acl): Likewise.
39991
39992 2008-12-07  Bruno Haible  <bruno@clisp.org>
39993
39994         Add support for new flavours of ACLs on AIX. (Untested.)
39995         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39996         (file_has_acl): Add support for newer AIX.
39997         * lib/set-mode-acl.c (qset_acl): Likewise.
39998         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39999         Rainer Tammer <tammer@tammer.net>.
40000
40001 2009-09-26  Eric Blake  <ebb9@byu.net>
40002
40003         argp: fix compilation of getopt
40004         * lib/getopt.in.h (includes): Use different guard than glibc.
40005         Reported by Sergey Poznyakoff.
40006
40007         doc: mention more cygwin 1.7 status
40008         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40009         bug.
40010         * doc/posix-functions/execl.texi (execl): Likewise.
40011         * doc/posix-functions/execle.texi (execle): Likewise.
40012         * doc/posix-functions/execlp.texi (execlp): Likewise.
40013         * doc/posix-functions/execv.texi (execv): Likewise.
40014         * doc/posix-functions/execve.texi (execve): Likewise.
40015         * doc/posix-functions/execvp.texi (execvp): Likewise.
40016         * doc/glibc-functions/canonicalize_file_name.texi
40017         (canonicalize_file_name): Cygwin 1.7 now provides this.
40018         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40019         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40020         on AT_SYMLINK_NOFOLLOW.
40021
40022 2009-09-24  Eric Blake  <ebb9@byu.net>
40023
40024         test-linkat: make test more robust
40025         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40026
40027         getopt: fix inclusion guards for cygwin
40028         * modules/getopt-posix (Depends-on): Add include-next.
40029         (Makefile.am): Substitute more items in replacement header.
40030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40031         <getopt.h>.
40032         * lib/getopt.in.h (includes): Use split inclusion guard, and
40033         prefer <getopt.h> over include <unistd.h> when one is present.
40034         (option): Also override name of 'struct option'.
40035
40036         same-inode: revert prior change; it is not yet ready
40037         * NEWS: Undo mention of this change.
40038         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40039         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40040         * lib/cycle-check.c (cycle_check): Likewise.
40041         * lib/same.c (same_name): Likewise.
40042         * lib/at-func2.c (at_func2): Likewise.
40043
40044 2009-09-23  Eric Blake  <ebb9@byu.net>
40045
40046         linkat: new module
40047         * modules/linkat: New file.
40048         * lib/at-func2.c (at_func2): Likewise.
40049         * lib/linkat.c (linkat): Likewise.
40050         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40051         * lib/openat-priv.h (at_func2): Add declaration.
40052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40053         * modules/unistd (Makefile.am): Substitute them.
40054         * lib/unistd.in.h (linkat): Declare it.
40055         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40056         * doc/posix-functions/linkat.texi (linkat): Likewise.
40057         * doc/posix-functions/link.texi (link): Tweak wording.
40058         * tests/test-link.c (main): Move guts...
40059         * tests/test-link.h (test_link): ...into new file.
40060         * modules/linkat-tests: New test.
40061         * tests/test-linkat.c: Likewise.
40062         * modules/link-tests (Files): Ship new file.
40063         (Depends-on): Add stdbool.
40064
40065         dirname: add library-safe mdir_name
40066         * lib/dirname.h (mdir_name): New prototype.
40067         * lib/dirname.c (dir_name): Move guts...
40068         (mdir_name): ...to new function that avoids xalloc_die.
40069
40070         fchdir: another mingw fix
40071         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40072         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40073         on mingw (where it has not yet been ported), and make it optional
40074         elsewhere.
40075         (_gl_register_fd): Use it.
40076
40077         same-inode: make SAME_INODE tri-state, to port to mingw
40078         * NEWS: Mention this change.
40079         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40080         st_ino always being 0.
40081         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40082         * lib/cycle-check.c (cycle_check): Likewise.
40083         * lib/same.c (same_name): Likewise.
40084
40085         lstat: avoid mingw compilation error
40086         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40087         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40088         lstat ourselves.
40089         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40090         was adequate.
40091         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40092         the checks for lstat.
40093         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40094
40095         link: fix test failure on Solaris 9
40096         * lib/link.c (rpl_link): Don't assume link will catch bogus
40097         trailing slash on source.
40098
40099         test-symlinkat: enhance test
40100         * tests/test-readlink.c (main): Move guts...
40101         * tests/test-readlink.h (test_readlink): ...into new file.
40102         * tests/test-symlink.c (main): Move guts...
40103         * tests/test-symlink.h (test_symlink): ...into new file.
40104         * tests/test-symlinkat.c (main): Use new files for further
40105         coverage.
40106         (do_symlink, do_readlink): New helper functions.
40107         * modules/symlink-tests (Files): Ship new file.
40108         (Depends-on): Add stdbool.
40109         * modules/readlink-tests (Files): Ship new file.
40110         (Depends-on): Add stdbool.
40111         * modules/symlinkat-tests (Files): Use new files.
40112
40113 2009-09-23  Eric Blake  <ebb9@byu.net>
40114
40115         readlink: document portability issue with symlink length
40116         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40117         systems have bogus st_size on symlinks, and mention the
40118         areadlink-with-size module.
40119         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40120         * doc/posix-functions/readlink.texi (readlink): Mention the
40121         areadlink module, and ERANGE failure.
40122         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40123         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40124
40125         readlink: fix Solaris 9 bug with trailing slash
40126         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40127         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40128         * doc/posix-functions/readlink.texi (readlink): Document this.
40129         * modules/readlink-tests: New test.
40130         * tests/test-readlink.c: Likewise.
40131
40132         readlink: fix cygwin 1.5.x bug with return type
40133         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40134         * lib/unistd.in.h (readlink): Use ssize_t.
40135         * lib/readlink.c (readlink): Likewise.
40136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40137         * modules/unistd (Makefile.am): Substitute it.
40138         * lib/unistd.in.h (readlink): Declare replacement.
40139         * doc/posix-functions/readlink.texi (readlink): Document this.
40140
40141         symlink: use throughout gnulib
40142         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40143         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40144         symlink is not used.
40145         * modules/symlinkat (Depends-on): Add symlink.
40146         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40147         * modules/canonicalize-tests (Depends-on): Likewise.
40148         * modules/lstat-tests (Depends-on): Likewise.
40149         * modules/openat-tests (Depends-on): Likewise.
40150         * modules/remove-tests (Depends-on): Likewise.
40151         * modules/rmdir-tests (Depends-on): Likewise.
40152         * modules/unlink-tests (Depends-on): Likewise.
40153         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40154         * tests/test-canonicalize.c (symlink): Likewise.
40155         * tests/test-fstatat.c (symlink): Likewise.
40156         * tests/test-lstat.c (symlink): Likewise.
40157         * tests/test-remove.c (symlink): Likewise.
40158         * tests/test-rmdir.c (symlink): Likewise.
40159         * tests/test-unlink.c (symlink): Likewise.
40160         * tests/test-unlinkat.c (symlink): Likewise.
40161
40162         symlink: new module, for Solaris 9 bug
40163         * modules/symlink: New file.
40164         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40165         * lib/symlink.c: Likewise.
40166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40167         * modules/unistd (Makefile.am): Substitute them.
40168         * lib/unistd.in.h (symlink): Declare replacement.
40169         * MODULES.html.sh (File system functions): Mention it.
40170         * doc/posix-functions/symlink.texi (symlink): Likewise.
40171         * modules/symlink-tests: New test.
40172         * tests/test-symlink.c: Likewise.
40173
40174 2009-09-23  Bruno Haible  <bruno@clisp.org>
40175
40176         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40177         when needed.
40178         Test case: gnulib-tool --import --with-tests atexit inttypes.
40179         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40180
40181 2009-09-23  Bruno Haible  <bruno@clisp.org>
40182
40183         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40184         subcommand, not in a subshell.
40185
40186 2009-09-22  Eric Blake  <ebb9@byu.net>
40187
40188         unistd: sort replacement declarations
40189         * lib/unistd.in.h: Sort declarations.
40190
40191         open, openat: minor optimization
40192         * lib/open.c (open): If open succeeded, len is non-zero.
40193         * lib/openat.c (rpl_openat): Likewise.
40194
40195         link-follow: ensure correct result
40196         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40197         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40198         distinguish between possible failures.
40199
40200 2009-09-21  Eric Blake  <ebb9@byu.net>
40201
40202         fts: avoid compiler warning
40203         * lib/fts.c (dirent_inode_sort_may_be_useful)
40204         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40205
40206 2009-09-19  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/progreloc.c (canonicalize_file_name): New declaration.
40209
40210 2009-09-19  Eric Blake  <ebb9@byu.net>
40211
40212         link: fix quoting
40213         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40214
40215         openat: fix openat bugs on Solaris 9
40216         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40217         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40218         * modules/openat (Depends-on): Add open.
40219         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40220         * modules/fcntl-h (Makefile.am): Substitute it.
40221         * lib/fcntl.in.h (openat): Declare replacement.
40222         * doc/posix-functions/openat.texi (openat): Document this.
40223
40224         openat: move fstatat and unlinkat into correct files
40225         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40226         compiled.
40227         * lib/openat.c (fstatat, unlinkat): Move...
40228         * lib/fstatat.c (fstatat): ...into correct files.
40229         * lib/unlinkat.c (unlinkat): Likewise.
40230
40231         openat: fix unlinkat bugs on Solaris 9
40232         * lib/unlinkat.c (unlinkat): New file.
40233         * modules/openat (Depends-on): Add unlink.
40234         (Files): Distribute it.
40235         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40236         trailing slash behavior is broken.
40237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40238         * modules/unistd (Makefile.am): Substitute it.
40239         * lib/unistd.in.h (unlinkat): Declare replacement.
40240         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40241
40242         openat: fix fstatat bugs on Solaris 9
40243         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40244         stat.
40245         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40246
40247         test-unlinkat: enhance test, to expose Solaris 9 bug
40248         * tests/test-unlink.c (main): Factor guts...
40249         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40250         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40251         * tests/test-rmdir.c (main): Adjust caller.
40252         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40253         (unlinker): New helper function.
40254         (rmdirat): Enhance check.
40255         * modules/rmdir-tests (Depends-on): Add stdbool.
40256         * modules/unlink-tests (Depends-on): Likewise.
40257         (Files): Add test-unlink.h.
40258         * modules/openat-tests (Files): Likewise.
40259         (Depends-on): Add unlinkdir.
40260
40261         test-fstatat: new test, to expose Solaris 9 bugs
40262         * tests/test-stat.c (main): Factor guts...
40263         * tests/test-stat.h (test_stat_func): ...into new file.
40264         * tests/test-lstat.c (main): Factor guts...
40265         * tests/test-lstat.h (test_lstat_func): ...into new file.
40266         * tests/test-fstatat.c: New file.
40267         * modules/stat-tests (Files): Add test-stat.h.
40268         * modules/lstat-tests (Files): Add test-lstat.h.
40269         (Depends-on): Add stdbool.
40270         * modules/openat-tests (Depends-on): Add pathmax.
40271         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40272         (Makefile.am): Run new test.
40273
40274         remove: new module, for mingw and Solaris 9 bugs
40275         * modules/remove: New file.
40276         * lib/remove.c: Likewise.
40277         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40279         * modules/stdio (Makefile.am): Use them.
40280         * lib/stdio.in.h (remove): Declare replacement.
40281         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40282         * doc/posix-functions/remove.texi (remove): Likewise.
40283         * modules/remove-tests: New test.
40284         * tests/test-remove.c: Likewise.
40285
40286         unlink: new module, for Solaris 9 bug
40287         * modules/unlink: New file.
40288         * lib/unlink.c: Likewise.
40289         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40291         * modules/unistd (Makefile.am): Use them.
40292         * lib/unistd.in.h (stat): Declare replacement.
40293         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40294         * doc/posix-functions/unlink.texi (unlink): Likewise.
40295         * modules/unlink-tests: New test.
40296         * tests/test-unlink.c: Likewise.
40297
40298         lstat: fix Solaris 9 bug
40299         * lib/lstat.c (lstat): Also check for trailing slash on
40300         non-symlink, non-directories.  Use stat module to simplify logic.
40301         * doc/posix-functions/lstat.texi (lstat): Document it.
40302         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40303         (configure.ac): Check for symlink.
40304         * tests/test-lstat.c (main): Add more tests.
40305
40306         stat: add as dependency to other modules
40307         * modules/chown (Depends-on): Add stat.
40308         * modules/euidaccess (Depends-on): Likewise.
40309         * modules/fchdir (Depends-on): Likewise.
40310         * modules/isdir (Depends-on): Likewise.
40311         * modules/link (Depends-on): Likewise.
40312         * modules/lstat (Depends-on): Likewise.
40313         * modules/mkdir-p (Depends-on): Likewise.
40314         * modules/modechange (Depends-on): Likewise.
40315         * modules/open (Depends-on): Likewise.
40316         * modules/readlink (Depends-on): Likewise.
40317         * modules/same (Depends-on): Likewise.
40318
40319         stat: fix Solaris 9 bug
40320         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40321         slash.
40322         * lib/stat.c (rpl_stat): Work around it.
40323         * doc/posix-functions/stat.texi (stat): Update documentation.
40324
40325         stat: new module, for mingw bug
40326         * modules/stat: New file.
40327         * lib/stat.c: Likewise.
40328         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40330         * modules/sys_stat (Makefile.am): Use them.
40331         * lib/sys_stat.in.h (stat): Declare replacement.
40332         * lib/openat.c (fstatat): Deal with lstat and stat being function
40333         macros.
40334         * modules/openat (Depends-on): Add inline.
40335         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40336         * doc/posix-functions/stat.texi (stat): Likewise.
40337         * modules/stat-tests: New test.
40338         * tests/test-stat.c: Likewise.
40339
40340 2009-09-19  Jim Meyering  <meyering@redhat.com>
40341
40342         syntax-check: detect unnecessary inclusion of canonicalize.h
40343         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40344
40345 2009-09-19  Eric Blake  <ebb9@byu.net>
40346
40347         canonicalize-lgpl: adjust clients to use correct header
40348         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40349         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40350         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40351         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40352         * lib/progreloc.c (includes): Likewise.
40353
40354 2009-09-19  Jim Meyering  <meyering@redhat.com>
40355
40356         test-posixtm.c: correct a comment
40357         * tests/test-posixtm.c: Correct first-line comment.
40358         Spotted by Eric Blake.
40359
40360 2009-09-16  Jim Meyering  <meyering@redhat.com>
40361
40362         posixtm-tests: make T const-correct; add a test case
40363         * tests/test-posixtm.c (T): Declare const.
40364         Add a test for -(2^31+1).
40365         Remove useless can-succeed-only-in-2002 test.
40366
40367         posixtm-tests: adjust the sole failing test
40368         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40369         expected output matches what mktime now produces.  Cross-checked via
40370         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40371
40372         posixtm: move #ifdef'd tests into a new module
40373         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40374         * tests/test-posixtm.c: ... this new file.
40375         * modules/posixtm-tests: New module.
40376
40377 2009-09-19  Eric Blake  <ebb9@byu.net>
40378
40379         openat: simplify use of at-func.c
40380         * lib/at-func.c (includes): Include prerequisites here, to
40381         simplify requirements on client files.
40382         * lib/openat-priv.h: Add double-inclusion guard.
40383         * lib/faccessat.c (includes): Simplify.
40384         * lib/fchmodat.c (includes): Likewise.
40385         * lib/fchownat.c (includes): Likewise.
40386         * lib/mkdirat.c (includes): Likewise.
40387         * lib/mkfifoat.c (includes): Likewise.
40388         * lib/symlinkat.c (includes): Likewise.
40389
40390         openat: allow return of fd 0
40391         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40392         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40393         unistd-safer.
40394         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40395         <fcntl.h>; this module does not leak fds.
40396         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40397         must be allowed to return 0, leaving openat_safer to add the
40398         safety.
40399         (openat_permissive): Avoid writing to just-opened fd 2 if
40400         restoring the current directory fails.
40401         * lib/openat-die.c (openat_restore_fail): Add comment.
40402         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40403         (save_cwd): Guarantee safe fd, but without use of open_safer.
40404         * tests/test-openat.c: New test.
40405         * modules/openat-tests (Files, Makefile.am): Distribute and build
40406         new file.
40407
40408         relocatable-prog-wrapper: fix build
40409         * modules/relocatable-prog-wrapper (Files): Update name of
40410         canonicalize m4 file, broken on 2009-09-17.
40411         Reported by emad hajjar <aleppos@hotmail.com>.
40412
40413 2009-09-19  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40416         * lib/safe-alloc.c: Likewise.
40417         Reported by Ian Beckwith <ianb@erislabs.net>.
40418
40419 2009-09-18  Bruno Haible  <bruno@clisp.org>
40420
40421         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40422         Reported by <erobles@sensacd.com.mx>.
40423
40424 2009-09-17  Eric Blake  <ebb9@byu.net>
40425
40426         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40427         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40428         slashes when checking if last component is missing.
40429         * tests/test-canonicalize.c (main): Test this.
40430
40431         canonicalize, canonicalize-lgpl: honor // if distinct from /
40432         * modules/canonicalize (Files): Add double-slash-root.m4.
40433         * modules/canonicalize-lgpl (Files): Likewise.
40434         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40435         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40436         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40437         fallback definition.
40438         (canonicalize_filename_mode): Use it to protect //.
40439         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40440         (__realpath): Likewise.
40441         * tests/test-canonicalize.c (main): Test this.
40442         * tests/test-canonicalize-lgpl.c (main): Likewise.
40443         * modules/canonicalize-tests (Depends-on): Add same-inode.
40444         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40445
40446         canonicalize-lgpl: fix glibc bug with trailing slash
40447         * m4/canonicalize-lgpl.m4: Move contents...
40448         * m4/canonicalize.m4: ...here.
40449         (gl_CANONICALIZE_LGPL): Factor realpath check...
40450         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40451         glibc 2.3.5 bug, fixed 2005-04-27.
40452         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40453         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40454         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40455         * modules/canonicalize-lgpl (Files): Manage file rename.
40456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40457         * modules/stdlib (Makefile.am): Substitute witness.
40458         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40459         is needed.
40460         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40461         replacement is required.
40462         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40463         * doc/glibc-functions/canonicalize_file_name.texi
40464         (canonicalize_file_name): Document this.
40465         * doc/posix-functions/realpath.texi (realpath): Likewise.
40466
40467         canonicalize-lgpl: reject non-directory with trailing slash
40468         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40469         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40470         catches failures in glibc 2.3.5.
40471         * tests/test-canonicalize.c (main): Likewise.
40472
40473         canonicalize-lgpl: use native realpath if it works
40474         * lib/canonicalize-lgpl.c (realpath): Guard with
40475         FUNC_REALPATH_WORKS.
40476         * lib/stdlib.in.h (realpath): Make declaration optional based on
40477         HAVE_REALPATH.
40478         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40479         native realpath works.
40480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40481         * modules/stdlib (Makefile.am): Substitute witness.
40482
40483         canonicalize, canonicalize-lgpl: use <stdlib.h>
40484         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40485         (Include): Mention <stdlib.h>.
40486         (configure.ac): Mention functions we provide.
40487         * modules/canonicalize (configure.ac): Likewise.
40488         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40489         realpath if canonicalize_file_name is missing.
40490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40491         * modules/stdlib (Makefile.am): Substitute witnesses.
40492         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40493         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40494         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40495         * NEWS: Document this.
40496         * doc/glibc-functions/canonicalize_file_name.texi
40497         (canonicalize_file_name): Likewise.
40498         * doc/posix-functions/realpath.texi (realpath): Likewise.
40499         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40500
40501         test-canonicalize: consolidate into single C program
40502         * tests/test-canonicalize.sh: Delete; move setup into...
40503         * tests/test-canonicalize.c (main): ...the program, making it
40504         easier to run in debugger.  Add some tests.
40505         * modules/canonicalize-tests (Files): Remove unused file.
40506         (Depends-on): Add progname.
40507         (configure.ac, Makefile.am): Simplify.
40508
40509         test-canonicalize-lgpl: consolidate into single C program
40510         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40511         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40512         easier to run in debugger.  Add some tests.
40513         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40514         (configure.ac, Makefile.am): Simplify.
40515
40516         canonicalize: avoid resolvepath
40517         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40518         unnecessary checks.
40519         * lib/canonicalize.c (includes): Simplify.
40520         (canonicalize_file_name): Drop resolvepath implementation.
40521         * modules/canonicalize (Depends-on): Drop filenamecat.
40522
40523         canonicalize: don't lose errno
40524         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40525         over calls to free.
40526
40527         canonicalize: simplify errno handling
40528         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40529         assignment.
40530
40531         canonicalize, canonicalize-lgpl: update module dependencies
40532         * modules/canonicalize (Depends-on): Add extensions, lstat,
40533         pathmax, stdlib.
40534         (Files): Drop pathmax.h.
40535         (configure.ac): Adjust macro name.
40536         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40537         lstat, stdlib, sys_stat.
40538         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40539         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40540         extensions.
40541         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40542         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40543         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40544         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40545         declaration, if available.
40546         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40547         we can rely on the readlink module.
40548         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40549         (includes): Use <unistd.h> unconditionally.
40550
40551 2009-09-17  Eric Blake  <ebb9@byu.net>
40552
40553         maint: make Include sections of modules consistent
40554         * modules/alloca: Use only header name; no need to list #include.
40555         * modules/alloca-opt: Likewise.
40556         * modules/arpa_inet: Likewise.
40557         * modules/canon-host: Likewise.
40558         * modules/configmake: Likewise.
40559         * modules/dirent: Likewise.
40560         * modules/eealloc: Likewise.
40561         * modules/environ: Likewise.
40562         * modules/fchdir: Likewise.
40563         * modules/fcntl: Likewise.
40564         * modules/fcntl-h: Likewise.
40565         * modules/gethrxtime: Likewise.
40566         * modules/gettime: Likewise.
40567         * modules/ignore-value: Likewise.
40568         * modules/inet_ntop: Likewise.
40569         * modules/inet_pton: Likewise.
40570         * modules/inttypes: Likewise.
40571         * modules/isnand-nolibm: Likewise.
40572         * modules/isnanf-nolibm: Likewise.
40573         * modules/mbchar: Likewise.
40574         * modules/mbfile: Likewise.
40575         * modules/mbiter: Likewise.
40576         * modules/mbuiter: Likewise.
40577         * modules/netdb: Likewise.
40578         * modules/netinet_in: Likewise.
40579         * modules/nproc: Likewise.
40580         * modules/pagealign_alloc: Likewise.
40581         * modules/poll: Likewise.
40582         * modules/printf-frexp: Likewise.
40583         * modules/pthread: Likewise.
40584         * modules/putenv: Likewise.
40585         * modules/random_r: Likewise.
40586         * modules/relocatable-prog: Likewise.
40587         * modules/search: Likewise.
40588         * modules/select: Likewise.
40589         * modules/selinux-h: Likewise.
40590         * modules/settime: Likewise.
40591         * modules/signal: Likewise.
40592         * modules/size_max: Likewise.
40593         * modules/socklen: Likewise.
40594         * modules/ssize_t: Likewise.
40595         * modules/stdarg: Likewise.
40596         * modules/stdbool: Likewise.
40597         * modules/stddef: Likewise.
40598         * modules/stdint: Likewise.
40599         * modules/stdio: Likewise.
40600         * modules/stdlib: Likewise.
40601         * modules/string: Likewise.
40602         * modules/strings: Likewise.
40603         * modules/sys_file: Likewise.
40604         * modules/sys_ioctl: Likewise.
40605         * modules/sys_select: Likewise.
40606         * modules/sys_socket: Likewise.
40607         * modules/sys_stat: Likewise.
40608         * modules/sys_time: Likewise.
40609         * modules/sys_times: Likewise.
40610         * modules/sys_utsname: Likewise.
40611         * modules/sys_wait: Likewise.
40612         * modules/sysexits: Likewise.
40613         * modules/time: Likewise.
40614         * modules/times: Likewise.
40615         * modules/tmpfile: Likewise.
40616         * modules/trim: Likewise.
40617         * modules/unistd: Likewise.
40618         * modules/wchar: Likewise.
40619         * modules/wctype: Likewise.
40620
40621 2009-09-17  Bruno Haible  <bruno@clisp.org>
40622
40623         Make getdate.y compile on QNX and NetBSD 5 / i386.
40624         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40625         TIME_T_FITS_IN_LONG_INT.
40626         * lib/getdate.y (long_time_t): New type.
40627         (relative_time): Change type of 'seconds' field to long_time_t.
40628         (get_date): Update types of local variables. Check against overflow
40629         during conversion from long_time_t to time_t.
40630         Reported by Matt Kraai <kraai@ftbfs.org>
40631         and Hasso Tepper <hasso@netbsd.org>.
40632
40633 2009-09-17  Bruno Haible  <bruno@clisp.org>
40634
40635         * modules/COPYING: Update copyright years.
40636         * modules/README: Likeiwse.
40637         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40638         Reported by Ian Beckwith <ianb@erislabs.net>.
40639
40640 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40641
40642         * users.txt: Update references for gnuit package.
40643
40644 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40645
40646         * m4/getdelim.m4: Fix typo in copyright line.
40647
40648 2009-09-17  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/atoll.c: Use the standard header with GPL copyright.
40651         * lib/argz.in.h: Likewise.
40652         * lib/glob.c: Likewise.
40653         * lib/glob-libc.h: Likewise.
40654         * lib/random_r.c: Likewise.
40655         * lib/siglist.h: Likewise.
40656         * lib/strsignal.c: Likewise.
40657         Reported by Ian Beckwith <ianb@erislabs.net>.
40658
40659 2009-09-17  Eric Blake  <ebb9@byu.net>
40660
40661         rmdir: ensure correct dependency order
40662         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40663
40664 2009-09-17  Bruno Haible  <bruno@clisp.org>
40665
40666         Disable assertion that fails on NetBSD 5 / i386.
40667         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40668         Reported by Sam Steingold <sds@gnu.org>
40669         and Hasso Tepper <hasso@netbsd.org>.
40670
40671 2009-09-16  Eric Blake  <ebb9@byu.net>
40672
40673         unlinkdir: port to mingw
40674         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40675         on which no one can unlink a directory.
40676
40677         stdlib: sort witness names
40678         * modules/stdlib (Makefile.am): Sort replacements.
40679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40680         * lib/stdlib.in.h: Likewise.
40681
40682         parse-duration-tests: avoid link failure
40683         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40684         LIBINTL.
40685         Reported by Tom G. Christensen.
40686
40687         openat-tests: ensure unlinkat behaves like rmdir
40688         * tests/test-rmdir.c (main): Factor guts...
40689         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40690         * modules/rmdir-tests (Files): Ship new file.
40691         * modules/openat-tests: New test.
40692         * tests/test-unlinkat.c: Likewise.
40693
40694         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40695         * modules/rmdir-errno (Status, Notice): Now obsolete.
40696
40697         rmdir: work around cygwin 1.5.x and mingw bugs
40698         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40699         * lib/rmdir.c (rmdir): Work around it.
40700         * modules/rmdir (Status, Notice): No longer obsolete.
40701         (Files): Add dos.m4.
40702         (Depends-on): Add unistd.
40703         (configure.ac): Set witnesses.
40704         (License): Relax to LGPLv2+.
40705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40706         * modules/unistd (Makefile.am): Substitute witnesses.
40707         * lib/unistd.in.h (rmdir): Declare replacement.
40708         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40709         * modules/rmdir-tests: New tests.
40710         * tests/test-rmdir.c: Likewise.
40711
40712 2009-09-15  Eric Blake  <ebb9@byu.net>
40713
40714         fchdir: improve use of replacement functions
40715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40716         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40717         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40718         REPLACE_CLOSEDIR.
40719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40720         * modules/sys_stat (Makefile.am): Substitute correct witness.
40721         * modules/dirent (Makefile.am): Likewise.
40722         * modules/unistd (Makefile.am): Likewise.
40723         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40724         * lib/unistd.in.h (dup): Likewise.
40725         * lib/sys_stat.in.h (fstat): Likewise.
40726
40727         maint: ignore gnulib-tool temp files
40728         * .gitignore: Ignore files created during gnulib-tool --test.
40729
40730 2009-09-13  Jim Meyering  <meyering@redhat.com>
40731
40732         posixtm: don't reject a time that specify "60" as the number of seconds
40733         * lib/posixtm.c (posixtime): The code to reject invalid dates
40734         would also reject a time specified with the .60 suffix.
40735         But POSIX allows that, in order to accommodate leap seconds.
40736         So don't reject it.
40737         (main): Adjust tests accordingly.
40738         * modules/posixtm (Depends-on): Add stpcpy.
40739
40740 2009-09-11  Jim Meyering  <meyering@redhat.com>
40741
40742         announce-gen: include [$release_type] in emitted Subject:
40743         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40744         e.g., [stable] in the emitted Subject: line.
40745
40746 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40747
40748         Remove obsolete macros from several modules.
40749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40750         obsolete Autoconf macros with their modern counterparts.
40751         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40752         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40754         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40755         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40756         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40758         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40759         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40760         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40761         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40762         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40763         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40764         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40765         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40766         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40767         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40768         * m4/time_r.m4 (gl_TIME_R): Likewise.
40769         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40770         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40771         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40772
40773         Fix copyright header in build-aux scripts.
40774         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40775         recommendation.
40776         * build-aux/ncftpput-ftp: Likewise.
40777         * build-aux/update-copyright: Likewise.
40778
40779 2009-09-09  Eric Blake  <ebb9@byu.net>
40780
40781         test-link: allow Linux choice of errno
40782         * tests/test-link.c (main): Relax test for alternate error.
40783
40784         strndup: fix improper m4 caching
40785         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40786         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40787         (gl_PREREQ_STRNDUP): Delete.
40788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40789         * modules/string (Makefile.am): Substitute it.
40790         * lib/string.in.h (strndup): Modernize prototype.
40791
40792         getcwd: port to mingw
40793         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40794         different from the POSIX assumptions made throughout the getcwd
40795         module; fortunately, the mingw getcwd does not need replacement.
40796         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40797         * modules/getcwd-tests: New test.
40798         * tests/test-getcwd.c: Likewise.
40799
40800         link: fix platform bugs
40801         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40802         * lib/link.c (link): Work around them.  Fix related mingw bug.
40803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40804         * modules/unistd (Makefile.am): Substitute it.
40805         * lib/unistd.in.h (link): Declare replacement.
40806         * doc/posix-functions/link.texi (link): Document this.
40807         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40808
40809         test-link: consolidate into single C program, test more cases
40810         * tests/test-link.sh: Delete.
40811         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40812         at least Cygwin and Solaris.
40813         * modules/link-tests (Files): Remove unused file.
40814         (Depends-on): Add errno, sys_stat.
40815         (Makefile.am): Simplify.
40816
40817 2009-09-08  Bruno Haible  <bruno@clisp.org>
40818
40819         Work around towlower, towupper bug on mingw.
40820         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40821         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40822         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40823         * doc/posix-functions/towupper.texi: Likewise.
40824         Reported by Eric Blake.
40825
40826 2009-09-08  Jim Meyering  <meyering@redhat.com>
40827
40828         build: don't try to run autoheader if we don't use it
40829         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40830         is not used in configure.ac.
40831
40832 2009-09-08  Eric Blake  <ebb9@byu.net>
40833
40834         euidaccess: fix compilation error
40835         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40836
40837         rawmemchr: relax license
40838         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40839         okay.
40840         Reported by Jim Meyering.
40841
40842         mkfifoat: new module
40843         * modules/mkfifoat: New file.
40844         * lib/mkfifoat.c: Likewise.
40845         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40847         * modules/sys_stat (Makefile.am): Use them.
40848         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40849         * MODULES.html.sh (File system functions): Mention module.
40850         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40851         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40852         * modules/mkfifoat-tests: New test.
40853         * tests/test-mkfifoat.c: Likewise.
40854
40855         strchrnul: relax license
40856         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40857         okay.
40858         Reported by Jim Meyering.
40859
40860 2009-09-08  Eric Blake  <ebb9@byu.net>
40861
40862         fstatat: fix compilation on Solaris
40863         * lib/fstatat.c (includes): Add fcntl.h.
40864         Reported by Pádraig Brady.
40865
40866 2009-09-07  Eric Blake  <ebb9@byu.net>
40867
40868         rename: modernize replacement
40869         * modules/rename (Depends-on): Add stdio.
40870         (configure.ac): Declare witness.
40871         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40872         stdio take care of replacement.
40873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40874         * modules/stdio (Makefile.am): Substitute them.
40875         * lib/stdio.in.h (rename): Declare replacement.
40876         * lib/rename.c (includes): Allow cross-compilation to non-windows
40877         machines.
40878         * doc/posix-functions/rename.texi (rename): Improve
40879         documentation.
40880
40881         stdio: sort witness names
40882         * modules/stdio (Makefile.am): Sort replacements.
40883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40884         * lib/stdio.in.h: Likewise.
40885
40886         getcwd: minor cleanups
40887         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40888         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40889
40890         openat: provide more convenience names
40891         * modules/faccessat (configure.ac): Add C witness.
40892         * lib/unistd.in.h (readlinkat): Fix typo.
40893         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40894         convenience wrappers.
40895         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40896         wrappers in syntax checks.
40897
40898 2009-09-06  Eric Blake  <ebb9@byu.net>
40899
40900         doc: fix comments in recent patches
40901         * lib/faccessat.c: Mention correct function.
40902         * lib/fchmodat.c: Likewise.
40903         * lib/fchownat.c: Likewise.
40904         * lib/symlinkat.c: Likewise.
40905         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40906         constants.
40907
40908         faccessat, symlinkat: continue cleanup of previous patch
40909         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40910         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40911         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40913         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40914         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40915         set.
40916
40917 2009-09-06  Bruno Haible  <bruno@clisp.org>
40918
40919         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40920         (fstatat): Declare if GNULIB_FSTATAT is set.
40921         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40922         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40923         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40924         * modules/fcntl-h (Files): Remove m4/openat.m4.
40925         * modules/sys_stat (Files): Remove m4/openat.m4.
40926         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40927         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40928         * modules/unistd (Files): Remove m4/openat.m4.
40929         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40930         GNULIB_OPENAT.
40931         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40932         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40934         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40935         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40936         gl_OPENAT_DEFAULTS.
40937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40938         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40939         Don't require gl_OPENAT_DEFAULTS.
40940         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40941         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40942         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40943         (gl_OPENAT_DEFAULTS): Remove macro.
40944
40945 2009-09-06  Bruno Haible  <bruno@clisp.org>
40946
40947         * modules/openat (configure.ac): Remove unneeded witness.
40948
40949 2009-09-06  Bruno Haible  <bruno@clisp.org>
40950
40951         Set errno to ENOSYS when a function is entirely unsupported.
40952         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40953         EOPNOTSUPP.
40954         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40955         * modules/chown (Depends-on): Remove errno.
40956
40957 2009-09-06  Bruno Haible  <bruno@clisp.org>
40958
40959         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40960
40961 2009-09-06  Bruno Haible  <bruno@clisp.org>
40962
40963         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40964
40965 2009-09-06  Ben Pfaff  <blp@gnu.org>
40966             Bruno Haible  <bruno@clisp.org>
40967
40968         Work around a glibc bug in strtok_r.
40969         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40970         Undefine if UNDEFINE_STRTOK_R is set.
40971         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40973         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40975         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40976         UNDEFINE_STRTOK_R.
40977         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40978
40979 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40980
40981         exclude: minor fix
40982         * lib/exclude.c: Include wctype.h
40983
40984 2009-09-06  Akim Demaille  <demaille@gostai.com>
40985
40986         bootstrap: improve error message
40987         * build-aux/bootstrap (find_tool): Upon failure, report the list
40988         of candidates.
40989         Honor the initial value of the envvar.
40990
40991 2009-09-05  Eric Blake  <ebb9@byu.net>
40992
40993         symlinkat: new module
40994         * modules/symlinkat: New file.
40995         * lib/symlinkat.c: Likewise.
40996         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40998         * modules/unistd (Makefile.am): Use them.
40999         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41000         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41001         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41002         * MODULES.html.sh (File system functions): Mention module.
41003         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41004         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41005         * modules/symlinkat-tests: New test.
41006         * tests/test-symlinkat.c: Likewise.
41007
41008         test-openat-safer: add more checks
41009         * tests/test-openat-safer.c (main): Check more code paths.
41010
41011 2009-09-05  Jim Meyering  <meyering@redhat.com>
41012
41013         syntax-check: detect unnecessary inclusion of openat.h
41014         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41015
41016 2009-09-05  Bruno Haible  <bruno@clisp.org>
41017
41018         Support towlower, towupper.
41019         * doc/posix-functions/towlower.texi: Mention module wctype.
41020         * doc/posix-functions/towupper.texi: Likewise.
41021         * lib/wctype.in.h (towlower, towupper): New functions.
41022         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41023         (ASSERT): New macro.
41024         (e): New variable.
41025         (main): Test also towlower, towupper. Test WEOF argument.
41026         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41027
41028 2009-09-05  Bruno Haible  <bruno@clisp.org>
41029
41030         Fix conversion behaviour when the input is invalid.
41031         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41032         mark occurring in first pass of indirect conversion.
41033         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41034         input.
41035         Found by clang's static analyzer.
41036
41037 2009-09-05  Bruno Haible  <bruno@clisp.org>
41038
41039         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41040         where direct conversion is possible.
41041
41042 2009-09-04  Eric Blake  <ebb9@byu.net>
41043
41044         openat: fail with ENOENT on empty name
41045         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41046         buffer.
41047
41048         link-follow: fix logic bug in prior patch
41049         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41050         reversed sense of yes and no in prior patch.  Avoid confusing
41051         compilation failure with desired semantics.
41052
41053         link-follow: accomodate mingw and cross-compilation
41054         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41055         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41056         cross-compilation results to -1, to make linkat easier to
41057         implement when cross-compiling.  Trivially support mingw.
41058         * modules/link-follow (configure.ac): Call new name.
41059         * NEWS: Mention this.
41060
41061 2009-09-03  Eric Blake  <ebb9@byu.net>
41062
41063         faccessat: compile replacement
41064         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41065         needed.
41066
41067         fts: fix compilation error
41068         * lib/fts.c (includes): Re-add "openat.h", for
41069         openat_needs_fchdir.
41070
41071         faccessat: new module
41072         * modules/faccessat: New file.
41073         * lib/faccessat.c: Likewise.
41074         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41076         * modules/unistd (Makefile.am): Use it.
41077         * lib/unistd.in.h (faccessat): Declare it.
41078         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41079         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41080         * MODULES.html.sh (File system functions): Mention it.
41081         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41082         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41083
41084         euidaccess: prefer POSIX over non-standard implementation
41085         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41086         * lib/euidaccess.c (euidaccess): Use it if available.
41087
41088         openat: make template easier to use
41089         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41090         AT_FUNC_F2 to be undefined.
41091         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41092         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41093         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41094         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41095         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41096         Likewise.
41097         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41098         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41099         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41100         Likewise.
41101
41102         openat: declare in POSIX headers
41103         * NEWS: Mention this.
41104         * modules/openat (configure.ac): Declare witnesses.
41105         (Depends-on): Add fcntl-h, sys_stat, unistd.
41106         (Include): Mention correct headers.
41107         * modules/fcntl-h (Depends-on): Add link-warning.
41108         (Files): Add openat.m4.
41109         (Makefile.am): Substitute witnesses.
41110         * modules/sys_stat (Files, Makefile.am): Likewise.
41111         * modules/unistd (Files, Makefile.am): Likewise.
41112         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41113         (gl_OPENAT_DEFAULTS): New macro.
41114         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41117         (SYS_STAT_H): Remove unused variable.
41118         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41119         * lib/fcntl--.h (includes): Remove unneeded header.
41120         * lib/openat-safer.c (includes): Likewise.
41121         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41122         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41123         appropriate headers.
41124         (__OPENAT_PREFIX): Delete.
41125         * lib/fcntl.in.h (openat): Provide declaration.
41126         (AT_FDCWD): Fix Solaris bug.
41127         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41128         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41129         * lib/fchmodat.c (includes):  Adjust to find declaration.
41130         * lib/fchownat.c (includes): Likewise.
41131         * lib/mkdirat.c (includes): Likewise.
41132         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41133         still visible.
41134
41135 2009-09-02  Eric Blake  <ebb9@byu.net>
41136
41137         errno: use consistently
41138         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41139         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41140         * lib/canonicalize.c (ELOOP): Likewise.
41141         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41142         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41143         * lib/lchown.c (EOPNOTSUPP): Likewise.
41144         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41145         * lib/savewd.c (ESTALE): Likewise.
41146         * lib/settime.c (ENOSYS): Likewise.
41147         * lib/utimens.c (ENOSYS): Likewise.
41148         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41149         * lib/chdir-safer.c (ELOOP): Likewise.
41150         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41151         * modules/c-stack (Depends-on): Add errno.
41152         * modules/canonicalize (Depends-on): Likewise.
41153         * modules/chdir-safer (Depends-on): Likewise.
41154         * modules/fdopendir (Depends-on): Likewise.
41155         * modules/inet_ntop (Depends-on): Likewise.
41156         * modules/inet_pton (Depends-on): Likewise.
41157         * modules/lchown (Depends-on): Likewise.
41158         * modules/openat (Depends-on): Likewise.
41159         * modules/savewd (Depends-on): Likewise.
41160         * modules/settime (Depends-on): Likewise.
41161         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41162
41163         fts: avoid leaking fds
41164         * modules/fts (Depends-on): Add cloexec.
41165         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41166         flag.
41167
41168         fts: make directory fds more robust
41169         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41170         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41171
41172         backupfile, chdir-long, fts, savedir: make safer
41173         * lib/backupfile.c (includes): Use "dirent--.h", since
41174         numbered_backup can write to stderr during readdir.
41175         * lib/savedir.c (includes): Likewise.
41176         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41177         emulation can write to stderr on failure.
41178         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41179         * lib/getcwd.c: Document why opendir_safer is unused.
41180         * lib/glob.c: Likewise.
41181         * lib/scandir.c: Likewise.
41182         * lib/openat-proc.c: Likewise, for open_safer.
41183         * modules/backupfile (Depends-on): Add dirent-safer.
41184         * modules/savedir (Depends-on): Likewise.
41185         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41186         * modules/chdir-long (Depends-on): Add openat-safer.
41187
41188         openat-safer: new module
41189         * modules/openat-safer: New file.
41190         * lib/openat-safer.c: Likewise.
41191         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41192         * lib/fcntl-safer.h (openat_safer): Declare.
41193         * lib/fcntl--.h (openat): Override.
41194         * MODULES.html.sh (File descriptor based I/O): Mention it.
41195         * lib/openat.h: Add double-inclusion guards.
41196         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41197         "fcntl--.h", so we can implement openat.
41198         * modules/openat-safer-tests: New test.
41199         * tests/test-openat-safer.c: New file.
41200
41201         dirent-safer: new module
41202         * modules/dirent-safer: New file.
41203         * lib/dirent--.h: Likewise.
41204         * lib/dirent-safer.h: Likewise.
41205         * lib/opendir-safer.c: Likewise.
41206         * m4/dirent-safer.m4: Likewise.
41207         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41208         * modules/dirent-safer-tests: New test.
41209         * tests/test-dirent-safer.c: New file.
41210         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41211
41212         fdopendir: optimize on mingw
41213         * lib/unistd.in.h (_gl_directory_name): New prototype.
41214         * lib/fchdir.c (_gl_directory_name): Implement it.
41215         (fchdir): Use it to simplify implementation.
41216         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41217         fchdir, when available, to avoid calling [f]chdir().
41218
41219         fdopendir: split into its own module
41220         * lib/openat.c (fdopendir): Move...
41221         * lib/fdopendir.c: ...into new file.
41222         * modules/fdopendir: New module.
41223         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41224         * modules/openat (Depends-on): Add fdopendir.
41225         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41226         fdopendir here.
41227         * modules/savedir (Depends-on): Only need fdopendir, not full
41228         openat.
41229         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41230         * lib/openat.h (fdopendir): Drop prototype.
41231         * lib/dirent.in.h (fdopendir): Provide prototype.
41232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41233         * modules/dirent (Makefile.am): Substitute them.
41234         * MODULES.html.sh (File system functions): Mention it.
41235         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41236         * modules/fdopendir-tests: New file.
41237         * tests/test-fdopendir.c: Likewise.
41238
41239         fchdir: use more consistent macro convention
41240         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41241         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41242         REPLACE_FCHDIR, rather than relying on config.h macros.
41243         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41244         inside a single make-time REPLACE_FCHDIR block, rather than using
41245         the config.h FCHDIR_REPLACEMENT.
41246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41247         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41248         Manage fstat replacement.
41249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41250         REPLACE_FCHDIR.
41251         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41252         (Makefile.am): Substitute REPLACE_FCHDIR.
41253         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41254         FCHDIR_REPLACEMENT.
41255         * lib/dup-safer.c (dup_safer): Likewise.
41256         * lib/dup2.c (rpl_dup2): Likewise.
41257         * lib/dup3.c (rpl_dup3): Likewise.
41258         * lib/open.c (rpl_open): Likewise.
41259
41260         fchdir: simplify error handling, and support dup3
41261         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41262         stdbool, malloc-posix, realloc-posix.
41263         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41264         (ensure_dirs_slot): Return false on allocation failure.
41265         (rpl_dup2): Delete.
41266         (_gl_register_dup): New function.
41267         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41268         (_gl_register_fd): Close fd on allocation failure.
41269         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41270         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41271         prototype.
41272         (rpl_dup2_fchdir): Delete prototype.
41273         * lib/open.c (open): Update caller.
41274         * lib/dup2.c (dup2): Track fchdir metadata.
41275         * lib/dup3.c (dup3): Likewise.
41276         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41278
41279 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41280
41281         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41282         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41283         don't pass arguments to AC_OUTPUT.
41284
41285 2009-09-02  Bruno Haible  <bruno@clisp.org>
41286
41287         * modules/mkdtemp (License): Relicense under LGPLv2+.
41288         Reported by Paolo Bonzini.
41289
41290 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41291
41292         Replace uses of obsolete autoconf macros in Jim's modules.
41293         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41294         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41295         can evoke a warning from autoconf when run with -Wobsolete
41296         enabled.  They were declared obsolete for good reasons (see
41297         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41298         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41299         should not continue using the deprecated macros.
41300         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41301         obsolete Autoconf macros with modern counterparts.
41302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41303         * m4/dos.m4 (gl_AC_DOS): Likewise.
41304         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41305         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41306         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41307         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41308         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41309         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41310         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41311         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41312         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41313         Likewise.
41314         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41315         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41316         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41317         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41318         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41319         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41320
41321 2009-09-01  Eric Blake  <ebb9@byu.net>
41322
41323         fchdir: fix off-by-one bug in previous patch
41324         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41325         (_gl_unregister_fd): Delete useless if.
41326
41327 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41328
41329         maint.mk: sort the list of syntax-check rules
41330         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41331         easier to get a sense of progress when the rules are run sequentially
41332         and take a long time.
41333
41334 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41335
41336         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41337         * modules/netinet_in: Likewise.
41338         * modules/sys_file: Likewise.
41339         * modules/sys_ioctl: Likewise.
41340         * modules/sys_select: Likewise.
41341         * modules/sys_socket: Likewise.
41342         * modules/sys_stat: Likewise.
41343         * modules/sys_time: Likewise.
41344         * modules/sys_times: Likewise.
41345         * modules/sys_utsname: Likewise.
41346         * modules/sys_wait: Likewise.
41347
41348 2009-09-01  Jim Meyering  <meyering@redhat.com>
41349
41350         fts: help ensure that return values are not ignored
41351         * lib/fts_.h (__GNUC_PREREQ): Define.
41352         (__attribute_warn_unused_result__): Define.
41353         (fts_children, fts_close, fts_open, fts_read): Declare with
41354         __attribute_warn_unused_result__.
41355
41356         fts: fts_close now fails also when closing a dir file descriptor fails
41357         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41358         and propagate to caller, along with errno.
41359
41360         announce-gen: correct formatting in --help output
41361         * build-aux/announce-gen (usage): Move the one-line description in
41362         --help output "up", to where it belongs, just after Usage:.
41363
41364 2009-08-31  Eric Blake  <ebb9@byu.net>
41365
41366         fchdir: port to mingw
41367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41368         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41369         opened, then use a substitute.
41370         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41371         replacement.
41372         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41373         (_gl_register_fd): No need to check stat if open already filters
41374         all directories.
41375         (fchdir): Fix error condition to match POSIX.
41376         * modules/fchdir (Depends-on): Add sys_stat.
41377         * doc/posix-functions/open.texi (open): Document the limitation.
41378         * modules/fchdir-tests: New file.
41379         * tests/test-fchdir.c: Likewise.
41380
41381         canonicalize: allow cross-testing from cygwin to mingw
41382         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41383         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41384         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41385         Likewise.
41386         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41387         target does not support symlinks.
41388         * tests/test-canonicalize-lgpl.sh: Likewise.
41389
41390         chown: avoid compilation warning on mingw
41391         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41392         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41393         mingw.
41394         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41395         * modules/chown (Depends-on): Add errno.
41396
41397 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41398
41399         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41400         command.
41401
41402 2009-08-31  Jim Meyering  <meyering@redhat.com>
41403
41404         canonicalize: remove useless initialization
41405         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41406         initialization of local, "end".
41407
41408 2009-08-30  Bruno Haible  <bruno@clisp.org>
41409
41410         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41411         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41412         ENOSYS.
41413
41414 2009-08-30  Bruno Haible  <bruno@clisp.org>
41415
41416         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41417         /usr/xpg4/bin/tr when it exists.
41418         * tests/test-pipe-filter-gi1.sh: Likewise.
41419
41420 2009-08-30  Bruno Haible  <bruno@clisp.org>
41421
41422         Work around deficient /usr/bin/id program on Solaris.
41423         * tests/test-file-has-acl.sh (ID): New variable.
41424         * tests/test-set-mode-acl.sh (ID): Likewise.
41425         * tests/test-copy-acl.sh (ID): Likewise.
41426         * tests/test-copy-file.sh (ID): Likewise.
41427
41428 2009-08-30  Bruno Haible  <bruno@clisp.org>
41429
41430         New module 'xstriconveh'.
41431         * lib/xstriconveh.h: New file.
41432         * lib/xstriconveh.c: New file.
41433         * modules/xstriconveh: New file.
41434
41435 2009-08-30  Bruno Haible  <bruno@clisp.org>
41436
41437         Make it easier to use mem_cd_iconveh.
41438         * lib/striconveh.h (iconveh_t): New type.
41439         (iconveh_open, iconveh_close): New declarations.
41440         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41441         with a single 'const iconveh_t *' argument.
41442         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41443         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41444         with a single 'const iconveh_t *' argument.
41445         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41446         * tests/test-striconveh.c (main): Update.
41447         * NEWS: Mention the change.
41448
41449 2009-08-30  Bruno Haible  <bruno@clisp.org>
41450
41451         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41452         problem.
41453
41454 2009-08-30  Bruno Haible  <bruno@clisp.org>
41455
41456         Work around iconv_open problem on Solaris.
41457         * lib/iconv_open-solaris.gperf: New file.
41458         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41459         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41460         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41461         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41462         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41463         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41464
41465 2009-08-29  Jim Meyering  <meyering@redhat.com>
41466
41467         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41468         * top/maint.mk (cvs-check): Remove target; it was just an alias
41469         to the better-named vc-diff-check.
41470         (maintainer-distcheck): Remove rule.  It was used only from
41471         the (alpha/beta/major) target, and all of its commands but one
41472         were coreutils-specific.
41473         (vc-dist): Remove rule.
41474         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41475         Run vc-diff-check, not vc-dist.
41476         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41477
41478 2009-08-27  Bruno Haible  <bruno@clisp.org>
41479
41480         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41481         of 0.
41482
41483 2009-08-27  Bruno Haible  <bruno@clisp.org>
41484
41485         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41486         compilers.
41487         * doc/func.texi: Document the SunPRO C bug.
41488
41489 2009-08-27  Bruno Haible  <bruno@clisp.org>
41490
41491         Fix link error on Solaris.
41492         * tests/test-parse-duration.c (xstrdup): Remove function.
41493
41494 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41495
41496         ignore-value: handle pointer types, too
41497         * lib/ignore-value.h (__attribute__): Remove definition.
41498         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41499         of a more concise and more-often effective "(void) i" statement.
41500         (ignore_ptr): New function to suppress warnings from functions that
41501         return pointers, and to make it explicit that one function doesn't
41502         handle all cases.
41503
41504 2009-08-25  Bruno Haible  <bruno@clisp.org>
41505
41506         dup2: work around a Linux bug.
41507         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41508         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41509         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41510         Reported by Simon Josefsson.
41511
41512 2009-08-25  Jim Meyering  <meyering@redhat.com>
41513
41514         libguestfs uses gnulib
41515         * users.txt: Add libguestfs.
41516
41517 2009-08-24  Eric Blake  <ebb9@byu.net>
41518
41519         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41520         * lib/pipe2.c (includes): Add binary-io.h.
41521         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41522
41523 2009-08-24  Bruno Haible  <bruno@clisp.org>
41524
41525         Tolerate declared but missing accept4 syscall.
41526         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41527         available.
41528         * lib/sys_socket.in.h (accept4): If the function is already present,
41529         override it.
41530         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41531         * modules/accept4 (Makefile.am): Compile accept4.c always.
41532         Reported by Paolo Bonzini and Eric Blake.
41533
41534 2009-08-23  Bruno Haible  <bruno@clisp.org>
41535
41536         New module 'accept4'.
41537         * lib/sys_socket.in.h (accept4): New declaration.
41538         * lib/accept4.c: New file.
41539         * m4/accept4.m4: New file.
41540         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41541         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41542         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41543         HAVE_ACCEPT4.
41544         * modules/accept4: New file.
41545         * doc/glibc-functions/accept4.texi: Mention the new module.
41546
41547 2009-08-24  Jim Meyering  <meyering@redhat.com>
41548
41549         progname: also set global program_invocation_name, when possible
41550         Before this change, a libtool-enabled program that calls glibc's
41551         error function would report the program name as
41552         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41553         * modules/progname (configure.ac): Check for a declaration of
41554         program_invocation_name.
41555         * lib/progname.c:  Include <errno.h>.
41556         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41557         Set program_invocation_name.
41558
41559 2009-08-23  Bruno Haible  <bruno@clisp.org>
41560
41561         * lib/dup3.c: Include <string.h>.
41562
41563 2009-08-23  Bruno Haible  <bruno@clisp.org>
41564
41565         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41566         * lib/pipe2.c (pipe2): Likewise.
41567         Suggested by Eric Blake.
41568
41569 2009-08-23  Bruno Haible  <bruno@clisp.org>
41570
41571         Tolerate declared but missing dup3 syscall.
41572         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41573         * lib/unistd.in.h (dup3): If the function is already present,
41574         override it.
41575         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41576         * modules/dup3 (Makefile.am): Compile dup3.c always.
41577         Reported by Paolo Bonzini.
41578
41579 2009-08-23  Bruno Haible  <bruno@clisp.org>
41580
41581         Tolerate declared but missing pipe2 syscall.
41582         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41583         available.
41584         * lib/unistd.in.h (pipe2): If the function is already present,
41585         override it.
41586         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41587         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41588         Reported by Paolo Bonzini.
41589
41590 2009-08-23  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/pipe2.c (pipe2): Move #ifs inside function.
41593
41594 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41595
41596         quotearg: document limitations of quote_these_too
41597         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41598         those limitations are created.
41599         * lib/quotearg.h (set_char_quoting): Document that digits and
41600         letters that are special after backslash are not permitted.
41601         (quotearg_char): Cross-reference set_char_quoting documentation.
41602
41603 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41604
41605         quotearg: implement custom_quoting_style
41606         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41607         right_quote fields.
41608         (set_custom_quoting): New public function.
41609         (quotearg_buffer_restyled): Add left_quote and right_quote
41610         arguments, handle them very much like locale quoting, and update
41611         all uses.
41612         (quotearg_n_custom): New public function.
41613         (quotearg_n_custom_mem): New public function.
41614         (quotearg_custom): New public function.
41615         (quotearg_custom_mem): New public function.
41616         * lib/quotearg.h: Prototype and document new public functions.
41617         (enum quoting_style): For escape_quoting_style and
41618         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41619         ignored even though they're otherwise like c_quoting_style.
41620         Add custom_quoting_style member and document with comparison to
41621         clocale_quoting_style.
41622         * tests/test-quotearg.c (custom_quotes): New array.
41623         (custom_results): New array.
41624         (main): Extend to test custom quoting.
41625
41626 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41627
41628         quotearg: fix right quote escaping when it's in quote_these_too
41629         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41630         quote, be sure to prepend only one backslash.
41631         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41632         (main): Test it.
41633
41634 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41635
41636         quotearg-tests: test escaping of embedded locale quotes
41637         * tests/test-quotearg.c (struct result_strings): Add member for
41638         new input.
41639         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41640         (inputs): Add new input.
41641         (results_g): Add expected results.
41642         (flag_results): Likewise.
41643         (locale_results): Likewise.
41644         (compare_strings): Check those.
41645
41646 2009-08-23  Bruno Haible  <bruno@clisp.org>
41647
41648         Tests for module 'dup3'.
41649         * modules/dup3-tests: New file.
41650         * tests/test-dup3.c: New file.
41651
41652         New module 'dup3'.
41653         * lib/unistd.in.h (dup3): New declaration.
41654         * lib/dup3.c: New file.
41655         * m4/dup3.m4: New file.
41656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41657         HAVE_DUP3.
41658         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41659         * modules/dup3: New file.
41660         * doc/glibc-functions/dup3.texi: Mention the new module.
41661
41662 2009-08-23  Bruno Haible  <bruno@clisp.org>
41663
41664         Tweak the dup2 test.
41665         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41666         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41667         the test file is still empty. Fix argument order of lseek.
41668
41669 2009-08-23  Bruno Haible  <bruno@clisp.org>
41670
41671         Avoid test link errors when the modules getopt-gnu, gettext are used.
41672         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41674
41675 2009-08-23  Bruno Haible  <bruno@clisp.org>
41676
41677         Fix getdtablesize() on mingw.
41678         * lib/getdtablesize.c (getdtablesize): Implement differently.
41679         * lib/unistd.in.h (getdtablesize): Improve comment.
41680
41681 2009-08-23  Bruno Haible  <bruno@clisp.org>
41682
41683         New module 'mkostemp'.
41684         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41685         * lib/stdlib.in.h (mksotemp): New declaration.
41686         * lib/mkostemp.c: New file, from glibc with modifications.
41687         * lib/tempname.h (GT_FILE): Remove outdated comment.
41688         (gen_tempname): Add flags argument.
41689         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41690         (__GT_FILE): Map to 1.
41691         (small_open, large_open): Remove macros.
41692         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41693         * lib/mkstemp.c (mkstemp): Update.
41694         * lib/mkdtemp.c (mkdtemp): Likewise.
41695         * m4/mkostemp.m4: New file.
41696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41697         HAVE_MKOSTEMP.
41698         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41699         HAVE_MKOSTEMP.
41700         * modules/mkostemp: New file, based on modules/mkstemp.
41701         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41702         * NEWS: Mention the change.
41703
41704 2009-08-23  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41707         Reported by Eric Blake.
41708
41709 2009-08-23  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41712         Reported by Eric Blake.
41713
41714 2009-08-23  Bruno Haible  <bruno@clisp.org>
41715
41716         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41717         * modules/pipe2 (Depends-on): Likewise.
41718
41719 2009-08-23  Eric Blake  <ebb9@byu.net>
41720
41721         fcntl-h: add O_TTY_INIT support
41722         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41723         * tests/test-fcntl-h.c (o): Test it.
41724         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41725
41726         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41727         * modules/fcntl: Move <fcntl.h> header replacement...
41728         * modules/fcntl-h: ...to new name, so as not to collide with
41729         like-named function.
41730         * tests/test-fcntl.c: Rename...
41731         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41732         * modules/fcntl-tests: Rename...
41733         * modules/fcntl-h-tests: ...to this.  Update test file name.
41734         * modules/chdir-long (Depends-on): Update clients.
41735         * modules/chdir-safer (Depends-on): Likewise.
41736         * modules/fcntl-safer (Depends-on): Likewise.
41737         * modules/fts (Depends-on): Likewise.
41738         * modules/mkancesdirs (Depends-on): Likewise.
41739         * modules/mkdir-p (Depends-on): Likewise.
41740         * modules/open (Depends-on): Likewise.
41741         * modules/savewd (Depends-on): Likewise.
41742         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41743         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41744
41745 2009-08-22  Bruno Haible  <bruno@clisp.org>
41746
41747         * modules/binary-io (License): Relicense under LGPL.
41748         * modules/pipe2 (License): Likewise.
41749
41750 2009-08-22  Bruno Haible  <bruno@clisp.org>
41751
41752         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41753         return value.
41754         * lib/pipe-filter-gi.c (filter_init): Likewise.
41755         Reported by Eric Blake.
41756
41757 2009-08-22  Bruno Haible  <bruno@clisp.org>
41758
41759         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41760         * modules/pipe (Depends-on): Add pipe2.
41761
41762 2009-08-22  Bruno Haible  <bruno@clisp.org>
41763
41764         Tests for module 'pipe2'.
41765         * modules/pipe2-tests: New file.
41766         * tests/test-pipe2.c: New file.
41767
41768         New module 'pipe2'.
41769         * lib/unistd.in.h (pipe2): New declaration.
41770         * lib/pipe2.c: New file.
41771         * m4/pipe2.m4: New file.
41772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41773         HAVE_PIPE2.
41774         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41775         * modules/pipe2: New file.
41776         * doc/glibc-functions/pipe2.texi: Mention the new module.
41777
41778 2009-08-22  Bruno Haible  <bruno@clisp.org>
41779
41780         Reference some new glibc functions.
41781         * doc/glibc-functions/accept4.texi: New file.
41782         * doc/glibc-functions/dup3.texi: New file.
41783         * doc/glibc-functions/mkostemp.texi: New file.
41784         * doc/glibc-functions/pipe2.texi: New file.
41785         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41786         (Glibc sys/socket.h): Refer to accept4.
41787         (Glibc unistd.h): Refer to dup3, pipe2.
41788         Reported by Eric Blake.
41789
41790 2009-08-22  Jim Meyering  <meyering@redhat.com>
41791             Bruno Haible  <bruno@clisp.org>
41792
41793         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41794         This makes it so packages using automake-1.11's silent-rules option
41795         can print e.g., a single "GEN    configmake.h" line, rather than
41796         the 30+ statements that perform the job.  If you want to see the
41797         actual commands, you can still run "make V=1".
41798         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41799         so that make output is abbreviated when those variables are defined
41800         appropriately.
41801         * modules/argz: Likewise.
41802         * modules/arpa_inet: Likewise.
41803         * modules/byteswap: Likewise.
41804         * modules/configmake: Likewise.
41805         * modules/dirent: Likewise.
41806         * modules/errno: Likewise.
41807         * modules/fcntl: Likewise.
41808         * modules/float: Likewise.
41809         * modules/fnmatch: Likewise.
41810         * modules/getopt-posix: Likewise.
41811         * modules/glob: Likewise.
41812         * modules/iconv_open: Likewise.
41813         * modules/inttypes: Likewise.
41814         * modules/localcharset: Likewise.
41815         * modules/locale: Likewise.
41816         * modules/math: Likewise.
41817         * modules/netdb: Likewise.
41818         * modules/netinet_in: Likewise.
41819         * modules/poll: Likewise.
41820         * modules/posix_spawnp-tests: Likewise.
41821         * modules/sched: Likewise.
41822         * modules/search: Likewise.
41823         * modules/selinux-h: Likewise.
41824         * modules/signal: Likewise.
41825         * modules/spawn: Likewise.
41826         * modules/stdarg: Likewise.
41827         * modules/stdbool: Likewise.
41828         * modules/stddef: Likewise.
41829         * modules/stdint: Likewise.
41830         * modules/stdio: Likewise.
41831         * modules/stdlib: Likewise.
41832         * modules/string: Likewise.
41833         * modules/strings: Likewise.
41834         * modules/sys_file: Likewise.
41835         * modules/sys_ioctl: Likewise.
41836         * modules/sys_select: Likewise.
41837         * modules/sys_socket: Likewise.
41838         * modules/sys_stat: Likewise.
41839         * modules/sys_time: Likewise.
41840         * modules/sys_times: Likewise.
41841         * modules/sys_utsname: Likewise.
41842         * modules/sys_wait: Likewise.
41843         * modules/sysexits: Likewise.
41844         * modules/time: Likewise.
41845         * modules/unistd: Likewise.
41846         * modules/wchar: Likewise.
41847         * modules/wctype: Likewise.
41848
41849 2009-08-22  Jim Meyering  <meyering@redhat.com>
41850
41851         announce-gen: detect write failure
41852         * build-aux/announce-gen: Add Coda at end.
41853         Remove equivalent-but-more-verbose block at top.
41854
41855 2009-08-19  Akim Demaille  <demaille@gostai.com>
41856
41857         bootstrap: --help to stdout.
41858         * bootstrap (usage): Don't send --help to stderr.
41859         Use a here doc instead of a long string.
41860
41861 2009-08-21  Eric Blake  <ebb9@byu.net>
41862
41863         test-popen-safer: split from test-popen
41864         * tests/test-popen.c (main): Move...
41865         * tests/test-popen.h: ...into new file.
41866         * tests/test-popen-safer2.c: New file.
41867         * modules/popen-tests (Files): Add test-popen.h.
41868         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41869         Suggested by Bruno Haible.
41870
41871         test-fcntl-safer: split from test-open
41872         * tests/test-open.c (main): Move...
41873         * tests/test-open.h: ...into new file.
41874         * tests/test-fcntl-safer.c: New file.
41875         * modules/open-tests (Files): Add test-open.h.
41876         * modules/fcntl-safer-tests: New file.
41877         Suggested by Bruno Haible.
41878
41879         test-fopen-safer: split from test-fopen
41880         * tests/test-fopen.c (main): Move...
41881         * tests/test-fopen.h: ...into new file.
41882         * tests/test-fopen-safer.c: New file.
41883         * modules/fopen-tests (Files): Add test-fopen.h.
41884         * modules/fopen-safer-tests: New file.
41885         Suggested by Bruno Haible.
41886
41887 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41888
41889         popen-safer: test O_CLOEXEC at run-time.
41890         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41891
41892 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41893
41894         fcntl: move more flags to the header
41895         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41896         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41897         * lib/fcntl.in.h: Do both things here.
41898
41899 2009-08-21  Jim Meyering  <meyering@redhat.com>
41900
41901         consistently remove $@-t before redirecting to it
41902         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41903         * modules/alloca-opt: Likewise.
41904         * modules/byteswap: Likewise.
41905         * modules/fnmatch: Likewise.
41906         * modules/getopt-posix: Likewise.
41907         * modules/glob: Likewise.
41908         * modules/poll: Likewise.
41909         * modules/posix_spawnp-tests: Likewise.
41910         * modules/sys_socket: Likewise.
41911         * modules/sysexits: Likewise.
41912
41913 2009-08-21  Eric Blake  <ebb9@byu.net>
41914
41915         popen: simplify access to original popen
41916         * lib/popen.c (rpl_popen): No need to worry about popen being a
41917         macro.
41918         Reported by Bruno Haible.
41919
41920 2009-08-20  Eric Blake  <ebb9@byu.net>
41921
41922         build: avoid some compiler warnings
41923         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41924         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41925         type.
41926         (new_exclude_segment, excluded_file_pattern_p)
41927         (excluded_file_name_p): Reduce scope.
41928         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41929         old-style declaration.
41930
41931 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41932
41933         * tests/test-exclude1.sh: Handle Windows EOL.
41934         * tests/test-exclude2.sh: Likewise.
41935         * tests/test-exclude3.sh: Likewise.
41936         * tests/test-exclude4.sh: Likewise.
41937         * tests/test-exclude5.sh: Likewise.
41938         * tests/test-exclude6.sh: Likewise.
41939         * tests/test-exclude7.sh: Likewise.
41940
41941 2009-08-19  Akim Demaille  <demaille@gostai.com>
41942
41943         bootstrap: find sha1sum when named gsha1sum.
41944         * bootstrap (find_tool): New.
41945         ($SHA1SUM): New.
41946         Use it.
41947
41948 2009-08-20  Jim Meyering  <meyering@redhat.com>
41949
41950         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41951         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41952         expression that converts "." in a file name to "\." in the resulting
41953         regexp.  Start with a dummy statement, so that prior shell variable
41954         definitions are expanded portably.  Reported by Simon Josefsson.
41955
41956 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41957
41958         Fix polling for writeability of a screen buffer.
41959         * lib/poll.c: Distinguish input and screen buffers for the
41960         Win32 implementation.
41961         * lib/select.c: Likewise.
41962
41963 2009-08-19  Eric Blake  <ebb9@byu.net>
41964
41965         popen-safer: prevent popen from clobbering std descriptors
41966         * modules/popen-safer: New file.
41967         * lib/popen-safer.c: Likewise.
41968         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41969         * lib/stdio--.h (popen): Provide override.
41970         * lib/stdio-safer.h (popen_safer): Provide declaration.
41971         * tests/test-popen.c (includes): Partially test this.
41972         * modules/popen-safer-tests: New file, for more tests.
41973         * tests/test-popen-safer.c: Likewise.
41974         * MODULES.html.sh (file stream based Input/Output): Mention it.
41975
41976         tests: test some of the *-safer modules
41977         * modules/fopen-safer (Depends-on): Add fopen.
41978         * modules/fcntl-safer (Depends-on): Add fcntl.
41979         * modules/stdlib-safer (Depends-on): Add stdlib.
41980         (configure.ac): Set indicator.
41981         * modules/unistd-safer (configure.ac): Likewise.
41982         * modules/tmpfile-safer (configure.ac): Likewise.
41983         (Depends-on): Add tmpfile.
41984         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41985         active.
41986         * tests/test-fopen.c (includes): Test safer versions when they are
41987         in use.
41988         * tests/test-open.c (includes): Likewise.
41989
41990         popen: fix cygwin 1.5 bug when stdin closed
41991         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41992         * modules/popen: New file.
41993         * modules/popen-tests: Likewise.
41994         * tests/test-popen.c: Likewise.
41995         * m4/popen.m4: Likewise.
41996         * lib/popen.c: Likewise.
41997         * lib/stdio.in.h (popen): New declaration.
41998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41999         * modules/stdio (Makefile.am): Likewise.
42000         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42001
42002 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42003
42004         maint.mk: give full control over update-copyright exclusions
42005         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42006         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42007         (update-copyright): Don't force inclusion of top-level
42008         ChangeLog.  Don't force exclusion of all COPYING files, but make
42009         them the default exclusion instead.
42010
42011 2009-08-16  Bruno Haible  <bruno@clisp.org>
42012
42013         Fix test failures on Solaris 10.
42014         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42015         tests when Solaris iconv() is used.
42016         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42017         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42018         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42019         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42020         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42021
42022 2009-08-16  Bruno Haible  <bruno@clisp.org>
42023
42024         Fix test failures on Solaris 10.
42025         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42026         'tr' program and pass it as first argument.
42027         * tests/test-pipe-filter-gi1.sh: Likewise.
42028         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42029         program as first argument.
42030         * tests/test-pipe-filter-gi1.c (main): Likewise.
42031
42032 2009-08-16  Eric Blake  <ebb9@byu.net>
42033
42034         fpurge: fix previous commits
42035         * modules/fpurge (Makefile.am): Make replacement conditional,
42036         partially reverting 2007-04-29 change; missed in previous
42037         attempt.
42038         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42039         is missing.
42040
42041 2009-08-16  Bruno Haible  <bruno@clisp.org>
42042
42043         Clarify fpurge's effect on the file position.
42044         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42045         * tests/test-fpurge.c (main): Make a second pass for checking the file
42046         position.
42047
42048 2009-08-16  Bruno Haible  <bruno@clisp.org>
42049
42050         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42051         declaration of fpurge is missing.
42052         * tests/test-fpurge.c (main): Check that the file has not more contents
42053         than expected. Close the file before removing it.
42054
42055 2009-08-15  Eric Blake  <ebb9@byu.net>
42056
42057         fpurge: don't wrap working cygwin implementation
42058         * lib/fpurge.c (fpurge): Fix comment typo.
42059         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42060         1.7 to avoid replacement.
42061         * tests/test-fpurge.c (main): Enhance test.
42062
42063 2009-08-15  Eric Blake  <ebb9@byu.net>
42064         and Jim Meyering  <meyering@redhat.com>
42065
42066         test-update-copyright: skip if perl is insufficient
42067         * tests/test-update-copyright.sh: Failure to run maintainer tool
42068         should not cause testsuite failure on cygwin 1.5.
42069
42070 2009-08-14  Eric Blake  <ebb9@byu.net>
42071
42072         doc: mention more functions added in cygwin 1.7.0
42073         * doc/posix-headers/limits.texi (limits.h): Update for recent
42074         cygwin additions.
42075         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42076         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42077         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42078         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42079         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42080
42081 2009-08-14  Eric Blake  <ebb9@byu.net>
42082
42083         maint.mk: simplify update-copyright rule
42084         * top/maint.mk (update-copyright-local): Delete, and document how
42085         to do it in cfg.mk instead.
42086         (update-copyright-exclude-regexp): Delete, and document how to do
42087         it in .x-update-copyright instead.
42088         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42089         exclude ChangeLog.
42090
42091 2009-08-14  Bruno Haible  <bruno@clisp.org>
42092
42093         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42094
42095 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42096
42097         maint.mk: support update-copyright-env
42098         * top/maint.mk (update-copyright-env): Define place-holder.
42099         (update-copyright): Expand $(update-copyright-env) before
42100         invoking update-copyright.
42101
42102 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42103
42104         update-copyright: implement forced reformatting
42105         * build-aux/update-copyright: Implement and document
42106         UPDATE_COPYRIGHT_FORCE.
42107         * tests/test-update-copyright.sh: Test it.
42108
42109 2009-08-14  Eric Blake  <ebb9@byu.net>
42110         and Bruno Haible  <bruno@clisp.org>
42111
42112         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42113         * tests/test-locale.c: Revert previous patch related to NULL.
42114         * tests/test-stdio.c: Likewise.
42115         * tests/test-stdlib.c: Likewise.
42116         * tests/test-string.c: Likewise.
42117         * tests/test-unistd.c: Likewise.
42118         * modules/time-tests (Depends-on): Add verify.
42119         * modules/wchar-tests (Depends-on): Likewise.
42120         * tests/test-time.c: Test for NULL compliance.
42121         * tests/test-wchar.c: Likewise.
42122         * modules/locale (Depends-on): Add stddef.
42123         * modules/stdio (Depends-on): Likewise.
42124         * modules/stdlib (Depends-on): Likewise.
42125         * modules/string (Depends-on): Likewise.
42126         * modules/time (Depends-on): Likewise.
42127         * modules/unistd (Depends-on): Likewise.
42128         * modules/wchar (Depends-on): Likewise.
42129         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42130         * lib/stdlib.in.h (includes): Likewise.
42131         * lib/string.in.h (includes): Likewise.
42132         * lib/time.in.h (includes): Likewise.
42133         * lib/unistd.in.h (includes): Likewise.
42134         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42135         replaced.
42136         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42137         * m4/stddef_h.m4: New file.
42138         * modules/stddef: Likewise.
42139         * lib/stddef.in.h: Likewise.
42140         * modules/stddef-tests: Likewise.
42141         * tests/test-stddef.c: Likewise.
42142         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42143         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42144         * doc/posix-headers/locale.texi (locale.h): Likewise.
42145         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42146         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42147         * doc/posix-headers/string.texi (string.h): Likewise.
42148         * doc/posix-headers/time.texi (time.h): Likewise.
42149         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42150         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42151
42152 2009-08-14  Eric Blake  <ebb9@byu.net>
42153
42154         doc: improve git diff of texinfo files
42155         * .gitattributes: Add rule for *.texi files, with hint on how to
42156         use it.
42157         Copied from m4, and based on a report by Bruno Haible.
42158
42159 2009-08-14  Bruno Haible  <bruno@clisp.org>
42160
42161         Disable multithread support by default on Cygwin 1.5.x for real.
42162         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42163
42164 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42165
42166         update-copyright: much ado about intervals
42167         * build-aux/update-copyright: Implement and document
42168         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42169         of copyright year intervals.
42170         Also, document UPDATE_COPYRIGHT_YEAR.
42171         * tests/test-update-copyright.sh: Test it.
42172
42173         update-copyright: convert 2-digit to 4-digit years
42174         * build-aux/update-copyright: Implement and document.
42175         * tests/test-update-copyright.sh: Update.
42176
42177 2009-08-14  Jim Meyering  <meyering@redhat.com>
42178
42179         test-exclude: avoid coreutils "make check" failure
42180         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42181         just as in test-argmatch.c.
42182
42183 2009-08-13  Eric Blake  <ebb9@byu.net>
42184
42185         test-dup2: fix bad assumption
42186         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42187         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42188
42189         test-version-etc: fix CRLF portability issue
42190         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42191         recognize \r.
42192         * tests/test-argp-version-etc-1.sh: Likewise.
42193
42194         getopt: update client modules
42195         * modules/argp (Depends-on): Use getopt-gnu.
42196         * modules/git-merge-changelog (Depends-on): Likewise.
42197         * modules/long-options (Depends-on): Likewise.
42198         * modules/xstrtol (Depends-on): Likewise.
42199
42200 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42201
42202         * tests/test-version-etc.sh: Don't fail on different
42203         project/version.  Don't fail on CRLF differences.  Rewrite to use
42204         multiple -e instead of multiple sed forks, suggested by Eric Blake
42205         <ebb9@byu.net>.
42206         * tests/test-argp-version-etc-1.sh: Likewise.
42207
42208 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42209
42210         * tests/test-version-etc.sh: Don't fail on different
42211         project/version.
42212
42213 2009-08-12  Bruno Haible  <bruno@clisp.org>
42214
42215         Tests for modules 'getopt-posix', 'getopt-gnu'.
42216         * modules/getopt-posix-tests: New file.
42217         * tests/test-getopt.c: New file.
42218         * tests/test-getopt.h: New file.
42219         * tests/test-getopt_long.h: New file.
42220
42221         New modules 'getopt-posix', 'getopt-gnu'.
42222         * modules/getopt-gnu: New file, renamed from modules/getopt.
42223         * modules/getopt-posix: New file.
42224         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42225         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42226         (gl_GETOPT): Remove macro.
42227         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42228         Disable the test against BSD systems that declare optreset. Test
42229         against mingw bug. Test against lack of support of optional arguments
42230         on many platforms.
42231         * doc/glibc-headers/getopt.texi: Update module name and list of
42232         relevant platforms.
42233         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42234         'getopt-gnu' and more portability problems.
42235         * NEWS: Mention the changes.
42236
42237 2009-08-12  Bruno Haible  <bruno@clisp.org>
42238
42239         Ensure that optarg etc. get declared by <unistd.h>.
42240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42241         AC_USE_SYSTEM_EXTENSIONS.
42242         * modules/getopt (Depends-on): Add 'extensions'.
42243
42244 2009-08-12  Bruno Haible  <bruno@clisp.org>
42245
42246         Avoid test link errors.
42247         * modules/pipe-filter-ii-tests (Makefile.am): Define
42248         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42249         * modules/pipe-filter-gi-tests (Makefile.am): Define
42250         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42251         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42252
42253 2009-08-12  Bruno Haible  <bruno@clisp.org>
42254
42255         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42256         gl_GETOPT_SUBSTITUTE before.
42257         (gl_GETOPT): Use it.
42258         * m4/argp.m4 (gl_ARGP): Update.
42259         Reported by Sergey Poznyakoff.
42260
42261         * m4/getopt.m4: Reorder macros.
42262         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42263         (gl_GETOPT_SUBSTITUTE): Remove macro.
42264
42265 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42266
42267         Minor improvement in gitlog-to-changelog
42268
42269         * build-aux/gitlog-to-changelog: New option `--format' makes
42270         output format string configurable.
42271
42272 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42273
42274         Optimize exclude: use hash tables for non-wildcard patterns.
42275
42276         * lib/exclude.c: Include hash.h and mbuiter.h
42277         (struct exclude_pattern, exclude_segment): New data types.
42278         (struct exclude): Rewrite.
42279         (fnmatch_pattern_has_wildcards): New function.
42280         (new_exclude_segment, free_exclude_segment): New functions.
42281         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42282         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42283         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42284         * modules/exclude: Depend on hash and mbuiter.
42285
42286         * modules/exclude-tests: New file.
42287         * tests/test-exclude.c: New file.
42288         * tests/test-exclude1.sh: New file.
42289         * tests/test-exclude2.sh: New file.
42290         * tests/test-exclude3.sh: New file.
42291         * tests/test-exclude4.sh: New file.
42292         * tests/test-exclude5.sh: New file.
42293         * tests/test-exclude6.sh: New file.
42294         * tests/test-exclude7.sh: New file.
42295
42296 2009-08-12  Bruno Haible  <bruno@clisp.org>
42297
42298         Ensure that getopt() gets declared by <unistd.h>.
42299         * lib/unistd.in.h: Conditionally include getopt.h.
42300         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42301         Set GNULIB_UNISTD_H_GETOPT.
42302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42303         GNULIB_UNISTD_H_GETOPT.
42304         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42305
42306 2009-08-12  Bruno Haible  <bruno@clisp.org>
42307
42308         Clarify logic.
42309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42310         gl_replace_getopt instead of GETOPT_H.
42311
42312 2009-08-12  Bruno Haible  <bruno@clisp.org>
42313
42314         * m4/getopt.m4: Add comments.
42315
42316 2009-08-12  Bruno Haible  <bruno@clisp.org>
42317
42318         Disable multithread support by default on Cygwin 1.5.x.
42319         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42320         set gl_use_threads=no if not specified otherwise.
42321
42322 2009-08-11  Bruno Haible  <bruno@clisp.org>
42323
42324         Avoid compilation error on NetBSD 5.0.
42325         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42326         * tests/test-stdio.c: Likewise.
42327         * tests/test-stdlib.c: Likewise.
42328         * tests/test-string.c: Likewise.
42329         * tests/test-unistd.c: Likewise.
42330         Reported by Greg Troxel <gdt@ir.bbn.com>
42331         at <https://savannah.gnu.org/support/?106973>.
42332
42333 2009-08-11  Bruno Haible  <bruno@clisp.org>
42334
42335         * modules/dup2-tests (Depends-on): Remove close.
42336
42337         Undo 2009-07-19 commit.
42338         * modules/acl-tests (Depends-on): Remove close.
42339         * modules/binary-io-tests (Depends-on): Likewise.
42340         * modules/closein-tests (Depends-on): Likewise.
42341         * modules/flock-tests (Depends-on): Likewise.
42342         * modules/fsync-tests (Depends-on): Likewise.
42343         * modules/lseek-tests (Depends-on): Likewise.
42344         * modules/pipe-tests (Depends-on): Likewise.
42345         * modules/posix_spawn-tests (Depends-on): Likewise.
42346         * modules/posix_spawnp-tests (Depends-on): Likewise.
42347         * modules/stat-time-tests (Depends-on): Likewise.
42348         * modules/yesno-tests (Depends-on): Likewise.
42349
42350 2009-08-10  Bruno Haible  <bruno@clisp.org>
42351
42352         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42353
42354 2009-08-10  Bruno Haible  <bruno@clisp.org>
42355
42356         Fix a gcc warning.
42357         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42358
42359 2009-08-10  Bruno Haible  <bruno@clisp.org>
42360
42361         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42362         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42363         not only the first time.
42364         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42365         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42366         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42367         is 1, not only the the first time.
42368
42369 2009-08-10  Bruno Haible  <bruno@clisp.org>
42370
42371         Make it possible to use module 'gethostname' without module 'close'.
42372         * lib/unistd.in.h (close): Evoke a link error only if
42373         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42375         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42376         * modules/unistd (Makefile.am): Substitute
42377         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42378         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42379         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42381         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42382         * modules/sys_ioctl (Makefile.am): Substitute
42383         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42384         * modules/socket (configure.ac): On native Windows, set
42385         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42386         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42387         Reported by Sam Steingold <sds@gnu.org>.
42388
42389 2009-08-10  Bruno Haible  <bruno@clisp.org>
42390
42391         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42392         * modules/ioctl (configure.ac): Likewise.
42393
42394 2009-08-10  Bruno Haible  <bruno@clisp.org>
42395
42396         Avoid collision between gnulib wrapper and libintl wrapper.
42397         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42398         already defined in intl/printf.c.
42399         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42400         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42401
42402 2009-08-09  Bruno Haible  <bruno@clisp.org>
42403
42404         Make <sys/select.h> really self-contained, also on Solaris 10.
42405         * lib/sys_select.in.h: Include <string.h>.
42406         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42407         Solaris 10 problem.
42408         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42409         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42410         Reported by Jim Meyering.
42411
42412 2009-08-09  Bruno Haible  <bruno@clisp.org>
42413
42414         Avoid warnings from 'aclocal' that are due to a use of macro name
42415         AM_XGETTEXT_OPTION that is not defined in automake.
42416         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42417         automake.
42418         * modules/error (configure.ac): Likewise.
42419         * modules/propername (configure.ac): Likewise.
42420         * modules/vasprintf (configure.ac): Likewise.
42421         * modules/verror (configure.ac): Likewise.
42422         * modules/xprintf (configure.ac): Likewise.
42423         * modules/xvasprintf (configure.ac): Likewise.
42424
42425 2009-08-08  Bruno Haible  <bruno@clisp.org>
42426
42427         Avoid compilation error in C++ mode.
42428         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42429         Reported by Sam Steingold <sds@gnu.org>.
42430
42431 2009-08-08  Bruno Haible  <bruno@clisp.org>
42432
42433         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42434         for the various Unix platforms.
42435         * doc/posix-headers/limits.texi: Update platforms list regarding
42436         HOST_NAME_MAX.
42437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42438
42439 2009-08-07  Jim Meyering  <meyering@redhat.com>
42440
42441         selinux-at: fix typo in a comment
42442         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42443         Spotted by Paolo Bonzini.
42444
42445         selinux-at: remove redundant m4 code, add documentation
42446         * modules/selinux-at (configure.ac): Remove redundant code.
42447         LIB_SELINUX is already set via the dependent module, selinux-h.
42448         (Include): Add quotes around selinux-at.h.
42449         * lib/selinux-at.h: Add documentation.
42450         Reported by Bruno Haible in
42451         http://marc.info/?l=gnulib-bug&m=124958988300749
42452
42453 2009-08-07  Bruno Haible  <bruno@clisp.org>
42454
42455         Avoid link error on MacOS X 10.3 and 10.4.
42456         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42457         on non-ELF systems.
42458         * lib/argp-pv.c (argp_program_version): Likewise.
42459         Reported by Simon Josefsson.
42460
42461 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42462
42463         * tests/test-version-etc.sh: Use $EXEEXT.
42464
42465 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42466
42467         update-copyright: update documentation to point to maint.mk
42468         * build-aux/update-copyright: Here.
42469
42470 2009-08-06  Jim Meyering  <meyering@redhat.com>
42471
42472         maint.mk: support update-copyright-local
42473         * top/maint.mk (update-copyright-local): Define place-holder.
42474         (update-copyright): Depend on $(update-copyright-local).
42475
42476 2009-08-06  Jim Meyering  <meyering@redhat.com>
42477
42478         selinux-at: new module
42479         Initially written for coreutils, this module will soon be
42480         used by findutils, too.
42481         * MODULES.html.sh [Misc]: Add selinux-at.
42482         * lib/selinux-at.h: New file, from coreutils.
42483         * lib/selinux-at.c: Likewise.
42484         * modules/selinux-at: Likewise.
42485         (License): Change from LGPL to GPL, since it depends
42486         on the GPL'd openat module.
42487
42488         doc: update README
42489         * README: Remove references to cogito.
42490         Remove cvs-repo-updating instructions from 2007.
42491         Don't imply that CVS is better if you have limited disk space.
42492
42493 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42494
42495         update-copyright: support C-style comments
42496         * build-aux/update-copyright: Implement and document.
42497         * tests/test-update-copyright.sh: Test.
42498
42499 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42500
42501         update-copyright: support omitted "(C)"
42502         * build-aux/update-copyright: Implement and document.  Also,
42503         allow variable whitespace before "(C)".
42504         * tests/test-update-copyright.sh: Test.
42505
42506 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42507
42508         update-copyright: don't trip on non-FSF copyright statements
42509         * build-aux/update-copyright: Fix so that the first correctly
42510         formatted FSF copyright statement is recognized no matter what
42511         appears before it.  Update documentation.
42512         * tests/test-update-copyright.sh: Test that.
42513
42514 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42515
42516         update-copyright: clean up code a little
42517         * build-aux/update-copyright: Append "_re" to the name of any
42518         variable holding a regular expression.
42519         Replace "old" and "new" with "stmt" in variable names.
42520         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42521         handled correctly.
42522         Format code more consistently.
42523
42524 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42525
42526         update-copyright-tests: improve portability
42527         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42528         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42529
42530 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42531
42532         update-copyright: support @copyright{} and &copy;
42533         * build-aux/update-copyright: Implement and document.
42534         * tests/test-update-copyright.sh: Test.
42535
42536 2009-08-04  Jim Meyering  <meyering@redhat.com>
42537
42538         update-copyright-tests: correctly test EOL=\r\n handling
42539         * tests/test-update-copyright.sh: Put \r at the end of some lines
42540         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42541
42542         maint.mk: make update-copyright exclusion list more configurable
42543         * top/maint.mk (update-copyright): Default to excluding COPYING,
42544         but allow an override, in case someone does want to update that file.
42545
42546         maint.mk: don't update copyright date in COPYING
42547         * top/maint.mk (update-copyright): Exclude COPYING.
42548
42549         maint.mk: add a copyright-updating rule
42550         * top/maint.mk (update-copyright): New rule.
42551         Derived from coreutils/Makefile.am.
42552
42553         update-copyright: rename some variables
42554         * build-aux/update-copyright: Rename a few variables for clarity.
42555         Tweak syntax.  List Joel E. Denny as coauthor.
42556
42557 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42558
42559         update-copyright: fix bug for 2-digit last year and add tests
42560         * build-aux/update-copyright: Fix bug.
42561         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42562         specified.
42563         * modules/update-copyright-tests: New
42564         * tests/test-update-copyright.sh: New.
42565
42566 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42567
42568         update-copyright: handle leading tabs in line prefix
42569         * build-aux/update-copyright: Count leading tabs as 8 spaces
42570         when computing margin.  This helps with the formatting of
42571         ChangeLogs, for example.
42572         Fix documentation a little.
42573
42574 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42575
42576         update-copyright: support EOL=\r\n
42577         * build-aux/update-copyright: Implement that.
42578
42579 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42580
42581         update-copyright: automatically format copyright statements
42582         * build-aux/update-copyright: Implement that.
42583         Also, be a little more predictable and safer by always failing
42584         when the full copyright format is not perfectly recognized as an
42585         unbroken whole.  Discussed at
42586         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42587         Rewrite documentation.
42588
42589 2009-08-03  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42592
42593 2009-08-02  Bruno Haible  <bruno@clisp.org>
42594
42595         Tests for module 'uname'.
42596         * modules/uname-tests: New file.
42597         * tests/test-uname.c: New file.
42598
42599         New module 'uname'.
42600         * lib/uname.c: New file.
42601         * m4/uname.m4: New file.
42602         * modules/uname: New file.
42603         * doc/posix-functions/uname.texi: Mention the new module.
42604
42605 2009-08-02  Bruno Haible  <bruno@clisp.org>
42606
42607         Tests for module 'sys_utsname'.
42608         * modules/sys_utsname-tests: New file.
42609         * tests/test-sys_utsname.c: New file.
42610
42611         New module 'sys_utsname'.
42612         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42613         * m4/sys_utsname_h.m4: New file.
42614         * modules/sys_utsname: New file.
42615         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42616
42617 2009-08-02  Bruno Haible  <bruno@clisp.org>
42618
42619         Implicitly initialize the sockets library.
42620         * lib/gethostname.c: Include sockets.h.
42621         (rpl_gethostname): Invoke gl_sockets_startup.
42622         * lib/socket.c: Include sockets.h.
42623         (rpl_socket): Invoke gl_sockets_startup.
42624         * modules/gethostname (Depends-on): Add sockets.
42625         * modules/socket (Depends-on): Likewise.
42626         * tests/test-poll.c: Don't include sockets.h.
42627         (main): Don't invoke gl_sockets_startup.
42628         * tests/test-select.c: Don't include sockets.h.
42629         (main): Don't invoke gl_sockets_startup.
42630
42631 2009-08-02  Bruno Haible  <bruno@clisp.org>
42632
42633         Allow multiple calls to gl_sockets_startup.
42634         * lib/sockets.c (initialized_sockets_version): New variable.
42635         (gl_sockets_startup): Do nothing if already called for this or a higher
42636         version.
42637         (gl_sockets_cleanup): Reset initialized_sockets_version.
42638
42639 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42640
42641         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42642         different project/version.
42643
42644 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42645             Bruno Haible  <bruno@clisp.org>
42646
42647         Tests for module 'pipe-filter-gi'.
42648         * modules/pipe-filter-gi-tests: New file.
42649         * tests/test-pipe-filter-gi1.sh: New file.
42650         * tests/test-pipe-filter-gi1.c: New file.
42651         * tests/test-pipe-filter-gi2.sh: New file.
42652         * tests/test-pipe-filter-gi2-main.c: New file.
42653         * tests/test-pipe-filter-gi2-child.c: New file.
42654
42655         New module 'pipe-filter-gi'.
42656         * lib/pipe-filter-gi.c: New file.
42657         * modules/pipe-filter-gi: New file.
42658
42659 2009-08-02  Bruno Haible  <bruno@clisp.org>
42660             Paolo Bonzini  <bonzini@gnu.org>
42661
42662         Tests for module 'pipe-filter-ii'.
42663         * modules/pipe-filter-ii-tests: New file.
42664         * tests/test-pipe-filter-ii1.sh: New file.
42665         * tests/test-pipe-filter-ii1.c: New file.
42666         * tests/test-pipe-filter-ii2.sh: New file.
42667         * tests/test-pipe-filter-ii2-main.c: New file.
42668         * tests/test-pipe-filter-ii2-child.c: New file.
42669
42670         New module 'pipe-filter-ii'.
42671         * lib/pipe-filter.h: New file.
42672         * lib/pipe-filter-ii.c: New file.
42673         * lib/pipe-filter-aux.h: New file.
42674         * modules/pipe-filter-ii: New file.
42675
42676 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42677
42678         * lib/gc-libgcrypt.c: Change copyright to FSF.
42679         * lib/gc-gnulib.c: Likewise.
42680
42681 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42682
42683         * lib/gethostname.c: Include limits.h.
42684
42685 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42686             Bruno Haible  <bruno@clisp.org>
42687
42688         Ensure HOST_NAME_MAX as part of the gethostname module.
42689         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42690         define also HOST_NAME_MAX.
42691         * tests/test-gethostname.c: Include <limits.h>.
42692         (main): Check also HOST_NAME_MAX.
42693         * doc/posix-headers/limits.texi: Document the mingw problem.
42694
42695 2009-08-02  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42698         Add comments.
42699
42700 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42701
42702         * lib/gethostname.c: Add Windows wrapper.
42703         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42704         * modules/gethostname: Depend on sys_socket & errno, for also
42705         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42706         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42707
42708 2009-07-31  Jim Meyering  <meyering@redhat.com>
42709
42710         getloadavg: fix symbol name in comment
42711         * lib/getloadavg.c: Correct a typo I introduced when adding
42712         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42713         Matt Kraai spotted the problem.
42714
42715 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42716
42717         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42718         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42719         code also if ! defined N_NAME_POINTER.
42720         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42721         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42722         but the n_name member is a 12-byte array.
42723
42724 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42725
42726         update-copyright: generalize comment handling
42727         * build-aux/update-copyright: Handle copyright statements
42728         within more comment styles.
42729         Document usage.
42730         Report any file with an external copyright holder or parse failure.
42731
42732 2009-07-29  Jim Meyering  <meyering@redhat.com>
42733
42734         mktime: correct setting of REPLACE_MKTIME
42735         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42736
42737         update-copyright: new module
42738         * modules/update-copyright: New file.
42739         * build-aux/update-copyright: New file.
42740         * MODULES.html.sh (maint+release support): Add update-copyright.
42741
42742 2009-07-27  Bruno Haible  <bruno@clisp.org>
42743
42744         Fix compilation error when <ctime> is used and mktime is replaced.
42745         * lib/time.in.h (mktime): New declaration.
42746         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42747         REPLACE_MKTIME instead of defining mktime in config.h.
42748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42749         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42750         Reported by Ross McFarland <rwmcfa1@neces.com>.
42751
42752 2009-07-27  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42755         Reported by Matt Kraai <mkraai@beckman.com>.
42756
42757 2009-07-25  Jim Meyering  <meyering@redhat.com>
42758
42759         maint.mk: avoid warnings about missing files
42760         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42761         diagnostic when .prev-version does not exist.
42762         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42763         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42764         nonexistent cfg.mk.
42765         Suggestions from Simon Josefsson.
42766
42767 2009-07-25  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42770         defined as macros. Needed on QNX 6.4.1.
42771         Reported by Matt Kraai <mkraai@beckman.com>.
42772
42773 2009-07-23  Jim Meyering  <meyering@redhat.com>
42774
42775         maint.mk: invoke "make dist" with a working value of XZ_OPT
42776         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42777
42778 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42779
42780         Make fseeko.c compile on QNX.
42781         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42782
42783 2009-07-22  Peter Simons  <simons@cryp.to>
42784
42785         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42786         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42787         * lib/md4.h: Likewise.
42788         * lib/md5.h: Likewise.
42789         * lib/sha1.h: Likewise.
42790         * lib/sha256.h: Likewise.
42791         * lib/sha512.h: Likewise.
42792
42793         tests-sha1: don't assign literal string to 'char *' variable
42794         * tests/test-sha1.c (main): Declare locals with "const" to match
42795         attributes of the right hand side.
42796
42797 2009-07-21  Eric Blake  <ebb9@byu.net>
42798
42799         dup2: fix more mingw problems
42800         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42801         fd to itself.
42802         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42803         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42804         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42805         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42806         care of mingw bugs.
42807
42808 2009-07-21  Jim Meyering  <meyering@redhat.com>
42809
42810         vc-list-files: avoid failure when /bin/sh is dash
42811         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42812         On some Debian based systems, /bin/sh is a symlink to dash, and running
42813         this command would omit the "/" following each 'tests' prefix:
42814           dash -x build-aux/vc-list-files -C . tests
42815         That is because bash and dash work differently:
42816           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42817           bash ok
42818           dash odd
42819
42820 2009-07-21  Eric Blake  <ebb9@byu.net>
42821
42822         dup2-tests: test previous patch
42823         * modules/dup2-tests: New file.
42824         * tests/test-dup2.c: Likewise.
42825         * tests/test-open.c (main): Avoid unspecified behavior.
42826         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42827         test.
42828
42829         dup2: work around mingw and cygwin 1.5 bug
42830         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42832         * modules/unistd (Makefile.am): Substitute it.
42833         * lib/unistd.in.h (dup2): Declare the replacement.
42834         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42835         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42836         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42837         * modules/execute (Depends-on): Add dup2.
42838         * modules/fseterr (Depends-on): Likewise.
42839         * modules/pipe (Depends-on): Likewise.
42840         * modules/posix_spawn-internal (Depends-on): Likewise.
42841
42842 2009-07-21  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/.gitattributes: New file.
42845
42846 2009-07-20  Bruno Haible  <bruno@clisp.org>
42847
42848         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42849         (main): Use it.
42850
42851 2009-07-20  Eric Blake  <ebb9@byu.net>
42852
42853         test-pipe: make a bit more robust.
42854         * tests/test-pipe.c (myerr): Allow error messages regardless of
42855         what we do to stderr.
42856         (test_pipe): Rearrange to avoid deadlock.
42857         (child_main): Try a larger read, to ensure we avoided deadlock.
42858         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42859         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42860         if misused.
42861
42862 2009-07-19  Jim Meyering  <meyering@redhat.com>
42863
42864         fts: avoid false-positive cycle-detection
42865         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42866         for each new command line argument.
42867
42868 2009-07-19  Bruno Haible  <bruno@clisp.org>
42869
42870         Fix build error on mingw with the modules sys_select and unistd.
42871         * modules/acl-tests (Depends-on): Add close.
42872         * modules/binary-io-tests (Depends-on): Likewise.
42873         * modules/closein-tests (Depends-on): Likewise.
42874         * modules/flock-tests (Depends-on): Likewise.
42875         * modules/fsync-tests (Depends-on): Likewise.
42876         * modules/lseek-tests (Depends-on): Likewise.
42877         * modules/pipe-tests (Depends-on): Likewise.
42878         * modules/posix_spawn-tests (Depends-on): Likewise.
42879         * modules/posix_spawnp-tests (Depends-on): Likewise.
42880         * modules/stat-time-tests (Depends-on): Likewise.
42881         * modules/yesno-tests (Depends-on): Likewise.
42882
42883 2009-07-19  Bruno Haible  <bruno@clisp.org>
42884
42885         Unify conditionals.
42886         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42887         macros, not at the compiler macros.
42888         * lib/pipe.c: Likewise.
42889         * lib/execute.c: Likewise.
42890         * lib/spawni.c: Likewise.
42891
42892 2009-07-19  Bruno Haible  <bruno@clisp.org>
42893
42894         Fix handling of closed stdin/stdout/stderr on mingw.
42895         * lib/w32spawn.h: Include unistd.h.
42896         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42897         file descriptor with O_NOINHERIT flag.
42898         (fd_safer_noinherit): New function, based on fd-safer.c.
42899         (dup_safer_noinherit): New function, based on dup-safer.c.
42900         (undup_safer_noinherit): New function.
42901         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42902         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42903         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42904         instead of fd_safer.
42905         * tests/test-pipe.c: Include <windows.h>.
42906         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42907         result.
42908
42909         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42910         from main.
42911         (test_pipe): Pass an extra argument for disambiguation.
42912         (main): Invoke parent_main or child_main.
42913
42914         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42915         consistently.
42916
42917 2009-07-18  Eric Blake  <ebb9@byu.net>
42918
42919         test-pipe: fix mingw build
42920         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42921
42922 2009-07-18  Bruno Haible  <bruno@clisp.org>
42923
42924         * modules/pipe-tests (Makefile.am): Fix typo.
42925
42926 2009-07-18  Eric Blake  <ebb9@byu.net>
42927
42928         error: fix mingw build
42929         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42930         Reported by Bruno Haible.
42931
42932         error: avoid undefined use of stdout
42933         * lib/error.c (error, error_at_line): Check that fd 1 is open
42934         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42935         is handling faults and the close_stdout module wants to report the
42936         detection of closed stdout as an error.
42937
42938 2009-07-17  Eric Blake  <ebb9@byu.net>
42939
42940         pipe: be robust in face of closed fds
42941         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42942         should cause child to misbehave.
42943         * modules/pipe-tests: New module.
42944         * tests/test-pipe.c: New file.
42945         * tests/test-pipe.sh: New file.
42946         Reported by Akim Demaille.
42947
42948 2009-07-14  Bruno Haible  <bruno@clisp.org>
42949
42950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42951         Reported by anonymous kc.
42952
42953 2009-07-07  Jim Meyering  <meyering@redhat.com>
42954
42955         maint.mk: don't look for translatable strings in *.m4 or *.mk
42956         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42957         when searching for translatable strings.
42958
42959 2009-07-05  Jim Meyering  <meyering@redhat.com>
42960
42961         remove superfluous parentheses in STREQ definition
42962         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42963         * lib/getugroups.c (STREQ): Likewise.
42964         * lib/fnmatch.c (STREQ): Likewise.
42965         Spotted by Bruno Haible.
42966
42967 2009-07-04  Jim Meyering  <meyering@redhat.com>
42968
42969         argv-iter: new module
42970         * MODULES.html.sh: Add argv-iter.
42971         * lib/argv-iter.c, lib/argv-iter.h: New files.
42972         * modules/argv-iter: New file.
42973         * modules/argv-iter-tests: New file.
42974         * tests/test-argv-iter.c: Test it.
42975
42976 2009-07-04  Bruno Haible  <bruno@clisp.org>
42977
42978         Fix assertion.
42979         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42980         contains more exact copies of a given entry than file2, leave the extra
42981         copies unpaired rather than aborting.
42982         Reported by Eric Blake.
42983
42984 2009-07-02  Bruno Haible  <bruno@clisp.org>
42985
42986         Speedup git-merge-changelog for git cherry-pick.
42987         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42988         (entries_mapping_get): New function, extracted from compute_mapping.
42989         (entries_mapping_reverse_get): New function.
42990         (compute_mapping): Add a 'full' argument. Return the result in a
42991         'struct entries_mapping'.
42992         (main): Update. Access the mappings through entries_mapping_get.
42993         Reported by Eric Blake.
42994
42995 2009-07-02  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42998         best_i.
42999
43000 2009-07-02  Bruno Haible  <bruno@clisp.org>
43001
43002         Speed up approximate search for matching ChangeLog entries.
43003         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43004         argument. Call fstrcmp_bounded instead of fstrcmp.
43005         (compute_mapping, try_split_merged_entry, main): Update callers.
43006
43007 2009-07-02  Bruno Haible  <bruno@clisp.org>
43008
43009         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43010
43011 2009-06-30  Bruno Haible  <bruno@clisp.org>
43012
43013         Reduce the number of uc_is_cased calls.
43014         * lib/unicase.h (casing_suffix_context_t): Add
43015         'first_char_except_ignorable' field.
43016         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43017         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43018         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43019         Update initializer.
43020         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43021         case-ignorable characters.
43022         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43023         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43024         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43025         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43026         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43027
43028 2009-06-30  Bruno Haible  <bruno@clisp.org>
43029
43030         Tests for module 'unicase/ignorable'.
43031         * modules/unicase/ignorable-tests: New file.
43032         * tests/unicase/test-ignorable.c: New file, generated by
43033         gen-uni-tables.
43034
43035         Tests for module 'unicase/cased'.
43036         * modules/unicase/cased-tests: New file.
43037         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43038         * tests/unicase/test-predicate-part1.h: New file, derived from
43039         tests/unictype/test-predicate-part1.h.
43040         * tests/unicase/test-predicate-part2.h: New file, same as
43041         tests/unictype/test-predicate-part2.h.
43042
43043         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43044         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43045         (output_casing_properties): New function.
43046         (main): Call it.
43047         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43048         * lib/unicase/cased.c: Include unictype/bitmap.h.
43049         (uc_is_cased): Define through a bitmap lookup.
43050         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43051         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43052         (uc_is_case_ignorable): Define through a bitmap lookup.
43053         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43054         lib/unictype/bitmap.h.
43055         (Depends-on): Add inline. Clean up.
43056         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43057         lib/unictype/bitmap.h.
43058         (Depends-on): Add inline. Clean up.
43059         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43060         recognition.
43061         * tests/unicase/test-u16-tolower.c (main): Likewise.
43062         * tests/unicase/test-u32-tolower.c (main): Likewise.
43063
43064 2009-06-30  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43067         * lib/unicase/u16-casemap.c: Likewise.
43068         * lib/unicase/u32-casemap.c: Likewise.
43069
43070 2009-06-29  Bruno Haible  <bruno@clisp.org>
43071
43072         Define u32_casefold as a wrapper around u32_ct_casefold.
43073         * lib/unicase/u32-casefold.c: Update.
43074         * modules/unicase/u32-casefold (Depends-on): Add
43075         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43076         unicase/empty-suffix-context. Clean up.
43077
43078         Define u16_casefold as a wrapper around u16_ct_casefold.
43079         * lib/unicase/u16-casefold.c: Update.
43080         * modules/unicase/u16-casefold (Depends-on): Add
43081         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43082         unicase/empty-suffix-context. Clean up.
43083
43084         Define u8_casefold as a wrapper around u8_ct_casefold.
43085         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43086         * lib/unicase/u8-casefold.c: Update.
43087         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43088         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43089
43090         Define u32_totitle as a wrapper around u32_ct_totitle.
43091         * lib/unicase/u32-totitle.c: Update.
43092         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43093         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43094
43095         Define u16_totitle as a wrapper around u16_ct_totitle.
43096         * lib/unicase/u16-totitle.c: Update.
43097         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43098         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43099
43100         Define u8_totitle as a wrapper around u8_ct_totitle.
43101         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43102         functions.
43103         (FUNC): Delegate to U_CT_TOTITLE.
43104         * lib/unicase/u8-totitle.c: Update.
43105         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43106         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43107
43108         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43109         invocation.
43110         * modules/unicase/u32-tolower (Depends-on): Add
43111         unicase/empty-prefix-context, unicase/empty-suffix-context.
43112
43113         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43114         invocation.
43115         * modules/unicase/u16-tolower (Depends-on): Add
43116         unicase/empty-prefix-context, unicase/empty-suffix-context.
43117
43118         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43119         * modules/unicase/u8-tolower (Depends-on): Add
43120         unicase/empty-prefix-context, unicase/empty-suffix-context.
43121
43122         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43123         invocation.
43124         * modules/unicase/u32-toupper (Depends-on): Add
43125         unicase/empty-prefix-context, unicase/empty-suffix-context.
43126
43127         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43128         invocation.
43129         * modules/unicase/u16-toupper (Depends-on): Add
43130         unicase/empty-prefix-context, unicase/empty-suffix-context.
43131
43132         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43133         * modules/unicase/u8-toupper (Depends-on): Add
43134         unicase/empty-prefix-context, unicase/empty-suffix-context.
43135
43136         New module 'unicase/u32-ct-casefold'.
43137         * lib/unicase/u32-ct-casefold.c: New file.
43138         * modules/unicase/u32-ct-casefold: New file.
43139
43140         New module 'unicase/u16-ct-casefold'.
43141         * lib/unicase/u16-ct-casefold.c: New file.
43142         * modules/unicase/u16-ct-casefold: New file.
43143
43144         New module 'unicase/u8-ct-casefold'.
43145         * lib/unicase/u8-ct-casefold.c: New file.
43146         * lib/unicase/u-ct-casefold.h: New file, derived from
43147         lib/unicase/u-casefold.h.
43148         * modules/unicase/u8-ct-casefold: New file.
43149
43150         New module 'unicase/u32-ct-totitle'.
43151         * lib/unicase/u32-ct-totitle.c: New file.
43152         * modules/unicase/u32-ct-totitle: New file.
43153
43154         New module 'unicase/u16-ct-totitle'.
43155         * lib/unicase/u16-ct-totitle.c: New file.
43156         * modules/unicase/u16-ct-totitle: New file.
43157
43158         New module 'unicase/u8-ct-totitle'.
43159         * lib/unicase/u8-ct-totitle.c: New file.
43160         * lib/unicase/u-ct-totitle.h: New file, derived from
43161         lib/unicase/u-totitle.h.
43162         * modules/unicase/u8-ct-totitle: New file.
43163
43164         New module 'unicase/u32-ct-tolower'.
43165         * lib/unicase/u32-ct-tolower.c: New file.
43166         * modules/unicase/u32-ct-tolower: New file.
43167
43168         New module 'unicase/u16-ct-tolower'.
43169         * lib/unicase/u16-ct-tolower.c: New file.
43170         * modules/unicase/u16-ct-tolower: New file.
43171
43172         New module 'unicase/u8-ct-tolower'.
43173         * lib/unicase/u8-ct-tolower.c: New file.
43174         * modules/unicase/u8-ct-tolower: New file.
43175
43176         New module 'unicase/u32-ct-toupper'.
43177         * lib/unicase/u32-ct-toupper.c: New file.
43178         * modules/unicase/u32-ct-toupper: New file.
43179
43180         New module 'unicase/u16-ct-toupper'.
43181         * lib/unicase/u16-ct-toupper.c: New file.
43182         * modules/unicase/u16-ct-toupper: New file.
43183
43184         New module 'unicase/u8-ct-toupper'.
43185         * lib/unicase/u8-ct-toupper.c: New file.
43186         * modules/unicase/u8-ct-toupper: New file.
43187
43188         Add context arguments to u*_casemap functions.
43189         * lib/unicase/unicasemap.h: Include unicase.h.
43190         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43191         suffix_context arguments.
43192         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43193         functions.
43194         (FUNC): Add prefix_context and suffix_context arguments. Use
43195         uc_is_cased and uc_is_case_ignorable.
43196         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43197         * lib/unicase/u16-casemap.c: Likewise.
43198         * lib/unicase/u32-casemap.c: Likewise.
43199         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43200         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43201         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43202         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43203         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43204         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43205
43206         New module 'unicase/u32-suffix-context'.
43207         * lib/unicase/u32-suffix-context.c: New file.
43208         * modules/unicase/u32-suffix-context: New file.
43209
43210         New module 'unicase/u16-suffix-context'.
43211         * lib/unicase/u16-suffix-context.c: New file.
43212         * modules/unicase/u16-suffix-context: New file.
43213
43214         New module 'unicase/u8-suffix-context'.
43215         * lib/unicase/u8-suffix-context.c: New file.
43216         * lib/unicase/u-suffix-context.h: New file.
43217         * modules/unicase/u8-suffix-context: New file.
43218
43219         New module 'unicase/empty-suffix-context'.
43220         * lib/unicase/empty-suffix-context.c: New file.
43221         * modules/unicase/empty-suffix-context: New file.
43222
43223         New module 'unicase/u32-prefix-context'.
43224         * lib/unicase/u32-prefix-context.c: New file.
43225         * modules/unicase/u32-prefix-context: New file.
43226
43227         New module 'unicase/u16-prefix-context'.
43228         * lib/unicase/u16-prefix-context.c: New file.
43229         * modules/unicase/u16-prefix-context: New file.
43230
43231         New module 'unicase/u8-prefix-context'.
43232         * lib/unicase/u8-prefix-context.c: New file.
43233         * lib/unicase/u-prefix-context.h: New file.
43234         * lib/unicase/context.h: New file.
43235         * modules/unicase/u8-prefix-context: New file.
43236
43237         New module 'unicase/empty-prefix-context'.
43238         * lib/unicase/empty-prefix-context.c: New file.
43239         * modules/unicase/empty-prefix-context: New file.
43240
43241         New module 'unicase/ignorable'.
43242         * lib/unicase/ignorable.c: New file.
43243         * modules/unicase/ignorable: New file.
43244
43245         New module 'unicase/cased'.
43246         * lib/unicase/caseprop.h: New file.
43247         * lib/unicase/cased.c: New file.
43248         * modules/unicase/cased: New file.
43249
43250         New functions for case mapping of substrings.
43251         * lib/unicase.h (casing_prefix_context_t): New type.
43252         (unicase_empty_prefix_context): New variable.
43253         (u8_casing_prefix_context, u16_casing_prefix_context,
43254         u32_casing_prefix_context, u8_casing_prefixes_context,
43255         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43256         declarations.
43257         (casing_suffix_context_t): New type.
43258         (unicase_empty_suffix_context): New variable.
43259         (u8_casing_suffix_context, u16_casing_suffix_context,
43260         u32_casing_suffix_context, u8_casing_suffixes_context,
43261         u16_casing_suffixes_context, u32_casing_suffixes_context,
43262         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43263         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43264         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43265         declarations.
43266
43267 2009-06-28  Jim Meyering  <meyering@redhat.com>
43268
43269         boostrap: indent only with spaces
43270         * build-aux/bootstrap: Indent only with spaces, never TABs.
43271
43272         bootstrap: split long lines
43273         * build-aux/bootstrap: Keep line length < 80.
43274
43275         bootstrap: sync from coreutils
43276         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43277         just as autoreconf does.  Verify a list of prerequisite
43278         package-name,version-number pairs if defined in bootstrap.conf.
43279         Refer to README-prereq, if prerequisites are not satisfied.
43280
43281 2009-06-27  Eric Blake  <ebb9@byu.net>
43282
43283         tests: add test for bogus NULL definition
43284         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43285         * tests/test-stdlib.c: Likewise.
43286         * tests/test-string.c: Likewise.
43287         * tests/test-locale.c: Likewise.
43288         * tests/test-unistd.c: Likewise.
43289         * modules/stdio-tests (Depends-on): Add verify.
43290         * modules/stdlib-tests (Depends-on): Likewise.
43291         * modules/string-tests (Depends-on): Likewise.
43292         * modules/locale-tests (Depends-on): Likewise.
43293         * modules/unistd-tests (Depends-on): Likewise.
43294
43295 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43296
43297         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43298         self-explaining comment.
43299         * m4/selinux-selinux-h: Update serial.
43300         (gl_LIBSELINUX): New macro, adding a warning for missing development
43301         packages to code extracted from...
43302         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43303         Add warning for missing development packages here, too.
43304
43305 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43306
43307         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43308
43309 2009-06-25  Eric Blake  <ebb9@byu.net>
43310
43311         version-etc: fix regression
43312         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43313         gcc.
43314         (version_etc): Use it, to catch bugs with trailing NULL.
43315         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43316         (version_etc_va): Fix logic bug.
43317         * modules/version-etc-tests: Add test.
43318         * tests/test-version-etc.c: New file.
43319         * tests/test-version-etc.sh: Likewise.
43320
43321 2009-06-25  Sam Steingold  <sds@gnu.org>
43322
43323         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43324         mbtowc declaration.
43325
43326 2009-06-25  Eric Blake  <ebb9@byu.net>
43327
43328         fpurge: migrate into <stdio.h>
43329         * lib/fpurge.h: Delete...
43330         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43331         * lib/fpurge.c (fpurge): Change declaring header.
43332         * modules/fpurge (Files): Drop deleted file.
43333         (Depends-on): Add stdio.
43334         (configure.ac): Set witness.
43335         * modules/stdio (Makefile.am): Support fpurge macros.
43336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43337         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43338         * lib/fflush.c: Update client.
43339         * tests/test-fpurge.c: Likewise.
43340         * NEWS: Mention the change.
43341
43342 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43343
43344         * lib/argp-version-etc.c (program_authors): Add const
43345         qualifier.
43346         * lib/version-etc.c: Fix typos in the comments.
43347         * modules/argp-version-etc: Depends on version-etc.
43348
43349 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43350
43351         argp-version-etc: new module.
43352
43353         * lib/argp-version-etc.c: New file.
43354         * lib/argp-version-etc.h: New file.
43355         * modules/argp-version-etc: New file.
43356         * modules/argp-version-etc-tests: New file.
43357         * tests/test-argp-version-etc.c: New test.
43358         * tests/test-argp-version-etc-1.sh: New test.
43359
43360 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43361
43362         Provide additional interfaces and documentation for version-etc
43363         module.
43364
43365         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43366         interfaces.
43367         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43368         prototypes.
43369
43370 2009-06-24  Bruno Haible  <bruno@clisp.org>
43371
43372         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43373         HAVE_LIB${NAME} macro.
43374         Reported by Sam Steingold <sds@gnu.org>.
43375
43376 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43377
43378         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43379         needed.
43380
43381 2009-06-21  Bruno Haible  <bruno@clisp.org>
43382
43383         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43384         work.
43385         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43386         together with LIB${NAME}, LTLIB${NAME}.
43387         Reported by Sam Steingold <sds@gnu.org>.
43388
43389 2009-06-20  Jim Meyering  <meyering@redhat.com>
43390
43391         tests: make sc_require_test_exit_idiom more generic
43392         * top/maint.mk (Exit_witness_file): New overridable variable.
43393         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43394         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43395
43396 2009-06-19  Jim Meyering  <meyering@redhat.com>
43397
43398         hash: reverse order of src/dst parameters in an internal interface
43399         * lib/hash.c (transfer_entries): Reverse order of parameters to
43400         put DST before SRC.  Adjust callers.
43401
43402         tests: test-hash: avoid wholesale duplication
43403         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43404         Instead, use a loop and add a single conditional.
43405
43406         tests: test-hash: allow seed selection via a command line argument
43407         * tests/test-hash.c (get_seed): New function.
43408         (main): Use it.
43409
43410 2009-06-19  Eric Blake  <ebb9@byu.net>
43411
43412         hash: avoid memory leak on allocation failure
43413         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43414         failure.  Factor repeated algorithm...
43415         (transfer_entries): ...into new helper routine.
43416         (hash_delete): React to hash_rehash return value.
43417
43418         hash: reduce memory pressure in hash_rehash no-op case
43419         * lib/hash.c (next_prime): Avoid overflow.
43420         (hash_initialize): Factor bucket size computation...
43421         (compute_bucket_size): ...into new helper function.
43422         (hash_rehash): Use new function and open coding to reduce memory
43423         pressure, and avoid a memory leak in USE_OBSTACK code.
43424         Reported by Jim Meyering.
43425
43426 2009-06-18  Eric Blake  <ebb9@byu.net>
43427
43428         hash: make rotation more obvious
43429         * modules/hash (Depends-on): Add bitrotate and stdint.
43430         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43431         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43432         (SIZE_MAX): Rely on headers for definition.
43433         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43434         (raw_hasher): Use rotr_sz.
43435         Suggested by Jim Meyering.
43436
43437         hash: fix memory leak in last patch
43438         * lib/hash.c (hash_rehash): Avoid memory leak.
43439
43440         hash: avoid no-op rehashing
43441         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43442
43443         hash: provide default callback functions
43444         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43445         (hash_initialize): Use them as defaults.
43446         * tests/test-hash.c (main): Test this.
43447
43448         hash: minor optimization
43449         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43450         when possible.
43451         (hash_initialize): Document this promise.
43452         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43453         * tests/test-hash.c (hash_compare_strings): Test this.
43454
43455 2009-06-18  Bruno Haible  <bruno@clisp.org>
43456
43457         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43458         going to be replaced anyway.
43459
43460 2009-06-18  Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43463         in one place.
43464         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43465         be replaced anyway.
43466
43467 2009-06-18  Eric Blake  <ebb9@byu.net>
43468
43469         hash: check for resize before insertion
43470         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43471         threshold before insertion, so that a pathological hash_rehash
43472         that fills every bucket can still trigger another rehash.
43473
43474 2009-06-18  Jim Meyering  <meyering@redhat.com>
43475
43476         hash-tests: add a loop around the small tests
43477         * tests/test-hash.c (main): Repeat small tests with selected
43478         small initial table sizes.
43479
43480 2009-06-17  Eric Blake  <ebb9@byu.net>
43481
43482         hash: minor cleanups
43483         * lib/hash.h (hash_entry): Make opaque, by moving...
43484         * lib/hash.c (hash_entry): ...here.
43485         (hash_insert): Clarify restrictions on what can be inserted.
43486         (hash_get_next): Clarify when it is safe to remove an element
43487         during traversal.
43488         (check_tuning): Skip verification when tuning is known safe.
43489         (hash_initialize): Clarify restrictions on tuning.
43490
43491 2009-06-17  Jim Meyering  <jim@meyering.net>
43492         and Eric Blake  <ebb9@byu.net>
43493
43494         hash-tests: new module
43495         * modules/hash-tests: New file.
43496         * tests/test-hash.c: New file.
43497
43498 2009-06-17  Eric Blake  <ebb9@byu.net>
43499
43500         strstr-simple: document new module
43501         * MODULES.html.sh: Document new module.
43502
43503         strstr, strcasestr: replace on platforms with broken memchr
43504         * modules/strstr: Split into...
43505         * modules/strstr-simple: ...new module that does not care about
43506         performance, but does care about glibc bug.
43507         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43508         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43509         if platform memchr is broken, per Debian bug 521737.
43510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43511         memchr.
43512         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43513         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43514         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43515         * modules/mountlist (Depends-on): Add strstr-simple.
43516         * modules/gen-uni-tables (Depends-on): Likewise.
43517         * modules/argz (Depends-on): Add strstr.
43518
43519 2009-06-17  Bruno Haible  <bruno@clisp.org>
43520
43521         * modules/posix_spawn-internal (Depends-on): Add errno.
43522
43523 2009-06-17  Bruno Haible  <bruno@clisp.org>
43524
43525         Define missing ESTALE on Interix 3.5.
43526         * lib/errno.in.h (ESTALE): Assign a value if missing.
43527         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43528         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43529         missing.
43530         * doc/posix-headers/errno.texi: Mention the Interix bug.
43531         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43532
43533 2009-06-15  Eric Blake  <ebb9@byu.net>
43534
43535         memchr, memchr2: add valgrind exception
43536         * lib/memchr.valgrind: New file.
43537         * lib/memchr2.valgrind: New file.
43538         * modules/memchr (Files): Distribute valgrind file.
43539         * modules/memchr2 (Files): Likewise.
43540
43541         docs: memchr is no longer obsolete
43542         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43543         * lib/string.in.h (memchr): Simplify logic.
43544
43545 2009-06-14  Jim Meyering  <meyering@redhat.com>
43546
43547         link-follow: fix the "checking..." message to not mention trailing slash
43548         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43549         never considered trailing slashes.
43550
43551 2009-06-14  Bruno Haible  <bruno@clisp.org>
43552
43553         * m4/memchr.m4: Mention also the bug on IA-64.
43554         * doc/posix-functions/memchr.texi: Likewise.
43555
43556 2009-06-12  Eric Blake  <ebb9@byu.net>
43557
43558         memchr: detect broken x86_64 and alpha implementations
43559         * modules/memchr-tests (Depends-on): Move mmap detection...
43560         * modules/memchr (Depends-on): ...here.
43561         (configure.ac): Set indicator.
43562         * lib/string.in.h (memchr): Declare replacement.
43563         * modules/string (Makefile.am): Trigger replacement.
43564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43565         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43566         bugs.
43567         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43568         * modules/getpagesize (License): Relax license.
43569
43570 2009-06-11  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/idpriv.h: Add more references.
43573
43574 2009-06-08  Bruno Haible  <bruno@clisp.org>
43575
43576         Tests for module 'idpriv-droptemp'.
43577         * modules/idpriv-droptemp-tests: New file.
43578         * tests/test-idpriv-droptemp.sh: New file.
43579         * tests/test-idpriv-droptemp.su.sh: New file.
43580         * tests/test-idpriv-droptemp.c: New file.
43581
43582         New module 'idpriv-droptemp'.
43583         * lib/idpriv-droptemp.c: New file.
43584         * modules/idpriv-droptemp: New file.
43585
43586 2009-06-08  Bruno Haible  <bruno@clisp.org>
43587
43588         Tests for module 'idpriv-drop'.
43589         * modules/idpriv-drop-tests: New file.
43590         * tests/test-idpriv-drop.sh: New file.
43591         * tests/test-idpriv-drop.su.sh: New file.
43592         * tests/test-idpriv-drop.c: New file.
43593
43594         New module 'idpriv-drop'.
43595         * lib/idpriv.h: New file.
43596         * lib-idpriv-drop.c: New file.
43597         * m4/idpriv.m4: New file.
43598         * modules/idpriv-drop: New file.
43599
43600 2009-06-08  Bruno Haible  <bruno@clisp.org>
43601
43602         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43603         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43604         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43605         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43606         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43607         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43608         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43609
43610 2009-06-08  Eric Blake  <ebb9@byu.net>
43611
43612         test-strstr: use memory fence, when possible
43613         * tests/test-strstr.c (main): Use memory fence, in order to be
43614         more likely to trigger Debian bug 521737.
43615         * modules/strstr-tests (Files): Pull in additional files.
43616
43617         memchr: no longer obsolete, for wider field testing
43618         * modules/memchr (Status, Notice): Delete, this module is no
43619         longer obsolete.
43620         * modules/vasnprintf (Depends-on): Add memchr.
43621
43622 2009-06-07  Jim Meyering  <meyering@redhat.com>
43623
43624         hash: declare some functions with the warn_unused_result attribute
43625         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43626
43627 2009-06-07  Bruno Haible  <bruno@clisp.org>
43628
43629         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43630         Reported by Eric Blake.
43631
43632 2009-06-06  Eric Blake  <ebb9@byu.net>
43633
43634         test-alignof: fix typo with long double
43635         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43636         compiler error.
43637
43638 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43639
43640         Escape non-texinfo { and }s.
43641         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43642         markup error.
43643
43644 2009-06-04  Jim Meyering  <meyering@redhat.com>
43645
43646         gitlog-to-changelog: don't infloop on an empty commit log
43647         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43648         Reported by Boris Petersen <transacid@centerim.org>.
43649
43650 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43651
43652         version-etc: extend for packagers
43653         Add three new configure options, intended for packagers:
43654           --with-packager="packager name"
43655           --with-packager-version="packager-specific version"
43656           --with-packager-bug-reports="packager bug reporting"
43657         An example with coreutils:
43658           $ ./configure \
43659             --with-packager=Gentoo \
43660             --with-packager-bug-report=http://bugs.gentoo.org/ \
43661             --with-packager-version="patchset 1.6"
43662           $ ./src/ls --version | head -n2
43663           ls (GNU coreutils) 7.1-dirty
43664           Packaged by Gentoo (patchset 1.6)
43665         Note that the bug reporting info via --help doesn't show up because
43666         coreutils uses its own custom emit_bug_reporting_address() implementation
43667         in src/system.h.  If it didn't, it'd look like:
43668           $ ./src/ls --help | tail -n4
43669           Report bugs to <bug-coreutils@gnu.org>.
43670           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43671           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43672           General help using GNU software: <http://www.gnu.org/gethelp/>.
43673         * lib/version-etc.c: Print new information, if provided.
43674         * m4/version-etc.m4: New file.
43675         * modules/version-etc (Files): Add m4/version-etc.m4.
43676         (configure.ac): Add gl_VERSION_ETC.
43677
43678 2009-05-31  Bruno Haible  <bruno@clisp.org>
43679
43680         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43681         and 'int64_t'.
43682         * modules/alignof-tests (Dependencies): Add stdint.
43683         Reported by Eric Blake.
43684
43685 2009-05-31  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43688         restriction due to compiler bugs.
43689         Reported by Eric Blake.
43690
43691 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43692             Bruno Haible  <bruno@clisp.org>
43693
43694         Fix test-alignof failure.
43695         * lib/alignof.h (alignof_slot): New macro.
43696         (alignof_type): New macro, with the same semantics as the previous
43697         'alignof'.
43698         (alignof): Alias to alignof_slot.
43699         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43700         check that the results are usable as constant expressions.
43701
43702 2009-05-31  Bruno Haible  <bruno@clisp.org>
43703
43704         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43705         * tests/test-memchr.c (main): Check that memchr does not read past the
43706         first occurrence of the byte.
43707         * tests/test-strstr.c (main): Update comment.
43708         Suggested by Eric Blake.
43709
43710 2009-05-30  Bruno Haible  <bruno@clisp.org>
43711
43712         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43713         detail how to use dumpbin.
43714         Reported by David Byron <dbyron@dbyron.com>.
43715
43716 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43717
43718         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43719
43720 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43721
43722         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43723
43724 2009-05-28  Bruno Haible  <bruno@clisp.org>
43725
43726         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43727         build-aux/ files.
43728
43729 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43730
43731         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43732
43733 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43734
43735         * gnulib-tool (sed_transform_main_lib_file)
43736         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43737         regexps.
43738
43739 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43740
43741         * tests/test-strstr.c: Add another self-test.
43742         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43743         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43744
43745 2009-05-23  Bruno Haible  <bruno@clisp.org>
43746
43747         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43748         change.
43749
43750 2009-05-21  Bruno Haible  <bruno@clisp.org>
43751
43752         Simplify use of mode_t varargs.
43753         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43754         uses 'mode_t' or 'int'.
43755         * lib/openat.c (openat): Likewise.
43756         * lib/open-safer.c (open_safer): Likewise.
43757         * m4/mode_t.m4: New file.
43758         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43759         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43760         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43761         * modules/open (Files): Add m4/mode_t.m4.
43762         * modules/openat (Files): Likewise.
43763         * modules/fcntl-safer (Files): Likewise.
43764         Suggested by Eric Blake.
43765
43766 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43767
43768         * doc/glibc-functions/fallocate.texi: New file.
43769         * doc/gnulib.texi: Include it.
43770
43771 2009-05-21  Eric Blake  <ebb9@byu.net>
43772             Bruno Haible  <bruno@clisp.org>
43773
43774         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43775         invocations.
43776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43777
43778 2009-05-21  Eric Blake  <ebb9@byu.net>
43779             Bruno Haible  <bruno@clisp.org>
43780
43781         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43782         include_next. Fix of 2008-11-20 commit.
43783         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43784         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43785         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43786         NEXT_MATH_H.
43787         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43788         instead of NEXT_MATH_H.
43789
43790 2009-05-21  Bruno Haible  <bruno@clisp.org>
43791
43792         Avoid redefinition warnings for SIZE_MAX.
43793         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43794         Reported by Simon Josefsson.
43795
43796 2009-05-21  Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43799         AC_CACHE_VAL.
43800
43801 2009-05-20  Bruno Haible  <bruno@clisp.org>
43802
43803         Make zeroptr.h work on mingw.
43804         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43805         mprotect.
43806         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43807         * modules/memchr2-tests (configure.ac): Likewise.
43808         * modules/memcmp-tests (configure.ac): Likewise.
43809         * modules/memmem-tests (configure.ac): Likewise.
43810         * modules/memrchr-tests (configure.ac): Likewise.
43811         Reported by Simon Josefsson.
43812
43813 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43814
43815         * tests/test-glob.c: Include string.h for strcmp prototype.
43816
43817 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43818
43819         * modules/getdelim (Depends-on): Add explicit stdint, although it
43820         was implicitly already pulled in via realloc-posix.
43821         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43822
43823 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43824
43825         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43826         G. Christensen" <tgc@jupiterrise.com>.
43827         * m4/sys_socket_h.m4: Check for sa_family_t.
43828         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43829         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43830         * tests/test-sys_socket.c: Check that sa_family_t works.
43831
43832 2009-05-18  Eric Blake  <ebb9@byu.net>
43833
43834         maint.mk: allow gnulib_dir in VPATH build
43835         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43836
43837 2009-05-15  Jim Meyering  <meyering@redhat.com>
43838
43839         maint.mk: Give gnulib_dir a default definition.
43840         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43841         Thus, most packages no longer need to specify this variable in cfg.mk
43842
43843 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43844
43845         rename.m4: fix typos that would make non-mingw cross-configure fail
43846         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43847
43848 2009-05-13  Eric Blake  <ebb9@byu.net>
43849
43850         mmap-anon: avoid out-of-order autoconf expansion
43851         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43852         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43853         * modules/memchr-tests (Depends-on): Add extensions.
43854         * modules/memchr2-tests (Depends-on): Add extensions.
43855         * modules/memcmp-tests (Depends-on): Add extensions.
43856         * modules/memmem-tests (Depends-on): Add extensions.
43857         * modules/memrchr-tests (Depends-on): Add extensions.
43858
43859 2009-05-13  Bruno Haible  <bruno@clisp.org>
43860
43861         Make some tests ISO C 99 compliant.
43862         * tests/zerosize-ptr.h: New file.
43863         * tests/test-memchr.c: Include zerosize-ptr.h.
43864         (main): Use a zero-size object pointer instead of NULL.
43865         * tests/test-memchr2.c: Include zerosize-ptr.h.
43866         (main): Use a zero-size object pointer instead of NULL.
43867         * tests/test-memcmp.c: Include zerosize-ptr.h.
43868         (main): Use a zero-size object pointer instead of NULL.
43869         * tests/test-memmem.c: Include zerosize-ptr.h.
43870         (main): Use a zero-size object pointer instead of NULL.
43871         * tests/test-memrchr.c: Include zerosize-ptr.h.
43872         (main): Use a zero-size object pointer instead of NULL.
43873         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43874         m4/mmap-anon.m4.
43875         (Depends-on): Add getpagesize.
43876         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43877         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43878         m4/mmap-anon.m4.
43879         (Depends-on): Add getpagesize.
43880         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43881         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43882         m4/mmap-anon.m4.
43883         (Depends-on): Add getpagesize.
43884         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43885         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43886         m4/mmap-anon.m4.
43887         (Depends-on): Add getpagesize.
43888         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43889         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43890         m4/mmap-anon.m4.
43891         (Depends-on): Add getpagesize.
43892         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43893
43894 2009-05-12  Bruno Haible  <bruno@clisp.org>
43895
43896         Tests for module 'alignof'.
43897         * modules/alignof-tests: New file.
43898         * tests/test-alignof.c: New file.
43899
43900 2009-05-12  Bruno Haible  <bruno@clisp.org>
43901
43902         Fix alignof macro.
43903         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43904         vendor compilers that are always correct.
43905
43906 2009-05-12  Bruno Haible  <bruno@clisp.org>
43907
43908         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43909         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43910         not whether its fully works.
43911
43912 2009-05-12  Bruno Haible  <bruno@clisp.org>
43913
43914         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43915
43916 2009-05-12  Jim Meyering  <meyering@redhat.com>
43917
43918         * top/maint.mk: Adjust backslash alignment.
43919
43920 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43921
43922         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43923
43924 2009-05-11  Eric Blake  <ebb9@byu.net>
43925
43926         argp: avoid undefined behavior
43927         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43928         macros.
43929
43930 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43931
43932         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43933         user.name to prevent git commit from complaining.
43934
43935 2009-05-10  Bruno Haible  <bruno@clisp.org>
43936
43937         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43938         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43939         it rewrites every file name only once.
43940         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43941
43942 2009-05-08  Bruno Haible  <bruno@clisp.org>
43943
43944         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43945         instead of 'max'.
43946
43947 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43948
43949         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43950         sockaddr_storage test.
43951
43952 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43953
43954         * modules/sys_socket (Makefile.am): Substitute
43955         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43956         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43957         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43958         * tests/test-sys_socket.c: Check sockaddr_storage.
43959
43960 2009-05-08  Bruno Haible  <bruno@clisp.org>
43961
43962         New module 'alignof'.
43963         * lib/alignof.h: New file.
43964         * modules/alignof: New file.
43965
43966 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43967             Bruno Haible  <bruno@clisp.org>
43968
43969         Fix test-file-has-acl on FreeBSD.
43970         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43971         mask is implicitly added.
43972         * tests/test-file-has-acl.c: Include <signal.h>.
43973         (main): Terminate the test after 5 seconds.
43974         * modules/acl-tests (configure.ac): Check for alarm function.
43975
43976 2009-05-04  Bruno Haible  <bruno@clisp.org>
43977
43978         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43979         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43980         * modules/errno (configure.ac): Drop AC_REQUIRE.
43981         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43982         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43983
43984 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43985
43986         * modules/glob-tests: New module.
43987         * tests/test-glob.c: Add.
43988
43989 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43990
43991         * modules/fnmatch-tests: New module.
43992         * tests/test-fnmatch.c: Add.
43993
43994 2009-05-04  Eric Blake  <ebb9@byu.net>
43995
43996         maint: make the new no-submodule-changes rule VPATH-safe
43997         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43998
43999 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44000             Bruno Haible  <bruno@clisp.org>
44001
44002         acl: Fix infinite loop on FreeBSD.
44003         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44004         of return value from acl_get_entry.
44005         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44006         Likewise.
44007
44008 2009-05-03  Bruno Haible  <bruno@clisp.org>
44009
44010         * lib/acl-internal.h (acl_entries): Clarify return value.
44011         * lib/acl_entries.c (acl_entries): Likewise.
44012
44013 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44014
44015         Bug fix in acl module.
44016         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44017
44018 2009-05-03  Bruno Haible  <bruno@clisp.org>
44019
44020         Create gperf-generated file in the source dir, not in the build dir.
44021         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44022         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44023         * modules/unicase/locale-language (unicase/locale-languages.h):
44024         Likewise.
44025         * modules/unicase/special-casing (unicase/special-casing-table.h):
44026         Likewise.
44027         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44028         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44029         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44030         Reported by Ralf Wildenhues.
44031
44032 2009-05-03  Bruno Haible  <bruno@clisp.org>
44033
44034         * modules/fnmatch (Description, configure.ac): Taken from
44035         fnmatch-posix.
44036         * modules/fnmatch-posix: Turn into a symbolic reference to the
44037         'fnmatch' module, and deprecate.
44038         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44039
44040 2009-05-03  Bruno Haible  <bruno@clisp.org>
44041
44042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44043         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44044         Reported by Ralf Wildenhues.
44045
44046 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44047
44048         * m4/fnmatch.m4: Fix fnmatch re-define.
44049
44050 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44051
44052         priv-set: new module and tests; adapt write-any-file
44053         * lib/priv-set.c: New file.
44054         * lib/priv-set.h: New file.
44055         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44056         * lib/write-any-file.c: Simplify by using priv-set module.
44057         * m4/priv-set.m4: New file.
44058         * modules/priv-set: New file.
44059         * modules/unlinkdir: Add dependency on priv-set module.
44060         * modules/write-any-file: Likewise.
44061
44062         Tests for module 'priv-set'.
44063         * modules/priv-set-tests: New file.
44064         * tests/test-priv-set.c: New file.
44065
44066 2009-05-03  Jim Meyering  <meyering@redhat.com>
44067             Bruno Haible  <bruno@clisp.org>
44068
44069         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44070         use the converted UTF-8 variant of the name instead.
44071
44072 2009-05-03  Jim Meyering  <meyering@redhat.com>
44073
44074         tests: tighten some getdate tests
44075         * tests/test-getdate.c (main): Tighten tests: require equality,
44076         not just greater than.  Set TZ envvar to UTC0.
44077
44078 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44079
44080         getdate: correctly interpret "next monday" when run on a Monday
44081         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44082         that e.g., "next tues" (when run on a tuesday) results in a date
44083         that is one week in the future, and not today's date.
44084         I.e., add a week when the wday is the same as the current one.
44085         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44086         and earlier by Martin Bernreuther and Jan Minář.
44087         * tests/test-getdate.c (main): Check that "next DAY" is always in
44088         the future and that "last DAY" is always in the past.
44089
44090 2009-05-02  Jim Meyering  <meyering@redhat.com>
44091
44092         build: ensure that a release build fails when a submodule is unclean
44093         * top/maint.mk (no-submodule-changes): New rule.
44094         (alpha beta major): Depend on it.
44095
44096 2009-05-02  Bruno Haible  <bruno@clisp.org>
44097
44098         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44099         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44100         shell variable gl_fnmatch_required to detect which variant is
44101         requested.
44102         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44103         gl_FUNC_FNMATCH_POSIX.
44104         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44105         exclude fnmatch-posix.
44106
44107 2009-05-02  Bruno Haible  <bruno@clisp.org>
44108
44109         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44110         * modules/mbsrtowcs (License): Change to LGPLv2+.
44111         * modules/strnlen1 (License): Likewise.
44112         Reported by Simon Josefsson.
44113
44114 2009-05-02  Bruno Haible  <bruno@clisp.org>
44115
44116         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44117         "cross".
44118         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44119         gnulib-tool was called with option --source-base=lib.
44120
44121 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44122
44123         Use automake *-local hooks without commands, for extensibility.
44124         * modules/localcharset (Makefile.am): Rename install-exec-local
44125         rule to install-exec-localcharset, and make it a prerequisite of
44126         install-exec-local.  Likewise, rename the uninstall-local rule to
44127         uninstall-localcharset, and make it a prerequisite of the former.
44128
44129 2009-05-01  Bruno Haible  <bruno@clisp.org>
44130
44131         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44132         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44133         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44134         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44135         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44136         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44137         m4/locale-zh.m4, m4/codeset.m4.
44138
44139         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44140         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44141         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44142         m4/locale-zh.m4.
44143
44144         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44145         REPLACE_WCRTOMB if mbstate_t must be replaced.
44146         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44147         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44148
44149 2009-05-01  Bruno Haible  <bruno@clisp.org>
44150
44151         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44152         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44153         dngettext, dcngettext, textdomain, bindtextdomain,
44154         bind_textdomain_codeset): Undefine before redefining.
44155
44156 2009-04-30  Bruno Haible  <bruno@clisp.org>
44157
44158         Fix bug introduced on 2009-04-25.
44159         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44160         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44161         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44162         is defined.
44163         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44164         is defined.
44165         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44166         is defined.
44167         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44168
44169 2009-04-28  Bruno Haible  <bruno@clisp.org>
44170
44171         Comment tweaks.
44172         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44173         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44174         * lib/unicase.h (u*_casexfrm): Likewise.
44175         Reported by Paolo Bonzini.
44176
44177 2009-04-28  Bruno Haible  <bruno@clisp.org>
44178
44179         Fix a compilation error.
44180         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44181         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44182         Reported by Jim Meyering.
44183
44184 2009-04-27  Bruno Haible  <bruno@clisp.org>
44185
44186         New module 'libunistring'.
44187         * modules/libunistring: New file.
44188         * m4/libunistring.m4: New file.
44189         * MODULES.html.sh (Unicode string functions): Add it.
44190
44191 2009-04-27  Eric Blake  <ebb9@byu.net>
44192
44193         maint.mk: allow package-specific header to provide <config.h>
44194         * top/maint.mk (sc_require_config_h): New variable.
44195         (sc_require_config_h, sc_require_config_h_first): Use it.
44196
44197 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44198
44199         * top/maint.mk (sc_avoid_if_before_free): Except
44200         useless-if-before-free script.
44201
44202 2009-04-27  Eric Blake  <ebb9@byu.net>
44203
44204         maintainer-makefile: depend on all required helper scripts
44205         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44206         useless-if-before-free.
44207         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44208         version, rather than assuming gnulib checkout is available.
44209         Reported by Simen Josefsson.
44210
44211 2009-04-26  Bruno Haible  <bruno@clisp.org>
44212
44213         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44214         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44215         "../" or "..".
44216
44217 2009-04-26  Bruno Haible  <bruno@clisp.org>
44218
44219         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44220         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44221         AC_LIB_HAVE_LINKFLAGS.
44222
44223 2009-04-26  Bruno Haible  <bruno@clisp.org>
44224
44225         Simplify calling convention of u*_conv_from_encoding.
44226         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44227         u32_conv_from_encoding): Expect a resultbuf argument and return the
44228         result directly as a pointer.
44229         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44230         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44231         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44232         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44233         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44234         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44235         Update.
44236         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44237         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44238         * lib/vasnprintf.c (VASNPRINTF): Update.
44239         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44240         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44241         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44242         * NEWS: Mention the change.
44243
44244 2009-04-26  Bruno Haible  <bruno@clisp.org>
44245
44246         Simplify calling convention of u*_conv_to_encoding.
44247         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44248         u32_conv_to_encoding): Expect a resultbuf argument and return the
44249         result directly as a pointer.
44250         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44251         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44252         freeing scaled_offsets if mem_iconveha failed.
44253         * lib/unicase/u-casexfrm.h (FUNC): Update.
44254         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44255         * lib/vasnprintf.c (VASNPRINTF): Update.
44256         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44257         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44258         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44259         * NEWS: Mention the change.
44260
44261 2009-04-26  Bruno Haible  <bruno@clisp.org>
44262
44263         Avoid test failures on AIX and OSF/1.
44264         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44265         malloc(0).
44266         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44267         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44268         Likewise.
44269         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44270         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44271         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44272         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44273         * doc/posix-functions/malloc.texi: Document the portability problem
44274         related to malloc(0).
44275
44276 2009-04-26  Bruno Haible  <bruno@clisp.org>
44277
44278         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44279         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44280         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44281
44282 2009-04-25  Bruno Haible  <bruno@clisp.org>
44283
44284         Avoid link error when creating a namespace clean library.
44285         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44286         as macro with arguments if already defined as an alias.
44287         * lib/signbitf.c (gl_signbitf): Don't undefine.
44288         * lib/signbitd.c (gl_signbitd): Don't undefine.
44289         * lib/signbitl.c (gl_signbitl): Don't undefine.
44290
44291 2009-04-25  Jim Meyering  <meyering@redhat.com>
44292
44293         vc-list-files: fix another quoting bug
44294         * build-aux/vc-list-files: Avoid sed backslash expansion
44295         of pathological directory names.
44296
44297 2009-04-25  Eric Blake  <ebb9@byu.net>
44298
44299         vc-list-files: fix shell quoting error
44300         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44301         timestamp.
44302
44303 2009-04-25  Jim Meyering  <meyering@redhat.com>
44304
44305         vc-list-files: restore lost functionality with subdir argument
44306         * build-aux/vc-list-files: When given a non-"." sub-directory
44307         argument, substitute the $dir/ prefix back onto each resulting name.
44308         Otherwise, coreutils' root_tests check would fail.
44309
44310 2009-04-24  Eric Blake  <ebb9@byu.net>
44311
44312         vc-list-files: ignore git symlinks
44313         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44314         than ls-files, to ignore git symlinks.
44315
44316         maint.mk: import improvements from m4
44317         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44318         (move_if_change): Delete unused macro.
44319         (news-date-check, vc-diff-check): Support VPATH builds.
44320         (announcement): Likewise.  Split --bootstrap-tools list...
44321         (boostrap-tools): ...into separate list, which can be overridden
44322         in cfg.mk.
44323         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44324         requiring dependency on useless-if-before-free module.
44325         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44326         Support VPATH builds.
44327
44328 2009-04-24  Jim Meyering  <meyering@redhat.com>
44329
44330         maint.mk: remove coreutils-specific rules and variables
44331         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44332         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44333         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44334
44335         maint.mk: remove obsolete rule
44336         * top/maint.mk (rel-check): Remove rule.
44337         (WGET, WGETFLAGS): Remove now-unused variables.
44338
44339 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44340
44341         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44342         consistency.
44343
44344         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44345         '$(PATH_SEPARATOR)' instead of ':'.
44346
44347 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44348
44349         * lib/getopt1.c (main): Use 'const' for static array.
44350
44351 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44352
44353         * top/maint.mk: Sync with coreutils.
44354         * NEWS: Explain incompatibilities.
44355
44356 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44357             Bruno Haible  <bruno@clisp.org>
44358
44359         Fix cross-compilation results.
44360         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44361         statement, as third argument of AC_TRY_RUN.
44362         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44363         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44364         Likewise.
44365         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44366         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44367         Likewise.
44368         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44369         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44370         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44371
44372 2009-04-20  Bruno Haible  <bruno@clisp.org>
44373
44374         Avoid test failure on mingw.
44375         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44376
44377 2009-04-20  Bruno Haible  <bruno@clisp.org>
44378
44379         Avoid compilation error on mingw.
44380         * modules/localename-tests (Depends-on): Add locale.
44381
44382 2009-04-19  Bruno Haible  <bruno@clisp.org>
44383
44384         Support for building a shared library on Windows platforms.
44385         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44386         (main): Test the presence of UNINORM_NFC here.
44387         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44388         (main): Test the presence of UNINORM_NFD here.
44389         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44390         (main): Test the presence of UNINORM_NFKC here.
44391         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44392         (main): Test the presence of UNINORM_NFKD here.
44393
44394 2009-04-19  Bruno Haible  <bruno@clisp.org>
44395
44396         Avoid a compiler warning.
44397         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44398         Change type of variable 'sequence'.
44399
44400 2009-04-19  Bruno Haible  <bruno@clisp.org>
44401
44402         * modules/configmake (Makefile.am): When the contents of configmake.h
44403         does not change, arrange to preserve its modification time.
44404
44405 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44406
44407         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44408         gettext domain.
44409
44410 2009-04-16  Jim Meyering  <meyering@redhat.com>
44411
44412         useless-if-before-free: improve conversion code
44413         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44414         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44415
44416 2009-04-14  Bruno Haible  <bruno@clisp.org>
44417
44418         * modules/fcntl (Depends-on): Add extensions.
44419         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44420
44421 2009-04-12  Ben Pfaff  <blp@gnu.org>
44422
44423         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44424         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44425
44426 2009-03-20  Ben Pfaff  <blp@gnu.org>
44427
44428         Make rename replace existing destinations on Windows.
44429         * m4/rename.m4: Add test for Mingw.
44430         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44431         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44432         * doc/posix-functions/rename.texi: Document.
44433
44434 2009-04-10  Bruno Haible  <bruno@clisp.org>
44435
44436         New include file "iconveh.h".
44437         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44438         * lib/striconveh.h: Include it.
44439         (enum iconv_ilseq_handler): Remove definition.
44440         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44441         striconveh.h.
44442         * lib/striconveha.c: Include striconveh.h.
44443         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44444         * modules/striconveh (Files): Add lib/iconveh.h.
44445         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44446         lib/striconveh.h.
44447
44448 2009-04-10  Bruno Haible  <bruno@clisp.org>
44449
44450         * lib/uniconv.h: Update comment.
44451
44452 2009-04-10  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44455         always.
44456         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44457         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44458         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44459         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44460         "unistring-notinline.h", so that the function gets defined always.
44461         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44462         * lib/unistr/u8-uctomb.c: Likewise.
44463         * lib/unistr/u16-mbtouc.c: Likewise.
44464         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44465         * lib/unistr/u16-uctomb.c: Likewise.
44466         * lib/unistr/u32-mbtouc.c: Likewise.
44467         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44468         * lib/unistr/u32-uctomb.c: Likewise.
44469
44470 2009-04-10  Bruno Haible  <bruno@clisp.org>
44471
44472         Mark 'utime' obsolete.
44473         * modules/utime (Status, Notice): New sections.
44474         Suggested by Jim Meyering.
44475
44476         Fix cross-compile guess for utime test.
44477         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44478         autoconf.
44479         * doc/posix-functions/utime.texi: Give more precisions.
44480         Reported by Jan <ipif@ymail.com>.
44481
44482 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44483
44484         filevercmp: correct today's change
44485         * lib/filevercmp.c: Also handle coreutils' test inputs.
44486         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44487
44488         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44489         for reporting it.
44490         * lib/filevercmp.c: Special handle for "", "." and "..".
44491         * tests/test-filevercmp.c: Enlarge the set suite.
44492
44493 2009-04-07  Jim Meyering  <meyering@redhat.com>
44494
44495         useless-if-before-free: show how to remove braced useless free, too
44496         * build-aux/useless-if-before-free: still only in a comment, though.
44497
44498 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44499
44500         maint.mk: import changes to syntax-check macros from coreutils
44501         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44502         Use them in the relevant macros.
44503
44504 2009-04-06  Bruno Haible  <bruno@clisp.org>
44505
44506         Fix unportable use of bit-fields.
44507         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44508         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44509         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44510
44511 2009-04-06  Bruno Haible  <bruno@clisp.org>
44512
44513         Avoid test failures on AIX and OSF/1.
44514         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44515         that malloc(0) = NULL.
44516         * tests/unicase/test-u8-tolower.c (check): Likewise.
44517         * tests/unicase/test-u8-totitle.c (check): Likewise.
44518         * tests/unicase/test-u8-toupper.c (check): Likewise.
44519         * tests/unicase/test-u16-casefold.c (check): Likewise.
44520         * tests/unicase/test-u16-tolower.c (check): Likewise.
44521         * tests/unicase/test-u16-totitle.c (check): Likewise.
44522         * tests/unicase/test-u16-toupper.c (check): Likewise.
44523         * tests/unicase/test-u32-casefold.c (check): Likewise.
44524         * tests/unicase/test-u32-tolower.c (check): Likewise.
44525         * tests/unicase/test-u32-totitle.c (check): Likewise.
44526         * tests/unicase/test-u32-toupper.c (check): Likewise.
44527         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44528         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44529         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44530         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44531         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44532         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44533         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44534         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44535         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44536         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44537         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44538         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44539
44540 2009-04-05  Bruno Haible  <bruno@clisp.org>
44541
44542         Work around an autoconf limitation.
44543         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44544         comment line if it would be longer than 3 KB.
44545
44546 2009-04-05  Bruno Haible  <bruno@clisp.org>
44547
44548         Avoid test failure with libiconv-1.13.
44549         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44550         of the expected test results.
44551
44552 2009-04-05  Bruno Haible  <bruno@clisp.org>
44553
44554         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44555         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44556         that it should be installed.
44557
44558 2009-04-05  Bruno Haible  <bruno@clisp.org>
44559
44560         * gnulib-tool: New option --copy-file.
44561         (func_usage): Document it.
44562         (func_dest_tmpfilename): Moved out of func_import.
44563         (func_add_file, func_update_file): New functions, extracted from
44564         func_import.
44565         (func_import): Update.
44566
44567 2009-04-05  Karl Berry  <karl@gnu.org>
44568
44569         * README: prominently mention gnulib-tool.
44570         Rearrange sections so getting the code is near the top.
44571
44572 2009-04-05  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/unicase.h: Mention u*_cmp2.
44575         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44576         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44577         * lib/unicase/ulc-casecmp.c: Likewise.
44578         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44579         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44580         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44581         unistr/u8-cmp.
44582         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44583         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44584         unistr/u16-cmp.
44585         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44586         unistr/u32-cmp.
44587
44588         * lib/uninorm.h: Mention u*_cmp2.
44589         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44590         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44591         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44592         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44593         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44594         unistr/u8-cmp.
44595         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44596         unistr/u16-cmp.
44597         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44598         unistr/u32-cmp.
44599
44600         New module 'unistr/u32-cmp2'.
44601         * lib/unistr/u32-cmp2.c: New file.
44602         * modules/unistr/u32-cmp2: New file.
44603
44604         New module 'unistr/u16-cmp2'.
44605         * lib/unistr/u16-cmp2.c: New file.
44606         * modules/unistr/u16-cmp2: New file.
44607
44608         New module 'unistr/u8-cmp2'.
44609         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44610         * lib/unistr/u8-cmp2.c: New file.
44611         * lib/unistr/u-cmp2.h: New file.
44612         * modules/unistr/u8-cmp2: New file.
44613
44614 2009-04-05  Bruno Haible  <bruno@clisp.org>
44615
44616         * lib/unictype.h (uc_property_is_valid): New macro.
44617         * tests/unictype/test-pr_byname.c (main): Use it.
44618
44619         * lib/unistr.h: Doc fixes.
44620         * lib/uniconv.h: Doc fixes.
44621         * lib/unictype.h: Doc fixes.
44622
44623 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44624
44625         Port coreutils 7.2 to Solaris 8.
44626
44627         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44628         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44629         for Solaris 8.  This is a bit of a hack, as it means it's the
44630         caller's responsibility to add -lnsl if needed, but most likely it
44631         won't be needed since only getaddrinfo uses this and getaddrinfo
44632         isn't needed on Solaris 8.
44633
44634         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44635         problem to Solaris 8 encountered with coreutils 7.2, which
44636         resulted in a message "fnmatch.c:292: warning: passing argument 4
44637         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44638         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44639
44640 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44641
44642         * m4/ld-version-script.m4: Add FIXME comment.
44643
44644 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44645
44646         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44647         SOVERSION variable.
44648
44649 2009-04-02  Bruno Haible  <bruno@clisp.org>
44650
44651         * Makefile (info, html, dvi, pdf): Combine the rules.
44652         Suggested by Jim Meyering.
44653
44654 2009-04-01  Bruno Haible  <bruno@clisp.org>
44655
44656         * Makefile (info, html, dvi, pdf): New targets.
44657         Reported by Reuben Thomas <rrt@sc3d.org>.
44658
44659 2009-04-01  Bruno Haible  <bruno@clisp.org>
44660
44661         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44662         can be put into PATH.
44663         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44664
44665 2009-04-01  Bruno Haible  <bruno@clisp.org>
44666
44667         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44668
44669 2009-04-01  Bruno Haible  <bruno@clisp.org>
44670
44671         Rename module 'visibility'.
44672         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44673         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44674         * doc/gnulib.texi: Update.
44675         * MODULES.html.sh (Misc): Update.
44676         * NEWS: Mention the change.
44677
44678 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44679
44680         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44681         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44682         Eric Blake <ebb9@byu.net> for review.
44683         * MODULES.html.sh: Add lib-msvc-compat.
44684         * doc/gnulib.texi: Link to new section.
44685         * m4/ld-output-def.m4: New file.
44686         * doc/ld-output-def.texi: New file.
44687
44688 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44689
44690         Rename ld-version-script to lib-symbol-versions.  Suggested by
44691         Bruno Haible <bruno@clisp.org>.
44692         * modules/ld-version-script: Renamed to lib-symbol-versions.
44693         * doc/ld-version-script.texi: Fix module name.
44694         * MODULES.html.sh: Add lib-symbol-versions.
44695
44696 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44697
44698         * modules/u64-tests: New file.
44699         * tests/test-u64.c: New file.
44700
44701 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44702
44703         * MODULES.html.sh: Mention u64.
44704         * modules/u64: New module.
44705         * modules/crypto/sha512: Depend on u64 module instead of providing
44706         u64.h.
44707
44708 2009-03-27  Eric Blake  <ebb9@byu.net>
44709
44710         test-strerror: make debugging EAI_SYSTEM easier
44711         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44712         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44713         failure was EAI_SYSTEM.
44714
44715 2009-03-25  Bruno Haible  <bruno@clisp.org>
44716
44717         Fix a problem with --enable-relocatable on Solaris 7.
44718         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44719         since 2008-02-24.
44720
44721 2009-03-25  Eric Blake  <ebb9@byu.net>
44722
44723         test-sockets: avoid gcc warning
44724         * tests/test-sockets.c (main): Silence compiler warning.
44725
44726 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44727
44728         New modules nproc, pthread, contributed by Glen Lenker.
44729
44730         * MODULES.html.sh: Add pthread, nproc.
44731         * lib/nproc.c: New file.
44732         * lib/nproc.h: New file.
44733         * lib/pthread.in.h: New file.
44734         * m4/pthread.m4: New file.
44735         * modules/nproc: New file.
44736         * modules/pthread: New file.
44737
44738 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44739
44740         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44741         New variable.
44742
44743 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44744
44745         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44746         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44747         * tests/test-filevercmp.c: Add tests for backup suffixes.
44748
44749 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44750
44751         * modules/stdlib (Depends-on): Add stdint, needed when defining
44752         struct random_data on, for example, HP-UX 10.20.  Reported by
44753         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44754
44755 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44756
44757         * lib/readline.c (readline): Call fflush on stdout after printing
44758         prompt.
44759
44760 2009-03-20  Bruno Haible  <bruno@clisp.org>
44761
44762         Remove dependency from 'close' module to -lws2_32 on native Windows.
44763         * lib/close-hook.h: New file.
44764         * lib/close-hook.c: New file.
44765         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44766         w32sock.h.
44767         (_gl_close_fd_maybe_socket): Remove function.
44768         (rpl_close): Invoke execute_all_close_hooks instead of
44769         _gl_close_fd_maybe_socket.
44770         * lib/sockets.c: Include close-hook.h, w32sock.h.
44771         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44772         (close_sockets_hook): New variable.
44773         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44774         (gl_sockets_cleanup): Unregister it.
44775         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44776         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44777         * modules/close-hook: New file.
44778         * modules/close (Files): Remove lib/w32sock.h.
44779         (Depends-on): Add close-hook.
44780         (Link): Remove section.
44781         * modules/sockets (Files): Add lib/w32sock.h.
44782         (Depends-on): Add close-hook.
44783         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44784         invocation.
44785         * NEWS: Mention that LIB_CLOSE is gone.
44786
44787 2009-03-23  Eric Blake  <ebb9@byu.net>
44788
44789         signal-tests: test previous patch
44790         * tests/test-signal.c: New file.
44791         * modules/signal-tests: Likewise.
44792
44793         signal.h: always support 'volatile sig_atomic_t'
44794         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44795         (gl_SIGNAL_H_DEFAULTS): Add a default.
44796         * modules/signal (Makefile.am): Substitute if needed.
44797         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44798         users can blindly add volatile.
44799         * doc/posix-headers/signal.texi (signal.h): Document it.
44800         Reported by Matthew Woehlke.
44801
44802 2009-03-23  Jim Meyering  <meyering@redhat.com>
44803
44804         pathmax: PATH_MAX: use pathconf only when available
44805         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44806         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44807         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44808         This avoids a link failure in a PSP cross-compilation environment
44809         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44810
44811         * lib/vasnprintf.c (divide): Fix typo in comment.
44812
44813 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44814
44815         * gnulib-tool (func_filter_filelist): Fix comment.
44816
44817 2009-03-20  Bruno Haible  <bruno@clisp.org>
44818
44819         Make sockets.h self-contained.
44820         * lib/sockets.c: Include sockets.h first.
44821         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44822
44823 2009-03-19  Eric Blake  <ebb9@byu.net>
44824
44825         doc: mention more functions added in cygwin 1.7.0
44826         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44827         addition.
44828         * doc/posix-functions/log2f.texi: Likewise.
44829
44830 2009-03-19  Jim Meyering  <meyering@redhat.com>
44831
44832         fsusage: avoid syntax error due to statement-before-declaration
44833         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44834         after all declarations.  Reported by Matthew Woehlke in
44835         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44836
44837 2009-03-18  Eric Blake  <ebb9@byu.net>
44838
44839         build-aux/compile: sync from automake
44840         * build-aux/compile: New file, from automake.
44841         * config/srclist.txt: Mention build-aux/compile.
44842
44843 2009-03-17  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/git-merge-changelog.c: Fix typo in comment.
44846         Reported by Reuben Thomas <rrt@sc3d.org>.
44847
44848 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44849
44850         * m4/regex.m4: update and improve help for
44851         --without-included-regex.
44852
44853 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44854
44855         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44856         failure on missing include files.
44857
44858 2009-03-17  Eric Blake  <ebb9@byu.net>
44859
44860         doc: mention more functions added in cygwin 1.7.0
44861         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44862         addition.
44863         * doc/posix-functions/fwscanf.texi: Likewise.
44864         * doc/posix-functions/swprintf.texi: Likewise.
44865         * doc/posix-functions/swscanf.texi: Likewise.
44866         * doc/posix-functions/vfwprintf.texi: Likewise.
44867         * doc/posix-functions/vfwscanf.texi: Likewise.
44868         * doc/posix-functions/vswprintf.texi: Likewise.
44869         * doc/posix-functions/vswscanf.texi: Likewise.
44870         * doc/posix-functions/vwprintf.texi: Likewise.
44871         * doc/posix-functions/vwscanf.texi: Likewise.
44872         * doc/posix-functions/wcscasecmp.texi: Likewise.
44873         * doc/posix-functions/wcsdup.texi: Likewise.
44874         * doc/posix-functions/wcsftime.texi: Likewise.
44875         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44876         * doc/posix-functions/wprintf.texi: Likewise.
44877         * doc/posix-functions/wscanf.texi: Likewise.
44878         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44879
44880 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44881
44882         maint.mk: really add $(AM_MAKEFLAGS)
44883         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44884         was inadvertently omitted in the last commit.
44885         Spotted by Bruno Haible.
44886
44887         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44888         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44889         $(AM_MAKEFLAGS)' rather than plain `make'.
44890
44891         gnulib-tool: execute $MAKE not make
44892         * gnulib-tool: Default $MAKE to 'make'.
44893         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44894         than make.  Initialize $MAKE in the do-autobuild script.
44895
44896         gnulib-tool: use $MAKE not make in generated files
44897         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44898         make, in generated files.  Initialize $MAKE in the do-autobuild
44899         script.
44900
44901         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44902
44903         GNUmakefile: disable parallelism only for multiple, recursive targets
44904         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44905         additions in the Makefile.
44906         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44907         by Automake.
44908         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44909         are listed on the command line and at least one of them is
44910         listed in $(ALL_RECURSIVE_TARGETS).
44911
44912 2009-03-14  Bruno Haible  <bruno@clisp.org>
44913
44914         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44915         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44916         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44917         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44918         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44919         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44920         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44921         unistr/u8-uctomb.
44922         * modules/unistr/u8-strchr (Depends-on): Likewise.
44923         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44924         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44925         unistr/u16-uctomb.
44926         * modules/unistr/u16-strchr (Depends-on): Likewise.
44927         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44928
44929 2009-03-12  Bruno Haible  <bruno@clisp.org>
44930
44931         Work around select() bug on Interix 3.5.
44932         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44933         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44934         * m4/select.m4: New file.
44935         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44936         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44937         * modules/select (Files): Add m4/select.m4.
44938         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44939         * modules/nanosleep (Depends-on): Add select.
44940         * modules/poll (Depends-on): Likewise.
44941         * doc/posix-functions/select.texi: Mention the Interix bug.
44942         Reported by Markus Duft <mduft@gentoo.org>.
44943
44944         * lib/select.c: Renamed from lib/winsock-select.c.
44945         * modules/select (Files): Add lib/select.c, remove
44946         lib/winsock-select.c.
44947         (configure.ac): Update.
44948
44949 2009-03-12  Jim Meyering  <meyering@redhat.com>
44950
44951         avoid gcc warnings about unused macro definitions
44952         * lib/readtokens.c (STREQ): Remove unused definition.
44953         * lib/xmalloc.c (SIZE_MAX): Likewise.
44954         * lib/openat-die.c (N_): Likewise.
44955         * lib/mountlist.c (SIZE_MAX): Remove definition.
44956         Instead, include <stdint.h>.
44957         * lib/readutmp.c: Likewise.
44958         * modules/readutmp (Depends-on): Add stdint.
44959         * modules/mountlist (Depends-on): Add stdint.
44960         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44961
44962 2009-03-10  Bruno Haible  <bruno@clisp.org>
44963
44964         Tests for module 'mbmemcasecoll'.
44965         * modules/mbmemcasecoll-tests: New file.
44966         * tests/test-mbmemcasecoll1.sh: New file.
44967         * tests/test-mbmemcasecoll2.sh: New file.
44968         * tests/test-mbmemcasecoll3.sh: New file.
44969         * tests/test-mbmemcasecoll.c: New file.
44970
44971         New module 'mbmemcasecoll'.
44972         * lib/mbmemcasecoll.h: New file.
44973         * lib/mbmemcasecoll.c: New file.
44974         * modules/mbmemcasecoll: New file.
44975
44976         * tests/test-mbmemcasecmp.h: New file, extracted from
44977         tests/test-mbmemcasecmp.c.
44978         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44979         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44980         (main): Update.
44981         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44982
44983 2009-03-09  Bruno Haible  <bruno@clisp.org>
44984
44985         Tests for module 'mbmemcasecmp'.
44986         * modules/mbmemcasecmp-tests: New file.
44987         * tests/test-mbmemcasecmp1.sh: New file.
44988         * tests/test-mbmemcasecmp2.sh: New file.
44989         * tests/test-mbmemcasecmp3.sh: New file.
44990         * tests/test-mbmemcasecmp.c: New file.
44991
44992         New module 'mbmemcasecmp'.
44993         * lib/mbmemcasecmp.h: New file.
44994         * lib/mbmemcasecmp.c: New file.
44995         * modules/mbmemcasecmp: New file.
44996
44997 2009-03-09  Bruno Haible  <bruno@clisp.org>
44998
44999         Tests for module 'unicase/ulc-casecoll'.
45000         * modules/unicase/ulc-casecoll-tests: New file.
45001         * tests/unicase/test-ulc-casecoll1.sh: New file.
45002         * tests/unicase/test-ulc-casecoll2.sh: New file.
45003         * tests/unicase/test-ulc-casecoll.c: New file.
45004
45005         New module 'unicase/ulc-casecoll'.
45006         * lib/unicase.h (ulc_casecoll): New declaration.
45007         * lib/unicase/ulc-casecoll.c: New file.
45008         * modules/unicase/ulc-casecoll: New file.
45009
45010         New module 'unicase/ulc-casexfrm'.
45011         * lib/unicase.h (ulc_casexfrm): New declaration.
45012         * lib/unicase/ulc-casexfrm.c: New file.
45013         * modules/unicase/ulc-casexfrm: New file.
45014
45015 2009-03-09  Bruno Haible  <bruno@clisp.org>
45016
45017         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45018         invocations.
45019
45020         * m4/mbscasecmp.m4: Remove file.
45021         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45022         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45023
45024         * m4/mbscasestr.m4: Remove file.
45025         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45026         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45027
45028         * m4/mbschr.m4: Remove file.
45029         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45030         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45031
45032         * m4/mbscspn.m4: Remove file.
45033         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45034         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45035
45036         * m4/mbslen.m4: Remove file.
45037         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45038         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45039
45040         * m4/mbsncasecmp.m4: Remove file.
45041         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45042         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45043
45044         * m4/mbsnlen.m4: Remove file.
45045         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45046         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45047
45048         * m4/mbspbrk.m4: Remove file.
45049         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45050         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45051
45052         * m4/mbspcasecmp.m4: Remove file.
45053         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45054         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45055
45056         * m4/mbsrchr.m4: Remove file.
45057         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45058         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45059
45060         * m4/mbssep.m4: Remove file.
45061         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45062         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45063
45064         * m4/mbsspn.m4: Remove file.
45065         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45066         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45067
45068         * m4/mbsstr.m4: Remove file.
45069         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45070         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45071
45072         * m4/mbstok_r.m4: Remove file.
45073         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45074         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45075
45076         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45077
45078         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45079         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45080
45081         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45082
45083 2009-03-08  Bruno Haible  <bruno@clisp.org>
45084
45085         Tests for module 'unicase/ulc-casecmp'.
45086         * modules/unicase/ulc-casecmp-tests: New file.
45087         * tests/unicase/test-ulc-casecmp1.sh: New file.
45088         * tests/unicase/test-ulc-casecmp2.sh: New file.
45089         * tests/unicase/test-ulc-casecmp.c: New file.
45090
45091         New module 'unicase/ulc-casecmp'.
45092         * lib/unicase.h (ulc_casecmp): New declaration.
45093         * lib/unicase/ulc-casecmp.c: New file.
45094         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45095         'const SRC_UNIT *'.
45096         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45097         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45098         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45099         * modules/unicase/ulc-casecmp: New file.
45100
45101         Tests for module 'unicase/u32-is-cased'.
45102         * modules/unicase/u32-is-cased-tests: New file.
45103         * tests/unicase/test-u32-is-cased.c: New file.
45104
45105         Tests for module 'unicase/u16-is-cased'.
45106         * modules/unicase/u16-is-cased-tests: New file.
45107         * tests/unicase/test-u16-is-cased.c: New file.
45108
45109         Tests for module 'unicase/u8-is-cased'.
45110         * modules/unicase/u8-is-cased-tests: New file.
45111         * tests/unicase/test-u8-is-cased.c: New file.
45112         * tests/unicase/test-is-cased.h: New file.
45113
45114         New module 'unicase/u32-is-cased'.
45115         * lib/unicase/u32-is-cased.c: New file.
45116         * modules/unicase/u32-is-cased: New file.
45117
45118         New module 'unicase/u16-is-cased'.
45119         * lib/unicase/u16-is-cased.c: New file.
45120         * modules/unicase/u16-is-cased: New file.
45121
45122         New module 'unicase/u8-is-cased'.
45123         * lib/unicase/u8-is-cased.c: New file.
45124         * lib/unicase/u-is-cased.h: New file.
45125         * modules/unicase/u8-is-cased: New file.
45126
45127         Tests for module 'unicase/u32-is-casefolded'.
45128         * modules/unicase/u32-is-casefolded-tests: New file.
45129         * tests/unicase/test-u32-is-casefolded.c: New file.
45130
45131         Tests for module 'unicase/u16-is-casefolded'.
45132         * modules/unicase/u16-is-casefolded-tests: New file.
45133         * tests/unicase/test-u16-is-casefolded.c: New file.
45134
45135         Tests for module 'unicase/u8-is-casefolded'.
45136         * modules/unicase/u8-is-casefolded-tests: New file.
45137         * tests/unicase/test-u8-is-casefolded.c: New file.
45138         * tests/unicase/test-is-casefolded.h: New file.
45139
45140         New module 'unicase/u32-is-casefolded'.
45141         * lib/unicase/u32-is-casefolded.c: New file.
45142         * modules/unicase/u32-is-casefolded: New file.
45143
45144         New module 'unicase/u16-is-casefolded'.
45145         * lib/unicase/u16-is-casefolded.c: New file.
45146         * modules/unicase/u16-is-casefolded: New file.
45147
45148         New module 'unicase/u8-is-casefolded'.
45149         * lib/unicase/u8-is-casefolded.c: New file.
45150         * modules/unicase/u8-is-casefolded: New file.
45151
45152         Tests for module 'unicase/u32-is-titlecase'.
45153         * modules/unicase/u32-is-titlecase-tests: New file.
45154         * tests/unicase/test-u32-is-titlecase.c: New file.
45155
45156         Tests for module 'unicase/u16-is-titlecase'.
45157         * modules/unicase/u16-is-titlecase-tests: New file.
45158         * tests/unicase/test-u16-is-titlecase.c: New file.
45159
45160         Tests for module 'unicase/u8-is-titlecase'.
45161         * modules/unicase/u8-is-titlecase-tests: New file.
45162         * tests/unicase/test-u8-is-titlecase.c: New file.
45163         * tests/unicase/test-is-titlecase.h: New file.
45164
45165         New module 'unicase/u32-is-titlecase'.
45166         * lib/unicase/u32-is-titlecase.c: New file.
45167         * modules/unicase/u32-is-titlecase: New file.
45168
45169         New module 'unicase/u16-is-titlecase'.
45170         * lib/unicase/u16-is-titlecase.c: New file.
45171         * modules/unicase/u16-is-titlecase: New file.
45172
45173         New module 'unicase/u8-is-titlecase'.
45174         * lib/unicase/u8-is-titlecase.c: New file.
45175         * modules/unicase/u8-is-titlecase: New file.
45176
45177         Tests for module 'unicase/u32-is-lowercase'.
45178         * modules/unicase/u32-is-lowercase-tests: New file.
45179         * tests/unicase/test-u32-is-lowercase.c: New file.
45180
45181         Tests for module 'unicase/u16-is-lowercase'.
45182         * modules/unicase/u16-is-lowercase-tests: New file.
45183         * tests/unicase/test-u16-is-lowercase.c: New file.
45184
45185         Tests for module 'unicase/u8-is-lowercase'.
45186         * modules/unicase/u8-is-lowercase-tests: New file.
45187         * tests/unicase/test-u8-is-lowercase.c: New file.
45188         * tests/unicase/test-is-lowercase.h: New file.
45189
45190         New module 'unicase/u32-is-lowercase'.
45191         * lib/unicase/u32-is-lowercase.c: New file.
45192         * modules/unicase/u32-is-lowercase: New file.
45193
45194         New module 'unicase/u16-is-lowercase'.
45195         * lib/unicase/u16-is-lowercase.c: New file.
45196         * modules/unicase/u16-is-lowercase: New file.
45197
45198         New module 'unicase/u8-is-lowercase'.
45199         * lib/unicase/u8-is-lowercase.c: New file.
45200         * modules/unicase/u8-is-lowercase: New file.
45201
45202         Tests for module 'unicase/u32-is-uppercase'.
45203         * modules/unicase/u32-is-uppercase-tests: New file.
45204         * tests/unicase/test-u32-is-uppercase.c: New file.
45205
45206         Tests for module 'unicase/u16-is-uppercase'.
45207         * modules/unicase/u16-is-uppercase-tests: New file.
45208         * tests/unicase/test-u16-is-uppercase.c: New file.
45209
45210         Tests for module 'unicase/u8-is-uppercase'.
45211         * modules/unicase/u8-is-uppercase-tests: New file.
45212         * tests/unicase/test-u8-is-uppercase.c: New file.
45213         * tests/unicase/test-is-uppercase.h: New file.
45214
45215         New module 'unicase/u32-is-uppercase'.
45216         * lib/unicase/u32-is-uppercase.c: New file.
45217         * modules/unicase/u32-is-uppercase: New file.
45218
45219         New module 'unicase/u16-is-uppercase'.
45220         * lib/unicase/u16-is-uppercase.c: New file.
45221         * modules/unicase/u16-is-uppercase: New file.
45222
45223         New module 'unicase/u8-is-uppercase'.
45224         * lib/unicase/u8-is-uppercase.c: New file.
45225         * modules/unicase/u8-is-uppercase: New file.
45226
45227         New module 'unicase/u32-is-invariant'.
45228         * lib/unicase/u32-is-invariant.c: New file.
45229         * modules/unicase/u32-is-invariant: New file.
45230
45231         New module 'unicase/u16-is-invariant'.
45232         * lib/unicase/u16-is-invariant.c: New file.
45233         * modules/unicase/u16-is-invariant: New file.
45234
45235         New module 'unicase/u8-is-invariant'.
45236         * lib/unicase/u8-is-invariant.c: New file.
45237         * lib/unicase/invariant.h: New file.
45238         * lib/unicase/u-is-invariant.h: New file.
45239         * modules/unicase/u8-is-invariant: New file.
45240
45241         Tests for module 'unicase/u32-casecoll'.
45242         * modules/unicase/u32-casecoll-tests: New file.
45243         * tests/unicase/test-u32-casecoll.c: New file.
45244
45245         Tests for module 'unicase/u16-casecoll'.
45246         * modules/unicase/u16-casecoll-tests: New file.
45247         * tests/unicase/test-u16-casecoll.c: New file.
45248
45249         Tests for module 'unicase/u8-casecoll'.
45250         * modules/unicase/u8-casecoll-tests: New file.
45251         * tests/unicase/test-u8-casecoll.c: New file.
45252
45253         New module 'unicase/u32-casecoll'.
45254         * lib/unicase/u32-casecoll.c: New file.
45255         * modules/unicase/u32-casecoll: New file.
45256
45257         New module 'unicase/u16-casecoll'.
45258         * lib/unicase/u16-casecoll.c: New file.
45259         * modules/unicase/u16-casecoll: New file.
45260
45261         New module 'unicase/u8-casecoll'.
45262         * lib/unicase/u8-casecoll.c: New file.
45263         * lib/unicase/u-casecoll.h: New file.
45264         * modules/unicase/u8-casecoll: New file.
45265
45266         New module 'unicase/u32-casexfrm'.
45267         * lib/unicase/u32-casexfrm.c: New file.
45268         * modules/unicase/u32-casexfrm: New file.
45269
45270         New module 'unicase/u16-casexfrm'.
45271         * lib/unicase/u16-casexfrm.c: New file.
45272         * modules/unicase/u16-casexfrm: New file.
45273
45274         New module 'unicase/u8-casexfrm'.
45275         * lib/unicase/u8-casexfrm.c: New file.
45276         * lib/unicase/u-casexfrm.h: New file.
45277         * modules/unicase/u8-casexfrm: New file.
45278
45279         Tests for module 'unicase/u32-casecmp'.
45280         * modules/unicase/u32-casecmp-tests: New file.
45281         * tests/unicase/test-u32-casecmp.c: New file.
45282
45283         Tests for module 'unicase/u16-casecmp'.
45284         * modules/unicase/u16-casecmp-tests: New file.
45285         * tests/unicase/test-u16-casecmp.c: New file.
45286
45287         Tests for module 'unicase/u8-casecmp'.
45288         * modules/unicase/u8-casecmp-tests: New file.
45289         * tests/unicase/test-u8-casecmp.c: New file.
45290         * tests/unicase/test-casecmp.h: New file.
45291
45292         New module 'unicase/u32-casecmp'.
45293         * lib/unicase/u32-casecmp.c: New file.
45294         * modules/unicase/u32-casecmp: New file.
45295
45296         New module 'unicase/u16-casecmp'.
45297         * lib/unicase/u16-casecmp.c: New file.
45298         * modules/unicase/u16-casecmp: New file.
45299
45300         New module 'unicase/u8-casecmp'.
45301         * lib/unicase/u8-casecmp.c: New file.
45302         * lib/unicase/u-casecmp.h: New file.
45303         * modules/unicase/u8-casecmp: New file.
45304
45305         Tests for module 'unicase/u32-casefold'.
45306         * modules/unicase/u32-casefold-tests: New file.
45307         * tests/unicase/test-u32-casefold.c: New file.
45308
45309         Tests for module 'unicase/u16-casefold'.
45310         * modules/unicase/u16-casefold-tests: New file.
45311         * tests/unicase/test-u16-casefold.c: New file.
45312
45313         Tests for module 'unicase/u8-casefold'.
45314         * modules/unicase/u8-casefold-tests: New file.
45315         * tests/unicase/test-u8-casefold.c: New file.
45316
45317         New module 'unicase/u32-casefold'.
45318         * lib/unicase/u32-casefold.c: New file.
45319         * modules/unicase/u32-casefold: New file.
45320
45321         New module 'unicase/u16-casefold'.
45322         * lib/unicase/u16-casefold.c: New file.
45323         * modules/unicase/u16-casefold: New file.
45324
45325         New module 'unicase/u8-casefold'.
45326         * lib/unicase/u8-casefold.c: New file.
45327         * lib/unicase/u-casefold.h: New file.
45328         * modules/unicase/u8-casefold: New file.
45329
45330         New module 'unicase/tocasefold'.
45331         * lib/unicase/casefold.h: New file.
45332         * lib/unicase/tocasefold.c: New file.
45333         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45334         * modules/unicase/tocasefold: New file.
45335
45336         Tests for module 'unicase/u32-totitle'.
45337         * modules/unicase/u32-totitle-tests: New file.
45338         * tests/unicase/test-u32-totitle.c: New file.
45339
45340         Tests for module 'unicase/u16-totitle'.
45341         * modules/unicase/u16-totitle-tests: New file.
45342         * tests/unicase/test-u16-totitle.c: New file.
45343
45344         Tests for module 'unicase/u8-totitle'.
45345         * modules/unicase/u8-totitle-tests: New file.
45346         * tests/unicase/test-u8-totitle.c: New file.
45347
45348         New module 'unicase/u32-totitle'.
45349         * lib/unicase/u32-totitle.c: New file.
45350         * modules/unicase/u32-totitle: New file.
45351
45352         New module 'unicase/u16-totitle'.
45353         * lib/unicase/u16-totitle.c: New file.
45354         * modules/unicase/u16-totitle: New file.
45355
45356         New module 'unicase/u8-totitle'.
45357         * lib/unicase/u8-totitle.c: New file.
45358         * lib/unicase/u-totitle.h: New file.
45359         * modules/unicase/u8-totitle: New file.
45360
45361         Tests for module 'unicase/u32-tolower'.
45362         * modules/unicase/u32-tolower-tests: New file.
45363         * tests/unicase/test-u32-tolower.c: New file.
45364
45365         Tests for module 'unicase/u16-tolower'.
45366         * modules/unicase/u16-tolower-tests: New file.
45367         * tests/unicase/test-u16-tolower.c: New file.
45368
45369         Tests for module 'unicase/u8-tolower'.
45370         * modules/unicase/u8-tolower-tests: New file.
45371         * tests/unicase/test-u8-tolower.c: New file.
45372
45373         New module 'unicase/u32-tolower'.
45374         * lib/unicase/u32-tolower.c: New file.
45375         * modules/unicase/u32-tolower: New file.
45376
45377         New module 'unicase/u16-tolower'.
45378         * lib/unicase/u16-tolower.c: New file.
45379         * modules/unicase/u16-tolower: New file.
45380
45381         New module 'unicase/u8-tolower'.
45382         * lib/unicase/u8-tolower.c: New file.
45383         * modules/unicase/u8-tolower: New file.
45384
45385         Tests for module 'unicase/u32-toupper'.
45386         * modules/unicase/u32-toupper-tests: New file.
45387         * tests/unicase/test-u32-toupper.c: New file.
45388
45389         Tests for module 'unicase/u16-toupper'.
45390         * modules/unicase/u16-toupper-tests: New file.
45391         * tests/unicase/test-u16-toupper.c: New file.
45392
45393         Tests for module 'unicase/u8-toupper'.
45394         * modules/unicase/u8-toupper-tests: New file.
45395         * tests/unicase/test-u8-toupper.c: New file.
45396
45397         New module 'unicase/u32-toupper'.
45398         * lib/unicase/u32-toupper.c: New file.
45399         * modules/unicase/u32-toupper: New file.
45400
45401         New module 'unicase/u16-toupper'.
45402         * lib/unicase/u16-toupper.c: New file.
45403         * modules/unicase/u16-toupper: New file.
45404
45405         New module 'unicase/u8-toupper'.
45406         * lib/unicase/u8-toupper.c: New file.
45407         * modules/unicase/u8-toupper: New file.
45408
45409         New module 'unicase/u32-casemap'.
45410         * lib/unicase/u32-casemap.c: New file.
45411         * modules/unicase/u32-casemap: New file.
45412
45413         New module 'unicase/u16-casemap'.
45414         * lib/unicase/u16-casemap.c: New file.
45415         * modules/unicase/u16-casemap: New file.
45416
45417         New module 'unicase/u8-casemap'.
45418         * lib/unicase/unicasemap.h: New file.
45419         * lib/unicase/u8-casemap.c: New file.
45420         * lib/unicase/u-casemap.h: New file.
45421         * modules/unicase/u8-casemap: New file.
45422
45423         New module 'unicase/special-casing'.
45424         * lib/unicase/special-casing.h: New file.
45425         * lib/unicase/special-casing.c: New file.
45426         * lib/unicase/special-casing-table.gperf: New file, generated by
45427         gen-uni-tables.c.
45428         * modules/unicase/special-casing: New file.
45429
45430         Tests for module 'unicase/locale-language'.
45431         * modules/unicase/locale-language-tests: New file.
45432         * tests/unicase/test-locale-language.sh: New file.
45433         * tests/unicase/test-locale-language.c: New file.
45434
45435         New module 'unicase/locale-language'.
45436         * lib/unicase/locale-language.c: New file.
45437         * lib/unicase/locale-languages.gperf: New file.
45438         * modules/unicase/locale-language: New file.
45439
45440         Generate more tables for case conversion and case folding.
45441         * lib/gen-uni-tables.c (SCC_*): New enum items.
45442         (struct special_casing_rule): New type.
45443         (casing_rules, num_casing_rules, allocated_casing_rules): New
45444         variables.
45445         (add_casing_rule, fill_casing_rules): New functions.
45446         (struct casefold_rule): New type.
45447         (casefolding_rules, num_casefolding_rules,
45448         allocated_casefolding_rules): New variables.
45449         (fill_casefolding_rules): New function.
45450         (unicode_casefold): New variable.
45451         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45452         sort_casing_rules, output_casing_rules): New functions.
45453         (main): Accept to more arguments: SpecialCasing.txt and
45454         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45455         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45456         Output mapping for casefolding.
45457
45458         * lib/unicase.h: Include stdbool.h, uninorm.h.
45459         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45460         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45461         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45462         arguments.
45463         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45464         resultp arguments.
45465         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45466         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45467         resultp arguments.
45468         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45469         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45470         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45471         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45472         declarations.
45473         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45474
45475 2009-03-08  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45478         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45479         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45480         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45481
45482 2009-03-07  Bruno Haible  <bruno@clisp.org>
45483
45484         Adjust u*_normcmp, u*_normcoll API.
45485         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45486         u16_normcoll, u32_normcoll): Change failure conventions.
45487         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45488         errno and return -1.
45489         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45490
45491 2009-03-07  Bruno Haible  <bruno@clisp.org>
45492
45493         Tests for module 'uninorm/u32-normcoll'.
45494         * modules/uninorm/u32-normcoll-tests: New file.
45495         * tests/uninorm/test-u32-normcoll.c: New file.
45496
45497         Tests for module 'uninorm/u16-normcoll'.
45498         * modules/uninorm/u16-normcoll-tests: New file.
45499         * tests/uninorm/test-u16-normcoll.c: New file.
45500
45501         Tests for module 'uninorm/u8-normcoll'.
45502         * modules/uninorm/u8-normcoll-tests: New file.
45503         * tests/uninorm/test-u8-normcoll.c: New file.
45504
45505 2009-03-07  Bruno Haible  <bruno@clisp.org>
45506
45507         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45508         tests/uninorm/test-u32-normcmp.c.
45509         * tests/uninorm/test-u32-normcmp.c: Include it.
45510         (test_nonascii): New function, extracted from main. Add some more
45511         tests.
45512         (main): Invoke test_ascii and test_nonascii.
45513         * modules/uninorm/u32-normcmp-tests (Files): Add
45514         tests/uninorm/test-u32-normcmp.h.
45515         (Depends-on): Remove uninorm/u32-normcmp.
45516
45517         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45518         tests/uninorm/test-u16-normcmp.c.
45519         * tests/uninorm/test-u16-normcmp.c: Include it.
45520         (test_nonascii): New function, extracted from main. Add some more
45521         tests.
45522         (main): Invoke test_ascii and test_nonascii.
45523         * modules/uninorm/u16-normcmp-tests (Files): Add
45524         tests/uninorm/test-u16-normcmp.h.
45525         (Depends-on): Remove uninorm/u16-normcmp.
45526
45527         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45528         tests/uninorm/test-u8-normcmp.c.
45529         * tests/uninorm/test-u8-normcmp.c: Include it.
45530         (test_nonascii): New function, extracted from main. Add some more
45531         tests.
45532         (main): Invoke test_ascii and test_nonascii.
45533         * modules/uninorm/u8-normcmp-tests (Files): Add
45534         tests/uninorm/test-u8-normcmp.h.
45535         (Depends-on): Remove uninorm/u8-normcmp.
45536
45537 2009-03-07  Bruno Haible  <bruno@clisp.org>
45538
45539         New module 'uninorm/u32-normcoll'.
45540         * lib/uninorm/u32-normcoll.c: New file.
45541         * modules/uninorm/u32-normcoll: New file.
45542
45543         New module 'uninorm/u16-normcoll'.
45544         * lib/uninorm/u16-normcoll.c: New file.
45545         * modules/uninorm/u16-normcoll: New file.
45546
45547         New module 'uninorm/u8-normcoll'.
45548         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45549         declarations.
45550         * lib/uninorm/u8-normcoll.c: New file.
45551         * lib/uninorm/u-normcoll.h: New file.
45552         * modules/uninorm/u8-normcoll: New file.
45553
45554         New module 'uninorm/u32-normxfrm'.
45555         * lib/uninorm/u32-normxfrm.c: New file.
45556         * modules/uninorm/u32-normxfrm: New file.
45557
45558         New module 'uninorm/u16-normxfrm'.
45559         * lib/uninorm/u16-normxfrm.c: New file.
45560         * modules/uninorm/u16-normxfrm: New file.
45561
45562         New module 'uninorm/u8-normxfrm'.
45563         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45564         declarations.
45565         * lib/uninorm/u8-normxfrm.c: New file.
45566         * lib/uninorm/u-normxfrm.h: New file.
45567         * modules/uninorm/u8-normxfrm: New file.
45568
45569 2009-03-07  Bruno Haible  <bruno@clisp.org>
45570
45571         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45572         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45573         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45574
45575 2009-03-07  Bruno Haible  <bruno@clisp.org>
45576
45577         New module 'memxfrm'.
45578         * lib/memxfrm.h: New file.
45579         * lib/memxfrm.c: New file.
45580         * modules/memxfrm: New file.
45581
45582 2009-03-07  Bruno Haible  <bruno@clisp.org>
45583
45584         New module 'memcmp2'.
45585         * lib/memcmp2.h: New file.
45586         * lib/memcmp2.c: New file.
45587         * modules/memcmp2: New file.
45588
45589 2009-03-07  Bruno Haible  <bruno@clisp.org>
45590
45591         Tests for module 'uninorm/decomposing-form'.
45592         * modules/uninorm/decomposing-form-tests: New file.
45593         * tests/uninorm/test-decomposing-form.c: New file.
45594
45595         New module 'uninorm/decomposing-form'.
45596         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45597         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45598         Add 'decomposing_variant' field.
45599         * lib/uninorm/decomposing-form.c: New file.
45600         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45601         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45602         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45603         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45604         * modules/uninorm/decomposing-form: New file.
45605         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45606         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45607
45608 2009-03-07  Bruno Haible  <bruno@clisp.org>
45609
45610         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45611         strings.
45612
45613 2009-03-06  Bruno Haible  <bruno@clisp.org>
45614
45615         Tests for module 'uninorm/u32-normcmp'.
45616         * tests/uninorm/test-u32-normcmp.c: New file.
45617         * modules/uninorm/u32-normcmp-tests: New file.
45618
45619         Tests for module 'uninorm/u16-normcmp'.
45620         * tests/uninorm/test-u16-normcmp.c: New file.
45621         * modules/uninorm/u16-normcmp-tests: New file.
45622
45623         Tests for module 'uninorm/u8-normcmp'.
45624         * tests/uninorm/test-u8-normcmp.c: New file.
45625         * modules/uninorm/u8-normcmp-tests: New file.
45626
45627         New module 'uninorm/u32-normcmp'.
45628         * lib/uninorm/u32-normcmp.c: New file.
45629         * modules/uninorm/u32-normcmp: New file.
45630
45631         New module 'uninorm/u16-normcmp'.
45632         * lib/uninorm/u16-normcmp.c: New file.
45633         * modules/uninorm/u16-normcmp: New file.
45634
45635         New module 'uninorm/u8-normcmp'.
45636         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45637         declarations.
45638         * lib/uninorm/u8-normcmp.c: New file.
45639         * lib/uninorm/u-normcmp.h: New file.
45640         * modules/uninorm/u8-normcmp: New file.
45641
45642 2009-03-06  Bruno Haible  <bruno@clisp.org>
45643
45644         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45645         Reported by Eric Blake.
45646
45647 2009-03-06  Eric Blake  <ebb9@byu.net>
45648             Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45651         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45652         condition.
45653         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45654         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45655         condition.
45656         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45657
45658 2009-03-06  Eric Blake  <ebb9@byu.net>
45659
45660         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45661         to avoid compiler warnings.
45662         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45663
45664 2009-03-05  Bruno Haible  <bruno@clisp.org>
45665
45666         * tests/test-ftell.c (main): Disable test beyond end of file on
45667         FreeMiNT.
45668         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45669
45670 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45671
45672         * lib/filevercmp.c: Move hidden files up in ordering.
45673         * tests/test-filevercmp.c: Add tests for hidden files.
45674
45675 2009-03-04  Bruno Haible  <bruno@clisp.org>
45676
45677         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45678         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45679         AM_CFLAGS.
45680         Reported by Simon Josefsson.
45681
45682 2009-03-03  Bruno Haible  <bruno@clisp.org>
45683
45684         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45685         Reported by Simon Josefsson.
45686
45687         * doc/ld-version-script.texi: Update node reference.
45688
45689 2009-03-03  Bruno Haible  <bruno@clisp.org>
45690
45691         * modules/visibility (License): Change to 'unlimited'.
45692         Suggested by Simon Josefsson.
45693
45694 2009-03-03  Jim Meyering  <meyering@redhat.com>
45695
45696         unlinkdir: cannot_unlink_dir may modify process state
45697         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45698         it's neither thread-safe nor appropriate for use in a library.
45699
45700 2009-03-03  Eric Blake  <ebb9@byu.net>
45701
45702         test-closein: silence test under Darwin
45703         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45704         care if it dies from EPIPE or EBADF.
45705
45706 2009-03-03  Bruno Haible  <bruno@clisp.org>
45707
45708         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45709         earlier.
45710         * doc/visibility.texi: Fix @node and @section.
45711
45712 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45713
45714         * doc/gnulib.texi: Link to sections for ld version script and
45715         visibility.
45716         * doc/visibility.texi: Add @node and @section.
45717         * modules/ld-version-script: New module.
45718         * m4/ld-version-script.m4: New file.
45719         * doc/ld-version-script.texi: New file.
45720
45721 2009-03-02  David Lutterkort  <lutter@redhat.com>
45722
45723         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45725
45726 2009-03-02  Bruno Haible  <bruno@clisp.org>
45727
45728         * doc/visibility.texi: Mention libtool's -export-symbols option.
45729
45730 2009-03-02  Jim Meyering  <meyering@redhat.com>
45731
45732         announce-gen: new option: --no-print-checksums
45733         * build-aux/announce-gen (usage): Describe it.
45734         (print_checksums): Print a newline here, not in the [*] footnote.
45735         (main): Honor it.
45736
45737 2009-03-01  Bruno Haible  <bruno@clisp.org>
45738
45739         Use socklen_t in the native Windows replacements prototypes.
45740         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45741         instead of 'int'.
45742         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45743         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45744         * modules/getsockopt (Depends-on): Add socklen.
45745         * modules/setsockopt (Depends-on): Add socklen.
45746
45747 2009-03-01  Bruno Haible  <bruno@clisp.org>
45748
45749         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45750         least 4.2.
45751
45752 2009-03-01  Eric Blake  <ebb9@byu.net>
45753             Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45756         error messages.
45757         * lib/wait-process.c (wait_subprocess): Omit error message about
45758         deadly signal sent to the child of termsigp != NULL.
45759
45760 2009-03-01  Eric Blake  <ebb9@byu.net>
45761
45762         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45763
45764 2009-03-01  Bruno Haible  <bruno@clisp.org>
45765
45766         Avoid a gcc warning.
45767         * tests/test-sched.c (b): Make global.
45768         Reported by Eric Blake.
45769
45770 2009-01-19  Martin Lambers  <marlam@marlam.de>
45771
45772         Provide POSIX semantics for socket timeout options on W32.
45773         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45774         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45775         * modules/setsockopt: Depend on sys_time module for struct timeval.
45776         * modules/getsockopt: Depend on sys_time module for struct timeval.
45777
45778 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45779
45780         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45781         __USE_GNU, for consistency with netdb.in.h.
45782         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45783
45784 2009-03-01  Bruno Haible  <bruno@clisp.org>
45785
45786         More support for FreeMiNT.
45787         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45788         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45789
45790 2009-03-01  Bruno Haible  <bruno@clisp.org>
45791
45792         More support for FreeMiNT.
45793         * lib/fpurge.c (fpurge): Correct last commit.
45794         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45795
45796 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45797
45798         Fix unportable awk script in vc-list-files.
45799         * build-aux/vc-list-files: In the replacement awk script, use
45800         substr with a second argument of 1, not zero.
45801         Report by Simon Josefsson.
45802
45803 2009-02-28  Bruno Haible  <bruno@clisp.org>
45804
45805         More support for FreeMiNT.
45806         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45807         to FreeMiNT today.
45808         * lib/fwriting.c (fwriting): Likewise.
45809         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45810
45811 2009-02-28  Bruno Haible  <bruno@clisp.org>
45812
45813         * tests/test-freadseek.c (main): Disable test beyond end of file on
45814         FreeMiNT.
45815         * tests/test-ftello.c (main): Likewise.
45816         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45817
45818 2009-02-28  Bruno Haible  <bruno@clisp.org>
45819
45820         Add tentative support for FreeMiNT.
45821         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45822         * lib/fpurge.c (fpurge): Likewise.
45823         * lib/freadable.c (freadable): Likewise.
45824         * lib/freading.c (freading): Likewise.
45825         * lib/freadptr.c (freadptr): Likewise.
45826         * lib/freadseek.c (freadptrinc): Likewise.
45827         * lib/fseeko.c (rpl_fseeko): Likewise.
45828         * lib/fseterr.c (fseterr): Likewise.
45829         * lib/fwritable.c (fwritable): Likewise.
45830         * lib/fwriting.c (fwriting): Likewise.
45831         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45832         Hourihane.
45833         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45834
45835 2009-02-28  Bruno Haible  <bruno@clisp.org>
45836
45837         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45838         SIGCHLD.
45839         Reported by Jim Meyering.
45840
45841 2009-02-28  Bruno Haible  <bruno@clisp.org>
45842
45843         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45844         Mention the results of these tests on various platforms.
45845         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45846         order.
45847         * doc/posix-functions/printf.texi: Likewise.
45848         * doc/posix-functions/snprintf.texi: Likewise.
45849         * doc/posix-functions/sprintf.texi: Likewise.
45850         * doc/posix-functions/vfprintf.texi: Likewise.
45851         * doc/posix-functions/vprintf.texi: Likewise.
45852         * doc/posix-functions/vsnprintf.texi: Likewise.
45853         * doc/posix-functions/vsprintf.texi: Likewise.
45854         * doc/glibc-functions/obstack_printf.texi: Likewise.
45855         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45856
45857 2009-02-28  Bruno Haible  <bruno@clisp.org>
45858
45859         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45860         Reported by Loïc Minier <lool@dooz.org>.
45861
45862 2009-02-27  Bruno Haible  <bruno@clisp.org>
45863
45864         * gnulib-tool (func_import): Make the sed expression used to create the
45865         sed script for updating the .gitignore file POSIX compliant.
45866         Reported by Eric Blake.
45867
45868 2009-02-27  Bruno Haible  <bruno@clisp.org>
45869
45870         * gnulib-tool (sed): Don't alias as "sed --posix".
45871         Reported by Eric Blake.
45872
45873 2009-02-27  Bruno Haible  <bruno@clisp.org>
45874
45875         Avoid test link errors.
45876         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45877         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45878         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45879         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45881
45882 2009-02-27  Bruno Haible  <bruno@clisp.org>
45883
45884         Avoid spurious "(cached)" in configure output.
45885         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45886         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45887         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45888         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45889         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45890         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45891         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45892         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45893         Reported by Eric Blake.
45894
45895 2009-02-27  Eric Blake  <ebb9@byu.net>
45896
45897         printf: fix regression in previous patch
45898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45899
45900 2009-02-27  Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45903         value.
45904         * lib/stdint.in.h: Likewise.
45905         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45906
45907 2009-02-27  Eric Blake  <ebb9@byu.net>
45908
45909         doc: mention more functions added in cygwin 1.7.0
45910         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45911         addition.
45912         * doc/posix-functions/open_wmemstream.texi: Likewise.
45913         * doc/posix-functions/wcsnlen.texi: Likewise.
45914         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45915         * doc/posix-functions/wcstod.texi: Likewise.
45916         * doc/posix-functions/wcstof.texi: Likewise.
45917         * doc/posix-functions/wcstoimax.texi: Likewise.
45918         * doc/posix-functions/wcstok.texi: Likewise.
45919         * doc/posix-functions/wcstoumax.texi: Likewise.
45920
45921         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45923         * doc/posix-functions/fprintf.texi: Update.
45924         * doc/posix-functions/printf.texi: Update.
45925         * doc/posix-functions/snprintf.texi: Update.
45926         * doc/posix-functions/sprintf.texi: Update.
45927         * doc/posix-functions/vfprintf.texi: Update.
45928         * doc/posix-functions/vprintf.texi: Update.
45929         * doc/posix-functions/vsnprintf.texi: Update.
45930         * doc/posix-functions/vsprintf.texi: Update.
45931         * doc/glibc-functions/obstack_printf.texi: Update.
45932         * doc/glibc-functions/obstack_vprintf.texi: Update.
45933
45934 2009-02-26  Eric Blake  <ebb9@byu.net>
45935
45936         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45937         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45938         compilation bug by using runtime conversion.
45939         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45940         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45941         * modules/ceill-tests (Files): Use nan.h.
45942         * modules/floorl-tests (Files): Likewise.
45943         * modules/frexpl-tests (Files): Likewise.
45944         * modules/isnanl-tests (Files): Likewise.
45945         * modules/ldexpl-tests (Files): Likewise.
45946         * modules/roundl-tests (Files): Likewise.
45947         * modules/truncl-tests (Files): Likewise.
45948         * tests/test-ceill.c (main): Use a working NaN.
45949         * tests/test-floorl.c (main): Likewise.
45950         * tests/test-frexpl.c (main): Likewise.
45951         * tests/test-isnan.c (test_long_double): Likewise.
45952         * tests/test-isnanl.h (main): Likewise.
45953         * tests/test-ldexpl.h (main): Likewise.
45954         * tests/test-roundl.h (main): Likewise.
45955         * tests/test-truncl.h (main): Likewise.
45956         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45957
45958 2009-02-26  Eric Blake  <ebb9@byu.net>
45959             Bruno Haible  <bruno@clisp.org>
45960
45961         Work around a *printf bug with %ls on Solaris.
45962         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45963         precision is specified, sprintf stops converting the wide string
45964         argument when the number of bytes that have been produced by this
45965         conversion equals or exceeds the precision.
45966         * doc/posix-functions/fprintf.texi: Update.
45967         * doc/posix-functions/printf.texi: Update.
45968         * doc/posix-functions/snprintf.texi: Update.
45969         * doc/posix-functions/sprintf.texi: Update.
45970         * doc/posix-functions/vfprintf.texi: Update.
45971         * doc/posix-functions/vprintf.texi: Update.
45972         * doc/posix-functions/vsnprintf.texi: Update.
45973         * doc/posix-functions/vsprintf.texi: Update.
45974         * doc/glibc-functions/obstack_printf.texi: Update.
45975         * doc/glibc-functions/obstack_vprintf.texi: Update.
45976
45977 2009-02-26  Eric Blake  <ebb9@byu.net>
45978
45979         stdlib: favor compiler check of random.h
45980         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45981         to avoid an ObjC random.h installed by Swarm.
45982
45983 2009-02-26  Bruno Haible  <bruno@clisp.org>
45984
45985         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45986         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45987         Reported by Gary V. Vaughan <gary@gnu.org>.
45988
45989 2009-02-26  Bruno Haible  <bruno@clisp.org>
45990
45991         Fix *printf behaviour regarding the %ls directive.
45992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45993         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45994         NEED_PRINTF_DIRECTIVE_LS.
45995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45996         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45998         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45999         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46000         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46001         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46006         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46007         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46008         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46009         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46010         * doc/posix-functions/fprintf.texi: Update.
46011         * doc/posix-functions/printf.texi: Update.
46012         * doc/posix-functions/snprintf.texi: Update.
46013         * doc/posix-functions/sprintf.texi: Update.
46014         * doc/posix-functions/vfprintf.texi: Update.
46015         * doc/posix-functions/vprintf.texi: Update.
46016         * doc/posix-functions/vsnprintf.texi: Update.
46017         * doc/posix-functions/vsprintf.texi: Update.
46018         * doc/glibc-functions/obstack_printf.texi: Update.
46019         * doc/glibc-functions/obstack_vprintf.texi: Update.
46020         Reported by Eric Blake.
46021
46022 2009-02-25  Bruno Haible  <bruno@clisp.org>
46023
46024         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46025         with known value.
46026         Reported by Gary V. Vaughan <gary@gnu.org>.
46027
46028 2009-02-25  Bruno Haible  <bruno@clisp.org>
46029
46030         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46031         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46032         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46033         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46034         Reported by Gary V. Vaughan <gary@gnu.org>.
46035
46036 2009-02-25  Bruno Haible  <bruno@clisp.org>
46037
46038         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46039         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46040         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46041         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46042         Reported by Gary V. Vaughan <gary@gnu.org>.
46043
46044 2009-02-25  Eric Blake  <ebb9@byu.net>
46045
46046         tests: skip fseek/ftell tests if ungetc is broken
46047         * m4/ungetc.m4: New file.
46048         * modules/fseek-tests: Split test, so ungetc dependency is
46049         separate from rest of test.
46050         * modules/fseeko-tests: Likewise.
46051         * modules/ftell-tests: Likewise.
46052         * modules/ftello-tests: Likewise.
46053         * tests/test-fseek.c (main): Isolate ungetc dependency.
46054         * tests/test-fseeko.c (main): Likewise.
46055         * tests/test-ftell.c (main): Likewise.
46056         * tests/test-ftello.c (main): Likewise.
46057         * tests/test-fseek2.sh: New file.
46058         * tests/test-fseeko2.sh: Likewise.
46059         * tests/test-ftell2.sh: Likewise.
46060         * tests/test-ftello2.sh: Likewise.
46061
46062 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46063
46064         test-getaddrinfo: fix usage of skip return code 77
46065         * tests/test-gettaddrinfo.c: Return skip code 77 only
46066         for first occurance of skip (4x77 is not 77)
46067
46068 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46069
46070         strtod: avoid C99 decl-after-statement
46071         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46072
46073 2009-02-24  Eric Blake  <ebb9@byu.net>
46074
46075         strtod: detect HP-UX 11.31 bug
46076         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46077         Reported by Gary V. Vaughan.
46078
46079 2009-02-23  Bruno Haible  <bruno@clisp.org>
46080
46081         Fix invalid read past end of memory block.
46082         * lib/vasnprintf.c (DCHAR_SET): Define.
46083         (local_wcslen): Define only when needed.
46084         (local_strnlen, local_wcsnlen): New functions.
46085         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46086         directives that involve a conversion ourselves.
46087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46088         wcsnlen, mbrtowc, wcrtomb.
46089         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46090         * tests/test-vasprintf-posix.c (test_function): Likewise.
46091         * tests/test-snprintf-posix.h (test_function): Likewise.
46092         * tests/test-sprintf-posix.h (test_function): Likewise.
46093         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46094
46095 2009-02-22  Bruno Haible  <bruno@clisp.org>
46096
46097         Implement new clarified decomposition of Hangul syllables.
46098         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46099         of type LTV, return only a pairwise decomposition.
46100         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46101         Likewise.
46102         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46103         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46104         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46105
46106 2009-02-22  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46109         zero-length results and shrink excess allocated memory.
46110         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46111         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46112         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46113         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46114         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46115         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46116         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46117         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46118         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46119         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46120         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46121         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46122
46123 2009-02-21  Bruno Haible  <bruno@clisp.org>
46124
46125         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46126         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46127         spaces after a period. Put a space between a macro name and its
46128         argument list. Trivial rewordings.
46129         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46130         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46131         (main): Return 0 explicitly.
46132
46133 2009-02-21  Bruno Haible  <bruno@clisp.org>
46134
46135         Tests for module 'uninorm/filter'.
46136         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46137         * modules/uninorm/filter-tests: New file.
46138
46139         New module 'uninorm/filter'.
46140         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46141         uninorm_filter_flush, uninorm_filter_free): New declarations.
46142         * lib/uninorm/uninorm-filter.c: New file.
46143         * modules/uninorm/filter: New file.
46144
46145 2009-02-21  Bruno Haible  <bruno@clisp.org>
46146
46147         Tests for module 'uninorm/nfkc'.
46148         * tests/uninorm/test-nfkc.c: New file.
46149         * tests/uninorm/test-u8-nfkc.c: New file.
46150         * tests/uninorm/test-u16-nfkc.c: New file.
46151         * tests/uninorm/test-u32-nfkc.c: New file.
46152         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46153         * tests/uninorm/test-u32-nfkc-big.c: New file.
46154         * modules/uninorm/nfkc-tests: New file.
46155
46156         New module 'uninorm/nfkc'.
46157         * lib/uninorm/nfkc.c: New file.
46158         * modules/uninorm/nfkc: New file.
46159
46160         Tests for module 'uninorm/nfkd'.
46161         * tests/uninorm/test-nfkd.c: New file.
46162         * tests/uninorm/test-u8-nfkd.c: New file.
46163         * tests/uninorm/test-u16-nfkd.c: New file.
46164         * tests/uninorm/test-u32-nfkd.c: New file.
46165         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46166         * tests/uninorm/test-u32-nfkd-big.c: New file.
46167         * modules/uninorm/nfkd-tests: New file.
46168
46169         New module 'uninorm/nfkd'.
46170         * lib/uninorm/nfkd.c: New file.
46171         * modules/uninorm/nfkd: New file.
46172
46173         Tests for module 'uninorm/nfc'.
46174         * tests/uninorm/test-nfc.c: New file.
46175         * tests/uninorm/test-u8-nfc.c: New file.
46176         * tests/uninorm/test-u16-nfc.c: New file.
46177         * tests/uninorm/test-u32-nfc.c: New file.
46178         * tests/uninorm/test-u32-nfc-big.sh: New file.
46179         * tests/uninorm/test-u32-nfc-big.c: New file.
46180         * modules/uninorm/nfc-tests: New file.
46181
46182         New module 'uninorm/nfc'.
46183         * lib/uninorm/nfc.c: New file.
46184         * modules/uninorm/nfc: New file.
46185
46186         Tests for module 'uninorm/nfd'.
46187         * tests/uninorm/test-nfd.c: New file.
46188         * tests/uninorm/test-u8-nfd.c: New file.
46189         * tests/uninorm/test-u16-nfd.c: New file.
46190         * tests/uninorm/test-u32-nfd.c: New file.
46191         * tests/uninorm/test-u32-nfd-big.sh: New file.
46192         * tests/uninorm/test-u32-nfd-big.c: New file.
46193         * tests/uninorm/test-u32-normalize-big.h: New file.
46194         * tests/uninorm/test-u32-normalize-big.c: New file.
46195         * tests/uninorm/NormalizationTest.txt: New file, created from
46196         Unicode 5.1.0 NormalizationTest.txt.
46197         * modules/uninorm/nfd-tests: New file.
46198
46199         New module 'uninorm/nfd'.
46200         * lib/uninorm/nfd.c: New file.
46201         * modules/uninorm/nfd: New file.
46202
46203         New module 'uninorm/u32-normalize'.
46204         * lib/uninorm/u32-normalize.c: New file.
46205         * modules/uninorm/u32-normalize: New file.
46206
46207         New module 'uninorm/u16-normalize'.
46208         * lib/uninorm/u16-normalize.c: New file.
46209         * modules/uninorm/u16-normalize: New file.
46210
46211         New module 'uninorm/u8-normalize'.
46212         * lib/uninorm/u8-normalize.c: New file.
46213         * lib/uninorm/normalize-internal.h: New file.
46214         * lib/uninorm/u-normalize-internal.h: New file.
46215         * modules/uninorm/u8-normalize: New file.
46216
46217         New module 'uninorm/decompose-internal'.
46218         * lib/uninorm/decompose-internal.c: New file.
46219         * modules/uninorm/decompose-internal: New file.
46220
46221         Tests for module 'uninorm/composition'.
46222         * tests/uninorm/test-composition.c: New file.
46223         * modules/uninorm/composition-tests: New file.
46224
46225         New module 'uninorm/composition'.
46226         * lib/uninorm/composition.c: New file.
46227         * lib/uninorm/composition-table.gperf: New file, generated by
46228         gen-uni-tables.
46229         * modules/uninorm/composition: New file.
46230
46231         Tests for module 'uninorm/compat-decomposition'.
46232         * tests/uninorm/test-compat-decomposition.c: New file.
46233         * modules/uninorm/compat-decomposition-tests: New file.
46234
46235         New module 'uninorm/compat-decomposition'.
46236         * lib/uninorm/decompose-internal.h: New file.
46237         * lib/uninorm/compat-decomposition.c: New file.
46238         * modules/uninorm/compat-decomposition: New file.
46239
46240         Tests for module 'uninorm/canonical-decomposition'.
46241         * tests/uninorm/test-canonical-decomposition.c: New file.
46242         * modules/uninorm/canonical-decomposition-tests: New file.
46243
46244         New module 'uninorm/canonical-decomposition'.
46245         * lib/uninorm/canonical-decomposition.c: New file.
46246         * modules/uninorm/canonical-decomposition: New file.
46247
46248         Tests for module 'uninorm/decomposition'.
46249         * tests/uninorm/test-decomposition.c: New file.
46250         * modules/uninorm/decomposition-tests: New file.
46251
46252         New module 'uninorm/decomposition'.
46253         * lib/uninorm/decomposition.c: New file.
46254         * modules/uninorm/decomposition: New file.
46255
46256         New module 'uninorm/decomposition-table'.
46257         * lib/uninorm/decomposition-table.h: New file.
46258         * lib/uninorm/decomposition-table.c: New file.
46259         * lib/uninorm/decomposition-table1.h: New file, generated by
46260         gen-uni-tables.
46261         * lib/uninorm/decomposition-table2.h: New file, generated by
46262         gen-uni-tables.
46263         * modules/uninorm/decomposition-table: New file.
46264
46265         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46266         (UC_DECOMP_*): New enumeration items.
46267         (get_decomposition): New function.
46268         (struct decomp_table): New type.
46269         (output_decomposition, output_decomposition_tables): New functions.
46270         (unicode_composition_exclusions): New variable.
46271         (fill_composition_exclusions, debug_output_composition_tables): New
46272         functions.
46273         (main): Accept one more argument. Invoke fill_composition_exclusions.
46274         Output decomposition and composition tables.
46275
46276         New module 'uninorm/base'.
46277         * lib/uninorm.h: New file.
46278         * lib/unictype.h: Update comment.
46279         * modules/uninorm/base: New file.
46280
46281 2009-02-21  David Lutterkort  <lutter@redhat.com>
46282
46283         Tests for module 'safe-alloc'.
46284         * tests/test-safe-alloc.c: New file.
46285         * modules/safe-alloc-tests: New file.
46286
46287         New module 'safe-alloc'.
46288         * lib/safe-alloc.h: New file.
46289         * lib/safe-alloc.c: New file.
46290         * m4/safe-alloc.m4: New file.
46291         * modules/safe-alloc: New file.
46292         * doc/safe-alloc.texi: New file.
46293         * doc/gnulib.texi: Include it.
46294         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46295         safe-alloc.
46296
46297 2009-02-18  Bruno Haible  <bruno@clisp.org>
46298
46299         Fix link error on non-glibc systems.
46300         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46301         variable.
46302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46303
46304 2009-02-18  Jim Meyering  <meyering@redhat.com>
46305
46306         fts: avoid used-uninitialized error due to recent change
46307         * lib/fts.c (fts_read): Guard uses of the new member,
46308         parent->fts_n_dirs_remaining, since it's not relevant for
46309         the parent of a directory specified on the command-line.
46310
46311 2009-02-17  James Youngman  <jay@gnu.org>
46312             Bruno Haible  <bruno@clisp.org>
46313
46314         * m4/include_next.m4: Reformulate comment.
46315
46316 2009-02-16  Jim Meyering  <meyering@redhat.com>
46317
46318         fts: add #if guards so that the fts_lgpl module still builds
46319         * lib/fts.c: Guard just-added hash-table-using parts with
46320         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46321         Reported by Simon Josefsson.
46322
46323 2009-02-15  Bruno Haible  <bruno@clisp.org>
46324
46325         * modules/array-mergesort-tests: New file.
46326         * tests/test-array-mergesort.c: New file.
46327
46328         New module 'array-mergesort'.
46329         * modules/array-mergesort: New file.
46330         * lib/array-mergesort.h: New file.
46331
46332 2009-02-15  Bruno Haible  <bruno@clisp.org>
46333
46334         Fix 2009-02-07 commit.
46335         * lib/gen-uni-tables.c (output_predicate, output_category,
46336         output_combclass, output_bidi_category, output_decimal_digit,
46337         output_digit, output_numeric, output_mirror, output_scripts,
46338         output_ident_category, output_simple_mapping): Fix format directives.
46339         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46340
46341 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46342
46343         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46344         fixes are available from IBM.
46345
46346 2009-02-13  Jim Meyering  <meyering@redhat.com>
46347
46348         fts: arrange not to stat non-directories in more cases
46349         This makes GNU find (when it doesn't need to stat each file)
46350         *much* more efficient at traversing reiserfs file systems.
46351         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46352         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46353         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46354         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46355         (leaf_optimization_applies): New function.
46356         (LCO_hash, LCO_compare): New helper functions.
46357         (link_count_optimize_ok): New function.
46358         (fts_stat): Initialize new member (if dir).
46359         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46360         we've just stat'ed a directory.  Skip the stat call when possible.
46361         ---
46362         Note this AFS-related exchange:
46363         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46364         and note find's pioctl call in find/fstype.c.
46365         But that is necessary only if you want to enable the
46366         optimization for AFS, and for now, I don't.
46367
46368         fts: move a function definition "up" (no semantic change)
46369         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46370         "up" to precede upcoming use of a related function.
46371
46372 2009-02-11  Jim Meyering  <meyering@redhat.com>
46373
46374         fts: correct internal computation of nlinks (optimization-related)
46375         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46376         whether the current entry is a directory, so don't test it.
46377
46378 2009-02-10  Bruno Haible  <bruno@clisp.org>
46379
46380         Tests for module 'uniwbrk/ulc-wordbreaks'.
46381         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46382         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46383         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46384
46385         Tests for module 'uniwbrk/u32-wordbreaks'.
46386         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46387         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46388
46389         Tests for module 'uniwbrk/u16-wordbreaks'.
46390         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46391         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46392
46393         Tests for module 'uniwbrk/u8-wordbreaks'.
46394         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46395         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46396
46397 2009-02-10  Bruno Haible  <bruno@clisp.org>
46398
46399         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46400         property.
46401         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46402         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46403         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46404
46405 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46406
46407         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46408         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46409
46410 2009-02-10  Bruno Haible  <bruno@clisp.org>
46411
46412         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46413         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46414         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46415         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46416         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46417         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46418
46419 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46420
46421         * lib/sockets.h (gl_fd_to_handle): New function.
46422
46423         * tests/test-sockets.c: Call gl_fd_to_handle.
46424
46425 2009-02-09  Bruno Haible  <bruno@clisp.org>
46426
46427         * doc/havelib.texi: Document the conventions on bi-arch systems.
46428
46429 2009-02-08  Bruno Haible  <bruno@clisp.org>
46430
46431         Document the AC_LIB_LINKFLAGS macro.
46432         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46433         * doc/gnulib.texi: Include it.
46434
46435 2009-02-08  Bruno Haible  <bruno@clisp.org>
46436
46437         Fix wrong order of sections, compared to TOC.
46438         * doc/gnulib.texi: Include relocatable-maint.texi after the
46439         "Regular expressions" node, not before.
46440
46441 2009-02-08  Bruno Haible  <bruno@clisp.org>
46442
46443         Tests for module 'unicase/totitle'.
46444         * modules/unicase/totitle-tests: New file.
46445
46446         Tests for module 'unicase/tolower'.
46447         * modules/unicase/tolower-tests: New file.
46448
46449         Tests for module 'unicase/toupper'.
46450         * modules/unicase/toupper-tests: New file.
46451         * tests/unicase/test-mapping-part1.h: New file.
46452         * tests/unicase/test-mapping-part2.h: New file.
46453
46454         New module 'unicase/totitle'.
46455         * modules/unicase/totitle: New file.
46456         * lib/unicase/totitle.c: New file.
46457
46458         New module 'unicase/tolower'.
46459         * modules/unicase/tolower: New file.
46460         * lib/unicase/tolower.c: New file.
46461
46462         New module 'unicase/toupper'.
46463         * modules/unicase/toupper: New file.
46464         * lib/unicase/toupper.c: New file.
46465         * lib/unicase/simple-mapping.h: New file.
46466
46467         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46468         (mapping_table): New structure.
46469         (output_simple_mapping): New function.
46470         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46471         * modules/gen-uni-tables (Description): Update.
46472         * lib/unicase/toupper.h: New file, automatically generated by
46473         gen-uni-tables.
46474         * lib/unicase/tolower.h: New file, automatically generated by
46475         gen-uni-tables.
46476         * lib/unicase/totitle.h: New file, automatically generated by
46477         gen-uni-tables.
46478         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46479         gen-uni-tables.
46480         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46481         gen-uni-tables.
46482         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46483         gen-uni-tables.
46484
46485         New module 'unicase/base'.
46486         * modules/unicase/base: New file.
46487         * lib/unicase.h: New file.
46488
46489 2009-02-08  Bruno Haible  <bruno@clisp.org>
46490
46491         New module 'uniwbrk/ulc-wordbreaks'.
46492         * modules/uniwbrk/ulc-wordbreaks: New file.
46493         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46494
46495         New module 'uniwbrk/u32-wordbreaks'.
46496         * modules/uniwbrk/u32-wordbreaks: New file.
46497         * lib/uniwbrk/u32-wordbreaks.c: New file.
46498
46499         New module 'uniwbrk/u16-wordbreaks'.
46500         * modules/uniwbrk/u16-wordbreaks: New file.
46501         * lib/uniwbrk/u16-wordbreaks.c: New file.
46502
46503         New module 'uniwbrk/u8-wordbreaks'.
46504         * modules/uniwbrk/u8-wordbreaks: New file.
46505         * lib/uniwbrk/u8-wordbreaks.c: New file.
46506         * lib/uniwbrk/u-wordbreaks.h: New file.
46507
46508         New module 'uniwbrk/table'.
46509         * modules/uniwbrk/table: New file.
46510         * lib/uniwbrk/wbrktable.h: New file.
46511         * lib/uniwbrk/wbrktable.c: New file.
46512
46513         New module 'uniwbrk/wordbreak-property'.
46514         * modules/uniwbrk/wordbreak-property: New file.
46515         * lib/uniwbrk/wordbreak-property.c: New file.
46516
46517         * lib/gen-uni-tables.c (WBP_*): New enum items.
46518         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46519         (unicode_org_wbp): New variable.
46520         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46521         New functions.
46522         (wbp_table): New structure.
46523         (output_wbp, output_wbrk_tables): New functions.
46524         (main): Accept additional argument. Invoke fill_org_wbp,
46525         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46526         output_wbrk_tables.
46527         * modules/gen-uni-tables (Description): Update.
46528         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46529         gen-uni-tables.
46530
46531         New module 'uniwbrk/base'.
46532         * modules/uniwbrk/base: New file.
46533         * lib/uniwbrk.h: New file.
46534
46535 2009-02-08  Bruno Haible  <bruno@clisp.org>
46536
46537         Update to Unicode 5.1.0.
46538         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46539         U+2185..U+2188.
46540         (is_property_default_ignorable_code_point): Don't include characters
46541         of category Cc or Cs and not-a-characters.
46542         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46543         U+0D79, U+109E, U+109F, U+A60C.
46544         * lib/unictype/bidi_of.h: Regenerated.
46545         * lib/unictype/blocks.h: Regenerated.
46546         * lib/unictype/categ_C.h: Regenerated.
46547         * lib/unictype/categ_Cf.h: Regenerated.
46548         * lib/unictype/categ_Cn.h: Regenerated.
46549         * lib/unictype/categ_L.h: Regenerated.
46550         * lib/unictype/categ_Ll.h: Regenerated.
46551         * lib/unictype/categ_Lm.h: Regenerated.
46552         * lib/unictype/categ_Lo.h: Regenerated.
46553         * lib/unictype/categ_Lu.h: Regenerated.
46554         * lib/unictype/categ_M.h: Regenerated.
46555         * lib/unictype/categ_Mc.h: Regenerated.
46556         * lib/unictype/categ_Me.h: Regenerated.
46557         * lib/unictype/categ_Mn.h: Regenerated.
46558         * lib/unictype/categ_N.h: Regenerated.
46559         * lib/unictype/categ_Nd.h: Regenerated.
46560         * lib/unictype/categ_Nl.h: Regenerated.
46561         * lib/unictype/categ_No.h: Regenerated.
46562         * lib/unictype/categ_P.h: Regenerated.
46563         * lib/unictype/categ_Pd.h: Regenerated.
46564         * lib/unictype/categ_Pe.h: Regenerated.
46565         * lib/unictype/categ_Pf.h: Regenerated.
46566         * lib/unictype/categ_Pi.h: Regenerated.
46567         * lib/unictype/categ_Po.h: Regenerated.
46568         * lib/unictype/categ_Ps.h: Regenerated.
46569         * lib/unictype/categ_S.h: Regenerated.
46570         * lib/unictype/categ_Sk.h: Regenerated.
46571         * lib/unictype/categ_Sm.h: Regenerated.
46572         * lib/unictype/categ_So.h: Regenerated.
46573         * lib/unictype/categ_of.h: Regenerated.
46574         * lib/unictype/combining.h: Regenerated.
46575         * lib/unictype/ctype_alnum.h: Regenerated.
46576         * lib/unictype/ctype_alpha.h: Regenerated.
46577         * lib/unictype/ctype_graph.h: Regenerated.
46578         * lib/unictype/ctype_lower.h: Regenerated.
46579         * lib/unictype/ctype_print.h: Regenerated.
46580         * lib/unictype/ctype_punct.h: Regenerated.
46581         * lib/unictype/ctype_upper.h: Regenerated.
46582         * lib/unictype/decdigit.h: Regenerated.
46583         * lib/unictype/digit.h: Regenerated.
46584         * lib/unictype/mirror.h: Regenerated.
46585         * lib/unictype/numeric.h: Regenerated.
46586         * lib/unictype/pr_alphabetic.h: Regenerated.
46587         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46588         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46589         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46590         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46591         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46592         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46593         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46594         * lib/unictype/pr_combining.h: Regenerated.
46595         * lib/unictype/pr_dash.h: Regenerated.
46596         * lib/unictype/pr_decimal_digit.h: Regenerated.
46597         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46598         * lib/unictype/pr_deprecated.h: Regenerated.
46599         * lib/unictype/pr_diacritic.h: Regenerated.
46600         * lib/unictype/pr_extender.h: Regenerated.
46601         * lib/unictype/pr_format_control.h: Regenerated.
46602         * lib/unictype/pr_grapheme_base.h: Regenerated.
46603         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46604         * lib/unictype/pr_grapheme_link.h: Regenerated.
46605         * lib/unictype/pr_id_continue.h: Regenerated.
46606         * lib/unictype/pr_id_start.h: Regenerated.
46607         * lib/unictype/pr_ideographic.h: Regenerated.
46608         * lib/unictype/pr_ignorable_control.h: Regenerated.
46609         * lib/unictype/pr_lowercase.h: Regenerated.
46610         * lib/unictype/pr_math.h: Regenerated.
46611         * lib/unictype/pr_numeric.h: Regenerated.
46612         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46613         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46614         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46615         * lib/unictype/pr_other_id_continue.h: Regenerated.
46616         * lib/unictype/pr_other_lowercase.h: Regenerated.
46617         * lib/unictype/pr_other_math.h: Regenerated.
46618         * lib/unictype/pr_punctuation.h: Regenerated.
46619         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46620         * lib/unictype/pr_soft_dotted.h: Regenerated.
46621         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46622         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46623         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46624         * lib/unictype/pr_uppercase.h: Regenerated.
46625         * lib/unictype/pr_xid_continue.h: Regenerated.
46626         * lib/unictype/pr_xid_start.h: Regenerated.
46627         * lib/unictype/pr_zero_width.h: Regenerated.
46628         * lib/unictype/scripts.h: Regenerated.
46629         * lib/unictype/scripts_byname.gperf: Regenerated.
46630         * lib/unictype/sy_java_ident.h: Regenerated.
46631         * lib/unilbrk/lbrkprop1.h: Regenerated.
46632         * lib/unilbrk/lbrkprop2.h: Regenerated.
46633         * tests/unictype/test-categ_C.c: Regenerated.
46634         * tests/unictype/test-categ_Cf.c: Regenerated.
46635         * tests/unictype/test-categ_Cn.c: Regenerated.
46636         * tests/unictype/test-categ_L.c: Regenerated.
46637         * tests/unictype/test-categ_Ll.c: Regenerated.
46638         * tests/unictype/test-categ_Lm.c: Regenerated.
46639         * tests/unictype/test-categ_Lo.c: Regenerated.
46640         * tests/unictype/test-categ_Lu.c: Regenerated.
46641         * tests/unictype/test-categ_M.c: Regenerated.
46642         * tests/unictype/test-categ_Mc.c: Regenerated.
46643         * tests/unictype/test-categ_Me.c: Regenerated.
46644         * tests/unictype/test-categ_Mn.c: Regenerated.
46645         * tests/unictype/test-categ_N.c: Regenerated.
46646         * tests/unictype/test-categ_Nd.c: Regenerated.
46647         * tests/unictype/test-categ_Nl.c: Regenerated.
46648         * tests/unictype/test-categ_No.c: Regenerated.
46649         * tests/unictype/test-categ_P.c: Regenerated.
46650         * tests/unictype/test-categ_Pd.c: Regenerated.
46651         * tests/unictype/test-categ_Pe.c: Regenerated.
46652         * tests/unictype/test-categ_Pf.c: Regenerated.
46653         * tests/unictype/test-categ_Pi.c: Regenerated.
46654         * tests/unictype/test-categ_Po.c: Regenerated.
46655         * tests/unictype/test-categ_Ps.c: Regenerated.
46656         * tests/unictype/test-categ_S.c: Regenerated.
46657         * tests/unictype/test-categ_Sk.c: Regenerated.
46658         * tests/unictype/test-categ_Sm.c: Regenerated.
46659         * tests/unictype/test-categ_So.c: Regenerated.
46660         * tests/unictype/test-ctype_alnum.c: Regenerated.
46661         * tests/unictype/test-ctype_alpha.c: Regenerated.
46662         * tests/unictype/test-ctype_graph.c: Regenerated.
46663         * tests/unictype/test-ctype_lower.c: Regenerated.
46664         * tests/unictype/test-ctype_print.c: Regenerated.
46665         * tests/unictype/test-ctype_punct.c: Regenerated.
46666         * tests/unictype/test-ctype_upper.c: Regenerated.
46667         * tests/unictype/test-decdigit.h: Regenerated.
46668         * tests/unictype/test-digit.h: Regenerated.
46669         * tests/unictype/test-numeric.h: Regenerated.
46670         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46671         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46672         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46673         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46674         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46675         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46676         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46677         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46678         * tests/unictype/test-pr_combining.c: Regenerated.
46679         * tests/unictype/test-pr_dash.c: Regenerated.
46680         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46681         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46682         * tests/unictype/test-pr_deprecated.c: Regenerated.
46683         * tests/unictype/test-pr_diacritic.c: Regenerated.
46684         * tests/unictype/test-pr_extender.c: Regenerated.
46685         * tests/unictype/test-pr_format_control.c: Regenerated.
46686         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46687         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46688         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46689         * tests/unictype/test-pr_id_continue.c: Regenerated.
46690         * tests/unictype/test-pr_id_start.c: Regenerated.
46691         * tests/unictype/test-pr_ideographic.c: Regenerated.
46692         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46693         * tests/unictype/test-pr_lowercase.c: Regenerated.
46694         * tests/unictype/test-pr_math.c: Regenerated.
46695         * tests/unictype/test-pr_numeric.c: Regenerated.
46696         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46697         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46698         Regenerated.
46699         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46700         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46701         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46702         * tests/unictype/test-pr_other_math.c: Regenerated.
46703         * tests/unictype/test-pr_punctuation.c: Regenerated.
46704         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46705         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46706         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46707         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46708         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46709         * tests/unictype/test-pr_uppercase.c: Regenerated.
46710         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46711         * tests/unictype/test-pr_xid_start.c: Regenerated.
46712         * tests/unictype/test-pr_zero_width.c: Regenerated.
46713
46714         Update to Unicode 5.1.0.
46715         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46716         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46717         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46718         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46719         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46720         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46721         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46722         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46723         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46724         (nonspacing_table_ind): Update.
46725         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46726
46727         Update to Unicode 5.1.0.
46728         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46729         code transform.
46730         * lib/uniname/uniname.c (unicode_character_name,
46731         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46732         * lib/uniname/uninames.h: Regenerated.
46733         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46734
46735 2009-02-07  Bruno Haible  <bruno@clisp.org>
46736
46737         Merge gen-ctype and gen-lbrk into a single program.
46738         * lib/gen-uni-tables.c: New file, incorporating
46739         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46740         Add directory prefixes to the names of the generated files.
46741         * lib/unictype/gen-ctype.c: Remove file.
46742         * lib/unilbrk/gen-lbrk.c: Remove file.
46743         * modules/gen-uni-tables: New file.
46744         * modules/unictype/gen-ctype: Remove file.
46745         * modules/unilbrk/gen-lbrk: Remove file.
46746
46747 2009-02-07  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46750
46751         New module 'unistr/u32-strcoll'.
46752         * modules/unistr/u32-strcoll: New file.
46753         * lib/unistr/u32-strcoll.c: New file.
46754
46755         New module 'unistr/u16-strcoll'.
46756         * modules/unistr/u16-strcoll: New file.
46757         * lib/unistr/u16-strcoll.c: New file.
46758
46759         New module 'unistr/u8-strcoll'.
46760         * modules/unistr/u8-strcoll: New file.
46761         * lib/unistr/u8-strcoll.c: New file.
46762         * lib/unistr/u-strcoll.h: New file.
46763
46764 2009-02-07  Bruno Haible  <bruno@clisp.org>
46765
46766         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46767         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46768         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46769         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46770         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46771         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46772
46773 2009-02-07  Bruno Haible  <bruno@clisp.org>
46774
46775         Make 64-bit clean.
46776         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46777         output_combclass, output_bidi_category, output_decimal_digit,
46778         output_digit, output_numeric, output_mirror, output_scripts,
46779         output_ident_category): Use proper width specifier in format strings.
46780
46781 2009-02-07  Bruno Haible  <bruno@clisp.org>
46782
46783         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46784         failure behaviour.
46785
46786 2009-02-07  Jim Meyering  <meyering@redhat.com>
46787
46788         regex: avoid compilation failure with upcoming gcc-4.4
46789         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46790         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46791         "... error: integer overflow in preprocessor expression".
46792
46793 2009-02-05  Ben Pfaff  <blp@gnu.org>
46794
46795         Fix link errors on Windows when close module is used.
46796         * modules/close: Add $(LIB_CLOSE) to Link section.
46797         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46798         $(LIB_CLOSE) on Windows.
46799
46800 2009-02-05  Jim Meyering  <meyering@redhat.com>
46801
46802         still avoid unused-parameter warnings, but do it cleanly
46803         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46804         (get_fs_usage): Cast to void instead.
46805         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46806         (dev_from_mount_options, read_file_system_list): Cast to void.
46807         Prompted by Bruno Haible.
46808
46809 2009-02-04  Jim Meyering  <meyering@redhat.com>
46810
46811         fsusage.c: correct copyright year
46812         * lib/fsusage.c: Reflect year in which the change is pushed into
46813
46814         avoid misc. warnings
46815         * lib/fsusage.c (UNUSED_PARAM): Define.
46816         (get_fs_usage): Mark parameter "disk" as unused.
46817         * lib/getugroups.c (getgrent): Use "void" in prototype.
46818         * lib/mountlist.c: Mark unused parameters.
46819         (read_file_system_list): Declare a local with "const".
46820         * lib/nanosleep.c (getnow): Declare static.
46821         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46822
46823         dirfd: set errno upon failure
46824         * lib/dirfd.c: Include <errno.h>.
46825         Set errno to ENOTSUP when returning -1.
46826         * modules/dirfd (Depends-on): Add errno.
46827         Suggested by John Kodis <kodis@comcast.net>.
46828
46829 2009-02-01  Bruno Haible  <bruno@clisp.org>
46830
46831         Don't assume sizeof (long) >= sizeof (void *).
46832         * lib/memcmp.c: Include stdint.h.
46833         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46834         srcp2 to 'const byte *'.
46835         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46836         types to uintptr_t.
46837         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46838         * modules/memcmp (Depends-on): Add stdint.
46839         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46840
46841 2009-01-30  Eric Blake  <ebb9@byu.net>
46842
46843         fix more require-before-expand issues
46844         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46845         expand, AC_PROG_AWK.
46846         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46847
46848 2009-01-28  Eric Blake  <ebb9@byu.net>
46849
46850         version-etc: use consistent URL formatting
46851         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46852         Improve formatting.  Use fputs for string without %.
46853
46854 2009-01-28  Jim Meyering  <meyering@redhat.com>
46855
46856         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46857         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46858         "underquoted definition of NAME" from autoconf-2.59.
46859
46860 2009-01-28  Bruno Haible  <bruno@clisp.org>
46861
46862         * doc/gnulib.texi: Add "Obsolete modules" to index.
46863
46864 2009-01-28  Jim Meyering  <meyering@redhat.com>
46865
46866         useless-if-before-free: recognize more variants
46867         * build-aux/useless-if-before-free: Also recognize e.g.,
46868         if (NULL != p) free (p);
46869
46870 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46871
46872         test-getaddrinfo: skip (don't fail) this test when there's no network
46873         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46874         on the presumption that it means you lack network access.
46875
46876 2009-01-26  Jim Meyering  <meyering@redhat.com>
46877
46878         fflush: avoid warnings on modern systems
46879         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46880         pos and result, into scopes where they're used.
46881
46882 2009-01-26  Eric Blake  <ebb9@byu.net>
46883
46884         Silence warning reintroduced by recent extensions patch.
46885         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46886         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46887         autoconf.
46888
46889         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46890         * m4/00gnulib.m4: New file.
46891         * gnulib-tool (func_get_filelist): Always use it.
46892         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46893         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46894
46895 2009-01-25  Bruno Haible  <bruno@clisp.org>
46896
46897         Make test-quotearg work on MacOS X and AIX.
46898         * tests/test-quotearg.sh: New file.
46899         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46900         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46901         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46902         include <libintl.h>.
46903         (fake_locale): Remove variable.
46904         (gettext, dgettext, dcgettext): Remove functions.
46905         (main): Instead of setting a fake locale, set a real locale. Call
46906         textdomain and bindtextdomain.
46907         * modules/quotearg-tests (Files): Add the new files.
46908         (Depends-on): Add gettext, setenv, unsetenv.
46909         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46910         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46911         Augment TESTS_ENVIRONMENT.
46912
46913 2009-01-25  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46916         fr_FR.ISO8859-1 locale on MacOS X.
46917         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46918         ja_JP.eucJP locale on MacOS X.
46919         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46920         zh_CN.GB18030 locale on MacOS X.
46921
46922 2009-01-25  Bruno Haible  <bruno@clisp.org>
46923
46924         Avoid link errors on MacOS X 10.3.
46925         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46926         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46927
46928 2009-01-25  Bruno Haible  <bruno@clisp.org>
46929
46930         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46931         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46932         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46933         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46934         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46935         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46936         posix_spawnattr_init, posix_spawnattr_setsigmask,
46937         posix_spawnattr_setflags, posix_spawnattr_destroy.
46938
46939         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46940         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46941         * modules/execute (Files): Remove m4/posix_spawn.m4.
46942         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46943         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46944         posix_spawnattr_init, posix_spawnattr_setsigmask,
46945         posix_spawnattr_setflags, posix_spawnattr_destroy.
46946
46947 2009-01-25  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/glthread/threadlib.c: Include <stdlib.h>.
46950
46951 2009-01-25  Bruno Haible  <bruno@clisp.org>
46952
46953         * lib/glthread/threadlib.c (dummy): New declaration.
46954
46955 2009-01-25  Bruno Haible  <bruno@clisp.org>
46956
46957         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46958         multibyte characters also for the GB18030 encoding. Don't crash when
46959         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46960
46961 2009-01-25  Bruno Haible  <bruno@clisp.org>
46962
46963         Avoid redefining 'struct random_data' on OSF/1 5.1.
46964         * lib/stdlib.in.h: Include <random.h> if it exists.
46965         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46966         HAVE_RANDOM_H. Include <random.h> when testing whether
46967         'struct random_data' exists.
46968         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46969
46970 2009-01-25  Bruno Haible  <bruno@clisp.org>
46971
46972         Don't install charset.alias on MacOS X >= 10.3.
46973         * lib/localcharset.c (DARWIN7): New macro.
46974         (get_charset_aliases): Hardcode the result for Darwin7.
46975         * modules/localcharset (install-exec-local): Don't install
46976         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46977
46978 2009-01-25  Bruno Haible  <bruno@clisp.org>
46979
46980         Don't install charset.alias on mingw and Cygwin.
46981         * modules/localcharset (install-exec-local): Don't install
46982         charset.alias on mingw and Cygwin, if the file does not yet exist.
46983         The result for these platforms is hardcoded in localcharset.c.
46984
46985 2009-01-25  Bruno Haible  <bruno@clisp.org>
46986
46987         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46989         before requiring AC_USE_SYSTEM_EXTENSIONS.
46990
46991 2009-01-25  Jim Meyering  <meyering@redhat.com>
46992
46993         c-strtod: avoid warnings
46994         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46995         "assignment discards qualifiers from pointer target type" warnings.
46996
46997 2009-01-24  Bruno Haible  <bruno@clisp.org>
46998
46999         Add support for non-UTF-8 locales on MacOS X.
47000         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47001         canonical encodings. For Darwin 7 and newer, don't map traditional
47002         encodings to UTF-8.
47003         Reported by Vincent Lefevre <vincent@vinc17.org>
47004         at <http://savannah.gnu.org/bugs/?25235>.
47005
47006 2009-01-24  Bruno Haible  <bruno@clisp.org>
47007
47008         * doc/gnulib.texi (Obsolete modules): New section.
47009         Reported by Mike Frysinger <vapier@gentoo.org>.
47010
47011 2009-01-24  Bruno Haible  <bruno@clisp.org>
47012
47013         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47014         (%.dvi): New rule.
47015
47016 2009-01-24  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47019         Reported by Eric Blake.
47020
47021 2009-01-24  Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47024         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47025         Reported by Gary V. Vaughan <gary@gnu.org>.
47026
47027 2009-01-24  Bruno Haible  <bruno@clisp.org>
47028
47029         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47030
47031 2009-01-23  Bruno Haible  <bruno@clisp.org>
47032
47033         Make c-strtod, c-strtold usable in libraries.
47034         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47035         (C_STRTOD): Call strdup instead of xstrdup.
47036         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47037         * modules/c-strtold (Depends-on): Likewise.
47038         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47039         * NEWS: Mention the change.
47040         Reported by Michael Gold <mgold@ncf.ca>.
47041
47042 2009-01-23  Jim Meyering  <meyering@redhat.com>
47043
47044         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47045         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47046         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47047
47048 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47049
47050         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47051         GNU CoreUtils.
47052         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47053         * modules/version-etc (Description): Update.
47054
47055 2009-01-22  Bruno Haible  <bruno@clisp.org>
47056
47057         Cache the C locale object.
47058         * lib/c-strtod.c (c_locale_cache): New variable.
47059         (c_locale): New function.
47060         (C_STRTOD): Use it, and don't call freelocale.
47061         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47062         Suggested by Paolo Bonzini.
47063
47064 2009-01-21  Bruno Haible  <bruno@clisp.org>
47065
47066         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47067         conditions other than overflow.
47068
47069 2009-01-21  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/c-strtod.c: Include errno.h.
47072         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47073         value from STRTOD_L and STRTOD.
47074
47075 2009-01-21  Bruno Haible  <bruno@clisp.org>
47076         and Jim Meyering  <meyering@redhat.com>
47077
47078         nanosleep: skip configure test (fail it) for apple universal builds
47079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47080         universal builds, assume that nanosleep does not work.
47081         * modules/nanosleep (Depends-on): Add multiarch.
47082
47083         mktime: skip configure test (fail it) for apple universal builds
47084         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47085         universal builds, assume that mktime does not work.
47086         * modules/mktime (Depends-on): Add multiarch.
47087
47088 2009-01-21  Eric Blake  <ebb9@byu.net>
47089
47090         multiarch: avoid expand-before-require warning
47091         * modules/multiarch (configure.ac): Require, rather than expand,
47092         gl_MULTIARCH.
47093         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47094         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47095         enforce that all clients require it.  Partial reversion of
47096         2008-12-29 patch.
47097
47098         error: avoid expand-before-require warning
47099         * modules/errno (configure.ac): Require, rather than expand,
47100         gl_HEADER_ERRNO_H.
47101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47102         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47103         enforce that all clients require it.
47104
47105         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47106         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47107         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47108         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47109
47110 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47111
47112         Revert:
47113         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47114
47115         regex: do not depend on obsolete modules.
47116         * modules/regex: Remove memcmp and memmove.
47117
47118 2009-01-20  Bruno Haible  <bruno@clisp.org>
47119
47120         Make the 'link' module link on Windows NT 4.
47121         * lib/link.c (_WIN32_WINNT): Don't define.
47122         (CreateHardLinkFuncType): New type.
47123         (CreateHardLinkFunc, initialized): New variables.
47124         (initialize): New function.
47125         (link): Invoke CreateHardLink indirectly through the function pointer.
47126
47127 2009-01-20  Bruno Haible  <bruno@clisp.org>
47128
47129         Fix compilation failure on mingw.
47130         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47131
47132 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47133
47134         * doc/c-strtod.texi: Mention a couple of restrictions.
47135
47136 2009-01-20  Jim Meyering  <meyering@redhat.com>
47137
47138         gettimeofday: move more declarations out of functions
47139         * lib/gettimeofday.c: Move extern declarations of tzset and
47140         gmtime out of containing functions.  Prompted by Bruno Haible.
47141
47142 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47143
47144         regex: do not depend on obsolete modules.
47145         * modules/regex: Remove memcmp and memmove.
47146
47147 2009-01-19  Bruno Haible  <bruno@clisp.org>
47148
47149         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47150         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47151         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47152         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47153         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47154
47155 2009-01-19  Bruno Haible  <bruno@clisp.org>
47156
47157         * tests/test-link.c: Include <errno.h>.
47158         (main): Exit with code 77 when a hard link cannot be created due to
47159         the file system.
47160         * tests/test-link.sh: Skip test when a hard link cannot be created due
47161         to the file system.
47162         Suggested by Eric Blake.
47163
47164 2009-01-19  Martin Lambers  <marlam@marlam.de>
47165
47166         * modules/link-tests: New file.
47167         * tests/test-link.sh: New file.
47168         * tests/test-link.c: New file.
47169
47170 2009-01-19  Eric Blake  <ebb9@byu.net>
47171
47172         doc: mention another function added in cygwin 1.7.0
47173         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47174         Another new function in cygwin 1.7.
47175
47176 2009-01-19  Bruno Haible  <bruno@clisp.org>
47177
47178         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47179         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47180         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47181         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47182         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47183         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47184         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47185         * m4/md4.m4 (gl_MD4): Likewise.
47186         * m4/md5.m4 (gl_MD5): Likewise.
47187         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47188         * m4/sha1.m4 (gl_SHA1): Likewise.
47189         * m4/sha256.m4 (gl_SHA256): Likewise.
47190         * m4/sha512.m4 (gl_SHA512): Likewise.
47191
47192 2009-01-19  Bruno Haible  <bruno@clisp.org>
47193
47194         * modules/uniname/uniname-tests (Depends-on): Add progname.
47195         * tests/uniname/test-uninames.c: Include progname.h.
47196         (main): Call set_program_name.
47197
47198         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47199         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47200         (main): Call set_program_name.
47201
47202         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47203         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47204         (main): Call set_program_name.
47205
47206         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47207         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47208         (main): Call set_program_name.
47209
47210         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47211         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47212         (main): Call set_program_name.
47213
47214         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47215         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47216         (main): Call set_program_name.
47217
47218         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47219         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47220         (main): Call set_program_name.
47221
47222         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47223         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47224         (main): Call set_program_name.
47225
47226         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47227         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47228         (main): Call set_program_name.
47229
47230 2009-01-19  Eric Blake  <ebb9@byu.net>
47231
47232         test-unistd: test previous patch
47233         * tests/test-unistd.c: Test *_FILENO macros.
47234
47235         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47236         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47237         Guarantee a definition.
47238         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47239         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47240         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47241         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47242         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47243         Likewise.
47244         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47245         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47246         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47247         Likewise.
47248         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47249         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47250         (STDERR_FILENO): Likewise.
47251         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47252         (STDERR_FILENO): Likewise.
47253         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47254         (STDERR_FILENO): Likewise.
47255         Reported by Elbert Pol.
47256
47257 2009-01-19  Eric Blake  <ebb9@byu.net>
47258
47259         doc: mention more functions added in cygwin 1.7.0
47260         * doc/posix-functions/abort.texi (abort): Update wording related
47261         to cygwin.
47262         * doc/posix-functions/daylight.texi (daylight): Likewise.
47263         * doc/posix-functions/optarg.texi (optarg): Likewise.
47264         * doc/posix-functions/optarg.texi (opterr): Likewise.
47265         * doc/posix-functions/optarg.texi (optind): Likewise.
47266         * doc/posix-functions/optarg.texi (optopt): Likewise.
47267         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47268         worked in 1.5.x, and was withdrawn in 1.7.
47269         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47270         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47271         cygwin versions.
47272         * doc/posix-functions/perror.texi (perror): Likewise.
47273         * doc/posix-functions/printf.texi (printf): Likewise.
47274         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47275         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47276         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47277         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47278         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47279         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47280         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47281         Likewise.
47282         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47283         Likewise.
47284         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47285         this function.
47286         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47287         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47288         Likewise.
47289         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47290         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47291         * doc/posix-functions/confstr.texi (confstr): Likewise.
47292         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47293         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47294         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47295         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47296         * doc/posix-functions/fputws.texi (fputws): Likewise.
47297         * doc/posix-functions/fwide.texi (fwide): Likewise.
47298         * doc/posix-functions/getwc.texi (getwc): Likewise.
47299         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47300         * doc/posix-functions/putwc.texi (putwc): Likewise.
47301         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47302         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47303         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47304         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47305         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47306         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47307         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47308         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47309         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47310         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47311         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47312
47313 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47314
47315         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47316         * lib/ioctl.c: Include <sys/ioctl.h>.
47317
47318 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47319
47320         * modules/getdate-tests (Depends-on): Add progname.
47321         * tests/test-getdate.c: Use progname module, to avoid link errors
47322         on non-glibc systems.
47323
47324 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47325
47326         * modules/filenamecat-tests (Depends-on): Add progname.
47327         * modules/fstrcmp-tests (Depends-on): Likewise.
47328
47329         * tests/test-filenamecat.c: Use progname module, to avoid link
47330         errors on non-glibc systems.
47331         * tests/test-fstrcmp.c: Likewise.
47332
47333 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47334
47335         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47336         * lib/gettimeofday.c: Move extern declaration out of function.
47337
47338 2009-01-18  Bruno Haible  <bruno@clisp.org>
47339
47340         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47341         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47342         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47343
47344 2009-01-18  Bruno Haible  <bruno@clisp.org>
47345
47346         * lib/strftime.c (MEMPCPY): Remove unused macro.
47347         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47348
47349 2009-01-18  Martin Lambers  <marlam@marlam.de>
47350
47351         New module 'link'.
47352         * lib/unistd.in.h (link): New declaration.
47353         * lib/link.c: New file.
47354         * m4/link.m4: New file.
47355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47356         HAVE_LINK.
47357         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47358         * modules/link: New file.
47359         * doc/posix-functions/link.texi: Mention the new module.
47360
47361 2009-01-18  Bruno Haible  <bruno@clisp.org>
47362
47363         * tests/test-avltree_list.c (main): Call set_program_name.
47364         * tests/test-avltree_oset.c (main): Likewise.
47365         * tests/test-obstack-printf.c: Include progname.h.
47366         (main): Call set_program_name.
47367         * tests/test-quotearg.c: Include progname.h.
47368         (main): Call set_program_name.
47369         * tests/test-xmemdup0.c: Include progname.h.
47370         (main): Call set_program_name.
47371
47372 2009-01-18  Bruno Haible  <bruno@clisp.org>
47373
47374         New module 'alphasort'.
47375         * lib/dirent.in.h (alphasort): New declaration.
47376         * lib/alphasort.c: New file, from glibc with modifications.
47377         * m4/alphasort.m4: New file.
47378         * modules/alphasort: New file.
47379         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47380         HAVE_ALPHASORT.
47381         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47382         HAVE_ALPHASORT.
47383         * doc/posix-functions/alphasort.texi: Mention the new module and the
47384         portability problems.
47385
47386 2009-01-18  Bruno Haible  <bruno@clisp.org>
47387
47388         New module 'scandir'.
47389         * lib/dirent.in.h (scandir): New declaration.
47390         * lib/scandir.c: New file, from glibc with modifications.
47391         * m4/scandir.m4: New file.
47392         * modules/scandir: New file.
47393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47394         HAVE_SCANDIR.
47395         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47396         HAVE_SCANDIR.
47397         * doc/posix-functions/scandir.texi: Mention the new module and the
47398         portability problems.
47399
47400 2009-01-17  Bruno Haible  <bruno@clisp.org>
47401
47402         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47403         Update documentation.
47404         (func_remove_suffix): Escape all dots in the suffix. Update
47405         documentation.
47406         (func_filter_filelist): Update documentation.
47407         Reported by Ralf Wildenhues.
47408
47409 2009-01-17  Bruno Haible  <bruno@clisp.org>
47410
47411         * modules/dprintf-posix-tests: New file.
47412         * tests/test-dprintf-posix.sh: New file.
47413         * tests/test-dprintf-posix.c: New file.
47414
47415         New modules 'dprintf', 'dprintf-posix'.
47416         * lib/stdio.in.h (dprintf): New declaration.
47417         * lib/dprintf.c: New file.
47418         * m4/dprintf.m4: New file.
47419         * m4/dprintf-posix.m4: New file.
47420         * modules/dprintf: New file.
47421         * modules/dprintf-posix: New file.
47422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47423         HAVE_DPRINTF, REPLACE_DPRINTF.
47424         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47425         HAVE_DPRINTF, REPLACE_DPRINTF.
47426         * doc/posix-functions/dprintf.texi: Mention the new modules.
47427
47428 2009-01-17  Bruno Haible  <bruno@clisp.org>
47429
47430         * modules/vdprintf-posix-tests: New file.
47431         * tests/test-vdprintf-posix.sh: New file.
47432         * tests/test-vdprintf-posix.c: New file.
47433
47434         New modules 'vdprintf', 'vdprintf-posix'.
47435         * lib/stdio.in.h (vdprintf): New declaration.
47436         * lib/vdprintf.c: New file.
47437         * m4/vdprintf.m4: New file.
47438         * m4/vdprintf-posix.m4: New file.
47439         * modules/vdprintf: New file.
47440         * modules/vdprintf-posix: New file.
47441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47442         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47443         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47444         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47445         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47446
47447 2009-01-17  Bruno Haible  <bruno@clisp.org>
47448
47449         Fix replacement of fopen on mingw.
47450         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47451         mingw.
47452
47453 2009-01-17  Bruno Haible  <bruno@clisp.org>
47454
47455         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47456         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47457
47458 2009-01-17  Bruno Haible  <bruno@clisp.org>
47459
47460         Avoid test-fflush2.sh failure on mingw.
47461         * tests/test-fflush2.c: Include binary-io.h.
47462         (main): Put standard input into binary mode.
47463         * modules/fflush-tests (Depends-on): Add binary-io.
47464
47465 2009-01-17  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/wchar.in.h: In another particular situation, include only the
47468         system's <wchar.h> file.
47469         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47470         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47471         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47472
47473 2009-01-17  Bruno Haible  <bruno@clisp.org>
47474
47475         Support for stripping executables in --enable-relocatable.
47476         * build-aux/install-reloc: Expect one more argument, or an environment
47477         variable RELOC_STRIP_PROG. If set, strip the destination program and
47478         its wrapper.
47479         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47480         RELOC_STRIP_PROG.
47481         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47482         to set RELOCATABLE_STRIP.
47483         * NEWS: Mention the new Makefile requirement.
47484
47485 2009-01-17  Bruno Haible  <bruno@clisp.org>
47486
47487         * build-aux/install-reloc: Remove debugging information left over by
47488         C compiler on MacOS X.
47489
47490 2009-01-17  Bruno Haible  <bruno@clisp.org>
47491
47492         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47493         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47494         _NSGetExecutablePath.
47495
47496 2009-01-16  Jim Meyering  <meyering@redhat.com>
47497
47498         strerror: avoid warnings about discarding "const"
47499         * lib/strerror.c (rpl_strerror): Instead of returning a const
47500         string from each and every "case", use a variable, and add a single
47501         cast after the switch.
47502
47503 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47504
47505         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47506
47507 2009-01-16  Bruno Haible  <bruno@clisp.org>
47508
47509         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47510         array initializer syntax that also works in C++ mode.
47511         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47512
47513 2009-01-16  Jim Meyering  <meyering@redhat.com>
47514
47515         poll: suppress a warning
47516         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47517         to ignore "...unsigned expression < 0 is always false" warnings.
47518
47519 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47520
47521         poll: remove declarations of unused variables
47522         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47523         sockbuf and optlen.
47524
47525 2009-01-15  Bruno Haible  <bruno@clisp.org>
47526
47527         Make fflush-after-ungetc POSIX compliant on BSD systems.
47528         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47529         (clear_ungetc_buffer): Implement also for other systems.
47530         (rpl_fflush): On glibc systems, invoke
47531         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47532         clear_ungetc_buffer after fetching the stream's position, not before.
47533
47534 2009-01-15  Bruno Haible  <bruno@clisp.org>
47535
47536         Make fflush-after-ungetc POSIX compliant on glibc systems.
47537         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47538         after ungetc.
47539         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47540         (rpl_fflush): On glibc systems, simply call the system's fflush
47541         function after clearing the ungetc buffer.
47542         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47543         Instead, lseek only to the end of file, then use the system's fseeko
47544         for the rest. On glibc systems, reset the EOF indicator bit.
47545
47546 2009-01-15  Jim Meyering  <meyering@redhat.com>
47547
47548         openmp.m4: revert quote-adding change, for portability to older autoconf
47549         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47550         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47551         Simon Josefsson noticed the problem when using autoconf-2.61.
47552
47553 2009-01-15  Bruno Haible  <bruno@clisp.org>
47554
47555         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47556         * tests/test-fflush2.c (ASSERT): Always fail.
47557         (main): Add two tests for fflush() after ungetc(), taking into account
47558         the Austin Group's clarification.
47559         Suggested by Eric Blake.
47560
47561 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47562
47563         mktime.m4: remove K&R-style function prototypes
47564         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47565         for the Sun C++ compiler.
47566
47567 2009-01-14  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47570         while including <wchar.h>.
47571         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47572         the system's <wchar.h> file.
47573         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47574
47575 2009-01-14  Bruno Haible  <bruno@clisp.org>
47576
47577         * m4/csharp.m4: Don't mention gettext on the serial number line.
47578         * m4/csharpexec.m4: Likewise.
47579         * m4/eaccess.m4: Likewise.
47580         * m4/javaexec.m4: Likewise.
47581         * m4/sig_atomic_t.m4: Likewise.
47582         * m4/tmpdir.m4: Likewise.
47583         * m4/intldir.m4: Bump gettext version.
47584         * m4/lib-ld.m4: Likewise.
47585
47586 2009-01-14  Bruno Haible  <bruno@clisp.org>
47587
47588         * lib/progname.c (set_program_name): Add more comments.
47589         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47590
47591 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47592
47593         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47594         were sys/stat.h does not define it.
47595
47596 2009-01-14  Jim Meyering  <meyering@redhat.com>
47597
47598         many *.m4 files: improve m4 quoting
47599         99% of this change was performed by running the following commands:
47600         git ls-files | grep '\.m4$' | xargs perl -pi \
47601           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47602           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47603           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47604           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47605         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47606         The remainder were to add Copyright dates, increment serial numbers,
47607         undo some changes in comments, exclude m4/intl.m4, and add quotes
47608         around the "1" in ",1" where the unusual spacing prohibited the
47609         above regexps from doing the job.  For more details, see
47610         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47611         * m4/acl.m4: Modified.
47612         * m4/afs.m4: Likewise.
47613         * m4/alloca.m4: Likewise.
47614         * m4/argp.m4: Likewise.
47615         * m4/argz.m4: Likewise.
47616         * m4/atexit.m4: Likewise.
47617         * m4/bison-i18n.m4: Likewise.
47618         * m4/bison.m4: Likewise.
47619         * m4/byteswap.m4: Likewise.
47620         * m4/c-stack.m4: Likewise.
47621         * m4/c-strtod.m4: Likewise.
47622         * m4/calloc.m4: Likewise.
47623         * m4/canonicalize-lgpl.m4: Likewise.
47624         * m4/chown.m4: Likewise.
47625         * m4/clock_time.m4: Likewise.
47626         * m4/codeset.m4: Likewise.
47627         * m4/copy-file.m4: Likewise.
47628         * m4/csharp.m4: Likewise.
47629         * m4/csharpcomp.m4: Likewise.
47630         * m4/csharpexec.m4: Likewise.
47631         * m4/d-ino.m4: Likewise.
47632         * m4/d-type.m4: Likewise.
47633         * m4/dirfd.m4: Likewise.
47634         * m4/double-slash-root.m4: Likewise.
47635         * m4/eaccess.m4: Likewise.
47636         * m4/eealloc.m4: Likewise.
47637         * m4/environ.m4: Likewise.
47638         * m4/errno_h.m4: Likewise.
47639         * m4/euidaccess.m4: Likewise.
47640         * m4/execute.m4: Likewise.
47641         * m4/fatal-signal.m4: Likewise.
47642         * m4/fchdir.m4: Likewise.
47643         * m4/fcntl_h.m4: Likewise.
47644         * m4/fileblocks.m4: Likewise.
47645         * m4/filenamecat.m4: Likewise.
47646         * m4/findprog.m4: Likewise.
47647         * m4/flexmember.m4: Likewise.
47648         * m4/fnmatch.m4: Likewise.
47649         * m4/fopen.m4: Likewise.
47650         * m4/fpending.m4: Likewise.
47651         * m4/fprintf-posix.m4: Likewise.
47652         * m4/free.m4: Likewise.
47653         * m4/frexp.m4: Likewise.
47654         * m4/frexpl.m4: Likewise.
47655         * m4/fsusage.m4: Likewise.
47656         * m4/ftruncate.m4: Likewise.
47657         * m4/gc-camellia.m4: Likewise.
47658         * m4/gc-random.m4: Likewise.
47659         * m4/gc.m4: Likewise.
47660         * m4/getaddrinfo.m4: Likewise.
47661         * m4/getcwd-abort-bug.m4: Likewise.
47662         * m4/getcwd-path-max.m4: Likewise.
47663         * m4/getdate.m4: Likewise.
47664         * m4/getdomainname.m4: Likewise.
47665         * m4/getgroups.m4: Likewise.
47666         * m4/gethostname.m4: Likewise.
47667         * m4/gethrxtime.m4: Likewise.
47668         * m4/getline.m4: Likewise.
47669         * m4/getloadavg.m4: Likewise.
47670         * m4/getndelim2.m4: Likewise.
47671         * m4/getpass.m4: Likewise.
47672         * m4/gettext.m4: Likewise.
47673         * m4/gettime.m4: Likewise.
47674         * m4/gettimeofday.m4: Likewise.
47675         * m4/gnulib-common.m4: Likewise.
47676         * m4/group-member.m4: Likewise.
47677         * m4/host-os.m4: Likewise.
47678         * m4/iconv.m4: Likewise.
47679         * m4/iconv_open.m4: Likewise.
47680         * m4/inet_ntop.m4: Likewise.
47681         * m4/inet_pton.m4: Likewise.
47682         * m4/inline.m4: Likewise.
47683         * m4/intldir.m4: Likewise.
47684         * m4/intlmacosx.m4: Likewise.
47685         * m4/intmax.m4: Likewise.
47686         * m4/intmax_t.m4: Likewise.
47687         * m4/inttypes.m4: Likewise.
47688         * m4/inttypes_h.m4: Likewise.
47689         * m4/inttypes-pri.m4: Likewise.
47690         * m4/isapipe.m4: Likewise.
47691         * m4/isnand.m4: Likewise.
47692         * m4/isnanf.m4: Likewise.
47693         * m4/isnanl.m4: Likewise.
47694         * m4/javacomp.m4: Likewise.
47695         * m4/javaexec.m4: Likewise.
47696         * m4/jm-winsz1.m4: Likewise.
47697         * m4/jm-winsz2.m4: Likewise.
47698         * m4/lchown.m4: Likewise.
47699         * m4/lcmessage.m4: Likewise.
47700         * m4/ldexpl.m4: Likewise.
47701         * m4/lib-ld.m4: Likewise.
47702         * m4/lib-link.m4: Likewise.
47703         * m4/libsigsegv.m4: Likewise.
47704         * m4/link-follow.m4: Likewise.
47705         * m4/localcharset.m4: Likewise.
47706         * m4/locale-fr.m4: Likewise.
47707         * m4/locale-ja.m4: Likewise.
47708         * m4/locale-tr.m4: Likewise.
47709         * m4/locale-zh.m4: Likewise.
47710         * m4/lock.m4: Likewise.
47711         * m4/longlong.m4: Likewise.
47712         * m4/ls-mntd-fs.m4: Likewise.
47713         * m4/lstat.m4: Likewise.
47714         * m4/malloc.m4: Likewise.
47715         * m4/mathl.m4: Likewise.
47716         * m4/mbrtowc.m4: Likewise.
47717         * m4/mbstate_t.m4: Likewise.
47718         * m4/mbswidth.m4: Likewise.
47719         * m4/memchr.m4: Likewise.
47720         * m4/memcmp.m4: Likewise.
47721         * m4/memcpy.m4: Likewise.
47722         * m4/memmem.m4: Likewise.
47723         * m4/memmove.m4: Likewise.
47724         * m4/mempcpy.m4: Likewise.
47725         * m4/memrchr.m4: Likewise.
47726         * m4/memset.m4: Likewise.
47727         * m4/minmax.m4: Likewise.
47728         * m4/mkdir-slash.m4: Likewise.
47729         * m4/mkdtemp.m4: Likewise.
47730         * m4/mktime.m4: Likewise.
47731         * m4/mmap-anon.m4: Likewise.
47732         * m4/mountlist.m4: Likewise.
47733         * m4/nanosleep.m4: Likewise.
47734         * m4/nls.m4: Likewise.
47735         * m4/nocrash.m4: Likewise.
47736         * m4/open.m4: Likewise.
47737         * m4/openat.m4: Likewise.
47738         * m4/openmp.m4: Likewise.
47739         * m4/pathmax.m4: Likewise.
47740         * m4/perl.m4: Likewise.
47741         * m4/physmem.m4: Likewise.
47742         * m4/pipe.m4: Likewise.
47743         * m4/po.m4: Likewise.
47744         * m4/poll.m4: Likewise.
47745         * m4/posixtm.m4: Likewise.
47746         * m4/posixver.m4: Likewise.
47747         * m4/printf-frexp.m4: Likewise.
47748         * m4/printf-frexpl.m4: Likewise.
47749         * m4/printf-posix.m4: Likewise.
47750         * m4/printf-posix-rpl.m4: Likewise.
47751         * m4/printf.m4: Likewise.
47752         * m4/progtest.m4: Likewise.
47753         * m4/putenv.m4: Likewise.
47754         * m4/readline.m4: Likewise.
47755         * m4/readlink.m4: Likewise.
47756         * m4/readutmp.m4: Likewise.
47757         * m4/realloc.m4: Likewise.
47758         * m4/regex.m4: Likewise.
47759         * m4/relocatable.m4: Likewise.
47760         * m4/relocatable-lib.m4: Likewise.
47761         * m4/rename-dest-slash.m4: Likewise.
47762         * m4/rename.m4: Likewise.
47763         * m4/rmdir-errno.m4: Likewise.
47764         * m4/rmdir.m4: Likewise.
47765         * m4/roundf.m4: Likewise.
47766         * m4/roundl.m4: Likewise.
47767         * m4/rpmatch.m4: Likewise.
47768         * m4/save-cwd.m4: Likewise.
47769         * m4/selinux-selinux-h.m4: Likewise.
47770         * m4/setenv.m4: Likewise.
47771         * m4/settime.m4: Likewise.
47772         * m4/sig2str.m4: Likewise.
47773         * m4/sig_atomic_t.m4: Likewise.
47774         * m4/signalblocking.m4: Likewise.
47775         * m4/signbit.m4: Likewise.
47776         * m4/sigpipe.m4: Likewise.
47777         * m4/sockets.m4: Likewise.
47778         * m4/sockpfaf.m4: Likewise.
47779         * m4/st_dm_mode.m4: Likewise.
47780         * m4/stat-time.m4: Likewise.
47781         * m4/stdbool.m4: Likewise.
47782         * m4/stdint.m4: Likewise.
47783         * m4/stdint_h.m4: Likewise.
47784         * m4/stpcpy.m4: Likewise.
47785         * m4/stpncpy.m4: Likewise.
47786         * m4/strcase.m4: Likewise.
47787         * m4/strchrnul.m4: Likewise.
47788         * m4/strcspn.m4: Likewise.
47789         * m4/strdup.m4: Likewise.
47790         * m4/strftime.m4: Likewise.
47791         * m4/strndup.m4: Likewise.
47792         * m4/strnlen.m4: Likewise.
47793         * m4/strpbrk.m4: Likewise.
47794         * m4/strptime.m4: Likewise.
47795         * m4/strsep.m4: Likewise.
47796         * m4/strtod.m4: Likewise.
47797         * m4/strtoimax.m4: Likewise.
47798         * m4/strtok_r.m4: Likewise.
47799         * m4/strtol.m4: Likewise.
47800         * m4/strtoll.m4: Likewise.
47801         * m4/strtoul.m4: Likewise.
47802         * m4/strtoull.m4: Likewise.
47803         * m4/strtoumax.m4: Likewise.
47804         * m4/strverscmp.m4: Likewise.
47805         * m4/threadlib.m4: Likewise.
47806         * m4/timegm.m4: Likewise.
47807         * m4/tm_gmtoff.m4: Likewise.
47808         * m4/tmpdir.m4: Likewise.
47809         * m4/tmpfile.m4: Likewise.
47810         * m4/tzset.m4: Likewise.
47811         * m4/uintmax_t.m4: Likewise.
47812         * m4/unlinkdir.m4: Likewise.
47813         * m4/unlocked-io.m4: Likewise.
47814         * m4/uptime.m4: Likewise.
47815         * m4/userspec.m4: Likewise.
47816         * m4/utimbuf.m4: Likewise.
47817         * m4/utime.m4: Likewise.
47818         * m4/utimes-null.m4: Likewise.
47819         * m4/utimes.m4: Likewise.
47820         * m4/vararrays.m4: Likewise.
47821         * m4/vasnprintf.m4: Likewise.
47822         * m4/vfprintf-posix.m4: Likewise.
47823         * m4/vprintf-posix.m4: Likewise.
47824         * m4/wait-process.m4: Likewise.
47825         * m4/wchar_t.m4: Likewise.
47826         * m4/wint_t.m4: Likewise.
47827         * m4/write-any-file.m4: Likewise.
47828         * m4/yield.m4: Likewise.
47829
47830 2009-01-13  Bruno Haible  <bruno@clisp.org>
47831
47832         Avoid test-copy-file.sh failures when ACL support insufficient.
47833         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47834         TESTS_ENVIRONMENT.
47835         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47836         Reported by Jim Meyering.
47837
47838 2009-01-13  Bruno Haible  <bruno@clisp.org>
47839
47840         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47841         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47842         * modules/unistdio/u8-printf-parse (Files): Likewise.
47843         * modules/unistdio/u32-printf-parse (Files): Likewise.
47844         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47845
47846 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47847
47848         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47849         and m4/inttypes_h.m4 too.
47850
47851 2009-01-12  Eric Blake  <ebb9@byu.net>
47852
47853         tests: IRIX 6.2 cc can't compile -0.0 into .data
47854         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47855         rather than at compile-time.
47856         * tests/test-floorl.c (minus_zero): Likewise.
47857         * tests/test-frexpl.c (minus_zero): Likewise.
47858         * tests/test-isnan.c (minus_zerol): Likewise.
47859         * tests/test-isnanl.h (minus_zero): Likewise.
47860         * tests/test-ldexpl.c (minus_zero): Likewise.
47861         * tests/test-roundl.c (minus_zero): Likewise.
47862         * tests/test-signbit.c (minus_zerol): Likewise.
47863         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47864         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47865         * tests/test-truncl.c (minus_zero): Likewise.
47866         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47867         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47868         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47869
47870 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47871
47872         regex: fix glibc bug 9697
47873         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47874         handling.
47875
47876 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47877
47878         regex: fix glibc bug 697
47879         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47880         being NULL also if there are no backreferences.
47881
47882 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47883
47884         regex: merge glibc changes
47885         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47886         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47887         re_string_skip_chars, re_string_reconstruct): Likewise.
47888         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47889
47890 2009-01-07  Jim Meyering  <meyering@redhat.com>
47891
47892         poll: filter through cppi
47893         * lib/poll.c: Indent cpp directives to reflect nesting.
47894
47895 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47896
47897         poll: don't return uninitialized
47898         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47899
47900 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47901
47902         avoid compile failure on AIX 6.1
47903         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47904         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47905
47906 2009-01-04  Jim Meyering  <meyering@redhat.com>
47907
47908         remove duplicate inclusion of <stdio.h>
47909         * tests/test-fprintf-posix.c: Likewise.
47910         * tests/test-printf-posix.c: Likewise.
47911         * tests/test-snprintf-posix.c: Likewise.
47912         * tests/test-sprintf-posix.c: Likewise.
47913         * tests/test-vasprintf-posix.c: Likewise.
47914         * tests/test-vfprintf-posix.c: Likewise.
47915         * tests/test-vprintf-posix.c: Likewise.
47916         * tests/test-vsnprintf-posix.c: Likewise.
47917         * tests/test-vsprintf-posix.c: Likewise.
47918
47919 2009-01-03  Jim Meyering  <meyering@redhat.com>
47920
47921         gnulib-tool: fix sed-based filtering
47922         * gnulib-tool (func_filter_filelist): Remove extra backslash
47923         in sed_fff_filter definition.
47924
47925 2009-01-02  Jim Meyering  <meyering@redhat.com>
47926
47927         strftime: avoid compilation failure on Solaris 2.6
47928         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47929         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47930         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47931         be available.  Reported by Tom G. Christensen.  Details in
47932         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47933
47934 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47935             Bruno Haible  <bruno@clisp.org>
47936
47937         Speed up gnulib-tool by doing more string processing through shell
47938         built-ins.
47939         * gnulib-tool (fast_func_append): New variable.
47940         (func_remove_prefix, func_remove_suffix): New functions.
47941         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47942         (func_filter_filelist): New function.
47943         (func_get_dependencies): Use func_remove_suffix instead of sed.
47944         (func_get_automake_snippet): Use func_filter_filelist instead of a
47945         subshell and sed invocation.
47946
47947 2009-01-01  Bruno Haible  <bruno@clisp.org>
47948
47949         Fix a security bug.
47950         * gnulib-tool (func_import, import, update): Don't allow the characters
47951         '"', '$', '`', '\' in macro arguments that become part of commands that
47952         are evaluated.
47953
47954 2009-01-01  Bruno Haible  <bruno@clisp.org>
47955
47956         * gnulib-tool (func_reset_sigpipe): Add more comments.
47957
47958 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47959
47960         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47961         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47962         already know the answer.
47963
47964 2009-01-01  Jim Meyering  <meyering@redhat.com>
47965
47966         * lib/version-etc.c (version_etc_va): Update copyright year.
47967
47968 2008-12-30  Bruno Haible  <bruno@clisp.org>
47969
47970         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47971         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47972         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47973
47974 2008-12-29  Eric Blake  <ebb9@byu.net>
47975
47976         multiarch: avoid autoconf AC_REQUIRE bug
47977         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47978         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47979         2.63 and older.
47980         Reported by Bruno Haible, and analyzed in
47981         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47982
47983 2008-12-29  Bruno Haible  <bruno@clisp.org>
47984
47985         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47986         files in subdirectories correctly.
47987         Reported by Ralf Wildenhues.
47988
47989 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47990
47991         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47992         rather than 'join FILE -', for Solaris join.
47993
47994 2008-12-29  Bruno Haible  <bruno@clisp.org>
47995
47996         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47997         quoting.
47998         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47999         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48000         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48001         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48002         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48003         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48004         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48005         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48006         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48007         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48008         * m4/nls.m4 (AM_NLS): Likewise.
48009         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48010         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48011         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48012         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48013         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48014         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48015         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48016         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48017         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48018         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48019         * m4/xsize.m4 (gl_XSIZE): Likewise.
48020         Suggested by Jim Meyering.
48021
48022 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48023
48024         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48025         * lib/parse-duration.c: use a switch instead of cascading if's.
48026
48027 2008-12-29  Eric Blake  <ebb9@byu.net>
48028
48029         wchar.h: supply WEOF on Irix 5.3
48030         * lib/wchar.in.h (wint_t): Also supply WEOF.
48031         * lib/wctype.in.h (wint_t): Likewise.
48032         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48033         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48034         Reported by Tom G. Christensen.
48035
48036 2008-12-26  Bruno Haible  <bruno@clisp.org>
48037
48038         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48039         i486, i586, i686.
48040
48041 2008-12-26  Bruno Haible  <bruno@clisp.org>
48042
48043         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48044
48045 2008-12-26  Bruno Haible  <bruno@clisp.org>
48046
48047         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48048         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48049         not __STDC_CONSTANT_MACROS.
48050         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48051
48052 2008-12-25  Bruno Haible  <bruno@clisp.org>
48053
48054         Add support for universal builds to vasnprintf.
48055         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48056         universal builds, guess no.
48057         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48058         * modules/vasprintf-posix (Depends-on): Likewise.
48059         * modules/fprintf-posix (Depends-on): Likewise.
48060         * modules/vfprintf-posix (Depends-on): Likewise.
48061         * modules/snprintf-posix (Depends-on): Likewise.
48062         * modules/vsnprintf-posix (Depends-on): Likewise.
48063         * modules/sprintf-posix (Depends-on): Likewise.
48064         * modules/vsprintf-posix (Depends-on): Likewise.
48065         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48066         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48067         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48068         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48069         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48070         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48071         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48072
48073         Add support for universal builds to <inttypes.h>.
48074         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48075         _SCNu64_PREFIX): In Apple
48076         universal builds, define directly, using _LP64.
48077         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48078         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48079         * modules/inttypes (Depends-on): Add multiarch.
48080         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48081
48082         Add support for universal builds to <stdint.h>.
48083         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48084         universal builds, define directly, using _LP64.
48085         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48086         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48087         and size_t.
48088         * modules/stdint (Depends-on): Add multiarch.
48089         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48090
48091         New module 'multiarch'.
48092         * modules/multiarch: New file.
48093         * m4/multiarch.m4: New file.
48094
48095 2008-12-25  Bruno Haible  <bruno@clisp.org>
48096
48097         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48098
48099 2008-12-25  Bruno Haible  <bruno@clisp.org>
48100
48101         * modules/btowc (License): Relicense under LGPLv2+.
48102         * modules/mbsinit (License): Likewise.
48103         * modules/mbrtowc (License): Likewise.
48104         * modules/wcrtomb (License): Likewise.
48105         * modules/streq (License): Likewise.
48106         Reported by David Lutterkort <lutter@redhat.com>.
48107
48108 2008-12-23  Bruno Haible  <bruno@clisp.org>
48109
48110         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48111
48112 2008-12-23  Bruno Haible  <bruno@clisp.org>
48113
48114         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48116         GETADDRINFO_LIB, not in LIBS.
48117         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48118         * modules/canon-host (Link): Likewise.
48119         * NEWS: Mention the change.
48120         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48121         GETADDRINFO_LIB.
48122
48123 2008-12-22  Bruno Haible  <bruno@clisp.org>
48124
48125         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48126         * doc/posix-functions/iswalpha_l.texi: Likewise.
48127         * doc/posix-functions/iswblank_l.texi: Likewise.
48128         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48129         * doc/posix-functions/iswctype_l.texi: Likewise.
48130         * doc/posix-functions/iswdigit_l.texi: Likewise.
48131         * doc/posix-functions/iswgraph_l.texi: Likewise.
48132         * doc/posix-functions/iswlower_l.texi: Likewise.
48133         * doc/posix-functions/iswprint_l.texi: Likewise.
48134         * doc/posix-functions/iswpunct_l.texi: Likewise.
48135         * doc/posix-functions/iswspace_l.texi: Likewise.
48136         * doc/posix-functions/iswupper_l.texi: Likewise.
48137         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48138         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48139         * doc/posix-functions/open_wmemstream.texi: Likewise.
48140         * doc/posix-functions/swscanf.texi: Likewise.
48141         * doc/posix-functions/towctrans_l.texi: Likewise.
48142         * doc/posix-functions/towlower.texi: Likewise.
48143         * doc/posix-functions/towlower_l.texi: Likewise.
48144         * doc/posix-functions/towupper.texi: Likewise.
48145         * doc/posix-functions/towupper_l.texi: Likewise.
48146         * doc/posix-functions/vfwprintf.texi: Likewise.
48147         * doc/posix-functions/vfwscanf.texi: Likewise.
48148         * doc/posix-functions/vswscanf.texi: Likewise.
48149         * doc/posix-functions/vwprintf.texi: Likewise.
48150         * doc/posix-functions/vwscanf.texi: Likewise.
48151         * doc/posix-functions/wcpcpy.texi: Likewise.
48152         * doc/posix-functions/wcpncpy.texi: Likewise.
48153         * doc/posix-functions/wcscasecmp.texi: Likewise.
48154         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48155         * doc/posix-functions/wcscoll_l.texi: Likewise.
48156         * doc/posix-functions/wcsdup.texi: Likewise.
48157         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48158         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48159         * doc/posix-functions/wcsnlen.texi: Likewise.
48160         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48161         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48162         * doc/posix-functions/wctrans_l.texi: Likewise.
48163         * doc/posix-functions/wctype_l.texi: Likewise.
48164         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48165         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48166         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48167         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48168         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48169         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48170         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48171         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48172         * doc/glibc-functions/wcschrnul.texi: Likewise.
48173         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48174         * doc/glibc-functions/wcstod_l.texi: Likewise.
48175         * doc/glibc-functions/wcstof_l.texi: Likewise.
48176         * doc/glibc-functions/wcstol_l.texi: Likewise.
48177         * doc/glibc-functions/wcstold_l.texi: Likewise.
48178         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48179         * doc/glibc-functions/wcstoq.texi: Likewise.
48180         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48181         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48182         * doc/glibc-functions/wcstouq.texi: Likewise.
48183         * doc/glibc-functions/wmempcpy.texi: Likewise.
48184
48185 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48186             Eric Blake  <ebb9@byu.net>
48187             Paolo Bonzini  <bonzini@gnu.org>
48188             Bruno Haible  <bruno@clisp.org>
48189
48190         Make c-stack work on Haiku.
48191         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48192         (c_stack_action): Use SA_ONSTACK flag.
48193
48194 2008-12-22  Bruno Haible  <bruno@clisp.org>
48195
48196         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48197
48198 2008-12-22  Bruno Haible  <bruno@clisp.org>
48199
48200         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48201         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48202         being overridden.
48203         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48204         New macros.
48205         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48207         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48208         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48209
48210 2008-12-22  Bruno Haible  <bruno@clisp.org>
48211
48212         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48213         from test code.
48214
48215 2008-12-22  Eric Blake  <ebb9@byu.net>
48216
48217         Avoid gcc warnings on cygwin.
48218         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48219         Avoid unused variable.
48220         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48221         Likewise.
48222
48223 2008-12-22  Bruno Haible  <bruno@clisp.org>
48224
48225         Remove HAVE_MBRTOWC conditionals.
48226         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48227         (mbscasecmp): Assume mbrtowc function.
48228         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48229         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48230         * lib/mbschr.c: Include mbuiter.h unconditionally.
48231         (mbschr): Assume mbrtowc function.
48232         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48233         (mbscspn): Assume mbrtowc function.
48234         * lib/mbslen.c: Include mbuiter.h unconditionally.
48235         (mbslen): Assume mbrtowc function.
48236         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48237         (mbsncasecmp): Assume mbrtowc function.
48238         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48239         (mbsnlen): Assume mbrtowc function.
48240         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48241         (mbspbrk): Assume mbrtowc function.
48242         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48243         (mbspcasecmp): Assume mbrtowc function.
48244         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48245         (mbsrchr): Assume mbrtowc function.
48246         * lib/mbssep.c: Include mbuiter.h unconditionally.
48247         (mbssep): Assume mbrtowc function.
48248         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48249         (mbsspn): Assume mbrtowc function.
48250         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48251         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48252         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48253         (mbstok_r): Assume mbrtowc function.
48254         * lib/propername.c: Include mbuiter.h unconditionally.
48255         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48256         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48257         (trim2): Assume mbrtowc function.
48258         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48259         (mbsnwidth): Assume mbrtowc function.
48260         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48261         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48262         fallback definitions.
48263         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48264
48265 2008-12-22  Bruno Haible  <bruno@clisp.org>
48266
48267         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48268
48269 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48270
48271         * modules/regex: Request emulations for the mb*/wc* functions we need.
48272         * m4/regex.m4: Don't look for those functions here.
48273         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48274
48275 2008-12-22  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48278
48279 2008-12-21  Bruno Haible  <bruno@clisp.org>
48280
48281         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48282         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48283         (Include): Remove conditionalization.
48284         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48285         (Include): Remove conditionalization.
48286         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48287         (Include): Remove conditionalization.
48288         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48289         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48290         * NEWS: Mention the change.
48291         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48292         via Sergey Poznyakoff <gray@gnu.org.ua>.
48293
48294 2008-12-21  Bruno Haible  <bruno@clisp.org>
48295
48296         * MODULES.html.sh (Extended multibyte and wide character utilities
48297         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48298         wcrtomb, wcsrtombs.
48299         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48300         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48301         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48302         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48303
48304 2008-12-21  Bruno Haible  <bruno@clisp.org>
48305
48306         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48307
48308 2008-12-21  Bruno Haible  <bruno@clisp.org>
48309
48310         * modules/wcsnrtombs-tests: New file.
48311         * tests/test-wcsnrtombs1.sh: New file.
48312         * tests/test-wcsnrtombs2.sh: New file.
48313         * tests/test-wcsnrtombs3.sh: New file.
48314         * tests/test-wcsnrtombs4.sh: New file.
48315         * tests/test-wcsnrtombs.c: New file.
48316
48317         New module 'wcsnrtombs'.
48318         * lib/wchar.in.h (wcsnrtombs): New declaration.
48319         * lib/wcsnrtombs.c: New file.
48320         * lib/wcsrtombs-state.c: New file.
48321         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48322         (internal_state): Remove variable.
48323         * m4/wcsnrtombs.m4: New file.
48324         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48325         compilation units.
48326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48327         HAVE_WCSNRTOMBS.
48328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48329         HAVE_WCSNRTOMBS.
48330         * modules/wcsnrtombs: New file.
48331         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48332         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48333
48334 2008-12-21  Bruno Haible  <bruno@clisp.org>
48335
48336         * modules/wcsrtombs-tests: New file.
48337         * tests/test-wcsrtombs1.sh: New file.
48338         * tests/test-wcsrtombs2.sh: New file.
48339         * tests/test-wcsrtombs3.sh: New file.
48340         * tests/test-wcsrtombs4.sh: New file.
48341         * tests/test-wcsrtombs.c: New file.
48342
48343         New module 'wcsrtombs'.
48344         * lib/wchar.in.h (wcsrtombs): New declaration.
48345         * lib/wcsrtombs.c: New file.
48346         * m4/wcsrtombs.m4: New file.
48347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48348         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48350         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48351         * modules/wcsrtombs: New file.
48352         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48353         bugs.
48354
48355 2008-12-21  Bruno Haible  <bruno@clisp.org>
48356
48357         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48358         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48359         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48360         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48361         if not correct.
48362         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48363         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48364         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48365         m4/locale-zh.m4, m4/codeset.m4.
48366         * doc/posix-functions/wcrtomb.texi: Document the bug.
48367
48368 2008-12-21  Bruno Haible  <bruno@clisp.org>
48369
48370         Work around a btowc() bug on IRIX 6.5.
48371         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48372         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48373         REPLACE_WTOBC if not.
48374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48375         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48376         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48377
48378 2008-12-21  Bruno Haible  <bruno@clisp.org>
48379
48380         * modules/wcrtomb-tests: New file.
48381         * tests/test-wcrtomb.sh: New file.
48382         * tests/test-wcrtomb.c: New file.
48383
48384         New module 'wcrtomb'.
48385         * lib/wchar.in.h (wcrtomb): New declaration.
48386         * lib/wcrtomb.c: New file.
48387         * m4/wcrtomb.m4: New file.
48388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48389         HAVE_WCRTOMB.
48390         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48391         HAVE_WCRTOMB.
48392         * modules/wcrtomb: New file.
48393         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48394
48395 2008-12-21  Bruno Haible  <bruno@clisp.org>
48396
48397         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48398         * modules/mbsrtowcs (Files): Likewise.
48399         * modules/wctob (Files): Likewise.
48400         * modules/c-strcase-tests (Files): Likewise.
48401         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48402         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48403         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48404         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48405         * modules/vasnprintf-posix-tests (Files): Likewise.
48406
48407 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48408
48409         gitlog-to-changelog: pass all command-line arguments to git-log
48410         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48411         it is sometimes convenient to filter the commits in various ways.
48412         gitlog-to-changelog only allows --since to specify a start date,
48413         but git-log itself supports many other filtering mechanisms.
48414         At the moment, I want to filter by branch name.  Rather than
48415         adding a --branch option to gitlog-to-changelog, it seems more
48416         flexible to simply pass all options directly to git-log and let
48417         git do the work.  Notice that this effectively makes --since a
48418         redundant option for gitlog-to-changelog, but removing it would
48419         require current usage to change since calls would then require
48420         an additional '--'.
48421
48422 2008-12-21  Bruno Haible  <bruno@clisp.org>
48423
48424         * modules/mbsnrtowcs-tests: New file.
48425         * tests/test-mbsnrtowcs1.sh: New file.
48426         * tests/test-mbsnrtowcs2.sh: New file.
48427         * tests/test-mbsnrtowcs3.sh: New file.
48428         * tests/test-mbsnrtowcs4.sh: New file.
48429         * tests/test-mbsnrtowcs.c: New file.
48430
48431         New module 'mbsnrtowcs'.
48432         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48433         * lib/mbsnrtowcs.c: New file.
48434         * lib/mbsrtowcs-state.c: New file.
48435         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48436         (internal_state): Remove variable.
48437         * m4/mbsnrtowcs.m4: New file.
48438         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48439         compilation units.
48440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48441         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48442         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48443         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48444         * modules/mbsnrtowcs: New file.
48445         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48446         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48447         portability problem.
48448
48449 2008-12-21  Bruno Haible  <bruno@clisp.org>
48450
48451         Work around mbsrtowcs bug.
48452         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48453         (gl_FUNC_MBSRTOWCS): Invoke it.
48454         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48455         m4/locale-zh.m4.
48456         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48457
48458 2008-12-21  Bruno Haible  <bruno@clisp.org>
48459
48460         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48461
48462 2008-12-21  Bruno Haible  <bruno@clisp.org>
48463
48464         Update doc for AIX.
48465         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48466         16-bit wchar_t type.
48467         * doc/posix-functions/btowc.texi: Likewise.
48468         * doc/posix-functions/fgetwc.texi: Likewise.
48469         * doc/posix-functions/fgetws.texi: Likewise.
48470         * doc/posix-functions/fputwc.texi: Likewise.
48471         * doc/posix-functions/fputws.texi: Likewise.
48472         * doc/posix-functions/fwide.texi: Likewise.
48473         * doc/posix-functions/fwprintf.texi: Likewise.
48474         * doc/posix-functions/fwscanf.texi: Likewise.
48475         * doc/posix-functions/getwchar.texi: Likewise.
48476         * doc/posix-functions/getwc.texi: Likewise.
48477         * doc/posix-functions/iswalnum.texi: Likewise.
48478         * doc/posix-functions/iswalpha.texi: Likewise.
48479         * doc/posix-functions/iswblank.texi: Likewise.
48480         * doc/posix-functions/iswcntrl.texi: Likewise.
48481         * doc/posix-functions/iswctype.texi: Likewise.
48482         * doc/posix-functions/iswdigit.texi: Likewise.
48483         * doc/posix-functions/iswgraph.texi: Likewise.
48484         * doc/posix-functions/iswlower.texi: Likewise.
48485         * doc/posix-functions/iswprint.texi: Likewise.
48486         * doc/posix-functions/iswpunct.texi: Likewise.
48487         * doc/posix-functions/iswspace.texi: Likewise.
48488         * doc/posix-functions/iswupper.texi: Likewise.
48489         * doc/posix-functions/iswxdigit.texi: Likewise.
48490         * doc/posix-functions/mbrtowc.texi: Likewise.
48491         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48492         * doc/posix-functions/mbstowcs.texi: Likewise.
48493         * doc/posix-functions/mbtowc.texi: Likewise.
48494         * doc/posix-functions/putwchar.texi: Likewise.
48495         * doc/posix-functions/putwc.texi: Likewise.
48496         * doc/posix-functions/swprintf.texi: Likewise.
48497         * doc/posix-functions/tolower.texi: Likewise.
48498         * doc/posix-functions/toupper.texi: Likewise.
48499         * doc/posix-functions/towctrans.texi: Likewise.
48500         * doc/posix-functions/ungetwc.texi: Likewise.
48501         * doc/posix-functions/vswprintf.texi: Likewise.
48502         * doc/posix-functions/wcrtomb.texi: Likewise.
48503         * doc/posix-functions/wcscat.texi: Likewise.
48504         * doc/posix-functions/wcschr.texi: Likewise.
48505         * doc/posix-functions/wcscmp.texi: Likewise.
48506         * doc/posix-functions/wcscoll.texi: Likewise.
48507         * doc/posix-functions/wcscpy.texi: Likewise.
48508         * doc/posix-functions/wcscspn.texi: Likewise.
48509         * doc/posix-functions/wcsftime.texi: Likewise.
48510         * doc/posix-functions/wcslen.texi: Likewise.
48511         * doc/posix-functions/wcsncat.texi: Likewise.
48512         * doc/posix-functions/wcsncmp.texi: Likewise.
48513         * doc/posix-functions/wcsncpy.texi: Likewise.
48514         * doc/posix-functions/wcspbrk.texi: Likewise.
48515         * doc/posix-functions/wcsrchr.texi: Likewise.
48516         * doc/posix-functions/wcsrtombs.texi: Likewise.
48517         * doc/posix-functions/wcsspn.texi: Likewise.
48518         * doc/posix-functions/wcsstr.texi: Likewise.
48519         * doc/posix-functions/wcstod.texi: Likewise.
48520         * doc/posix-functions/wcstof.texi: Likewise.
48521         * doc/posix-functions/wcstoimax.texi: Likewise.
48522         * doc/posix-functions/wcstok.texi: Likewise.
48523         * doc/posix-functions/wcstold.texi: Likewise.
48524         * doc/posix-functions/wcstoll.texi: Likewise.
48525         * doc/posix-functions/wcstol.texi: Likewise.
48526         * doc/posix-functions/wcstombs.texi: Likewise.
48527         * doc/posix-functions/wcstoull.texi: Likewise.
48528         * doc/posix-functions/wcstoul.texi: Likewise.
48529         * doc/posix-functions/wcstoumax.texi: Likewise.
48530         * doc/posix-functions/wcswidth.texi: Likewise.
48531         * doc/posix-functions/wcsxfrm.texi: Likewise.
48532         * doc/posix-functions/wctob.texi: Likewise.
48533         * doc/posix-functions/wctomb.texi: Likewise.
48534         * doc/posix-functions/wctrans.texi: Likewise.
48535         * doc/posix-functions/wctype.texi: Likewise.
48536         * doc/posix-functions/wcwidth.texi: Likewise.
48537         * doc/posix-functions/wmemchr.texi: Likewise.
48538         * doc/posix-functions/wmemcmp.texi: Likewise.
48539         * doc/posix-functions/wmemcpy.texi: Likewise.
48540         * doc/posix-functions/wmemmove.texi: Likewise.
48541         * doc/posix-functions/wmemset.texi: Likewise.
48542         * doc/posix-functions/wprintf.texi: Likewise.
48543         * doc/posix-functions/wscanf.texi: Likewise.
48544
48545 2008-12-21  Bruno Haible  <bruno@clisp.org>
48546
48547         Update doc for HP-UX 11.11.
48548         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48549         in HP-UX version 11.00, not in all versions of HP-UX 11.
48550         * doc/posix-functions/fwide.texi: Likewise.
48551         * doc/posix-functions/fwprintf.texi: Likewise.
48552         * doc/posix-functions/fwscanf.texi: Likewise.
48553         * doc/posix-functions/inet_ntop.texi: Likewise.
48554         * doc/posix-functions/inet_pton.texi: Likewise.
48555         * doc/posix-functions/mbrlen.texi: Likewise.
48556         * doc/posix-functions/mbrtowc.texi: Likewise.
48557         * doc/posix-functions/mbsinit.texi: Likewise.
48558         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48559         * doc/posix-functions/swprintf.texi: Likewise.
48560         * doc/posix-functions/swscanf.texi: Likewise.
48561         * doc/posix-functions/towctrans.texi: Likewise.
48562         * doc/posix-functions/vfwprintf.texi: Likewise.
48563         * doc/posix-functions/vswprintf.texi: Likewise.
48564         * doc/posix-functions/vwprintf.texi: Likewise.
48565         * doc/posix-functions/wcrtomb.texi: Likewise.
48566         * doc/posix-functions/wcsrtombs.texi: Likewise.
48567         * doc/posix-functions/wcsstr.texi: Likewise.
48568         * doc/posix-functions/wctob.texi: Likewise.
48569         * doc/posix-functions/wctrans.texi: Likewise.
48570         * doc/posix-functions/wmemchr.texi: Likewise.
48571         * doc/posix-functions/wmemcmp.texi: Likewise.
48572         * doc/posix-functions/wmemcpy.texi: Likewise.
48573         * doc/posix-functions/wmemmove.texi: Likewise.
48574         * doc/posix-functions/wmemset.texi: Likewise.
48575         * doc/posix-functions/wprintf.texi: Likewise.
48576         * doc/posix-functions/wscanf.texi: Likewise.
48577
48578 2008-12-21  Bruno Haible  <bruno@clisp.org>
48579
48580         Work around a portability problem.
48581         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48582         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48583
48584 2008-12-20  Bruno Haible  <bruno@clisp.org>
48585
48586         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48587         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48588         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48590         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48591
48592         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48593         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48594         set.
48595         (GNULIB_defined_mbstate_t): New macro.
48596         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48597         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48598         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48599         reuses the system's mbrtowc function but works around the bugs.
48600         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48601         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48602         macros.
48603         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48604         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48605         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48606         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48607         REPLACE_MBSINIT if mbsinit needs to be overridden.
48608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48609         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48610         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48611         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48612         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48613         m4/locale-zh.m4.
48614         (Depends): Add mbsinit.
48615         * modules/mbsinit (Depends): Add mbrtowc.
48616         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48617
48618 2008-12-20  Bruno Haible  <bruno@clisp.org>
48619
48620         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48621         so that there are no conversion errors on AIX.
48622         * tests/test-mbsrtowcs.c (main): LIkewise.
48623
48624 2008-12-20  Bruno Haible  <bruno@clisp.org>
48625
48626         Work around wctob bug on Solaris <= 9.
48627         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48628         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48630         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48631         * modules/wctob (Files): Add m4/locale-fr.m4.
48632         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48633
48634 2008-12-20  Bruno Haible  <bruno@clisp.org>
48635
48636         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48637         /dev/null.
48638         * tests/test-select-in.sh: Likewise.
48639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48640
48641 2008-12-20  Bruno Haible  <bruno@clisp.org>
48642
48643         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48644         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48645         Cygwin 1.5.x.
48646
48647 2008-12-20  Bruno Haible  <bruno@clisp.org>
48648
48649         Ensure mbstate_t is defined on HP-UX 11.11.
48650         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48651         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48652         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48653         AC_USE_SYSTEM_EXTENSIONS.
48654         * modules/fnmatch (Depends-on): Add extensions.
48655         * modules/mbrlen (Depends-on): Likewise.
48656         * modules/mbrtowc (Depends-on): Likewise.
48657         * modules/mbsinit (Depends-on): Likewise.
48658         * modules/mbsrtowcs (Depends-on): Likewise.
48659         * modules/mbswidth (Depends-on): Likewise.
48660         * modules/quotearg (Depends-on): Likewise.
48661         * modules/strftime (Depends-on): Likewise.
48662
48663 2008-12-20  Bruno Haible  <bruno@clisp.org>
48664
48665         Ensure wctob is declared on IRIX 6.5.
48666         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48667         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48668         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48670         of HAVE_WCTOB.
48671         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48672         HAVE_WCTOB.
48673         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48674
48675 2008-12-19  Bruno Haible  <bruno@clisp.org>
48676
48677         * modules/mbsrtowcs-tests: New file.
48678         * tests/test-mbsrtowcs1.sh: New file.
48679         * tests/test-mbsrtowcs2.sh: New file.
48680         * tests/test-mbsrtowcs3.sh: New file.
48681         * tests/test-mbsrtowcs4.sh: New file.
48682         * tests/test-mbsrtowcs.c: New file.
48683
48684         New module 'mbsrtowcs'.
48685         * lib/wchar.in.h (mbsrtowcs): New declaration.
48686         * lib/mbsrtowcs.c: New file.
48687         * m4/mbsrtowcs.m4: New file.
48688         * modules/mbsrtowcs: New file.
48689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48690         HAVE_MBSRTOWCS.
48691         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48692         HAVE_MBSRTOWCS.
48693         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48694
48695 2008-12-19  Bruno Haible  <bruno@clisp.org>
48696
48697         New module 'mbrlen'.
48698         * lib/wchar.in.h (mbrlen): New declaration.
48699         * lib/mbrlen.c: New file.
48700         * m4/mbrlen.m4: New file.
48701         * modules/mbrlen: New file.
48702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48703         HAVE_MBRLEN.
48704         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48705         HAVE_MBRLEN.
48706         * doc/posix-functions/mbrlen.texi: Document the new module.
48707
48708 2008-12-19  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48711         * modules/mbrtowc (Depends-on): Add verify.
48712         Suggested by Paul Eggert.
48713
48714 2008-12-18  Bruno Haible  <bruno@clisp.org>
48715
48716         * modules/mbsinit-tests: New file.
48717         * tests/test-mbsinit.sh: New file.
48718         * tests/test-mbsinit.c: New file.
48719
48720 2008-12-18  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/mbrtowc-tests: New file.
48723         * tests/test-mbrtowc1.sh: New file.
48724         * tests/test-mbrtowc2.sh: New file.
48725         * tests/test-mbrtowc3.sh: New file.
48726         * tests/test-mbrtowc4.sh: New file.
48727         * tests/test-mbrtowc.c: New file.
48728
48729         New module 'mbrtowc'.
48730         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48731         mbsinit and mbrtowc.
48732         (mbrtowc): New declaration.
48733         * lib/mbrtowc.c: New file.
48734         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48735         * modules/mbrtowc: New file.
48736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48737         HAVE_MBRTOWC.
48738         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48739         HAVE_MBRTOWC.
48740         * doc/posix-functions/mbrtowc.texi: Document the new module.
48741
48742 2008-12-18  Bruno Haible  <bruno@clisp.org>
48743
48744         New module 'wctob'.
48745         * lib/wchar.in.h (wctob): New declaration.
48746         * lib/wctob.c: New file.
48747         * m4/wctob.m4: New file.
48748         * modules/wctob: New file.
48749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48750         HAVE_WCTOB.
48751         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48752         * doc/posix-functions/wctob.texi: Document the new module.
48753
48754 2008-12-18  Bruno Haible  <bruno@clisp.org>
48755
48756         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48757         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48758
48759 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48760
48761         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48762         G. Christensen" <tgc@jupiterrise.com>.
48763
48764         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48765         G. Christensen" <tgc@jupiterrise.com>.
48766
48767         * lib/flock.c: Need to include string.h.  Reported by "Tom
48768         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48769         <ebb9@byu.net>.
48770
48771 2008-12-18  Bruno Haible  <bruno@clisp.org>
48772
48773         * m4/locale-ja.m4: New file, from GNU gettext.
48774
48775 2008-12-17  Bruno Haible  <bruno@clisp.org>
48776
48777         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48778         Suggested by Eric Blake.
48779
48780 2008-12-17  Bruno Haible  <bruno@clisp.org>
48781
48782         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48783
48784 2008-12-17  Bruno Haible  <bruno@clisp.org>
48785
48786         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48787         * modules/mbsinit (Depends-on): Add verify.
48788         Suggested by Paul Eggert.
48789
48790 2008-12-17  Bruno Haible  <bruno@clisp.org>
48791
48792         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48793         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48794         gl_FUNC_MBRTOWC.
48795         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48796         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48797         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48798         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48799         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48800         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48801         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48802         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48803         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48804         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48805         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48806         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48807         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48808         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48809         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48810         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48811         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48812         * modules/trim (configure.ac): Likewise.
48813
48814 2008-12-17  Bruno Haible  <bruno@clisp.org>
48815
48816         * modules/btowc-tests: New file.
48817         * tests/test-btowc1.sh: New file.
48818         * tests/test-btowc2.sh: New file.
48819         * tests/test-btowc.c: New file.
48820
48821         New module 'btowc'.
48822         * lib/wchar.in.h (btowc): New declaration.
48823         * lib/btowc.c: New file.
48824         * m4/btowc.m4: New file.
48825         * modules/btowc: New file.
48826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48827         HAVE_BTOWC.
48828         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48829         * doc/posix-functions/btowc.texi: Document the new module.
48830
48831 2008-12-17  Bruno Haible  <bruno@clisp.org>
48832
48833         New module 'mbsinit'.
48834         * lib/wchar.in.h (mbsinit): New declaration.
48835         * lib/mbsinit.c: New file.
48836         * m4/mbsinit.m4: New file.
48837         * modules/mbsinit: New file.
48838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48839         HAVE_MBSINIT.
48840         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48841         HAVE_MBSINIT.
48842         * doc/posix-functions/mbsinit.texi: Document the new module.
48843
48844 2008-12-16  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/unistd.in.h: Add comment.
48847         * tests/test-environ.c: Don't include <stdlib.h>.
48848
48849 2008-12-16  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/parse-duration.h (parse_duration): Document return value
48852         convention.
48853         * lib/parse-duration.c: Include specification header first. Add
48854         comments.
48855         (_): Remove macro.
48856         (parse_year_month_day, parse_hour_minute_second): Move side effects
48857         outside of strchr call.
48858         (parse_non_iso8601): Move side effects outside of isspace call.
48859         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48860         call.
48861
48862 2008-12-16  Bruno Haible  <bruno@clisp.org>
48863
48864         * tests/test-parse-duration.sh: Produce no output when the test
48865         succeeds.
48866
48867 2008-12-16  Bruno Haible  <bruno@clisp.org>
48868
48869         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48870         expressions.
48871
48872 2008-12-15  Bruno Haible  <bruno@clisp.org>
48873
48874         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48875         * doc/glibc-functions/flistxattr.texi: Likewise.
48876         * doc/glibc-functions/fopencookie.texi: Likewise.
48877         * doc/glibc-functions/fremovexattr.texi: Likewise.
48878         * doc/glibc-functions/fsetxattr.texi: Likewise.
48879         * doc/glibc-functions/getxattr.texi: Likewise.
48880         * doc/glibc-functions/lgetxattr.texi: Likewise.
48881         * doc/glibc-functions/listxattr.texi: Likewise.
48882         * doc/glibc-functions/llistxattr.texi: Likewise.
48883         * doc/glibc-functions/lremovexattr.texi: Likewise.
48884         * doc/glibc-functions/lsetxattr.texi: Likewise.
48885         * doc/glibc-functions/removexattr.texi: Likewise.
48886         * doc/glibc-functions/setxattr.texi: Likewise.
48887         * doc/posix-functions/open_memstream.texi: Likewise.
48888
48889 2008-12-15  Eric Blake  <ebb9@byu.net>
48890
48891         Update doc for cygwin 1.7.
48892         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48893         functions.
48894         * doc/posix-functions/fchmodat.texi: Likewise.
48895         * doc/posix-functions/fchownat.texi: Likewise.
48896         * doc/posix-functions/fdopendir.texi: Likewise.
48897         * doc/posix-functions/fmemopen.texi: Likewise.
48898         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48899         * doc/posix-functions/fstatat.texi: Likewise.
48900         * doc/posix-functions/futimens.texi: Likewise.
48901         * doc/posix-functions/gai_strerror.texi: Likewise.
48902         * doc/posix-functions/getaddrinfo.texi: Likewise.
48903         * doc/posix-functions/getnameinfo.texi: Likewise.
48904         * doc/posix-functions/if_freenameindex.texi: Likewise.
48905         * doc/posix-functions/if_indextoname.texi: Likewise.
48906         * doc/posix-functions/if_nameindex.texi: Likewise.
48907         * doc/posix-functions/if_nametoindex.texi: Likewise.
48908         * doc/posix-functions/insque.texi: Likewise.
48909         * doc/posix-functions/linkat.texi: Likewise.
48910         * doc/posix-functions/llrint.texi: Likewise.
48911         * doc/posix-functions/llrintf.texi: Likewise.
48912         * doc/posix-functions/llrintl.texi: Likewise.
48913         * doc/posix-functions/lockf.texi: Likewise.
48914         * doc/posix-functions/lrintl.texi: Likewise.
48915         * doc/posix-functions/mkdirat.texi: Likewise.
48916         * doc/posix-functions/mkfifoat.texi: Likewise.
48917         * doc/posix-functions/mknodat.texi: Likewise.
48918         * doc/posix-functions/mq_close.texi: Likewise.
48919         * doc/posix-functions/mq_getattr.texi: Likewise.
48920         * doc/posix-functions/mq_notify.texi: Likewise.
48921         * doc/posix-functions/mq_open.texi: Likewise.
48922         * doc/posix-functions/mq_receive.texi: Likewise.
48923         * doc/posix-functions/mq_send.texi: Likewise.
48924         * doc/posix-functions/mq_setattr.texi: Likewise.
48925         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48926         * doc/posix-functions/mq_timedsend.texi: Likewise.
48927         * doc/posix-functions/mq_unlink.texi: Likewise.
48928         * doc/posix-functions/open_memstream.texi: Likewise.
48929         * doc/posix-functions/openat.texi: Likewise.
48930         * doc/posix-functions/posix_fadvise.texi: Likewise.
48931         * doc/posix-functions/posix_fallocate.texi: Likewise.
48932         * doc/posix-functions/posix_madvise.texi: Likewise.
48933         * doc/posix-functions/posix_memalign.texi: Likewise.
48934         * doc/posix-functions/posix_openpt.texi: Likewise.
48935         * doc/posix-functions/readlinkat.texi: Likewise.
48936         * doc/posix-functions/remque.texi: Likewise.
48937         * doc/posix-functions/renameat.texi: Likewise.
48938         * doc/posix-functions/rintl.texi: Likewise.
48939         * doc/posix-functions/sem_unlink.texi: Likewise.
48940         * doc/posix-functions/shm_open.texi: Likewise.
48941         * doc/posix-functions/shm_unlink.texi: Likewise.
48942         * doc/posix-functions/signgam.texi: Likewise.
48943         * doc/posix-functions/sigset.texi: Likewise.
48944         * doc/posix-functions/stpcpy.texi: Likewise.
48945         * doc/posix-functions/stpncpy.texi: Likewise.
48946         * doc/posix-functions/strerror.texi: Likewise.
48947         * doc/posix-functions/strtod.texi: Likewise.
48948         * doc/posix-functions/symlinkat.texi: Likewise.
48949         * doc/posix-functions/unlinkat.texi: Likewise.
48950         * doc/posix-functions/utimensat.texi: Likewise.
48951         * doc/glibc-functions/bindresvport.texi: Likewise.
48952         * doc/glibc-functions/dn_expand.texi: Likewise.
48953         * doc/glibc-functions/exp10.texi: Likewise.
48954         * doc/glibc-functions/exp10f.texi: Likewise.
48955         * doc/glibc-functions/fgetxattr.texi: Likewise.
48956         * doc/glibc-functions/flistxattr.texi: Likewise.
48957         * doc/glibc-functions/fopencookie.texi: Likewise.
48958         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48959         * doc/glibc-functions/fremovexattr.texi: Likewise.
48960         * doc/glibc-functions/fsetxattr.texi: Likewise.
48961         * doc/glibc-functions/getifaddrs.texi: Likewise.
48962         * doc/glibc-functions/getxattr.texi: Likewise.
48963         * doc/glibc-functions/lgetxattr.texi: Likewise.
48964         * doc/glibc-functions/listxattr.texi: Likewise.
48965         * doc/glibc-functions/llistxattr.texi: Likewise.
48966         * doc/glibc-functions/lremovexattr.texi: Likewise.
48967         * doc/glibc-functions/lsetxattr.texi: Likewise.
48968         * doc/glibc-functions/pow10.texi: Likewise.
48969         * doc/glibc-functions/pow10f.texi: Likewise.
48970         * doc/glibc-functions/rcmd_af.texi: Likewise.
48971         * doc/glibc-functions/removexattr.texi: Likewise.
48972         * doc/glibc-functions/res_init.texi: Likewise.
48973         * doc/glibc-functions/res_mkquery.texi: Likewise.
48974         * doc/glibc-functions/res_query.texi: Likewise.
48975         * doc/glibc-functions/res_querydomain.texi: Likewise.
48976         * doc/glibc-functions/res_send.texi: Likewise.
48977         * doc/glibc-functions/rresvport_af.texi: Likewise.
48978         * doc/glibc-functions/setxattr.texi: Likewise.
48979         * doc/glibc-functions/strcasestr.texi: Likewise.
48980
48981 2008-12-15  Bruno Haible  <bruno@clisp.org>
48982
48983         Fix compilation error on OSF/1 4.0.
48984         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48985         <sys/time.h>, simply delegate to the system header.
48986         Reported by Daniel Richard G. <oss@teragram.com>.
48987
48988 2008-12-15  Bruno Haible  <bruno@clisp.org>
48989
48990         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48991         * doc/posix-functions/fchmodat.texi: Likewise.
48992         * doc/posix-functions/fchownat.texi: Likewise.
48993         * doc/posix-functions/fdopendir.texi: Likewise.
48994         * doc/posix-functions/fstatat.texi: Likewise.
48995         * doc/posix-functions/mkdirat.texi: Likewise.
48996         * doc/posix-functions/unlinkat.texi: Likewise.
48997
48998 2008-12-14  Bruno Haible  <bruno@clisp.org>
48999
49000         Update doc for POSIX:2008.
49001         * doc/posix-functions/faccessat.texi: New file.
49002         * doc/posix-functions/fchmodat.texi: New file.
49003         * doc/posix-functions/fchownat.texi: New file.
49004         * doc/posix-functions/fdopendir.texi: New file.
49005         * doc/posix-functions/fstatat.texi: New file.
49006         * doc/posix-functions/futimens.texi: New file.
49007         * doc/posix-functions/linkat.texi: New file.
49008         * doc/posix-functions/mkdirat.texi: New file.
49009         * doc/posix-functions/mkfifoat.texi: New file.
49010         * doc/posix-functions/mknodat.texi: New file.
49011         * doc/posix-functions/open_wmemstream.texi: New file.
49012         * doc/posix-functions/openat.texi: New file.
49013         * doc/posix-functions/psiginfo.texi: New file.
49014         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49015         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49016         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49017         * doc/posix-functions/readlinkat.texi: New file.
49018         * doc/posix-functions/renameat.texi: New file.
49019         * doc/posix-functions/strerror_l.texi: New file.
49020         * doc/posix-functions/symlinkat.texi: New file.
49021         * doc/posix-functions/unlinkat.texi: New file.
49022         * doc/posix-functions/utimensat.texi: New file.
49023         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49024
49025 2008-12-14  Bruno Haible  <bruno@clisp.org>
49026
49027         Update doc for POSIX:2008.
49028         * doc/posix-functions/alphasort.texi: Renamed from
49029         doc/glibc-functions/alphasort.texi.
49030         * doc/posix-functions/dirfd.texi: Renamed from
49031         doc/glibc-functions/dirfd.texi.
49032         * doc/posix-functions/dprintf.texi: Renamed from
49033         doc/glibc-functions/dprintf.texi.
49034         * doc/posix-functions/duplocale.texi: Renamed from
49035         doc/glibc-functions/duplocale.texi.
49036         * doc/posix-functions/fexecve.texi: Renamed from
49037         doc/glibc-functions/fexecve.texi.
49038         * doc/posix-functions/fmemopen.texi: Renamed from
49039         doc/glibc-functions/fmemopen.texi.
49040         * doc/posix-functions/freelocale.texi: Renamed from
49041         doc/glibc-functions/freelocale.texi.
49042         * doc/posix-functions/getdate_err.texi: Renamed from
49043         doc/glibc-functions/getdate_err.texi.
49044         * doc/posix-functions/isalnum_l.texi: Renamed from
49045         doc/glibc-functions/isalnum_l.texi.
49046         * doc/posix-functions/isalpha_l.texi: Renamed from
49047         doc/glibc-functions/isalpha_l.texi.
49048         * doc/posix-functions/isblank_l.texi: Renamed from
49049         doc/glibc-functions/isblank_l.texi.
49050         * doc/posix-functions/iscntrl_l.texi: Renamed from
49051         doc/glibc-functions/iscntrl_l.texi.
49052         * doc/posix-functions/isdigit_l.texi: Renamed from
49053         doc/glibc-functions/isdigit_l.texi.
49054         * doc/posix-functions/isgraph_l.texi: Renamed from
49055         doc/glibc-functions/isgraph_l.texi.
49056         * doc/posix-functions/islower_l.texi: Renamed from
49057         doc/glibc-functions/islower_l.texi.
49058         * doc/posix-functions/isprint_l.texi: Renamed from
49059         doc/glibc-functions/isprint_l.texi.
49060         * doc/posix-functions/ispunct_l.texi: Renamed from
49061         doc/glibc-functions/ispunct_l.texi.
49062         * doc/posix-functions/isspace_l.texi: Renamed from
49063         doc/glibc-functions/isspace_l.texi.
49064         * doc/posix-functions/isupper_l.texi: Renamed from
49065         doc/glibc-functions/isupper_l.texi.
49066         * doc/posix-functions/iswalnum_l.texi: Renamed from
49067         doc/glibc-functions/iswalnum_l.texi.
49068         * doc/posix-functions/iswalpha_l.texi: Renamed from
49069         doc/glibc-functions/iswalpha_l.texi.
49070         * doc/posix-functions/iswblank_l.texi: Renamed from
49071         doc/glibc-functions/iswblank_l.texi.
49072         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49073         doc/glibc-functions/iswcntrl_l.texi.
49074         * doc/posix-functions/iswctype_l.texi: Renamed from
49075         doc/glibc-functions/iswctype_l.texi.
49076         * doc/posix-functions/iswdigit_l.texi: Renamed from
49077         doc/glibc-functions/iswdigit_l.texi.
49078         * doc/posix-functions/iswgraph_l.texi: Renamed from
49079         doc/glibc-functions/iswgraph_l.texi.
49080         * doc/posix-functions/iswlower_l.texi: Renamed from
49081         doc/glibc-functions/iswlower_l.texi.
49082         * doc/posix-functions/iswprint_l.texi: Renamed from
49083         doc/glibc-functions/iswprint_l.texi.
49084         * doc/posix-functions/iswpunct_l.texi: Renamed from
49085         doc/glibc-functions/iswpunct_l.texi.
49086         * doc/posix-functions/iswspace_l.texi: Renamed from
49087         doc/glibc-functions/iswspace_l.texi.
49088         * doc/posix-functions/iswupper_l.texi: Renamed from
49089         doc/glibc-functions/iswupper_l.texi.
49090         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49091         doc/glibc-functions/iswxdigit_l.texi.
49092         * doc/posix-functions/isxdigit_l.texi: Renamed from
49093         doc/glibc-functions/isxdigit_l.texi.
49094         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49095         doc/glibc-functions/mbsnrtowcs.texi.
49096         * doc/posix-functions/mkdtemp.texi: Renamed from
49097         doc/glibc-functions/mkdtemp.texi.
49098         * doc/posix-functions/newlocale.texi: Renamed from
49099         doc/glibc-functions/newlocale.texi.
49100         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49101         doc/glibc-functions/nl_langinfo_l.texi.
49102         * doc/posix-functions/open_memstream.texi: Renamed from
49103         doc/glibc-functions/open_memstream.texi.
49104         * doc/posix-functions/opterr.texi: Renamed from
49105         doc/glibc-functions/opterr.texi.
49106         * doc/posix-functions/optind.texi: Renamed from
49107         doc/glibc-functions/optind.texi.
49108         * doc/posix-functions/optopt.texi: Renamed from
49109         doc/glibc-functions/optopt.texi.
49110         * doc/posix-functions/psignal.texi: Renamed from
49111         doc/glibc-functions/psignal.texi.
49112         * doc/posix-functions/scandir.texi: Renamed from
49113         doc/glibc-functions/scandir.texi.
49114         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49115         doc/glibc-functions/sched_get_priority_min.texi.
49116         * doc/posix-functions/signgam.texi: Renamed from
49117         doc/glibc-functions/signgam.texi.
49118         * doc/posix-functions/stpcpy.texi: Renamed from
49119         doc/glibc-functions/stpcpy.texi.
49120         * doc/posix-functions/stpncpy.texi: Renamed from
49121         doc/glibc-functions/stpncpy.texi.
49122         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49123         doc/glibc-functions/strcasecmp_l.texi.
49124         * doc/posix-functions/strcoll_l.texi: Renamed from
49125         doc/glibc-functions/strcoll_l.texi.
49126         * doc/posix-functions/strfmon_l.texi: Renamed from
49127         doc/glibc-functions/strfmon_l.texi.
49128         * doc/posix-functions/strftime_l.texi: Renamed from
49129         doc/glibc-functions/strftime_l.texi.
49130         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49131         doc/glibc-functions/strncasecmp_l.texi.
49132         * doc/posix-functions/strndup.texi: Renamed from
49133         doc/glibc-functions/strndup.texi.
49134         * doc/posix-functions/strnlen.texi: Renamed from
49135         doc/glibc-functions/strnlen.texi.
49136         * doc/posix-functions/strsignal.texi: Renamed from
49137         doc/glibc-functions/strsignal.texi.
49138         * doc/posix-functions/strxfrm_l.texi: Renamed from
49139         doc/glibc-functions/strxfrm_l.texi.
49140         * doc/posix-functions/timer_gettime.texi: Renamed from
49141         doc/glibc-functions/timer_gettime.texi.
49142         * doc/posix-functions/tolower_l.texi: Renamed from
49143         doc/glibc-functions/tolower_l.texi.
49144         * doc/posix-functions/toupper_l.texi: Renamed from
49145         doc/glibc-functions/toupper_l.texi.
49146         * doc/posix-functions/towctrans_l.texi: Renamed from
49147         doc/glibc-functions/towctrans_l.texi.
49148         * doc/posix-functions/towlower_l.texi: Renamed from
49149         doc/glibc-functions/towlower_l.texi.
49150         * doc/posix-functions/towupper_l.texi: Renamed from
49151         doc/glibc-functions/towupper_l.texi.
49152         * doc/posix-functions/uselocale.texi: Renamed from
49153         doc/glibc-functions/uselocale.texi.
49154         * doc/posix-functions/vdprintf.texi: Renamed from
49155         doc/glibc-functions/vdprintf.texi.
49156         * doc/posix-functions/wcpcpy.texi:
49157         Renamed from doc/glibc-functions/wcpcpy.texi.
49158         * doc/posix-functions/wcpncpy.texi: Renamed from
49159         doc/glibc-functions/wcpncpy.texi.
49160         * doc/posix-functions/wcscasecmp.texi: Renamed from
49161         doc/glibc-functions/wcscasecmp.texi.
49162         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49163         doc/glibc-functions/wcscasecmp_l.texi.
49164         * doc/posix-functions/wcscoll_l.texi: Renamed from
49165         doc/glibc-functions/wcscoll_l.texi.
49166         * doc/posix-functions/wcsdup.texi: Renamed from
49167         doc/glibc-functions/wcsdup.texi.
49168         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49169         doc/glibc-functions/wcsncasecmp.texi.
49170         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49171         doc/glibc-functions/wcsncasecmp_l.texi.
49172         * doc/posix-functions/wcsnlen.texi: Renamed from
49173         doc/glibc-functions/wcsnlen.texi.
49174         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49175         doc/glibc-functions/wcsnrtombs.texi.
49176         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49177         doc/glibc-functions/wcsxfrm_l.texi.
49178         * doc/posix-functions/wctrans_l.texi: Renamed from
49179         doc/glibc-functions/wctrans_l.texi.
49180         * doc/posix-functions/wctype_l.texi: Renamed from
49181         doc/glibc-functions/wctype_l.texi.
49182         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49183         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49184         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49185         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49186         these subsections.
49187         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49188         Remove sections.
49189
49190 2008-12-14  Bruno Haible  <bruno@clisp.org>
49191
49192         Update doc for POSIX:2008.
49193         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49194
49195 2008-12-14  Bruno Haible  <bruno@clisp.org>
49196
49197         Update doc for POSIX:2008.
49198         * doc/pastposix-functions/bcmp.texi: Renamed from
49199         doc/posix-functions/bcmp.texi.
49200         * doc/pastposix-functions/bcopy.texi: Renamed from
49201         doc/posix-functions/bcopy.texi.
49202         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49203         doc/posix-functions/bsd_signal.texi.
49204         * doc/pastposix-functions/bzero.texi: Renamed from
49205         doc/posix-functions/bzero.texi.
49206         * doc/pastposix-functions/ecvt.texi: Renamed from
49207         doc/posix-functions/ecvt.texi.
49208         * doc/pastposix-functions/fcvt.texi: Renamed from
49209         doc/posix-functions/fcvt.texi.
49210         * doc/pastposix-functions/ftime.texi: Renamed from
49211         doc/posix-functions/ftime.texi.
49212         * doc/pastposix-functions/gcvt.texi: Renamed from
49213         doc/posix-functions/gcvt.texi.
49214         * doc/pastposix-functions/getcontext.texi: Renamed from
49215         doc/posix-functions/getcontext.texi.
49216         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49217         doc/posix-functions/gethostbyaddr.texi.
49218         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49219         doc/posix-functions/gethostbyname.texi.
49220         * doc/pastposix-functions/getwd.texi: Renamed from
49221         doc/posix-functions/getwd.texi.
49222         * doc/pastposix-functions/h_errno.texi: Renamed from
49223         doc/posix-functions/h_errno.texi.
49224         * doc/pastposix-functions/index.texi: Renamed from
49225         doc/posix-functions/index.texi.
49226         * doc/pastposix-functions/makecontext.texi: Renamed from
49227         doc/posix-functions/makecontext.texi.
49228         * doc/pastposix-functions/mktemp.texi: Renamed from
49229         doc/posix-functions/mktemp.texi.
49230         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49231         doc/posix-functions/pthread_attr_getstackaddr.texi.
49232         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49233         doc/posix-functions/pthread_attr_setstackaddr.texi.
49234         * doc/pastposix-functions/rindex.texi: Renamed from
49235         doc/posix-functions/rindex.texi.
49236         * doc/pastposix-functions/scalb.texi: Renamed from
49237         doc/posix-functions/scalb.texi.
49238         * doc/pastposix-functions/setcontext.texi: Renamed from
49239         doc/posix-functions/setcontext.texi.
49240         * doc/pastposix-functions/swapcontext.texi: Renamed from
49241         doc/posix-functions/swapcontext.texi.
49242         * doc/pastposix-functions/ualarm.texi: Renamed from
49243         doc/posix-functions/ualarm.texi.
49244         * doc/pastposix-functions/usleep.texi: Renamed from
49245         doc/posix-functions/usleep.texi.
49246         * doc/pastposix-functions/vfork.texi: Renamed from
49247         doc/posix-functions/vfork.texi.
49248         * doc/pastposix-functions/wcswcs.texi: Renamed from
49249         doc/posix-functions/wcswcs.texi.
49250         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49251         (Function Substitutes): Update.
49252
49253 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49254
49255         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49256         m4/strerror.m4.
49257
49258 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49259             Bruno Haible  <bruno@clisp.org>
49260
49261         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49262
49263 2008-12-13  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/strtoull (Depends-on): Remove unistd.
49266
49267 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49268
49269         * modules/strtoull (Depends-on): Add stdlib.
49270
49271 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49272
49273         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49274
49275 2008-12-10  Jim Meyering  <meyering@redhat.com>
49276
49277         gl_ASSERT: don't say assertions are disabled when they're not
49278         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49279         "checking whether to enable assertions... no", when they are in
49280         fact enabled.  This is solely a bug in the output of configure.
49281         In spite of saying "no", NDEBUG was not defined in that case.
49282         Also, as noted by Eric Blake, leave assertions enabled upon
49283         --enable-assert=INVALID.
49284
49285 2008-12-10  Bruno Haible  <bruno@clisp.org>
49286
49287         Change MODULES.html to refer to POSIX:2008 where possible.
49288         * MODULES.html.sh (POSIX2008_URL): New variable.
49289         (posix_headers): Remove sys/timeb, ucontext.
49290         (posix2001_headers): New variable.
49291         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49292         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49293         index, makecontext, mktemp, pthread_attr_getstackaddr,
49294         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49295         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49296         (posix2001_functions): New variable.
49297         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49298         otherwise.
49299
49300 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49301
49302         add missing include to parse-duration.c
49303         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49304         * modules/parse-duration (Depends-on): Add xalloc.
49305
49306         fix sed script reading maint.mk
49307         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49308         (syntax-check-rules): Use it.
49309
49310 2008-12-09  Bruno Haible  <bruno@clisp.org>
49311
49312         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49313         MacOS X 10.4/PowerPC.
49314         Reported by Simon Josefsson.
49315
49316 2008-12-08  Jim Meyering  <meyering@redhat.com>
49317
49318         work around mingw's lack of some S_IF definitions
49319         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49320         Reported by Simon Josefsson.
49321
49322 2008-12-08  Bruno Haible  <bruno@clisp.org>
49323
49324         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49325         applied to variables. Needed on MacOS X 10.4/PowerPC.
49326         Reported by Simon Josefsson.
49327
49328 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49329         and Eric Blake  <ebb9@byu.net>
49330
49331         assert: honor --enable-assert
49332         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49333         order to honor --enable-assert, rather than treating it as a
49334         synonym for --disable-assert.
49335
49336 2008-12-08  Jim Meyering  <meyering@redhat.com>
49337
49338         * lib/posixtm.c: Remove now-useless declaration of mktime.
49339
49340         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49341
49342 2008-12-07  Bruno Haible  <bruno@clisp.org>
49343
49344         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49345         test_once): Mark functions as static.
49346         * tests/test-tls.c (test_tls): Likewise.
49347
49348 2008-12-07  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49351         iconv_register_autodetect.
49352
49353 2008-12-07  Jim Meyering  <meyering@redhat.com>
49354
49355         posixtm.c: avoid a warning
49356         * lib/posixtm.c (posixtime): Don't initialize tm0.
49357         It's no longer needed to placate gcc4's -Wuninitialized,
49358         and the attempt to placate would elicit a new warning.
49359
49360         unicodeio.c: mark unused parameters
49361         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49362         (fallback_failure_callback): Likewise.
49363
49364 2008-12-07  Bruno Haible  <bruno@clisp.org>
49365
49366         * gnulib-tool (func_create_testdir): When building the tests
49367         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49368         Reported by Simon Josefsson.
49369
49370 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49371
49372         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49373
49374 2008-12-06  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49377         Suggested by Eric Blake.
49378
49379 2008-12-06  Bruno Haible  <bruno@clisp.org>
49380
49381         Fix a c-stack test failure on MacOS X.
49382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49383         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49384         handler for SIGBUS as well.
49385         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49386         install a signal handler for SIGBUS as well.
49387         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49388
49389 2008-12-06  Bruno Haible  <bruno@clisp.org>
49390
49391         Advocacy documentation.
49392         * doc/gnulib-intro.texi (Benefits): New section.
49393         * doc/gnulib.texi: Update.
49394
49395 2008-12-06  Bruno Haible  <bruno@clisp.org>
49396
49397         Document the 'manywarnings' module.
49398         * doc/manywarnings.texi: New file.
49399         * doc/gnulib.texi: Include it.
49400
49401 2008-12-05  Eric Blake  <ebb9@byu.net>
49402
49403         tests: silence some gcc warnings
49404         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49405         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49406         type mismatches.
49407
49408 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49409             Bruno Haible  <bruno@clisp.org>
49410
49411         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49412
49413 2008-11-29  Jim Meyering  <meyering@redhat.com>
49414
49415         unicodeio.c: mark unused parameters
49416         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49417         (fallback_failure_callback): Likewise.
49418
49419         fts: fix a thinko
49420         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49421         (set_stat_type): Return S_IF*-valued "type" directly.
49422         Prompted by James Youngman's spotting a related bug.
49423         Confirmed by further testing through find.
49424
49425         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49426         * lib/fts.c (D_TYPE): Define.
49427         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49428         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49429         (s_ifmt_shift_bits): New function.
49430         (set_stat_type): New function.
49431         (fts_build): When not calling fts_stat, call set_stat_type
49432         to propagate dirent.d_type info to fts_read caller.
49433         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49434         fts_statp->st_mode type information may be valid.
49435
49436 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49437
49438         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49439         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49440         <sds@gnu.org>.
49441
49442 2008-11-20  Bruno Haible  <bruno@clisp.org>
49443
49444         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49445         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49446         INCLUDE_NEXT.
49447         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49448         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49449         * modules/math (Makefile.am): Substitute
49450         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49451         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49452
49453 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49454             Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/stdint.in.h: Define all type macros so that their expansion is
49457         a single typedef'ed token. Fixes a compilation failure in Boost which
49458         does "using ::int8_t;".
49459
49460 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49461
49462         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49463         gl_MANYWARN_ALL_GCC.
49464         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49465         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49466         * modules/manywarnings: New file.
49467         * MODULES.html.sh: Mention manywarnings module.
49468
49469 2008-11-18  Bruno Haible  <bruno@clisp.org>
49470
49471         * doc/gnulib-tool.texi (Unit tests): New section.
49472
49473 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49474
49475         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49476         paths like 'lib/po/foo.po'.
49477
49478 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49479
49480         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49481         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49482
49483 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49484
49485         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49486         parameter works.
49487
49488 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49489
49490         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49491
49492 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49493
49494         * modules/parse-duration-tests: New file.
49495         * tests/test-parse-duration.sh: New file.
49496         * tests/test-parse-duration.c: New file.
49497
49498         New module 'parse-duration'.
49499         * lib/parse-duration.h: New file.
49500         * lib/parse-duration.c: New file.
49501         * modules/parse-duration: New file.
49502
49503 2008-11-17  Bruno Haible  <bruno@clisp.org>
49504
49505         * tests/test-select-out.sh: Comment out the first pipe test.
49506         Reported by Simon Josefsson.
49507
49508 2008-11-17  Bruno Haible  <bruno@clisp.org>
49509
49510         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49512         gl_HOSTENT.
49513
49514 2008-11-17  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49517         -lnetwork and -lnet. Needed for Haiku and BeOS.
49518
49519 2008-11-16  Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49522
49523 2008-11-16  Bruno Haible  <bruno@clisp.org>
49524
49525         Avoid test failure on Haiku.
49526         * tests/test-fsync.c: Include <errno.h>.
49527         (main): Don't require that fsync (0) fails.
49528
49529 2008-11-15  Bruno Haible  <bruno@clisp.org>
49530
49531         New module 'hostent'.
49532         * modules/hostent: New file.
49533         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49534
49535 2008-11-15  Bruno Haible  <bruno@clisp.org>
49536
49537         New module 'servent'.
49538         * modules/servent: New file.
49539         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49540
49541 2008-11-15  Bruno Haible  <bruno@clisp.org>
49542
49543         Avoid generating same test program with two different rules.
49544         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49545         test-frexp to test-frexp-nolibm.
49546         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49547         test-frexpl to test-frexpl-nolibm.
49548
49549 2008-11-15  Bruno Haible  <bruno@clisp.org>
49550
49551         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49552         $(FREXPL_LIBM).
49553
49554 2008-11-15  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/netdb.in.h: Activate the definitions also when the system's
49557         <netdb.h> has 'struct addrinfo'.
49558         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49559         EAI_OVERFLOW or AI_NUMERICSERV.
49560         * doc/posix-headers/netdb.texi: Document the problem.
49561
49562 2008-11-15  Bruno Haible  <bruno@clisp.org>
49563
49564         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49565
49566         Make the 'sched' module work on platforms where <sched.h> exists but
49567         is incomplete (such as Haiku).
49568         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49569         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49570         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49571         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49572         HAVE_STRUCT_SCHED_PARAM.
49573         * modules/sched (Depends-on): Add include_next.
49574         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49575         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49576         * doc/posix-headers/sched.texi: Document the issue.
49577
49578 2008-11-13  Jim Meyering  <meyering@redhat.com>
49579
49580         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49581         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49582         test would fail due to the difference in the Report bugs to ...
49583         line.  The expected address is empty, "<>", while the actual
49584         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49585
49586 2008-11-12  Bruno Haible  <bruno@clisp.org>
49587
49588         lstat: don't compile lstat.c on systems lacking lstat
49589         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49590         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49591         Reported by Daniel P. Berrange via Jim Meyering.
49592
49593 2008-11-12  Jim Meyering  <meyering@redhat.com>
49594
49595         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49596
49597 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49598
49599         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49600         instead.
49601
49602 2008-11-12  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/unicodeio.c: Include unistr.h.
49605         (utf8_wctomb): Remove function.
49606         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49607
49608 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49609
49610         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49611         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49612         <bruno@clisp.org>.
49613         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49614
49615 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49616
49617         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49618         * doc/gnulib.texi: Add section for warnings.
49619
49620 2008-11-11  Bruno Haible  <bruno@clisp.org>
49621
49622         * lib/sockets.h: Add a comment.
49623
49624 2008-11-11  Karl Berry  <karl@gnu.org>
49625
49626         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49627
49628 2008-11-11  Eric Blake  <ebb9@byu.net>
49629
49630         fdl.texi: avoid git symlinks
49631         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49632
49633 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49634
49635         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49636
49637 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49638
49639         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49640         (gl_WARN_ADD): Substitute $2 if literal.
49641
49642 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49643
49644         * m4/warning.m4: Remove.
49645
49646 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49647
49648         * m4/warnings.m4: Almost complete rewrite. :-)
49649
49650 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49651
49652         * modules/warnings: New module.
49653         * m4/warnings.m4: New file.
49654         * MODULES.html.sh: Mention warnings module.
49655         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49656         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49657
49658 2008-11-10  Eric Blake  <ebb9@byu.net>
49659
49660         fdl.texi: make a symlink to the latest version
49661         * doc/standards.texi: Revert today's earlier change.
49662         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49663         * doc/fdl.texi: ...and replace this with a symlink to the newer
49664         fdl-1.3.texi.
49665
49666 2008-11-10  Bruno Haible  <bruno@clisp.org>
49667
49668         * tests/test-select-fd.c (main): Accept the result file name as fourth
49669         argument.
49670         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49671         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49672
49673 2008-11-10  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49676         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49677         as autoconf-substituted macros.
49678         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49679         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49680         gl_NETDB_H_DEFAULTS. Set these variables.
49681         * modules/netdb (Makefile.am): Substitute these variables.
49682
49683 2008-11-10  Eric Blake  <ebb9@byu.net>
49684
49685         standards.texi: include correct file for FDL 1.3
49686         * doc/standards.texi (GNU Free Documentation License): Change
49687         include file to pull in FDL 1.3, not 1.2.
49688
49689         fdl.texi: revert accidental change to license
49690         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49691
49692 2008-11-10  Bruno Haible  <bruno@clisp.org>
49693
49694         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49695         cross-compiling guesses also when the native compile gives no result.
49696
49697 2008-11-10  Bruno Haible  <bruno@clisp.org>
49698
49699         * lib/spawni.c (__spawni): Force variable into the stack.
49700
49701 2008-11-10  Bruno Haible  <bruno@clisp.org>
49702
49703         Add support for Haiku.
49704         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49705         glibc and BeOS, but also on Haiku.
49706         * lib/fpurge.c (fpurge): Likewise.
49707         * lib/freadable.c (freadable): Likewise.
49708         * lib/freadahead.c (freadahead): Likewise.
49709         * lib/freading.c (freading): Likewise.
49710         * lib/freadptr.c (freadptr): Likewise.
49711         * lib/freadseek.c (freadptrinc): Likewise.
49712         * lib/fseeko.c (rpl_fseeko): Likewise.
49713         * lib/fseterr.c (fseterr): Likewise.
49714         * lib/fwritable.c (fwritable): Likewise.
49715         * lib/fwriting.c (fwriting): Likewise.
49716         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49717
49718 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49719
49720         * lib/config.charset: Treat Haiku like BeOS.
49721
49722 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49723
49724         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49725         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49726
49727 2008-11-08  Bruno Haible  <bruno@clisp.org>
49728
49729         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49730         AC_CACHE_CHECK.
49731
49732 2008-11-08  Bruno Haible  <bruno@clisp.org>
49733
49734         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49735
49736 2008-11-08  Bruno Haible  <bruno@clisp.org>
49737
49738         * tests/test-select-fd.c: New file.
49739         * tests/test-select-in.sh: New file.
49740         * tests/test-select-out.sh: New file.
49741         * tests/test-select-stdin.c: New file.
49742         * modules/select-tests (Files): Add the new files.
49743         (Depends-on): Add gettimeofday.
49744         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49745         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49746         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49747
49748 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49749             Bruno Haible  <bruno@clisp.org>
49750
49751         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49752
49753 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49754
49755         * build-aux/pmccabe2html: Added support for C++ source files.
49756
49757 2008-11-05  Ben Pfaff  <blp@gnu.org>
49758
49759         Fix lib/close.c build on Windows.
49760         * modules/close (Files): Add lib/w32sock.h.
49761
49762 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49763
49764         Accept Bison's NEWS format.
49765         * build-aux/announce-gen (print_news_deltas): Tweak
49766         $re_prefix.
49767
49768 2008-11-04  Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/random_r (Maintainer): Add glibc.
49771
49772 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49773
49774         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49775         by karl@freefriends.org (Karl Berry).
49776         * doc/alloca.texi: Likewise.
49777         * doc/c-ctype.texi: Likewise.
49778         * doc/c-strcase.texi: Likewise.
49779         * doc/c-strcaseeq.texi: Likewise.
49780         * doc/c-strcasestr.texi: Likewise.
49781         * doc/c-strstr.texi: Likewise.
49782         * doc/c-strtod.texi: Likewise.
49783         * doc/c-strtold.texi: Likewise.
49784         * doc/ctime.texi: Likewise.
49785         * doc/error.texi: Likewise.
49786         * doc/fdl.texi: Likewise.
49787         * doc/gcd.texi: Likewise.
49788         * doc/getdate.texi: Likewise.
49789         * doc/gnulib-intro.texi: Likewise.
49790         * doc/gnulib-tool.texi: Likewise.
49791         * doc/gnulib.texi: Likewise.
49792         * doc/inet_ntoa.texi: Likewise.
49793         * doc/maintain.texi: Likewise.
49794         * doc/make-stds.texi: Likewise.
49795         * doc/quote.texi: Likewise.
49796         * doc/regexprops-generic.texi: Likewise.
49797         * doc/standards.texi: Likewise.
49798         * doc/verify.texi: Likewise.
49799         * doc/visibility.texi: Likewise.
49800         * doc/gnulib.texi (GNU Free Documentation License): Include
49801         fdl-1.3.texi instead of fdl.texi.
49802
49803 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49804
49805         * doc/fdl-1.3.texi: New file, from
49806         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49807         * modules/fdl-1.3: Add.
49808         * MODULES.html.sh: Add fdl-1.3.
49809
49810 2008-11-03  Bruno Haible  <bruno@clisp.org>
49811
49812         Make determination of absolute name of header file work with AIX xlc.
49813         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49814         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49815         preprocessing.
49816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49817         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49818
49819 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49820
49821         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49822         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49823         <ludo@gnu.org>.
49824
49825 2008-11-02  Bruno Haible  <bruno@clisp.org>
49826
49827         Mark 'strpbrk' obsolete.
49828         * modules/strpbrk (Status, Notice): New sections.
49829         * modules/strtok_r (Depends-on): Add strpbrk.
49830
49831 2008-11-02  Bruno Haible  <bruno@clisp.org>
49832
49833         Mark 'strdup' obsolete.
49834         * modules/strdup (Status, Notice): New sections.
49835         * modules/findprog (Depends-on): Add strdup.
49836         * modules/getaddrinfo (Depends-on): Likewise.
49837         * modules/localename (Depends-on): Likewise.
49838         * modules/relocatable-lib (Depends-on): Likewise.
49839         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49840         * modules/relocatable-prog (Depends-on): Likewise.
49841         * modules/trim (Depends-on): Likewise.
49842         * modules/unictype/gen-ctype (Depends-on): Likewise.
49843         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49844
49845 2008-11-02  Bruno Haible  <bruno@clisp.org>
49846
49847         Mark 'strcspn' obsolete.
49848         * modules/strcspn (Status, Notice): New sections.
49849
49850 2008-11-02  Bruno Haible  <bruno@clisp.org>
49851
49852         Mark 'rmdir' obsolete.
49853         * modules/rmdir (Status, Notice): New sections.
49854         * modules/clean-temp (Depends-on): Add rmdir.
49855         * modules/openat (Depends-on): Likewise.
49856
49857 2008-11-02  Bruno Haible  <bruno@clisp.org>
49858
49859         Mark 'raise' obsolete.
49860         * modules/raise (Status, Notice): New sections.
49861         (Include): Specify <signal.h>.
49862         * modules/stdio (Depends-on): Add raise.
49863         * modules/write (Depends-on): Likewise.
49864
49865 2008-11-02  Bruno Haible  <bruno@clisp.org>
49866
49867         Mark 'memset' obsolete.
49868         * modules/memset (Status, Notice): New sections.
49869
49870 2008-11-02  Bruno Haible  <bruno@clisp.org>
49871
49872         Mark 'memmove' obsolete.
49873         * modules/memmove (Status, Notice): New sections.
49874         * modules/argp (Depends-on): Add memmove.
49875         * modules/argz (Depends-on): Likewise.
49876         * modules/canonicalize (Depends-on): Likewise.
49877         * modules/canonicalize-lgpl (Depends-on): Likewise.
49878         * modules/fts (Depends-on): Likewise.
49879         * modules/getcwd (Depends-on): Likewise.
49880         * modules/human (Depends-on): Likewise.
49881         * modules/regex (Depends-on): Likewise.
49882         * modules/striconveh (Depends-on): Likewise.
49883         * modules/trim (Depends-on): Likewise.
49884         * modules/unistr/u8-move (Depends-on): Likewise.
49885         * modules/unistr/u16-move (Depends-on): Likewise.
49886         * modules/unistr/u32-move (Depends-on): Likewise.
49887
49888 2008-11-02  Bruno Haible  <bruno@clisp.org>
49889
49890         Mark 'memcpy' obsolete.
49891         * modules/memcpy (Status, Notice): New sections.
49892
49893 2008-11-02  Bruno Haible  <bruno@clisp.org>
49894
49895         Mark 'memcmp' obsolete.
49896         * modules/memcmp (Status, Notice): New sections.
49897         * modules/argmatch (Depends-on): Add memchr.
49898         * modules/backupfile (Depends-on): Likewise.
49899         * modules/c-strcasestr (Depends-on): Likewise.
49900         * modules/crypto/des (Depends-on): Likewise.
49901         * modules/csharpcomp (Depends-on): Likewise.
49902         * modules/fnmatch (Depends-on): Likewise.
49903         * modules/git-merge-changelog (Depends-on): Likewise.
49904         * modules/isnand (Depends-on): Likewise.
49905         * modules/isnand-nolibm (Depends-on): Likewise.
49906         * modules/isnanf (Depends-on): Likewise.
49907         * modules/isnanf-nolibm (Depends-on): Likewise.
49908         * modules/isnanl (Depends-on): Likewise.
49909         * modules/isnanl-nolibm (Depends-on): Likewise.
49910         * modules/mbchar (Depends-on): Likewise.
49911         * modules/memcoll (Depends-on): Likewise.
49912         * modules/quotearg (Depends-on): Likewise.
49913         * modules/regex (Depends-on): Likewise.
49914         * modules/relocatable-prog (Depends-on): Likewise.
49915         * modules/same (Depends-on): Likewise.
49916         * modules/signbit (Depends-on): Likewise.
49917         * modules/strcasestr-simple (Depends-on): Likewise.
49918         * modules/unictype/gen-ctype (Depends-on): Likewise.
49919         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49920         * modules/uniname/uniname (Depends-on): Likewise.
49921         * modules/unistr/u8-cmp (Depends-on): Likewise.
49922
49923 2008-11-02  Bruno Haible  <bruno@clisp.org>
49924
49925         Mark 'memchr' obsolete.
49926         * modules/memchr (Status, Notice): New sections.
49927         * modules/argp (Depends-on): Add memchr.
49928         * modules/base64 (Depends-on): Likewise.
49929         * modules/c-strcasestr (Depends-on): Likewise.
49930         * modules/chdir-long (Depends-on): Likewise.
49931         * modules/fnmatch (Depends-on): Likewise.
49932         * modules/getsubopt (Depends-on): Likewise.
49933         * modules/git-merge-changelog (Depends-on): Likewise.
49934         * modules/glob (Depends-on): Likewise.
49935         * modules/strcasestr-simple (Depends-on): Likewise.
49936         * modules/strnlen (Depends-on): Likewise.
49937
49938 2008-11-02  Bruno Haible  <bruno@clisp.org>
49939
49940         Mark 'atexit' obsolete.
49941         * modules/atexit (Status, Notice): New sections.
49942         * modules/chdir-long (Depends-on): Add atexit.
49943         * modules/wait-process (Depends-on): Likewise.
49944
49945 2008-11-02  Bruno Haible  <bruno@clisp.org>
49946
49947         * gnulib-tool: New option --with-obsolete.
49948         (func_usage): Document it.
49949         (func_modules_transitive_closure): Drop obsolete dependencies if
49950         incobsolete is not true.
49951         (func_import): Read and save the incobsolete variable to the cache.
49952
49953 2008-11-02  Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49956         * gnulib-tool: New option --extract-status.
49957         (func_usage): Document it.
49958         (sed_extract_prog): Recognize it.
49959         (func_get_status): New function.
49960
49961 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49962
49963         * modules/sockets (License): Change from LGPL to LGPLv2+.
49964
49965 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49966
49967         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49968
49969 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49970
49971         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49972         Mention times and sys_times.
49973         * modules/sys_times, modules/sys_times-tests: New modules.
49974         * modules/times, modules/times-tests: Likewise
49975         * m4/sys_times_h.m4: New file.
49976         * lib/sys_times.in.h: Likewise
49977         * lib/times.c: Likewise.
49978         * tests/test-sys_times.c: Likewise.
49979         * tests/test-times.c: Likewise.
49980         * doc/posix-headers/sys_times.texi: Update.
49981         * doc/posix-functions/times.texi: Update.
49982
49983 2008-10-28  Jim Meyering  <meyering@redhat.com>
49984
49985         * modules/tempname (Depends-on): Add lstat.
49986
49987         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49988
49989 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49990
49991         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49992         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49993         using idiom used elsewhere in gnulib.
49994
49995 2008-10-27  Jim Meyering  <meyering@redhat.com>
49996
49997         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49998
49999 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50000
50001         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50002         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50003         programs.
50004         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50005
50006 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50007
50008         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50009
50010 2008-10-27  Bruno Haible  <bruno@clisp.org>
50011
50012         * tests/test-lstat.c: Include <stdio.h>.
50013
50014 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50015
50016         * modules/lstat-tests: New module.
50017         * tests/test-lstat.c: New file.
50018
50019 2008-10-26  Jim Meyering  <meyering@redhat.com>
50020
50021         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50022
50023 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50024             Bruno Haible  <bruno@clisp.org>
50025
50026         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50027         * modules/configmake (Include): Add a note that the include must come
50028         after all system headers.
50029         * lib/javaversion.c: Include configmake.h after all other includes.
50030
50031 2008-10-26  Bruno Haible  <bruno@clisp.org>
50032
50033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50034         HAVE_STRUCT_RANDOM_DATA to 1.
50035         (gl_STDLIB_H): Simplify.
50036
50037 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50038
50039         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50040         substitute HAVE_STRUCT_RANDOM_DATA.
50041         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50042         random_data.
50043         * modules/stdlib (Makefile.am): Substitute
50044         HAVE_STRUCT_RANDOM_DATA.
50045
50046 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50047
50048         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50049         * doc/gnulib-intro.texi (Copyright): Likewise.
50050
50051 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50052
50053         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50054         findings.
50055
50056 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50057             Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/unistd.in.h: Include <winsock2.h>.
50060         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50061         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50062         Provide dummy declarations.
50063         (gethostname): Override.
50064         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50065         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50066         gl_PREREQ_SYS_H_WINSOCK2.
50067         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50068         * doc/posix-functions/gethostname.texi: More details.
50069
50070 2008-10-25  Bruno Haible  <bruno@clisp.org>
50071
50072         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50073         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50074         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50075
50076         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50077         here ...
50078         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50079         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50080         gl_UNISTD_H_DEFAULTS.
50081
50082 2008-10-25  Eric Blake  <ebb9@byu.net>
50083
50084         signbit: avoid spurious compiler failure
50085         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50086         declarations inside function.
50087
50088 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50089             Bruno Haible  <bruno@clisp.org>
50090
50091         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50092         * modules/random_r (Depends-on): Add stdint.
50093
50094 2008-10-24  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50097         Eggert.
50098         * modules/strerror (License): Likewise.
50099
50100 2008-10-24  Jim Meyering  <meyering@redhat.com>
50101
50102         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50103         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50104
50105 2008-10-24  Eric Blake  <ebb9@byu.net>
50106
50107         getgroups: fix compilation when getgroups is available
50108         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50109         but with <config.h> override of getgroups disabled.
50110
50111 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50112
50113         * doc/gnulib.texi (Header files): Add note about C++ problems.
50114         Explained by Bruno Haible <bruno@clisp.org>.
50115
50116 2008-10-23  Bruno Haible  <bruno@clisp.org>
50117
50118         Define a dummy SA_NODEFER macro on Interix.
50119         * lib/signal.in.h (SA_NODEFER): Define fallback.
50120         Reported by Aleksey Cheusov <cheusov@tut.by> via
50121         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50122
50123 2008-10-23  Bruno Haible  <bruno@clisp.org>
50124
50125         * modules/freadahead (License): Change to LGPLv2+.
50126         Suggested by Simon Josefsson.
50127
50128 2008-10-23  Jim Meyering  <meyering@redhat.com>
50129
50130         random_r: new module
50131         * modules/random_r: New file.
50132         * m4/random_r.m4: New file.
50133         * lib/random_r.c: New file, from glibc.
50134         * modules/random_r-tests: New file.
50135         * tests/test-random_r.c: New file.
50136         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50137          Declare.
50138         (RAND_MAX): Define.
50139         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50140         * modules/stdlib: Substitute them, too.
50141         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50142         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50143         * doc/glibc-functions/random_r.texi: Likewise.
50144         * doc/glibc-functions/setstate_r.texi: Likewise.
50145         * doc/glibc-functions/srandom_r.texi: Likewise.
50146         * config/srclist.txt: Mention it.
50147
50148 2008-10-23  David Lutterkort  <lutter@redhat.com>
50149
50150         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50151         link requirement
50152
50153 2008-10-23  Jim Meyering  <meyering@redhat.com>
50154
50155         selinux-h: mark parameters of stub functions as intentionally unused
50156         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50157         * lib/se-context.in.h: Likewise.
50158
50159 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50160
50161         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50162
50163 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50164
50165         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50166
50167 2008-10-22  Eric Blake  <ebb9@byu.net>
50168
50169         glthread/thread: avoid compiler warning
50170         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50171         Add unreachable abort to silence compiler.
50172
50173 2008-10-22  Eric Blake  <ebb9@byu.net>
50174
50175         netdb: also supply struct addrinfo for cygwin 1.5.x
50176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50177         older cygwin.
50178         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50179         cygwin.
50180         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50181
50182 2008-10-22  Bruno Haible  <bruno@clisp.org>
50183
50184         * users.txt: Update entry about pspp.
50185
50186 2008-10-21  Bruno Haible  <bruno@clisp.org>
50187
50188         Simplification.
50189         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50190         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50191
50192         Simplification.
50193         * lib/ioctl.c (ioctl): Don't undefine.
50194         * lib/socket.c (socket): Don't undefine.
50195
50196         Remove unused module indicator macros.
50197         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50198         GNULIB_$1 as a C macro.
50199
50200         * doc/posix-functions/close.texi: Undo last change.
50201         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50202         Windows platforms.
50203
50204 2008-10-21  Bruno Haible  <bruno@clisp.org>
50205
50206         Add gethostname() declaration to <unistd.h>.
50207         * lib/unistd.in.h (gethostname): New declaration.
50208         * lib/gethostname.c: Include <unistd.h>.
50209         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50210         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50212         and HAVE_GETHOSTNAME.
50213         * modules/gethostname (Depends-on): Add unistd.
50214         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50215         (Include): Specify <unistd.h>.
50216         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50217         HAVE_GETHOSTNAME.
50218         * tests/test-gethostname.c: Include <unistd.h> first.
50219
50220 2008-10-21  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50223         * modules/select-tests (Depends-on): Likewise.
50224         Reported by Simon Josefsson.
50225
50226 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50227
50228         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50229         * lib/accept.c: New file, based on winsock.c.
50230         * lib/bind.c: New file, based on winsock.c.
50231         * lib/connect.c: New file, based on winsock.c.
50232         * lib/getpeername.c: New file, based on winsock.c.
50233         * lib/getsockname.c: New file, based on winsock.c.
50234         * lib/getsockopt.c: New file, based on winsock.c.
50235         * lib/ioctl.c: New file, based on winsock.c.
50236         * lib/listen.c: New file, based on winsock.c.
50237         * lib/recv.c: New file, based on winsock.c.
50238         * lib/recvfrom.c: New file, based on winsock.c.
50239         * lib/send.c: New file, based on winsock.c.
50240         * lib/sendto.c: New file, based on winsock.c.
50241         * lib/setsockopt.c: New file, based on winsock.c.
50242         * lib/shutdown.c: New file, based on winsock.c.
50243         * lib/socket.c: New file, based on winsock.c.
50244         * lib/w32sock.h: New file, based on winsock.c.
50245         * lib/winsock.c: Remove file.
50246         * modules/accept: Likewise.
50247         * modules/bind: Likewise.
50248         * modules/connect: Likewise.
50249         * modules/getpeername: Likewise.
50250         * modules/getsockname: Likewise.
50251         * modules/getsockopt: Likewise.
50252         * modules/ioctl: Likewise.
50253         * modules/listen: Likewise.
50254         * modules/recv: Likewise.
50255         * modules/recvfrom: Likewise.
50256         * modules/send: Likewise.
50257         * modules/sendto: Likewise.
50258         * modules/setsockopt: Likewise.
50259         * modules/shutdown: Likewise.
50260         * modules/socket: Use socket.c instead of winsock.c.
50261         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50262         * doc/posix-functions/accept.texi: Doc fix.
50263         * doc/posix-functions/bind.texi: Doc fix.
50264         * doc/posix-functions/close.texi: Doc fix.
50265         * doc/posix-functions/connect.texi: Doc fix.
50266         * doc/posix-functions/getpeername.texi: Doc fix.
50267         * doc/posix-functions/getsockname.texi: Doc fix.
50268         * doc/posix-functions/getsockopt.texi: Doc fix.
50269         * doc/posix-functions/ioctl.texi: Doc fix.
50270         * doc/posix-functions/listen.texi: Doc fix.
50271         * doc/posix-functions/recv.texi: Doc fix.
50272         * doc/posix-functions/recvfrom.texi: Doc fix.
50273         * doc/posix-functions/send.texi: Doc fix.
50274         * doc/posix-functions/sendto.texi: Doc fix.
50275         * doc/posix-functions/setsockopt.texi: Doc fix.
50276         * doc/posix-functions/shutdown.texi: Doc fix.
50277         * doc/posix-functions/socket.texi: Doc fix.
50278
50279 2008-10-20  Bruno Haible  <bruno@clisp.org>
50280
50281         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50282         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50283         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50284         as an alias for SIGABRT.
50285         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50286         (sigaction): Map it to SIGABRT.
50287         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50288
50289 2008-10-20  Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/fts.c: Don't include lstat.h.
50292         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50293
50294         Move the lstat() declaration to <sys/stat.h>.
50295         * lib/lstat.h: Remove file.
50296         * lib/sys_stat.in.h: Add special invocation convention.
50297         (lstat): New declaration.
50298         * lib/lstat.c (orig_lstat): New function.
50299         (rpl_lstat): Use orig_lstat instead of lstat.
50300         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50301         AC_C_INLINE. Set REPLACE_LSTAT.
50302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50303         and REPLACE_LSTAT.
50304         * modules/lstat (Files): Remove lib/lstat.h.
50305         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50306         (Include): Specify <sys/stat.h> instead of lstat.h.
50307         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50308         REPLACE_LSTAT.
50309         * NEWS: Mention the change.
50310
50311 2008-10-20  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/posix_spawn-tests: New file.
50314         * tests/test-posix_spawn3.c: New file.
50315
50316 2008-10-20  Bruno Haible  <bruno@clisp.org>
50317
50318         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50319         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50320         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50321         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50322         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50323
50324 2008-10-20  Bruno Haible  <bruno@clisp.org>
50325
50326         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50327         of posix_spawn on AIX 5.3.
50328
50329 2008-10-20  Bruno Haible  <bruno@clisp.org>
50330
50331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50332
50333 2008-10-20  Bruno Haible  <bruno@clisp.org>
50334
50335         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50336         of AC_LANG_PROGRAM.
50337
50338 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50339
50340         * lib/netdb.in.h: Don't define GNU specific constants until they
50341         are supported or needed.  Reported by Bruno Haible
50342         <bruno@clisp.org>.
50343
50344 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50345
50346         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50347
50348 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50349
50350         * lib/getaddrinfo.h: Remove file.
50351         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50352         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50353         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50354         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50355         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50356         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50357         * tests/test-getaddrinfo.c: Likewise.
50358         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50359         * NEWS: Mention change.
50360
50361 2008-10-19  Bruno Haible  <bruno@clisp.org>
50362
50363         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50364
50365 2008-10-19  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/wait-process.c: Include simply <sys/wait.h>.
50368         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50369         WIFSTOPPED): Remove fallback definitions.
50370         * modules/wait-process (Depends-on): Add sys_wait.
50371
50372         New module 'sys_wait'.
50373         * modules/sys_wait: New file.
50374         * lib/sys_wait.in.h: New file, partially copied from
50375         lib/wait-process.c.
50376         * m4/sys_wait_h.m4: New file.
50377         * doc/posix-headers/sys_wait.texi: Mention the new module.
50378
50379 2008-10-19  Bruno Haible  <bruno@clisp.org>
50380
50381         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50382
50383 2008-10-19  Bruno Haible  <bruno@clisp.org>
50384
50385         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50386         * lib/wait-process.c (WAIT_T): Remove type.
50387         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50388         (wait_subprocess): Update.
50389
50390 2008-10-19  Bruno Haible  <bruno@clisp.org>
50391
50392         New module 'atoll'.
50393         * modules/atoll: New file.
50394         * lib/stdlib.in.h (atoll): New declaration.
50395         * lib/atoll.c: New file, from glibc with modifications.
50396         * m4/atoll.m4: New file.
50397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50398         HAVE_ATOLL.
50399         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50400         * doc/posix-functions/atoll.texi: Mention the new module.
50401
50402 2008-10-19  Bruno Haible  <bruno@clisp.org>
50403
50404         Add strtoull() declaration to <stdlib.h>.
50405         * lib/stdlib.in.h (strtoull): New declaration.
50406         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50407         Set HAVE_STRTOULL.
50408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50409         HAVE_STRTOULL.
50410         * modules/strtoull (Depends-on): Add stdlib.
50411         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50412         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50413         HAVE_STRTOULL.
50414
50415 2008-10-19  Bruno Haible  <bruno@clisp.org>
50416
50417         Add strtoll() declaration to <stdlib.h>.
50418         * lib/stdlib.in.h (strtoll): New declaration.
50419         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50420         Set HAVE_STRTOLL.
50421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50422         HAVE_STRTOLL.
50423         * modules/strtoll (Depends-on): Add stdlib.
50424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50425         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50426
50427 2008-10-19  Bruno Haible  <bruno@clisp.org>
50428
50429         * modules/bcopy (Depends-on): Add strings.
50430         (Include): Specify <strings.h>.
50431
50432 2008-10-19  Bruno Haible  <bruno@clisp.org>
50433
50434         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50435
50436 2008-10-19  Bruno Haible  <bruno@clisp.org>
50437
50438         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50439         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50440         mingw.
50441
50442 2008-10-19  Bruno Haible  <bruno@clisp.org>
50443
50444         * lib/atanl.c: Don't include isnanl.h.
50445         * lib/cosl.c: Likewise.
50446         * lib/ldexpl.c: Likewise.
50447         * lib/logl.c: Likewise.
50448         * lib/sinl.c: Likewise.
50449         * lib/sqrtl.c: Likewise.
50450         * lib/tanl.c: Likewise.
50451
50452         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50453         * lib/isnanf.h: Remove file.
50454         * lib/isnand.h: Remove file.
50455         * lib/isnanl.h: Remove file.
50456         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50457         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50458         macros.
50459         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50460         HAVE_ISNANF, don't define it as a C macro.
50461         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50462         HAVE_ISNAND, don't define it as a C macro.
50463         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50464         HAVE_ISNANL, don't define it as a C macro.
50465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50466         HAVE_ISNAN[FDL].
50467         * modules/isnanf (Files): Remove lib/isnanf.h.
50468         (Depends-on): Add math.
50469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50470         (Include): Specify <math.h> instead of isnanf.h.
50471         * modules/isnand (Files): Remove lib/isnand.h.
50472         (Depends-on): Add math.
50473         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50474         (Include): Specify <math.h> instead of isnand.h.
50475         * modules/isnanl (Files): Remove lib/isnanl.h.
50476         (Depends-on): Add math.
50477         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50478         (Include): Specify <math.h> instead of isnanl.h.
50479         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50480         HAVE_ISNAN[FDL].
50481         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50482         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50483         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50484         * NEWS: Mention the change.
50485
50486 2008-10-18  Bruno Haible  <bruno@clisp.org>
50487
50488         Add getusershell(), setusershell(), endusershell() declarations to
50489         <unistd.h>.
50490         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50491         declarations.
50492         * lib/getusershell.c: Include unistd.h.
50493         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50494         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50495         HAVE_GETUSERSHELL.
50496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50497         and HAVE_GETUSERSHELL.
50498         * modules/getusershell (Depends-on): Add unistd, extensions.
50499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50500         (Include): Specify <unistd.h>.
50501         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50502         HAVE_GETUSERSHELL.
50503
50504 2008-10-18  Bruno Haible  <bruno@clisp.org>
50505
50506         Add a getloadavg() declaration to <stdlib.h>.
50507         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50508         getloadavg declaration.
50509         (getloadavg): New declaration.
50510         * lib/getloadavg.c: Include <stdlib.h> first.
50511         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50512         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50513         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50515         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50516         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50517         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50518         (Include): Specify <stdlib.h>.
50519         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50520         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50521
50522 2008-10-18  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/dirchownmod.c: Don't include lchmod.h.
50525
50526         Move the lchmod() declaration to <sys/stat.h>.
50527         * lib/lchmod.h: Remove file.
50528         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50529         (lchmod): New declaration, moved here from lib/lchown.h.
50530         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50531         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50532         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50533         and HAVE_LCHMOD.
50534         * modules/lchmod (Files): Remove lib/lchmod.h.
50535         (Depends-on): Add sys_stat, extensions.
50536         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50537         (Include): Specify <sys/stat.h> instead of lchmod.h.
50538         * modules/sys_stat (Depends-on): Add link-warning.
50539         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50540         definition of GL_LINK_WARNING.
50541         * NEWS: Mention the change.
50542
50543 2008-10-18  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/fchdir.c: Don't include dirfd.h.
50546         * lib/fts.c: Likewise.
50547         * lib/getcwd.c: Likewise.
50548         * lib/glob.c: Likewise.
50549
50550         Move the dirfd() declaration to <dirent.h>.
50551         * lib/dirfd.h: Remove file.
50552         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50553         (dirfd): New declaration.
50554         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50555         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50556         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50557         HAVE_DECL_DIRFD.
50558         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50559         HAVE_DECL_DIRFD.
50560         * modules/dirfd (Files): Remove lib/dirfd.h.
50561         (Depends-on): Add dirent, extensions.
50562         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50563         (Include): Specify <dirent.h> instead of dirfd.h.
50564         * modules/dirent (Depends-on): Add link-warning.
50565         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50566         definition of GL_LINK_WARNING.
50567         * NEWS: Mention the change.
50568
50569 2008-10-18  Bruno Haible  <bruno@clisp.org>
50570
50571         Move the euidaccess() declaration to <unistd.h>.
50572         * lib/euidaccess.h: Remove file.
50573         * lib/unistd.in.h (euidaccess): New declaration.
50574         * lib/euidaccess.c: Don't include euidaccess.h.
50575         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50576         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50578         and HAVE_EUIDACCESS.
50579         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50580         (Depends-on): Add unistd.
50581         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50582         (Include): Specify <unistd.h> instead of euidaccess.h.
50583         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50584         HAVE_EUIDACCESS.
50585         * NEWS: Mention the change.
50586
50587 2008-10-18  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50590
50591         Move the getdomainname() declaration to <unistd.h>.
50592         * lib/getdomainname.h: Remove file.
50593         * lib/unistd.in.h (getdomainname): New declaration.
50594         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50595         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50596         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50597         HAVE_GETDOMAINNAME.
50598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50599         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50600         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50601         (Depends-on): Add unistd, extensions.
50602         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50603         (Includes): Specify <unistd.h> instead of getdomainname.h.
50604         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50605         HAVE_GETDOMAINNAME.
50606         * NEWS: Mention the change.
50607
50608 2008-10-18  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/dirent: New file.
50611         * m4/dirent_h.m4: New file.
50612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50613         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50614         * modules/fchdir (Files): Remove lib/dirent.in.h.
50615         (Depends-on): Add dirent.
50616         (Makefile.am): Move rules to modules/dirent.
50617         * doc/posix-headers/dirent.texi: Mention the new module.
50618
50619 2008-10-18  Bruno Haible  <bruno@clisp.org>
50620
50621         Avoid -Wunused-parameter warnings in public gnulib header files.
50622         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50623         macro.
50624         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50625
50626 2008-10-18  Bruno Haible  <bruno@clisp.org>
50627
50628         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50629         * doc/glibc-functions/error.texi: Mention the module 'error'.
50630         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50631         * doc/glibc-functions/getdomainname.texi: Mention the module
50632         'getdomainname'.
50633         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50634         * doc/glibc-functions/getpagesize.texi: Mention the module
50635         'getpagesize'.
50636         * doc/glibc-functions/getusershell.texi: Mention the module
50637         'getusershell'.
50638         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50639         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50640         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50641         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50642         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50643         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50644         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50645         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50646         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50647         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50648         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50649         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50650         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50651         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50652
50653 2008-10-17  Bruno Haible  <bruno@clisp.org>
50654
50655         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50656         HP-UX and IRIX, use -0.0L.
50657         * tests/test-ceill.c (minus_zero): Likewise.
50658         * tests/test-floorl.c (minus_zero): Likewise.
50659         * tests/test-frexpl.c (minus_zero): Likewise.
50660         * tests/test-isnan.c (minus_zerol): Likewise.
50661         * tests/test-isnanl.h (minus_zero): Likewise.
50662         * tests/test-ldexpl.c (minus_zero): Likewise.
50663         * tests/test-roundl.c (minus_zero): Likewise.
50664         * tests/test-signbit.c (minus_zerol): Likewise.
50665         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50666         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50667         * tests/test-truncl.c (minus_zero): Likewise.
50668         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50669         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50670         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50671         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50672
50673 2008-10-17  Bruno Haible  <bruno@clisp.org>
50674
50675         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50676         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50677         that it gets activated only for gcc >= 3.0.
50678         * lib/dirent.in.h: Likewise.
50679         * lib/errno.in.h: Likewise.
50680         * lib/fcntl.in.h: Likewise.
50681         * lib/float.in.h: Likewise.
50682         * lib/iconv.in.h: Likewise.
50683         * lib/inttypes.in.h: Likewise.
50684         * lib/locale.in.h: Likewise.
50685         * lib/math.in.h: Likewise.
50686         * lib/netdb.in.h: Likewise.
50687         * lib/netinet_in.in.h: Likewise.
50688         * lib/search.in.h: Likewise.
50689         * lib/signal.in.h: Likewise.
50690         * lib/spawn.in.h: Likewise.
50691         * lib/stdarg.in.h: Likewise.
50692         * lib/stdint.in.h: Likewise.
50693         * lib/stdio.in.h: Likewise.
50694         * lib/stdlib.in.h: Likewise.
50695         * lib/string.in.h: Likewise.
50696         * lib/strings.in.h: Likewise.
50697         * lib/sys_file.in.h: Likewise.
50698         * lib/sys_ioctl.in.h: Likewise.
50699         * lib/sys_select.in.h: Likewise.
50700         * lib/sys_socket.in.h: Likewise.
50701         * lib/sys_stat.in.h: Likewise.
50702         * lib/sys_time.in.h: Likewise.
50703         * lib/sysexits.in.h: Likewise.
50704         * lib/time.in.h: Likewise.
50705         * lib/unistd.in.h: Likewise.
50706         * lib/wchar.in.h: Likewise.
50707         * lib/wctype.in.h: Likewise.
50708         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50709
50710 2008-10-17  Jim Meyering  <meyering@redhat.com>
50711
50712         ignore-value: don't depend on inline module
50713         * modules/ignore-value (Depends-on): Remove 'inline'.
50714         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50715         Suggestion from Bruno Haible.
50716
50717 2008-10-17  Bruno Haible  <bruno@clisp.org>
50718
50719         New implementation of condition variables for Win32.
50720         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50721         (gl_linked_waitqueue_t): New type.
50722         (gl_cond_t): Use it.
50723         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50724         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50725         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50726         (glthread_cond_init_func, glthread_cond_wait_func,
50727         glthread_cond_timedwait_func, glthread_cond_signal_func,
50728         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50729         Reimplemented on the basis of gl_linked_waitqueue_t.
50730         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50731         gl_waitqueue_t.
50732         (gl_rwlock_t): Update.
50733         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50734
50735 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50736
50737         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50738         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50739
50740 2008-10-17  Jim Meyering  <meyering@redhat.com>
50741
50742         ignore-value: new module
50743         * modules/ignore-value: New file.
50744         * lib/ignore-value.h: New file.
50745         * MODULES.html.sh (Compiler warning management): New section,
50746         just for this module.  More to come.
50747
50748 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50751         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50752         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50753
50754 2008-10-16  Jim Meyering  <meyering@redhat.com>
50755
50756         openat-die.c: avoid 'no previous prototype' warning
50757         * lib/openat-die.c: Include "openat.h".
50758         Reported by Reuben Thomas <rrt@sc3d.org>.
50759
50760 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50761
50762         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50763         * lib/netdb.in.h: Fix typo.
50764         Reported by Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/netdb.in.h: Include sys/socket.h for platforms without
50767         netdb.h, to get structures like hostent on MinGW.
50768         * modules/netdb (Depends-on): Add sys_socket.
50769
50770 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50771
50772         * modules/netdb, modules/netdb-tests: New file.
50773         * m4/netdb_h.m4: New file.
50774         * lib/netdb.in.h: Add, currently just an empty file pending
50775         definitions.
50776         * tests/test-netdb.c: New file.
50777         * doc/posix-headers/netdb.texi: Mention that we replace it if
50778         needed.
50779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50780         netdb.
50781
50782 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50783
50784         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50785         with code.
50786
50787 2008-10-13  Bruno Haible  <bruno@clisp.org>
50788
50789         * lib/glthread/cond.c (glthread_cond_wait_func,
50790         glthread_cond_timedwait_func): Add a comment.
50791
50792 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50793
50794         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50795         * tests/test-select.c: Likewise,
50796
50797 2008-10-13  Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/glthread/cond.c (glthread_cond_wait_func,
50800         glthread_cond_timedwait_func): Fix variable name.
50801         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50802
50803 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50804
50805         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50807         struct sockaddr.sa_len.
50808         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50809
50810 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50811
50812         * build-aux/pmccabe2html: Add css and css_url parameters.
50813
50814 2008-10-12  Bruno Haible  <bruno@clisp.org>
50815
50816         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50817         calling aclx_get.
50818         Reported by Rainer Tammer <tammer@tammer.net>.
50819
50820 2008-10-12  Bruno Haible  <bruno@clisp.org>
50821
50822         Use msvcrt aware primitives for creation/termination of Win32 threads.
50823         * lib/glthread/thread.c: Include <process.h>.
50824         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50825         (wrapper_func): Update signature.
50826         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50827
50828 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50829             Bruno Haible  <bruno@clisp.org>
50830
50831         Provide a Win32 implementation of the 'cond' module.
50832         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50833         * lib/glthread/cond.c (glthread_cond_init_func,
50834         glthread_cond_wait_func, glthread_cond_timedwait_func,
50835         glthread_cond_signal_func, glthread_cond_broadcast_func,
50836         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50837         * modules/cond (Dependencies): Add gettimeofday.
50838
50839 2008-10-11  Bruno Haible  <bruno@clisp.org>
50840
50841         Make sleep work on older versions of mingw.
50842         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50843         only whether it exists.
50844         * doc/posix-functions/sleep.texi: Mention the problem with older
50845         versions of mingw.
50846
50847 2008-10-11  Bruno Haible  <bruno@clisp.org>
50848
50849         New module 'shutdown'.
50850         * modules/shutdown: New file.
50851         * lib/sys_socket.in.h (shutdown): New declaration.
50852         * lib/winsock.c (shutdown): New function.
50853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50854         GNULIB_SHUTDOWN.
50855         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50856         * doc/posix-functions/shutdown.texi: Document the new module.
50857
50858 2008-10-11  Jim Meyering  <meyering@redhat.com>
50859
50860         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50861
50862 2008-10-11  Bruno Haible  <bruno@clisp.org>
50863
50864         New module 'fclose'.
50865         * modules/fclose: New file.
50866         * lib/stdio.in.h (fclose): New declaration.
50867         * lib/fclose.c: New file.
50868         * m4/fclose.m4: New file.
50869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50870         REPLACE_FCLOSE.
50871         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50872         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50873         REPLACE_FCLOSE.
50874         * modules/close (Depends-on): fclose.
50875         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50876
50877 2008-10-11  Bruno Haible  <bruno@clisp.org>
50878
50879         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50880         set errno and don't call _close.
50881
50882 2008-10-10  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50885         ACL, not afterwards. Fixes test failure on Cygwin.
50886
50887 2008-10-09  Ben Pfaff  <blp@gnu.org>
50888
50889         * build-aux/announce-gen: Fix gnulib version related part of usage
50890         message.  Die with a useful error message if no tarballs are
50891         found.
50892
50893 2008-10-10  Jim Meyering  <meyering@redhat.com>
50894
50895         bootstrap: use git's --depth=N option only if it's supported
50896         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50897         recognize the --depth option.  Reported by Pádraig Brady.
50898
50899 2008-10-09  Bruno Haible  <bruno@clisp.org>
50900
50901         New module 'ioctl'.
50902         * modules/ioctl: New file.
50903         * lib/sys_socket.in.h (ioctl): Remove declaration.
50904         * lib/winsock.c: Include <sys/ioctl.h>.
50905         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50906         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50907         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50908         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50909         * doc/posix-functions/ioctl.texi: Mention the new module.
50910
50911 2008-10-09  Bruno Haible  <bruno@clisp.org>
50912
50913         New module 'sys_ioctl'.
50914         * lib/sys_ioctl.in.h: New file.
50915         * m4/sys_ioctl_h.m4: New file.
50916         * modules/sys_ioctl: New file.
50917         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50918
50919 2008-10-09  Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50922         * lib/winsock.c: Include <stdarg.h>.
50923         (rpl_ioctl): Change to second argument 'int' and then varargs.
50924
50925 2008-10-09  Bruno Haible  <bruno@clisp.org>
50926
50927         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50928         when the sys_socket module is present and the system has <winsock2.h>.
50929
50930 2008-10-09  Bruno Haible  <bruno@clisp.org>
50931
50932         * doc/posix-functions/close.texi: Mention module 'close' instead of
50933         module 'sys_socket'.
50934
50935 2008-10-09  Bruno Haible  <bruno@clisp.org>
50936
50937         * doc/glibc-headers/sys_ioctl.texi: New file.
50938         * doc/gnulib.texi: Include it.
50939
50940 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50941             Bruno Haible  <bruno@clisp.org>
50942
50943         Combine the two replacements of 'close'.
50944         * lib/sys_socket.in.h (close): Define to a reminder to include
50945         <unistd.h>.
50946         (_gl_close_fd_maybe_socket): New declaration.
50947         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50948         * lib/winsock.c (close): Remove undefinition.
50949         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50950         needed for the gnulib module 'close'.
50951         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50952         define to an error symbol or to a warning, if suitable.
50953         * lib/close.c: Include <sys/socket.h>.
50954         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50955         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50956         UNISTD_H_HAVE_WINSOCK2_H.
50957         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50959         UNISTD_H_HAVE_WINSOCK2_H.
50960         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50961         (configure.ac): Set a module indicator.
50962         (Makefile.am): Substitute GNULIB_CLOSE.
50963         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50964         * modules/poll-tests (Depends-on): Add close.
50965         * modules/select-tests (Depends-on): Likewise.
50966
50967 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50968             Bruno Haible  <bruno@clisp.org>
50969
50970         New module 'close'.
50971         * modules/close: New file.
50972         * lib/unistd.in.h (close): Move declaration out of the
50973         FCHDIR_REPLACEMENT scope.
50974         (_gl_unregister_fd): New declaration.
50975         * lib/close.c: New file.
50976         * lib/fchdir.c (rpl_close): Remove function.
50977         * m4/close.m4: New file.
50978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50979         close.
50980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50981         REPLACE_CLOSE.
50982         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50983         REPLACE_CLOSE.
50984         * modules/fchdir (Depends-on): Add close.
50985
50986 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50987             Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/fcntl.in.h (open): Simplify conditionals.
50990         (_gl_register_fd): New declaration.
50991         * lib/fchdir.c (rpl_open): Remove function.
50992         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50993         also.
50994         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50996         open.
50997
50998 2008-10-09  Jim Meyering  <meyering@redhat.com>
50999
51000         GNUmakefile: use the more name-space-friendly "_version"
51001         * top/GNUmakefile (_dummy): Update.
51002         (_version): Rename from "version".
51003
51004 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51005             Bruno Haible  <bruno@clisp.org>
51006
51007         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51008         rpl_close.
51009         (_gl_register_fd): New function, extracted from rpl_open.
51010         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51011         (rpl_open, rpl_opendir): Use _gl_register_fd.
51012
51013 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51014
51015         Fix organization of 'open' replacement.
51016         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51017         (gl_FUNC_OPEN): Use it.
51018         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51019
51020 2008-10-08  Bruno Haible  <bruno@clisp.org>
51021
51022         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51023
51024 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51025
51026         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51027         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51028         listen).
51029
51030 2008-10-08  Eric Blake  <ebb9@byu.net>
51031
51032         GNUmakefile: add 'make version' target
51033         * top/GNUmakefile (_curr-ver): Split version update rules...
51034         (version): ...into a target.
51035
51036 2008-10-07  Bruno Haible  <bruno@clisp.org>
51037
51038         Use a more portable replacement expression for -0.0L.
51039         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51040         instead of -0.0L. Fix m4 quotation.
51041
51042         * tests/test-signbit.c: Include <float.h>.
51043         (minus_zero): New variable.
51044         (test_signbitl): Use minus_zero instead of -zero.
51045         * modules/signbit-tests (Depends-on): Add float.
51046
51047         * tests/test-ceill.c: Include <float.h>.
51048         (zero): Remove variable.
51049         (minus_zero): New variable.
51050         (main): Use minus_zero instead of -zero.
51051         * modules/ceill-tests (Depends-on): Add float.
51052
51053         * tests/test-floorl.c: Include <float.h>.
51054         (zero): Remove variable.
51055         (minus_zero): New variable.
51056         (main): Use minus_zero instead of -zero.
51057         * modules/floorl-tests (Depends-on): Add float.
51058
51059         * tests/test-roundl.c: Include <float.h>.
51060         (zero): Remove variable.
51061         (minus_zero): New variable.
51062         (main): Use minus_zero instead of -zero.
51063         * modules/roundl-tests (Depends-on): Add float.
51064
51065         * tests/test-truncl.c: Include <float.h>.
51066         (zero): Remove variable.
51067         (minus_zero): New variable.
51068         (main): Use minus_zero instead of -zero.
51069         * modules/truncl-tests (Depends-on): Add float.
51070
51071         * tests/test-frexpl.c (zero): Remove variable.
51072         (minus_zero): New variable.
51073         (main): Use minus_zero instead of -zero.
51074         * modules/frexpl-tests (Depends-on): Add float.
51075
51076         * tests/test-isnan.c (zerol): Remove variable.
51077         (minus_zerol): New variable.
51078         (test_long_double): Use minus_zerol instead of -zerol.
51079         * modules/isnan-tests (Depends-on): Add float.
51080
51081         * tests/test-isnanl.h (zero): Remove variable.
51082         (minus_zero): New variable.
51083         (main): Use minus_zero instead of -zero.
51084         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51085         * modules/isnanl-tests (Depends-on): Add float.
51086
51087         * tests/test-ldexpl.c (zero): Remove variable.
51088         (minus_zero): New variable.
51089         (main): Use minus_zero instead of -zero.
51090         * modules/ldexpl-tests (Depends-on): Add float.
51091
51092         * tests/test-snprintf-posix.h (zerol): Remove variable.
51093         (minus_zerol): New variable.
51094         (test_function): Use minus_zerol instead of -zerol.
51095         * modules/snprintf-posix-tests (Depends-on): Add float.
51096         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51097
51098         * tests/test-sprintf-posix.h (zerol): Remove variable.
51099         (minus_zerol): New variable.
51100         (test_function): Use minus_zerol instead of -zerol.
51101         * modules/sprintf-posix-tests (Depends-on): Add float.
51102         * modules/vsprintf-posix-tests (Depends-on): Add float.
51103
51104         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51105         (minus_zerol): New variable.
51106         (test_function): Use minus_zerol instead of -zerol.
51107         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51108
51109         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51110         (minus_zerol): New variable.
51111         (test_function): Use minus_zerol instead of -zerol.
51112         * modules/vasprintf-posix-tests (Depends-on): Add float.
51113
51114 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51115
51116         * MODULES.html.sh (Support for building documentation): Mention
51117         pmccabe2html.  Sort entries.
51118
51119         Add pmccabe2html module, from gnupdf.
51120         * build-aux/pmccabe.css: New file.
51121         * build-aux/pmccabe2html: New file.
51122         * m4/pmccabe2html.m4: New file.
51123         * modules/pmccabe2html: New file.
51124
51125 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51126
51127         flock: new module
51128         * MODULES.html.sh: Add to list of modules.
51129         * lib/flock.c: flock implementation for Windows and Unix systems
51130         which have fcntl.
51131         * doc/glibc-functions/flock.texi: Update documentation.
51132         * lib/sys_file.in.h: <sys/file.h> header file.
51133         * m4/flock.m4: M4 macros.
51134         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51135         * modules/flock: flock module.
51136         * modules/flock-tests: flock tests module.
51137         * modules/sys_file: sys/file.h module.
51138         * tests/test-flock.c: test suite for flock.
51139
51140 2008-10-06  Jim Meyering  <meyering@redhat.com>
51141
51142         bootstrap: check for LT_INIT more portably still ;-)
51143         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51144         Spotted by Bruno Haible.
51145
51146 2008-10-06  Eric Blake  <ebb9@byu.net>
51147
51148         test-signbit: avoid tripping Irix cc bug on -0.0L
51149         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51150         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51151         entire testsuite consistent and avoids an Irix 6.2 bug.
51152
51153 2008-10-05  Bruno Haible  <bruno@clisp.org>
51154             Jim Meyering  <jim@meyering.net>
51155
51156         Add an option for ignoring EPIPE during close_stdout.
51157         * lib/closeout.h: Include <stdbool.h>.
51158         (close_stdout_set_ignore_EPIPE): New declaration.
51159         * lib/closeout.c: Include <stdbool.h>.
51160         (ignore_EPIPE): New variable.
51161         (close_stdout_set_ignore_EPIPE): New function.
51162         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51163         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51164         failure.
51165         * modules/closeout (Depends-on): Add stdbool.
51166
51167 2008-10-05  Bruno Haible  <bruno@clisp.org>
51168
51169         * modules/accept: New file.
51170         * modules/bind: New file.
51171         * modules/connect: New file.
51172         * modules/getpeername: New file.
51173         * modules/getsockname: New file.
51174         * modules/getsockopt: New file.
51175         * modules/listen: New file.
51176         * modules/recv: New file.
51177         * modules/recvfrom: New file.
51178         * modules/send: New file.
51179         * modules/sendto: New file.
51180         * modules/setsockopt: New file.
51181         * modules/socket: New file.
51182         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51183         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51184         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51185         the particular module is requested. Add a link warning when the
51186         particular module is not requested.
51187         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51188         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51189         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51190         the particular module is requested.
51191         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51192         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51193         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51194         * modules/sys_socket (Depends-on): Add link-warning.
51195         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51196         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51197         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51198         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51199         GL_LINK_WARNING.
51200         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51201         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51202         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51203         * doc/posix-functions/getpeername.texi: Mention the new module
51204         'getpeername'.
51205         * doc/posix-functions/getsockname.texi: Mention the new module
51206         'getsockname'.
51207         * doc/posix-functions/getsockopt.texi: Mention the new module
51208         'getsockopt'.
51209         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51210         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51211         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51212         * doc/posix-functions/send.texi: Mention the new module 'send'.
51213         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51214         * doc/posix-functions/setsockopt.texi: Mention the new module
51215         'setsockopt'.
51216         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51217         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51218         listen, connect, accept.
51219         * modules/select-tests (Depends-on): Likewise.
51220
51221 2008-10-05  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/winsock.c (strerror): Remove unused #undef.
51224         (rpl_close): Remove unused local variable.
51225
51226         * modules/sys_socket (Depends-on); Add errno.
51227
51228 2008-10-05  Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51231         (select): Add a link warning when the 'select' module is not used.
51232         * modules/sys_select (Depends-on): Add link-warning.
51233         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51234         Suggested by Paolo Bonzini.
51235
51236 2008-10-05  Jim Meyering  <meyering@redhat.com>
51237
51238         bootstrap: check for LT_INIT more portably
51239         * build-aux/bootstrap: Avoid using grep -E, since it's not
51240         portable enough.  Suggestion from Bruno Haible.
51241
51242 2008-10-05  Bruno Haible  <bruno@clisp.org>
51243
51244         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51245         as being fixed by gnulib.
51246
51247 2008-10-05  Bruno Haible  <bruno@clisp.org>
51248
51249         * modules/select-tests: New file, mostly copied from
51250         modules/sys_select-tests.
51251         * tests/test-select.c: New file, mostly copied from
51252         tests/test-sys_select.c.
51253         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51254         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51255         (Makefile.am): Remove test_sys_select_LDADD.
51256
51257         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51258         to an undefined symbol, for an error message.
51259         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51260         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51261         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51262         winsock-select.c here.
51263         * modules/sys_select (Files): Remove lib/winsock-select.c.
51264         (Depends-on): Remove alloca.
51265         (Makefile.am): Substitute GNULIB_SELECT.
51266         * modules/select: New file.
51267         * doc/posix-functions/select.texi: Update.
51268
51269 2008-10-05  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51272         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51273         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51274         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51275         getdtablesize.
51276         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51277         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51278
51279 2008-10-05  Bruno Haible  <bruno@clisp.org>
51280
51281         * modules/getdtablesize-tests: New file.
51282         * tests/test-getdtablesize.c: New file.
51283
51284         New module 'getdtablesize'.
51285         * lib/unistd.in.h (getdtablesize): New declaration.
51286         * lib/getdtablesize.c: New file.
51287         * m4/getdtablesize.m4: New file.
51288         * modules/getdtablesize: New file.
51289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51290         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51291         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51292         HAVE_GETDTABLESIZE.
51293         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51294
51295 2008-10-05  Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/sched (Makefile.am): Fix typo.
51298         Reported by Simon Josefsson.
51299
51300 2008-10-05  Jim Meyering  <meyering@redhat.com>
51301
51302         bootstrap: check for LT_INIT, too
51303         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51304         are deprecated.  Suggestion from Ralf Wildenhues.
51305
51306 2008-10-05  Bruno Haible  <bruno@clisp.org>
51307
51308         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51309         overriding them by ours.
51310         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51311
51312 2008-10-05  Jim Meyering  <meyering@redhat.com>
51313
51314         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51315         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51316         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51317
51318 2008-10-04  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/dup2 (License): Change to LGPLv2+.
51321         * modules/sleep (License): Likewise.
51322         * modules/perror (License): Likewise.
51323         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51324         Blake.
51325         * modules/signal (License): Likewise.
51326         * modules/sigprocmask (License): Likewise.
51327         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51328         Meyering.
51329
51330 2008-10-04  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51333         Reported by Rainer Tammer <tammer@tammer.net>.
51334
51335 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51336             Bruno Haible  <bruno@clisp.org>
51337
51338         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51339         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51340         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51341
51342 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51343
51344         filevercmp: new module
51345         * lib/filevercmp.h: New function filevercmp comparing version strings.
51346         * lib/filevercmp.c: Implementation of filevercmp function.
51347         * modules/filevercmp: Module metadata.
51348         * tests/test-filevercmp.c: Unit test for new module.
51349         * modules/filevercmp-tests: Unit test metadata.
51350         * MODULES.html.sh: Add filevercmp module.
51351
51352 2008-10-03  Bruno Haible  <bruno@clisp.org>
51353
51354         * lib/c-ctype.h: Add comment.
51355         Reported by Jim Meyering.
51356
51357 2008-10-02  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51360
51361 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51362
51363         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51364         name of bootstrap.conf accordingly.
51365
51366 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51367
51368         * build-aux/bootstrap: Install git-merge-changelog configuration
51369         items into .gitconfig if needed.
51370
51371 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51372
51373         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51374         git repository, and initialize/update it accordingly.
51375
51376 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51377
51378         * modules/fsync-tests: New file.
51379         * tests/test-fsync.c: New file.
51380
51381         New module 'fsync'.
51382         * lib/fsync.c: New file.
51383         * m4/fsync.m4: New file.
51384         * modules/fsync: New file.
51385         * lib/unistd.in.h (fsync): New declaration.
51386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51387         GNULIB_FSYNC and HAVE_FSYNC.
51388         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51389         * MODULES.html.sh (posix_functions): Add fsync.
51390         * doc/posix-functions/fsync.texi: Mention the new module.
51391
51392 2008-10-02  Jim Meyering  <meyering@redhat.com>
51393
51394         fts.c: sync with similar code from coreutils' remove.c
51395         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51396         Guard also with "#if defined __linux__", since for now at least,
51397         this code is Linux-kernel-specific.
51398
51399 2008-10-02  Jim Meyering  <meyering@redhat.com>
51400
51401         fts: bug fixes
51402         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51403         Include <sys/vfs.h>, not <sys/statfs.h>.
51404
51405         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51406         Include <sys/vfs.h>, not <sys/statfs.h>.
51407
51408 2008-10-01  Bruno Haible  <bruno@clisp.org>
51409
51410         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51412         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51413         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51414         * doc/posix-functions/posix_spawnp.texi: Likewise.
51415         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51416         whether posix_spawn actually works.
51417         * m4/pipe.m4 (gl_PIPE): Likewise.
51418         * modules/execute (Files): Add m4/posix_spawn.m4.
51419         * modules/pipe (Files): Add m4/posix_spawn.m4.
51420         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51421
51422 2008-10-01  Jim Meyering  <meyering@redhat.com>
51423
51424         remove trailing spaces
51425         * NEWS: Likewise.
51426         * lib/poll.c (poll): Likewise.
51427         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51428         * lib/winsock.c (rpl_close): Likewise.
51429         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51430         * modules/yield: Likewise.
51431         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51432         * tests/test-sys_select.c (connect_to_socket): Likewise.
51433
51434         fts.c: adjust a new interface to be more generally useful
51435         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51436         (fts_build): Adjust caller.
51437
51438 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51439
51440         * modules/cond-tests: New file.
51441         * tests/test-cond.c: New file.
51442
51443 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51444             Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/cond (Dependencies): Add errno, time.
51447         * lib/glthread/cond.h: Include <time.h>.
51448         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51449         across platforms.
51450
51451 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51452             Bruno Haible  <bruno@clisp.org>
51453
51454         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51455
51456 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51457             Bruno Haible  <bruno@clisp.org>
51458
51459         * modules/tls-tests (Depends-on): Add thread, yield.
51460         (configure.ac): Remove all checks.
51461         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51462         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51463         gl_thread_self): Remove definitions. Include glthread/thread.h and
51464         glthread/yield.h instead.
51465         (test_tls): Pass an additional NULL argument to gl_thread_join.
51466
51467 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51468             Bruno Haible  <bruno@clisp.org>
51469
51470         * modules/lock-tests (Depends-on): Add thread, yield.
51471         (configure.ac): Remove all checks.
51472         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51473         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51474         gl_thread_self): Remove definitions. Include glthread/thread.h and
51475         glthread/yield.h instead.
51476         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51477         additional NULL argument to gl_thread_join.
51478
51479 2008-09-30  Bruno Haible  <bruno@clisp.org>
51480
51481         Fix the Win32 implementation of the 'thread' module.
51482         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51483         pointer type.
51484         (gl_thread_self): Invoke gl_thread_self_func.
51485         (gl_thread_self_func): New declaration.
51486         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51487         (do_init_self_key, init_self_key): New functions.
51488         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51489         Remove some fields.
51490         (running_threads, running_lock): Remove variables.
51491         (get_current_thread_handle): New function.
51492         (gl_thread_self_func, wrapper_func, glthread_create_func,
51493         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51494         simplified.
51495
51496 2008-09-30  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51499         files.
51500
51501 2008-09-30  Jim Meyering  <meyering@redhat.com>
51502
51503         fts.m4: correct the test for statfs.f_type
51504         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51505         when checking for statfs.f_type.
51506
51507 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51508
51509         tests: avoid some compiler warnings
51510         * tests/test-memchr.c (main): Pass NULL indirectly.
51511         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51512
51513 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51514
51515         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51516         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51517         exactly specified dayshifts.
51518         (dayshift): New rule.
51519         (rel): Add dayshift.
51520         (relative_time_table) [tomorrow, yesterday, today, now]:
51521         Use tDAY_SHIFT in place of tDAY_UNIT.
51522         * tests/test-getdate.c: Add tests for now-disallowed countable
51523         dayshifts, e.g., "4 yesterday ago".
51524
51525 2008-09-29  Bruno Haible  <bruno@clisp.org>
51526
51527         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51528         * tests/test-posix_spawn1.in.sh: Renamed from
51529         tests/test-posix_spawn.in.sh.
51530         * tests/test-posix_spawn2.c: New file.
51531         * tests/test-posix_spawn2.in.sh: New file.
51532         * modules/posix_spawnp-tests (Files): Update.
51533         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51534
51535 2008-09-29  Bruno Haible  <bruno@clisp.org>
51536
51537         Propagate effects of putenv/setenv/unsetenv to child processes.
51538         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51539         * lib/pipe.c (create_pipe): Likewise.
51540
51541 2008-09-29  Bruno Haible  <bruno@clisp.org>
51542
51543         Enable use of shell scripts as executables in mingw.
51544         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51545         run the program as a shell script.
51546         * lib/pipe.c (create_pipe): Likewise.
51547         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51548         resulting array.
51549
51550 2008-09-29  Eric Blake  <ebb9@byu.net>
51551
51552         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51553
51554 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51555
51556         * doc/posix-functions/accept.texi: Update mingw problems.
51557         * doc/posix-functions/bind.texi: Update mingw problems.
51558         * doc/posix-functions/close.texi: Update mingw problems.
51559         * doc/posix-functions/connect.texi: Update mingw problems.
51560         * doc/posix-functions/getpeername.texi: Update mingw problems.
51561         * doc/posix-functions/getsockname.texi: Update mingw problems.
51562         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51563         * doc/posix-functions/ioctl.texi: Update mingw problems.
51564         * doc/posix-functions/listen.texi: Update mingw problems.
51565         * doc/posix-functions/recv.texi: Update mingw problems.
51566         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51567         * doc/posix-functions/select.texi: Update mingw problems.
51568         * doc/posix-functions/send.texi: Update mingw problems.
51569         * doc/posix-functions/sendto.texi: Update mingw problems.
51570         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51571         * doc/posix-functions/socket.texi: Update mingw problems.
51572
51573 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51574             Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/sys_select.in.h: Include sys/time.h.
51577         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51578         * modules/sys_select: Depend on sys_time.
51579         * tests/test-sys_select.c: Test that sys/select.h defines struct
51580         timeval fully.
51581
51582 2008-09-29  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51585         * lib/sys_select.in.h: Likewise.
51586
51587 2008-09-29  Bruno Haible  <bruno@clisp.org>
51588
51589         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51590
51591 2008-09-29  Bruno Haible  <bruno@clisp.org>
51592
51593         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51594         Set LIBSOCKET instead of augmenting LIBS.
51595         * modules/sockets (Link): New section.
51596         * modules/sockets-tests (test_sockets_LDADD): New variable.
51597         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51598         * modules/poll-tests (test_poll_LDADD): New variable.
51599         * NEWS: Document the change.
51600
51601 2008-09-29  Bruno Haible  <bruno@clisp.org>
51602
51603         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51604         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51605         ARPA_INET_H directly.
51606         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51607
51608 2008-09-28  Bruno Haible  <bruno@clisp.org>
51609
51610         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51611         from gl_HEADER_SYS_SOCKET.
51612         (gl_HEADER_SYS_SOCKET): Invoke it.
51613         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51614
51615 2008-09-28  Bruno Haible  <bruno@clisp.org>
51616
51617         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51618         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51619         Needed on OSF/1 4.0.
51620
51621 2008-09-28  Bruno Haible  <bruno@clisp.org>
51622
51623         Override open more carefully.
51624         * lib/open.c (orig_open): New function.
51625         (rpl_open): Use orig_open instead of open.
51626         * lib/fcntl.in.h: Add special invocation convention.
51627         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51628         (gl_FUNC_OPEN): Invoke it.
51629
51630         Override freopen more carefully.
51631         * lib/freopen.c (orig_freopen): New function.
51632         (rpl_freopen): Use orig_freopen instead of freopen.
51633         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51634         (gl_FUNC_FREOPEN): Invoke it.
51635
51636         Override fopen more carefully.
51637         * lib/fopen.c (orig_fopen): New function.
51638         (rpl_fopen): Use orig_fopen instead of fopen.
51639         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51640         (gl_FUNC_FOPEN): Invoke it.
51641         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51642
51643 2008-09-28  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51646         SIGPIPE.
51647
51648 2008-09-28  Bruno Haible  <bruno@clisp.org>
51649
51650         * tests/test-sigaction.c (handler, main): Disable the check whether
51651         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51652         glibc systems with LinuxThreads.
51653
51654 2008-09-28  Bruno Haible  <bruno@clisp.org>
51655
51656         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51657
51658         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51659         with AIX xlc.
51660         * lib/fcntl.in.h (open): Likewise.
51661         Reported by Rainer Tammer <tammer@tammer.net>.
51662
51663 2008-09-28  Bruno Haible  <bruno@clisp.org>
51664
51665         * modules/posix_spawnp-tests: New file.
51666         * tests/test-posix_spawn.c: New file.
51667         * tests/test-posix_spawn.in.sh: New file.
51668
51669         New module 'posix_spawnp'.
51670         * modules/posix_spawnp: New file.
51671         * lib/spawnp.c: New file, from GNU libc with modifications.
51672         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51673
51674         New module 'posix_spawn'.
51675         * modules/posix_spawn: New file.
51676         * lib/spawn.c: New file, from GNU libc with modifications.
51677         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51678
51679         New module 'posix_spawnattr_destroy'.
51680         * modules/posix_spawnattr_destroy: New file.
51681         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51682         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51683         module.
51684
51685         New module 'posix_spawnattr_setsigmask'.
51686         * modules/posix_spawnattr_setsigmask: New file.
51687         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51688         modifications.
51689         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51690         new module.
51691
51692         New module 'posix_spawnattr_getsigmask'.
51693         * modules/posix_spawnattr_getsigmask: New file.
51694         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51695         modifications.
51696         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51697         new module.
51698
51699         New module 'posix_spawnattr_setsigdefault'.
51700         * modules/posix_spawnattr_setsigdefault: New file.
51701         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51702         modifications.
51703         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51704         new module.
51705
51706         New module 'posix_spawnattr_getsigdefault'.
51707         * modules/posix_spawnattr_getsigdefault: New file.
51708         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51709         modifications.
51710         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51711         new module.
51712
51713         New module 'posix_spawnattr_setschedpolicy'.
51714         * modules/posix_spawnattr_setschedpolicy: New file.
51715         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51716         modifications.
51717         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51718         new module.
51719
51720         New module 'posix_spawnattr_getschedpolicy'.
51721         * modules/posix_spawnattr_getschedpolicy: New file.
51722         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51723         modifications.
51724         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51725         new module.
51726
51727         New module 'posix_spawnattr_setschedparam'.
51728         * modules/posix_spawnattr_setschedparam: New file.
51729         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51730         modifications.
51731         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51732         new module.
51733
51734         New module 'posix_spawnattr_getschedparam'.
51735         * modules/posix_spawnattr_getschedparam: New file.
51736         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51737         modifications.
51738         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51739         new module.
51740
51741         New module 'posix_spawnattr_setpgroup'.
51742         * modules/posix_spawnattr_setpgroup: New file.
51743         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51744         modifications.
51745         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51746         module.
51747
51748         New module 'posix_spawnattr_getpgroup'.
51749         * modules/posix_spawnattr_getpgroup: New file.
51750         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51751         modifications.
51752         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51753         module.
51754
51755         New module 'posix_spawnattr_setflags'.
51756         * modules/posix_spawnattr_setflags: New file.
51757         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51758         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51759         module.
51760
51761         New module 'posix_spawnattr_getflags'.
51762         * modules/posix_spawnattr_getflags: New file.
51763         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51764         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51765         module.
51766
51767         New module 'posix_spawnattr_init'.
51768         * modules/posix_spawnattr_init: New file.
51769         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51770         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51771         module.
51772
51773         New module 'posix_spawn_file_actions_destroy'.
51774         * modules/posix_spawn_file_actions_destroy: New file.
51775         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51776         modifications.
51777         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51778         the new module.
51779
51780         New module 'posix_spawn_file_actions_addopen'.
51781         * modules/posix_spawn_file_actions_addopen: New file.
51782         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51783         modifications.
51784         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51785         the new module.
51786
51787         New module 'posix_spawn_file_actions_adddup2'.
51788         * modules/posix_spawn_file_actions_adddup2: New file.
51789         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51790         modifications.
51791         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51792         the new module.
51793
51794         New module 'posix_spawn_file_actions_addclose'.
51795         * modules/posix_spawn_file_actions_addclose: New file.
51796         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51797         modifications.
51798         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51799         the new module.
51800
51801         New module 'posix_spawn_file_actions_init'.
51802         * modules/posix_spawn_file_actions_init: New file.
51803         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51804         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51805         new module.
51806
51807         New module 'posix_spawn-internal'.
51808         * modules/posix_spawn-internal: New file.
51809         * lib/spawn_int.h: New file, from GNU libc with modifications.
51810         * lib/spawni.c: New file, from GNU libc with modifications.
51811         * m4/posix_spawn.m4: New file.
51812
51813         New module 'spawn'.
51814         * modules/spawn: New file.
51815         * lib/spawn.in.h: New file, from GNU libc with modifications.
51816         * m4/spawn_h.m4: New file.
51817         * doc/posix-headers/spawn.texi: Mention the new module.
51818
51819 2008-09-28  Bruno Haible  <bruno@clisp.org>
51820
51821         * modules/sched-tests: New file.
51822         * tests/test-sched.c: New file.
51823
51824         New module 'sched'.
51825         * modules/sched: New file.
51826         * lib/sched.in.h: New file.
51827         * m4/sched_h.m4: New file.
51828         * doc/posix-headers/sched.texi: Mention the new module.
51829
51830 2008-09-27  Eric Blake  <ebb9@byu.net>
51831
51832         Fix previous patch, and tweak references to $0.
51833         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51834         (func_version, func_gnulib_dir): Don't call this program
51835         gnulib-tool.
51836         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51837         with using $0 in function.
51838         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51839         (func_fatal_error): Reuse the name the user invoked us with.
51840
51841 2008-09-27  Bruno Haible  <bruno@clisp.org>
51842
51843         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51844         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51845         (gl_ICONV_H): Not here.
51846         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51847         instead of assigning ICONV_H directly.
51848
51849         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51851         WCHAR_H directly.
51852
51853 2008-09-27  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51856         * modules/arpa_inet (Depends-on): Add link-warning.
51857         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51858         * modules/unistd (Makefile.am): Likewise.
51859
51860 2008-09-26  Bruno Haible  <bruno@clisp.org>
51861
51862         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51863         variables.
51864         (func_version): Essentially copied from gnulib-tool.
51865         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51866         func_readlink): Copied from gnulib-tool.
51867
51868 2008-09-26  Bruno Haible  <bruno@clisp.org>
51869
51870         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51871         invoking git-version-gen.
51872
51873 2008-09-26  Bruno Haible  <bruno@clisp.org>
51874
51875         * posix-modules: Update to directory names changed on 2008-01-19.
51876         Remove commas in output before splitting into words. No more need to
51877         avoid 'ftruncate' since 2007-02-19.
51878
51879 2008-09-26  Bruno Haible  <bruno@clisp.org>
51880
51881         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51882
51883 2008-09-26  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51886         * modules/fwriteerror (Depends-on): Add errno.
51887
51888 2008-09-26  Bruno Haible  <bruno@clisp.org>
51889
51890         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51891         * tests/test-vc-list-files-cvs.sh: Likewise.
51892
51893 2008-09-26  Bruno Haible  <bruno@clisp.org>
51894
51895         * doc/posix-headers/sys_resource.texi: Reorder items.
51896
51897 2008-09-26  Jim Meyering  <meyering@redhat.com>
51898
51899         fts: tweak inode comparison function
51900         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51901         inode numbers, as documented.
51902
51903         fts: sort dirent entries on inode number before traversing
51904         This avoids a quadratic, seek-related performance penalty when
51905         operating on a directory containing many entries (measurable at 10k;
51906         3.5 hours at 2 million entries with a cold cache) on certain types
51907         of file systems, including ext3 and ext4, but not tmpfs.
51908         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51909         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51910         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51911         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51912         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51913         (fts_build): Set the stat.st_ino member from D_INO.
51914         If it is likely to be useful, sort dirent entries on inode number.
51915
51916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51917         and the struct statfs.f_type member.
51918         * modules/fts (Depends-on): Add d-ino.
51919
51920 2008-09-26  Bruno Haible  <bruno@clisp.org>
51921
51922         * modules/sigpipe-die (Depends-on): Add sigpipe.
51923
51924         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51925         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51926         and GNULIB_STDIO_H_SIGPIPE are set.
51927         * lib/stdio-write.c: New file.
51928         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51929         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51930         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51931         REPLACE_STDIO_WRITE_FUNCS.
51932         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51933         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51934         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51935         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51936         * modules/stdio (Files): Add lib/stdio-write.c.
51937         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51938         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51939         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51940         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51941         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51942         REPLACE_FPRINTF_POSIX.
51943         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51944         REPLACE_PRINTF_POSIX.
51945         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51946         REPLACE_VFPRINTF_POSIX.
51947         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51948         REPLACE_VPRINTF_POSIX.
51949         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51950         SIGPIPE issue.
51951         * doc/posix-functions/fputc.texi: Likewise.
51952         * doc/posix-functions/fputs.texi: Likewise.
51953         * doc/posix-functions/fwrite.texi: Likewise.
51954         * doc/posix-functions/printf.texi: Likewise.
51955         * doc/posix-functions/putc.texi: Likewise.
51956         * doc/posix-functions/putchar.texi: Likewise.
51957         * doc/posix-functions/puts.texi: Likewise.
51958         * doc/posix-functions/vfprintf.texi: Likewise.
51959         * doc/posix-functions/vprintf.texi: Likewise.
51960
51961         * modules/safe-write (Depends-on): Add write.
51962
51963         * modules/sigpipe-tests: New file.
51964         * tests/test-sigpipe.c: New file.
51965         * tests/test-sigpipe.sh: New file.
51966
51967         * modules/write: New file.
51968         * lib/unistd.in.h: Include <sys/types.h>.
51969         (write): New declaration.
51970         * lib/write.c: New file.
51971         * m4/write.m4: New file.
51972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51973         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51974         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51975         GNULIB_WRITE, REPLACE_WRITE.
51976         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51977         and the SIGPIPE issue.
51978
51979         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51980         (raise): New declaration.
51981         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51982         (ext_signal): New function.
51983         (rpl_raise): New function.
51984         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51985         GNULIB_SIGNAL_H_SIGPIPE.
51986         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51987         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51988
51989         * modules/sigpipe: New file.
51990         * m4/sigpipe.m4: New file.
51991
51992 2008-09-25  Derek Price  <derek@ximbiot.com>
51993             Bruno Haible  <bruno@clisp.org>
51994
51995         * gnulib-tool (func_import): Report all license incompatibilities, not
51996         just the first one.
51997
51998 2008-09-25  Bruno Haible  <bruno@clisp.org>
51999
52000         * gnulib-tool (func_import): When computing the edits, consider not
52001         only the Makefile.ams that exist but also those that will be generated.
52002
52003 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52004
52005         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52006         fixes gnulib-tool --test warning about duplicate dependency.
52007
52008 2008-09-25  Bruno Haible  <bruno@clisp.org>
52009
52010         * gnulib-tool: Don't ask the user to perform edits in the generated
52011         Makefile.ams.
52012         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52013         apply to the Makefile.am being generated.
52014         (func_emit_tests_Makefile_am): Execute edits that apply to the
52015         Makefile.am being generated.
52016         (func_import): Setup list of Makefile.am edits before emitting the
52017         Makefile.ams, not at the end.
52018         (func_create_testdir): Update.
52019         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52020
52021 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52022
52023         * gnulib-tool (func_import): Store the --tests-base option in the
52024         comment in gnulib-cache.m4.
52025
52026 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52027
52028         * NEWS: Document increased portability that sys_select now provides.
52029
52030         * lib/sys_select.in.h: Install select wrapper.
52031         * lib/sys_socket.in.h: Use more descriptive name when there is no
52032         select wrapper.
52033         * lib/winsock-select.c: New.
52034         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52035         Require gl_HEADER_SYS_SOCKET.
52036         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52037         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52038         * tests/test-sys_select.c: Add functional tests.
52039
52040 2008-09-24  Eric Blake  <ebb9@byu.net>
52041
52042         open, fopen: close fd leak in last patch
52043         * lib/open.c (rpl_open): Close fd before returning error.
52044         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52045         * doc/posix-functions/open.texi (open): Document that Irix also
52046         has the bug.
52047         * doc/posix-functions/fopen.texi (fopen): Likewise.
52048         Reported by Paolo Bonzini.
52049
52050 2008-09-24  Bruno Haible  <bruno@clisp.org>
52051
52052         Ensure that a filename ending in a slash cannot be used to access a
52053         non-directory.
52054         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52055         to check whether it's really a directory.
52056         * lib/fopen.c: Include fcntl.h, unistd.h.
52057         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52058         and fdopen().
52059         * modules/fopen (Depends-on): Add unistd.
52060         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52061         * tests/test-fopen.c (main): Likewise.
52062         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52063         * doc/posix-functions/fopen.texi: Likewise.
52064         Reported by Eric Blake.
52065
52066 2008-09-23  Eric Blake  <ebb9@byu.net>
52067
52068         c-stack: avoid compiler optimizations when provoking overflow
52069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52070         recursion harder to optimize, to ensure a stack overflow occurs.
52071         * tests/test-c-stack.c (recurse): Likewise.
52072         Borrowed from libsigsegv.
52073
52074         c-stack: work around Irix sigaltstack bug
52075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52076         whether sigaltstack uses wrong end of stack_t (copied in part from
52077         libsigsegv).
52078         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52079         Irix bug, without requiring an over-allocation.
52080         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52081         bug.
52082
52083         fopen: document mingw bug on directories
52084         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52085         not allowing a stream visiting a directory, even though reading
52086         from such a stream is not portable.
52087
52088 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52089
52090         * lib/poll.c: Rewrite.
52091         * modules/poll: Depend on alloca.
52092
52093 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52094
52095         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52096         instead define prototypes for a full set of wrappers.  Ensure
52097         that Cygwin does not use the compatibility code, which is only
52098         for MinGW.
52099         * lib/winsock.c: New.
52100         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52101         * modules/sys_socket: Add lib/winsock.c.
52102
52103         * modules/poll-tests: Add errno and perror.
52104         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52105
52106 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52107
52108         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52109
52110 2008-09-23  Bruno Haible  <bruno@clisp.org>
52111
52112         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52113         * doc/glibc-functions/*: Likewise.
52114
52115 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52116
52117         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52118         success.
52119
52120 2008-09-22  Eric Blake  <ebb9@byu.net>
52121             Bruno Haible  <bruno@clisp.org>
52122
52123         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52124         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52125         supply %A but mishandle pseudo-NaN.
52126         Reported by Simon Josefsson.
52127
52128 2008-09-21  Bruno Haible  <bruno@clisp.org>
52129
52130         * tests/test-lock.c (main): Tweak skip message.
52131         * tests/test-tls.c (main): Likewise.
52132
52133 2008-09-21  Bruno Haible  <bruno@clisp.org>
52134
52135         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52136         whether 'struct sigaction' has sa_sigaction here...
52137         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52138         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52139
52140 2008-09-21  Bruno Haible  <bruno@clisp.org>
52141
52142         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52143         section.
52144         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52145         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52146         the new section.
52147         (Support for obsolete systems lacking POSIX:2001): New section.
52148         (String handling <string.h>): Move strdup to the new section.
52149         Suggested by Simon Josefsson and Paolo Bonzini.
52150
52151 2008-09-21  Bruno Haible  <bruno@clisp.org>
52152
52153         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52154         exponents in %e and %g results on 'long double'. Needed for mingw's
52155         improved *printf functions.
52156         * tests/test-vasprintf-posix.c (test_function): Likewise.
52157         * tests/test-snprintf-posix.h (test_function): Likewise.
52158         * tests/test-sprintf-posix.h (test_function): Likewise.
52159         Reported by Eric Blake.
52160
52161 2008-09-21  Bruno Haible  <bruno@clisp.org>
52162
52163         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52164         * tests/test-sprintf-posix.h (test_function): Likewise.
52165
52166 2008-09-21  Bruno Haible  <bruno@clisp.org>
52167
52168         * modules/getpass (Depends-on): Add strdup-posix.
52169
52170         New module 'strdup-posix'.
52171         * modules/strdup-posix: New file.
52172         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52173         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52175         REPLACE_STRDUP.
52176         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52177         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52179         strdup-posix.
52180
52181         * modules/strdup (Depends-on): Remove malloc-posix.
52182
52183 2008-09-20  Bruno Haible  <bruno@clisp.org>
52184
52185         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52186         Wildenhues.
52187
52188 2008-09-20  Bruno Haible  <bruno@clisp.org>
52189
52190         Ensure that wint_t gets defined on IRIX 5.3.
52191         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52192         * lib/wctype.in.h (wint_t): Likewise.
52193         (__wctype_wint_t): Remove type.
52194         (isw*): Use wint_t instead of __wctype_wint_t.
52195         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52196         * modules/wchar (Files): Add m4/wint_t.m4.
52197         (Makefile.am): Substitute HAVE_WINT_T.
52198         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52199         * tests/test-wctype.c: Check that wint_t is defined.
52200         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52201         * doc/posix-headers/wctype.texi: Likewise.
52202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52203
52204 2008-09-18  Bruno Haible  <bruno@clisp.org>
52205
52206         * gnulib-tool (func_exit): Update comment.
52207
52208 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52209
52210         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52211         assumes strdup exists and does not depend on strdup to return
52212         ENOMEM on out of memory conditions.
52213
52214 2008-09-18  Bruno Haible  <bruno@clisp.org>
52215
52216         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52217         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52218         digits for the exponent.
52219
52220 2008-09-18  Jim Meyering  <meyering@redhat.com>
52221             Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/vasnprintf.c (decimal_point_char): Define also if
52224         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52225
52226 2008-09-16  Bruno Haible  <bruno@clisp.org>
52227         and Eric Blake  <ebb9@byu.net>
52228
52229         vasnprintf: support Irix 5.3
52230         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52231         that mishandle long double infinity.
52232         Reported by Tom G. Christensen.
52233
52234 2008-09-16  Bruno Haible  <bruno@clisp.org>
52235
52236         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52237         Solaris 9.
52238         * doc/glibc-functions/alphasort.texi: Likewise.
52239         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52240
52241 2008-09-16  Jim Meyering  <meyering@redhat.com>
52242
52243         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52244         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52245         a umask modification leak out of a subshell.  Otherwise, the
52246         opensolaris /bin/sh would be accepted and thus cause unwarranted
52247         failures in the coreutils test suite.
52248
52249 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52250
52251         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52252         to succeed.
52253
52254 2008-09-16  Jim Meyering  <meyering@redhat.com>
52255
52256         avoid spurious test failure when library is built without ACL support
52257         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52258         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52259         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52260         * tests/test-copy-acl.sh: Likewise.
52261
52262 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52263
52264         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52265         based on character occurrence counts.
52266
52267 2008-09-15  Eric Blake  <ebb9@byu.net>
52268
52269         tests: avoid some compiler warnings
52270         * tests/test-memchr.c (main): Pass NULL indirectly.
52271         * tests/test-closein.c (main): Avoid unused variable.
52272
52273 2008-09-15  Bruno Haible  <bruno@clisp.org>
52274
52275         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52276         are missing on OpenBSD 4.0 individually.
52277         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52278
52279 2008-09-15  Bruno Haible  <bruno@clisp.org>
52280
52281         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52282         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52283         * doc/posix-functions/perror.texi: Likewise.
52284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52285         is missing.
52286         Reported by Eric Blake.
52287
52288         * lib/errno.in.h: Use replacement values >= 2000.
52289         Reported by Eric Blake.
52290
52291 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52292
52293         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52294         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52295         limit.
52296         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52297         compareseq was aborted.
52298
52299 2008-09-14  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52302         yvec_edit_count.
52303         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52304         (fstrcmp_bounded): Simplify result computation accordingly.
52305
52306 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52307
52308         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52309         (fstrcmp): Define in terms of fstrcmp_bounded.
52310         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52311         lower_bound argument.
52312         Return quickly if the result is certainly < lower_bound.
52313         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52314
52315 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52316
52317         * lib/diffseq.h (EARLY_ABORT): New macro.
52318         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52319         evaluates to true.
52320
52321 2008-09-14  Bruno Haible  <bruno@clisp.org>
52322
52323         * modules/perror-tests: New file.
52324         * tests/test-perror.sh: New file.
52325         * tests/test-perror.c: New file.
52326
52327         New module 'perror'.
52328         * lib/stdio.in.h (perror): New declaration.
52329         * lib/perror.c: New file.
52330         * m4/perror.m4: New file.
52331         * modules/perror: New file.
52332         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52333         * doc/posix-functions/perror.texi: Mention the perror module.
52334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52335         REPLACE_PERROR.
52336         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52337         REPLACE_PERROR.
52338
52339 2008-09-14  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/stdio (Makefile.am): Reorder to match the order in
52342         lib/stdio.in.h.
52343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52344
52345 2008-09-13  Bruno Haible  <bruno@clisp.org>
52346
52347         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52348
52349 2008-09-13  Bruno Haible  <bruno@clisp.org>
52350
52351         Extend strerror to cover the added errno values.
52352         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52353         (rpl_strerror): Provide error messages for the added errno values and
52354         for the WSA* values.
52355         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52356         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52357         strerror.
52358         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52359         * modules/strerror (Depends-on): Add errno.
52360         * doc/posix-functions/strerror.texi: Document the change.
52361         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52362         and EOVERFLOW.
52363
52364 2008-09-13  Bruno Haible  <bruno@clisp.org>
52365
52366         * modules/EOVERFLOW: Remove file.
52367         * m4/eoverflow.m4: Remove file.
52368         * modules/EOVERFLOW-tests: Remove file.
52369         * tests/test-EOVERFLOW.c: Remove file.
52370         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52371         * modules/ftell (Depends-on): Likewise.
52372         * modules/getdelim (Depends-on): Likewise.
52373         * modules/getugroups (Depends-on): Likewise.
52374         * modules/poll (Depends-on): Likewise.
52375         * modules/snprintf (Depends-on): Likewise.
52376         * modules/sprintf-posix (Depends-on): Likewise.
52377         * modules/vasnprintf (Depends-on): Likewise.
52378         * modules/vasprintf (Depends-on): Likewise.
52379         * modules/vfprintf-posix (Depends-on): Likewise.
52380         * modules/vsnprintf (Depends-on): Likewise.
52381         * modules/vsprintf-posix (Depends-on): Likewise.
52382         * modules/xvasprintf (Depends-on): Likewise.
52383         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52384         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52385         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52386         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52387         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52388         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52389         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52390         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52391         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52392         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52393         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52394         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52395         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52396         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52397         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52398         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52399         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52400         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52401         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52402         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52403         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52404         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52405         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52406         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52407         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52408         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52409         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52410         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52411         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52412         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52413         * MODULES.html.sh: Remove EOVERFLOW.
52414         * NEWS: Mention the change.
52415
52416 2008-09-13  Bruno Haible  <bruno@clisp.org>
52417
52418         * modules/errno-tests: New file.
52419         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52420
52421         * lib/errno.in.h: New file.
52422         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52423         * modules/errno: New file.
52424         * doc/posix-headers/errno.texi: Update documentation.
52425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52426
52427 2008-09-13  Bruno Haible  <bruno@clisp.org>
52428
52429         * tests/test-poll.c: Use #if for native Windows, rather than testing
52430         __MSVCRT__.
52431
52432 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52433             Bruno Haible  <bruno@clisp.org>
52434
52435         * lib/glob.c: Don't include <pwd.h> on native Windows.
52436         (WINDOWS32): New macro.
52437         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52438
52439 2008-09-13  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52442         (ETIMEDOUT): Remove macro.
52443         (glthread_cond_timedwait_multithreaded): New declaration.
52444         (glthread_cond_timedwait): Use it.
52445         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52446         (glthread_cond_timedwait_multithreaded): New function.
52447
52448 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52449
52450         * modules/poll-tests: Do not check for io.h.
52451         * tests/test-poll.c: Check for __MSVCRT__ instead.
52452
52453 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52454
52455         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52456         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52457         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52458
52459 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52460
52461         * modules/poll-tests: New.
52462         * tests/test-poll.c: New.
52463
52464 2008-09-12  Eric Blake  <ebb9@byu.net>
52465
52466         frexp: test for NetBSD failure on -0.0
52467         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52468         not all, bugs from NetBSD 3.0 have been fixed.
52469         * doc/posix-functions/frexp.texi (frexp): Document bug.
52470         Reported by Thomas Klausner.
52471
52472         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52473         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52474         literal -0.0.
52475         Reported by Jonathan C. Patschke <jp@centtech.com>.
52476
52477 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52478
52479         * lib/glthread/cond.h: Use dummy implementation also if
52480         USE_WIN32_THREADS.
52481
52482 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52483
52484         * modules/fnmatch-posix (License): Change to LGPLv2+.
52485         * modules/fnmatch-gnu (License): Likewise.
52486
52487 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52488
52489         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52490
52491 2008-09-11  Jim Meyering  <meyering@redhat.com>
52492
52493         * users.txt: Add gtk-vnc.
52494
52495 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52496
52497         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52498         rotate amounts.
52499
52500         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52501         required for 16-bit and 8-bit rotates.
52502         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52503         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52504         UINT8_MAX instead of hard-coded constants.
52505         Suggested by Paul Eggert.
52506
52507 2008-09-07  Bruno Haible  <bruno@clisp.org>
52508
52509         * tests/test-striconveh.c (main): Check behaviour when converting from
52510         UTF-7.
52511
52512         Make striconveh work better with stateful encodings.
52513         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52514         that iconv does not increment the inptr when returning -1/EINVAL.
52515
52516 2008-09-07  Bruno Haible  <bruno@clisp.org>
52517
52518         * build-aux/config.rpath: Update according to libtool-2.2.6.
52519         * build-aux/config.libpath: Likewise.
52520
52521 2008-09-06  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52524         * lib/freadptr.c (freadptr): Likewise.
52525         * lib/freadseek.c (freadptrinc): Likewise.
52526         Reported by Simon Josefsson.
52527
52528 2008-09-06  Bruno Haible  <bruno@clisp.org>
52529
52530         * modules/freadptr (License): Change to LGPLv2+.
52531         * modules/freadseek (License): Likewise.
52532         Suggested by Eric Blake.
52533
52534         * modules/memchr2 (License): Change to LGPLv2+.
52535         Approved by Eric Blake.
52536
52537 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52538             Bruno Haible  <bruno@clisp.org>
52539
52540         Make gnulib-tool work with native 'sed' on AIX.
52541         * gnulib-tool (sed_noop): New variable.
52542         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52543         func_add_or_update, func_create_testdir): Use it to initialize sed
52544         script variables.
52545         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52546
52547 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52548             Bruno Haible  <bruno@clisp.org>
52549
52550         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52551         also works after #include directives.
52552
52553 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52554
52555         getdate.y: reject an out-of-range timezone value
52556         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52557         the range [-24...+24].  When specified with only one or two digits,
52558         * tests/test-getdate.c: Tests for the fix.
52559         * doc/getdate.texi: Document this change.
52560
52561 2008-09-03  Bruno Haible  <bruno@clisp.org>
52562
52563         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52564
52565 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52566
52567         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52568         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52569         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52570         Blake <ebb9@byu.net>.
52571
52572         * tests/test-bitrotate.c: Add more test vectors.
52573
52574 2008-09-02  Eric Blake  <ebb9@byu.net>
52575
52576         vasnprintf-posix: handle large precision via %.*d
52577         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52578         when handling it ourselves.
52579         * tests/test-vasnprintf-posix.c (test_function): Add test.
52580         * tests/test-snprintf-posix.h (test_function): Likewise.
52581         * tests/test-sprintf-posix.h (test_function): Likewise.
52582         * tests/test-vasprintf-posix.c (test_function): Likewise.
52583         Reported by Alain Guibert.
52584
52585 2008-09-01  Eric Blake  <ebb9@byu.net>
52586
52587         c-stack: make configure-time check more robust
52588         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52589         successful sigaction call.
52590         Reported by Tom G. Christensen.
52591
52592 2008-09-01  Bruno Haible  <bruno@clisp.org>
52593
52594         New module 'findprog-lgpl'.
52595         * modules/findprog-lgpl: New file.
52596         * lib/findprog-lgpl.c: New file.
52597         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52598         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52599         to decide whether to use strdup or xstrdup, concatenated_filename or
52600         xconcatenated_filename.
52601
52602 2008-09-01  Bruno Haible  <bruno@clisp.org>
52603
52604         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52605         'xconcat-filename' (GPL).
52606         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52607         (License): Change to LGPLv2+.
52608         * modules/xconcat-filename: New file.
52609         * lib/concat-filename.h (concatenated_filename): Change specification.
52610         (xconcatenated_filename): New declaration.
52611         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52612         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52613         memory situations.
52614         * lib/xconcat-filename.c: New file.
52615         * NEWS: Mention the change.
52616         * lib/findprog.c: Include concat-filename.h, not filename.h.
52617         (find_in_path): Use xconcatenated_filename instead of
52618         concatenated_filename.
52619         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52620         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52621         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52622         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52623         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52624         instead of concatenated_filename.
52625         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52626         (execute_java_class): Use xconcatenated_filename instead of
52627         concatenated_filename.
52628         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52629         * modules/javacomp (Depends-on): Likewise.
52630         * modules/javaexec (Depends-on): Likewise.
52631
52632 2008-09-01  Bruno Haible  <bruno@clisp.org>
52633
52634         Split module 'filename' into 'filename' and 'concat-filename'.
52635         * modules/filename: Keep only lib/filename.h.
52636         (License): Change to LGPLv2+.
52637         * modules/concat-filename: New file, extracted from modules/filename.
52638         * lib/filename.h (concatenated_filename): Remove declaration.
52639         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52640         * lib/concat-filename.c: Include concat-filename.h.
52641         * NEWS: Mention the change.
52642
52643 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52644
52645         * lib/bitrotate.h (rotl8, rotr8): Add.
52646
52647         * modules/bitrotate (configure.ac): Need
52648         AC_REQUIRE([AC_C_INLINE]).
52649         (Description): Mention stdint.h.  Reported by Bruno Haible
52650         <bruno@clisp.org>.
52651
52652         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52653         Paolo Bonzini <bonzini@gnu.org>.
52654
52655 2008-08-31  Bruno Haible  <bruno@clisp.org>
52656
52657         Assume Solaris specific bi-arch conventions on Solaris systems.
52658         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52659         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52661         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52662         like acl_libdirstem.
52663         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52664         acl_libdirstem.
52665         * NEWS: Mention the change.
52666         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52667
52668 2008-08-31  Jim Meyering  <meyering@redhat.com>
52669
52670         * lib/strftime.h: Add comments describing the two added arguments.
52671
52672         remove duplicate #include directives
52673         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52674         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52675
52676 2008-08-31  Bruno Haible  <bruno@clisp.org>
52677
52678         New module 'sigpipe-die'.
52679         * modules/sigpipe-die: New file.
52680         * lib/sigpipe-die.h: New file.
52681         * lib/sigpipe-die.c: New file.
52682         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52683
52684 2008-08-31  Bruno Haible  <bruno@clisp.org>
52685
52686         Don't override previously installed signal handlers.
52687         * lib/fatal-signal.c (saved_sigactions): New variable.
52688         (uninstall_handlers): Reset the signal to the saved handler, not
52689         to SIG_DFL (except when ignored).
52690         (install_handlers): Save the previous handlers.
52691
52692 2008-08-30  Bruno Haible  <bruno@clisp.org>
52693
52694         * gnulib-tool (func_reset_sigpipe): New function.
52695         (func_get_automake_snippet, func_modules_transitive_closure,
52696         func_import): Invoke it before a join command that reads from stdin,
52697         to avoid "echo: write error: Broken pipe" error messages on stderr.
52698         Reported by Sam Steingold <sds@gnu.org>.
52699
52700 2008-08-30  Bruno Haible  <bruno@clisp.org>
52701
52702         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52703         Code copied from m4/open.m4.
52704         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52705         access and the filename ends in a slash. Code copied from lib/open.c.
52706         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52707         * tests/test-fopen.c (main): Check against bug with trailing slash.
52708
52709 2008-08-29  Bruno Haible  <bruno@clisp.org>
52710
52711         Avoid some "gcc -pedantic" warnings.
52712         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52713         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52714         * lib/dirent.in.h: Likewise.
52715         * lib/fcntl.in.h: Likewise.
52716         * lib/float.in.h: Likewise.
52717         * lib/iconv.in.h: Likewise.
52718         * lib/inttypes.in.h: Likewise.
52719         * lib/locale.in.h: Likewise.
52720         * lib/math.in.h: Likewise.
52721         * lib/netinet_in.in.h: Likewise.
52722         * lib/search.in.h: Likewise.
52723         * lib/signal.in.h: Likewise.
52724         * lib/stdarg.in.h: Likewise.
52725         * lib/stdint.in.h: Likewise.
52726         * lib/stdio.in.h: Likewise.
52727         * lib/stdlib.in.h: Likewise.
52728         * lib/string.in.h: Likewise.
52729         * lib/strings.in.h: Likewise.
52730         * lib/sys_select.in.h: Likewise.
52731         * lib/sys_socket.in.h: Likewise.
52732         * lib/sys_stat.in.h: Likewise.
52733         * lib/sys_time.in.h: Likewise.
52734         * lib/sysexits.in.h: Likewise.
52735         * lib/time.in.h: Likewise.
52736         * lib/unistd.in.h: Likewise.
52737         * lib/wchar.in.h: Likewise.
52738         * lib/wctype.in.h: Likewise.
52739         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52740         * modules/fchdir (Makefile.am): Likewise.
52741         * modules/fcntl (Makefile.am): Likewise.
52742         * modules/float (Makefile.am): Likewise.
52743         * modules/iconv_open (Makefile.am): Likewise.
52744         * modules/inttypes (Makefile.am): Likewise.
52745         * modules/locale (Makefile.am): Likewise.
52746         * modules/math (Makefile.am): Likewise.
52747         * modules/netinet_in (Makefile.am): Likewise.
52748         * modules/search (Makefile.am): Likewise.
52749         * modules/signal (Makefile.am): Likewise.
52750         * modules/stdarg (Makefile.am): Likewise.
52751         * modules/stdint (Makefile.am): Likewise.
52752         * modules/stdio (Makefile.am): Likewise.
52753         * modules/stdlib (Makefile.am): Likewise.
52754         * modules/string (Makefile.am): Likewise.
52755         * modules/strings (Makefile.am): Likewise.
52756         * modules/sys_select (Makefile.am): Likewise.
52757         * modules/sys_socket (Makefile.am): Likewise.
52758         * modules/sys_stat (Makefile.am): Likewise.
52759         * modules/sys_time (Makefile.am): Likewise.
52760         * modules/sysexits (Makefile.am): Likewise.
52761         * modules/time (Makefile.am): Likewise.
52762         * modules/unistd (Makefile.am): Likewise.
52763         * modules/wchar (Makefile.am): Likewise.
52764         * modules/wctype (Makefile.am): Likewise.
52765         Reported by Reuben Thomas <rrt@sc3d.org>.
52766
52767 2008-08-29  Bruno Haible  <bruno@clisp.org>
52768
52769         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52770         any more.
52771
52772 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52773
52774         * MODULES.html.sh (Misc): Add bitrotate.
52775
52776         * modules/bitrotate: New file.
52777
52778         * lib/bitrotate.h: New file.
52779
52780         * modules/bitrotate-tests: New file.
52781
52782         * tests/test-bitrotate.c: New file.
52783
52784         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52785         on the bitrotate module.
52786
52787         * lib/arctwo.c: Use new bitrotate module.
52788
52789 2008-08-29  Jim Meyering  <meyering@redhat.com>
52790
52791         bootstrap: merge changes from coreutils
52792         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52793         of copied files.  Remove a kludge, now that this is fixed.
52794         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52795         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52796         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52797
52798 2008-08-29  Bruno Haible  <bruno@clisp.org>
52799
52800         * MODULES.html.sh: Remove --cvs-urls option.
52801
52802 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52803
52804         maint.mk: adjust to file name change
52805         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52806
52807 2008-08-28  Jim Meyering  <meyering@redhat.com>
52808
52809         * modules/getndelim2 (License): Relicense to LGPLv2+.
52810         Approved by Richard Stallman for the version of 1995, and by
52811         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52812
52813 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52814
52815         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52816         dummy if one is not available.  Do not touch them if
52817         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52818         (getc_maybe_unlocked): New.
52819         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52820
52821 2008-08-26  Eric Blake  <ebb9@byu.net>
52822
52823         doc/INSTALL: resync from autoconf
52824         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52825         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52826         moving...
52827         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52828         * INSTALL: Regenerate.
52829         * INSTALL.ISO: New file.
52830         * INSTALL.UTF-8: Likewise.
52831
52832 2008-08-26  Jim Meyering  <meyering@redhat.com>
52833
52834         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52835         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52836         these definitions conditional, so that they may be overridden, too.
52837
52838 2008-08-26  Bruno Haible  <bruno@clisp.org>
52839
52840         Generate INSTALL file variants with prettier quotes.
52841         * doc/Makefile (INSTALL_PRELUDE): New macro.
52842         (INSTALL): Use it.
52843         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52844
52845 2008-08-26  Bruno Haible  <bruno@clisp.org>
52846
52847         Run makeinfo in an English locale.
52848         * doc/Makefile (MAKEINFO): New variable.
52849
52850 2008-08-26  Bruno Haible  <bruno@clisp.org>
52851
52852         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52853         Suggested by Eric Blake.
52854
52855 2008-08-25  Bruno Haible  <bruno@clisp.org>
52856
52857         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52858
52859 2008-08-25  Eric Blake  <ebb9@byu.net>
52860
52861         c-stack: test that stack overflow can be caught
52862         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52863         that platform allows handling stack overflow; at least OS/2 EMX
52864         has sigaltstack, but crashes before transferring control to
52865         handler on stack overflow.
52866         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52867         check for HAVE_STACK_OVERFLOW_HANDLING.
52868         Reported by Elbert Pol.
52869
52870 2008-08-25  Bruno Haible  <bruno@clisp.org>
52871
52872         * doc/posix-functions/strftime.texi: Fix description of strftime
52873         module.
52874
52875 2008-08-24  Bruno Haible  <bruno@clisp.org>
52876
52877         * tests/uniwidth/test-uc_width2.c: New file.
52878         * tests/uniwidth/test-uc_width2.sh: New file.
52879         * modules/uniwidth/width-tests (Files): Add the new files.
52880         (TESTS): Add uniwidth/test-uc_width2.sh.
52881         (TESTS_ENVIRONMENT): New variable.
52882         (check_PROGRAMS): Add test-uc_width2.
52883         (test_uc_width2_SOURCES): New variable.
52884
52885         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52886         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52887         not 0x00AB.
52888         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52889
52890 2008-08-22  Eric Blake  <ebb9@byu.net>
52891
52892         test-lock, test-tls: mention why a test is skipped
52893         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52894         skipped.
52895         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52896
52897         count-one-bits: relax license
52898         * modules/count-one-bits (License): Relicense to LGPLv2+.
52899         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52900
52901 2008-08-22  Andreas Schwab  <schwab@suse.de>
52902
52903         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52904         Remove spurious space in assignment.
52905
52906 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52907
52908         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52909         Paul Eggert <eggert@CS.UCLA.EDU>.
52910
52911 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52912
52913         * modules/gettext: Add m4/threadlib.m4.
52914
52915 2008-08-19  Eric Blake  <ebb9@byu.net>
52916
52917         test-c-stack: fix compilation failure on FreeBSD 5.0
52918         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52919         headers before <sys/resource.h>.
52920         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52921         the bug.
52922         Reported by Nelson H. F. Beebe.
52923
52924         strverscmp: migrate from "strverscmp.h" to <string.h>
52925         * modules/string (Makefile.am): Add new hooks.
52926         * modules/strverscmp (Files): Remove strverscmp.h.
52927         (Depends-on): Add string.
52928         (configure.ac): Add indicator.
52929         (Include): Mention new header.
52930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52931         defaults.
52932         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52933         results.
52934         * lib/strverscmp.h: Delete.
52935         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52936         * tests/test-strverscmp.c (includes): Adjust client.
52937         * lib/check-version.c (includes): Likewise.
52938         * NEWS: Document the change.
52939
52940         strverscmp: add unit test
52941         * modules/strverscmp-tests: New file.
52942         * tests/test-strverscmp.c: Likewise.
52943
52944 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52945
52946         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52947         regarding Windows crypto stuff, from Mono.
52948
52949 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52950
52951         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52952         if present, for intel RND.  Return error on failures.
52953
52954 2008-08-18  Ben Pfaff  <blp@gnu.org>
52955
52956         gitlog-to-changelog: give better diagnostic for failed pipe-open
52957         * build-aux/gitlog-to-changelog: Improve error message: suggest
52958         that the version of Git may be too old.
52959
52960 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52961
52962         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52963         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52964
52965 2008-08-18  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52968         pthread_in_use().
52969
52970 2008-08-18  Bruno Haible  <bruno@clisp.org>
52971
52972         * lib/glthread/threadlib.c: Include <pthread.h>.
52973
52974 2008-08-18  Bruno Haible  <bruno@clisp.org>
52975
52976         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52977         glthread_recursive_lock_* macros.
52978         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52979         Fix syntax error.
52980
52981 2008-08-18  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/glthread/thread.c: Avoid forcing a context switch right after
52984         thread creation.
52985
52986 2008-08-17  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52989         * lib/glthread/thread.h: Provide Win32 specific implementation.
52990         * modules/thread (Files): Add lib/glthread/thread.c.
52991         (Depends-on): Add lock.
52992         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52993
52994 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52995
52996         New module 'yield'.
52997         * modules/yield: New file.
52998         * lib/glthread/yield.h: New file.
52999         * m4/yield.m4: New file.
53000         * MODULES.html.sh (Multithreading): Add yield.
53001
53002 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53003
53004         New module 'thread'.
53005         * modules/thread: New file.
53006         * lib/glthread/thread.h: New file.
53007         * m4/thread.m4: New file.
53008         * MODULES.html.sh (Multithreading): Add thread.
53009
53010 2008-08-17  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/glthread/lock.h: Include <stdlib.h> always.
53013         * lib/glthread/tls.h: Likewise.
53014         * lib/glthread/cond.h: Likewise.
53015
53016 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53017
53018         New module 'cond'.
53019         * modules/cond: New file.
53020         * lib/glthread/cond.h: New file.
53021         * lib/glthread/cond.c: New file.
53022         * m4/cond.m4: New file.
53023         * MODULES.html.sh (Multithreading): Add cond.
53024
53025 2008-08-16  Eric Blake  <ebb9@byu.net>
53026
53027         c-stack: fix regression on Irix 5.3 from 2008-06-21
53028         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53029         sa_sigaction...
53030         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53031         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53032         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53033         * modules/signal (Makefile.am): Use the value.
53034         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53035         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53036         * doc/posix-headers/signal.texi (signal.h): Document this
53037         portability issue.
53038         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53039         Reported by Tom G. Christensen.
53040
53041 2008-08-17  Bruno Haible  <bruno@clisp.org>
53042
53043         New module 'threadlib'.
53044         * modules/threadlib: New file.
53045         * lib/glthread/threadlib.c: New file, extracted from
53046         lib/glthread/lock.c.
53047         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53048         functions.
53049         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53050         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53051         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53052         macros.
53053         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53054         (gl_DISABLE_THREADS): Remove macro.
53055         * modules/lock (Files): Remove build-aux/config.rpath.
53056         (Depends-on): Remove havelib. Add threadlib.
53057         (configure.ac-early): Remove section.
53058         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53059         * modules/tls (Depends-on): Remove lock. Add threadlib.
53060         (Link): New section, copied from threadlib.
53061         * MODULES.html.sh (Multithreading): Add threadlib.
53062
53063 2008-08-14  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53066         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53067         glthread_rwlock_unlock, glthread_rwlock_destroy,
53068         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53069         glthread_recursive_lock_destroy): Define as macros always.
53070         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53071         glthread_lock_lock.
53072         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53073         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53074         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53075         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53076         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53077         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53078         (glthread_recursive_lock_lock_func): Renamed from
53079         glthread_recursive_lock_lock.
53080         (glthread_recursive_lock_unlock_func): Renamed from
53081         glthread_recursive_lock_unlock.
53082         (glthread_recursive_lock_destroy_func): Renamed from
53083         glthread_recursive_lock_destroy.
53084
53085 2008-08-14  Bruno Haible  <bruno@clisp.org>
53086
53087         * lib/glthread/lock.h: Renamed from lib/lock.h.
53088         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53089         * lib/glthread/tls.h: Renamed from lib/tls.h.
53090         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53091         * lib/fstrcmp.c: Update includes.
53092         * lib/strsignal.c: Update includes.
53093         * modules/lock (Files, Makefile.am): Update.
53094         (Include): Change to "glthread/lock.h".
53095         * modules/tls (Files, Makefile.am): Update.
53096         (Include): Change to "glthread/tls.h".
53097         * tests/test-lock.c: Update includes.
53098         * tests/test-tls.c: Update includes.
53099         * NEWS: Mention the renamed header files.
53100
53101 2008-08-11  Jim Meyering  <meyering@redhat.com>
53102
53103         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53104
53105 2008-08-11  Eric Blake  <ebb9@byu.net>
53106
53107         test-c-stack: avoid C99-ism
53108         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53109         before statement.
53110         Reported by Alain Guibert.
53111
53112 2008-08-10  Jim Meyering  <meyering@redhat.com>
53113
53114         ensure that return value of uinttostr et al are not ignored
53115         * lib/inttostr.h (__GNUC_PREREQ): Define.
53116         (__attribute_warn_unused_result__): Define.
53117         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53118
53119 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53120
53121         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53122         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53123
53124 2008-08-07  Jim Meyering  <meyering@redhat.com>
53125
53126         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53127
53128         * modules/mkstemp (License): Relicense under LGPLv2+.
53129         * modules/tempname (License): Likewise.
53130
53131 2008-08-06  Bruno Haible  <bruno@clisp.org>
53132
53133         * lib/poll.c (poll): Further micro-optimization.
53134
53135 2008-08-06  Jim Meyering  <meyering@redhat.com>
53136
53137         inet_pton.c: use locale-independent tolower
53138         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53139         (inet_pton6): Use c_tolower rather than tolower.
53140         * modules/inet_pton (Depends-on): Add c-ctype.
53141
53142 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53143
53144         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53145         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53146
53147 2008-08-06  Jim Meyering  <meyering@redhat.com>
53148
53149         * modules/inet_pton (License): Relicense under LGPLv2+.
53150
53151 2008-08-03  Bruno Haible  <bruno@clisp.org>
53152
53153         Additional non-aborting API for lock and tls.
53154         * lib/lock.h: Include <errno.h>.
53155         (glthread_lock_init): New macro/function.
53156         (gl_lock_init): Define as wrapper around glthread_lock_init.
53157         (glthread_lock_lock): New macro/function.
53158         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53159         (glthread_lock_unlock): New macro/function.
53160         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53161         (glthread_lock_destroy): New macro/function.
53162         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53163         (glthread_rwlock_init): New macro/function.
53164         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53165         (glthread_rwlock_rdlock): New macro/function.
53166         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53167         (glthread_rwlock_wrlock): New macro/function.
53168         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53169         (glthread_rwlock_unlock): New macro/function.
53170         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53171         (glthread_rwlock_destroy): New macro/function.
53172         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53173         (glthread_recursive_lock_init): New macro/function.
53174         (gl_recursive_lock_init): Define as wrapper around
53175         glthread_recursive_lock_init.
53176         (glthread_recursive_lock_lock): New macro/function.
53177         (gl_recursive_lock_lock): Define as wrapper around
53178         glthread_recursive_lock_lock.
53179         (glthread_recursive_lock_unlock): New macro/function.
53180         (gl_recursive_lock_unlock): Define as wrapper around
53181         glthread_recursive_lock_unlock.
53182         (glthread_recursive_lock_destroy): New macro/function.
53183         (gl_recursive_lock_destroy): Define as wrapper around
53184         glthread_recursive_lock_destroy.
53185         (glthread_once): New macro/function.
53186         (gl_once): Define as wrapper around glthread_once.
53187         Update function declarations.
53188         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53189         glthread_rwlock_init. Return error code.
53190         (glthread_rwlock_rdlock_multithreaded): Renamed from
53191         glthread_rwlock_rdlock. Return error code.
53192         (glthread_rwlock_wrlock_multithreaded): Renamed from
53193         glthread_rwlock_wrlock. Return error code.
53194         (glthread_rwlock_unlock_multithreaded): Renamed from
53195         glthread_rwlock_unlock. Return error code.
53196         (glthread_rwlock_destroy_multithreaded): Renamed from
53197         glthread_rwlock_destroy. Return error code.
53198         (glthread_recursive_lock_init_multithreaded): Renamed from
53199         glthread_recursive_lock_init. Return error code.
53200         (glthread_recursive_lock_lock_multithreaded): Renamed from
53201         glthread_recursive_lock_lock. Return error code.
53202         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53203         glthread_recursive_lock_unlock. Return error code.
53204         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53205         glthread_recursive_lock_destroy. Return error code.
53206         (glthread_once_call): Make static.
53207         (glthread_once_multithreaded): Renamed from glthread_once.
53208         * lib/tls.h: Include <errno.h>.
53209         (glthread_tls_key_init): New macro/function.
53210         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53211         (glthread_tls_set): New macro/function.
53212         (gl_tls_set): Define as wrapper around glthread_tls_set.
53213         (glthread_tls_key_destroy): New macro/function.
53214         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53215         Update function declarations.
53216         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53217         glthread_tls_get.
53218         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53219
53220 2008-08-04  Eric Blake  <ebb9@byu.net>
53221
53222         gnumakefile: use space, not TAB, outside of targets
53223         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53224
53225 2008-08-02  Jim Meyering  <meyering@redhat.com>
53226
53227         getdate.y: avoid locale-dependent date parsing failure
53228         In Turkish locales, getdate would fail to recognize keywords
53229         containing a lowercase "i".  The solution is not to rely on
53230         locale-sensitive case-conversion.
53231         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53232         (lookup_word): Use c_toupper in place of toupper.
53233         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53234         Reported by Vefa Bicakci <bicave@superonline.com> in
53235         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53236         * modules/getdate (Depends-on): Add c-ctype.
53237
53238 2008-08-02  Bruno Haible  <bruno@clisp.org>
53239
53240         * gnulib-tool (func_import): When updating or creating a .gitignore
53241         file, prepend each added line with a slash, and ignore leading slashes
53242         from the existing lines.
53243         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53244
53245 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53246
53247         Portability fix for GNU make 3.79.1.
53248         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53249         versions do not understand.
53250
53251 2008-08-01  Bruno Haible  <bruno@clisp.org>
53252
53253         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53254         * tests/test-isnanf.h (zero): New variable.
53255         (main): Avoid literal -0.0f.
53256         * tests/test-isnand.h (zero): New variable.
53257         (main): Avoid literal -0.0.
53258         * tests/test-isnanl.h (zero): New variable.
53259         (main): Avoid literal -0.0L.
53260         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53261         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53262         -0.0, -0.0L.
53263         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53264         (test_signbitd): Avoid literal -0.0.
53265         (test_signbitl): Avoid literal -0.0L.
53266         * tests/test-ceilf1.c (zero): New variable.
53267         (main): Avoid literal -0.0f.
53268         * tests/test-ceill.c (zero): New variable.
53269         (main): Avoid literal -0.0L.
53270         * tests/test-floorf1.c (zero): New variable.
53271         (main): Avoid literal -0.0f.
53272         * tests/test-floorl.c (zero): New variable.
53273         (main): Avoid literal -0.0L.
53274         * tests/test-roundf1.c (zero): New variable.
53275         (main): Avoid literal -0.0f.
53276         * tests/test-round1.c (zero): New variable.
53277         (main): Avoid literal -0.0.
53278         * tests/test-roundl.c (zero): New variable.
53279         (main): Avoid literal -0.0L.
53280         * tests/test-truncf1.c (zero): New variable.
53281         (main): Avoid literal -0.0f.
53282         * tests/test-trunc1.c (zero): New variable.
53283         (main): Avoid literal -0.0.
53284         * tests/test-truncl.c (zero): New variable.
53285         (main): Avoid literal -0.0L.
53286         * tests/test-frexp.c (zero): New variable.
53287         (main): Avoid literal -0.0.
53288         * tests/test-frexpl.c (zero): New variable.
53289         (main): Avoid literal -0.0L.
53290         * tests/test-ldexpl.c (zero): New variable.
53291         (main): Avoid literal -0.0L.
53292         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53293         (zerod, zerol): New variables.
53294         (test_function): Avoid literals -0.0, -0.0L.
53295         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53296         (zerod, zerol): New variables.
53297         (test_function): Avoid literals -0.0, -0.0L.
53298         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53299         (zerod, zerol): New variables.
53300         (test_function): Avoid literals -0.0, -0.0L.
53301         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53302         (zerod, zerol): New variables.
53303         (test_function): Avoid literals -0.0, -0.0L.
53304         * tests/test-strtod.c (zero): New variable.
53305         (main): Avoid literal -0.0.
53306         Reported by Jonathan C. Patschke <jp@centtech.com>.
53307
53308 2008-07-31  Jim Meyering  <meyering@redhat.com>
53309
53310         sha256.h: correct definition of SHA224_DIGEST_SIZE
53311         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53312         Reported by Paulie Pena IV <paulie4@gmail.com>.
53313         Define as 224 / 8, rather than as a literal.
53314         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53315         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53316         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53317
53318 2008-07-31  Bruno Haible  <bruno@clisp.org>
53319
53320         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53321         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53322         Reported by Jonathan Patschke <jp@centtech.com>.
53323
53324 2008-07-31  Bruno Haible  <bruno@clisp.org>
53325
53326         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53327         Reported by Paolo Bonzini <bonzini@gnu.org>.
53328
53329 2008-07-30  Eric Blake  <ebb9@byu.net>
53330
53331         test-strtod: allow compilation without -lm
53332         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53333         Reported by Dennis Clarke <blastwave@gmail.com>.
53334
53335 2008-07-28  Jim Meyering  <meyering@redhat.com>
53336
53337         bootstrap: work also when there are no .po files in po/
53338         * build-aux/bootstrap (update_po_files): Complete the change
53339         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53340
53341 2008-07-27  Jim Meyering  <meyering@redhat.com>
53342
53343         * users.txt: Add zile.
53344
53345 2008-07-26  Ben Pfaff  <blp@gnu.org>
53346
53347         Add missing dependencies on new m4/exponent[fdl].m4 files.
53348         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53349         * modules/isnand-nolibm: Add m4/exponentd.m4.
53350         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53351         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53352         m4/isnan[fdl].m4, because the macros actually used moved.
53353         Reported by Jim Meyering.
53354
53355 2008-07-14  Ben Pfaff  <blp@gnu.org>
53356
53357         Add isinf module.
53358         * lib/isinf.c: New file.
53359         * lib/math.in.h: Define isinf macro if we have decided to replace
53360         it.
53361         * m4/isinf.m4: New file.
53362         * m4/math_h.m4: Initialize and substitute variables for isinf
53363         module.
53364         * modules/isinf: New file.
53365         * modules/isinf-tests: New file.
53366         * modules/math: Add substitutions for new module.
53367         * tests/test-isinf.c: New file.
53368         * doc/posix-functions/isinf.texi: Mention new module.
53369         * MODULES.html.sh: Mention new module.
53370
53371 2008-07-14  Ben Pfaff  <blp@gnu.org>
53372
53373         Factor out some macros for use by additional modules.
53374         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53375         exponentf.m4.
53376         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53377         exponentd.m4.
53378         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53379         file exponentl.m4.
53380         * m4/exponentf.m4: New file.
53381         * m4/exponentd.m4: New file.
53382         * m4/exponentl.m4: New file.
53383         * modules/isnanf: Use new file m4/exponentf.m4.
53384         * modules/isnand: Use new file m4/exponentd.m4.
53385         * modules/isnanl: Use new file m4/exponentl.m4.
53386
53387 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53388
53389         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53390         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53391         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53392         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53393
53394         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53395         readlink on platforms without PATH_MAX.
53396
53397 2008-07-21  Eric Blake  <ebb9@byu.net>
53398
53399         Warn, not fail, on stale version.
53400         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53401
53402         Don't allow installation with stale devel version number.
53403         * top/GNUmakefile (_is-install-target): New macro.
53404         (_curr-ver): Forbid installation with stale version number.
53405
53406 2008-07-20  Bruno Haible  <bruno@clisp.org>
53407
53408         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53409         TESTS_ENVIRONMENT.
53410         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53411
53412 2008-07-20  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/c-stack.h (c_stack_action): Add documentation.
53415         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53416
53417 2008-07-20  Bruno Haible  <bruno@clisp.org>
53418
53419         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53420         * modules/readlink (License): Likewise.
53421
53422 2008-07-17  Eric Blake  <ebb9@byu.net>
53423
53424         * modules/c-stack (Link): Fix typo.
53425
53426         Make c-stack use libsigsegv, when available.
53427         * modules/c-stack (Depends-on): Add libsigsegv.
53428         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53429         needed.
53430         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53431         (segv_handler, overflow_handler, c_stack_action)
53432         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53433         implementation when libsigsegv is available, but only when using
53434         the library is necessary.
53435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53436         comment, explaining why XSI check fails on Linux.
53437         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53438         * tests/test-c-stack2.sh: Tweak skip message.
53439         * NEWS: Document new link-time requirements.
53440
53441 2008-07-16  Eric Blake  <ebb9@byu.net>
53442
53443         c-stack: Expose false positives when not using libsigsegv.
53444         * modules/c-stack-tests (Files): Expand test.
53445         * tests/test-c-stack.c (main): Add means to conditionally trigger
53446         non-overflow SIGSEGV.
53447         * tests/test-c-stack2.sh: New file.
53448
53449 2008-07-14  Bruno Haible  <bruno@clisp.org>
53450
53451         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53452         Reported by Eric Blake.
53453
53454 2008-07-14  Sam Steingold  <sds@gnu.org>
53455             Bruno Haible  <bruno@clisp.org>
53456
53457         New module libsigsegv.
53458         * modules/libsigsegv: New file.
53459         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53460         modifications.
53461         * MODULES.html.sh (Signal handling): New section.
53462
53463 2008-07-14  Bruno Haible  <bruno@clisp.org>
53464
53465         * modules/unictype/ctype-* (Description): Add the word "function".
53466         Improves the resulting doc in MODULES.html.
53467
53468 2008-07-12  Ben Pfaff  <blp@gnu.org>
53469
53470         Add longlong module.
53471         * modules/longlong: New file.
53472
53473 2008-07-12  Bruno Haible  <bruno@clisp.org>
53474
53475         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53476         to empty.
53477
53478 2008-07-10  Ben Pfaff  <blp@gnu.org>
53479
53480         Add isnan module.
53481         * doc/posix-functions/isnan.texi: Mention new module.
53482         * lib/math.in.h: Define isnan macro if we have decided to replace
53483         it.
53484         * m4/isnan.m4: New file.
53485         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53486         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53487         also.
53488         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53489         redundancy.
53490         * m4/math_h.m4: Initialize and substitute variables for isnan
53491         module.
53492         * modules/isnan: New file.
53493         * modules/isnan-tests: New file.
53494         * modules/math: Add substitutions for new module.
53495         * tests/test-isnan.c: New file.
53496         * MODULES.html.sh: Mention new module.
53497
53498 2008-07-10  Ben Pfaff  <blp@gnu.org>
53499
53500         Add isnanf module.
53501         * lib/isnanf.m4: New file.
53502         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53503         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53504         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53505         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53506         * modules/isnanf: New file.
53507         * modules/isnanf-tests: New file.
53508         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53509         files.
53510         * tests/test-isnanf-nolibm.c: factored most of its contents into
53511         new file tests/test-isnanf.h.
53512         * tests/test-isnanf.h: New file.
53513         * tests/test-isnanf.c: New file.
53514         * MODULES.html.sh: Mention new module.
53515         * doc/glibc-functions/isnanf.texi: Mention new module.
53516
53517 2008-07-10  Ben Pfaff  <blp@gnu.org>
53518
53519         Add isnand module.
53520         * lib/isnand.h: New file.
53521         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53522         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53523         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53524         functionality also.
53525         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53526         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53527         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53528         * modules/isnand: New file.
53529         * modules/isnand-tests: New file.
53530         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53531         files.
53532         * tests/test-isnand-nolibm.c: factored most of its contents into
53533         new file tests/test-isnand.h.
53534         * tests/test-isnand.h: New file.
53535         * tests/test-isnand.c: New file.
53536         * MODULES.html.sh: Mention new module.
53537
53538 2008-07-10  Ben Pfaff  <blp@gnu.org>
53539
53540         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53541         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53542         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53543         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53544         * modules/isnanf-nolibm: Update references to renamed files.
53545         * modules/isnand-nolibm: Likewise.
53546         * modules/isnanf-nolibm-tests: Likewise.
53547         * modules/isnand-nolibm-tests: Likewise.
53548         * lib/frexp.c: Likewise.
53549         * lib/isfinite.c: Likewise.
53550         * lib/signbitd.c: Likewise.
53551         * lib/signbitf.c: Likewise.
53552         * lib/vasnprintf.c: Likewise.
53553         * tests/test-ceilf1.c: Likewise.
53554         * tests/test-ceilf2.c: Likewise.
53555         * tests/test-floorf1.c: Likewise.
53556         * tests/test-floorf2.c: Likewise.
53557         * tests/test-frexp.c: Likewise.
53558         * tests/test-round1.c: Likewise.
53559         * tests/test-round2.c: Likewise.
53560         * tests/test-roundf1.c: Likewise.
53561         * tests/test-strtod.c: Likewise.
53562         * tests/test-trunc1.c: Likewise.
53563         * tests/test-trunc2.c: Likewise.
53564         * tests/test-truncf1.c: Likewise.
53565         * tests/test-truncf2.c: Likewise.
53566         * NEWS: Mention the renamed header files.
53567
53568 2008-07-11  Jim Meyering  <meyering@redhat.com>
53569
53570         vc-list-files: make the last-resort awk code more portable
53571         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53572         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53573         does not support it.
53574
53575 2008-07-10  Eric Blake  <ebb9@byu.net>
53576
53577         Work with tar's bootstrap.
53578         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53579         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53580         an m4 comment.
53581
53582 2008-07-09  Jim Meyering  <meyering@redhat.com>
53583
53584         posix-shell.m4: fix typo that made this test malfunction
53585         * m4/posix-shell.m4: Remove capitalization in variable name.
53586
53587 2008-07-08  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/onceonly.m4: Update comments.
53590         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53591
53592 2008-07-04  Jim Meyering  <meyering@redhat.com>
53593
53594         * users.txt: Add vc-dwim.
53595         (bison, coreutils): Use the gitweb URL.
53596
53597 2008-07-03  Jim Meyering  <meyering@redhat.com>
53598
53599         * users.txt: Add libffcall.  From Sam Steingold.
53600
53601 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53602
53603         getdate.y: do not ignore TZ with relative day, month or year offset
53604         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53605         relative-date-handling, since otherwise, the latter would clobber the
53606         sole output (an updated Start value) of the tz-handling block.
53607         * tests/test-getdate.c: Tests for the fix
53608
53609 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53610
53611         Recognize 'foo_LIBRARIES += libgnu.a'.
53612         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53613         makefile snippet has already specified an installation location,
53614         also using '+='.
53615
53616 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53617
53618         getdate.y: factor out common actions
53619         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53620         Use them in place of open-coded actions.
53621
53622 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53623
53624         Add self-test for getdate module.
53625         * modules/getdate-tests: New file.
53626         * tests/test-getdate.c: New file.
53627
53628 2008-06-29  Bruno Haible  <bruno@clisp.org>
53629
53630         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53631         .gitignore.
53632         Reported by Sylvain Beucler <beuc@beuc.net>.
53633
53634 2008-06-29  Bruno Haible  <bruno@clisp.org>
53635
53636         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53637         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53638
53639 2008-06-29  Bruno Haible  <bruno@clisp.org>
53640
53641         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53642         EXTRA_DIST.
53643         Reported by Sylvain Beucler <beuc@beuc.net>.
53644
53645 2008-06-26  Jim Meyering  <meyering@redhat.com>
53646
53647         make several modules depend on the "open" module
53648         This provides slightly increased consistency when opening-for-write
53649         the name of a non-directory spelled with a trailing slash.
53650         * modules/chdir-safer: Likewise.
53651         * modules/chown: Likewise.
53652         * modules/clean-temp: Likewise.
53653         * modules/copy-file: Likewise.
53654         * modules/fchdir: Likewise.
53655         * modules/fcntl-safer: Likewise.
53656         * modules/pipe: Likewise.
53657         * modules/utime: Likewise.
53658         Prompted by Eric Blake and Bruno Haible.
53659
53660 2008-06-24  Andreas Schwab  <schwab@suse.de>
53661
53662         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53663         literals can be used as initializers for global variables.
53664
53665 2008-06-23  Eric Blake  <ebb9@byu.net>
53666
53667         Make gnulib-cache.m4 easier to diff.
53668         * gnulib-tool (func_import): Allow newlines when reading cached
53669         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53670
53671 2008-06-23  Bruno Haible  <bruno@clisp.org>
53672
53673         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53674         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53675         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53676         m4/signalblocking.m4.
53677         (gl_PREREQ_SIGACTION): Don't invoke it.
53678         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53679         gl_PREREQ_SIG_HANDLER_H.
53680         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53681         Don't check for sigaction here.
53682
53683 2008-06-23  Bruno Haible  <bruno@clisp.org>
53684
53685         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53686         (install_handlers): Don't set the SA_RESETHAND flag.
53687
53688 2008-06-23  Bruno Haible  <bruno@clisp.org>
53689
53690         * m4/sigaction.m4: Comment fixes.
53691         * lib/signal.in.h: Likewise.
53692
53693 2008-06-23  Eric Blake  <ebb9@byu.net>
53694
53695         Fix typo.
53696         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53697
53698         Avoid SA_ namespace.
53699         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53700         Reported by Ralf Wildenhues.
53701
53702         Avoid test failure due to SA_RESTORER.
53703         * tests/test-sigaction.c (SA_MASK): New macro.
53704         (main): Avoid failing due to extension flags being set.
53705         Reported by Jim Meyering.
53706
53707         Revert use of sig-handler.h in sigprocmask.c.
53708         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53709         it requires the existence of struct sigaction.
53710         * lib/sigprocmask.c (handler_t): Restore typedef.
53711         (rpl_signal, old_handlers): Use local type.
53712
53713 2008-06-22  Bruno Haible  <bruno@clisp.org>
53714
53715         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53716         conditionally.
53717         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53718
53719 2008-06-22  Bruno Haible  <bruno@clisp.org>
53720
53721         * doc/posix-functions/siginterrupt.texi: Move note.
53722
53723         * lib/signal.in.h (SA_RESTART): New macro.
53724         * lib/sigaction.c: Update comment.
53725
53726         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53727
53728         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53729         (gl_PREREQ_SIGPROCMASK): Invoke it.
53730         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53731
53732         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53733
53734         * lib/sigprocmask.c: Update a comment.
53735
53736 2008-06-21  Eric Blake  <ebb9@byu.net>
53737
53738         Use sigaction module rather than signal().
53739         * modules/c-stack (Depends-on): Add sigaction.
53740         * modules/fatal-signal (Depends-on): Likewise.
53741         * modules/nanosleep (Depends-on): Likewise.
53742         * modules/sigprocmask (Files): Add sig-handler.h.
53743         * modules/sigaction (Files): Likewise.
53744         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53745         Eggert.
53746         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53747         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53748         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53749         (init_fatal_signals): Likewise.
53750         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53751         (siginterrupt): Delete fallback.
53752         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53753         instead.
53754         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53755         siginterrupt.
53756
53757         New module sigaction, for mingw.
53758         * modules/sigaction: New module...
53759         * modules/sigaction-tests: ...and its test.
53760         * m4/sigaction.m4: New file.
53761         * lib/sigaction.c: Likewise.
53762         * tests/test-sigaction.c: Likewise.
53763         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53764         * modules/signal (Makefile.am): Likewise.
53765         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53766         needed.
53767         * doc/posix-headers/signal.texi (signal.h): Mention provided
53768         types.
53769         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53770         that sigaction is preferable.
53771         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53772         module.
53773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53774         sigaction.
53775
53776         Improve robustness of sigprocmask by overriding signal.
53777         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53778         is in use.
53779         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53780         (SIGKILL, SIGSTOP): Provide fallbacks.
53781         (rpl_signal): Implement.
53782         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53783         signal can be called inside handlers.
53784
53785         Fix nanosleep module on mingw.
53786         * modules/nanosleep (Depends-on): Add sys_select.
53787         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53788
53789         Fix licensing of sigprocmask.
53790         * modules/raise (License): Relicense as LGPL.
53791
53792 2008-06-21  Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53795         result if it contains question marks.
53796         Reported by Michael Geng <linux@michaelgeng.de>.
53797
53798 2008-06-19  Bruno Haible  <bruno@clisp.org>
53799
53800         Fix CVS-ism.
53801         * doc/gnulib.texi: Include updated-stamp.texi.
53802         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53803         (updated-stamp.texi): New rule.
53804         (gnulib.info): Depend on it.
53805         * doc/.gitignore: Add updated-stamp.texi.
53806         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53807
53808 2008-06-19  Bruno Haible  <bruno@clisp.org>
53809
53810         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53811         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53812
53813 2008-06-19  Eric Blake  <ebb9@byu.net>
53814
53815         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53816         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53817         Reported by Stepan Kasal.
53818
53819 2008-06-18  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53822         Reported by Eric Blake.
53823
53824 2008-06-18  Eric Blake  <ebb9@byu.net>
53825
53826         Work around cygwin 1.5.25 strsignal bug.
53827         * tests/test-strsignal.c: Allow for const char *.
53828         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53829
53830 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53831
53832         * users.txt: Update URL to article and add author/date
53833         information.
53834
53835 2008-06-17  Bruno Haible  <bruno@clisp.org>
53836
53837         New macro gl_DISABLE_THREADS.
53838         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53839         if the user did not pass --enable-threads or --disable-threads option.
53840         (gl_DISABLE_THREADS): New macro.
53841         Reported by Eric Blake <ebb9@byu.net>.
53842
53843 2008-06-17  Bruno Haible  <bruno@clisp.org>
53844
53845         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53846         when the macro ignores it.
53847         Based on a patch by Eric Blake <ebb9@byu.net>.
53848
53849 2008-06-17  Bruno Haible  <bruno@clisp.org>
53850
53851         * modules/tls (License): Change to LGPLv2+.
53852         Reported by Eric Blake.
53853
53854 2008-06-17  Eric Blake  <ebb9@byu.net>
53855
53856         Simplify c-stack prerequisites.
53857         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53859         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53860         check.
53861         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53862         <sys/resource.h>.
53863
53864         Move c-stack test into testsuite.
53865         * modules/c-stack-tests: New file.
53866         * lib/c-stack.c [DEBUG]: Move test program...
53867         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53868         fail test if sigaltstack is lacking.
53869         * tests/test-c-stack.sh: New driver file.
53870
53871 2008-06-16  Eric Blake  <ebb9@byu.net>
53872
53873         Use raise module consistently.
53874         * modules/fatal-signal (Depends-on): Add raise.
53875         * modules/sigprocmask (Depends-on): Likewise.
53876         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53877         * lib/sigprocmask.c (sigprocmask): Likewise.
53878         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53879         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53880
53881         Fix compliance bug in sigpending.
53882         * lib/sigprocmask.c (sigpending): Return pending array via
53883         parameter, not return value.
53884
53885 2008-06-14  Eric Blake  <ebb9@byu.net>
53886
53887         Improve obstack-printf test code.
53888         * tests/test-obstack-printf.c (test_function): Fix comment, and
53889         simplify usage of obstack_* in macros.  Add a test for coverage.
53890         Reported by Bruno Haible.
53891
53892 2008-06-14  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53895         array size as a constant, not as a const variable.
53896         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53897         AC_USE_SYSTEM_EXTENSIONS.
53898         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53899         Test whether the obstack_printf function actually exists.
53900         * modules/obstack-printf (Depends-on): Add extensions.
53901         (Include): Remove obstack.h.
53902         * modules/obstack-printf-posix (Depends-on): Add extensions.
53903         (Include): Remove obstack.h.
53904
53905 2008-06-13  Eric Blake  <ebb9@byu.net>
53906
53907         Add obstack-printf and obstack-printf-posix modules.
53908         * modules/obstack-printf: New file.
53909         * modules/obstack-printf-posix: Likewise.
53910         * MODULES.html.sh (Misc): Mention them.
53911         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53912         Likewise.
53913         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53914         Likewise.
53915         * modules/stdio (Makefile.am): Accomodate new modules.
53916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53917         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53918         Declare.
53919         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53920         functions.
53921         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53922         (gl_REPLACE_OBSTACK_PRINTF): New macros
53923         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53924         * tests/test-obstack-printf.c: New file.
53925         * modules/obstack-printf-tests: Likewise.
53926         * modules/obstack-printf-posix-tests: Likewise.
53927
53928 2008-06-11  Bruno Haible  <bruno@clisp.org>
53929
53930         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53931         * lib/open.c: Include errno.h.
53932         (open): Fail when attempting to write to a file that has a trailing
53933         slash.
53934         * tests/test-open.c (main): Test against trailing slash bug.
53935         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53936
53937 2008-06-10  Bruno Haible  <bruno@clisp.org>
53938
53939         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53940         for $? to work inside the trap command, with various /bin/sh-s.
53941         * tests/test-vc-list-files-cvs.sh: Likewise.
53942
53943 2008-06-10  Bruno Haible  <bruno@clisp.org>
53944
53945         * lib/acl-internal.h: Don't include gettext.h here.
53946         * lib/set-mode-acl.c: Include gettext.h here.
53947         * lib/copy-acl.c: Likewise.
53948
53949 2008-06-10  Bruno Haible  <bruno@clisp.org>
53950
53951         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53952         * lib/wait-process.c (wait_subprocess): Likewise.
53953         * lib/execute.h (execute): Add termsigp argument.
53954         * lib/execute.c (execute): Likewise.
53955         * lib/csharpcomp.c (compile_csharp_using_pnet,
53956         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53957         * lib/csharpexec.c (execute_csharp_using_pnet,
53958         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53959         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53960         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53961         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53962         is_jikes_present): Update.
53963         * lib/javaexec.c (execute_java_class): Update.
53964         * lib/javaversion.c (execute_and_read_line): Update.
53965         * NEWS: Document the changes.
53966         Reported by Eric Blake.
53967
53968 2008-06-10  Eric Blake  <ebb9@byu.net>
53969
53970         Add missing include.
53971         * tests/test-strstr.c (includes): Add <signal.h>.
53972         * tests/test-strcasestr.c (includes): Likewise.
53973         * tests/test-memmem.c (includes): Likewise.
53974
53975 2008-06-10  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/wait-process.c (wait_subprocess): Add an assertion.
53978
53979 2008-06-10  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53982
53983 2008-06-10  Bruno Haible  <bruno@clisp.org>
53984
53985         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53986         using alarm().
53987         * tests/test-strcasestr.c (main): Likewise.
53988         * tests/test-strstr.c (main): Likewise.
53989
53990 2008-06-09  Bruno Haible  <bruno@clisp.org>
53991
53992         Work around the Solaris 10 ACE ACLs ABI change.
53993         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53994         declare if ACL_NO_TRIVIAL is present.
53995         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53996         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53997         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53998         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53999         define if ACL_NO_TRIVIAL is present.
54000         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54001         and use the current ABI.
54002         (file_has_acl): Use same #if condition as elsewhere.
54003         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54004         in use, and use the current ABI.
54005         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54006         Reported by Jim Meyering.
54007
54008 2008-06-09  Eric Blake  <ebb9@byu.net>
54009
54010         Work around environments that (stupidly) ignore SIGALRM.
54011         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54012         before using alarm().
54013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54015         Reported by Ian Beckwith <ianb@erislabs.net>.
54016
54017         Produce autobuild blurb earlier in log.
54018         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54019
54020 2008-06-09  Jim Meyering  <meyering@redhat.com>
54021         and OndÅ™ej Vašík  <ovasik@redhat.com>
54022
54023         utimens.c: correct kernel bug work-around
54024         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54025         failure, not success, and the kernel bug we're trying to work
54026         around affects not just the utimensat call, but also the fallback
54027         futimens call.
54028         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54029         not success.
54030         [HAVE_FUTIMENS]: Use the same work-around, here.
54031
54032 2008-06-09  Jim Meyering  <meyering@redhat.com>
54033
54034         add more guards around definition of ACE_-related code
54035         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54036         ALLOW and ACE_OWNER are also defined.
54037
54038 2008-06-08  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/acl-internal.h: Add me as co-author.
54041         * lib/file-has-acl.c: Likewise.
54042         * lib/set-mode-acl.c: Likewise.
54043         * lib/copy-acl.c: Likewise.
54044
54045 2008-06-08  Bruno Haible  <bruno@clisp.org>
54046
54047         Add support for AIX ACLs.
54048         * lib/acl-internal.h (acl_nontrivial): New declaration.
54049         * lib/file-has-acl.c (acl_nontrivial): New function.
54050         (file_has_acl): Add implementation using AIX 4 ACL API.
54051         * lib/set-mode-acl.c (qset_acl): Likewise.
54052         * lib/copy-acl.c (qcopy_acl): Likewise.
54053
54054 2008-06-08  Bruno Haible  <bruno@clisp.org>
54055
54056         Add support for HP-UX ACLs.
54057         * lib/acl-internal.h (acl_nontrivial): New declaration.
54058         * lib/file-has-acl.c (acl_nontrivial): New function.
54059         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54060         * lib/set-mode-acl.c (qset_acl): Likewise.
54061         * lib/copy-acl.c (qcopy_acl): Likewise.
54062
54063 2008-06-08  Bruno Haible  <bruno@clisp.org>
54064
54065         Add support for Cygwin ACLs.
54066         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54067         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54068         the chmod_or_fchmod call.
54069         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54070
54071 2008-06-08  Bruno Haible  <bruno@clisp.org>
54072
54073         Fix bug with setuid modes in Solaris 10+ code.
54074         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54075         succeeded, when the mode contains some special bits.
54076
54077 2008-06-08  Bruno Haible  <bruno@clisp.org>
54078
54079         Add support for Solaris 7..10 ACLs.
54080         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54081         declarations.
54082         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54083         functions.
54084         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54085         * lib/set-mode-acl.c (qset_acl): Likewise.
54086         * lib/copy-acl.c (qcopy_acl): Likewise.
54087
54088 2008-06-08  Bruno Haible  <bruno@clisp.org>
54089
54090         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54091         declaration.
54092         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54093         (acl_access_nontrivial): Remove MacOS X case.
54094         (file_has_acl): Use acl_extended_nontrivial.
54095         * lib/copy-acl.c (qcopy_acl): Likewise.
54096
54097 2008-06-08  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54100
54101 2008-06-08  Jim Meyering  <meyering@redhat.com>
54102
54103         * modules/acl (Maintainer): Add Bruno Haible.
54104
54105 2008-06-07  Bruno Haible  <bruno@clisp.org>
54106
54107         Improve support for Tru64 ACLs.
54108         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54109         ACL on OSF/1.
54110
54111 2008-06-07  Bruno Haible  <bruno@clisp.org>
54112
54113         Add support for MacOS X ACLs.
54114         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54115         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54116         * lib/set-mode-acl.c (qset_acl): Likewise.
54117         * lib/copy-acl.c (qcopy_acl): Likewise.
54118
54119 2008-06-07  Bruno Haible  <bruno@clisp.org>
54120
54121         Fix memory leak introduced on 2008-05-22.
54122         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54123         use.
54124
54125 2008-06-07  Bruno Haible  <bruno@clisp.org>
54126
54127         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54128         to construct an empty ACL.
54129
54130 2008-06-07  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54133         precisely.
54134         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54135
54136 2008-06-07  Bruno Haible  <bruno@clisp.org>
54137
54138         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54139         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54140
54141 2008-06-07  Bruno Haible  <bruno@clisp.org>
54142
54143         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54144         regardless of POSIX.
54145         * doc/posix-functions/_longjmp.texi: Likewise.
54146         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54147         SystemV platform in this case.
54148
54149 2008-06-06  Eric Blake  <ebb9@byu.net>
54150
54151         Document abort() bugs.
54152         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54153
54154         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54155         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54156         sigsetjmp.
54157         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54158         siglongjmp, but only as a macro.
54159         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54160         is obsolete.
54161         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54162
54163         Tweak documentation to cover cygwin argz bugs.
54164         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54165         argz bug fix; no code change needed since no cygwin releases
54166         occurred between the last fix and the bug being tested.
54167         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54168         module and recently fixed cygwin bugs.
54169         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54170         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54171         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54172         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54173         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54174         Likewise.
54175         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54176         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54177         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54178         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54179         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54180         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54181         Likewise.
54182
54183         Avoid gcc warning on cygwin.
54184         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54185         !ACL_NO_TRIVIAL]: Avoid unused variable.
54186
54187 2008-06-05  Eric Blake  <ebb9@byu.net>
54188
54189         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54190         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54191         git-version-gen fails to come up with a version.
54192         Reported by Simon Josefsson.
54193
54194 2008-06-05  Jim Meyering  <meyering@redhat.com>
54195             Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         utimens.c: work around a probable Linux kernel bug
54198         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54199         appears to be a kernel bug that causes utimensat to return 280
54200         instead of 0, indicating success.
54201
54202 2008-06-04  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54205         2008-06-01 commit.
54206
54207 2008-06-04  Bruno Haible  <bruno@clisp.org>
54208
54209         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54210         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54211         (file_has_acl): Use it. Save errno afterwards.
54212         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54213
54214 2008-06-03  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54217         draft code. Simplify #ifs.
54218         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54219         Put Solaris code after POSIX-draft code. Fix comments regarding
54220         Solaris 10, HP-UX. Mention Cygwin.
54221         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54222
54223 2008-06-03  Eric Blake  <ebb9@byu.net>
54224
54225         Provide fallback for older kernels.
54226         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54227         Provide runtime fallback if kernel lacks support.
54228         Reported by Mike Frysinger.
54229
54230 2008-06-02  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54233         it exists.
54234
54235 2008-06-02  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54238         * lib/copy-acl.c (qcopy_acl): Update comment.
54239
54240 2008-06-02  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54243         like ACL APIs.
54244
54245 2008-06-02  Bruno Haible  <bruno@clisp.org>
54246
54247         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54248         * tests/test-set-mode-acl.sh: Likewise.
54249         * tests/test-copy-acl.sh: Likewise.
54250         * tests/test-copy-file.sh: Likewise.
54251
54252 2008-06-02  Bruno Haible  <bruno@clisp.org>
54253
54254         * tests/test-file-has-acl.sh: Remove unused code.
54255
54256 2008-06-01  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54259         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54260         messages.
54261         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54262
54263 2008-06-01  Bruno Haible  <bruno@clisp.org>
54264
54265         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54266         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54267         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54268         APIs.
54269         * modules/acl-tests (configure.ac): Remove tests now contained in
54270         m4/acl.m4.
54271
54272 2008-06-02  Jim Meyering  <meyering@redhat.com>
54273
54274         announce-gen: use a better key-server host name
54275         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54276         it may be more consistently reliable.  Suggested by Werner Koch
54277         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54278
54279 2008-06-01  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54282         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54283
54284 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54285
54286         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54287
54288 2008-06-01  Bruno Haible  <bruno@clisp.org>
54289
54290         New ACL tests.
54291         * tests/test-file-has-acl.sh: New file.
54292         * tests/test-file-has-acl.c: New file.
54293         * tests/test-set-mode-acl.sh: New file.
54294         * tests/test-set-mode-acl.c: New file.
54295         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54296         * tests/test-copy-acl.c: New file.
54297         * modules/acl-tests: New file, based on modules/copy-file-tests.
54298         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54299         (Depends-on): Add acl-tests.
54300         (configure.ac): Remove checks.
54301         (Makefile.am): Don't create test-sameacls program here any more.
54302
54303 2008-06-01  Bruno Haible  <bruno@clisp.org>
54304
54305         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54306         * tests/test-sameacls.c: Include progname.h.
54307         (main): Invoke set_program_name. Portability fixes for MacOS X,
54308         Solaris, HP-UX.
54309
54310 2008-06-01  Bruno Haible  <bruno@clisp.org>
54311
54312         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54313         function.
54314         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54315
54316 2008-06-01  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/rpmatch (Depends-on): Add strdup.
54319
54320 2008-06-01  Bruno Haible  <bruno@clisp.org>
54321
54322         * lib/pipe.c: Include unistd-safer.h.
54323         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54324         * modules/pipe (Depends-on): Add unistd-safer.
54325
54326 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54327
54328         * modules/autobuild (configure.ac): Call AB_INIT.
54329
54330 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54331
54332         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54333         Suggested by Bruno Haible <bruno@clisp.org>.
54334
54335 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54336
54337         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54338         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54339         <bruno@clisp.org>.
54340
54341 2008-05-29  Eric Blake  <ebb9@byu.net>
54342
54343         Prefer new POSIX 200x interfaces over futimesat.
54344         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54345         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54346         when available.
54347         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54348
54349 2008-05-28  Bruno Haible  <bruno@clisp.org>
54350
54351         * modules/stpcpy (License): Change to LGPLv2+.
54352         Requested by David Lutterkort <dlutter@redhat.com>.
54353
54354 2008-05-27  Bruno Haible  <bruno@clisp.org>
54355
54356         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54357         current mingw.
54358         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54359
54360 2008-05-27  Bruno Haible  <bruno@clisp.org>
54361
54362         * modules/iconv_open (Link): New section, from module 'iconv'.
54363         * modules/striconv (Link): Likewise.
54364         * modules/striconveh (Link): Likewise.
54365         * modules/xstriconv (Link): Likewise.
54366         * modules/unicodeio (Link): Likewise.
54367         * modules/propername (Link): Likewise.
54368         Reported by Jim Meyering.
54369
54370 2008-05-26  Jim Meyering  <meyering@redhat.com>
54371
54372         sha256: do not artificially restrict buffer length to be < 2^32
54373         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54374         uint32_t to size_t.
54375         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54376         to match.
54377
54378         avoid unaligned access errors, e.g., on sparc
54379         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54380         direct access through a possibly-unaligned uint64* pointer.
54381         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54382         direct access through a possibly-unaligned uint32* pointer.
54383         Prompted by this patch from Tom "spot" Callaway:
54384         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54385
54386         sha512.c: fix typo in comment
54387         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54388
54389 2008-05-25  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54392         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54393         (Makefile.am): Update lib_SOURCES.
54394
54395 2008-05-25  Bruno Haible  <bruno@clisp.org>
54396
54397         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54398
54399 2008-05-25  Jim Meyering  <meyering@redhat.com>
54400
54401         useless-if-before-free: freed expr may have white-space differences
54402         * build-aux/useless-if-before-free: Recognize cases in which the
54403         freed expression differs from the tested one in embedded white
54404         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54405         $1 was used, so we can't make any regexp shy.  Improved tests now
54406         detect this.
54407
54408         useless-if-before-free: accept white space in the expression.
54409         * build-aux/useless-if-before-free: For now, any white space
54410         in the expression must be identical in the free argument.
54411
54412         useless-if-before-free: efficiency tweak
54413         * build-aux/useless-if-before-free: Make the expression-matching
54414         regexp "shy".
54415         Make the *outer* regexp shy, not the expr-matching one.
54416
54417         update code-in-comment to accept cast of free arg
54418         * build-aux/useless-if-before-free: Update regexp.
54419
54420 2008-05-25  Bruno Haible  <bruno@clisp.org>
54421
54422         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54423         * modules/copy-file-tests (Files, Makefile.am): Update.
54424         * tests/test-copy-file.c (func_test_copy): Update.
54425
54426 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54427
54428         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54429
54430 2008-05-23  Bruno Haible  <bruno@clisp.org>
54431
54432         Improve support for ACLs on OSF/1.
54433         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54434         Remove fallback for unknown flavors of ACLs.
54435
54436 2008-05-22  Bruno Haible  <bruno@clisp.org>
54437
54438         Add support for ACLs on OSF/1.
54439         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54440         replacements.
54441         (acl_free_text): New macro fallback.
54442         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54443         acl_free.
54444         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54445         acl_free_text function. Require AC_C_INLINE.
54446
54447 2008-05-22  Bruno Haible  <bruno@clisp.org>
54448
54449         Make copy_acl work on MacOS X 10.5.
54450         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54451         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54452         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54453         If MODE_INSIDE_ACL, don't assume that every system has the same text
54454         representation for ACLs as FreeBSD.
54455         * lib/copy-acl.c (copy_acl): Add support for platforms with
54456         !MODE_INSIDE_ACL.
54457         * lib/file-has-acl.c (file_has_acl): Likewise.
54458         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54459         FreeBSD, MacOS X, or IRIX, respectively.
54460
54461 2008-05-22  Bruno Haible  <bruno@clisp.org>
54462
54463         * lib/acl.h: Don't include <sys/acl.h>.
54464         (GETACLCNT): Move fallback to lib/acl-internal.h.
54465         * lib/acl-internal.h: Include <sys/acl.h> here.
54466         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54467
54468 2008-05-22  Bruno Haible  <bruno@clisp.org>
54469
54470         Split off copy_acl function to separate file.
54471         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54472         * lib/acl.c (copy_acl): Moved function to separate file.
54473         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54474         * modules/acl (Files): Add lib/copy-acl.c.
54475         (Makefiles.am): Augment lib_SOURCES.
54476
54477 2008-05-22  Bruno Haible  <bruno@clisp.org>
54478
54479         * modules/copy-file-tests: New file.
54480         * tests/test-copy-file.sh: New file.
54481         * tests/test-copy-file.c: New file.
54482         * tests/test-copy-file-sameacls.c: New file.
54483
54484 2008-05-22  Eric Blake  <ebb9@byu.net>
54485
54486         Avoid gcc warning.
54487         * tests/test-memcmp.c (main): Pass NULL indirectly.
54488
54489 2008-05-21  Bruno Haible  <bruno@clisp.org>
54490
54491         Add reference doc about ACLs.
54492         * doc/acl-resources.txt: New file.
54493         * doc/acl-cygwin.txt: New file.
54494
54495 2008-05-21  Bruno Haible  <bruno@clisp.org>
54496
54497         Avoid one more warning from gcc.
54498         * lib/vasnprintf.c (IF_LINT): Update comments.
54499         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54500
54501 2008-05-21  Jim Meyering  <meyering@redhat.com>
54502
54503         avoid a warning from gcc
54504         * lib/vasnprintf.c (IF_LINT): Define.
54505         (scale10_round_decimal_long_double):
54506         Use it to avoid a "may be used uninitialized" warning.
54507         (scale10_round_decimal_double): Likewise.
54508
54509 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54510
54511         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54512         declared.
54513
54514 2008-05-20  Bruno Haible  <bruno@clisp.org>
54515
54516         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54517         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54518
54519 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54520
54521         * modules/memcmp-tests: New file.
54522         * tests/test-memcmp.c: New file.
54523
54524 2008-05-19  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/propername (Notice, configure.ac): Put quoted "..." into
54527         --keyword option.
54528         * lib/propername.h: Update comments accordingly.
54529         Reported by Eric Blake.
54530
54531 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54532
54533         * modules/getpass-gnu (Depends-on): Add fseeko.
54534
54535 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54536
54537         * modules/base64-tests: New file.
54538
54539 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54540
54541         * lib/base64.c (base64_decode_ctx): If a decode context structure
54542         was passed in use it to ignore newlines.  If a context structure
54543         was _not_ passed in, continue to treat newlines as garbage (this
54544         is the historical behavior).  Formerly base64_decode.
54545         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54546         takes a decode context structure.
54547         * lib/base64.h (base64_decode): Macro for four-argument calls.
54548         (base64_decode_alloc): Likewise.
54549         * lib/base64.c (base64_decode_ctx): If a decode context structure
54550         was passed in use it to ignore newlines.  If a context structure
54551         was _not_ passed in, continue to treat newlines as garbage (this
54552         is the historical behavior).  Formerly base64_decode.
54553         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54554         takes a decode context structure.
54555         * lib/base64.h (base64_decode): Macro for four-argument calls.
54556         (base64_decode_alloc): Likewise.
54557
54558 2008-05-19  Jim Meyering  <meyering@redhat.com>
54559
54560         avoid a warning from gcc
54561         * lib/trim.c (IF_LINT): Define.
54562         (trim2): Use it to avoid a "may be used uninitialized" warning.
54563
54564         Fix doc typo.
54565         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54566
54567 2008-05-19  Bruno Haible  <bruno@clisp.org>
54568
54569         * doc/glibc-functions/getpass.texi: Document limits of other
54570         implementations.
54571
54572 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54573             Bruno Haible <bruno@clisp.org>
54574
54575         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54576
54577 2008-05-18  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/propername: New file, from GNU gettext.
54580         * lib/propername.h: New file, from GNU gettext.
54581         * lib/propername.c: New file, from GNU gettext.
54582         * MODULES.html.sh (Internationalization functions): Add propername.
54583
54584 2008-05-16  Jim Meyering  <meyering@redhat.com>
54585             Bruno Haible  <bruno@clisp.org>
54586
54587         Avoid some warnings from "gcc -Wshadow".
54588         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54589
54590 2008-05-15  Eric Blake  <ebb9@byu.net>
54591
54592         Extend previous patch to cygwin 1.7.0.
54593         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54594         fast implementation in cygwin >= 1.7.0.
54595         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54596         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54597
54598 2008-05-15  Bruno Haible  <bruno@clisp.org>
54599
54600         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54601         implementation in glibc >= 2.9.
54602         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54604
54605 2008-05-15  Bruno Haible  <bruno@clisp.org>
54606
54607         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54608         (Unicode string functions): Add unilbrk/*.
54609         Reported by Karl Berry.
54610
54611 2008-05-15  Eric Blake  <ebb9@byu.net>
54612
54613         Fix violation of <stdbool.h> replacement in regex.
54614         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54615         * lib/regexec.c (re_search_internal): Likewise.
54616         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54617
54618 2008-05-15  Jim Meyering  <meyering@redhat.com>
54619
54620         avoid distracting test output when git or cvs is not found
54621         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54622         * tests/test-vc-list-files-git.sh: Likewise.
54623
54624 2008-05-15  Eric Blake  <ebb9@byu.net>
54625
54626         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54627         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54628         glibc version.
54629         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54630         * doc/posix-functions/strstr.texi (strstr): Likewise.
54631         * lib/str-two-way.h (MAX): Sychronize with glibc.
54632
54633 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54634
54635         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54636         opr.ctx_type.
54637         (calc_first): Initialize constraint field.
54638         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54639         Fix grammar.
54640         (duplicate_node): Merge constraint field for all node types.
54641         (calc_eclosure_iter): Look at constraint field for all node types.
54642         * lib/regex_internal.c (create_cd_newstate): Don't look at
54643         opr.ctx_type.
54644
54645 2008-05-14  Bruno Haible  <bruno@clisp.org>
54646
54647         Help GCC to do better code generation.
54648         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54649         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54650         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54651         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54652         Declare with attribute 'malloc' if supported.
54653
54654 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54655
54656         use "echo STR|wc -c" rather than unportable "expr length STR"
54657         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54658         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54659
54660 2008-05-14  Jim Meyering  <meyering@redhat.com>
54661
54662         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54663         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54664         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54665         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54666         via Collin Lasse.
54667
54668 2008-05-14  Eric Blake  <ebb9@byu.net>
54669
54670         Avoid quadratic growth in gl_LIBSOURCES.
54671         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54672         Suggested by Bruno Haible.
54673
54674         Test xmemdup0.
54675         * modules/xmemdup0-tests: New file.
54676         * tests/test-xmemdup0.c: Likewise.
54677
54678 2008-05-13  Eric Blake  <ebb9@byu.net>
54679
54680         Split xmemdup0 into its own module.
54681         * modules/xmemdup0: New file.
54682         * lib/xmemdup0.h: Likewise.
54683         * lib/xmemdup0.c: Likewise.
54684         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54685         * lib/xalloc.h (xmemdup0): Remove.
54686         * lib/xmalloc.c (xmemdup0): Likewise.
54687
54688 2008-05-13  Eric Blake  <ebb9@byu.net>
54689             Bruno Haible  <bruno@clisp.org>
54690
54691         Reduce number of forks required during autoconf.
54692         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54693         and gl_LIBSOURCES_DIR.
54694         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54695         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54696         m4_syscmd per file.
54697         <m4_foreach_w>: Move...
54698         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54699
54700 2008-05-13  Eric Blake  <ebb9@byu.net>
54701
54702         * gnulib-tool: Fix various comment typos.
54703
54704 2008-05-12  Bruno Haible  <bruno@clisp.org>
54705
54706         Tailor the linebreaking algorithm.
54707         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54708
54709 2008-05-12  Bruno Haible  <bruno@clisp.org>
54710
54711         Update to Unicode 5.0.0.
54712         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54713         LBP_JV, LBP_JT. Redistribute values.
54714         (unilbrk_table): Change size.
54715         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54716         Unicode TR#14 rev. 22.
54717         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54718         LBP_JV, LBP_JT. Redistribute values.
54719         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54720         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54721         Update.
54722         * lib/unilbrk/lbrkprop1.h: Regenerated.
54723         * lib/unilbrk/lbrkprop2.h: Regenerated.
54724         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54725         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54726         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54727         Likewise.
54728         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54729         Likewise.
54730         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54731         result.
54732         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54733         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54734         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54735         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54736         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54737         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54738
54739 2008-05-11  Bruno Haible  <bruno@clisp.org>
54740
54741         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54742
54743 2008-05-11  Bruno Haible  <bruno@clisp.org>
54744
54745         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54746         * modules/unilbrk/gen-lbrk: New file.
54747
54748 2008-05-11  Bruno Haible  <bruno@clisp.org>
54749
54750         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54751         * m4/sha512.m4 (gl_SHA512): Likewise.
54752
54753 2008-05-11  Jim Meyering  <meyering@redhat.com>
54754
54755         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54756         * modules/crypto/sha256: New file.
54757         * modules/crypto/sha512: Likewise.
54758         * lib/sha256.c: Likewise.
54759         * lib/sha256.h: Likewise.
54760         * lib/sha512.c: Likewise.
54761         * lib/sha512.h: Likewise.
54762         * lib/u64.h: Likewise.
54763         * m4/sha256.m4: Likewise.
54764         * m4/sha512.m4: Likewise.
54765         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54766
54767 2008-05-10  Bruno Haible  <bruno@clisp.org>
54768
54769         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54770         (Input/Output <stdio.h>): Add xprintf.
54771         (Signal handling <signal.h>): Add strsignal.
54772         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54773         (Core language properties): Add func.
54774         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54775         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54776         strings.
54777         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54778         (Input/output): New section.
54779         (File system functions): Add openat-die, stat-macros.
54780         (Networking functions): Add sockets.
54781         (Unicode string functions): Add unictype/*.
54782         (Support for building libraries and executables): Add gperf.
54783         (Support for building documentation): Add agpl-3.0.
54784         (Misc): Add nocrash.
54785
54786 2008-05-10  Bruno Haible  <bruno@clisp.org>
54787
54788         * modules/unictype/gen-ctype: New file.
54789
54790 2008-05-10  Jim Meyering  <meyering@redhat.com>
54791
54792         Make chdir-safer.c more efficient on a system with no symlinks.
54793         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54794         also if ELOOP is zero.  Suggested by Bruno Haible.
54795
54796         Make chdir-safer.c slightly safer.
54797         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54798         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54799
54800         Avoid compile failure on systems without ELOOP (like mingw).
54801         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54802         Reported by Bruno Haible.
54803
54804 2008-05-10  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54807         (is_utf8_encoding): Use a case-insensitive comparison.
54808         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54809         streq.
54810
54811 2008-05-10  Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54814         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54815         * lib/unilbrk/ulc-common.h (iconv_string_length,
54816         iconv_string_keeping_offsets): Remove declarations.
54817         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54818         Don't include <iconv.h>, streq.h, xsize.h.
54819         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54820         conversion.
54821         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54822         <iconv.h>, streq.h, xsize.h.
54823         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54824         conversion.
54825         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54826         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54827         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54828         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54829
54830 2008-05-10  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54833         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54834
54835         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54836         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54837
54838         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54839         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54840
54841         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54842         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54843
54844         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54845         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54846
54847         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54848         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54849
54850         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54851         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54852
54853         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54854         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54855
54856 2008-05-10  Bruno Haible  <bruno@clisp.org>
54857
54858         Split up 'linebreak' module.
54859         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54860         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54861         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54862         modifications.
54863         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54864         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54865         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54866         lib/linebreak.c.
54867         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54868         lib/linebreak.c.
54869         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54870         lib/linebreak.c.
54871         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54872         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54873         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54874         lib/linebreak.c.
54875         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54876         lib/linebreak.c.
54877         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54878         lib/linebreak.c.
54879         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54880         lib/linebreak.c.
54881         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54882         lib/linebreak.c.
54883         * modules/unilbrk/base: New file.
54884         * modules/unilbrk/tables: New file.
54885         * modules/unilbrk/u8-possible-linebreaks: New file.
54886         * modules/unilbrk/u16-possible-linebreaks: New file.
54887         * modules/unilbrk/u32-possible-linebreaks: New file.
54888         * modules/unilbrk/ulc-common: New file.
54889         * modules/unilbrk/ulc-possible-linebreaks: New file.
54890         * modules/unilbrk/u8-width-linebreaks: New file.
54891         * modules/unilbrk/u16-width-linebreaks: New file.
54892         * modules/unilbrk/u32-width-linebreaks: New file.
54893         * modules/unilbrk/ulc-width-linebreaks: New file.
54894         * lib/linebreak.h: Remove file.
54895         * lib/linebreak.c: Remove file.
54896         * m4/linebreak.m4: Remove file.
54897         * modules/linebreak: Remove file.
54898         * NEWS: Mention the changes.
54899
54900 2008-05-09  Eric Blake  <ebb9@byu.net>
54901
54902         Add xmemdup0.
54903         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54904         implementation.
54905         * lib/xmalloc.c (xmemdup0): New C implementation.
54906
54907 2008-05-08  Bruno Haible  <bruno@clisp.org>
54908
54909         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54910
54911 2008-05-07  Eric Blake  <ebb9@byu.net>
54912
54913         Support cross-compilation of <wctype.h>.
54914         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54915         AC_CACHE_CHECK.
54916
54917 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54918
54919         * build-aux/vc-list-files: Add support for bzr.
54920
54921 2008-05-03  Jim Meyering  <meyering@redhat.com>
54922
54923         avoid failed assertion with tight malloc
54924         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54925
54926 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54927
54928         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54929         are needed from arpa/inet.h.
54930         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54931         Reported by Bruno Haible.
54932
54933 2008-05-02  Jim Meyering  <meyering@redhat.com>
54934
54935         avoid compilation error on FreeBSD 6
54936         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54937
54938 2008-05-01  Jim Meyering  <meyering@redhat.com>
54939
54940         useless-if-before-free: correct --help's exit status description
54941         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54942         for one or more matches, etc.  Reported by Bruno Haible.
54943
54944         vc-list-files: make the stand-alone gnulib test work
54945         * modules/vc-list-files-tests (configure.ac):
54946         Define and AC_SUBST abs_aux_dir.
54947         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54948         $(abs_top_srcdir) to each script and having each of them
54949         duplicate the work of setting PATH, set PATH here, using
54950         the new variable, abs_aux_dir instead.
54951         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54952         * tests/test-vc-list-files-git.sh: Likewise.
54953         Reported by Bruno Haible.
54954
54955 2008-05-01  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54958         reallocation. Rename 'done' to 'found_delimiter'.
54959
54960 2008-05-01  Jim Meyering  <meyering@redhat.com>
54961
54962         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54963         * build-aux/vc-list-files: Use `...`, not $(...).
54964
54965 2008-04-30  Jim Meyering  <meyering@redhat.com>
54966
54967         add tests for vc-list-files
54968         * modules/vc-list-files-tests: New module.
54969         * tests/test-vc-list-files-cvs.sh: New file.
54970         * tests/test-vc-list-files-git.sh: New file.
54971
54972         avoid a warning from gcc
54973         * lib/getndelim2.c (IF_LINT): Define.
54974         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54975
54976         vc-list-files: work properly with build-aux/cvsu, too
54977         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54978         to all cvs-based clauses.
54979
54980         vc-list-files: work properly in the CVS+awk case, too
54981         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54982
54983         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54984         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54985         take more than one file argument, so .  Add quotes, just in case $dir
54986         ever contains a shell meta-character.  Prompted by Soren Hansen in
54987         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54988
54989 2008-04-29  Eric Blake  <ebb9@byu.net>
54990
54991         Optimize getndelim2 to use block operations when possible.
54992         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54993         freadseek, and memchr2.
54994         * lib/getndelim2.c (getndelim2): Use them for block reads.
54995
54996 2008-04-29  Bruno Haible  <bruno@clisp.org>
54997
54998         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54999         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55000         * modules/inet_ntop (Depends-on): Add extensions.
55001         * modules/inet_pton (Depends-on): Likewise.
55002         Reported by Simon Josefsson.
55003
55004 2008-04-29  Jim Meyering  <meyering@redhat.com>
55005
55006         When the is more than one match in a block, match all of them.
55007         * build-aux/useless-if-before-free: Iterate through each block
55008         until there are no more matches.
55009
55010         Fix broken useless-if-before-free script.
55011         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55012         the expression to match cast of argument to free-like function.
55013
55014 2008-04-29  Eric Blake  <ebb9@byu.net>
55015
55016         Use new header.
55017         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55018
55019 2008-04-29  Jim Meyering  <meyering@redhat.com>
55020
55021         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55022         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55023         by gnulib to exist and to declare e.g., inet_ntop.
55024         Don't include "inet_ntop.h", now removed.
55025
55026         * m4/arpa_inet_h.m4: Remove trailing blanks.
55027
55028 2008-04-29  Eric Blake  <ebb9@byu.net>
55029
55030         Silence valgrind on safe reads beyond potential array bounds.
55031         * lib/rawmemchr.valgrind: New file.
55032         * lib/strchrnul.valgrind: Likewise.
55033         * modules/rawmemchr (Files): Distribute new file.
55034         * modules/strchrnul (Files): Likewise.
55035         Suggested by Bruno Haible.
55036
55037 2008-04-29  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55040         (inet_ntop, inet_pton): Change portability warning's wording.
55041         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55042         Invoke gl_CHECK_NEXT_HEADERS.
55043         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55044         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55045         set ARPA_INET_H.
55046         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55047         * modules/arpa_inet (Description): No longer only for systems that
55048         lack it.
55049         (Depends-on): Add include_next.
55050         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55051         HAVE_ARPA_INET_H.
55052
55053 2008-04-29  Jim Meyering  <meyering@redhat.com>
55054
55055         * modules/mkdir (License): Re-license as LGPLv2+.
55056
55057 2008-04-29  Bruno Haible  <bruno@clisp.org>
55058
55059         * modules/rawmemchr (Maintainer): Set to Eric.
55060         * modules/strchrnul (Maintainer): Likewise.
55061
55062 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55063
55064         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55065         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55066
55067         * modules/arpa_inet (arpa/inet.h): Use them.
55068
55069 2008-04-28  Eric Blake  <ebb9@byu.net>
55070
55071         Test getndelim2.
55072         * modules/getndelim2-tests: New file.
55073         * tests/test-getndelim2.c: Likewise.
55074         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55075         stream.
55076         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55077
55078         * MODULES.html.sh: Document new module.
55079
55080 2008-04-20  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/c-stack.c (die): Use raise.
55083         * modules/c-stack (Depends-on): Add raise.
55084
55085 2008-04-28  Bruno Haible  <bruno@clisp.org>
55086
55087         Expect rpmatch to be declared.
55088         * lib/yesno.c (rpmatch): Remove declaration.
55089
55090         Declare rpmatch.
55091         * lib/stdlib.in.h (rpmatch): New declaration.
55092         * lib/rpmatch.c: Include <stdlib.h> first.
55093         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55094         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55096         HAVE_RPMATCH.
55097         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55099         (Include): Set to <stdlib.h>.
55100         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55101         HAVE_RPMATCH.
55102         * NEWS: Document the change.
55103
55104 2008-04-28  Bruno Haible  <bruno@clisp.org>
55105
55106         Change rpmatch to use nl_langinfo when appropriate.
55107         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55108         (N_): New macro.
55109         (localized_pattern): New function/macro.
55110         (try): Remove match, nomatch arguments. Copy the pattern into safe
55111         memory before caching it.
55112         (rpmatch): Use localized_pattern. Add translator comments.
55113         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55114         Suggested by Eric Blake.
55115         * modules/rpmatch (Depends-on): Add stdbool.
55116
55117 2008-04-28  Eric Blake  <ebb9@byu.net>
55118
55119         Add rawmemchr module, matching glibc.
55120         * modules/string (Makefile.am): New indicator.
55121         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55122         * lib/string.in.h (rawmemchr): Declare when appropriate.
55123         * modules/rawmemchr: New file.
55124         * m4/rawmemchr.m4: Likewise.
55125         * lib/rawmemchr.c: Likewise.
55126         * modules/rawmemchr-tests: Likewise.
55127         * tests/test-rawmemchr.c: Likewise.
55128         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55129         module.
55130         * modules/strchrnul (Depends-on): Add rawmemchr.
55131         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55132
55133         Whitespace cleanup.
55134         * tests/test-strchrnul.c: Reindent.
55135         * lib/strchrnul.c: Likewise.
55136
55137         Optimize and test strchrnul.
55138         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55139         * modules/strchrnul-tests: New file.
55140         * tests/test-strchrnul.c: Likewise.
55141
55142         Remove intprops dependency.
55143         * modules/memchr (Depends-on): Remove intprops.
55144         * modules/memrchr (Depends-on): Likewise.
55145         * modules/memchr2 (Depends-on): Likewise.
55146         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55147         * lib/memrchr.c (__memrchr): Likewise.
55148         * lib/memrchr2.c (memchr2): Likewise.
55149         Reported by Simon Josefsson.
55150
55151 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55152
55153         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55154         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55155
55156 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55157
55158         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55159
55160         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55161
55162         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55163
55164         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55165         declarations.
55166         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55167
55168         * m4/inet_pton.m4: Don't check for header files.
55169
55170         * m4/inet_ntop.m4: Don't check for header files.
55171
55172 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55173
55174         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55175         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55176         trigger for cygwin).
55177         Reported by Bruno Haible  <bruno@clisp.org>.
55178
55179 2008-04-28  Bruno Haible  <bruno@clisp.org>
55180
55181         * doc/posix-functions/strdup.texi: Mention mingw problem.
55182
55183 2008-04-27  Bruno Haible  <bruno@clisp.org>
55184
55185         * modules/stat-time-tests (Depends-on): Add sleep.
55186         * tests/test-stat-time.c (force_unlink): New function.
55187         (cleanup): Use it.
55188         (test_mtime): Remove the ctime related tests.
55189         (test_ctime): New function, containing the ctime related tests.
55190         (main): Call test_ctime, except on native Windows platforms.
55191
55192 2008-04-27  Bruno Haible  <bruno@clisp.org>
55193
55194         * lib/rpmatch.c (rpmatch): Add some comments.
55195         Reported by James Youngman <jay@gnu.org>.
55196
55197 2008-04-27  Bruno Haible  <bruno@clisp.org>
55198
55199         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55200         quiet NaNs.
55201
55202 2008-04-27  Bruno Haible  <bruno@clisp.org>
55203
55204         Make test-yesno.sh work on mingw.
55205         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55206         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55207         (main): Set stdin to binary mode.
55208         * modules/yesno-tests (Depends-on): Add binary-io.
55209
55210 2008-04-27  Bruno Haible  <bruno@clisp.org>
55211
55212         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55213         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55214         argument that lie outside the IEEE 854 domain.
55215         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55216         (gl_ISFINITE): Use it.
55217         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55218
55219 2008-04-27  Bruno Haible  <bruno@clisp.org>
55220
55221         Allow local renaming in config.h.
55222         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55223
55224 2008-04-27  Bruno Haible  <bruno@clisp.org>
55225
55226         * lib/memchr.c (__memchr): Change type of 'i'.
55227         * lib/memchr2.c (memchr2): Likewise.
55228
55229 2008-04-26  Eric Blake  <ebb9@byu.net>
55230         and Bruno Haible  <bruno@clisp.org>
55231
55232         Optimize and test memrchr.
55233         * modules/memrchr (Depends-on): Add intprops.
55234         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55235         * modules/memrchr-tests: New file.
55236         * tests/test-memrchr.c: New file.
55237
55238 2008-04-26  Bruno Haible  <bruno@clisp.org>
55239
55240         Add tentative support for DragonFly BSD.
55241         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55242         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55243         fp.
55244         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55245         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55246         * lib/fpurge.c (fpurge): Likewise.
55247         * lib/freadable.c (freaadable): Likewise.
55248         * lib/freadahead.c (freadahead): Likewise.
55249         * lib/freading.c (freading): Likewise.
55250         * lib/freadptr.c (freadptr): Likewise.
55251         * lib/freadseek.c (freadptrinc): Likewise.
55252         * lib/fseeko.c (fseeko): Likewise.
55253         * lib/fseterr.c (fseterr): Likewise.
55254         * lib/fwritable.c (fwritable): Likewise.
55255         * lib/fwriting.c (fwriting): Likewise.
55256
55257 2008-04-26  Bruno Haible  <bruno@clisp.org>
55258
55259         * lib/stdio-impl.h: New file.
55260         * lib/fbufmode.c: Include stdio-impl.h.
55261         (fbufmode): Use fp_, remove redundant #defines.
55262         * lib/fflush.c: Include stdio-impl.h.
55263         (clear_ungetc_buffer): Remove redundant #defines.
55264         * lib/fpurge.c: Include stdio-impl.h.
55265         (fpurge): Remove redundant #defines.
55266         * lib/freadable.c: Include stdio-impl.h.
55267         (freadable): Remove redundant #defines.
55268         * lib/freadahead.c: Include stdio-impl.h.
55269         (freadahead): Remove redundant #defines.
55270         * lib/freading.c: Include stdio-impl.h.
55271         (freading): Remove redundant #defines.
55272         * lib/freadptr.c: Include stdio-impl.h.
55273         (freadptr): Remove redundant #defines.
55274         * lib/freadseek.c: Include stdio-impl.h.
55275         (freadptrinc): Remove redundant #defines.
55276         * lib/fseeko.c: Include stdio-impl.h.
55277         (rpl_fseeko): Remove redundant #defines.
55278         * lib/fseterr.c: Include stdio-impl.h.
55279         (fseterr): Remove redundant #defines.
55280         * lib/fwritable.c: Include stdio-impl.h.
55281         (fwritable: Remove redundant #defines.
55282         * lib/fwriting.c: Include stdio-impl.h.
55283         (fwriting): Remove redundant #defines.
55284         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55285         * modules/fflush (Files): Likewise.
55286         * modules/fpurge (Files): Likewise.
55287         * modules/freadable (Files): Likewise.
55288         * modules/freadahead (Files): Likewise.
55289         * modules/freading (Files): Likewise.
55290         * modules/freadptr (Files): Likewise.
55291         * modules/freadseek (Files): Likewise.
55292         * modules/fseeko (Files): Likewise.
55293         * modules/fseterr (Files): Likewise.
55294         * modules/fwritable (Files): Likewise.
55295         * modules/fwriting (Files): Likewise.
55296
55297 2008-04-26  Bruno Haible  <bruno@clisp.org>
55298
55299         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55300         restore_seek_optimization, update_fpos_cache): New functions, extracted
55301         from rpl_fflush.
55302         (rpl_fflush): Use them.
55303         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55304         (gl_REPLACE_FFLUSH): Use it.
55305
55306 2008-04-26  Bruno Haible  <bruno@clisp.org>
55307
55308         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55309         on Solaris.
55310         * tests/test-xstrtoimax.sh: Likewise.
55311         * tests/test-xstrtoumax.sh: Likewise.
55312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55313
55314 2008-04-26  Bruno Haible  <bruno@clisp.org>
55315
55316         * modules/memchr-tests: New file.
55317         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55318
55319 2008-04-26  Eric Blake  <ebb9@byu.net>
55320             Bruno Haible  <bruno@clisp.org>
55321
55322         * lib/memchr.c: Include intprops.h.
55323         (__memchr): Optimize parallel detection of matching bytes. Rename local
55324         variables. Add explanatory comments.
55325
55326 2008-04-26  Bruno Haible  <bruno@clisp.org>
55327
55328         Fix module 'memchr', broken since 2000-10-28.
55329         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55330
55331 2008-04-26  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55334         comments.
55335
55336 2008-04-25  Eric Blake  <ebb9@byu.net>
55337
55338         Use native fstatat on cygwin 1.7.0.
55339         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55340         first.
55341
55342 2008-04-23  Eric Blake  <ebb9@byu.net>
55343
55344         Improve memchr2 performance.
55345         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55346         NUL bytes.
55347         * modules/memchr2 (Depends-on): Use intprops.h.
55348
55349 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55350
55351         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55352         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55353         <blp@cs.stanford.edu>.
55354
55355 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55356
55357         * lib/arpa_inet.in.h: New file.
55358
55359         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55360         (Makefile.am): Sed in substitute header file.
55361
55362         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55363         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55364
55365         * modules/inet_ntop (configure.ac): Use
55366         gl_ARPA_INET_MODULE_INDICATOR.
55367
55368         * modules/inet_pton (configure.ac): Use
55369         gl_ARPA_INET_MODULE_INDICATOR.
55370
55371 2008-04-22  Jim Meyering  <meyering@redhat.com>
55372
55373         * modules/verify (License): Re-license as LGPLv2+.
55374
55375 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55376
55377         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55378         parameter to void* as per POSIX standard (MinGW uses char*).
55379
55380 2008-04-21  Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55383         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55384         Define to replacements if REPLACE_ISWCNTRL is 1.
55385         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55386         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55387         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55388         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55389         what it fixes.
55390         * doc/posix-functions/iswalpha.texi: Likewise.
55391         * doc/posix-functions/iswblank.texi: Likewise.
55392         * doc/posix-functions/iswcntrl.texi: Likewise.
55393         * doc/posix-functions/iswdigit.texi: Likewise.
55394         * doc/posix-functions/iswgraph.texi: Likewise.
55395         * doc/posix-functions/iswlower.texi: Likewise.
55396         * doc/posix-functions/iswprint.texi: Likewise.
55397         * doc/posix-functions/iswpunct.texi: Likewise.
55398         * doc/posix-functions/iswspace.texi: Likewise.
55399         * doc/posix-functions/iswupper.texi: Likewise.
55400         * doc/posix-functions/iswxdigit.texi: Likewise.
55401         Reported by Alain Guibert.
55402
55403 2008-04-21  Bruno Haible  <bruno@clisp.org>
55404
55405         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55406         Patch by Alain Guibert.
55407
55408 2008-04-21  Bruno Haible  <bruno@clisp.org>
55409
55410         Fix test failures on mingw.
55411         * tests/test-xstrtol.c (print_no_progname): New function.
55412         (main): Install it in error_print_progname hook.
55413         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55414         * tests/test-xstrtoimax.sh: Likewise.
55415         * tests/test-xstrtoumax.sh: Likewise.
55416
55417 2008-04-21  Bruno Haible  <bruno@clisp.org>
55418
55419         Fix test failure on mingw.
55420         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55421
55422 2008-04-21  Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55425         Actually assign a value.
55426
55427 2008-04-20  Bruno Haible  <bruno@clisp.org>
55428
55429         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55430         take 2.
55431         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55432         'canonicalize-lgpl' module is also used.
55433         * lib/canonicalize-lgpl.c: Undo last change.
55434         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55435
55436 2008-04-20  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55439         config.h. Provide _mkdir based fallback for mingw.
55440         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55441         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55442         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55443         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55444         rather than defining mkdir in config.h.
55445         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55446         (gl_SYS_STAT_H_DEFAULTS): New macro.
55447         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55448         HAVE_IO_H any more.
55449         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55450         HAVE_DECL_MKDIR and HAVE_IO_H.
55451
55452 2008-04-20  Bruno Haible  <bruno@clisp.org>
55453
55454         * lib/isapipe.c: Port to native Windows platforms.
55455
55456 2008-04-20  Bruno Haible  <bruno@clisp.org>
55457
55458         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55459
55460 2008-04-21  Eric Blake  <ebb9@byu.net>
55461
55462         Work around preprocessors that don't handle UINTMAX_MAX.
55463         * lib/memchr2.c (memchr2): Avoid embedded #if.
55464         Reported by Alain Guibert, fix suggested by Bruno Haible.
55465
55466 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55467
55468         * doc/posix-functions/strftime.texi (strftime): Explain better
55469         Windows incompatibility.  Suggested by Micah Cowan
55470         <micah@cowan.name>.
55471
55472 2008-04-20  Bruno Haible  <bruno@clisp.org>
55473
55474         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55475         unistr/u8-mblen.
55476
55477 2008-04-20  Bruno Haible  <bruno@clisp.org>
55478
55479         Fix test failure on platforms with non-GNU iconv.
55480         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55481         (U_TO_U8): Use it, rather than u16_to_u8.
55482         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55483         units at the end of the input string.
55484         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55485
55486 2008-04-20  Bruno Haible  <bruno@clisp.org>
55487
55488         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55489         when the resulting length is 0.
55490         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55491
55492 2008-04-20  Bruno Haible  <bruno@clisp.org>
55493
55494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55495         works.
55496         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55497
55498 2008-04-20  Bruno Haible  <bruno@clisp.org>
55499
55500         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55501         * modules/tsearch-tests (configure.ac): Test for initstate function.
55502
55503 2008-04-20  Bruno Haible  <bruno@clisp.org>
55504
55505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55506         for nlink_t if missing.
55507         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55508
55509 2008-04-19  Bruno Haible  <bruno@clisp.org>
55510
55511         Work around snprintf bug on Linux libc5.
55512         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55514         gl_SNPRINTF_SIZE1.
55515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55516         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55517         that test failed.
55518         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55519         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55520         * modules/snprintf (Files): Add m4/printf.m4.
55521         * modules/vsnprintf (Files): Likewise.
55522         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55523         * doc/posix-functions/vsnprintf.texi: Likewise.
55524
55525 2008-04-19  Bruno Haible  <bruno@clisp.org>
55526
55527         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55528         from 0.0058 to less than 10^-7.
55529
55530 2008-04-19  Bruno Haible  <bruno@clisp.org>
55531
55532         Fix rounding when a precision is given.
55533         * lib/vasnprintf.c (is_borderline): New function.
55534         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55535         9...9x.
55536         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55537         %e, %g.
55538         * tests/test-vasprintf-posix.c (test_function): Likewise.
55539         * tests/test-snprintf-posix.h (test_function): Likewise.
55540         * tests/test-sprintf-posix.h (test_function): Likewise.
55541         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55542         * tests/test-printf-posix.h (test_function): Likewise.
55543         * tests/test-printf-posix.output: Update.
55544         Reported by John Darrington <john@darrington.wattle.id.au> via
55545         Ben Pfaff <blp@cs.stanford.edu>.
55546
55547 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55548
55549         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55550         Suggested by Bruno Haible <bruno@clisp.org>.
55551
55552 2008-04-17  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55555         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55556         implementation.
55557         Patch by Bruce Merry <bmerry@gmail.com>.
55558
55559 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55560
55561         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55562         doesn't work under Windows.
55563
55564 2008-04-16  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55567         New macros.
55568         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55569         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55570         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55571         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55572         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55573         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55574         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55575         macros.
55576         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55577         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55578         Northern Sotho, Uighur.
55579
55580 2008-04-16  Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55583         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55584         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55585         Reported by Daniel Bergström <daniel@octocode.com>.
55586
55587 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55588             Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55591         function.
55592         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55593         New functions, mostly extracted from gl_locale_name_default.
55594         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55595
55596 2008-04-16  Eric Blake  <ebb9@byu.net>
55597
55598         Adjust strtod detection to catch glibc 2.7 bug.
55599         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55600         Reported by John Gatewood Ham.
55601
55602 2008-04-16  Bruno Haible  <bruno@clisp.org>
55603
55604         Add tentative support for Linux libc5.
55605         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55606         * lib/fpurge.c (fpurge): Likewise.
55607         * lib/freadable.c (freadable): Likewise.
55608         * lib/freadahead.c (freadahead): Likewise.
55609         * lib/freading.c (freading): Likewise.
55610         * lib/freadptr.c (freadptr): Likewise.
55611         * lib/freadseek.c (freadptrinc): Likewise.
55612         * lib/fseeko.c (rpl_fseeko): Likewise.
55613         * lib/fseterr.c (fseterr): Likewise.
55614         * lib/fwritable.c (fwritable): Likewise.
55615         * lib/fwriting.c (fwriting): Likewise.
55616         Reported by Alain Guibert <alguibert+bts@free.fr>.
55617
55618 2008-04-15  Bruno Haible  <bruno@clisp.org>
55619
55620         * modules/mathl (configure.ac): Define module indicator.
55621
55622 2008-04-15  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/logl.c (logl): Remove unused variables.
55625
55626 2008-04-15  Bruno Haible  <bruno@clisp.org>
55627
55628         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55629         fails.
55630
55631 2008-04-15  Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/trim.c (trim2): Fix argument of isspace() macro.
55634
55635 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55636
55637         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55638         to 0.
55639         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55640
55641 2008-04-14  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55644         AC_LANG_PROGRAM argument.
55645         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55646         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55648         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55649         * m4/math_h.m4 (gl_MATH_H): Likewise.
55650         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55652         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55653         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55654         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55655         * m4/regex.m4 (gl_REGEX): Likewise.
55656         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55657         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55659         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55660         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55661         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55663         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55664
55665 2008-04-14  Jim Meyering  <meyering@redhat.com>
55666
55667         test-strtod: fix typos: s/abs/fabs/
55668         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55669
55670 2008-04-13  Bruno Haible  <bruno@clisp.org>
55671
55672         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55673         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55674         module is also used and while not building the reloc-wrapper.
55675
55676 2008-04-13  Bruno Haible  <bruno@clisp.org>
55677
55678         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55679
55680 2008-04-13  Bruno Haible  <bruno@clisp.org>
55681
55682         Fix AIX compilation failure introduced on 2008-04-02.
55683         * tests/test-frexp.c (exp): Undefine before redefining.
55684         * tests/test-frexpl.c (exp): Likewise.
55685
55686 2008-04-13  Bruno Haible  <bruno@clisp.org>
55687
55688         Work around a HP-UX stdio bug.
55689         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55690         * tests/test-ftello.c (main): Likewise.
55691         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55692         * doc/posix-functions/ftello.texi: Likewise.
55693
55694 2008-04-13  Bruno Haible  <bruno@clisp.org>
55695
55696         Make test-signbit pass on HP-UX/hppa.
55697         * tests/test-signbit.c (minus_zerol): New variable.
55698         (test_signbitl): Use it.
55699
55700 2008-04-13  Bruno Haible  <bruno@clisp.org>
55701
55702         Make truncl work on OSF/1 4.0.
55703         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55704         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55705         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55707         HAVE_DECL_TRUNCL.
55708         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55709         HAVE_DECL_TRUNCL.
55710         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55711
55712 2008-04-13  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55715
55716 2008-04-13  Bruno Haible  <bruno@clisp.org>
55717
55718         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55719         expression, so as to avoid HP-UX 11 cc compiler bug.
55720
55721 2008-04-13  Bruno Haible  <bruno@clisp.org>
55722
55723         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55724
55725 2008-04-13  Bruno Haible  <bruno@clisp.org>
55726
55727         * lib/git-merge-changelog.c: Remove empty declaration outside of
55728         functions.
55729
55730 2008-04-13  Bruno Haible  <bruno@clisp.org>
55731
55732         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55733
55734 2008-04-13  Bruno Haible  <bruno@clisp.org>
55735
55736         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55737         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55738         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55739         also if it exists but lacks definitions of the SHUT_* macros.
55740         * modules/sys_socket (Description): Update.
55741         Reported by Elbert Pol <e.pol@chello.nl>.
55742
55743 2008-04-13  Bruno Haible  <bruno@clisp.org>
55744
55745         * lib/localcharset.c (OS2): Don't redefine if already defined.
55746         Reported by Elbert Pol <e.pol@chello.nl>.
55747
55748 2008-04-13  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/binary-io.h [__EMX__]: Include <io.h>.
55751         Reported by Elbert Pol <e.pol@chello.nl>.
55752
55753 2008-04-12  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/fpucw.h: Enable the definitions also for x86_64.
55756         Needed for NetBSD/x86_64.
55757         Reported by Thomas Klausner <tk@giga.or.at>.
55758
55759 2008-04-12  Bruno Haible  <bruno@clisp.org>
55760
55761         * tests/test-strtod.c: Include isnand.h.
55762         (main): Use isnand instead of isnan.
55763         Reported by Jim Meyering.
55764
55765 2008-04-12  Bruno Haible  <bruno@clisp.org>
55766
55767         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55768         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55769
55770 2008-04-12  Jim Meyering  <meyering@redhat.com>
55771
55772         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55773
55774 2008-04-12  Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55777         Reported by Elbert Pol <e.pol@chello.nl>.
55778
55779 2008-04-12  Eric Blake  <ebb9@byu.net>
55780
55781         Work around Solaris 10 math.h bug.
55782         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55783         (gl_MATH_H_DEFAULTS): Set up default.
55784         * modules/math (Makefile.am): Replace new indicators.
55785         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55786         * tests/test-math.c (main): Test this.
55787         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55788         * doc/posix-headers/math.texi (math.h): Mention bug.
55789         Reported by Nelson H. F. Beebe and Jim Meyering.
55790
55791 2008-04-11  Bruno Haible  <bruno@clisp.org>
55792
55793         Adapt to future versions of Apple GCC.
55794         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55795         Reported by Peter O'Gorman <peter@pogma.com>.
55796
55797 2008-04-11  Bruno Haible  <bruno@clisp.org>
55798
55799         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55800
55801 2008-04-11  Bruno Haible  <bruno@clisp.org>
55802
55803         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55804
55805         * modules/getaddrinfo-tests (Makefile.am): Define
55806         test_getaddrinfo_LDADD.
55807
55808 2008-04-11  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55811         (init): Fix syntax error.
55812         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55813         is declared.
55814
55815 2008-04-11  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55818         * modules/glob (Depends-on): Add stdbool.
55819
55820 2008-04-11  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/trim.c: Include <string.h>.
55823
55824 2008-04-11  Eric Blake  <ebb9@byu.net>
55825
55826         Avoid compile failure on OS/2.
55827         * lib/regex_internal.h (internal_function): Disable optimization
55828         on OS/2 (__EMX__), where it caused compiler error.
55829         Reported by Elbert Pol.
55830
55831 2008-04-11  Bruno Haible  <bruno@clisp.org>
55832
55833         Flush the standard error stream before aborting. Needed on mingw.
55834         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55835         * tests/test-array_list.c (ASSERT): Likewise.
55836         * tests/test-array_oset.c (ASSERT): Likewise.
55837         * tests/test-avltree_list.c (ASSERT): Likewise.
55838         * tests/test-avltree_oset.c (ASSERT): Likewise.
55839         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55840         * tests/test-binary-io.c (ASSERT): Likewise.
55841         * tests/test-byteswap.c (ASSERT): Likewise.
55842         * tests/test-c-ctype.c (ASSERT): Likewise.
55843         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55844         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55845         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55846         * tests/test-c-strstr.c (ASSERT): Likewise.
55847         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55848         * tests/test-canonicalize.c (ASSERT): Likewise.
55849         * tests/test-carray_list.c (ASSERT): Likewise.
55850         * tests/test-ceilf1.c (ASSERT): Likewise.
55851         * tests/test-ceilf2.c (ASSERT): Likewise.
55852         * tests/test-ceill.c (ASSERT): Likewise.
55853         * tests/test-count-one-bits.c (ASSERT): Likewise.
55854         * tests/test-fbufmode.c (ASSERT): Likewise.
55855         * tests/test-fflush2.c (ASSERT): Likewise.
55856         * tests/test-floorf1.c (ASSERT): Likewise.
55857         * tests/test-floorf2.c (ASSERT): Likewise.
55858         * tests/test-floorl.c (ASSERT): Likewise.
55859         * tests/test-fopen.c (ASSERT): Likewise.
55860         * tests/test-fpending.c (ASSERT): Likewise.
55861         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55862         * tests/test-fpurge.c (ASSERT): Likewise.
55863         * tests/test-freadable.c (ASSERT): Likewise.
55864         * tests/test-freadahead.c (ASSERT): Likewise.
55865         * tests/test-freading.c (ASSERT): Likewise.
55866         * tests/test-freadptr.c (ASSERT): Likewise.
55867         * tests/test-freadptr2.c (ASSERT): Likewise.
55868         * tests/test-freadseek.c (ASSERT): Likewise.
55869         * tests/test-freopen.c (ASSERT): Likewise.
55870         * tests/test-frexp.c (ASSERT): Likewise.
55871         * tests/test-frexpl.c (ASSERT): Likewise.
55872         * tests/test-fseek.c (ASSERT): Likewise.
55873         * tests/test-fseeko.c (ASSERT): Likewise.
55874         * tests/test-fstrcmp.c (ASSERT): Likewise.
55875         * tests/test-ftell.c (ASSERT): Likewise.
55876         * tests/test-ftello.c (ASSERT): Likewise.
55877         * tests/test-func.c (ASSERT): Likewise.
55878         * tests/test-fwritable.c (ASSERT): Likewise.
55879         * tests/test-fwriting.c (ASSERT): Likewise.
55880         * tests/test-getdelim.c (ASSERT): Likewise.
55881         * tests/test-getline.c (ASSERT): Likewise.
55882         * tests/test-i-ring.c (ASSERT): Likewise.
55883         * tests/test-iconv-utf.c (ASSERT): Likewise.
55884         * tests/test-iconv.c (ASSERT): Likewise.
55885         * tests/test-isfinite.c (ASSERT): Likewise.
55886         * tests/test-isnand.c (ASSERT): Likewise.
55887         * tests/test-isnanf.c (ASSERT): Likewise.
55888         * tests/test-isnanl.h (ASSERT): Likewise.
55889         * tests/test-ldexpl.c (ASSERT): Likewise.
55890         * tests/test-linked_list.c (ASSERT): Likewise.
55891         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55892         * tests/test-localename.c (ASSERT): Likewise.
55893         * tests/test-lseek.c (ASSERT): Likewise.
55894         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55895         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55896         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55897         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55898         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55899         * tests/test-mbschr.c (ASSERT): Likewise.
55900         * tests/test-mbscspn.c (ASSERT): Likewise.
55901         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55902         * tests/test-mbspbrk.c (ASSERT): Likewise.
55903         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55904         * tests/test-mbsrchr.c (ASSERT): Likewise.
55905         * tests/test-mbsspn.c (ASSERT): Likewise.
55906         * tests/test-mbsstr1.c (ASSERT): Likewise.
55907         * tests/test-mbsstr2.c (ASSERT): Likewise.
55908         * tests/test-mbsstr3.c (ASSERT): Likewise.
55909         * tests/test-memchr2.c (ASSERT): Likewise.
55910         * tests/test-memmem.c (ASSERT): Likewise.
55911         * tests/test-open.c (ASSERT): Likewise.
55912         * tests/test-printf-frexp.c (ASSERT): Likewise.
55913         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55914         * tests/test-printf-posix.c (ASSERT): Likewise.
55915         * tests/test-quotearg.c (ASSERT): Likewise.
55916         * tests/test-rbtree_list.c (ASSERT): Likewise.
55917         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55918         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55919         * tests/test-round1.c (ASSERT): Likewise.
55920         * tests/test-roundf1.c (ASSERT): Likewise.
55921         * tests/test-roundl.c (ASSERT): Likewise.
55922         * tests/test-signbit.c (ASSERT): Likewise.
55923         * tests/test-sleep.c (ASSERT): Likewise.
55924         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55925         * tests/test-snprintf.c (ASSERT): Likewise.
55926         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55927         * tests/test-stat-time.c (ASSERT): Likewise.
55928         * tests/test-strcasestr.c (ASSERT): Likewise.
55929         * tests/test-strerror.c (ASSERT): Likewise.
55930         * tests/test-striconv.c (ASSERT): Likewise.
55931         * tests/test-striconveh.c (ASSERT): Likewise.
55932         * tests/test-striconveha.c (ASSERT): Likewise.
55933         * tests/test-strsignal.c (ASSERT): Likewise.
55934         * tests/test-strstr.c (ASSERT): Likewise.
55935         * tests/test-strtod.c (ASSERT): Likewise.
55936         * tests/test-trunc1.c (ASSERT): Likewise.
55937         * tests/test-trunc2.c (ASSERT): Likewise.
55938         * tests/test-truncf1.c (ASSERT): Likewise.
55939         * tests/test-truncf2.c (ASSERT): Likewise.
55940         * tests/test-truncl.c (ASSERT): Likewise.
55941         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55942         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55943         * tests/test-vasnprintf.c (ASSERT): Likewise.
55944         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55945         * tests/test-vasprintf.c (ASSERT): Likewise.
55946         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55947         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55948         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55949         * tests/test-vsnprintf.c (ASSERT): Likewise.
55950         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55951         * tests/test-wcwidth.c (ASSERT): Likewise.
55952         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55953         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55954         * tests/test-xvasprintf.c (ASSERT): Likewise.
55955         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55956         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55957         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55958         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55959         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55960         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55961         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55962         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55963         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55964         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55965         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55966         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55967         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55968         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55969         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55970         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55971         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55972         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55973         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55974         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55975         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55976         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55977         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55978         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55979         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55980         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55981         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55982         * tests/unictype/test-combining.c (ASSERT): Likewise.
55983         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55984         * tests/unictype/test-digit.c (ASSERT): Likewise.
55985         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55986         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55987         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55988         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55989         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55990         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55991         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55992         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55993         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55994         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55995         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55996         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55997         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55998         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55999         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56000         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56001         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56002         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56003         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56004         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56005         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56006         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56007         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56008         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56009         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56010         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56011         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56012         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56013         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56014         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56015         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56016         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56017         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56018         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56019         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56020         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56021         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56022         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56023         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56024         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56025         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56026         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56027         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56028         Reported by Eric Blake.
56029
56030 2008-04-11  Bruno Haible  <bruno@clisp.org>
56031
56032         * lib/wchar.in.h: Tweak comment.
56033
56034 2008-04-11  Bruno Haible  <bruno@clisp.org>
56035
56036         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56037         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56038         gl_COMMON.
56039         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56040
56041 2008-04-11  Bruno Haible  <bruno@clisp.org>
56042
56043         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56044
56045 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56046
56047         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56048         of attempting to use non-existing /dev/*random.  Based on patch
56049         from Adam Strzelecki <ono@java.pl> in
56050         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56051
56052 2008-04-08  Bruno Haible  <bruno@clisp.org>
56053
56054         Add tentative support for emx+gcc.
56055         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56056         * lib/fpurge.c (fpurge): Likewise.
56057         * lib/freadable.c (freadable): Likewise.
56058         * lib/freadahead.c (freadahead): Likewise.
56059         * lib/freading.c (freading): Likewise.
56060         * lib/freadptr.c (freadptr): Likewise.
56061         * lib/freadseek.c (freadptrinc): Likewise.
56062         * lib/fseeko.c (rpl_fseeko): Likewise.
56063         * lib/fseterr.c (fseterr): Likewise.
56064         * lib/fwritable.c (fwritable): Likewise.
56065         * lib/fwriting.c (fwriting): Likewise.
56066         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56067
56068 2008-04-09  Eric Blake  <ebb9@byu.net>
56069
56070         Avoid some autoconf warnings.
56071         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56072         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56073         * m4/afs.m4 (gl_AFS): Likewise.
56074         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56075         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56076         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56077         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56078         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56079         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56080         (AC_CHECK_DECLS_ONCE): Likewise.
56081         Rename file...
56082         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56083         gnulib-tool requires autoconf 2.59 or better.
56084         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56085
56086 2008-04-08  Eric Blake  <ebb9@byu.net>
56087
56088         Use 'git describe --match' if present (added in git 1.5.5).
56089         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56090         if possible.
56091
56092 2008-04-08  Bruno Haible  <bruno@clisp.org>
56093
56094         Add tentative support for OpenServer.
56095         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56096         _ptr, _cnt.
56097         * lib/fpurge.c (fpurge): Likewise.
56098         * lib/freadable.c (freadable): Likewise.
56099         * lib/freadahead.c (freadahead): Likewise.
56100         * lib/freading.c (freading): Likewise.
56101         * lib/freadptr.c (freadptr): Likewise.
56102         * lib/freadseek.c (freadptrinc): Likewise.
56103         * lib/fseeko.c (rpl_fseeko): Likewise.
56104         * lib/fseterr.c (fseterr): Likewise.
56105         * lib/fwritable.c (fwritable): Likewise.
56106         * lib/fwriting.c (fwriting): Likewise.
56107         Reported by Roger Cornelius <rac@tenzing.org> and
56108         Brian K. White <brian@aljex.com>.
56109
56110 2008-04-06  Jim Meyering  <meyering@redhat.com>
56111
56112         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56113
56114 2008-04-06  Bruno Haible  <bruno@clisp.org>
56115
56116         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56117         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56118         * tests/test-printf-posix.sh: Likewise.
56119         * tests/test-vfprintf-posix.sh: Likewise.
56120         * tests/test-vprintf-posix.sh: Likewise.
56121         * tests/test-xprintf-posix.sh: Likewise.
56122
56123 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56124
56125         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56126         hide error from 'ls', needed on OS/2.
56127         Report by Elbert Pol <elbert.pol@gmail.com>.
56128
56129 2008-04-04  Eric Blake  <ebb9@byu.net>
56130
56131         Make test-fseeko.c failures meaningful.
56132         * tests/test-fseeko.c: Print line number on failure.
56133         * tests/test-fseek.c: Likewise.
56134         Reported by Nelson H. F. Beebe.
56135
56136         Improve strtod bug detection check.
56137         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56138         required for Solaris 10.
56139         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56140
56141 2008-04-04  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56144         by m4/setenv.m4.
56145
56146 2008-04-03  Eric Blake  <ebb9@byu.net>
56147
56148         Ensure sane .version contents.
56149         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56150         version string.
56151         * build-aux/git-version-gen: Improve documentation.
56152
56153         Make GNU make output nicer.
56154         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56155         MAKECMDGOALS to enforce message for all command line targets.  Set
56156         srcdir for use in maint.mk.
56157
56158         Another maintainer tweak.
56159         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56160         a target that regenerates version.
56161
56162 2008-04-03  Jim Meyering  <meyering@redhat.com>
56163
56164         vc-list-files: don't cause coreutils "make po-check" failure
56165         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56166
56167 2008-04-03  Eric Blake  <ebb9@byu.net>
56168
56169         Allow VPATH usage of vc-list-files.
56170         * build-aux/vc-list-files (scriptversion): Add timestamp.
56171         (options): Add --help, --version, -C.
56172         (CVS): Support installed cvsu.
56173
56174 2008-04-02  Bruno Haible  <bruno@clisp.org>
56175
56176         Avoid some "statement with no effect" warnings from gcc.
56177         * tests/test-wctype.c (main): Explicitly ignore unused values.
56178         Reported by Jim Meyering.
56179
56180 2008-04-02  Jim Meyering  <meyering@redhat.com>
56181
56182         Avoid some warnings from "gcc -Wshadow".
56183         * tests/test-frexp.c (exp): Define to a different identifier.
56184         * tests/test-frexpl.c (exp): Likewise.
56185
56186 2008-04-03  Jim Meyering  <meyering@redhat.com>
56187
56188         bootstrap: remove dangling *.[ch] symlinks from lib
56189         * build-aux/bootstrap [dangling symlink removal]: Move find's
56190         -depth option to precede all others, to avoid a warning.
56191         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56192
56193 2008-04-02  Bruno Haible  <bruno@clisp.org>
56194
56195         Avoid some warnings from "gcc -Wshadow".
56196         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56197         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56198         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56199         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56200         Reported by Jim Meyering.
56201
56202 2008-04-01  Bruno Haible  <bruno@clisp.org>
56203
56204         Fix test to work on IRIX 6.5 with cc.
56205         * tests/test-math.c (numeric_equal): New function.
56206         (main): Use it.
56207
56208 2008-04-01  Bruno Haible  <bruno@clisp.org>
56209
56210         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56211
56212 2008-04-01  Bruno Haible  <bruno@clisp.org>
56213
56214         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56215         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56216         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56217         (Depends-on): Remove math.
56218
56219         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56220         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56221         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56222         (Depends-on): Remove math.
56223
56224         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56225         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56226         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56227         (Depends-on): Remove math.
56228         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56229         (Depends-on): Remove math.
56230
56231         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56232         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56233         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56234         (Depends-on): Remove math.
56235         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56236         (Depends-on): Remove math.
56237
56238         * tests/test-round1.c: Include nan.h.
56239         (main): Use NaNd instead of NAN.
56240         * modules/round-tests (Files): Add tests/nan.h.
56241
56242         * tests/test-trunc1.c: Include nan.h.
56243         (main): Use NaNd instead of NAN.
56244         * modules/trunc-tests (Files): Add tests/nan.h.
56245
56246         * tests/test-roundf1.c: Include nan.h.
56247         (main): Use NaNf instead of NAN.
56248         * modules/roundf-tests (Files): Add tests/nan.h.
56249
56250         * tests/test-truncf1.c: Include nan.h.
56251         (main): Use NaNf instead of NAN.
56252         * modules/truncf-tests (Files): Add tests/nan.h.
56253
56254         * tests/test-ceilf1.c: Include nan.h.
56255         (main): Use NaNf instead of NAN.
56256         * modules/ceilf-tests (Files): Add tests/nan.h.
56257
56258         * tests/test-floorf1.c: Include nan.h.
56259         (main): Use NaNf instead of NAN.
56260         * modules/floorf-tests (Files): Add tests/nan.h.
56261
56262         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56263         (main): Use NaNf instead of NAN.
56264         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56265
56266         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56267         (main): Use NaNd instead of NAN.
56268         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56269
56270         * tests/test-frexp.c: Include nan.h.
56271         (main): Use NaNd instead of NAN.
56272         * modules/frexp-tests (Files): Add tests/nan.h.
56273
56274         * lib/isnan.c: Don't include <math.h>.
56275         (FUNC): Don't use NAN macro.
56276         * modules/isnand-nolibm (Depends-on): Remove math.
56277         * modules/isnanf-nolibm (Depends-on): Remove math.
56278         * modules/isnanl (Depends-on): Remove math.
56279         * modules/isnanl-nolibm (Depends-on): Remove math.
56280
56281         * tests/nan.h: New file.
56282
56283 2008-04-01  Eric Blake  <ebb9@byu.net>
56284
56285         Fix typos.
56286         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56287         values to be the right type.
56288
56289         For now, cater to gnulib strtod inaccuracies.
56290         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56291         fractional results.  While not as nice from a QoI perspective, it
56292         is a quicker patch than correctly implementing decimal to binary
56293         rounding.
56294
56295 2008-03-31  Eric Blake  <ebb9@byu.net>
56296
56297         Guarantee a definition of NAN.
56298         * lib/math.in.h (NAN): Define if missing.
56299         * tests/test-math.c (main): Test it.
56300         * doc/posix-headers/math.texi (math.h): Document this.
56301         * lib/isnan.c (rpl_isnand): Use it.
56302         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56303         * tests/test-floorf1.c (NaN): Likewise.
56304         * tests/test-frexp.c (NaN): Likewise.
56305         * tests/test-isnand.c (NaN): Likewise.
56306         * tests/test-isnanf.c (NaN): Likewise.
56307         * tests/test-round1.c (NaN): Likewise.
56308         * tests/test-roundf1.c (NaN): Likewise.
56309         * tests/test-snprintf-posix.h (NaN): Likewise.
56310         * tests/test-sprintf-posix.h (NaN): Likewise.
56311         * tests/test-trunc1.c (NaN): Likewise.
56312         * tests/test-truncf1.c (NaN): Likewise.
56313         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56314         * tests/test-vasprintf-posix.c (NaN): Likewise.
56315         * modules/isnand-nolibm (Depends-on): Add math.
56316         * modules/isnanf-nolibm (Depends-on): Likewise.
56317         * modules/isnanl (Depends-on): Likewise.
56318         * modules/isnanl-nolibm (Depends-on): Likewise.
56319         * modules/snprintf-posix-tests (Depends-on): Likewise.
56320         * modules/sprintf-posix-tests (Depends-on): Likewise.
56321         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56322         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56323         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56324         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56325
56326 2008-03-31  Bruno Haible  <bruno@clisp.org>
56327
56328         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56329         * doc/posix-functions/strtod.texi: Likewise.
56330
56331 2008-03-31  Bruno Haible  <bruno@clisp.org>
56332
56333         * tests/test-strtod.c (main): Don't use C99 syntax.
56334
56335 2008-03-31  Bruno Haible  <bruno@clisp.org>
56336
56337         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56338         Reported by Eric Blake.
56339
56340 2008-03-31  Jim Meyering  <meyering@redhat.com>
56341
56342         Don't compare actual signbit return values.
56343         * tests/test-strtod.c (main): Rather, compare only their
56344         zero/non-zero nature.
56345
56346 2008-03-31  Eric Blake  <ebb9@byu.net>
56347
56348         More strtod documentation.
56349         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56350         failures as distinct bugs.
56351
56352 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56353
56354         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56355         Problem reported by Erik Benada in
56356         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56357
56358 2008-03-30  Bruno Haible  <bruno@clisp.org>
56359
56360         * tests/test-strtod.c: Add comments about which assertion fails on which
56361         platform.
56362         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56363
56364 2008-03-30  Eric Blake  <ebb9@byu.net>
56365
56366         Test signbit behavior on zeros.
56367         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56368         (test_signbitd, test_signbitl): Likewise.
56369
56370         More strtod touchups.
56371         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56372         sign of negative underflow, for now.  Use .5, not .1.
56373         * doc/posix-functions/strtod.texi (strtod): Mention these
56374         limitations.
56375         Reported by Jim Meyering.
56376
56377 2008-03-30  Bruno Haible  <bruno@clisp.org>
56378
56379         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56380         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56381
56382 2008-03-30  Bruno Haible  <bruno@clisp.org>
56383
56384         Avoid failure when attempting to return empty iconv results on some
56385         platforms.
56386         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56387         allocation, don't report ENOMEM when the resulting string is empty.
56388
56389 2008-03-30  Bruno Haible  <bruno@clisp.org>
56390
56391         Fix buffer overrun.
56392         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56393         Don't consider the width for tmp_length. Check count against tmp_length
56394         before doing the padding. Ensure enough allocation during padding.
56395
56396 2008-03-30  Eric Blake  <ebb9@byu.net>
56397
56398         strtod touchups.
56399         * lib/strtod.c (strtod): Avoid compiler warnings.
56400         Reported by Jim Meyering.
56401
56402 2008-03-30  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56405         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56406         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56407         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56408         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56409         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56410         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56411         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56412
56413         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56414         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56415         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56416         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56417         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56418         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56419         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56420         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56421
56422         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56423         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56424         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56425         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56426         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56427         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56428         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56429         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56430
56431         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56432         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56433
56434         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56435         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56436
56437         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56438         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56439
56440         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56442         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56443
56444         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56446         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56447
56448         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56450         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56451
56452         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56454         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56455
56456         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56457         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56459         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56460         (Depends-on): Add EOVERFLOW.
56461         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56462         (Depends-on): Add EOVERFLOW.
56463         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56464         (Depends-on): Add EOVERFLOW.
56465         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56466         (Depends-on): Add EOVERFLOW.
56467         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56468         (Depends-on): Add EOVERFLOW.
56469         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56470         (Depends-on): Add EOVERFLOW.
56471         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56472         (Depends-on): Add EOVERFLOW.
56473         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56474         (Depends-on): Add EOVERFLOW.
56475
56476         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56477         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56478         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56479
56480         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56482         * modules/snprintf (Depends-on): Add EOVERFLOW.
56483
56484         * lib/poll.c (EOVERFLOW): Remove fallback.
56485         * modules/poll (Depends-on): Add EOVERFLOW.
56486
56487         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56488         * modules/getugroups (Depends-on): Add EOVERFLOW.
56489
56490         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56491         * modules/getdelim (Depends-on): Add EOVERFLOW.
56492
56493         * lib/ftell.c (EOVERFLOW): Remove fallback.
56494         * modules/ftell (Depends-on): Add EOVERFLOW.
56495
56496         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56497         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56498         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56499
56500         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56501
56502         * modules/EOVERFLOW-tests: New file.
56503         * tests/test-EOVERFLOW.c: New file.
56504
56505         * modules/EOVERFLOW: New file.
56506         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56507
56508 2008-03-30  Bruno Haible  <bruno@clisp.org>
56509
56510         Fix bug introduced on 2007-06-10.
56511         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56512         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56513
56514 2008-03-30  Bruno Haible  <bruno@clisp.org>
56515
56516         Improve freadseek's efficiency after ungetc.
56517         * lib/freadseek.c: Include freadahead.h.
56518         (freadptrinc): New function, extracted from freadseek.
56519         (freadseek): Use it in a loop. Use freadahead to determine the number
56520         of loop iterations.
56521         * modules/freadseek (Depends-on): Add freadahead.
56522         (configure.ac): Require AC_C_INLINE.
56523
56524 2008-03-30  Bruno Haible  <bruno@clisp.org>
56525
56526         * lib/freadseek.c (freadseek): Don't ignore the return value of
56527         freadptr.
56528
56529 2008-03-29  Eric Blake  <ebb9@byu.net>
56530
56531         Add hex float support.
56532         * modules/strtod (Depends-on): Add c-ctype.
56533         (Link): Mention POW_LIB.
56534         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56535         whitespace between 'e' and exponent.
56536         * tests/test-strtod.c (main): Enable hex float tests.
56537         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56538         now provides.
56539
56540         Document various strtod bugs, with some fixes.
56541         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56542         "-0x", "inf", "nan", and hex constants.
56543         * doc/posix-functions/atof.texi (atof): Likewise.
56544         * modules/stdlib (Makefile.am): Support strtod.
56545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56546         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56547         detect additional strtod bugs.
56548         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56549         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56550         bool where appropriate.  Parse 'inf' and 'nan'.
56551         * tests/test-strtod.c: New file.
56552         * modules/strtod (Depends-on): Add stdbool, stdlib.
56553         (configure.ac): Turn on module indicator.
56554         * modules/strtod-tests: New module.
56555
56556 2008-03-29  Eric Blake  <ebb9@byu.net>
56557
56558         Fix ftell on mingw.
56559         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56560         * modules/ftell-tests (Depends-on): Add binary-io.
56561         * modules/ftello-tests (Depends-on): Likewise.
56562         * tests/test-ftell.c (main): Enhance test to cover behavior after
56563         ungetc.  Enforce binary mode.
56564         * tests/test-ftello.c (main): Likewise.
56565
56566         Pass test-freadseek on cygwin.
56567         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56568         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56569         ungetc buffer.
56570
56571         * tests/test-fflush2.c (main): Fix typo.
56572
56573 2008-03-29  Bruno Haible  <bruno@clisp.org>
56574
56575         * tests/test-fflush2.c (main): Temporarily disable the contents of
56576         this test.
56577         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56578         Reported by Eric Blake.
56579
56580 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56581
56582         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56583         (GC_SHA224_DIGEST_SIZE): Add.
56584
56585         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56586         (gc_hash_digest_length): Likewise.
56587         (gc_hash_buffer): Likewise.
56588
56589 2008-03-25  Bruno Haible  <bruno@clisp.org>
56590
56591         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56592         detail which gettext release to use.
56593         Reported by Simon Josefsson.
56594
56595 2008-03-26  Jim Meyering  <meyering@redhat.com>
56596
56597         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56598         * modules/gnumakefile (clean-GNUmakefile): Also, use
56599         test ... && ... || : syntax rather than if-then ... fi.
56600
56601         gnumakefile: Don't double-quote-expand $(VPATH) value.
56602         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56603
56604 2008-03-24  Eric Blake  <ebb9@byu.net>
56605
56606         Alter GNUmakefile to install into top directory.
56607         * modules/maintainer-makefile: Split, and add dependency...
56608         * modules/gnumakefile: to this new module.
56609         * build-aux/GNUmakefile: Move...
56610         * top/GNUmakefile: ...here.
56611         * build-aux/maint.mk: Move...
56612         * top/maint.mk: ...here.
56613         * MODULES.html.sh (Support for maintaining...): Document new
56614         module.
56615
56616 2008-03-23  Bruno Haible  <bruno@clisp.org>
56617
56618         * gnulib-tool: New options --vc-files, --no-vc-files.
56619         (func_usage): Document them.
56620         (vc_files): New variable.
56621         (func_import): Consider vc_files.
56622         (func_create_testdir): Set vc_files to empty.
56623         Suggested by Jim Meyering and Karl Berry.
56624
56625 2008-03-23  Bruno Haible  <bruno@clisp.org>
56626
56627         Fix regex compilation error on HP-UX 11.
56628         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56629         * modules/regex (Files): Add m4/mbstate_t.m4.
56630         Reported by Ton Voon <ton.voon@altinity.com>.
56631
56632 2008-03-23  Bruno Haible  <bruno@clisp.org>
56633
56634         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56635
56636 2008-03-23  Eric Blake  <ebb9@byu.net>
56637             Bruno Haible  <bruno@clisp.org>
56638
56639         Install files from top/ in the destination directory.
56640         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56641         augmentation also for the files from top/.
56642         (func_import, func_create_testdir): Rewrite file names:
56643         top/filename -> filename.
56644
56645 2008-03-23  Bruno Haible  <bruno@clisp.org>
56646
56647         Tweak "gnulib --version" output.
56648         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56649
56650 2008-03-23  Bruno Haible  <bruno@clisp.org>
56651
56652         Tweak "gnulib --version" output.
56653         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56654         rather than contents of ChangeLog, when possible.
56655
56656 2008-03-21  Eric Blake  <ebb9@byu.net>
56657
56658         More --version tweaks.
56659         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56660         date of last ChangeLog entry.
56661
56662 2008-03-21  Jim Meyering  <meyering@redhat.com>
56663
56664         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56665
56666 2008-03-20  Eric Blake  <ebb9@byu.net>
56667
56668         VPATH fix.
56669         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56670
56671 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56672
56673         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56674         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56675
56676 2008-03-20  Eric Blake  <ebb9@byu.net>
56677
56678         Sync GNUmakefile with coreutils.
56679         * build-aux/GNUmakefile (have-Makefile): Rename...
56680         (_have-Makefile): ...to this, for namespace consideration.
56681         (GNUmakefile.cfg): Include, if present.
56682         (_autoreconf): Define a default.
56683         (_is-dist-target): New rule for rebuilds to pick up intra-release
56684         version.
56685         (maint-cfg.mk): Rename...
56686         (cfg.mk): ...to this.
56687
56688 2008-03-18  Jim Meyering  <meyering@redhat.com>
56689
56690         New script and module: mktempd
56691         * MODULES.html.sh (maint+release support): Add mktempd.
56692         * build-aux/mktempd: New file.
56693         * modules/mktempd: New file.
56694
56695 2008-03-15  Jim Meyering  <meyering@redhat.com>
56696
56697         Undo last change.
56698         * lib/sha1.c, lib/md5.c: 63 != ~63.
56699         Reported by Andreas Schwab.
56700
56701         sha1.c, md5.c: Hoist a redundant expression.
56702         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56703         "ctx->buflen" only once, before calling *_process_block.
56704         * lib/md5.c (md5_process_bytes): Likewise.
56705
56706 2008-03-14  Eric Blake  <ebb9@byu.net>
56707
56708         Bump copyright year in files generated by gnulib-tool.
56709         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56710         gnulib-tool, rather than hard-coding it.
56711
56712         Fix 'gnulib-tool --version' output to work with git.
56713         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56714         (startup): ...here.
56715         (func_version): Use it to invoke git-version-gen, rather than
56716         relying on CVS keyword expansion.  Modernize wording.
56717         (cvsdatestamp, last_checkin_date, version): Kill unused
56718         variables.
56719
56720 2008-03-12  Jim Meyering  <meyering@redhat.com>
56721
56722         Recognize optional cast of the argument to free.
56723         * build-aux/useless-if-before-free: Update regexps.
56724
56725         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56726
56727 2008-03-11  Bruno Haible  <bruno@clisp.org>
56728
56729         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56730         by a single package.
56731         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56732         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56733         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56734         Reported by Sam Steingold <sds@gnu.org>.
56735
56736 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56737
56738         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56739         repositories.
56740
56741 2008-03-11  Bruno Haible  <bruno@clisp.org>
56742
56743         Avoid conflicts between local macro definitions.
56744         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56745         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56746
56747 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56748             Bruno Haible  <bruno@clisp.org>
56749
56750         Make va_copy work with some version of xlc on AIX 5.1.
56751         * lib/stdarg.in.h: New file.
56752         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56753         On AIX, use a <stdarg.h> file substitute.
56754         * modules/stdarg (Files): Add lib/stdarg.in.h.
56755         (Depends-on): Add include_next.
56756         (Makefile.am): Build a stdarg.h substitute if requested.
56757         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56758
56759 2008-03-10  Bruno Haible  <bruno@clisp.org>
56760
56761         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56763         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56764
56765 2008-03-10  Bruno Haible  <bruno@clisp.org>
56766
56767         * modules/stdlib (Depends-on): Add include_next, remove
56768         absolute-header.
56769
56770 2008-03-09  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/freadahead.h (freadahead): Document more precisely.
56773         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56774         the sum of both buffer sizes.
56775         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56776         * NEWS: Document the change.
56777
56778 2008-03-09  Bruno Haible  <bruno@clisp.org>
56779
56780         Extend freadptr to return also the buffer size.
56781         * lib/freadptr.h (freadptr): Add sizep argument.
56782         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56783         (freadptr): Add sizep argument. Determine buffer size like freadahead
56784         does.
56785         * tests/test-freadptr.c: Don't include freadahead.h.
56786         (main): Adapt for new calling convention of freadptr.
56787         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56788         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56789         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56790         tests/test-freadptr2.sh.
56791         (Depends): Remove freadahead.
56792         (TESTS): Add test-freadptr2.sh.
56793         (check_PROGRAMS): Add test-freadptr2.
56794
56795 2008-03-09  Bruno Haible  <bruno@clisp.org>
56796
56797         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56798         Report and solution by Simon Josefsson.
56799
56800 2008-03-06  Bruno Haible  <bruno@clisp.org>
56801
56802         Make fflush after ungetc work on BSD platforms.
56803         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56804         * tests/test-fflush2.c: New file.
56805         * tests/test-fflush2.sh: New file.
56806         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56807         tests/test-fflush2.c.
56808         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56809         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56810
56811 2008-03-06  Eric Blake  <ebb9@byu.net>
56812
56813         Likewise for ftello.
56814         * modules/ftello (Dependencies): Add extensions.
56815         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56816
56817 2008-03-06  Bruno Haible  <bruno@clisp.org>
56818
56819         * modules/fseeko (Dependencies): Add extensions.
56820         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56821         Needed on glibc systems.
56822
56823 2008-03-06  Bruno Haible  <bruno@clisp.org>
56824
56825         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56826         email address.
56827         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56828
56829 2008-03-06  Bruno Haible  <bruno@clisp.org>
56830
56831         * users.txt: Add libgnupdf.
56832
56833 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56834
56835         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56836         (Header File Substitutes, Function Substitutes,
56837         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56838         (Build robot for gnulib): Fix typo.
56839
56840 2008-03-06  Bruno Haible  <bruno@clisp.org>
56841
56842         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56843         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56844
56845 2008-03-06  Bruno Haible  <bruno@clisp.org>
56846
56847         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56848         * doc/gnulib.texi: Include it.
56849
56850 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56851
56852         * modules/func (License): Change license to unlimited; there was
56853         no LGPL parts in the module anyway.
56854
56855 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56856
56857         * modules/__func__: Renamed to modules/func.
56858         * modules/__func__-tests: Renamed to modules/func-tests.
56859         * tests/test-__func__.c: Renamed to tests/test-func.c.
56860         * m4/__func__.m4: Renamed to m4/func.m4.
56861         * doc/gnulib.texi (__func__): Section renamed to func.
56862         Suggested by Eric Blake <ebb9@byu.net>.
56863
56864 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56865
56866         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56867         about __func__.  Make example self-contained.  Suggested by Eric
56868         Blake <ebb9@byu.net>.
56869
56870         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56871         Suggested by Eric Blake <ebb9@byu.net>.
56872
56873 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56874
56875         * modules/__func__: New file.
56876         * modules/__func__-tests: New file.
56877         * tests/test-__func__.c: New file.
56878         * m4/__func__.m4: New file.
56879         * doc/gnulib.texi (__func__): Document __func__ module.
56880
56881 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56882
56883         * modules/byteswap (License): Re-license as LGPLv2+.
56884
56885 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56886
56887         * doc/Makefile: Add pdf target.
56888
56889 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56890
56891         * modules/inline (License): Use 'unlimited', since there are only
56892         *.m4 files in this module.
56893
56894 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56895             Bruno Haible  <bruno@clisp.org>
56896
56897         Add support for HP C 7.1 on OpenVMS 8.3.
56898         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56899
56900 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56901
56902         Update VMS specifics.
56903         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56904
56905 2008-03-02  Jim Meyering  <meyering@redhat.com>
56906
56907         Remove the last dependency on the "free" module.
56908         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56909         Reported by Bob Proulx.
56910
56911         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56912
56913         Remove useless "if" tests before free.  Deprecate "free" module.
56914         * doc/posix-functions/free.texi: Mention that this
56915         module is no longer useful.
56916         * modules/free (Notice): Say this module is obsolete.
56917         * modules/readutmp (Depends-on): Remove free.
56918         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56919         * lib/putenv.c (putenv): Likewise.
56920         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56921         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56922         * tests/test-c-strcasestr.c (main): Likewise.
56923         * tests/test-c-strstr.c (main): Likewise.
56924         * tests/test-mbscasestr1.c (main): Likewise.
56925         * tests/test-mbscasestr2.c (main): Likewise.
56926         * tests/test-mbsstr1.c (main): Likewise.
56927         * tests/test-mbsstr2.c (main): Likewise.
56928         * tests/test-memmem.c (main): Likewise.
56929         * tests/test-strcasestr.c (main): Likewise.
56930         * tests/test-striconv.c (main): Likewise.
56931         * tests/test-striconveh.c (main): Likewise.
56932         * tests/test-striconveha.c (main): Likewise.
56933         * tests/test-strstr.c (main): Likewise.
56934
56935         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56936
56937         bootstrap: sync from coreutils again
56938         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56939
56940 2008-03-01  Jim Meyering  <meyering@redhat.com>
56941
56942         bootstrap: sync from coreutils
56943         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56944         also when the target doesn't exist.
56945
56946 2008-03-01  Eric Blake  <ebb9@byu.net>
56947
56948         Fix bugs in last patch.
56949         * lib/memchr2.c (memchr2): Fix typo.
56950         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56951         extension.
56952         Reported by Bruce Korb.
56953
56954         New module 'memchr2'.
56955         * modules/memchr2: New file.
56956         * modules/memchr2-tests: Likewise.
56957         * lib/memchr2.h: Likewise.
56958         * lib/memchr2.c: Likewise, based on memchr.c.
56959         * tests/test-memchr2.c: New test.
56960         * MODULES.html.sh (String handling): Add memchr2.
56961
56962 2008-02-29  Bruno Haible  <bruno@clisp.org>
56963
56964         * modules/freadseek-tests: New file.
56965         * tests/test-freadseek.sh: New file.
56966         * tests/test-freadseek.c: New file.
56967
56968         New module 'freadseek'.
56969         * modules/freadseek: New file.
56970         * lib/freadseek.h: New file.
56971         * lib/freadseek.c: New file.
56972         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56973
56974 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56975
56976         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56977         wydawca.
56978
56979         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56980         program_invocation_name and program_invocation_short_name are
56981         present.
56982
56983 2008-02-28  Bruno Haible  <bruno@clisp.org>
56984
56985         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56986         * tests/test-freadptr.sh: Also test non-seekable stdin.
56987
56988 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56989
56990         * build-aux/bootstrap (source_base, m4_base)
56991         (doc_base, tests_base): New variables.
56992         (gnulib_tool_options): Do not hardcode base directories, use
56993         the above variables instead.
56994
56995 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56996
56997         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56998
56999 2008-02-28  Bruno Haible  <bruno@clisp.org>
57000
57001         * modules/freadptr-tests: New file.
57002         * tests/test-freadptr.sh: New file.
57003         * tests/test-freadptr.c: New file.
57004
57005         New module 'freadptr'.
57006         * modules/freadptr: New file.
57007         * lib/freadptr.h: New file.
57008         * lib/freadptr.c: New file.
57009         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57010
57011 2008-02-26  Karl Berry  <karl@freefriends.org>
57012
57013         Sync from Libtool:
57014         * libltdl/argz.c (argz_add, argz_count): New functions.
57015         * libltdl/argz.in.h: Declare them.
57016         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57017
57018 2008-02-22  Bruno Haible  <bruno@clisp.org>
57019
57020         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57021         is a pointer type.  Needed for HP-UX 10.
57022         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57023         * doc/posix-functions/gmtime_r.texi: Likewise.
57024         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57025
57026 2008-02-24  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/environ-tests: New file.
57029         * tests/test-environ.c: New file.
57030
57031         New module 'environ'.
57032         * modules/environ: New file.
57033         * lib/unistd.in.h (environ): New declaration.
57034         * m4/environ.m4: New file.
57035         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57036         after use.
57037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57038         HAVE_DECL_ENVIRON.
57039         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57040         HAVE_DECL_ENVIRON.
57041         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57042         wrong claim that 'environ' is missing on some systems.
57043         * modules/execute (Depends-on): Add environ.
57044         * lib/execute.c (environ): Remove fallback declaration.
57045         * modules/pipe (Depends-on): Add environ.
57046         * lib/pipe.c (environ): Remove fallback declaration.
57047         * modules/setenv (Depends-on): Add environ.
57048         * lib/setenv.c (environ): Remove fallback declaration.
57049         * modules/unsetenv (Depends-on): Add environ.
57050         * lib/unsetenv.c (environ): Remove fallback declaration.
57051         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57052         m4/environ.m4.
57053         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57054         (gl_PREREQ_UNSETENV): Likewise.
57055
57056 2008-02-24  Bruno Haible  <bruno@clisp.org>
57057
57058         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57059
57060 2008-02-20  Bob Proulx  <bob@proulx.com>
57061
57062         Enable use of older two part flavor 'git describe'.
57063         * build-aux/git-version-gen: If using the older two part flavor of
57064         git version then recreate the third part now present in the
57065         newer three part flavor of git describe.
57066
57067 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57068
57069         * lib/fts.c (fts_build): Typo correction to comment.
57070
57071 2008-02-17  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57074         generating no-op conflicts.
57075
57076 2008-02-17  Bruno Haible  <bruno@clisp.org>
57077
57078         Speed up by 10%.
57079         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57080         result_entries, rather than an index-based loop.
57081
57082 2008-02-17  Bruno Haible  <bruno@clisp.org>
57083
57084         Speed up by 25%.
57085         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57086         'hashcode_cached'.
57087         (entry_create): New function.
57088         (entry_hashcode): Use the cached hashcode if possible.
57089         (read_changelog_file, try_split_merged_entry): Use entry_create.
57090
57091 2008-02-17  Bruno Haible  <bruno@clisp.org>
57092
57093         Speed up from O(n^2) to O(n) for long ChangeLog files.
57094         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57095         (read_changelog_file): Change implementation of entries_reversed list
57096         to rbtreehash.
57097         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57098
57099 2008-02-17  Bruno Haible  <bruno@clisp.org>
57100
57101         New option --split-merged-entry.
57102         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57103         (find_paragraph_end, try_split_merged_entry): New functions.
57104         (long_options): Add option --split-merged-entry.
57105         (usage): Document option --split-merged-entry.
57106         (main): Implement option --split-merged-entry.
57107         Reported by Eric Blake.
57108
57109 2008-02-17  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/git-merge-changelog.c: Include c-strstr.h.
57112         (main): Support the "git pull --rebase" situation.
57113         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57114         Reported by Eric Blake.
57115
57116 2008-02-16  Eric Blake  <ebb9@byu.net>
57117
57118         Avoid doubling \ in common case of "c-maybe" quoting style.
57119         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57120         eliding outer quotes.
57121         * lib/quotearg.h: Document this.
57122         * tests/test-quotearg.c (result_strings, inputs, results_g)
57123         (flag_results, locale_results): Test it by adding a new string to
57124         each test group.
57125         (compare_strings): Test new string.
57126
57127 2008-02-13  Eric Blake  <ebb9@byu.net>
57128
57129         Avoid trigraph quoting in default output.
57130         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57131         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57132         unless explicitly requested.
57133         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57134
57135 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57136
57137         Don't rely on signed integer overflowing to negative value.
57138         * lib/getugroups.c (getugroups): Include <limits.h>.
57139         Instead, compare against INT_MAX, and increment only if the test passes.
57140
57141 2008-02-13  Jim Meyering  <meyering@redhat.com>
57142         and Eric Blake  <ebb9@byu.net>
57143
57144         Avoid shadowing warning and compile errors on Linux.
57145         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57146         forwarding macros on Linux.
57147         (dcgettext): Define a stub, for Linux.
57148         (results_g, main): Avoid warnings.
57149
57150 2008-02-12  Eric Blake  <ebb9@byu.net>
57151
57152         Silence warning in last patch.
57153         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57154
57155         Quotearg part 4: add tests, fix c-maybe colon quoting.
57156         * lib/quotearg.h: Improve documentation.
57157         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57158         escapes when adding outer quotes.  When quoting trigraphs, use
57159         valid C notation.  When quoting NUL, omit extra characters if next
57160         character is not digit.  Alter prototype.
57161         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57162         callers.
57163         * modules/quotearg-tests: New module.
57164         * tests/test-quotearg.c: New test.
57165
57166 2008-02-07  Eric Blake  <ebb9@byu.net>
57167
57168         Quotearg part 3: add flag to control outer quote elision.
57169         * lib/quotearg.h (c_maybe_quoting_style): New style.
57170         (enum quoting_flags): Better documentation of flags.
57171         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57172         c-maybe style.
57173         (quotearg_buffer_restyled): Handle new flag to elide outer
57174         quotes.
57175
57176         Quotearg part 2: add flag that can control NUL elision.
57177         * lib/quotearg.h (set_quoting_flags): New prototype.
57178         * lib/quotearg.c (struct quoting_options): Add flag field.
57179         (set_quoting_flags): New function.
57180         (quotearg_buffer_restyled): Add flags parameter.
57181         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57182         (quotearg_n_options): Set the flag, since length cannot be
57183         returned.
57184         (quoting_options_from_style): Default flags correctly.
57185
57186         Quotearg part 1: more wrappers, restore quotearg_char state.
57187         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57188         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57189         (quotearg_colon_mem): New wrappers.
57190         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57191         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57192         functions.
57193         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57194         (quotearg_colon_mem): New functions.
57195
57196 2008-02-11  Bruno Haible  <bruno@clisp.org>
57197
57198         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57199         library in the current directory: it does not work with parallel make.
57200         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57201
57202 2008-02-11  Bruno Haible  <bruno@clisp.org>
57203
57204         * .gitattributes: New file.
57205
57206 2008-02-11  Jim Meyering  <meyering@redhat.com>
57207
57208         useless-if-before-free: Fix reversed exit values.
57209         * build-aux/useless-if-before-free: Use correct values
57210         for EXIT_MATCH and EXIT_NO_MATCH.
57211
57212         * build-aux/useless-if-before-free: Close stdout carefully.
57213
57214 2008-02-10  Bruno Haible  <bruno@clisp.org>
57215
57216         New module 'git-merge-changelog'.
57217         * modules/git-merge-changelog: New file.
57218         * lib/git-merge-changelog.c: New file.
57219
57220 2008-02-10  Jim Meyering  <meyering@redhat.com>
57221
57222         useless-if-before-free: New option: --list (-l).
57223
57224         useless-if-before-free: Don't exit immediately upon open failure.
57225         * build-aux/useless-if-before-free: Exit 2 for errors.
57226         Upon failure to open a file, don't exit immediately.
57227         Rather, just warn and continue with any remaining files.
57228
57229 2008-02-10  Bruno Haible  <bruno@clisp.org>
57230
57231         New abstract list operation 'node_set_value'.
57232         * lib/gl_list.h (gl_list_node_set_value): New function.
57233         (struct gl_list_implementation): New field node_set_value.
57234         * lib/gl_list.c (gl_list_node_set_value): New function.
57235         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57236         (gl_array_list_implementation): Update.
57237         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57238         (gl_carray_list_implementation): Update.
57239         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57240         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57241         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57242         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57243         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57244         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57245         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57246         Update.
57247         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57248         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57249         (gl_sublist_list_implementation): Update.
57250
57251 2008-02-10  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57254         Needed when ELEMENT is #defined to 'some_type *'.
57255
57256 2008-02-10  Jim Meyering  <meyering@redhat.com>
57257
57258         New script and module: useless-if-before-free
57259         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57260         * build-aux/useless-if-before-free: New file.
57261         * modules/useless-if-before-free: New file.
57262
57263         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57264
57265         xstrtol_error: Fix typo.
57266         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57267         s/exit_failure/exit_status/.
57268
57269 2008-02-09  Jim Meyering  <meyering@redhat.com>
57270
57271         New script and module: gitlog-to-changelog
57272         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57273         * modules/gitlog-to-changelog: New file.
57274         * build-aux/gitlog-to-changelog: New file.
57275
57276 2008-02-08  Jim Meyering  <meyering@redhat.com>
57277
57278         Avoid two "parameter unused" warnings.
57279         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57280         Mark "st" as used.
57281
57282         Use "git COMMAND", not "git-COMMAND".
57283         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57284         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57285         * build-aux/git-version-gen: Use "git status", not "git-status".
57286
57287 2008-02-07  Bruno Haible  <bruno@clisp.org>
57288
57289         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57290         Avoids a crash on Windows Vista.
57291         Reported by Adam Strzelecki <ono@java.pl> via
57292         Simon Josefsson <simon@josefsson.org>.
57293
57294 2008-02-06  Bruno Haible  <bruno@clisp.org>
57295
57296         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57297         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57298         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57300         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57302         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57303         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57311         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57312         left-adjust flag.
57313         * tests/test-snprintf-posix.h (test_function): Likewise.
57314         * tests/test-sprintf-posix.h (test_function): Likewise.
57315         * tests/test-vasprintf-posix.c (test_function): Likewise.
57316         * doc/posix-functions/fprintf.texi: Update.
57317         * doc/posix-functions/printf.texi: Update.
57318         * doc/posix-functions/snprintf.texi: Update.
57319         * doc/posix-functions/sprintf.texi: Update.
57320         * doc/posix-functions/vfprintf.texi: Update.
57321         * doc/posix-functions/vprintf.texi: Update.
57322         * doc/posix-functions/vsnprintf.texi: Update.
57323         * doc/posix-functions/vsprintf.texi: Update.
57324         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57325
57326 2008-02-06  Bruno Haible  <bruno@clisp.org>
57327
57328         Fix bug introduced on 2008-01-26.
57329         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57330
57331 2008-02-06  Bruno Haible  <bruno@clisp.org>
57332
57333         Fix bug introduced on 2007-06-10.
57334         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57335         !NEED_PRINTF_FLAG_ZERO.
57336
57337 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57338
57339         getloadavg: use libperfstat on AIX5
57340         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57341
57342 2008-02-03  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/diffseq.h: Add comments about required #includes.
57345         Reported by Michael Biggs <gnulib@doubleplum.net>.
57346
57347 2008-02-01  Bruno Haible  <bruno@clisp.org>
57348
57349         * users.txt: Add gnuit.
57350
57351 2008-01-31  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/md4.c (set_uint32): Mark as inline.
57354         * lib/md5.c (set_uint32): Likewise.
57355         * lib/sha1.c (set_uint32): Likewise.
57356         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57357         * m4/md5.m4 (gl_MD5): Likewise.
57358         * m4/sha1.m4 (gl_SHA1): Likewise.
57359
57360 2008-01-31  Jim Meyering  <meyering@redhat.com>
57361
57362         Use "sizeof VAR", rather than a literal "4".
57363         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57364         * lib/md4.c (md4_read_ctx): Likewise.
57365         * lib/sha1.c (sha1_read_ctx): Likewise.
57366
57367 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57368
57369         * tests/test-sha1.c: New file, based on test-md5.c.
57370
57371         * modules/crypto/sha1-tests: New file.
57372
57373 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57374
57375         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57376
57377 2008-01-31  Jim Meyering  <meyering@redhat.com>
57378
57379         Prefer "sizeof v" over the equivalent "4".
57380         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57381         * lib/md5.c (set_uint32): Likewise.
57382         * lib/sha1.c (set_uint32): Likewise.
57383
57384 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57385
57386         * lib/sha1.c (set_uint32): Mark function as static.
57387
57388 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57389
57390         md2: clarify comments to say that alignment is not required.
57391         * lib/md2.h: Remove warning about alignment in comment.
57392         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57393         never been required.
57394
57395 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57396
57397         md4: adapt alignment constraint fix from sha1.
57398         * lib/md4.c (set_uint32): New function, from sha1.c
57399         (md4_read_ctx): Use it.
57400         (md4_finish_ctx): Doc fix.
57401         * lib/md4.h: Doc fix.
57402
57403 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57404
57405         md5: adapt alignment constraint fix from sha1.
57406         * lib/md5.c (set_uint32): New function, from sha1.c
57407         (md5_read_ctx): Use it.
57408         (md5_finish_ctx): Doc fix.
57409         * lib/md5.h: Doc fix.
57410
57411 2008-01-30  Peter Palfrader  <weasel@debian.org>
57412
57413         sha1: remove the result buffer alignment constraint
57414         * lib/sha1.c (set_uint32): New function.
57415         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57416         constraint.
57417         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57418         * lib/sha1.h: Likewise.
57419
57420 2008-01-30  Andreas Schwab  <schwab@suse.de>
57421             Bruno Haible  <bruno@clisp.org>
57422
57423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57424         correct definition of LDBL_MIN_EXP.
57425
57426 2008-01-30  Karl Berry  <karl@gnu.org>
57427
57428         * config/srclist-update: try to preserve x bit on updates.
57429         * config/srclistvars.sh: update for karl.
57430
57431 2008-01-29  Jim Meyering  <meyering@redhat.com>
57432
57433         vasnprintf.c: Avoid warning about unused label
57434         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57435         "overflow" label definition and associated code with the
57436         same cpp condition that guards the sole use of that label.
57437
57438 2008-01-26  Bruno Haible  <bruno@clisp.org>
57439
57440         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57441         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57442         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57443         * lib/isnanl-nolibm.h (isnanl): Likewise.
57444         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57445
57446 2008-01-26  Bruno Haible  <bruno@clisp.org>
57447
57448         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57449         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57450
57451 2008-01-26  Bruno Haible  <bruno@clisp.org>
57452
57453         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57454         GCC >= 4.0 built-in.
57455         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57456
57457 2008-01-26  Bruno Haible  <bruno@clisp.org>
57458
57459         Rename isnan, applicable to 'double' only, to isnand.
57460         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57461         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57462         (configure.ac): Update.
57463         (Include): Replace "isnan.h" with "isnand.h".
57464         * m4/isnand.m4: Renamed from m4/isnan.m4.
57465         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57466         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57467         instead of isnan.c.
57468         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57469         instead of HAVE_ISNAN_IN_LIBC.
57470         (isnand): Renamed from isnan.
57471         * lib/isnand.c: New file.
57472         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57473         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57474         (Makefile.am): Update.
57475         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57476         Include isnand.h instead of isnan.h.
57477         (main): Test isnand instead of isnan.
57478         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57479         isnan-nolibm.
57480         * modules/frexp (Depends-on): Likewise.
57481         * modules/frexp-tests (Depends-on): Likewise.
57482         * modules/frexp-nolibm (Depends-on): Likewise.
57483         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57484         * modules/isfinite (Depends-on): Likewise.
57485         * modules/round-tests (Depends-on): Likewise.
57486         * modules/signbit (Depends-on): Likewise.
57487         * modules/signbit-tests (Depends-on): Likewise.
57488         * modules/snprintf-posix (Depends-on): Likewise.
57489         * modules/sprintf-posix (Depends-on): Likewise.
57490         * modules/trunc-tests (Depends-on): Likewise.
57491         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57493         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57494         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57495         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57496         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57497         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57498         * modules/vasnprintf-posix (Depends-on): Likewise.
57499         * modules/vasprintf-posix (Depends-on): Likewise.
57500         * modules/vfprintf-posix (Depends-on): Likewise.
57501         * modules/vsnprintf-posix (Depends-on): Likewise.
57502         * modules/vsprintf-posix (Depends-on): Likewise.
57503         * lib/frexp.c: Include isnand.h instead of isnan.h.
57504         (ISNAN): Set to isnand instead of isnan.
57505         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57506         (gl_isfinited): Use isnand instead of isnan.
57507         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57508         (gl_signbitd): Use isnand instead of isnan.
57509         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57510         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57511         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57512         (main): Use isnand instead of isnan.
57513         * tests/test-round1.c: Include isnand.h.
57514         (main): Use isnand instead of isnan.
57515         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57516         (ISNAN): Set to isnand instead of isnan.
57517         * tests/test-trunc1.c: Include isnand.h.
57518         (main): Use isnand instead of isnan.
57519         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57520         (equal): Use isnand instead of isnan.
57521         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57522         isnand-nolibm.
57523         * NEWS: Mention the change.
57524
57525 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57526             Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57529         the GCC builtins for signbits are present and set
57530         REPLACE_SIGNBIT_USING_GCC if so.
57531         * lib/math.in.h (signbit): Define using GCC builtins if
57532         REPLACE_SIGNBIT_USING_GCC is set.
57533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57534         REPLACE_SIGNBIT_USING_GCC.
57535         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57536
57537 2008-01-25  Jim Meyering  <meyering@redhat.com>
57538
57539         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57540         * lib/poll.c: Include <config.h>, not "config.h".
57541         * tests/test-getaddrinfo.c: Likewise.
57542
57543 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57544
57545         * modules/sockets-tests: New file.
57546
57547 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57548
57549         * modules/sockets: New module, can be used to call WSA_Startup and
57550         WSA_Cleanup when needed.
57551
57552         * lib/sockets.h, lib/sockets.c: New files.
57553
57554         * m4/sockets.m4: New file.
57555
57556         * tests/test-sockets.c: New file.
57557
57558 2008-01-19  Bruno Haible  <bruno@clisp.org>
57559
57560         * doc/posix-headers: Renamed from doc/headers.
57561         * doc/posix-functions: Renamed from doc/functions.
57562         * doc/gnulib.texi: Update.
57563
57564 2008-01-19  Bruno Haible  <bruno@clisp.org>
57565
57566         * doc/glibc-functions/strcasestr.texi: Include contents of
57567         doc/functions/strcasestr.texi, fixing the list of platforms.
57568         * doc/functions/strcasestr.texi: Remove file.
57569
57570 2008-01-19  Bruno Haible  <bruno@clisp.org>
57571
57572         * doc/glibc-functions/memmem.texi: Include contents of
57573         doc/functions/memmem.texi.
57574         * doc/functions/memmem.texi: Remove file.
57575
57576 2008-01-18  Bruno Haible  <bruno@clisp.org>
57577
57578         * doc/glibc-functions/*.texi: New files.
57579         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57580         to use the new files.
57581
57582 2008-01-17  Bruno Haible  <bruno@clisp.org>
57583
57584         * tests/test-gethostname.c (main): Fix printf statement.
57585
57586 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57587
57588         * modules/gethostname-tests: New file.
57589
57590         * tests/test-gethostname.c: New file.
57591
57592 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57593
57594         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57595         used by the UNAME case.  Reported by Bruno Haible
57596         <bruno@clisp.org>.
57597
57598 2008-01-17  Eric Blake  <ebb9@byu.net>
57599
57600         Convert c-strcasestr to be more efficient.
57601         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57602         (Depends-on): Add c-strcase, remove malloca, strnlen.
57603         * tests/test-c-strcasestr.c (main): Enhance test.
57604         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57605
57606 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57607
57608         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57609         Use it in creating po/Makevars.
57610
57611 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57612
57613         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57614         Applications that requires it should initialize libgcrypt
57615         manually.
57616
57617 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57618
57619         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57620
57621 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57622
57623         Fix problem with getdate on mingw32 reported by Simon Josefsson
57624         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57625         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57626         tzname", when deciding whether to declare tzname.
57627         * lib/strftime.c (tzname): Likewise.
57628
57629 2008-01-15  Bruno Haible  <bruno@clisp.org>
57630
57631         Work around a MacOS X 10.5 bug in frexpl().
57632         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57633         * doc/functions/frexpl.texi: Document the bug.
57634         Reported by Elias Pipping <pipping@gentoo.org>.
57635
57636 2008-01-14  Eric Blake  <ebb9@byu.net>
57637
57638         Touch up previous patch.
57639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57640         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57641
57642         Convert strcasestr module to use Two-Way algorithm.
57643         * modules/strcasestr-simple: New module, based on the old
57644         strcasestr, but with Two-Way rather than KMP.
57645         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57646         * lib/string.in.h (rpl_strcasestr): Declare.
57647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57648         performance.
57649         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57650         * modules/string (Makefile.am): Support strcasestr.
57651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57652         * modules/strcasestr-tests (Depends-on): Check for alarm.
57653         * tests/test-strcasestr.c: Augment test.
57654         * lib/str-two-way.h: Clean up stray macro.
57655         * NEWS: Document new module.
57656         * MODULES.html.sh (string handling): Likewise.
57657         * doc/functions/strcasestr.texi: New file.
57658         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57659         here, since it is not a POSIX function.
57660
57661 2008-01-14  Colin Watson  <cjwatson@debian.org>
57662             Bruno Haible  <bruno@clisp.org>
57663
57664         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57665         works fine; if not, set REPLACE_STRSIGNAL.
57666         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57668         REPLACE_STRSIGNAL.
57669         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57670         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57671         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57672
57673 2008-01-14  Bruno Haible  <bruno@clisp.org>
57674
57675         * modules/strsignal (Include): Change to <string.h>.
57676
57677 2008-01-14  Colin Watson  <cjwatson@debian.org>
57678
57679         * modules/argp (Notice): Add a notice recommending to change
57680         XGETTEXT_OPTIONS.
57681         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57682
57683 2008-01-13  Colin Watson  <cjwatson@debian.org>
57684
57685         * modules/strsignal-tests: New file.
57686         * tests/test-strsignal.c: New file.
57687
57688         * lib/strsignal.c: New file, from glibc with modifications.
57689         * lib/siglist.h: New file, from glibc with modifications.
57690         * lib/string.in.h (strsignal): New declaration.
57691         * m4/strsignal.m4: New file.
57692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57693         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57694         * modules/strsignal: New file.
57695         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57696         HAVE_DECL_STRSIGNAL.
57697
57698 2008-01-13  Bruno Haible  <bruno@clisp.org>
57699
57700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57701         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57702         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57703         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57704
57705 2008-01-13  Bruno Haible  <bruno@clisp.org>
57706
57707         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57708         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57709         * lib/argp.h (__attribute__): Likewise.
57710         * lib/c-stack.c (__attribute__): Likewise.
57711         * lib/error.h (__attribute__): Likewise.
57712         * lib/fts.c (__attribute__): Likewise.
57713         * lib/openat.h (__attribute__): Likewise.
57714         * lib/stdio.in.h (__attribute__): Likewise.
57715         * lib/string.in.h (__attribute__): Likewise.
57716         * lib/utimens.c (__attribute__): Likewise.
57717         * lib/vasnprintf.h (__attribute__): Likewise.
57718         * lib/xalloc.h (__attribute__): Likewise.
57719         * lib/xprintf.h (__attribute__): Likewise.
57720         * lib/xstrtol.h (__attribute__): Likewise.
57721         * lib/xvasprintf.h (__attribute__): Likewise.
57722
57723 2008-01-12  Bruno Haible  <bruno@clisp.org>
57724
57725         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57726         * doc/glibc-headers/a.out.texi: New file.
57727         * doc/glibc-headers/aliases.texi: New file.
57728         * doc/glibc-headers/alloca.texi: New file.
57729         * doc/glibc-headers/ar.texi: New file.
57730         * doc/glibc-headers/argp.texi: New file.
57731         * doc/glibc-headers/argz.texi: New file.
57732         * doc/glibc-headers/byteswap.texi: New file.
57733         * doc/glibc-headers/crypt.texi: New file.
57734         * doc/glibc-headers/endian.texi: New file.
57735         * doc/glibc-headers/envz.texi: New file.
57736         * doc/glibc-headers/err.texi: New file.
57737         * doc/glibc-headers/error.texi: New file.
57738         * doc/glibc-headers/execinfo.texi: New file.
57739         * doc/glibc-headers/fpu_control.texi: New file.
57740         * doc/glibc-headers/fstab.texi: New file.
57741         * doc/glibc-headers/fts.texi: New file.
57742         * doc/glibc-headers/getopt.texi: New file.
57743         * doc/glibc-headers/ieee754.texi: New file.
57744         * doc/glibc-headers/ifaddrs.texi: New file.
57745         * doc/glibc-headers/libintl.texi: New file.
57746         * doc/glibc-headers/mcheck.texi: New file.
57747         * doc/glibc-headers/mntent.texi: New file.
57748         * doc/glibc-headers/obstack.texi: New file.
57749         * doc/glibc-headers/paths.texi: New file.
57750         * doc/glibc-headers/printf.texi: New file.
57751         * doc/glibc-headers/pty.texi: New file.
57752         * doc/glibc-headers/resolv.texi: New file.
57753         * doc/glibc-headers/shadow.texi: New file.
57754         * doc/glibc-headers/sysexits.texi: New file.
57755         * doc/glibc-headers/ttyent.texi: New file.
57756
57757 2008-01-12  Jim Meyering  <meyering@redhat.com>
57758
57759         announce-gen: emit Gnulib's git-based version string.
57760         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57761         New option --gnulib-version=V, where V is expected to be
57762         the output of running git describe in the gnulib directory.
57763         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57764         not useful, and plan to stop publishing an xdelta file with each
57765         coreutils release.
57766
57767         * build-aux/announce-gen: Also check for lzma-compressed files.
57768
57769 2008-01-11  Bruno Haible  <bruno@clisp.org>
57770
57771         * tests/test-memmem.c (main): Increase maximum allowed time.
57772         * tests/test-strstr.c (main): Likewise.
57773
57774 2008-01-11  Bruno Haible  <bruno@clisp.org>
57775
57776         * doc/functions/memmem.texi: Add more precisions about platforms.
57777         * doc/functions/strstr.texi: Likewise.
57778
57779 2008-01-10  Eric Blake  <ebb9@byu.net>
57780
57781         * m4/strstr.m4: Delete cruft from copy-n-paste.
57782         Reported by Bruno Haible.
57783
57784 2008-01-10  Bruno Haible  <bruno@clisp.org>
57785
57786         Make c-strstr rely on strstr.
57787         * lib/c-strstr.c: Don't include str-kmp.h.
57788         (c_strstr): Define in terms of strstr.
57789         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57790         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57791
57792 2008-01-10  Bruno Haible  <bruno@clisp.org>
57793
57794         * doc/gnulib.texi (String Functions in C Locale): New section.
57795         * doc/c-ctype.texi: New file.
57796         * doc/c-strcase.texi: New file.
57797         * doc/c-strcaseeq.texi: New file.
57798         * doc/c-strcasestr.texi: New file.
57799         * doc/c-strstr.texi: New file.
57800         * doc/c-strtod.texi: New file.
57801         * doc/c-strtold.texi: New file.
57802
57803 2008-01-10  Eric Blake  <ebb9@byu.net>
57804
57805         * lib/relocatable.h: Fix a comment.
57806
57807 2008-01-10  Eric Blake  <ebb9@byu.net>
57808
57809         Share two-way algorithm.
57810         * lib/str-two-way.h: New file, merged from...
57811         * lib/memmem.c: ...here...
57812         * lib/strstr.c: ...and here.
57813         * modules/memmem (Files): Use it.
57814         * modules/strstr (Files): Likewise.
57815
57816         Avoid quadratic strstr implementations.
57817         * lib/strstr.c: New file.
57818         * m4/strstr.m4: Likewise.
57819         * modules/strstr: Likewise.
57820         * modules/strstr-tests: Likewise.
57821         * tests/test-strstr.c: Likewise.
57822         * lib/string.in.h (rpl_strstr): Declare.
57823         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57825         * modules/string (Makefile.am): Likewise.
57826         * MODULES.html.sh (string handling): Mention new module.
57827         * doc/functions/strstr.texi (strstr): Document the bug.
57828
57829 2008-01-10  Bruno Haible  <bruno@clisp.org>
57830
57831         * lib/relocatable.h (relocate): State whether result is freshly
57832         allocated or not.
57833         * lib/relocatable.c (relocate): Return a freshly allocated string
57834         instead of a pointer to a privately held string.
57835         Reported by Sylvain Beucler <beuc@gnu.org>.
57836
57837 2008-01-10  Colin Watson  <cjwatson@debian.org>
57838
57839         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57840         s/S_ISNLK/S_ISLNK/.
57841
57842 2008-01-09  Bruno Haible  <bruno@clisp.org>
57843
57844         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57845         and other files.
57846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57847         if it's only a guess.
57848         * modules/memmem: Simplify by depending on memmem-simple.
57849
57850 2008-01-09  Bruno Haible  <bruno@clisp.org>
57851
57852         Work around OpenBSD 4.0 tdelete() bug.
57853         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57854         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57855         macros and don't redefine the enum values.
57856         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57857         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57858         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57859
57860 2008-01-09  Bruno Haible  <bruno@clisp.org>
57861
57862         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57863         (main): Don't perform the tests if setlocale did not install a UTF-8
57864         locale. Needed on OpenBSD 4.0.
57865         * modules/wcwidth-tests (Depends-on): Add localcharset.
57866
57867 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57868
57869         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57870         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57871         * NEWS: announce this.
57872         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57873
57874 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57875         and Eric Blake  <ebb9@byu.net>
57876
57877         Add memmem-simple module.
57878         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57879         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57880         * modules/memmem-simple: New file.
57881         * modules/memmem (Description): Tweak.
57882         * MODULES.html.sh (string handling): Mention new module.
57883         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57884         addressed by memmem-simple.
57885         * NEWS: Document the difference.
57886
57887 2008-01-09  Eric Blake  <ebb9@byu.net>
57888
57889         Give gcc some memmem optimization hints.
57890         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57891         (strcasestr): Declare as pure.
57892         * modules/memmem (Maintainer): Claim my implementation.
57893
57894 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57895
57896         Support AIX 6.1 and higher.
57897         * build-aux/config.libpath: Likewise.
57898         * build-aux/config.rpath: Likewise.
57899
57900 2008-01-08  Jim Meyering  <meyering@redhat.com>
57901             Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57904         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57905         Reported by Peter Fales in
57906         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57907
57908 2008-01-08  Bruno Haible  <bruno@clisp.org>
57909
57910         * modules/unictype/category-of (Depends-on): Add
57911         unictype/category-none.
57912         * modules/unictype/category-and-tests (Depends-on): Add
57913         unictype/category-{L,N,Lu,Nd}.
57914         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57915         * modules/unictype/category-or-tests (Depends-on): Add
57916         unictype/category-{L,N}.
57917         * modules/unictype/category-name-tests (Depends-on): Add
57918         unictype/category-{Z,Nl}.
57919         Reported by Simon Josefsson.
57920
57921 2008-01-08  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57924         convention better.
57925         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57926         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57927         Reported by Peter Miller <millerp@canb.auug.org.au>.
57928
57929 2008-01-08  Eric Blake  <ebb9@byu.net>
57930
57931         Rewrite memmem to guarantee linear complexity without malloc.
57932         * lib/memmem.c (memmem): Use Two-Way rather than
57933         Knuth-Morris-Pratt, to allow O(1) space usage.
57934         (critical_factorization, two_way_short_needle)
57935         (two_way_long_needle): New functions.
57936         (knuth_morris_pratt): Delete.
57937         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57938         Add stdint.
57939         * tests/test-memmem.c (main): Add tests for periodic needle and
57940         sublinear performance.
57941         * doc/functions/memmem.texi (memmem): Document other deficiencies
57942         in cygwin and older glibc.
57943
57944 2008-01-08  Bruno Haible  <bruno@clisp.org>
57945
57946         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57947         augmentation.
57948
57949 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57950
57951         Add a configure time option: --disable-acl.
57952         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57953         AC_ARG_ENABLE(acl).
57954
57955 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57956
57957         * tests/test-localename.c: Don't include obsolete "setenv.h".
57958
57959         * modules/localename-tests (Depends-on): Need unsetenv.
57960
57961 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57962
57963         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57964
57965 2008-01-06  Colin Watson  <cjwatson@debian.org>
57966
57967         * users.txt: Add man-db.
57968
57969 2008-01-07  Bruno Haible  <bruno@clisp.org>
57970
57971         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57972         previous section name.
57973
57974 2008-01-07  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/progname.c (set_program_name): Don't strip off a leading
57977         "lt-" prefix outside a .libs directory.
57978         Suggested by Paul Eggert.
57979
57980 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57981             Bruno Haible  <bruno@clisp.org>
57982
57983         Improve memory cleanup in 'relocatable' module.
57984         * lib/relocatable.h (compute_curr_prefix): Change return type to
57985         'char *'.
57986         * lib/relocatable.c (compute_curr_prefix): Change return type to
57987         'char *'. Free curr_installdir after use.
57988         (relocate): Free curr_prefix_better after use.
57989         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57990
57991 2008-01-01  Bruno Haible  <bruno@clisp.org>
57992
57993         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57994         failure on older glibc systems.
57995         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57996
57997 2008-01-05  Eric Blake  <ebb9@byu.net>
57998
57999         Avoid quadratic system memmem.
58000         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58001         Reported by Ralf Wildenhues.
58002
58003         Fix memmem test for mingw.
58004         * modules/memmem-tests (configure.ac): Check for alarm.
58005         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58006         it.
58007         * doc/functions/memmem.texi: New file.
58008         * doc/gnulib.texi (Function Substitutes): Add memmem.
58009         Reported by Bruno Haible.
58010
58011 2008-01-04  Bruno Haible  <bruno@clisp.org>
58012
58013         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58014         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58015         gl_HEADER_STRING_H_DEFAULTS.
58016
58017 2008-01-04  Eric Blake  <ebb9@byu.net>
58018
58019         Shorten duration of memmem test.
58020         * tests/test-memmem.c (main): Use alarm to declare failure if test
58021         is taking too long.
58022         Reported by Ralf Wildenhues.
58023
58024 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58025
58026         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58027         string, needed by strerror.
58028
58029 2008-01-03  Colin Watson  <cjwatson@debian.org>
58030             Bruno Haible  <bruno@clisp.org>
58031
58032         * doc/gnulib-tool.texi (Localization): New section.
58033
58034 2008-01-02  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58037         variables to 'unsigned char *' type.
58038         Reported by Paul Eggert.
58039
58040 2008-01-02  Jim Meyering  <jim@meyering.net>
58041
58042         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58043
58044 2007-12-31  Jim Meyering  <jim@meyering.net>
58045
58046         Avoid use of private FTS type name.
58047         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58048
58049 2007-12-30  Karl Berry  <karl@gnu.org>
58050
58051         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58052         work around defect in Texinfo and/or the standalone Info browser.
58053
58054 2007-12-30  Bruno Haible  <bruno@clisp.org>
58055
58056         Unify 5 copies of the KMP code.
58057         * lib/str-kmp.h: New file.
58058         * lib/c-strcasestr.c: Include str-kmp.h.
58059         (knuth_morris_pratt): Remove function.
58060         (c_strcasestr): Update.
58061         * lib/c-strstr.c: Include str-kmp.h.
58062         (knuth_morris_pratt): Remove function.
58063         (c_strcasestr): Update.
58064         * lib/mbscasestr.c: Include str-kmp.h.
58065         (knuth_morris_pratt_unibyte): Remove function.
58066         * lib/mbsstr.c: Include str-kmp.h.
58067         (knuth_morris_pratt_unibyte): Remove function.
58068         * lib/strcasestr.c: Include str-kmp.h.
58069         (knuth_morris_pratt): Remove function.
58070         (strcasestr): Update.
58071         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58072         * modules/c-strstr (Files): Likewise.
58073         * modules/mbscasestr (Files): Likewise.
58074         * modules/mbsstr (Files): Likewise.
58075         * modules/strcasestr (Files): Likewise.
58076         Suggested by Paul Eggert.
58077
58078 2007-12-30  Bruno Haible  <bruno@clisp.org>
58079
58080         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58081         defined.
58082
58083 2007-12-30  Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/xmalloca.h: Include xalloc.h.
58086         (xnmalloca): New macro.
58087
58088 2007-12-30  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/malloca.h (nmalloca): New macro.
58091         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58092         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58093         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58094         knuth_morris_pratt_multibyte): Likewise.
58095         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58096         knuth_morris_pratt_multibyte): Likewise.
58097         * lib/memmem.c (knuth_morris_pratt): Likewise.
58098         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58099
58100 2007-12-25  Bruno Haible  <bruno@clisp.org>
58101
58102         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58103         * lib/glob.c: Don't include openat.h.
58104         (link_exists2_p): Add back the code that deals with the
58105         !GLOB_ALTDIRFUNC case.
58106         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58107         let it do the filename concatenation.
58108         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58109         * modules/glob (Depends-on): Remove openat.
58110
58111 2007-12-31  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/dirfd (License): Change to LGPLv2+.
58114         Approved by Jim Meyering.
58115
58116 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58119         when multiplying M by sizeof (size_t).
58120
58121 2007-12-10  Martin Lambers  <marlam@marlam.de>
58122
58123         Override getpagesize on mingw.
58124         * lib/getpagesize.c: New file.
58125         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58126         * modules/getpagesize (Files): Add lib/getpagesize.c.
58127         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58129         REPLACE_GETPAGESIZE.
58130         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58131
58132 2007-12-25  Bruno Haible  <bruno@clisp.org>
58133
58134         * modules/localcharset (Notice): New field.
58135         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58136         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58137
58138 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58139             Bruno Haible  <bruno@clisp.org>
58140
58141         Avoid using the syntax symbol() in formatted documentation.
58142         * MODULES.html.sh (func_module): When replacing symbol() with a
58143         hyperlink, remove the parentheses. Show an error if some remain.
58144         Recognize and render the '...' syntax.
58145         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58146         Rework. Add paragraph about GCC's inlining.
58147         * doc/alloca.texi: Likewise.
58148         * doc/error.texi: Remove parentheses from symbol reference.
58149         * doc/gnulib-intro.texi: Likewise.
58150         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58151         * modules/fnmatch (Description): Reword to say "the ... function".
58152         * modules/full-read (Description): Likewise.
58153         * modules/full-write (Description): Likewise.
58154         * modules/safe-read (Description): Likewise.
58155         * modules/safe-write (Description): Likewise.
58156         * modules/strchrnul (Description): Likewise.
58157         * modules/trim (Description): Likewise.
58158         * modules/error (Description): Remove parentheses from symbol
58159         references.
58160         * modules/verror (Description): Likewise.
58161         Reported by Karl Berry.
58162
58163 2007-12-25  Bruno Haible  <bruno@clisp.org>
58164
58165         Fixup after 2007-10-16 commit.
58166         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58167
58168 2007-12-24  Bruno Haible  <bruno@clisp.org>
58169
58170         Make --enable-relocatable work with DESTDIR.
58171         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58172         to compute installdir from destprog.
58173         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58174         also set the RELOC_DESTDIR variable.
58175         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58176
58177 2007-12-24  Bruno Haible  <bruno@clisp.org>
58178
58179         Fix link error due to xalloc_die().
58180         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58181         of xreadlink.
58182         * lib/relocwrapper.c: Update comments.
58183         * build-aux/install-reloc: Remove xreadlink.c from file list.
58184         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58185         xreadlink.c.
58186         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58187
58188 2007-12-24  Bruno Haible  <bruno@clisp.org>
58189
58190         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58191         * lib/setenv.h: Remove file.
58192         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58193         lib/setenv.h.
58194         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58195         (Depends-on): Add stdlib.
58196         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58197         gl_FUNC_UNSETENV.
58198         (Include): Replace setenv.h with <stdlib.h>.
58199         * modules/unsetenv: New file.
58200         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58201         * lib/unsetenv.c: Include <stdlib.h> first.
58202         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58203         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58204         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58205         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58206         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58207         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58209         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58210         * doc/functions/unsetenv.texi: Update.
58211         * modules/xsetenv (Depends-on): Add unsetenv.
58212         * modules/getdate (Depends-on): Likewise.
58213         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58214         * lib/xsetenv.c: Don't include setenv.h.
58215         * lib/getdate.y: Likewise.
58216         * lib/relocwrapper.c: Likewise.
58217         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58218         (Depends-on): Add stdlib.
58219         * NEWS: Mention the changes.
58220         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58221
58222 2007-12-23  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58225         indentation.
58226
58227 2007-12-23  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/c-strcasestr.c: Add more comments.
58230         * lib/c-strstr.c: Likewise.
58231         * lib/mbscasestr.c: Likewise.
58232         * lib/mbsstr.c: Likewise.
58233         * lib/strcasestr.c: Likewise.
58234         * lib/memmem.c: Likewise.
58235
58236 2007-12-23  Bruno Haible  <bruno@clisp.org>
58237
58238         * tests/test-memmem.c: Include <string.h> first.
58239
58240 2007-12-22  Bruno Haible  <bruno@clisp.org>
58241
58242         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58243         the contents of $testsbase.
58244         Reported by Ralf Wildenhues.
58245
58246 2007-12-22  Bruno Haible  <bruno@clisp.org>
58247
58248         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58249         two variables local_ldadd_before, local_ldadd_last.
58250
58251 2007-12-20  Eric Blake  <ebb9@byu.net>
58252
58253         Work around circular library issue when cross-compiling.
58254         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58255         that progname.o does not need to pull in rpl_memcmp.
58256
58257 2007-12-19  Eric Blake  <ebb9@byu.net>
58258
58259         Fix memmem to avoid O(n^2) worst-case complexity.
58260         * lib/memmem.c (knuth_morris_pratt): New function.
58261         (memmem): Use it if first few naive iterations fail.
58262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58263         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58264         * modules/memchr (License): Likewise.
58265         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58266         malloca.
58267         * tests/test-memmem.c: Rewrite, borrowing ideas from
58268         test-mbsstr1.c; the old version wouldn't even compile!
58269         * modules/memmem-tests: New file.
58270         * lib/string.in.h (rpl_memmem): Add declaration.
58271         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58273         REPLACE_MEMMEM.
58274
58275 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58276
58277         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58278         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58279         before any system include files, and undef after them all.  This
58280         should fix a problem on VMS reported by John E. Malmberg in
58281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58282
58283 2007-12-17  Eric Blake  <ebb9@byu.net>
58284
58285         Revert addition of verify, for BSD/OS.
58286         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58287         can't handle large files, for the sake of obsolete platforms.
58288         * modules/fseeko (Depends-on): Remove verify.
58289         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58290         * doc/functions/ftello.texi (ftello): Likewise.
58291         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58292         Reported by Larry Jones.
58293
58294 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58295
58296         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58297         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58298
58299 2007-12-17  Jim Meyering  <meyering@redhat.com>
58300
58301         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58302         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58303         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58304         * modules/getcwd (Depends-on): Add openat.
58305         Reported by Petr Salinger.
58306
58307 2007-12-17  Bruno Haible  <bruno@clisp.org>
58308
58309         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58310         avoid a segmentation fault of the configure test on x86_64 systems.
58311
58312 2007-12-15  Jim Meyering  <meyering@redhat.com>
58313
58314         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58315
58316 2007-12-13  Eric Blake  <ebb9@byu.net>
58317
58318         Another fseek test.
58319         * tests/test-fseek.c (main): Also test ungetc handling.
58320         * tests/test-fseeko.c (main): Likewise.
58321         * modules/fseeko (Depends-on): Add verify.
58322         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58323         large.
58324         Reported by Larry Jones.
58325
58326         Fix fseeko on mingw.
58327         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58328         seek.
58329
58330         Beef up fseek tests.
58331         * tests/test-fseek.c (main): Also test eof handling.
58332         * tests/test-fseeko.c (main): Likewise.
58333         Reported by Larry Jones.
58334
58335 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58336
58337         Fix fseeko on BSD-based platforms.
58338         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58339         successful seek.
58340
58341 2007-12-12  Eric Blake  <ebb9@byu.net>
58342
58343         Allow circular dependency of separate libtests.a
58344         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58345         when use_libtests.
58346
58347 2007-12-11  Eric Blake  <ebb9@byu.net>
58348
58349         Fix bug with -0.0L in previous patch.
58350         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58351         * tests/test-isnan.c (main): Also test on zeroes.
58352         * tests/test-isnanf.c (main): Likewise.
58353         * tests/test-isnanl.h (main): Likewise.
58354
58355         Detect pseudo-denormals on x86 even when cross-compiling.
58356         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58357         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58358         invalid bit patterns that happen to satisfy ==.
58359
58360         Avoid link failures with separate libtests.a.
58361         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58362         last, to satisfy circular dependencies.
58363
58364 2007-12-11  Eric Blake  <ebb9@byu.net>
58365         and Bruno Haible  <bruno@clisp.org>
58366
58367         Fix OpenBSD 4.0 <float.h> handling of long double.
58368         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58369         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58370         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58371
58372 2007-12-11  Jim Meyering  <meyering@redhat.com>
58373
58374         * users.txt: Add libvirt.
58375
58376         Support versions of autoconf prior to 2.59c.
58377         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58378         if it is not already defined.
58379
58380 2007-12-09  Bruno Haible  <bruno@clisp.org>
58381
58382         Let 'gnulib-tool --import' collect sources needed for the tests in
58383         tests/ rather than in lib/.
58384         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58385         argument. If true, add rules to generate libtests.a, and put libtests.a
58386         into $(LDADD). Consider source files in subdirectories and set
58387         uses_subdirs.
58388         (func_emit_initmacro_start, func_emit_initmacro_end,
58389         func_emit_initmacro_done): Pass all arguments explicitly.
58390         (func_import): Determine two module lists main_modules,
58391         testsrelated_modules. Determine use_libtests. Determine two variables
58392         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58393         instead of just sed_transform_lib_file. Determine two variables
58394         main_files and testsrelated_files. Compute 'files' as the union of
58395         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58396         func_add_or_update. In the generated gnulib-comp.m4, collect the
58397         object files for tests/ in different variables than those for lib/.
58398         Substitute LIBTESTS_LIBDEPS.
58399         (func_create_testdir): Combine the uses_subdirs results from
58400         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58401
58402 2007-12-09  Bruno Haible  <bruno@clisp.org>
58403
58404         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58405         the build-aux directory.
58406
58407 2007-12-09  Bruno Haible  <bruno@clisp.org>
58408
58409         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58410         introduced on 2006-09-09.
58411
58412 2007-12-07  Jim Meyering  <meyering@redhat.com>
58413
58414         Let these macros work also with autoconf-2.59.
58415         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58416         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58417         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58418
58419 2007-12-06  Jim Meyering  <meyering@redhat.com>
58420
58421         Avoid a configure-time syntax error in gl_FUNC_ACL.
58422         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58423         function in each branch, before testing the cache variable.
58424
58425 2007-12-04  Eric Blake  <ebb9@byu.net>
58426
58427         Make scripts executable.
58428         * build-aux/config.guess: Add execute permissions.
58429         * build-aux/config.sub: Likewise.
58430         * build-aux/gendocs.sh: Likewise.
58431
58432         Fix frexp on mingw.
58433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58434         cross-compiling.
58435         * doc/functions/frexp.texi (frexp): Document the bug.
58436
58437         Make cygwin fseeko check more reliable.
58438         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58439         version numbers, rather than unrelated feature check.
58440         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58441         * doc/functions/ftello.texi (ftello): Likewise.
58442         Reported by Bruno Haible.
58443
58444         * m4/strerror.m4: Bump version number.
58445
58446 2007-12-03  Bruno Haible  <bruno@clisp.org>
58447
58448         * doc/functions/mprotect.texi: Mention the mingw problem.
58449
58450 2007-12-03  Eric Blake  <ebb9@byu.net>
58451
58452         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58453         REPLACE_STRERROR is initialized before this macro.
58454
58455 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58458         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58459         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58460         put -lsec in even for programs other than 'ls'.  This fixes a problem
58461         for gettext reported by Bruno Haible in
58462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58463         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58464         Add support for Solaris 10.  This isn't efficient, but should get the
58465         job done for now.
58466
58467 2007-12-03  James Youngman  <jay@gnu.org>
58468
58469         * doc/regexprops-generic.texi: change "an close-group" to "a
58470         close-group" and "illegal" to "not allowed".
58471
58472 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58473
58474         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58475         pr_byname.h. Needed for the rare case when the maintainer has done
58476         "make maintainer-clean" in the source directory and then attempts a
58477         build outside the source directory.
58478         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58479         scripts_byname.h.
58480
58481 2007-12-02  Martin Lambers <marlam@marlam.de>
58482             Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/getpagesize.h: Remove file.
58485         * lib/unistd.in.h: Include declaration of getpagesize here.
58486         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58487         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58488         HAVE_SYS_PARAM_H.
58489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58490         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58491         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58492         (Depends-on): Add unistd.
58493         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58494         (Include): Use <unistd.h> instead of getpagesize.h.
58495         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58496         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58497         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58498         gl_GETPAGESIZE invocation, already handled by module dependency.
58499         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58500
58501 2007-12-02  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/strings-tests: New file.
58504         * tests/test-strings.c: New file.
58505
58506         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58507         * lib/strings.in.h: New file.
58508         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58509         * m4/strings_h.m4: New file.
58510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58511         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58512         * modules/strings: New file.
58513         * modules/string (Makefile.am): Update.
58514         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58515         Reported by Karl Berry.
58516
58517 2007-12-01  Eric Blake  <ebb9@byu.net>
58518
58519         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58520         accomodate fix in cygwin 1.5.25.
58521
58522 2007-12-01  Jim Meyering  <meyering@redhat.com>
58523
58524         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58525         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58526         that would inhibit utf8-optimization of a regexp containing line-
58527         or buffer-anchors, e.g., `^', `$'.
58528
58529 2007-11-30  Bruno Haible  <bruno@clisp.org>
58530
58531         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58532         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58533         glthread_recursive_lock_init.
58534         * lib/lock.c (glthread_recursive_lock_init)
58535         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58536         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58537
58538 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58539
58540         New function qset_acl, like set_acl but with syscall semantics.
58541         * lib/acl.h (qset_acl): New decl.
58542         * lib/acl.c (qset_acl): New function.
58543         (set_acl): Use new function.  Use more-consistent diagnostics.
58544
58545 2007-11-28  Jim Meyering  <meyering@redhat.com>
58546
58547         * modules/physmem (License): Change from GPL to LGPLv2+.
58548
58549 2007-11-26  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58552         'long double' type has excess precision.
58553         Reported by Jim Meyering in
58554         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58555
58556 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58557
58558         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58559         Sync from <http://gnu.org/licenses>.
58560         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58561         with license text from same location.
58562         * doc/maintain.texi, doc/standards.texi:  Sync from
58563         <http://savannah.gnu.org/projects/gnustandards>.
58564
58565 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58566         and Jim Meyering  <meyering@redhat.com>
58567
58568         Adjust getdate' grammar to accept a slightly more regular language.
58569         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58570         Before, the former was rejected.
58571         * lib/getdate.y (digits_to_date_time): New function, factored
58572         out of ...
58573         (number): ...here.  Just call digits_to_date_time.
58574         (hybrid): New non-terminal to handle an <unsigned number,
58575         signed relative offset> sequence consistently.
58576
58577 2007-11-18  Jim Meyering  <meyering@redhat.com>
58578
58579         Pull my changes from coreutils:
58580         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58581         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58582         use of $gnulib_tool_option_extras, so that it's separated from the
58583         preceding argument.
58584
58585         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58586         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58587         parent destination directories before copying a file into place.
58588
58589 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58590
58591         bootstrap: work also with 4-argument variant of AC_INIT
58592         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58593
58594 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         Port test-getaddrinfo to Solaris.
58597         Problem reported by Bruno Haible in
58598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58599         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58600         explanation of setting 'hints'.
58601         Don't reject an implementation merely because it returns EAI_SERVICE.
58602         (EAI_SERVICE): Define to 0 if not defined.
58603
58604 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58605
58606         The license of gnu-make and posix-shell is now "GPLed build tool".
58607         * modules/gnu-make (License): Likewise.
58608         * modules/posix-shell (License): Likewise.
58609
58610         New module posix-shell, for determining a POSIX shell
58611         or perhaps something that is close enough to a POSIX shell.
58612         * m4/posix-shell.m4: New file.
58613         * modules/posix-shell: New file.
58614
58615         * MODULES.html.sh: Mention new module.
58616
58617         New module gnu-make, for determining whether we're using GNU Make.
58618         * m4/gnu-make.m4: New file.
58619         * modules/gnu-make: New file.
58620         * MODULES.html.sh: Mention new module.
58621
58622 2007-11-14  Jim Meyering  <meyering@redhat.com>
58623
58624         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58625         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58626         use this macro to create a function _definition_.
58627         Remove useless "#undef ARGMATCH_DIE".
58628
58629 2007-11-14  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/config.charset: Update for OpenBSD 4.1.
58632         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58633
58634 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         Document 64-bit #if problems in stdint.texi.
58637         * doc/headers/stdint.texi (stdint.h): Mention problems with
58638         64-bit-#if, and how to work around them.
58639
58640         Don't insist on 'long long int' support in the preprocessor.  It
58641         breaks too many things.  For example, PRIdMAX still uses a 'long
58642         long int' format with the latest Sun compiler, even though
58643         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58644         preprocessor problem.  This causes the latest coreutils to dump
58645         core on Solaris 10 sparc with the Sun C compiler.
58646         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58647         the troublesome expressions at configure-time, not at #if-time.
58648         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58649         preprocessor.
58650         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58651         compile-time C checks, done at 'configure'-time.
58652         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58653         * modules/inttypes (Makefile): Substitute the new symbols that
58654         gl_INTTYPES_H now generates.
58655         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58656
58657 2007-11-12  Bruno Haible  <bruno@clisp.org>
58658
58659         Tests for Unicode character classification functions.
58660
58661         * modules/unictype/bidicategory-byname-tests: New file.
58662         * modules/unictype/bidicategory-name-tests: New file.
58663         * modules/unictype/bidicategory-of-tests: New file.
58664         * modules/unictype/bidicategory-test-tests: New file.
58665         * modules/unictype/block-list-tests: New file.
58666         * modules/unictype/block-of-tests: New file.
58667         * modules/unictype/block-test-tests: New file.
58668         * modules/unictype/category-C-tests: New file.
58669         * modules/unictype/category-Cc-tests: New file.
58670         * modules/unictype/category-Cf-tests: New file.
58671         * modules/unictype/category-Cn-tests: New file.
58672         * modules/unictype/category-Co-tests: New file.
58673         * modules/unictype/category-Cs-tests: New file.
58674         * modules/unictype/category-L-tests: New file.
58675         * modules/unictype/category-Ll-tests: New file.
58676         * modules/unictype/category-Lm-tests: New file.
58677         * modules/unictype/category-Lo-tests: New file.
58678         * modules/unictype/category-Lt-tests: New file.
58679         * modules/unictype/category-Lu-tests: New file.
58680         * modules/unictype/category-M-tests: New file.
58681         * modules/unictype/category-Mc-tests: New file.
58682         * modules/unictype/category-Me-tests: New file.
58683         * modules/unictype/category-Mn-tests: New file.
58684         * modules/unictype/category-N-tests: New file.
58685         * modules/unictype/category-Nd-tests: New file.
58686         * modules/unictype/category-Nl-tests: New file.
58687         * modules/unictype/category-No-tests: New file.
58688         * modules/unictype/category-P-tests: New file.
58689         * modules/unictype/category-Pc-tests: New file.
58690         * modules/unictype/category-Pd-tests: New file.
58691         * modules/unictype/category-Pe-tests: New file.
58692         * modules/unictype/category-Pf-tests: New file.
58693         * modules/unictype/category-Pi-tests: New file.
58694         * modules/unictype/category-Po-tests: New file.
58695         * modules/unictype/category-Ps-tests: New file.
58696         * modules/unictype/category-S-tests: New file.
58697         * modules/unictype/category-Sc-tests: New file.
58698         * modules/unictype/category-Sk-tests: New file.
58699         * modules/unictype/category-Sm-tests: New file.
58700         * modules/unictype/category-So-tests: New file.
58701         * modules/unictype/category-Z-tests: New file.
58702         * modules/unictype/category-Zl-tests: New file.
58703         * modules/unictype/category-Zp-tests: New file.
58704         * modules/unictype/category-Zs-tests: New file.
58705         * modules/unictype/category-and-not-tests: New file.
58706         * modules/unictype/category-and-tests: New file.
58707         * modules/unictype/category-byname-tests: New file.
58708         * modules/unictype/category-name-tests: New file.
58709         * modules/unictype/category-none-tests: New file.
58710         * modules/unictype/category-of-tests: New file.
58711         * modules/unictype/category-or-tests: New file.
58712         * modules/unictype/category-test-withtable-tests: New file.
58713         * modules/unictype/combining-class-tests: New file.
58714         * modules/unictype/ctype-alnum-tests: New file.
58715         * modules/unictype/ctype-alpha-tests: New file.
58716         * modules/unictype/ctype-blank-tests: New file.
58717         * modules/unictype/ctype-cntrl-tests: New file.
58718         * modules/unictype/ctype-digit-tests: New file.
58719         * modules/unictype/ctype-graph-tests: New file.
58720         * modules/unictype/ctype-lower-tests: New file.
58721         * modules/unictype/ctype-print-tests: New file.
58722         * modules/unictype/ctype-punct-tests: New file.
58723         * modules/unictype/ctype-space-tests: New file.
58724         * modules/unictype/ctype-upper-tests: New file.
58725         * modules/unictype/ctype-xdigit-tests: New file.
58726         * modules/unictype/decimal-digit-tests: New file.
58727         * modules/unictype/digit-tests: New file.
58728         * modules/unictype/mirror-tests: New file.
58729         * modules/unictype/numeric-tests: New file.
58730         * modules/unictype/property-alphabetic-tests: New file.
58731         * modules/unictype/property-ascii-hex-digit-tests: New file.
58732         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58733         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58734         * modules/unictype/property-bidi-block-separator-tests: New file.
58735         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58736         * modules/unictype/property-bidi-common-separator-tests: New file.
58737         * modules/unictype/property-bidi-control-tests: New file.
58738         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58739         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58740         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58741         * modules/unictype/property-bidi-european-digit-tests: New file.
58742         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58743         * modules/unictype/property-bidi-left-to-right-tests: New file.
58744         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58745         * modules/unictype/property-bidi-other-neutral-tests: New file.
58746         * modules/unictype/property-bidi-pdf-tests: New file.
58747         * modules/unictype/property-bidi-segment-separator-tests: New file.
58748         * modules/unictype/property-bidi-whitespace-tests: New file.
58749         * modules/unictype/property-byname-tests: New file.
58750         * modules/unictype/property-combining-tests: New file.
58751         * modules/unictype/property-composite-tests: New file.
58752         * modules/unictype/property-currency-symbol-tests: New file.
58753         * modules/unictype/property-dash-tests: New file.
58754         * modules/unictype/property-decimal-digit-tests: New file.
58755         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58756         * modules/unictype/property-deprecated-tests: New file.
58757         * modules/unictype/property-diacritic-tests: New file.
58758         * modules/unictype/property-extender-tests: New file.
58759         * modules/unictype/property-format-control-tests: New file.
58760         * modules/unictype/property-grapheme-base-tests: New file.
58761         * modules/unictype/property-grapheme-extend-tests: New file.
58762         * modules/unictype/property-grapheme-link-tests: New file.
58763         * modules/unictype/property-hex-digit-tests: New file.
58764         * modules/unictype/property-hyphen-tests: New file.
58765         * modules/unictype/property-id-continue-tests: New file.
58766         * modules/unictype/property-id-start-tests: New file.
58767         * modules/unictype/property-ideographic-tests: New file.
58768         * modules/unictype/property-ids-binary-operator-tests: New file.
58769         * modules/unictype/property-ids-trinary-operator-tests: New file.
58770         * modules/unictype/property-ignorable-control-tests: New file.
58771         * modules/unictype/property-iso-control-tests: New file.
58772         * modules/unictype/property-join-control-tests: New file.
58773         * modules/unictype/property-left-of-pair-tests: New file.
58774         * modules/unictype/property-line-separator-tests: New file.
58775         * modules/unictype/property-logical-order-exception-tests: New file.
58776         * modules/unictype/property-lowercase-tests: New file.
58777         * modules/unictype/property-math-tests: New file.
58778         * modules/unictype/property-non-break-tests: New file.
58779         * modules/unictype/property-not-a-character-tests: New file.
58780         * modules/unictype/property-numeric-tests: New file.
58781         * modules/unictype/property-other-alphabetic-tests: New file.
58782         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58783         * modules/unictype/property-other-grapheme-extend-tests: New file.
58784         * modules/unictype/property-other-id-continue-tests: New file.
58785         * modules/unictype/property-other-id-start-tests: New file.
58786         * modules/unictype/property-other-lowercase-tests: New file.
58787         * modules/unictype/property-other-math-tests: New file.
58788         * modules/unictype/property-other-uppercase-tests: New file.
58789         * modules/unictype/property-paired-punctuation-tests: New file.
58790         * modules/unictype/property-paragraph-separator-tests: New file.
58791         * modules/unictype/property-pattern-syntax-tests: New file.
58792         * modules/unictype/property-pattern-white-space-tests: New file.
58793         * modules/unictype/property-private-use-tests: New file.
58794         * modules/unictype/property-punctuation-tests: New file.
58795         * modules/unictype/property-quotation-mark-tests: New file.
58796         * modules/unictype/property-radical-tests: New file.
58797         * modules/unictype/property-sentence-terminal-tests: New file.
58798         * modules/unictype/property-soft-dotted-tests: New file.
58799         * modules/unictype/property-space-tests: New file.
58800         * modules/unictype/property-terminal-punctuation-tests: New file.
58801         * modules/unictype/property-test-tests: New file.
58802         * modules/unictype/property-titlecase-tests: New file.
58803         * modules/unictype/property-unassigned-code-value-tests: New file.
58804         * modules/unictype/property-unified-ideograph-tests: New file.
58805         * modules/unictype/property-uppercase-tests: New file.
58806         * modules/unictype/property-variation-selector-tests: New file.
58807         * modules/unictype/property-white-space-tests: New file.
58808         * modules/unictype/property-xid-continue-tests: New file.
58809         * modules/unictype/property-xid-start-tests: New file.
58810         * modules/unictype/property-zero-width-tests: New file.
58811         * modules/unictype/scripts-tests: New file.
58812         * modules/unictype/syntax-c-ident-tests: New file.
58813         * modules/unictype/syntax-c-whitespace-tests: New file.
58814         * modules/unictype/syntax-java-ident-tests: New file.
58815         * modules/unictype/syntax-java-whitespace-tests: New file.
58816         * tests/unictype/test-bidi_byname.c: New file.
58817         * tests/unictype/test-bidi_name.c: New file.
58818         * tests/unictype/test-bidi_of.c: New file.
58819         * tests/unictype/test-bidi_test.c: New file.
58820         * tests/unictype/test-block_list.c: New file.
58821         * tests/unictype/test-block_of.c: New file.
58822         * tests/unictype/test-block_test.c: New file.
58823         * tests/unictype/test-categ_and.c: New file.
58824         * tests/unictype/test-categ_and_not.c: New file.
58825         * tests/unictype/test-categ_byname.c: New file.
58826         * tests/unictype/test-categ_name.c: New file.
58827         * tests/unictype/test-categ_none.c: New file.
58828         * tests/unictype/test-categ_of.c: New file.
58829         * tests/unictype/test-categ_or.c: New file.
58830         * tests/unictype/test-categ_test_withtable.c: New file.
58831         * tests/unictype/test-combining.c: New file.
58832         * tests/unictype/test-decdigit.c: New file.
58833         * tests/unictype/test-digit.c: New file.
58834         * tests/unictype/test-mirror.c: New file.
58835         * tests/unictype/test-numeric.c: New file.
58836         * tests/unictype/test-pr_byname.c: New file.
58837         * tests/unictype/test-pr_test.c: New file.
58838         * tests/unictype/test-predicate-part1.h: New file.
58839         * tests/unictype/test-predicate-part2.h: New file.
58840         * tests/unictype/test-scripts.c: New file.
58841         * tests/unictype/test-sy_c_ident.c: New file.
58842         * tests/unictype/test-sy_java_ident.c: New file.
58843
58844         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58845         for Unicode 5.0.0.
58846         * tests/unictype/test-categ_Cc.c: Likewise.
58847         * tests/unictype/test-categ_Cf.c: Likewise.
58848         * tests/unictype/test-categ_Cn.c: Likewise.
58849         * tests/unictype/test-categ_Co.c: Likewise.
58850         * tests/unictype/test-categ_Cs.c: Likewise.
58851         * tests/unictype/test-categ_L.c: Likewise.
58852         * tests/unictype/test-categ_Ll.c: Likewise.
58853         * tests/unictype/test-categ_Lm.c: Likewise.
58854         * tests/unictype/test-categ_Lo.c: Likewise.
58855         * tests/unictype/test-categ_Lt.c: Likewise.
58856         * tests/unictype/test-categ_Lu.c: Likewise.
58857         * tests/unictype/test-categ_M.c: Likewise.
58858         * tests/unictype/test-categ_Mc.c: Likewise.
58859         * tests/unictype/test-categ_Me.c: Likewise.
58860         * tests/unictype/test-categ_Mn.c: Likewise.
58861         * tests/unictype/test-categ_N.c: Likewise.
58862         * tests/unictype/test-categ_Nd.c: Likewise.
58863         * tests/unictype/test-categ_Nl.c: Likewise.
58864         * tests/unictype/test-categ_No.c: Likewise.
58865         * tests/unictype/test-categ_P.c: Likewise.
58866         * tests/unictype/test-categ_Pc.c: Likewise.
58867         * tests/unictype/test-categ_Pd.c: Likewise.
58868         * tests/unictype/test-categ_Pe.c: Likewise.
58869         * tests/unictype/test-categ_Pf.c: Likewise.
58870         * tests/unictype/test-categ_Pi.c: Likewise.
58871         * tests/unictype/test-categ_Po.c: Likewise.
58872         * tests/unictype/test-categ_Ps.c: Likewise.
58873         * tests/unictype/test-categ_S.c: Likewise.
58874         * tests/unictype/test-categ_Sc.c: Likewise.
58875         * tests/unictype/test-categ_Sk.c: Likewise.
58876         * tests/unictype/test-categ_Sm.c: Likewise.
58877         * tests/unictype/test-categ_So.c: Likewise.
58878         * tests/unictype/test-categ_Z.c: Likewise.
58879         * tests/unictype/test-categ_Zl.c: Likewise.
58880         * tests/unictype/test-categ_Zp.c: Likewise.
58881         * tests/unictype/test-categ_Zs.c: Likewise.
58882         * tests/unictype/test-ctype_alnum.c: Likewise.
58883         * tests/unictype/test-ctype_alpha.c: Likewise.
58884         * tests/unictype/test-ctype_blank.c: Likewise.
58885         * tests/unictype/test-ctype_cntrl.c: Likewise.
58886         * tests/unictype/test-ctype_digit.c: Likewise.
58887         * tests/unictype/test-ctype_graph.c: Likewise.
58888         * tests/unictype/test-ctype_lower.c: Likewise.
58889         * tests/unictype/test-ctype_print.c: Likewise.
58890         * tests/unictype/test-ctype_punct.c: Likewise.
58891         * tests/unictype/test-ctype_space.c: Likewise.
58892         * tests/unictype/test-ctype_upper.c: Likewise.
58893         * tests/unictype/test-ctype_xdigit.c: Likewise.
58894         * tests/unictype/test-decdigit.h: Likewise.
58895         * tests/unictype/test-digit.h: Likewise.
58896         * tests/unictype/test-numeric.h: Likewise.
58897         * tests/unictype/test-pr_alphabetic.c: Likewise.
58898         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58899         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58900         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58901         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58902         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58903         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58904         * tests/unictype/test-pr_bidi_control.c: Likewise.
58905         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58906         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58907         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58908         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58909         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58910         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58911         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58912         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58913         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58914         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58915         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58916         * tests/unictype/test-pr_combining.c: Likewise.
58917         * tests/unictype/test-pr_composite.c: Likewise.
58918         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58919         * tests/unictype/test-pr_dash.c: Likewise.
58920         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58921         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58922         * tests/unictype/test-pr_deprecated.c: Likewise.
58923         * tests/unictype/test-pr_diacritic.c: Likewise.
58924         * tests/unictype/test-pr_extender.c: Likewise.
58925         * tests/unictype/test-pr_format_control.c: Likewise.
58926         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58927         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58928         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58929         * tests/unictype/test-pr_hex_digit.c: Likewise.
58930         * tests/unictype/test-pr_hyphen.c: Likewise.
58931         * tests/unictype/test-pr_id_continue.c: Likewise.
58932         * tests/unictype/test-pr_id_start.c: Likewise.
58933         * tests/unictype/test-pr_ideographic.c: Likewise.
58934         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58935         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58936         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58937         * tests/unictype/test-pr_iso_control.c: Likewise.
58938         * tests/unictype/test-pr_join_control.c: Likewise.
58939         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58940         * tests/unictype/test-pr_line_separator.c: Likewise.
58941         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58942         * tests/unictype/test-pr_lowercase.c: Likewise.
58943         * tests/unictype/test-pr_math.c: Likewise.
58944         * tests/unictype/test-pr_non_break.c: Likewise.
58945         * tests/unictype/test-pr_not_a_character.c: Likewise.
58946         * tests/unictype/test-pr_numeric.c: Likewise.
58947         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58948         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58949         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58950         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58951         * tests/unictype/test-pr_other_id_start.c: Likewise.
58952         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58953         * tests/unictype/test-pr_other_math.c: Likewise.
58954         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58955         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58956         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58957         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58958         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58959         * tests/unictype/test-pr_private_use.c: Likewise.
58960         * tests/unictype/test-pr_punctuation.c: Likewise.
58961         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58962         * tests/unictype/test-pr_radical.c: Likewise.
58963         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58964         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58965         * tests/unictype/test-pr_space.c: Likewise.
58966         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58967         * tests/unictype/test-pr_titlecase.c: Likewise.
58968         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58969         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58970         * tests/unictype/test-pr_uppercase.c: Likewise.
58971         * tests/unictype/test-pr_variation_selector.c: Likewise.
58972         * tests/unictype/test-pr_white_space.c: Likewise.
58973         * tests/unictype/test-pr_xid_continue.c: Likewise.
58974         * tests/unictype/test-pr_xid_start.c: Likewise.
58975         * tests/unictype/test-pr_zero_width.c: Likewise.
58976         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58977         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58978
58979 2007-11-12  Bruno Haible  <bruno@clisp.org>
58980
58981         Unicode character classification functions.
58982         * lib/unictype.h: New file.
58983         * modules/unictype/base: New file.
58984         * modules/unictype/category-L: New file.
58985         * modules/unictype/category-Lu: New file.
58986         * modules/unictype/category-Ll: New file.
58987         * modules/unictype/category-Lt: New file.
58988         * modules/unictype/category-Lm: New file.
58989         * modules/unictype/category-Lo: New file.
58990         * modules/unictype/category-M: New file.
58991         * modules/unictype/category-Mn: New file.
58992         * modules/unictype/category-Mc: New file.
58993         * modules/unictype/category-Me: New file.
58994         * modules/unictype/category-N: New file.
58995         * modules/unictype/category-Nd: New file.
58996         * modules/unictype/category-Nl: New file.
58997         * modules/unictype/category-No: New file.
58998         * modules/unictype/category-P: New file.
58999         * modules/unictype/category-Pc: New file.
59000         * modules/unictype/category-Pd: New file.
59001         * modules/unictype/category-Ps: New file.
59002         * modules/unictype/category-Pe: New file.
59003         * modules/unictype/category-Pi: New file.
59004         * modules/unictype/category-Pf: New file.
59005         * modules/unictype/category-Po: New file.
59006         * modules/unictype/category-S: New file.
59007         * modules/unictype/category-Sm: New file.
59008         * modules/unictype/category-Sc: New file.
59009         * modules/unictype/category-Sk: New file.
59010         * modules/unictype/category-So: New file.
59011         * modules/unictype/category-Z: New file.
59012         * modules/unictype/category-Zs: New file.
59013         * modules/unictype/category-Zl: New file.
59014         * modules/unictype/category-Zp: New file.
59015         * modules/unictype/category-C: New file.
59016         * modules/unictype/category-Cc: New file.
59017         * modules/unictype/category-Cf: New file.
59018         * modules/unictype/category-Cs: New file.
59019         * modules/unictype/category-Co: New file.
59020         * modules/unictype/category-Cn: New file.
59021         * modules/unictype/category-or: New file.
59022         * modules/unictype/category-of: New file.
59023         * modules/unictype/category-test: New file.
59024         * modules/unictype/category-test-withtable: New file.
59025         * modules/unictype/category-byname: New file.
59026         * modules/unictype/category-none: New file.
59027         * modules/unictype/category-and: New file.
59028         * modules/unictype/category-and-not: New file.
59029         * modules/unictype/category-name: New file.
59030         * modules/unictype/combining-class: New file.
59031         * modules/unictype/category-all: New file.
59032         * modules/unictype/bidicategory-all: New file.
59033         * modules/unictype/bidicategory-byname: New file.
59034         * modules/unictype/bidicategory-name: New file.
59035         * modules/unictype/bidicategory-of: New file.
59036         * modules/unictype/bidicategory-test: New file.
59037         * modules/unictype/decimal-digit: New file.
59038         * modules/unictype/digit: New file.
59039         * modules/unictype/numeric: New file.
59040         * modules/unictype/mirror: New file.
59041         * modules/unictype/property-white-space: New file.
59042         * modules/unictype/property-alphabetic: New file.
59043         * modules/unictype/property-other-alphabetic: New file.
59044         * modules/unictype/property-not-a-character: New file.
59045         * modules/unictype/property-default-ignorable-code-point: New file.
59046         * modules/unictype/property-other-default-ignorable-code-point: New
59047         file.
59048         * modules/unictype/property-deprecated: New file.
59049         * modules/unictype/property-logical-order-exception: New file.
59050         * modules/unictype/property-variation-selector: New file.
59051         * modules/unictype/property-private-use: New file.
59052         * modules/unictype/property-unassigned-code-value: New file.
59053         * modules/unictype/property-uppercase: New file.
59054         * modules/unictype/property-other-uppercase: New file.
59055         * modules/unictype/property-lowercase: New file.
59056         * modules/unictype/property-other-lowercase: New file.
59057         * modules/unictype/property-titlecase: New file.
59058         * modules/unictype/property-soft-dotted: New file.
59059         * modules/unictype/property-id-start: New file.
59060         * modules/unictype/property-other-id-start: New file.
59061         * modules/unictype/property-id-continue: New file.
59062         * modules/unictype/property-other-id-continue: New file.
59063         * modules/unictype/property-xid-start: New file.
59064         * modules/unictype/property-xid-continue: New file.
59065         * modules/unictype/property-pattern-white-space: New file.
59066         * modules/unictype/property-pattern-syntax: New file.
59067         * modules/unictype/property-join-control: New file.
59068         * modules/unictype/property-grapheme-base: New file.
59069         * modules/unictype/property-grapheme-extend: New file.
59070         * modules/unictype/property-other-grapheme-extend: New file.
59071         * modules/unictype/property-grapheme-link: New file.
59072         * modules/unictype/property-bidi-control: New file.
59073         * modules/unictype/property-bidi-left-to-right: New file.
59074         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59075         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59076         * modules/unictype/property-bidi-european-digit: New file.
59077         * modules/unictype/property-bidi-eur-num-separator: New file.
59078         * modules/unictype/property-bidi-eur-num-terminator: New file.
59079         * modules/unictype/property-bidi-arabic-digit: New file.
59080         * modules/unictype/property-bidi-common-separator: New file.
59081         * modules/unictype/property-bidi-block-separator: New file.
59082         * modules/unictype/property-bidi-segment-separator: New file.
59083         * modules/unictype/property-bidi-whitespace: New file.
59084         * modules/unictype/property-bidi-non-spacing-mark: New file.
59085         * modules/unictype/property-bidi-boundary-neutral: New file.
59086         * modules/unictype/property-bidi-pdf: New file.
59087         * modules/unictype/property-bidi-embedding-or-override: New file.
59088         * modules/unictype/property-bidi-other-neutral: New file.
59089         * modules/unictype/property-hex-digit: New file.
59090         * modules/unictype/property-ascii-hex-digit: New file.
59091         * modules/unictype/property-ideographic: New file.
59092         * modules/unictype/property-unified-ideograph: New file.
59093         * modules/unictype/property-radical: New file.
59094         * modules/unictype/property-ids-binary-operator: New file.
59095         * modules/unictype/property-ids-trinary-operator: New file.
59096         * modules/unictype/property-zero-width: New file.
59097         * modules/unictype/property-space: New file.
59098         * modules/unictype/property-non-break: New file.
59099         * modules/unictype/property-iso-control: New file.
59100         * modules/unictype/property-format-control: New file.
59101         * modules/unictype/property-dash: New file.
59102         * modules/unictype/property-hyphen: New file.
59103         * modules/unictype/property-punctuation: New file.
59104         * modules/unictype/property-line-separator: New file.
59105         * modules/unictype/property-paragraph-separator: New file.
59106         * modules/unictype/property-quotation-mark: New file.
59107         * modules/unictype/property-sentence-terminal: New file.
59108         * modules/unictype/property-terminal-punctuation: New file.
59109         * modules/unictype/property-currency-symbol: New file.
59110         * modules/unictype/property-math: New file.
59111         * modules/unictype/property-other-math: New file.
59112         * modules/unictype/property-paired-punctuation: New file.
59113         * modules/unictype/property-left-of-pair: New file.
59114         * modules/unictype/property-combining: New file.
59115         * modules/unictype/property-composite: New file.
59116         * modules/unictype/property-decimal-digit: New file.
59117         * modules/unictype/property-numeric: New file.
59118         * modules/unictype/property-diacritic: New file.
59119         * modules/unictype/property-extender: New file.
59120         * modules/unictype/property-ignorable-control: New file.
59121         * modules/unictype/property-test: New file.
59122         * modules/unictype/property-byname: New file.
59123         * modules/unictype/property-all: New file.
59124         * modules/unictype/scripts: New file.
59125         * modules/unictype/scripts-all: New file.
59126         * modules/unictype/block-of: New file.
59127         * modules/unictype/block-test: New file.
59128         * modules/unictype/block-list: New file.
59129         * modules/unictype/block-all: New file.
59130         * modules/unictype/syntax-c-whitespace: New file.
59131         * modules/unictype/syntax-java-whitespace: New file.
59132         * modules/unictype/syntax-c-ident: New file.
59133         * modules/unictype/syntax-java-ident: New file.
59134         * modules/unictype/ctype-alnum: New file.
59135         * modules/unictype/ctype-alpha: New file.
59136         * modules/unictype/ctype-cntrl: New file.
59137         * modules/unictype/ctype-digit: New file.
59138         * modules/unictype/ctype-graph: New file.
59139         * modules/unictype/ctype-lower: New file.
59140         * modules/unictype/ctype-print: New file.
59141         * modules/unictype/ctype-punct: New file.
59142         * modules/unictype/ctype-space: New file.
59143         * modules/unictype/ctype-upper: New file.
59144         * modules/unictype/ctype-xdigit: New file.
59145         * modules/unictype/ctype-blank: New file.
59146         * lib/unictype/bidi_byname.c: New file.
59147         * lib/unictype/bidi_name.c: New file.
59148         * lib/unictype/bidi_of.c: New file.
59149         * lib/unictype/bidi_test.c: New file.
59150         * lib/unictype/bitmap.h: New file.
59151         * lib/unictype/block_test.c: New file.
59152         * lib/unictype/blocks.c: New file.
59153         * lib/unictype/categ_C.c: New file.
59154         * lib/unictype/categ_Cc.c: New file.
59155         * lib/unictype/categ_Cf.c: New file.
59156         * lib/unictype/categ_Cn.c: New file.
59157         * lib/unictype/categ_Co.c: New file.
59158         * lib/unictype/categ_Cs.c: New file.
59159         * lib/unictype/categ_L.c: New file.
59160         * lib/unictype/categ_Ll.c: New file.
59161         * lib/unictype/categ_Lm.c: New file.
59162         * lib/unictype/categ_Lo.c: New file.
59163         * lib/unictype/categ_Lt.c: New file.
59164         * lib/unictype/categ_Lu.c: New file.
59165         * lib/unictype/categ_M.c: New file.
59166         * lib/unictype/categ_Mc.c: New file.
59167         * lib/unictype/categ_Me.c: New file.
59168         * lib/unictype/categ_Mn.c: New file.
59169         * lib/unictype/categ_N.c: New file.
59170         * lib/unictype/categ_Nd.c: New file.
59171         * lib/unictype/categ_Nl.c: New file.
59172         * lib/unictype/categ_No.c: New file.
59173         * lib/unictype/categ_P.c: New file.
59174         * lib/unictype/categ_Pc.c: New file.
59175         * lib/unictype/categ_Pd.c: New file.
59176         * lib/unictype/categ_Pe.c: New file.
59177         * lib/unictype/categ_Pf.c: New file.
59178         * lib/unictype/categ_Pi.c: New file.
59179         * lib/unictype/categ_Po.c: New file.
59180         * lib/unictype/categ_Ps.c: New file.
59181         * lib/unictype/categ_S.c: New file.
59182         * lib/unictype/categ_Sc.c: New file.
59183         * lib/unictype/categ_Sk.c: New file.
59184         * lib/unictype/categ_Sm.c: New file.
59185         * lib/unictype/categ_So.c: New file.
59186         * lib/unictype/categ_Z.c: New file.
59187         * lib/unictype/categ_Zl.c: New file.
59188         * lib/unictype/categ_Zp.c: New file.
59189         * lib/unictype/categ_Zs.c: New file.
59190         * lib/unictype/categ_and.c: New file.
59191         * lib/unictype/categ_and_not.c: New file.
59192         * lib/unictype/categ_byname.c: New file.
59193         * lib/unictype/categ_name.c: New file.
59194         * lib/unictype/categ_none.c: New file.
59195         * lib/unictype/categ_of.c: New file.
59196         * lib/unictype/categ_or.c: New file.
59197         * lib/unictype/categ_test.c: New file.
59198         * lib/unictype/combining.c: New file.
59199         * lib/unictype/ctype_alnum.c: New file.
59200         * lib/unictype/ctype_alpha.c: New file.
59201         * lib/unictype/ctype_blank.c: New file.
59202         * lib/unictype/ctype_cntrl.c: New file.
59203         * lib/unictype/ctype_digit.c: New file.
59204         * lib/unictype/ctype_graph.c: New file.
59205         * lib/unictype/ctype_lower.c: New file.
59206         * lib/unictype/ctype_print.c: New file.
59207         * lib/unictype/ctype_punct.c: New file.
59208         * lib/unictype/ctype_space.c: New file.
59209         * lib/unictype/ctype_upper.c: New file.
59210         * lib/unictype/ctype_xdigit.c: New file.
59211         * lib/unictype/decdigit.c: New file.
59212         * lib/unictype/digit.c: New file.
59213         * lib/unictype/identsyntaxmap.h: New file.
59214         * lib/unictype/mirror.c: New file.
59215         * lib/unictype/numeric.c: New file.
59216         * lib/unictype/pr_alphabetic.c: New file.
59217         * lib/unictype/pr_ascii_hex_digit.c: New file.
59218         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59219         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59220         * lib/unictype/pr_bidi_block_separator.c: New file.
59221         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59222         * lib/unictype/pr_bidi_common_separator.c: New file.
59223         * lib/unictype/pr_bidi_control.c: New file.
59224         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59225         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59226         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59227         * lib/unictype/pr_bidi_european_digit.c: New file.
59228         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59229         * lib/unictype/pr_bidi_left_to_right.c: New file.
59230         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59231         * lib/unictype/pr_bidi_other_neutral.c: New file.
59232         * lib/unictype/pr_bidi_pdf.c: New file.
59233         * lib/unictype/pr_bidi_segment_separator.c: New file.
59234         * lib/unictype/pr_bidi_whitespace.c: New file.
59235         * lib/unictype/pr_byname.c: New file.
59236         * lib/unictype/pr_byname.gperf: New file.
59237         * lib/unictype/pr_combining.c: New file.
59238         * lib/unictype/pr_composite.c: New file.
59239         * lib/unictype/pr_currency_symbol.c: New file.
59240         * lib/unictype/pr_dash.c: New file.
59241         * lib/unictype/pr_decimal_digit.c: New file.
59242         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59243         * lib/unictype/pr_deprecated.c: New file.
59244         * lib/unictype/pr_diacritic.c: New file.
59245         * lib/unictype/pr_extender.c: New file.
59246         * lib/unictype/pr_format_control.c: New file.
59247         * lib/unictype/pr_grapheme_base.c: New file.
59248         * lib/unictype/pr_grapheme_extend.c: New file.
59249         * lib/unictype/pr_grapheme_link.c: New file.
59250         * lib/unictype/pr_hex_digit.c: New file.
59251         * lib/unictype/pr_hyphen.c: New file.
59252         * lib/unictype/pr_id_continue.c: New file.
59253         * lib/unictype/pr_id_start.c: New file.
59254         * lib/unictype/pr_ideographic.c: New file.
59255         * lib/unictype/pr_ids_binary_operator.c: New file.
59256         * lib/unictype/pr_ids_trinary_operator.c: New file.
59257         * lib/unictype/pr_ignorable_control.c: New file.
59258         * lib/unictype/pr_iso_control.c: New file.
59259         * lib/unictype/pr_join_control.c: New file.
59260         * lib/unictype/pr_left_of_pair.c: New file.
59261         * lib/unictype/pr_line_separator.c: New file.
59262         * lib/unictype/pr_logical_order_exception.c: New file.
59263         * lib/unictype/pr_lowercase.c: New file.
59264         * lib/unictype/pr_math.c: New file.
59265         * lib/unictype/pr_non_break.c: New file.
59266         * lib/unictype/pr_not_a_character.c: New file.
59267         * lib/unictype/pr_numeric.c: New file.
59268         * lib/unictype/pr_other_alphabetic.c: New file.
59269         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59270         * lib/unictype/pr_other_grapheme_extend.c: New file.
59271         * lib/unictype/pr_other_id_continue.c: New file.
59272         * lib/unictype/pr_other_id_start.c: New file.
59273         * lib/unictype/pr_other_lowercase.c: New file.
59274         * lib/unictype/pr_other_math.c: New file.
59275         * lib/unictype/pr_other_uppercase.c: New file.
59276         * lib/unictype/pr_paired_punctuation.c: New file.
59277         * lib/unictype/pr_paragraph_separator.c: New file.
59278         * lib/unictype/pr_pattern_syntax.c: New file.
59279         * lib/unictype/pr_pattern_white_space.c: New file.
59280         * lib/unictype/pr_private_use.c: New file.
59281         * lib/unictype/pr_punctuation.c: New file.
59282         * lib/unictype/pr_quotation_mark.c: New file.
59283         * lib/unictype/pr_radical.c: New file.
59284         * lib/unictype/pr_sentence_terminal.c: New file.
59285         * lib/unictype/pr_soft_dotted.c: New file.
59286         * lib/unictype/pr_space.c: New file.
59287         * lib/unictype/pr_terminal_punctuation.c: New file.
59288         * lib/unictype/pr_test.c: New file.
59289         * lib/unictype/pr_titlecase.c: New file.
59290         * lib/unictype/pr_unassigned_code_value.c: New file.
59291         * lib/unictype/pr_unified_ideograph.c: New file.
59292         * lib/unictype/pr_uppercase.c: New file.
59293         * lib/unictype/pr_variation_selector.c: New file.
59294         * lib/unictype/pr_white_space.c: New file.
59295         * lib/unictype/pr_xid_continue.c: New file.
59296         * lib/unictype/pr_xid_start.c: New file.
59297         * lib/unictype/pr_zero_width.c: New file.
59298         * lib/unictype/scripts.c: New file.
59299         * lib/unictype/sy_c_ident.c: New file.
59300         * lib/unictype/sy_c_whitespace.c: New file.
59301         * lib/unictype/sy_java_ident.c: New file.
59302         * lib/unictype/sy_java_whitespace.c: New file.
59303
59304         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59305         Unicode 5.0.0.
59306         * lib/unictype/blocks.h: Likewise.
59307         * lib/unictype/categ_C.h: Likewise.
59308         * lib/unictype/categ_Cc.h: Likewise.
59309         * lib/unictype/categ_Cf.h: Likewise.
59310         * lib/unictype/categ_Cn.h: Likewise.
59311         * lib/unictype/categ_Co.h: Likewise.
59312         * lib/unictype/categ_Cs.h: Likewise.
59313         * lib/unictype/categ_L.h: Likewise.
59314         * lib/unictype/categ_Ll.h: Likewise.
59315         * lib/unictype/categ_Lm.h: Likewise.
59316         * lib/unictype/categ_Lo.h: Likewise.
59317         * lib/unictype/categ_Lt.h: Likewise.
59318         * lib/unictype/categ_Lu.h: Likewise.
59319         * lib/unictype/categ_M.h: Likewise.
59320         * lib/unictype/categ_Mc.h: Likewise.
59321         * lib/unictype/categ_Me.h: Likewise.
59322         * lib/unictype/categ_Mn.h: Likewise.
59323         * lib/unictype/categ_N.h: Likewise.
59324         * lib/unictype/categ_Nd.h: Likewise.
59325         * lib/unictype/categ_Nl.h: Likewise.
59326         * lib/unictype/categ_No.h: Likewise.
59327         * lib/unictype/categ_P.h: Likewise.
59328         * lib/unictype/categ_Pc.h: Likewise.
59329         * lib/unictype/categ_Pd.h: Likewise.
59330         * lib/unictype/categ_Pe.h: Likewise.
59331         * lib/unictype/categ_Pf.h: Likewise.
59332         * lib/unictype/categ_Pi.h: Likewise.
59333         * lib/unictype/categ_Po.h: Likewise.
59334         * lib/unictype/categ_Ps.h: Likewise.
59335         * lib/unictype/categ_S.h: Likewise.
59336         * lib/unictype/categ_Sc.h: Likewise.
59337         * lib/unictype/categ_Sk.h: Likewise.
59338         * lib/unictype/categ_Sm.h: Likewise.
59339         * lib/unictype/categ_So.h: Likewise.
59340         * lib/unictype/categ_Z.h: Likewise.
59341         * lib/unictype/categ_Zl.h: Likewise.
59342         * lib/unictype/categ_Zp.h: Likewise.
59343         * lib/unictype/categ_Zs.h: Likewise.
59344         * lib/unictype/categ_of.h: Likewise.
59345         * lib/unictype/combining.h: Likewise.
59346         * lib/unictype/ctype_alnum.h: Likewise.
59347         * lib/unictype/ctype_alpha.h: Likewise.
59348         * lib/unictype/ctype_blank.h: Likewise.
59349         * lib/unictype/ctype_cntrl.h: Likewise.
59350         * lib/unictype/ctype_digit.h: Likewise.
59351         * lib/unictype/ctype_graph.h: Likewise.
59352         * lib/unictype/ctype_lower.h: Likewise.
59353         * lib/unictype/ctype_print.h: Likewise.
59354         * lib/unictype/ctype_punct.h: Likewise.
59355         * lib/unictype/ctype_space.h: Likewise.
59356         * lib/unictype/ctype_upper.h: Likewise.
59357         * lib/unictype/ctype_xdigit.h: Likewise.
59358         * lib/unictype/decdigit.h: Likewise.
59359         * lib/unictype/digit.h: Likewise.
59360         * lib/unictype/mirror.h: Likewise.
59361         * lib/unictype/numeric.h: Likewise.
59362         * lib/unictype/pr_alphabetic.h: Likewise.
59363         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59364         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59365         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59366         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59367         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59368         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59369         * lib/unictype/pr_bidi_control.h: Likewise.
59370         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59371         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59372         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59373         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59374         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59375         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59376         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59377         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59378         * lib/unictype/pr_bidi_pdf.h: Likewise.
59379         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59380         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59381         * lib/unictype/pr_combining.h: Likewise.
59382         * lib/unictype/pr_composite.h: Likewise.
59383         * lib/unictype/pr_currency_symbol.h: Likewise.
59384         * lib/unictype/pr_dash.h: Likewise.
59385         * lib/unictype/pr_decimal_digit.h: Likewise.
59386         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59387         * lib/unictype/pr_deprecated.h: Likewise.
59388         * lib/unictype/pr_diacritic.h: Likewise.
59389         * lib/unictype/pr_extender.h: Likewise.
59390         * lib/unictype/pr_format_control.h: Likewise.
59391         * lib/unictype/pr_grapheme_base.h: Likewise.
59392         * lib/unictype/pr_grapheme_extend.h: Likewise.
59393         * lib/unictype/pr_grapheme_link.h: Likewise.
59394         * lib/unictype/pr_hex_digit.h: Likewise.
59395         * lib/unictype/pr_hyphen.h: Likewise.
59396         * lib/unictype/pr_id_continue.h: Likewise.
59397         * lib/unictype/pr_id_start.h: Likewise.
59398         * lib/unictype/pr_ideographic.h: Likewise.
59399         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59400         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59401         * lib/unictype/pr_ignorable_control.h: Likewise.
59402         * lib/unictype/pr_iso_control.h: Likewise.
59403         * lib/unictype/pr_join_control.h: Likewise.
59404         * lib/unictype/pr_left_of_pair.h: Likewise.
59405         * lib/unictype/pr_line_separator.h: Likewise.
59406         * lib/unictype/pr_logical_order_exception.h: Likewise.
59407         * lib/unictype/pr_lowercase.h: Likewise.
59408         * lib/unictype/pr_math.h: Likewise.
59409         * lib/unictype/pr_non_break.h: Likewise.
59410         * lib/unictype/pr_not_a_character.h: Likewise.
59411         * lib/unictype/pr_numeric.h: Likewise.
59412         * lib/unictype/pr_other_alphabetic.h: Likewise.
59413         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59414         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59415         * lib/unictype/pr_other_id_continue.h: Likewise.
59416         * lib/unictype/pr_other_id_start.h: Likewise.
59417         * lib/unictype/pr_other_lowercase.h: Likewise.
59418         * lib/unictype/pr_other_math.h: Likewise.
59419         * lib/unictype/pr_other_uppercase.h: Likewise.
59420         * lib/unictype/pr_paired_punctuation.h: Likewise.
59421         * lib/unictype/pr_paragraph_separator.h: Likewise.
59422         * lib/unictype/pr_pattern_syntax.h: Likewise.
59423         * lib/unictype/pr_pattern_white_space.h: Likewise.
59424         * lib/unictype/pr_private_use.h: Likewise.
59425         * lib/unictype/pr_punctuation.h: Likewise.
59426         * lib/unictype/pr_quotation_mark.h: Likewise.
59427         * lib/unictype/pr_radical.h: Likewise.
59428         * lib/unictype/pr_sentence_terminal.h: Likewise.
59429         * lib/unictype/pr_soft_dotted.h: Likewise.
59430         * lib/unictype/pr_space.h: Likewise.
59431         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59432         * lib/unictype/pr_titlecase.h: Likewise.
59433         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59434         * lib/unictype/pr_unified_ideograph.h: Likewise.
59435         * lib/unictype/pr_uppercase.h: Likewise.
59436         * lib/unictype/pr_variation_selector.h: Likewise.
59437         * lib/unictype/pr_white_space.h: Likewise.
59438         * lib/unictype/pr_xid_continue.h: Likewise.
59439         * lib/unictype/pr_xid_start.h: Likewise.
59440         * lib/unictype/pr_zero_width.h: Likewise.
59441         * lib/unictype/scripts.h: Likewise.
59442         * lib/unictype/scripts_byname.gperf: Likewise.
59443         * lib/unictype/sy_c_ident.h: Likewise.
59444         * lib/unictype/sy_c_whitespace.h: Likewise.
59445         * lib/unictype/sy_java_ident.h: Likewise.
59446         * lib/unictype/sy_java_whitespace.h: Likewise.
59447
59448         * lib/unictype/Makefile: New file.
59449         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59450         glibc.
59451         * lib/unictype/3level.h: New file, copied from glibc.
59452         * lib/unictype/3levelbit.h: New file.
59453
59454 2007-11-11  Bruno Haible  <bruno@clisp.org>
59455
59456         * modules/gperf: New file.
59457         * modules/iconv_open (Depends-on): Add it.
59458         (Makefile.am): Remove the GPERF definition.
59459
59460 2007-11-11  Bruno Haible  <bruno@clisp.org>
59461
59462         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59463         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59464
59465 2007-11-11  Bruno Haible  <bruno@clisp.org>
59466
59467         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59468         (usage): Remove function.
59469
59470 2007-11-11  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59473         gl_FUNC_CEILF_LIBS.
59474         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59475         gl_FUNC_CEIL_LIBS.
59476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59477         gl_FUNC_CEILL_LIBS.
59478         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59479         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59480         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59481
59482 2007-11-11  Bruno Haible  <bruno@clisp.org>
59483
59484         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59485         roundf were declared but do not exist on functions.
59486         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59487         roundl were declared but do not exist on functions.
59488         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59489         HAVE_FLOORL_AND_CEILL, respectively.
59490         Needed for Sun C on Solaris 10.
59491
59492 2007-11-11  Bruno Haible  <bruno@clisp.org>
59493
59494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59495         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59496         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59497         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59499         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59500         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59501         HAVE_DECL_ROUNDF.
59502         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59503         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59505         of HAVE_DECL_ROUND*.
59506         * modules/math (Makefile.am): Update.
59507
59508 2007-11-10  Bruno Haible  <bruno@clisp.org>
59509
59510         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59511         ptrdiff_t as m4/intl.m4.
59512
59513 2007-11-10  Jim Meyering  <meyering@redhat.com>
59514
59515         Avoid link failure for the argmatch test.
59516         * tests/test-argmatch.c (usage): Define function to avoid a link
59517         failure: argmatch_die requires a usage function.
59518
59519 2007-11-09  Bruno Haible  <bruno@clisp.org>
59520
59521         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59522         * doc/functions/vsnprintf.texi: Likewise.
59523         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59524         with a size argument < 2.
59525
59526 2007-11-09  Bruno Haible  <bruno@clisp.org>
59527
59528         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59529         buffer. Fixes an inefficiency introduced on 2007-11-03.
59530
59531 2007-11-09  Bruno Haible  <bruno@clisp.org>
59532
59533         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59534         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59535
59536 2007-11-08  Jim Meyering  <meyering@redhat.com>
59537
59538         Change cache variable name prefix "jm_" to "gl_" everywhere.
59539         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59540         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59541         * m4/uptime.m4: s/gl_/jm_/
59542
59543 2007-11-07  Bruno Haible  <bruno@clisp.org>
59544
59545         Update to GNU gettext 0.17.
59546         * m4/intl.m4: Update to GNU gettext 0.17.
59547         * m4/po.m4: Likewise.
59548         * modules/gettext (Files): Remove m4/ulonglong.m4.
59549         (configure.ac): Require gettext infrastructure from version 0.17.
59550
59551 2007-11-06  Bruno Haible  <bruno@clisp.org>
59552
59553         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59554         symbolic values are not defined in a public header.
59555         * lib/freadable.c (freadable) [QNX]: Likewise.
59556         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59557         * lib/freading.c (freading) [QNX]: Likewise.
59558         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59559         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59560         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59561         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59562         Reported by Alain Magloire.
59563
59564         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59565
59566 2007-11-05  Bruno Haible  <bruno@clisp.org>
59567
59568         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59569         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59570         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59571         Reported by Eric Blake.
59572
59573 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59574             Bruno Haible  <bruno@clisp.org>
59575
59576         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59577         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59578         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59579         (malloc): Undefine also before including <stdlib.h>.
59580         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59581         Needed on OSF/1 4.0.
59582
59583 2007-11-05  Jim Meyering  <meyering@redhat.com>
59584
59585         git-version-gen: sync from coreutils.
59586         * build-aux/git-version-gen: Add comments.
59587         Change the first '-' to '.' in the snapshot version string,
59588         e.g., 6.9-377-08144 -> 6.9.377-08144
59589         Remove first parameter.
59590         Don't declare a version "-dirty" merely because a time
59591         stamp has changed.
59592
59593 2007-11-04  Bruno Haible  <bruno@clisp.org>
59594
59595         * lib/lock.h: Protect all macro definitions containing an 'if'
59596         statement through a "do { ... } while (0)".
59597         * lib/tls.h: Likewise.
59598
59599 2007-11-04  Bruno Haible  <bruno@clisp.org>
59600
59601         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59602
59603 2007-11-04  Bruno Haible  <bruno@clisp.org>
59604
59605         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59606         * modules/fprintf-posix (Depends-on): Add nocrash.
59607         * modules/snprintf-posix (Depends-on): Likewise.
59608         * modules/sprintf-posix (Depends-on): Likewise.
59609         * modules/vasnprintf-posix (Depends-on): Likewise.
59610         * modules/vasprintf-posix (Depends-on): Likewise.
59611         * modules/vfprintf-posix (Depends-on): Likewise.
59612         * modules/vsnprintf-posix (Depends-on): Likewise.
59613         * modules/vsprintf-posix (Depends-on): Likewise.
59614         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59615         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59616         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59617         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59618         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59619         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59620         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59621
59622 2007-11-04  Bruno Haible  <bruno@clisp.org>
59623
59624         * modules/nocrash: New file.
59625         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59626         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59627
59628 2007-11-04  Bruno Haible  <bruno@clisp.org>
59629
59630         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59631         precision handling.
59632         * tests/test-vasprintf-posix.c (test_function): Likewise.
59633         * tests/test-snprintf-posix.h (test_function): Likewise.
59634         * tests/test-sprintf-posix.h (test_function): Likewise.
59635
59636         Fix *printf behaviour for large precisions on mingw and BeOS.
59637         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59638         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59640         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59642         gl_PRINTF_PRECISION and test its result. Invoke
59643         gl_PREREQ_VASNPRINTF_PRECISION.
59644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59651         * doc/functions/fprintf.texi: Update.
59652         * doc/functions/printf.texi: Update.
59653         * doc/functions/snprintf.texi: Update.
59654         * doc/functions/sprintf.texi: Update.
59655         * doc/functions/vfprintf.texi: Update.
59656         * doc/functions/vprintf.texi: Update.
59657         * doc/functions/vsnprintf.texi: Update.
59658         * doc/functions/vsprintf.texi: Update.
59659
59660 2007-11-04  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59663
59664 2007-11-04  Bruno Haible  <bruno@clisp.org>
59665
59666         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59667         Reported by Sylvain Beucler <beuc@gnu.org>.
59668
59669 2007-11-03  Bruno Haible  <bruno@clisp.org>
59670
59671         * tests/test-fprintf-posix2.sh: New file.
59672         * tests/test-fprintf-posix2.c: New file.
59673         * modules/fprintf-posix-tests (Files): Add them.
59674         (TESTS): Add test-fprintf-posix2.sh.
59675         (configure.ac): Check for getrlimit and setrlimit.
59676         (check_PROGRAMS): Add test-fprintf-posix2.
59677
59678         * tests/test-printf-posix2.sh: New file.
59679         * tests/test-printf-posix2.c: New file.
59680         * modules/printf-posix-tests (Files): Add them.
59681         (TESTS): Add test-printf-posix2.sh.
59682         (configure.ac): Check for getrlimit and setrlimit.
59683         (check_PROGRAMS): Add test-printf-posix2.
59684
59685         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59686         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59687         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59688         (decode_double): New function, copied from decode_long_double.
59689         (scale10_round_decimal_decoded): New function, extracted from
59690         scale10_round_decimal_long_double.
59691         (scale10_round_decimal_long_double): Use it.
59692         (scale10_round_decimal_double): New function.
59693         (floorlog10): New function.
59694         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59696         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59698         gl_PRINTF_ENOMEM and test its result. Invoke
59699         gl_PREREQ_VASNPRINTF_ENOMEM.
59700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59701         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59704         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59707         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59708         * modules/snprintf-posix (Depends-on): Likewise.
59709         * modules/sprintf-posix (Depends-on): Likewise.
59710         * modules/vasnprintf-posix (Depends-on): Likewise.
59711         * modules/vasprintf-posix (Depends-on): Likewise.
59712         * modules/vfprintf-posix (Depends-on): Likewise.
59713         * modules/vsnprintf-posix (Depends-on): Likewise.
59714         * modules/vsprintf-posix (Depends-on): Likewise.
59715         * doc/functions/fprintf.texi: Update.
59716         * doc/functions/printf.texi: Update.
59717         * doc/functions/snprintf.texi: Update.
59718         * doc/functions/sprintf.texi: Update.
59719         * doc/functions/vfprintf.texi: Update.
59720         * doc/functions/vprintf.texi: Update.
59721         * doc/functions/vsnprintf.texi: Update.
59722         * doc/functions/vsprintf.texi: Update.
59723
59724 2007-11-03  Bruno Haible  <bruno@clisp.org>
59725
59726         * modules/frexp-nolibm-tests: New file.
59727
59728         * modules/frexp-nolibm: New file.
59729         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59730
59731 2007-11-03  Bruno Haible  <bruno@clisp.org>
59732
59733         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59734         value is C99 compliant.
59735         Needed for OSF/1 5.1.
59736
59737 2007-11-03  Bruno Haible  <bruno@clisp.org>
59738
59739         Fix out-of-memory handling of vasnprintf.
59740         * lib/printf-parse.c: Include <errno.h>.
59741         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59742         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59743         is already set.
59744
59745 2007-11-02  Eric Blake  <ebb9@byu.net>
59746
59747         Fix tests on cygwin.
59748         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59749
59750 2007-11-01  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59753         warning.
59754         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59755         needed for POSIX compatibility.
59756
59757 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59760         for compatibility with GNU.
59761
59762 2007-11-01  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59765         (putenv): Renamed from rpl_putenv. Change argument type from
59766         'const char *' to 'char *'.
59767         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59768         of defining putenv in config.h, just set REPLACE_PUTENV.
59769         * modules/putenv (Depends-on): Add stdlib.
59770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59771         (Include): Use <stdlib.h>.
59772         * lib/stdlib.in.h (putenv): New declaration.
59773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59774         REPLACE_PUTENV.
59775         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59776         REPLACE_PUTENV.
59777         Needed for MacOS X 10.5.0.
59778         Reported by Peter O'Gorman <peter@pogma.com>.
59779
59780 2007-11-01  Jim Meyering  <meyering@redhat.com>
59781
59782         Treat an empty date string exactly like "0".
59783         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59784         if the remaining date string (to be parsed) is empty, use "0".
59785         Reported by Mischa Molhoek and discussed in this thread:
59786         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59787
59788 2007-10-31  Bruno Haible  <bruno@clisp.org>
59789
59790         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59791         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59792         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59793         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59794         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59795         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59796
59797 2007-10-31  Bruno Haible  <bruno@clisp.org>
59798
59799         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59800         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59801         (AC_TYPE_LONG_LONG_INT): Use it.
59802         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59803         it as well.
59804         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59805         to m4/longlong.m4.
59806         * modules/stdint (Files): Remove m4/ulonglong.m4.
59807         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59808         m4/ulonglong.m4.
59809         * modules/strtoumax (Files): Likewise.
59810
59811 2007-10-30  Bruno Haible  <bruno@clisp.org>
59812
59813         * modules/xvasprintf-posix: New file.
59814         Suggested by Eric Blake.
59815
59816 2007-10-30  Bruno Haible  <bruno@clisp.org>
59817
59818         * modules/xprintf-posix-tests: New file.
59819         * tests/test-xprintf-posix.sh: New file.
59820         * tests/test-xprintf-posix.c: New file.
59821         * tests/test-xfprintf-posix.c: New file.
59822
59823         * modules/xprintf-posix: New file.
59824
59825 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59826
59827         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59828         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59829         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59830
59831 2007-10-29  Bruno Haible  <bruno@clisp.org>
59832
59833         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59834         contain the special marker '_cv_'.
59835         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59836         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59837         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59838         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59839         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59840         Reported by Ralf Wildenhues.
59841
59842 2007-10-29  Bruno Haible  <bruno@clisp.org>
59843
59844         * gnulib-tool (func_import): When --lgpl is not specified, set
59845         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59846         GPLv3.
59847         Reported by Simon Josefsson.
59848
59849 2007-10-28  Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59852         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59853         HAVE_DECL_ISFINITE.
59854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59855         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59856         HAVE_DECL_ISFINITE.
59857
59858 2007-10-28  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59861         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59862
59863 2007-10-28  Bruno Haible  <bruno@clisp.org>
59864
59865         Fix link errors with Sun C 5.0 on Solaris 10.
59866         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59867         function is declared but not present in the compiler's libm.
59868         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59869         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59870         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59871         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59872         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59873         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59874         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59876         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59877         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59878         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59879         HAVE_DECL_FLOORL.
59880
59881 2007-10-28  Bruno Haible  <bruno@clisp.org>
59882
59883         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59884         gl_FUNC_FLOORL. Cache the result.
59885         (gl_FUNC_FLOORL): Use it.
59886         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59887         gl_FUNC_CEILL. Cache the result.
59888         (gl_FUNC_CEILL): Use it.
59889
59890         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59891         gl_FUNC_FLOOR. Cache the result.
59892         (gl_FUNC_FLOOR): Use it.
59893         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59894         gl_FUNC_CEIL. Cache the result.
59895         (gl_FUNC_CEIL): Use it.
59896
59897         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59898         gl_FUNC_FLOORF. Cache the result.
59899         (gl_FUNC_FLOORF): Use it.
59900         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59901         gl_FUNC_CEILF. Cache the result.
59902         (gl_FUNC_CEILF): Use it.
59903
59904 2007-10-28  Bruno Haible  <bruno@clisp.org>
59905
59906         * gnulib-tool: Allow specifying the LGPL version number through
59907         --lgpl=2 or --lgpl=3.
59908         (func_usage): Document --lgpl with argument.
59909         Handle --lgpl=... arguments.
59910         (func_import): Recognize also gl_LGPL calls with an argument. When
59911         --lgpl=2 is used and the module's license is just LGPL, report an
59912         error. Set sed_transform_lib_file according to the lgpl variable. In
59913         the generated files, use --lgpl or gl_LGPL invocations with argument,
59914         if necessary.
59915         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59916         an LGPv2+ license.
59917         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59918         gl_LGPL macro.
59919
59920 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59921             Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59924         (u16_uctomb_aux): Likewise.
59925         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59926         !HAVE_INLINE.
59927         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59928
59929 2007-10-28  Bruno Haible  <bruno@clisp.org>
59930
59931         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59932         Invoke AM_GETTEXT_OPTION if it exists.
59933         * modules/vasprintf: Likewise.
59934         * modules/verror: Likewise.
59935         * modules/xprintf: Likewise.
59936         * modules/xvasprintf: Likewise.
59937
59938 2007-10-27  Ben Pfaff  <blp@gnu.org>
59939
59940         * lib/math.in.h: Define isfinite macro and prototypes for
59941         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59942         implementations.
59943         * m4/math_h.m4: New substitutions for isfinite module.
59944         * lib/isfinite.c: New file.
59945         * m4/isfinite.m4: New file.
59946         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59947         * modules/isfinite: New file.
59948         * modules/isfinite-tests: New file.
59949         * tests/tests-isfinite.c: New file.
59950         * doc/functions/isfinite.texi: Mention isfinite module.
59951         * MODULES.html.sh: Mention new module.
59952
59953 2007-10-27  Ben Pfaff  <blp@gnu.org>
59954
59955         Ralf Wildenhues reported that Tru64 4.0D declares the round
59956         functions but does not have definitions.
59957         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59958         cannot be found in any library, set the output variable to
59959         "missing" instead of "".
59960         * m4/round.m4: Also use our substitute if we cannot find round in
59961         any library, even if it is declared.
59962         * m4/roundf.m4: Likewise for roundf.
59963         * m4/roundl.m4: Likewise for roundl.
59964         * lib/math.in.h: Undefine roundf, round, roundl before defining
59965         their replacements, to allow for hypothetical systems where these
59966         may be defined as macros but not available in libraries.
59967
59968 2007-10-27  Bruno Haible  <bruno@clisp.org>
59969
59970         * doc/gnulib.texi: Invoke @firstparagraphindent.
59971         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59972         changes in gnulib.
59973         (Source changes): New section.
59974
59975 2007-10-26  Bruno Haible  <bruno@clisp.org>
59976
59977         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59978         borrowed from autoconf.
59979
59980 2007-10-26  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59983         strerror returned the empty string. Needed on HP-UX 11.00.
59984
59985 2007-10-24  Micah Cowan  <micah@cowan.name>
59986
59987         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59988         * build-aux/bootstrap: Remove support for now-unnecessary option,
59989         --cvs-user, and envvars CVS_USER, CVS_RSH.
59990
59991 2007-10-24  Jim Meyering  <meyering@redhat.com>
59992
59993         Avoid diagnostics from sha1sum when there is no cached checksum.
59994         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59995         if the po.s1 file hasn't been created yet.
59996
59997         * build-aux/bootstrap: Sync from coreutils:
59998         2007-10-24  Jim Meyering  <meyering@redhat.com>
59999         Get gnulib from the git repository, not from an obsolete cvs one.
60000         * build-aux/bootstrap: Suggestion from Micah Cowan.
60001         2007-10-04  Jim Meyering  <jim@meyering.net>
60002         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60003         (update_po_files): Work also when there are no .po files in po/.
60004
60005 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60006
60007         * README: Append ".git" to git and cg examples.
60008         Problem reported by Benoit Sigoure.
60009
60010 2007-10-23  Micah Cowan  <micah@cowan.name>
60011
60012         * users.txt: Add wget.
60013
60014 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60015
60016         Fix linking of some unistdio tests on FreeBSD.
60017         * modules/unistdio/u16-vsnprintf-tests
60018         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60019         * modules/unistdio/u16-vsprintf-tests
60020         (test_u16_vsnprintf1_LDADD): Likewise.
60021         * modules/unistdio/u32-vsnprintf-tests
60022         (test_u32_vsnprintf1_LDADD): Likewise.
60023         * modules/unistdio/u32-vsprintf-tests
60024         (test_u32_vsprintf1_LDADD): Likewise.
60025         * modules/unistdio/u8-vsnprintf-tests
60026         (test_u8_vsnprintf1_LDADD): Likewise.
60027         * modules/unistdio/u8-vsprintf-tests
60028         (test_u8_vsprintf1_LDADD): Likewise.
60029         * modules/unistdio/ulc-vsnprintf-tests
60030         (test_ulc_vsnprintf1_LDADD): Likewise.
60031         * modules/unistdio/ulc-vsprintf-tests
60032         (test_ulc_vsprintf1_LDADD): Likewise.
60033
60034         Fix linking of some uniconv tests on FreeBSD.
60035         * modules/uniconv/u16-conv-from-enc-tests
60036         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60037         * modules/uniconv/u16-conv-to-enc-tests
60038         (test_u16_conv_to_enc_LDADD): Likewise.
60039         * modules/uniconv/u16-strconv-from-enc-tests
60040         (test_u16_strconv_from_enc_LDADD): Likewise.
60041         * modules/uniconv/u16-strconv-to-enc-tests
60042         (test_u16_strconv_to_enc_LDADD): Likewise.
60043         * modules/uniconv/u32-conv-from-enc-tests
60044         (test_u32_conv_from_enc_LDADD): Likewise.
60045         * modules/uniconv/u32-conv-to-enc-tests
60046         (test_u32_conv_to_enc_LDADD): Likewise.
60047         * modules/uniconv/u32-strconv-from-enc-tests
60048         (test_u32_strconv_from_enc_LDADD): Likewise.
60049         * modules/uniconv/u32-strconv-to-enc-tests
60050         (test_u32_strconv_to_enc_LDADD): Likewise.
60051         * modules/uniconv/u8-conv-from-enc-tests
60052         (test_u8_conv_from_enc_LDADD): Likewise.
60053         * modules/uniconv/u8-conv-to-enc-tests
60054         (test_u8_conv_to_enc_LDADD): Likewise.
60055         * modules/uniconv/u8-strconv-from-enc-tests
60056         (test_u8_strconv_from_enc_LDADD): Likewise.
60057         * modules/uniconv/u8-strconv-to-enc-tests
60058         (test_u8_strconv_to_enc_LDADD): Likewise.
60059
60060 2007-10-22  Bruno Haible  <bruno@clisp.org>
60061
60062         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60063         size.
60064
60065 2007-10-22  Eric Blake  <ebb9@byu.net>
60066
60067         Tweak x*printf documentation.
60068         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60069         variable name and comments.
60070         Suggested by Bruno Haible.
60071
60072 2007-10-22  Bruno Haible  <bruno@clisp.org>
60073
60074         * lib/acl.c (copy_acl): Fix file name in comment.
60075
60076 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         Fix Tru64 problem with stdbool.h.
60079         * lib/stdbool.in.h (false, true):
60080         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60081         Don't declare as an enum in this situation; it runs afoul of Tru64.
60082         Problem reported by Steven M. Schweda in
60083         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60084
60085 2007-10-22  Eric Blake  <ebb9@byu.net>
60086
60087         Also wrap vf?printf.
60088         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60089         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60090         (xvprintf, xvfprintf): New functions.
60091
60092 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60093
60094         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60095         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60096
60097         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60098         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60099
60100 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60101
60102         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60103         by Bruno Haible.
60104
60105 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60106
60107         * lib/getloadavg.c
60108         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60109         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60110
60111         * tests/test-i-ring.c: Work for C89.
60112
60113 2007-10-22  Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60116         -1u, in preprocessor expression, so that we don't test for the bug
60117         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60118         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60119
60120 2007-10-22  Eric Blake  <ebb9@byu.net>
60121
60122         * tests/test-yesno.sh: Silence stderr during test.
60123
60124 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60125
60126         * modules/crypto/gc-camellia: New file.
60127
60128         * m4/gc-camellia.m4: New file.
60129
60130         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60131
60132         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60133
60134 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60135
60136         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60137         --help to stdout.  Reported by sms@antinode.org (Steven
60138         M. Schweda).
60139
60140 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60141
60142         * users.txt: Fix link to libksba.
60143
60144 2007-10-21  Ben Pfaff  <blp@gnu.org>
60145
60146         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60147         round.c roundf implementation that depends on floorf and ceilf to
60148         be tested unconditionally.
60149
60150 2007-10-21  Ben Pfaff  <blp@gnu.org>
60151
60152         * m4/check-libm-func.m4: Removed.
60153         * m4/check-math-lib.m4: New file.
60154         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60155         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60156         definition and lack of AC_LIBOBJ([roundf]).
60157         * m4/roundl.m4: Ditto, and similarly for roundl.
60158         * modules/round: Reference new m4 file.
60159         * modules/roundf: Ditto.
60160         * modules/roundl: Ditto.
60161         * tests/test-round2.c (main): Use ROUND instead of round.
60162         Bug report from Bruno Haible.
60163
60164 2007-10-21  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60167         context.
60168
60169 2007-10-21  Bruno Haible  <bruno@clisp.org>
60170
60171         * tests/test-wcwidth.c (main): Allow negative result for some control
60172         characters.
60173
60174         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60175         Needed on OSF/1 5.1.
60176
60177 2007-10-21  Bruno Haible  <bruno@clisp.org>
60178
60179         * tests/test-floorf1.c: Include isnanf.h.
60180         (main): Use isnanf() instead of isnan().
60181         * tests/test-ceilf1.c: Include isnanf.h.
60182         (main): Use isnanf() instead of isnan().
60183         * tests/test-truncf1.c: Include isnanf.h.
60184         (main): Use isnanf() instead of isnan().
60185         * tests/test-roundf1.c: Include isnanf.h.
60186         (main): Use isnanf() instead of isnan().
60187
60188 2007-10-21  Eric Blake  <ebb9@byu.net>
60189
60190         * users.txt: Update URL for m4.
60191
60192 2007-10-21  Bruno Haible  <bruno@clisp.org>
60193
60194         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60195
60196 2007-10-21  Bruno Haible  <bruno@clisp.org>
60197
60198         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60199         Git's management files if the CVS files are not present.
60200
60201 2007-10-20  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60204         gcc-3.4.x.
60205
60206 2007-10-20  Ben Pfaff  <blp@gnu.org>
60207
60208         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60209         implementations.
60210         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60211         * lib/round.c: New file.
60212         * lib/roundf.c: New file.
60213         * lib/roundl.c: New file.
60214         * m4/round.m4: New file.
60215         * m4/roundf.m4: New file.
60216         * m4/roundl.m4: New file.
60217         * m4/check-libm-func-m4: New file.
60218         * modules/math: Replace round, roundf, roundl related @VARS@ in
60219         math.in.h.
60220         * modules/round: New file.
60221         * modules/round-tests: New file.
60222         * modules/roundf: New file.
60223         * modules/roundf-tests: New file.
60224         * modules/roundl: New file.
60225         * modules/roundl-tests: New file.
60226         * tests/test-round1.c: New file.
60227         * tests/test-round2.c: New file.
60228         * tests/test-roundf1.c: New file.
60229         * tests/test-roundf2.c: New file.
60230         * tests/test-roundl.c: New file.
60231         * doc/functions/round.texi: Mention round module.
60232         * doc/functions/roundf.texi: Mention roundf module.
60233         * doc/functions/roundl.texi: Mention roundl module.
60234         * MODULES.html.sh: Mention new modules.
60235         Thanks to Bruno Haible for suggestions.
60236
60237 2007-10-20  Jim Meyering  <meyering@redhat.com>
60238
60239         * lib/xprintf.c: Include <config.h> unconditionally.
60240
60241         Change xprintf's license to GPL.
60242         * modules/xprintf (License): s/LGPL/GPL/, since this module
60243         depends on modules (exit and exitfail) which are GPL.
60244         Suggestion from Bruno Haible.
60245
60246         xprintf fixes.
60247         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60248         Use a clearer diagnostic.
60249         Patch from Bruno Haible.
60250
60251 2007-10-20  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60254         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60256
60257 2007-10-20  Bruno Haible  <bruno@clisp.org>
60258
60259         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60260         precision in the comparison result > x - 1 or similar.
60261         * tests/test-ceilf2.c (correct_result_p): Likewise.
60262         * tests/test-truncf2.c (correct_result_p): Likewise.
60263         * tests/test-trunc2.c (correct_result_p): Likewise.
60264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60265
60266 2007-10-20  Bruno Haible  <bruno@clisp.org>
60267
60268         * modules/ceil: New file.
60269         * m4/ceil.m4: New file.
60270         * doc/functions/ceil.texi: Mention the 'ceil' module.
60271
60272 2007-10-20  Bruno Haible  <bruno@clisp.org>
60273
60274         * modules/floor: New file.
60275         * m4/floor.m4: New file.
60276         * doc/functions/floor.texi: Mention the 'floor' module.
60277
60278 2007-10-20  Bruno Haible  <bruno@clisp.org>
60279
60280         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60281         of %a.
60282         * modules/floorf-tests (Depends-on): Likewise.
60283         * modules/truncf-tests (Depends-on): Likewise.
60284         * modules/trunc-tests (Depends-on): Likewise.
60285         Reported by Ben Pfaff.
60286
60287 2007-10-19  Jim Meyering  <meyering@redhat.com>
60288
60289         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60290         Don't bother testing specific errno values.  Just test ferror.
60291
60292         New module: xprintf
60293         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60294
60295 2007-10-19  Bruno Haible  <bruno@clisp.org>
60296
60297         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60298         syntax.
60299         * modules/javaexec (Makefile.am): Likewise.
60300         * modules/relocatable-prog (Makefile.am): Likewise.
60301         Suggested by Jim Meyering.
60302
60303 2007-10-18  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60306         Reported by Jim Meyering.
60307
60308 2007-10-18  Eric Blake  <ebb9@byu.net>
60309
60310         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60311
60312 2007-10-18  Bruno Haible  <bruno@clisp.org>
60313
60314         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60315         the format string into writable memory. Needed in Fortify conditions.
60316
60317 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60318             Bruno Haible  <bruno@clisp.org>
60319
60320         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60321         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60322         * modules/trim (Depends-on): Add mbchar.
60323         (configure.ac): Add gl_FUNC_MBRTOWC.
60324         (Makefile.am): Augment lib_SOURCES.
60325
60326 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         Modify glob.c to use fstatat and dirfd, to simplify it.
60329         Suggested by Eric Blake.
60330         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60331         Don't include <stdbool.h>; not used.
60332         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60333         (link_exists_p): Simplify implementation, since we can now assume
60334         dirfd and fstatat.
60335         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60336
60337 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60338
60339         * gnulib-tool (func_get_dependencies): Fix sed script to
60340         match only tests.
60341
60342 2007-10-17  Bruno Haible  <bruno@clisp.org>
60343
60344         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60345         allow locale names without encoding suffix.
60346         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60347         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60348
60349 2007-10-16  Bruno Haible  <bruno@clisp.org>
60350
60351         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60352         * lib/getgroups.c (getgroups): Likewise.
60353         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60354
60355 2007-10-16  Bruno Haible  <bruno@clisp.org>
60356
60357         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60358         * modules/malloc-posix (License): Likewise.
60359         * modules/realloc-posix (License): Likewise.
60360         * modules/calloc-posix (License): Likewise.
60361         * modules/intprops (License): Change from GPL to LGPL, with
60362         Paul Eggert's approval.
60363
60364 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         Merge glibc changes into lib/glob.c.
60367
60368         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60369         2007-10-15 04:59:03 UTC.  Here are the changes:
60370
60371         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60372
60373         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60374
60375         * lib/glob.c: Add some branch prediction throughout.
60376
60377         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60378
60379         [BZ #5103]
60380         * lib/glob.c (glob): Recognize patterns starting \/.
60381
60382         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60383
60384         [BZ #3996]
60385         * lib/glob.c (attribute_hidden): Define if not defined.
60386         (glob): Unescape dirname, filename or username when needed and not
60387         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60388         is NULL.  Handle unescaped [ in pattern without closing ].
60389         Don't pass GLOB_CHECK down to recursive glob for directories.
60390         (__glob_pattern_type): New function.
60391         (__glob_pattern_p): Implement using __glob_pattern_type.
60392         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60393         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60394         Remove unreachable code.
60395
60396         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60397
60398         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60399         explain why there are no leaks.
60400
60401         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60402
60403         [BZ #3253]
60404         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60405         time, rather allocate increasingly bigger arrays of pointers, if
60406         possible with alloca, if too large with malloc.
60407
60408 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60411         Problem reported by H.Merijn Brand in
60412         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60413         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60414         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60415
60416 2007-10-15  Bruno Haible  <bruno@clisp.org>
60417
60418         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60419         with explicit rpl_ prefix.
60420         * lib/fopen.c (fopen): Likewise.
60421         * lib/freopen.c (freopen): Likewise.
60422         * lib/iconv.c (iconv): Likewise.
60423         * lib/iconv_close.c (iconv_close): Likewise.
60424
60425 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60426
60427         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60428
60429 2007-10-15  Bruno Haible  <bruno@clisp.org>
60430
60431         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60432         <stddef.h> instead of <stdlib.h> since we only need NULL.
60433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60434
60435 2007-10-15  Bruno Haible  <bruno@clisp.org>
60436
60437         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60438         Replace paragraph talking about LIBOBJS.
60439         Reported by Colin Watson <cjwatson@debian.org>.
60440
60441 2007-10-15  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60444         <stdlib.h> before using NULL.
60445
60446 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60447
60448         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60449         Reported by Albert Chin <china@thewrittenword.com>.
60450
60451 2007-10-14  Bruno Haible  <bruno@clisp.org>
60452
60453         * modules/iconv_open-utf-tests: New file.
60454         * tests/test-iconv-utf.c: New file.
60455
60456         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60457         * modules/iconv_open-utf: New file.
60458         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60459         (iconv, iconv_close): New declarations.
60460         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60461         be defined.
60462         (iconv_open): Add special handling of conversion between UTF-8 and
60463         UTF-{16,32}{BE,LE}.
60464         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60465         * lib/iconv_close.c: New file.
60466         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60467         gl_FUNC_ICONV_OPEN.
60468         (gl_FUNC_ICONV_OPEN): Use it.
60469         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60470         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60471         and REPLACE_ICONV_UTF.
60472         * modules/iconv_open (Depends-on): Add c-strcase.
60473         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60474         ICONV_CONST.
60475         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60476
60477 2007-10-13  Albert Chin  <china@thewrittenword.com>
60478             Bruno Haible  <bruno@clisp.org>
60479
60480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60481         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60482
60483 2007-10-13  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60486         defined, use the ISO C99 inline semantics.
60487         * lib/argp.h (ARGP_EI): Likewise.
60488
60489 2007-10-13  Bruno Haible  <bruno@clisp.org>
60490
60491         Handle 'inline' change in gcc 4.3.0.
60492         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60493         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60494         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60495         argp_fmtstream_point): Disable 'extern' declaration if the function
60496         definition is going to be provided inline.
60497         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60498         semantics, not the ISO C99 inline semantics.
60499         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60500         'extern' declaration if the function definition is going to be provided
60501         inline.
60502         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60503         the GNU C inline semantics, not the ISO C99 inline semantics. With
60504         GCC 4.2, avoid a warning.
60505
60506 2007-10-13  Bruno Haible  <bruno@clisp.org>
60507
60508         * lib/freading.h (freading): Enable the use of __freading for
60509         glibc >= 2.7.
60510         * lib/freading.c (freading): Likewise.
60511
60512 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60513
60514         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60515         "warning: C99 inline functions are not supported; using GNU89".
60516
60517 2007-10-12  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60520         of 2.
60521         * tests/test-ceilf2.c: New file.
60522         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60523
60524         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60525         * modules/ceilf-tests: Update.
60526
60527 2007-10-12  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60530         of 2.
60531         * tests/test-floorf2.c: New file.
60532         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60533
60534         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60535         * modules/floorf-tests: Update.
60536
60537 2007-10-12  Bruno Haible  <bruno@clisp.org>
60538
60539         * tests/test-trunc2.c: New file.
60540         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60541
60542         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60543         * modules/trunc-tests: Update.
60544
60545 2007-10-12  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60548         of 2.
60549         * tests/test-truncf2.c: New file.
60550         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60551
60552         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60553         * modules/truncf-tests: Update.
60554
60555 2007-10-11  Eric Blake  <ebb9@byu.net>
60556
60557         Don't claim strerror is broken on Interix.
60558         * doc/functions/strerror.texi (strerror): Known broken systems are
60559         now Solaris 8, and not Interix.
60560         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60561         Interix on cross-compile.
60562         Reported by Martin Koeppe in
60563         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60564
60565 2007-10-11  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/i-ring-tests: New file.
60568         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60569         instead of assert.
60570
60571 2007-10-11  Bruno Haible  <bruno@clisp.org>
60572
60573         * modules/filenamecat-tests: New file.
60574         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60575         * lib/filenamecat.c: Remove test code.
60576
60577 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60580
60581         * lib/strerror.c: Include <string.h> always, to test interface,
60582         and to remove the need for the dummy.
60583         Include intprops.h to compute width instead of doing it ourselves
60584         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60585         (strerror): Define it to return NULL if there's no system strerror.
60586         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60587         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60588         ancient pre-strerror Unix systems well any more.  Saying "unknown
60589         system error" is enough.
60590         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60591         simpler strerror.c implementation.
60592         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60593         Simplify the tests to reflect the simpler strerror implementation.
60594         * modules/strerror (Depends-on): Add intprops.
60595
60596 2007-10-09  Eric Blake  <ebb9@byu.net>
60597
60598         Silence test-fpending.
60599         * modules/fpending-tests (Files): Add wrapper script.
60600         * tests/test-fpending.sh: New file.
60601
60602 2007-10-09  Bruno Haible  <bruno@clisp.org>
60603
60604         * MODULES.html.sh (func_module): Don't create a hyperlink for
60605         function names like 'printf_frexp'.
60606         (Misc): Add crc, memxor.
60607         (Characteristics of floating types): New section.
60608         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60609         isnanf-nolibm, signbit, trunc, truncf, truncl.
60610         (Enhancements for ISO C 99 functions): New subsection Input/output.
60611         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60612         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60613         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60614         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60615         (Enhancements for POSIX:2001 functions): Add chdir-long.
60616         (File system functions): Add areadlink, chdir-safer, read-file.
60617         Remove cycle-check.
60618         (File system as inode set): New section.
60619         (Date and time): Add gethrxtime.
60620         (Multithreading): Add openmp.
60621         (Internationalization functions): Add localename.
60622         (Unicode string functions): Add unistr/u*-mbsnlen.
60623         (Support for maintaining and releasing projects): Add git-version-gen.
60624         (Lone files): Remove directories.
60625
60626 2007-10-08  Ben Pfaff  <blp@gnu.org>
60627
60628         * lib/xmalloca.h: Fix typo in comment.
60629
60630 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60633         when avoiding problems with integer overflow.  Use a portable test
60634         instead.
60635
60636 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60637
60638         * modules/dummy (License): Change to LGPLv2+.
60639         * modules/float (License): Likewise
60640         * modules/realloc (License): Likewise
60641         * modules/stdlib (License): Likewise
60642
60643 2007-10-07  Bruno Haible  <bruno@clisp.org>
60644
60645         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60646         * floor.c (TWO_MANT_DIG): Likewise.
60647         * ceil.c (TWO_MANT_DIG): Likewise.
60648         Reported by Ben Pfaff.
60649
60650 2007-10-07  Bruno Haible  <bruno@clisp.org>
60651
60652         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60653         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60654         * lib/frexp.c (FUNC): Likewise.
60655         * lib/printf-frexp.h (printf_frexp): Likewise.
60656         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60657         * lib/printf-frexp.c (FUNC): Likewise.
60658         Suggested by Jim Meyering.
60659
60660 2007-10-07  Jim Meyering  <meyering@redhat.com>
60661
60662         Make xnanosleep's integer overflow test more robust.
60663         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60664         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60665
60666 2007-10-07  Bruno Haible  <bruno@clisp.org>
60667
60668         * NEWS: Mention the license change.
60669
60670         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60671         abbreviations in the modules files.
60672
60673         Change copyright notice from GPLv2+ to GPLv3+.
60674         * README: Change copyright notice.
60675         * MODULES.html.sh: Likewise.
60676         * build-aux/bootstrap.conf: Likewise.
60677         * build-aux/config.libpath: Likewise.
60678         * build-aux/csharpcomp.sh.in: Likewise.
60679         * build-aux/csharpexec.sh.in: Likewise.
60680         * build-aux/install-reloc: Likewise.
60681         * build-aux/javacomp.sh.in: Likewise.
60682         * build-aux/javaexec.sh.in: Likewise.
60683         * build-aux/ldd.sh.in: Likewise.
60684         * build-aux/reloc-ldflags: Likewise.
60685         * build-aux/relocatable.sh.in: Likewise.
60686         * build-aux/x-to-1.in: Likewise.
60687         * check-module: Likewise.
60688         * config/srclistvars.sh: Likewise.
60689         * gnulib-tool: Likewise.
60690         * lib/acl-internal.h: Likewise.
60691         * lib/acl.c: Likewise.
60692         * lib/acl.h: Likewise.
60693         * lib/acl_entries.c: Likewise.
60694         * lib/areadlink-with-size.c: Likewise.
60695         * lib/areadlink.c: Likewise.
60696         * lib/areadlink.h: Likewise.
60697         * lib/argmatch.c: Likewise.
60698         * lib/argmatch.h: Likewise.
60699         * lib/argp-ba.c: Likewise.
60700         * lib/argp-eexst.c: Likewise.
60701         * lib/argp-fmtstream.c: Likewise.
60702         * lib/argp-fmtstream.h: Likewise.
60703         * lib/argp-fs-xinl.c: Likewise.
60704         * lib/argp-help.c: Likewise.
60705         * lib/argp-namefrob.h: Likewise.
60706         * lib/argp-parse.c: Likewise.
60707         * lib/argp-pin.c: Likewise.
60708         * lib/argp-pv.c: Likewise.
60709         * lib/argp-pvh.c: Likewise.
60710         * lib/argp-xinl.c: Likewise.
60711         * lib/argp.h: Likewise.
60712         * lib/at-func.c: Likewise.
60713         * lib/atanl.c: Likewise.
60714         * lib/backupfile.c: Likewise.
60715         * lib/backupfile.h: Likewise.
60716         * lib/basename.c: Likewise.
60717         * lib/binary-io.h: Likewise.
60718         * lib/byteswap.in.h: Likewise.
60719         * lib/c-stack.c: Likewise.
60720         * lib/c-stack.h: Likewise.
60721         * lib/c-strcasestr.c: Likewise.
60722         * lib/c-strcasestr.h: Likewise.
60723         * lib/c-strstr.c: Likewise.
60724         * lib/c-strstr.h: Likewise.
60725         * lib/c-strtod.c: Likewise.
60726         * lib/calloc.c: Likewise.
60727         * lib/canon-host.c: Likewise.
60728         * lib/canon-host.h: Likewise.
60729         * lib/canonicalize-lgpl.c: Likewise.
60730         * lib/canonicalize.c: Likewise.
60731         * lib/canonicalize.h: Likewise.
60732         * lib/ceil.c: Likewise.
60733         * lib/ceilf.c: Likewise.
60734         * lib/ceill.c: Likewise.
60735         * lib/chdir-long.c: Likewise.
60736         * lib/chdir-long.h: Likewise.
60737         * lib/chdir-safer.c: Likewise.
60738         * lib/chdir-safer.h: Likewise.
60739         * lib/chown.c: Likewise.
60740         * lib/classpath.c: Likewise.
60741         * lib/classpath.h: Likewise.
60742         * lib/clean-temp.c: Likewise.
60743         * lib/clean-temp.h: Likewise.
60744         * lib/cloexec.c: Likewise.
60745         * lib/close-stream.c: Likewise.
60746         * lib/closein.c: Likewise.
60747         * lib/closein.h: Likewise.
60748         * lib/closeout.c: Likewise.
60749         * lib/closeout.h: Likewise.
60750         * lib/concat-filename.c: Likewise.
60751         * lib/copy-file.c: Likewise.
60752         * lib/copy-file.h: Likewise.
60753         * lib/count-one-bits.h: Likewise.
60754         * lib/crc.c: Likewise.
60755         * lib/crc.h: Likewise.
60756         * lib/creat-safer.c: Likewise.
60757         * lib/csharpcomp.c: Likewise.
60758         * lib/csharpcomp.h: Likewise.
60759         * lib/csharpexec.c: Likewise.
60760         * lib/csharpexec.h: Likewise.
60761         * lib/cycle-check.c: Likewise.
60762         * lib/cycle-check.h: Likewise.
60763         * lib/diacrit.c: Likewise.
60764         * lib/diacrit.h: Likewise.
60765         * lib/diffseq.h: Likewise.
60766         * lib/dirchownmod.c: Likewise.
60767         * lib/dirent.in.h: Likewise.
60768         * lib/dirfd.c: Likewise.
60769         * lib/dirfd.h: Likewise.
60770         * lib/dirname.c: Likewise.
60771         * lib/dirname.h: Likewise.
60772         * lib/dummy.c: Likewise.
60773         * lib/dup-safer.c: Likewise.
60774         * lib/dup2.c: Likewise.
60775         * lib/eealloc.h: Likewise.
60776         * lib/error.c: Likewise.
60777         * lib/error.h: Likewise.
60778         * lib/euidaccess.c: Likewise.
60779         * lib/exclude.c: Likewise.
60780         * lib/exclude.h: Likewise.
60781         * lib/execute.c: Likewise.
60782         * lib/execute.h: Likewise.
60783         * lib/exitfail.c: Likewise.
60784         * lib/exitfail.h: Likewise.
60785         * lib/expl.c: Likewise.
60786         * lib/fatal-signal.c: Likewise.
60787         * lib/fatal-signal.h: Likewise.
60788         * lib/fbufmode.c: Likewise.
60789         * lib/fbufmode.h: Likewise.
60790         * lib/fchdir.c: Likewise.
60791         * lib/fchmodat.c: Likewise.
60792         * lib/fchownat.c: Likewise.
60793         * lib/fcntl--.h: Likewise.
60794         * lib/fcntl-safer.h: Likewise.
60795         * lib/fcntl.in.h: Likewise.
60796         * lib/fd-safer.c: Likewise.
60797         * lib/fflush.c: Likewise.
60798         * lib/file-has-acl.c: Likewise.
60799         * lib/file-set.c: Likewise.
60800         * lib/file-type.c: Likewise.
60801         * lib/file-type.h: Likewise.
60802         * lib/fileblocks.c: Likewise.
60803         * lib/filemode.c: Likewise.
60804         * lib/filemode.h: Likewise.
60805         * lib/filename.h: Likewise.
60806         * lib/filenamecat.c: Likewise.
60807         * lib/filenamecat.h: Likewise.
60808         * lib/findprog.c: Likewise.
60809         * lib/findprog.h: Likewise.
60810         * lib/float.in.h: Likewise.
60811         * lib/floor.c: Likewise.
60812         * lib/floorf.c: Likewise.
60813         * lib/floorl.c: Likewise.
60814         * lib/fopen-safer.c: Likewise.
60815         * lib/fopen.c: Likewise.
60816         * lib/fpending.c: Likewise.
60817         * lib/fpending.h: Likewise.
60818         * lib/fprintf.c: Likewise.
60819         * lib/fprintftime.h: Likewise.
60820         * lib/fpucw.h: Likewise.
60821         * lib/fpurge.c: Likewise.
60822         * lib/fpurge.h: Likewise.
60823         * lib/freadable.c: Likewise.
60824         * lib/freadable.h: Likewise.
60825         * lib/freadahead.c: Likewise.
60826         * lib/freadahead.h: Likewise.
60827         * lib/freading.c: Likewise.
60828         * lib/freading.h: Likewise.
60829         * lib/free.c: Likewise.
60830         * lib/freopen.c: Likewise.
60831         * lib/frexp.c: Likewise.
60832         * lib/frexpl.c: Likewise.
60833         * lib/fseek.c: Likewise.
60834         * lib/fseterr.c: Likewise.
60835         * lib/fseterr.h: Likewise.
60836         * lib/fstatat.c: Likewise.
60837         * lib/fstrcmp.c: Likewise.
60838         * lib/fstrcmp.h: Likewise.
60839         * lib/fsusage.c: Likewise.
60840         * lib/fsusage.h: Likewise.
60841         * lib/ftell.c: Likewise.
60842         * lib/ftello.c: Likewise.
60843         * lib/fts-cycle.c: Likewise.
60844         * lib/fts.c: Likewise.
60845         * lib/fts_.h: Likewise.
60846         * lib/full-read.c: Likewise.
60847         * lib/full-read.h: Likewise.
60848         * lib/full-write.c: Likewise.
60849         * lib/full-write.h: Likewise.
60850         * lib/fwritable.c: Likewise.
60851         * lib/fwritable.h: Likewise.
60852         * lib/fwriteerror.c: Likewise.
60853         * lib/fwriteerror.h: Likewise.
60854         * lib/fwriting.c: Likewise.
60855         * lib/fwriting.h: Likewise.
60856         * lib/gcd.c: Likewise.
60857         * lib/gcd.h: Likewise.
60858         * lib/getcwd.c: Likewise.
60859         * lib/getdate.h: Likewise.
60860         * lib/getdate.y: Likewise.
60861         * lib/getdomainname.c: Likewise.
60862         * lib/getdomainname.h: Likewise.
60863         * lib/getgroups.c: Likewise.
60864         * lib/gethostname.c: Likewise.
60865         * lib/gethrxtime.c: Likewise.
60866         * lib/gethrxtime.h: Likewise.
60867         * lib/getloadavg.c: Likewise.
60868         * lib/getndelim2.c: Likewise.
60869         * lib/getndelim2.h: Likewise.
60870         * lib/getnline.c: Likewise.
60871         * lib/getnline.h: Likewise.
60872         * lib/getopt.c: Likewise.
60873         * lib/getopt.in.h: Likewise.
60874         * lib/getopt1.c: Likewise.
60875         * lib/getopt_int.h: Likewise.
60876         * lib/getpagesize.h: Likewise.
60877         * lib/getsubopt.c: Likewise.
60878         * lib/gettime.c: Likewise.
60879         * lib/getugroups.c: Likewise.
60880         * lib/getugroups.h: Likewise.
60881         * lib/getusershell.c: Likewise.
60882         * lib/gl_anyavltree_list1.h: Likewise.
60883         * lib/gl_anyavltree_list2.h: Likewise.
60884         * lib/gl_anyhash_list1.h: Likewise.
60885         * lib/gl_anyhash_list2.h: Likewise.
60886         * lib/gl_anylinked_list1.h: Likewise.
60887         * lib/gl_anylinked_list2.h: Likewise.
60888         * lib/gl_anyrbtree_list1.h: Likewise.
60889         * lib/gl_anyrbtree_list2.h: Likewise.
60890         * lib/gl_anytree_list1.h: Likewise.
60891         * lib/gl_anytree_list2.h: Likewise.
60892         * lib/gl_anytree_oset.h: Likewise.
60893         * lib/gl_anytreehash_list1.h: Likewise.
60894         * lib/gl_anytreehash_list2.h: Likewise.
60895         * lib/gl_array_list.c: Likewise.
60896         * lib/gl_array_list.h: Likewise.
60897         * lib/gl_array_oset.c: Likewise.
60898         * lib/gl_array_oset.h: Likewise.
60899         * lib/gl_avltree_list.c: Likewise.
60900         * lib/gl_avltree_list.h: Likewise.
60901         * lib/gl_avltree_oset.c: Likewise.
60902         * lib/gl_avltree_oset.h: Likewise.
60903         * lib/gl_avltreehash_list.c: Likewise.
60904         * lib/gl_avltreehash_list.h: Likewise.
60905         * lib/gl_carray_list.c: Likewise.
60906         * lib/gl_carray_list.h: Likewise.
60907         * lib/gl_linked_list.c: Likewise.
60908         * lib/gl_linked_list.h: Likewise.
60909         * lib/gl_linkedhash_list.c: Likewise.
60910         * lib/gl_linkedhash_list.h: Likewise.
60911         * lib/gl_list.c: Likewise.
60912         * lib/gl_list.h: Likewise.
60913         * lib/gl_oset.c: Likewise.
60914         * lib/gl_oset.h: Likewise.
60915         * lib/gl_rbtree_list.c: Likewise.
60916         * lib/gl_rbtree_list.h: Likewise.
60917         * lib/gl_rbtree_oset.c: Likewise.
60918         * lib/gl_rbtree_oset.h: Likewise.
60919         * lib/gl_rbtreehash_list.c: Likewise.
60920         * lib/gl_rbtreehash_list.h: Likewise.
60921         * lib/gl_sublist.c: Likewise.
60922         * lib/gl_sublist.h: Likewise.
60923         * lib/group-member.c: Likewise.
60924         * lib/group-member.h: Likewise.
60925         * lib/hard-locale.c: Likewise.
60926         * lib/hard-locale.h: Likewise.
60927         * lib/hash-pjw.c: Likewise.
60928         * lib/hash-pjw.h: Likewise.
60929         * lib/hash-triple.c: Likewise.
60930         * lib/hash.c: Likewise.
60931         * lib/hash.h: Likewise.
60932         * lib/human.c: Likewise.
60933         * lib/human.h: Likewise.
60934         * lib/i-ring.c: Likewise.
60935         * lib/i-ring.h: Likewise.
60936         * lib/idcache.c: Likewise.
60937         * lib/imaxabs.c: Likewise.
60938         * lib/imaxdiv.c: Likewise.
60939         * lib/inet_pton.c: Likewise.
60940         * lib/inet_pton.h: Likewise.
60941         * lib/intprops.h: Likewise.
60942         * lib/inttostr.c: Likewise.
60943         * lib/inttostr.h: Likewise.
60944         * lib/inttypes.in.h: Likewise.
60945         * lib/isapipe.c: Likewise.
60946         * lib/isdir.c: Likewise.
60947         * lib/isnan.c: Likewise.
60948         * lib/isnan.h: Likewise.
60949         * lib/isnanf.c: Likewise.
60950         * lib/isnanf.h: Likewise.
60951         * lib/isnanl-nolibm.h: Likewise.
60952         * lib/isnanl.c: Likewise.
60953         * lib/isnanl.h: Likewise.
60954         * lib/javacomp.c: Likewise.
60955         * lib/javacomp.h: Likewise.
60956         * lib/javaexec.c: Likewise.
60957         * lib/javaexec.h: Likewise.
60958         * lib/javaversion.c: Likewise.
60959         * lib/javaversion.h: Likewise.
60960         * lib/javaversion.java: Likewise.
60961         * lib/lbrkprop.h: Likewise.
60962         * lib/lchmod.h: Likewise.
60963         * lib/lchown.c: Likewise.
60964         * lib/ldexpl.c: Likewise.
60965         * lib/linebreak.c: Likewise.
60966         * lib/linebreak.h: Likewise.
60967         * lib/linebuffer.c: Likewise.
60968         * lib/linebuffer.h: Likewise.
60969         * lib/locale.in.h: Likewise.
60970         * lib/logl.c: Likewise.
60971         * lib/long-options.c: Likewise.
60972         * lib/long-options.h: Likewise.
60973         * lib/lstat.c: Likewise.
60974         * lib/lstat.h: Likewise.
60975         * lib/math.in.h: Likewise.
60976         * lib/mbchar.c: Likewise.
60977         * lib/mbchar.h: Likewise.
60978         * lib/mbfile.h: Likewise.
60979         * lib/mbiter.h: Likewise.
60980         * lib/mbscasecmp.c: Likewise.
60981         * lib/mbscasestr.c: Likewise.
60982         * lib/mbschr.c: Likewise.
60983         * lib/mbscspn.c: Likewise.
60984         * lib/mbslen.c: Likewise.
60985         * lib/mbsncasecmp.c: Likewise.
60986         * lib/mbsnlen.c: Likewise.
60987         * lib/mbspbrk.c: Likewise.
60988         * lib/mbspcasecmp.c: Likewise.
60989         * lib/mbsrchr.c: Likewise.
60990         * lib/mbssep.c: Likewise.
60991         * lib/mbsspn.c: Likewise.
60992         * lib/mbsstr.c: Likewise.
60993         * lib/mbstok_r.c: Likewise.
60994         * lib/mbswidth.c: Likewise.
60995         * lib/mbswidth.h: Likewise.
60996         * lib/mbuiter.h: Likewise.
60997         * lib/memcasecmp.c: Likewise.
60998         * lib/memcasecmp.h: Likewise.
60999         * lib/memchr.c: Likewise.
61000         * lib/memcmp.c: Likewise.
61001         * lib/memcoll.c: Likewise.
61002         * lib/memcoll.h: Likewise.
61003         * lib/memcpy.c: Likewise.
61004         * lib/memrchr.c: Likewise.
61005         * lib/mkancesdirs.c: Likewise.
61006         * lib/mkdir-p.c: Likewise.
61007         * lib/mkdir-p.h: Likewise.
61008         * lib/mkdir.c: Likewise.
61009         * lib/mkdirat.c: Likewise.
61010         * lib/mkdtemp.c: Likewise.
61011         * lib/mkstemp-safer.c: Likewise.
61012         * lib/mkstemp.c: Likewise.
61013         * lib/modechange.c: Likewise.
61014         * lib/modechange.h: Likewise.
61015         * lib/mountlist.c: Likewise.
61016         * lib/mountlist.h: Likewise.
61017         * lib/mpsort.c: Likewise.
61018         * lib/nanosleep.c: Likewise.
61019         * lib/obstack.c: Likewise.
61020         * lib/obstack.h: Likewise.
61021         * lib/open-safer.c: Likewise.
61022         * lib/open.c: Likewise.
61023         * lib/openat-die.c: Likewise.
61024         * lib/openat-priv.h: Likewise.
61025         * lib/openat-proc.c: Likewise.
61026         * lib/openat.c: Likewise.
61027         * lib/openat.h: Likewise.
61028         * lib/pagealign_alloc.c: Likewise.
61029         * lib/pagealign_alloc.h: Likewise.
61030         * lib/physmem.c: Likewise.
61031         * lib/physmem.h: Likewise.
61032         * lib/pipe-safer.c: Likewise.
61033         * lib/pipe.c: Likewise.
61034         * lib/pipe.h: Likewise.
61035         * lib/posixtm.c: Likewise.
61036         * lib/posixtm.h: Likewise.
61037         * lib/posixver.c: Likewise.
61038         * lib/printf-frexp.c: Likewise.
61039         * lib/printf-frexp.h: Likewise.
61040         * lib/printf-frexpl.c: Likewise.
61041         * lib/printf-frexpl.h: Likewise.
61042         * lib/printf.c: Likewise.
61043         * lib/progname.c: Likewise.
61044         * lib/progname.h: Likewise.
61045         * lib/progreloc.c: Likewise.
61046         * lib/putenv.c: Likewise.
61047         * lib/quote.c: Likewise.
61048         * lib/quote.h: Likewise.
61049         * lib/quotearg.c: Likewise.
61050         * lib/quotearg.h: Likewise.
61051         * lib/raise.c: Likewise.
61052         * lib/readline.c: Likewise.
61053         * lib/readline.h: Likewise.
61054         * lib/readlink.c: Likewise.
61055         * lib/readtokens.c: Likewise.
61056         * lib/readtokens.h: Likewise.
61057         * lib/readtokens0.c: Likewise.
61058         * lib/readtokens0.h: Likewise.
61059         * lib/readutmp.c: Likewise.
61060         * lib/readutmp.h: Likewise.
61061         * lib/realloc.c: Likewise.
61062         * lib/relocwrapper.c: Likewise.
61063         * lib/rename-dest-slash.c: Likewise.
61064         * lib/rename.c: Likewise.
61065         * lib/rmdir.c: Likewise.
61066         * lib/rpmatch.c: Likewise.
61067         * lib/safe-read.c: Likewise.
61068         * lib/safe-read.h: Likewise.
61069         * lib/safe-write.c: Likewise.
61070         * lib/safe-write.h: Likewise.
61071         * lib/same-inode.h: Likewise.
61072         * lib/same.c: Likewise.
61073         * lib/same.h: Likewise.
61074         * lib/save-cwd.c: Likewise.
61075         * lib/save-cwd.h: Likewise.
61076         * lib/savedir.c: Likewise.
61077         * lib/savedir.h: Likewise.
61078         * lib/savewd.c: Likewise.
61079         * lib/savewd.h: Likewise.
61080         * lib/search.in.h: Likewise.
61081         * lib/setenv.c: Likewise.
61082         * lib/setenv.h: Likewise.
61083         * lib/settime.c: Likewise.
61084         * lib/sh-quote.c: Likewise.
61085         * lib/sh-quote.h: Likewise.
61086         * lib/sig2str.c: Likewise.
61087         * lib/sig2str.h: Likewise.
61088         * lib/signal.in.h: Likewise.
61089         * lib/signbitd.c: Likewise.
61090         * lib/signbitf.c: Likewise.
61091         * lib/signbitl.c: Likewise.
61092         * lib/sigprocmask.c: Likewise.
61093         * lib/sincosl.c: Likewise.
61094         * lib/sleep.c: Likewise.
61095         * lib/sprintf.c: Likewise.
61096         * lib/sqrtl.c: Likewise.
61097         * lib/stat-time.h: Likewise.
61098         * lib/stdio--.h: Likewise.
61099         * lib/stdio-safer.h: Likewise.
61100         * lib/stdlib--.h: Likewise.
61101         * lib/stdlib-safer.h: Likewise.
61102         * lib/stdlib.in.h: Likewise.
61103         * lib/stpcpy.c: Likewise.
61104         * lib/stpncpy.c: Likewise.
61105         * lib/strchrnul.c: Likewise.
61106         * lib/strcspn.c: Likewise.
61107         * lib/strerror.c: Likewise.
61108         * lib/strftime.c: Likewise.
61109         * lib/strftime.h: Likewise.
61110         * lib/striconveh.c: Likewise.
61111         * lib/striconveh.h: Likewise.
61112         * lib/striconveha.c: Likewise.
61113         * lib/striconveha.h: Likewise.
61114         * lib/stripslash.c: Likewise.
61115         * lib/strnlen1.c: Likewise.
61116         * lib/strnlen1.h: Likewise.
61117         * lib/strtod.c: Likewise.
61118         * lib/strtoimax.c: Likewise.
61119         * lib/strtok_r.c: Likewise.
61120         * lib/strtol.c: Likewise.
61121         * lib/strtoll.c: Likewise.
61122         * lib/strtoul.c: Likewise.
61123         * lib/strtoull.c: Likewise.
61124         * lib/sysexits.in.h: Likewise.
61125         * lib/tempname.c: Likewise.
61126         * lib/tempname.h: Likewise.
61127         * lib/timespec.h: Likewise.
61128         * lib/tls.c: Likewise.
61129         * lib/tls.h: Likewise.
61130         * lib/tmpdir.c: Likewise.
61131         * lib/tmpdir.h: Likewise.
61132         * lib/tmpfile-safer.c: Likewise.
61133         * lib/tmpfile.c: Likewise.
61134         * lib/trigl.c: Likewise.
61135         * lib/trigl.h: Likewise.
61136         * lib/trim.c: Likewise.
61137         * lib/trim.h: Likewise.
61138         * lib/trunc.c: Likewise.
61139         * lib/truncf.c: Likewise.
61140         * lib/truncl.c: Likewise.
61141         * lib/tsearch.c: Likewise.
61142         * lib/unicodeio.c: Likewise.
61143         * lib/unicodeio.h: Likewise.
61144         * lib/unistd--.h: Likewise.
61145         * lib/unistd-safer.h: Likewise.
61146         * lib/unistdio/ulc-fprintf.c: Likewise.
61147         * lib/unistdio/ulc-vfprintf.c: Likewise.
61148         * lib/unlinkdir.c: Likewise.
61149         * lib/unlinkdir.h: Likewise.
61150         * lib/unlocked-io.h: Likewise.
61151         * lib/unsetenv.c: Likewise.
61152         * lib/userspec.c: Likewise.
61153         * lib/utime.c: Likewise.
61154         * lib/utimecmp.c: Likewise.
61155         * lib/utimecmp.h: Likewise.
61156         * lib/utimens.c: Likewise.
61157         * lib/verify.h: Likewise.
61158         * lib/verror.c: Likewise.
61159         * lib/verror.h: Likewise.
61160         * lib/version-etc-fsf.c: Likewise.
61161         * lib/version-etc.c: Likewise.
61162         * lib/version-etc.h: Likewise.
61163         * lib/vfprintf.c: Likewise.
61164         * lib/vprintf.c: Likewise.
61165         * lib/vsprintf.c: Likewise.
61166         * lib/w32spawn.h: Likewise.
61167         * lib/wait-process.c: Likewise.
61168         * lib/wait-process.h: Likewise.
61169         * lib/wcwidth.c: Likewise.
61170         * lib/write-any-file.c: Likewise.
61171         * lib/xalloc-die.c: Likewise.
61172         * lib/xalloc.h: Likewise.
61173         * lib/xasprintf.c: Likewise.
61174         * lib/xgetcwd.c: Likewise.
61175         * lib/xgetcwd.h: Likewise.
61176         * lib/xgetdomainname.c: Likewise.
61177         * lib/xgetdomainname.h: Likewise.
61178         * lib/xgethostname.c: Likewise.
61179         * lib/xmalloc.c: Likewise.
61180         * lib/xmalloca.c: Likewise.
61181         * lib/xmalloca.h: Likewise.
61182         * lib/xmemcoll.c: Likewise.
61183         * lib/xnanosleep.c: Likewise.
61184         * lib/xreadlink.c: Likewise.
61185         * lib/xreadlink.h: Likewise.
61186         * lib/xsetenv.c: Likewise.
61187         * lib/xsetenv.h: Likewise.
61188         * lib/xstriconv.c: Likewise.
61189         * lib/xstriconv.h: Likewise.
61190         * lib/xstrndup.c: Likewise.
61191         * lib/xstrndup.h: Likewise.
61192         * lib/xstrtod.c: Likewise.
61193         * lib/xstrtod.h: Likewise.
61194         * lib/xstrtol-error.c: Likewise.
61195         * lib/xstrtol.c: Likewise.
61196         * lib/xstrtol.h: Likewise.
61197         * lib/xtime.h: Likewise.
61198         * lib/xvasprintf.c: Likewise.
61199         * lib/xvasprintf.h: Likewise.
61200         * lib/yesno.c: Likewise.
61201         * lib/yesno.h: Likewise.
61202         * posix-modules: Likewise.
61203         * tests/test-alloca-opt.c: Likewise.
61204         * tests/test-arcfour.c: Likewise.
61205         * tests/test-arctwo.c: Likewise.
61206         * tests/test-argmatch.c: Likewise.
61207         * tests/test-argp-2.sh: Likewise.
61208         * tests/test-argp.c: Likewise.
61209         * tests/test-arpa_inet.c: Likewise.
61210         * tests/test-array_list.c: Likewise.
61211         * tests/test-array_oset.c: Likewise.
61212         * tests/test-atexit.c: Likewise.
61213         * tests/test-avltree_list.c: Likewise.
61214         * tests/test-avltree_oset.c: Likewise.
61215         * tests/test-avltreehash_list.c: Likewise.
61216         * tests/test-base64.c: Likewise.
61217         * tests/test-binary-io.c: Likewise.
61218         * tests/test-byteswap.c: Likewise.
61219         * tests/test-c-ctype.c: Likewise.
61220         * tests/test-c-strcasecmp.c: Likewise.
61221         * tests/test-c-strcasestr.c: Likewise.
61222         * tests/test-c-strncasecmp.c: Likewise.
61223         * tests/test-c-strstr.c: Likewise.
61224         * tests/test-canonicalize-lgpl.c: Likewise.
61225         * tests/test-canonicalize.c: Likewise.
61226         * tests/test-carray_list.c: Likewise.
61227         * tests/test-ceilf.c: Likewise.
61228         * tests/test-ceill.c: Likewise.
61229         * tests/test-count-one-bits.c: Likewise.
61230         * tests/test-crc.c: Likewise.
61231         * tests/test-dirname.c: Likewise.
61232         * tests/test-fbufmode.c: Likewise.
61233         * tests/test-fcntl.c: Likewise.
61234         * tests/test-fflush.c: Likewise.
61235         * tests/test-floorf.c: Likewise.
61236         * tests/test-floorl.c: Likewise.
61237         * tests/test-fopen.c: Likewise.
61238         * tests/test-fprintf-posix.c: Likewise.
61239         * tests/test-fprintf-posix.h: Likewise.
61240         * tests/test-fpurge.c: Likewise.
61241         * tests/test-freadable.c: Likewise.
61242         * tests/test-freadahead.c: Likewise.
61243         * tests/test-freading.c: Likewise.
61244         * tests/test-freopen.c: Likewise.
61245         * tests/test-frexp.c: Likewise.
61246         * tests/test-frexpl.c: Likewise.
61247         * tests/test-fseek.c: Likewise.
61248         * tests/test-fseeko.c: Likewise.
61249         * tests/test-fseterr.c: Likewise.
61250         * tests/test-fstrcmp.c: Likewise.
61251         * tests/test-ftell.c: Likewise.
61252         * tests/test-ftello.c: Likewise.
61253         * tests/test-fwritable.c: Likewise.
61254         * tests/test-fwriting.c: Likewise.
61255         * tests/test-getaddrinfo.c: Likewise.
61256         * tests/test-getpass.c: Likewise.
61257         * tests/test-gettimeofday.c: Likewise.
61258         * tests/test-hmac-md5.c: Likewise.
61259         * tests/test-hmac-sha1.c: Likewise.
61260         * tests/test-iconv.c: Likewise.
61261         * tests/test-iconvme.c: Likewise.
61262         * tests/test-inttypes.c: Likewise.
61263         * tests/test-isnan.c: Likewise.
61264         * tests/test-isnanf.c: Likewise.
61265         * tests/test-isnanl-nolibm.c: Likewise.
61266         * tests/test-isnanl.c: Likewise.
61267         * tests/test-isnanl.h: Likewise.
61268         * tests/test-ldexpl.c: Likewise.
61269         * tests/test-linked_list.c: Likewise.
61270         * tests/test-linkedhash_list.c: Likewise.
61271         * tests/test-locale.c: Likewise.
61272         * tests/test-localename.c: Likewise.
61273         * tests/test-lock.c: Likewise.
61274         * tests/test-lseek.c: Likewise.
61275         * tests/test-malloca.c: Likewise.
61276         * tests/test-math.c: Likewise.
61277         * tests/test-mbscasecmp.c: Likewise.
61278         * tests/test-mbscasestr1.c: Likewise.
61279         * tests/test-mbscasestr2.c: Likewise.
61280         * tests/test-mbscasestr3.c: Likewise.
61281         * tests/test-mbscasestr4.c: Likewise.
61282         * tests/test-mbschr.c: Likewise.
61283         * tests/test-mbscspn.c: Likewise.
61284         * tests/test-mbsncasecmp.c: Likewise.
61285         * tests/test-mbspbrk.c: Likewise.
61286         * tests/test-mbspcasecmp.c: Likewise.
61287         * tests/test-mbsrchr.c: Likewise.
61288         * tests/test-mbsspn.c: Likewise.
61289         * tests/test-mbsstr1.c: Likewise.
61290         * tests/test-mbsstr2.c: Likewise.
61291         * tests/test-mbsstr3.c: Likewise.
61292         * tests/test-md5.c: Likewise.
61293         * tests/test-memmem.c: Likewise.
61294         * tests/test-netinet_in.c: Likewise.
61295         * tests/test-open.c: Likewise.
61296         * tests/test-printf-frexp.c: Likewise.
61297         * tests/test-printf-frexpl.c: Likewise.
61298         * tests/test-printf-posix.c: Likewise.
61299         * tests/test-printf-posix.h: Likewise.
61300         * tests/test-rbtree_list.c: Likewise.
61301         * tests/test-rbtree_oset.c: Likewise.
61302         * tests/test-rbtreehash_list.c: Likewise.
61303         * tests/test-read-file.c: Likewise.
61304         * tests/test-rijndael.c: Likewise.
61305         * tests/test-search.c: Likewise.
61306         * tests/test-signbit.c: Likewise.
61307         * tests/test-sleep.c: Likewise.
61308         * tests/test-snprintf-posix.c: Likewise.
61309         * tests/test-snprintf-posix.h: Likewise.
61310         * tests/test-snprintf.c: Likewise.
61311         * tests/test-sprintf-posix.c: Likewise.
61312         * tests/test-sprintf-posix.h: Likewise.
61313         * tests/test-stat-time.c: Likewise.
61314         * tests/test-stdbool.c: Likewise.
61315         * tests/test-stdint.c: Likewise.
61316         * tests/test-stdio.c: Likewise.
61317         * tests/test-stdlib.c: Likewise.
61318         * tests/test-stpncpy.c: Likewise.
61319         * tests/test-strcasestr.c: Likewise.
61320         * tests/test-striconv.c: Likewise.
61321         * tests/test-striconveh.c: Likewise.
61322         * tests/test-striconveha.c: Likewise.
61323         * tests/test-string.c: Likewise.
61324         * tests/test-sys_select.c: Likewise.
61325         * tests/test-sys_socket.c: Likewise.
61326         * tests/test-sys_stat.c: Likewise.
61327         * tests/test-sys_time.c: Likewise.
61328         * tests/test-sysexits.c: Likewise.
61329         * tests/test-time.c: Likewise.
61330         * tests/test-tls.c: Likewise.
61331         * tests/test-trunc.c: Likewise.
61332         * tests/test-truncf.c: Likewise.
61333         * tests/test-truncl.c: Likewise.
61334         * tests/test-unistd.c: Likewise.
61335         * tests/test-vasnprintf-posix.c: Likewise.
61336         * tests/test-vasnprintf-posix2.c: Likewise.
61337         * tests/test-vasnprintf.c: Likewise.
61338         * tests/test-vasprintf-posix.c: Likewise.
61339         * tests/test-vasprintf.c: Likewise.
61340         * tests/test-verify.c: Likewise.
61341         * tests/test-vfprintf-posix.c: Likewise.
61342         * tests/test-vprintf-posix.c: Likewise.
61343         * tests/test-vsnprintf-posix.c: Likewise.
61344         * tests/test-vsnprintf.c: Likewise.
61345         * tests/test-vsprintf-posix.c: Likewise.
61346         * tests/test-wchar.c: Likewise.
61347         * tests/test-wctype.c: Likewise.
61348         * tests/test-wcwidth.c: Likewise.
61349         * tests/test-xstrtol.c: Likewise.
61350         * tests/test-xvasprintf.c: Likewise.
61351         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61352         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61353         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61354         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61355         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61356         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61357         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61358         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61359         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61360         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61361         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61362         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61363         * tests/uniname/test-uninames.c: Likewise.
61364         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61365         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61366         * tests/unistdio/test-u16-printf1.h: Likewise.
61367         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61368         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61369         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61370         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61371         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61372         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61373         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61374         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61375         * tests/unistdio/test-u32-printf1.h: Likewise.
61376         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61377         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61378         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61379         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61380         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61381         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61382         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61383         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61384         * tests/unistdio/test-u8-printf1.h: Likewise.
61385         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61386         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61387         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61388         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61389         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61390         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61391         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61392         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61393         * tests/unistdio/test-ulc-printf1.h: Likewise.
61394         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61395         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61396         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61397         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61398         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61399         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61400         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61401         * tests/uniwidth/test-u16-width.c: Likewise.
61402         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61403         * tests/uniwidth/test-u32-width.c: Likewise.
61404         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61405         * tests/uniwidth/test-u8-width.c: Likewise.
61406         * tests/uniwidth/test-uc_width.c: Likewise.
61407         * config/srclist-update: Likewise.
61408         (fixlicense): Update to GPLv3+.
61409
61410         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61411         * tests/test-tsearch.c: Change copyright notice.
61412
61413         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61414         * lib/c-strcaseeq.h: Change copyright notice.
61415         * lib/streq.h: Likewise.
61416         * lib/uniconv.h: Likewise.
61417         * lib/uniconv/u-conv-from-enc.h: Likewise.
61418         * lib/uniconv/u-conv-to-enc.h: Likewise.
61419         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61420         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61421         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61422         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61423         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61424         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61425         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61426         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61427         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61428         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61429         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61430         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61431         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61432         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61433         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61434         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61435         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61436         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61437         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61438         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61439         * lib/uniname.h: Likewise.
61440         * lib/uniname/uniname.c: Likewise.
61441         * lib/unistdio.h: Likewise.
61442         * lib/unistdio/u-asnprintf.h: Likewise.
61443         * lib/unistdio/u-asprintf.h: Likewise.
61444         * lib/unistdio/u-printf-args.c: Likewise.
61445         * lib/unistdio/u-printf-args.h: Likewise.
61446         * lib/unistdio/u-printf-parse.h: Likewise.
61447         * lib/unistdio/u-snprintf.h: Likewise.
61448         * lib/unistdio/u-sprintf.h: Likewise.
61449         * lib/unistdio/u-vasprintf.h: Likewise.
61450         * lib/unistdio/u-vsnprintf.h: Likewise.
61451         * lib/unistdio/u-vsprintf.h: Likewise.
61452         * lib/unistdio/u16-asnprintf.c: Likewise.
61453         * lib/unistdio/u16-asprintf.c: Likewise.
61454         * lib/unistdio/u16-printf-parse.c: Likewise.
61455         * lib/unistdio/u16-snprintf.c: Likewise.
61456         * lib/unistdio/u16-sprintf.c: Likewise.
61457         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61458         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61459         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61460         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61461         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61462         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61463         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61464         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61465         * lib/unistdio/u16-vasnprintf.c: Likewise.
61466         * lib/unistdio/u16-vasprintf.c: Likewise.
61467         * lib/unistdio/u16-vsnprintf.c: Likewise.
61468         * lib/unistdio/u16-vsprintf.c: Likewise.
61469         * lib/unistdio/u32-asnprintf.c: Likewise.
61470         * lib/unistdio/u32-asprintf.c: Likewise.
61471         * lib/unistdio/u32-printf-parse.c: Likewise.
61472         * lib/unistdio/u32-snprintf.c: Likewise.
61473         * lib/unistdio/u32-sprintf.c: Likewise.
61474         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61475         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61476         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61477         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61478         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61479         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61480         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61481         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61482         * lib/unistdio/u32-vasnprintf.c: Likewise.
61483         * lib/unistdio/u32-vasprintf.c: Likewise.
61484         * lib/unistdio/u32-vsnprintf.c: Likewise.
61485         * lib/unistdio/u32-vsprintf.c: Likewise.
61486         * lib/unistdio/u8-asnprintf.c: Likewise.
61487         * lib/unistdio/u8-asprintf.c: Likewise.
61488         * lib/unistdio/u8-printf-parse.c: Likewise.
61489         * lib/unistdio/u8-snprintf.c: Likewise.
61490         * lib/unistdio/u8-sprintf.c: Likewise.
61491         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61492         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61493         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61494         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61495         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61496         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61497         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61498         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61499         * lib/unistdio/u8-vasnprintf.c: Likewise.
61500         * lib/unistdio/u8-vasprintf.c: Likewise.
61501         * lib/unistdio/u8-vsnprintf.c: Likewise.
61502         * lib/unistdio/u8-vsprintf.c: Likewise.
61503         * lib/unistdio/ulc-asnprintf.c: Likewise.
61504         * lib/unistdio/ulc-asprintf.c: Likewise.
61505         * lib/unistdio/ulc-printf-parse.c: Likewise.
61506         * lib/unistdio/ulc-snprintf.c: Likewise.
61507         * lib/unistdio/ulc-sprintf.c: Likewise.
61508         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61509         * lib/unistdio/ulc-vasprintf.c: Likewise.
61510         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61511         * lib/unistdio/ulc-vsprintf.c: Likewise.
61512         * lib/unistr.h: Likewise.
61513         * lib/unistr/u-cpy-alloc.h: Likewise.
61514         * lib/unistr/u-cpy.h: Likewise.
61515         * lib/unistr/u-endswith.h: Likewise.
61516         * lib/unistr/u-move.h: Likewise.
61517         * lib/unistr/u-set.h: Likewise.
61518         * lib/unistr/u-startswith.h: Likewise.
61519         * lib/unistr/u-stpcpy.h: Likewise.
61520         * lib/unistr/u-stpncpy.h: Likewise.
61521         * lib/unistr/u-strcat.h: Likewise.
61522         * lib/unistr/u-strcpy.h: Likewise.
61523         * lib/unistr/u-strcspn.h: Likewise.
61524         * lib/unistr/u-strdup.h: Likewise.
61525         * lib/unistr/u-strlen.h: Likewise.
61526         * lib/unistr/u-strncat.h: Likewise.
61527         * lib/unistr/u-strncpy.h: Likewise.
61528         * lib/unistr/u-strnlen.h: Likewise.
61529         * lib/unistr/u-strpbrk.h: Likewise.
61530         * lib/unistr/u-strspn.h: Likewise.
61531         * lib/unistr/u-strstr.h: Likewise.
61532         * lib/unistr/u-strtok.h: Likewise.
61533         * lib/unistr/u16-check.c: Likewise.
61534         * lib/unistr/u16-chr.c: Likewise.
61535         * lib/unistr/u16-cmp.c: Likewise.
61536         * lib/unistr/u16-cpy-alloc.c: Likewise.
61537         * lib/unistr/u16-cpy.c: Likewise.
61538         * lib/unistr/u16-endswith.c: Likewise.
61539         * lib/unistr/u16-mblen.c: Likewise.
61540         * lib/unistr/u16-mbsnlen.c: Likewise.
61541         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61542         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61543         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61544         * lib/unistr/u16-mbtouc.c: Likewise.
61545         * lib/unistr/u16-mbtoucr.c: Likewise.
61546         * lib/unistr/u16-move.c: Likewise.
61547         * lib/unistr/u16-next.c: Likewise.
61548         * lib/unistr/u16-prev.c: Likewise.
61549         * lib/unistr/u16-set.c: Likewise.
61550         * lib/unistr/u16-startswith.c: Likewise.
61551         * lib/unistr/u16-stpcpy.c: Likewise.
61552         * lib/unistr/u16-stpncpy.c: Likewise.
61553         * lib/unistr/u16-strcat.c: Likewise.
61554         * lib/unistr/u16-strchr.c: Likewise.
61555         * lib/unistr/u16-strcmp.c: Likewise.
61556         * lib/unistr/u16-strcpy.c: Likewise.
61557         * lib/unistr/u16-strcspn.c: Likewise.
61558         * lib/unistr/u16-strdup.c: Likewise.
61559         * lib/unistr/u16-strlen.c: Likewise.
61560         * lib/unistr/u16-strmblen.c: Likewise.
61561         * lib/unistr/u16-strmbtouc.c: Likewise.
61562         * lib/unistr/u16-strncat.c: Likewise.
61563         * lib/unistr/u16-strncmp.c: Likewise.
61564         * lib/unistr/u16-strncpy.c: Likewise.
61565         * lib/unistr/u16-strnlen.c: Likewise.
61566         * lib/unistr/u16-strpbrk.c: Likewise.
61567         * lib/unistr/u16-strrchr.c: Likewise.
61568         * lib/unistr/u16-strspn.c: Likewise.
61569         * lib/unistr/u16-strstr.c: Likewise.
61570         * lib/unistr/u16-strtok.c: Likewise.
61571         * lib/unistr/u16-to-u32.c: Likewise.
61572         * lib/unistr/u16-to-u8.c: Likewise.
61573         * lib/unistr/u16-uctomb-aux.c: Likewise.
61574         * lib/unistr/u16-uctomb.c: Likewise.
61575         * lib/unistr/u32-check.c: Likewise.
61576         * lib/unistr/u32-chr.c: Likewise.
61577         * lib/unistr/u32-cmp.c: Likewise.
61578         * lib/unistr/u32-cpy-alloc.c: Likewise.
61579         * lib/unistr/u32-cpy.c: Likewise.
61580         * lib/unistr/u32-endswith.c: Likewise.
61581         * lib/unistr/u32-mblen.c: Likewise.
61582         * lib/unistr/u32-mbsnlen.c: Likewise.
61583         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61584         * lib/unistr/u32-mbtouc.c: Likewise.
61585         * lib/unistr/u32-mbtoucr.c: Likewise.
61586         * lib/unistr/u32-move.c: Likewise.
61587         * lib/unistr/u32-next.c: Likewise.
61588         * lib/unistr/u32-prev.c: Likewise.
61589         * lib/unistr/u32-set.c: Likewise.
61590         * lib/unistr/u32-startswith.c: Likewise.
61591         * lib/unistr/u32-stpcpy.c: Likewise.
61592         * lib/unistr/u32-stpncpy.c: Likewise.
61593         * lib/unistr/u32-strcat.c: Likewise.
61594         * lib/unistr/u32-strchr.c: Likewise.
61595         * lib/unistr/u32-strcmp.c: Likewise.
61596         * lib/unistr/u32-strcpy.c: Likewise.
61597         * lib/unistr/u32-strcspn.c: Likewise.
61598         * lib/unistr/u32-strdup.c: Likewise.
61599         * lib/unistr/u32-strlen.c: Likewise.
61600         * lib/unistr/u32-strmblen.c: Likewise.
61601         * lib/unistr/u32-strmbtouc.c: Likewise.
61602         * lib/unistr/u32-strncat.c: Likewise.
61603         * lib/unistr/u32-strncmp.c: Likewise.
61604         * lib/unistr/u32-strncpy.c: Likewise.
61605         * lib/unistr/u32-strnlen.c: Likewise.
61606         * lib/unistr/u32-strpbrk.c: Likewise.
61607         * lib/unistr/u32-strrchr.c: Likewise.
61608         * lib/unistr/u32-strspn.c: Likewise.
61609         * lib/unistr/u32-strstr.c: Likewise.
61610         * lib/unistr/u32-strtok.c: Likewise.
61611         * lib/unistr/u32-to-u16.c: Likewise.
61612         * lib/unistr/u32-to-u8.c: Likewise.
61613         * lib/unistr/u32-uctomb.c: Likewise.
61614         * lib/unistr/u8-check.c: Likewise.
61615         * lib/unistr/u8-chr.c: Likewise.
61616         * lib/unistr/u8-cmp.c: Likewise.
61617         * lib/unistr/u8-cpy-alloc.c: Likewise.
61618         * lib/unistr/u8-cpy.c: Likewise.
61619         * lib/unistr/u8-endswith.c: Likewise.
61620         * lib/unistr/u8-mblen.c: Likewise.
61621         * lib/unistr/u8-mbsnlen.c: Likewise.
61622         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61623         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61624         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61625         * lib/unistr/u8-mbtouc.c: Likewise.
61626         * lib/unistr/u8-mbtoucr.c: Likewise.
61627         * lib/unistr/u8-move.c: Likewise.
61628         * lib/unistr/u8-next.c: Likewise.
61629         * lib/unistr/u8-prev.c: Likewise.
61630         * lib/unistr/u8-set.c: Likewise.
61631         * lib/unistr/u8-startswith.c: Likewise.
61632         * lib/unistr/u8-stpcpy.c: Likewise.
61633         * lib/unistr/u8-stpncpy.c: Likewise.
61634         * lib/unistr/u8-strcat.c: Likewise.
61635         * lib/unistr/u8-strchr.c: Likewise.
61636         * lib/unistr/u8-strcmp.c: Likewise.
61637         * lib/unistr/u8-strcpy.c: Likewise.
61638         * lib/unistr/u8-strcspn.c: Likewise.
61639         * lib/unistr/u8-strdup.c: Likewise.
61640         * lib/unistr/u8-strlen.c: Likewise.
61641         * lib/unistr/u8-strmblen.c: Likewise.
61642         * lib/unistr/u8-strmbtouc.c: Likewise.
61643         * lib/unistr/u8-strncat.c: Likewise.
61644         * lib/unistr/u8-strncmp.c: Likewise.
61645         * lib/unistr/u8-strncpy.c: Likewise.
61646         * lib/unistr/u8-strnlen.c: Likewise.
61647         * lib/unistr/u8-strpbrk.c: Likewise.
61648         * lib/unistr/u8-strrchr.c: Likewise.
61649         * lib/unistr/u8-strspn.c: Likewise.
61650         * lib/unistr/u8-strstr.c: Likewise.
61651         * lib/unistr/u8-strtok.c: Likewise.
61652         * lib/unistr/u8-to-u16.c: Likewise.
61653         * lib/unistr/u8-to-u32.c: Likewise.
61654         * lib/unistr/u8-uctomb-aux.c: Likewise.
61655         * lib/unistr/u8-uctomb.c: Likewise.
61656         * lib/unitypes.h: Likewise.
61657         * lib/uniwidth.h: Likewise.
61658         * lib/uniwidth/cjk.h: Likewise.
61659         * lib/uniwidth/u16-strwidth.c: Likewise.
61660         * lib/uniwidth/u16-width.c: Likewise.
61661         * lib/uniwidth/u32-strwidth.c: Likewise.
61662         * lib/uniwidth/u32-width.c: Likewise.
61663         * lib/uniwidth/u8-strwidth.c: Likewise.
61664         * lib/uniwidth/u8-width.c: Likewise.
61665         * lib/uniwidth/width.c: Likewise.
61666
61667 2007-10-07  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61670         The file is still under LGPL (see modules/inttypes).
61671
61672 2007-10-06  Bruno Haible  <bruno@clisp.org>
61673
61674         * modules/trunc (Dependencies): Add 'extensions'.
61675         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61676         Reported by Ben Pfaff <blp@gnu.org>.
61677
61678 2007-10-06  Bruno Haible  <bruno@clisp.org>
61679
61680         * modules/freopen-tests: New file.
61681         * tests/test-freopen.c: New file.
61682
61683         * modules/fopen-tests: New file.
61684         * tests/test-fopen.c: New file.
61685
61686         * modules/fopen: New file.
61687         * lib/fopen.c: New file.
61688         * m4/fopen.m4: New file.
61689         * modules/freopen: New file.
61690         * lib/freopen.c: New file.
61691         * m4/freopen.m4: New file.
61692         * lib/stdio.in.h (fopen, freopen): New declarations.
61693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61694         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61695         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61696         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61697         * doc/functions/fopen.texi: Mention the 'fopen' module.
61698         * doc/functions/freopen.texi: Mention the 'freopen' module.
61699
61700 2007-10-06  Bruno Haible  <bruno@clisp.org>
61701
61702         * modules/open-tests: New file.
61703         * tests/test-open.c: New file.
61704
61705         * modules/open: New file.
61706         * lib/open.c: New file.
61707         * m4/open.m4: New file.
61708         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61709         lib/open.c does.
61710         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61711         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61712         macros.
61713         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61714         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61715         REPLACE_OPEN.
61716         * doc/functions/open.texi: Mention the 'open' module.
61717
61718 2007-10-04  Bruno Haible  <bruno@clisp.org>
61719
61720         * modules/ceill-tests: New file.
61721         * tests/test-ceill.c: New file.
61722
61723         * modules/ceill: New file.
61724         * lib/ceill.c: Replace entire file.
61725         * m4/ceill.m4: New file.
61726         * lib/math.in.h (ceill): Replace declaration.
61727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61728         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61729         * doc/functions/ceill.texi: Mention the 'ceill' module.
61730         * modules/mathl (Files): Remove lib/ceill.c.
61731         (Depends-on): Add ceill.
61732
61733 2007-10-04  Bruno Haible  <bruno@clisp.org>
61734
61735         * modules/ceilf-tests: New file.
61736         * tests/test-ceilf.c: New file.
61737
61738         * modules/ceilf: New file.
61739         * lib/ceil.c: New file.
61740         * lib/ceilf.c: New file.
61741         * m4/ceilf.m4: New file.
61742         * lib/math.in.h (ceilf): New declaration.
61743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61744         HAVE_DECL_CEILF.
61745         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61746         HAVE_DECL_CEILF.
61747         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61748
61749 2007-10-04  Bruno Haible  <bruno@clisp.org>
61750
61751         * modules/floorl-tests: New file.
61752         * tests/test-floorl.c: New file.
61753
61754         * modules/floorl: New file.
61755         * lib/floorl.c: Replace entire file.
61756         * m4/floorl.m4: New file.
61757         * lib/math.in.h (floorl): Replace declaration.
61758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61759         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61760         * doc/functions/floorl.texi: Mention the 'floorl' module.
61761         * modules/mathl (Files): Remove lib/floorl.c.
61762         (Depends-on): Add floorl.
61763
61764 2007-10-04  Bruno Haible  <bruno@clisp.org>
61765
61766         * modules/floorf-tests: New file.
61767         * tests/test-floorf.c: New file.
61768
61769         * modules/floorf: New file.
61770         * lib/floor.c: New file.
61771         * lib/floorf.c: New file.
61772         * m4/floorf.m4: New file.
61773         * lib/math.in.h (floorf): New declaration.
61774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61775         HAVE_DECL_FLOORF.
61776         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61777         HAVE_DECL_FLOORF.
61778         * doc/functions/floorf.texi: Mention the 'floorf' module.
61779
61780 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61781             Bruno Haible  <bruno@clisp.org>
61782
61783         Advertise for the Git server instead of the CVS server.
61784         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61785         repository instead of the CVS one.
61786         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61787         about all VCS systems generically.
61788         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61789
61790 2007-10-04  Bruno Haible  <bruno@clisp.org>
61791
61792         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61793         means.
61794         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61795
61796 2007-10-04  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/truncl-tests: New file.
61799         * tests/test-truncl.c: New file.
61800
61801         * modules/truncl: New file.
61802         * lib/truncl.c: New file.
61803         * m4/truncl.m4: New file.
61804         * lib/math.in.h (truncl): New declaration.
61805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61806         HAVE_DECL_TRUNCL.
61807         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61808         HAVE_DECL_TRUNCL.
61809         * doc/functions/truncl.texi: Mention the 'truncl' module.
61810
61811 2007-10-04  Bruno Haible  <bruno@clisp.org>
61812
61813         * modules/truncf-tests: New file.
61814         * tests/test-truncf.c: New file.
61815
61816         * modules/truncf: New file.
61817         * lib/trunc.c: Make paramerizable through USE_* macros.
61818         * lib/truncf.c: New file.
61819         * m4/truncf.m4: New file.
61820         * lib/math.in.h (truncf): New declaration.
61821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61822         HAVE_DECL_TRUNCF.
61823         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61824         HAVE_DECL_TRUNCF.
61825         * doc/functions/truncf.texi: Mention the 'truncf' module.
61826
61827 2007-10-03  Bruno Haible  <bruno@clisp.org>
61828
61829         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61830         augmentation also for tests modules.
61831         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61832         * modules/atexit-tests (Makefile.am): Likewise.
61833         * modules/binary-io-tests (Makefile.am): Likewise.
61834         * modules/c-strcase-tests (Makefile.am): Likewise.
61835         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61836         * modules/canonicalize-tests (Makefile.am): Likewise.
61837         * modules/closein-tests (Makefile.am): Likewise.
61838         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61839         * modules/freadahead-tests (Makefile.am): Likewise.
61840         * modules/fseek-tests (Makefile.am): Likewise.
61841         * modules/fseeko-tests (Makefile.am): Likewise.
61842         * modules/ftell-tests (Makefile.am): Likewise.
61843         * modules/ftello-tests (Makefile.am): Likewise.
61844         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61845         * modules/isnanl-tests (Makefile.am): Likewise.
61846         * modules/lseek-tests (Makefile.am): Likewise.
61847         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61848         * modules/mbscasestr-tests (Makefile.am): Likewise.
61849         * modules/mbschr-tests (Makefile.am): Likewise.
61850         * modules/mbscspn-tests (Makefile.am): Likewise.
61851         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61852         * modules/mbspbrk-tests (Makefile.am): Likewise.
61853         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61854         * modules/mbsrchr-tests (Makefile.am): Likewise.
61855         * modules/mbsspn-tests (Makefile.am): Likewise.
61856         * modules/mbsstr-tests (Makefile.am): Likewise.
61857         * modules/printf-posix-tests (Makefile.am): Likewise.
61858         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61859         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61860         * modules/tsearch-tests (Makefile.am): Likewise.
61861         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61862         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61863         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61864         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61865         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61866         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61867         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61868         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61869         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61870         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61871         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61872         * modules/xstrtol-tests (Makefile.am): Likewise.
61873         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61874         * modules/yesno-tests (Makefile.am): Likewise.
61875
61876 2007-10-03  Bruno Haible  <bruno@clisp.org>
61877
61878         * modules/trunc-tests: New file.
61879         * tests/test-trunc.c: New file.
61880
61881         * modules/trunc: New file.
61882         * lib/trunc.c: New file.
61883         * m4/trunc.m4: New file.
61884         * lib/math.in.h (trunc): New declaration.
61885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61886         HAVE_DECL_TRUNC.
61887         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61888         HAVE_DECL_TRUNC.
61889         * doc/functions/trunc.texi: Mention the 'trunc' module.
61890
61891 2007-10-03  Bruno Haible  <bruno@clisp.org>
61892
61893         * tests/test-fpending.c: New file, mostly copied
61894         from coreutils/lib/t-fpending.c.
61895         * modules/fpending-tests: New file.
61896
61897 2007-10-03  Bruno Haible  <bruno@clisp.org>
61898
61899         Port the stdio extensions to QNX (untested).
61900         * lib/fseterr.c (fseterr): Add support for QNX.
61901         * lib/fbufmode.c (fbufmode): Likewise.
61902         * lib/freadable.c (freadable): Likewise.
61903         * lib/fwritable.c (fwritable): Likewise.
61904         * lib/freading.c (freading): Likewise.
61905         * lib/fwriting.c (fwriting): Likewise.
61906         * lib/freadahead.c (freadahed): Likewise.
61907         * lib/fpurge.c (fpurge): Likewise.
61908         * lib/fseeko.c (rpl_fseeko): Likewise.
61909
61910 2007-10-03  Bruno Haible  <bruno@clisp.org>
61911             Jim Meyering  <jim@meyering.net>
61912             Eric Blake  <ebb9@byu.net>
61913
61914         * doc/relocatable.texi: Use @command instead of @program.
61915
61916 2007-10-02  Jim Meyering  <jim@meyering.net>
61917
61918         Perform one more "_.h" -> ".in.h" substitution.
61919         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61920         instead of unistd_.h here, too.
61921
61922 2007-10-01  Bruno Haible  <bruno@clisp.org>
61923
61924         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61925         Needed for the alloca-opt module.
61926
61927 2007-09-30  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61930         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61931         alloca_.h.
61932         * lib/argz.in.h: Renamed from lib/argz_.h.
61933         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61934         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61935         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61936         byteswap_.h.
61937         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61938         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61939         dirent_.h.
61940         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61941         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61942         fcntl_.h.
61943         * lib/float.in.h: Renamed from lib/float_.h.
61944         * modules/float (Files, Makefile.am): Use float.in.h instead of
61945         float_.h.
61946         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61947         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61948         fnmatch_.h.
61949         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61950         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61951         getopt_.h.
61952         * lib/glob.in.h: Renamed from lib/glob_.h.
61953         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61954         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61955         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61956         iconv_.h.
61957         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61958         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61959         inttypes_.h.
61960         * lib/locale.in.h: Renamed from lib/locale_.h.
61961         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61962         locale_.h.
61963         * lib/math.in.h: Renamed from lib/math_.h.
61964         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61965         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61966         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61967         of netinet_in_.h. Add dependency.
61968         * lib/poll.in.h: Renamed from lib/poll_.h.
61969         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61970         * lib/search.in.h: Renamed from lib/search_.h.
61971         * modules/search (Files, Makefile.am): Use search.in.h instead of
61972         search_.h.
61973         * lib/signal.in.h: Renamed from lib/signal_.h.
61974         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61975         _signal.h.
61976         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61977         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61978         stdbool_.h.
61979         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61980         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61981         stdint_.h.
61982         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61983         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61984         stdio_.h.
61985         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61986         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61987         stdlib_.h.
61988         * lib/string.in.h: Renamed from lib/string_.h.
61989         * modules/string (Files, Makefile.am): Use string.in.h instead of
61990         string_.h.
61991         * doc/gnulib-tool.texi (Initial import): Update.
61992         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61993         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61994         of sys_select_.h. Add dependency.
61995         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61996         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61997         of sys_socket_.h.
61998         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61999         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62000         sys_stat_.h.
62001         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62002         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62003         sys_time_.h.
62004         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62005         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62006         sysexits_.h.
62007         * lib/time.in.h: Renamed from lib/time_.h.
62008         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62009         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62010         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62011         unistd_.h.
62012         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62013         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62014         wchar_.h.
62015         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62016         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62017         wctype_.h.
62018         * build-aux/bootstrap (slurp): Update.
62019         * lib/.cppi-disable: Update.
62020
62021 2007-09-30  Bruno Haible  <bruno@clisp.org>
62022
62023         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62024         Needed on BeOS.
62025
62026 2007-09-30  Bruno Haible  <bruno@clisp.org>
62027
62028         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62029
62030 2007-09-29  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62033
62034 2007-09-29  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62037         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62038         * build-aux/install-reloc: Compile also areadlink.c.
62039         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62040
62041 2007-09-29  Bruno Haible  <bruno@clisp.org>
62042
62043         * gnulib-tool (func_emit_initmacro_done): Indentation.
62044
62045 2007-09-29  Bruno Haible  <bruno@clisp.org>
62046
62047         * README: Add CVS checkout update instructions.
62048         Info from Bob Proulx <bob@proulx.com>.
62049
62050 2007-09-28  Eric Blake  <ebb9@byu.net>
62051
62052         Provide move-if-change.
62053         * build-aux/move-if-change: New file, based on best practice
62054         rather than any canonical upstream location.
62055
62056 2007-09-28  Jim Meyering  <jim@meyering.net>
62057
62058         Fix canonicalize loop-detection corner case.
62059         Do not attempt to stat the symlink values stored via seen_triple.
62060         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62061         on linux-2.6.18, (but not 2.6.22).
62062         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62063         triple_compare.  The former compares dev,ino,filename, while the latter
62064         would actually stat dirname(filename) when dev and ino were equal.
62065         * lib/hash-triple.c: Install <string.h>.
62066         (STREQ): Define.
62067         (triple_compare_ino_str): New function.
62068         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62069
62070 2007-09-28  Eric Blake  <ebb9@byu.net>
62071
62072         Enforce that AC_REPLACE_FUNCS files exist.
62073         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62074         override check for typos.
62075
62076         Fix test-closein on Solaris 10.
62077         * tests/test-closein.c (main): Don't assume stdin can be inherited
62078         closed on all systems.
62079         * tests/test-closein.sh: Likewise.
62080         Reported by Piotr Tarnowski.
62081
62082 2007-09-28  Jim Meyering  <jim@meyering.net>
62083
62084         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62085
62086 2007-09-27  Jim Meyering  <jim@meyering.net>
62087
62088         canonicalize: Avoid a false-positive cycle failure.
62089         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62090         Sort.  Remove cycle-check.
62091         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62092         not cycle-check.h.
62093         (seen_triple): New function.
62094         (canonicalize_filename_mode): Use it instead of cycle-check.
62095         * tests/test-canonicalize.c: Add a test for this bug.
62096         * tests/test-canonicalize.sh: Set up and run the test.
62097
62098         New module, file-set, from coreutils.
62099         * modules/file-set: Define it.
62100         * lib/file-set.c, lib/file-set.h: Implement.
62101
62102         New module, hash-triple, from coreutils.
62103         * modules/hash-triple: Define it.
62104         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62105
62106 2007-09-25  Eric Blake  <ebb9@byu.net>
62107
62108         Fix strerror on Interix.
62109         * lib/string_.h (strerror): Declare replacement.
62110         * doc/functions/strerror.texi (strerror): Document the Interix
62111         shortcoming.
62112         * modules/string (Makefile.am): Support new hooks.
62113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62114         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62115         gl_FUNC_STRERROR_SEPARATE.
62116         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62117         * lib/strerror.c (rpl_strerror): Provide replacement.
62118         * modules/strerror (Depends-on): Add string.
62119         (configure.ac): Detect use of module.
62120         * tests/test-strerror.c: New file.
62121         * modules/strerror-tests: New test module.
62122         * modules/argp (Depends-on): Add strerror.
62123         * modules/error (Depends-on): Likewise.
62124         Reported by Martin Koeppe.
62125
62126 2007-09-24  Bruno Haible  <bruno@clisp.org>
62127
62128         * README: Update git instructions.
62129
62130 2007-09-24  Eric Blake  <ebb9@byu.net>
62131
62132         Revert fpending breakage from 2007-09-08.
62133         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62134         __fpending.c.
62135
62136 2007-09-24  Jim Meyering  <jim@meyering.net>
62137
62138         filenamecat.c: Add a test.
62139         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62140         showing how the function works when DIR is the empty string.
62141
62142 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62143
62144         * tests/test-canonicalize.sh: Turn on executable bit.
62145
62146 2007-09-19  Eric Blake  <ebb9@byu.net>
62147
62148         * README: Update CVS instructions.
62149
62150 2007-09-18  Bruno Haible  <bruno@clisp.org>
62151
62152         * modules/areadlink: New file.
62153         * lib/areadlink.h (areadlink): New declaration.
62154         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62155
62156 2007-09-17  Jim Meyering  <jim@meyering.net>
62157
62158         * lib/savewd.c (ESTALE) [!defined]: Define.
62159         Reported to be required on Interix by Martin Koeppe.
62160
62161 2007-09-17  Bruno Haible  <bruno@clisp.org>
62162
62163         * gnulib-tool (func_version): Use $version.
62164
62165 2007-09-16  Bruno Haible  <bruno@clisp.org>
62166
62167         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62168         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62169         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62170         Reported by Greg Schafer <gschafer@zip.com.au>.
62171
62172 2007-09-15  Bruno Haible  <bruno@clisp.org>
62173
62174         * gnulib-tool (sed): Try a little harder to make bash understand the
62175         alias.
62176         Reported by Bruce Korb <bruce.korb@gmail.com>.
62177
62178 2007-09-13  Eric Blake  <ebb9@byu.net>
62179
62180         * ChangeLog: Remove conflict markers.
62181
62182 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62183
62184         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62185         Reported by Bruno Haible <bruno@clisp.org>.
62186
62187 2007-09-12  Bruno Haible  <bruno@clisp.org>
62188
62189         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62190         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62191         is not defined.
62192
62193 2007-09-12  Eric Blake  <ebb9@byu.net>
62194
62195         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62196         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62197         Autoconf definition.
62198         * modules/euidaccess (Depends-on): Add extensions, for
62199         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62200         * modules/fnmatch (Depends-on): Likewise.
62201         * modules/getaddrinfo (Depends-on): Likewise.
62202         * modules/getdelim (Depends-on): Likewise.
62203         * modules/getline (Depends-on): Likewise.
62204         * modules/getsubopt (Depends-on): Likewise.
62205         * modules/gettext (Depends-on): Likewise.
62206         * modules/group-member (Depends-on): Likewise.
62207         * modules/mbchar (Depends-on): Likewise.
62208         * modules/memmem (Depends-on): Likewise.
62209         * modules/mempcpy (Depends-on): Likewise.
62210         * modules/memrchr (Depends-on): Likewise.
62211         * modules/pagealign_alloc (Depends-on): Likewise.
62212         * modules/readutmp (Depends-on): Likewise.
62213         * modules/stpcpy (Depends-on): Likewise.
62214         * modules/stpncpy (Depends-on): Likewise.
62215         * modules/strchrnul (Depends-on): Likewise.
62216         * modules/strndup (Depends-on): Likewise.
62217         * modules/strsep (Depends-on): Likewise.
62218         * modules/strverscmp (Depends-on): Likewise.
62219         * modules/vasprintf (Depends-on): Likewise.
62220         * modules/wcwidth (Depends-on): Likewise.
62221         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62222         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62223         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62225         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62226         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62227         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62228         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62229         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62230         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62232         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62234         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62235         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62236         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62237         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62238         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62239         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62240         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62242         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62243         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62244         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62245         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62247         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62248         so that lock.m4 can be used in gettext without extensions module.
62249
62250 2007-09-11  Bruno Haible  <bruno@clisp.org>
62251
62252         * m4/isc-posix.m4: Remove file.
62253         Suggested by Eric Blake.
62254
62255 2007-09-11  Eric Blake  <ebb9@byu.net>
62256
62257         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62258
62259 2007-09-10  Bruno Haible  <bruno@clisp.org>
62260
62261         * posix-modules: Fix typo in error message.
62262         Reported by Matt <mkraai@beckman.com>.
62263
62264 2007-09-09  Bruno Haible  <bruno@clisp.org>
62265
62266         * doc/functions/getdelim.texi: Update list of platforms lacking the
62267         function.
62268         * doc/functions/getline.texi: Likewise.
62269
62270 2007-09-09  Jim Meyering  <jim@meyering.net>
62271
62272         * lib/hash.c (hash_initialize): Detect calloc failure.
62273         Reported by Bruno Haible.
62274
62275 2007-09-09  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62278         malloc or realloc fails.
62279
62280 2007-09-09  Bruno Haible  <bruno@clisp.org>
62281
62282         * modules/getcwd (Depends-on): Add malloc-posix.
62283         * modules/glob (Depends-on): Likewise.
62284         * modules/putenv (Depends-on): Likewise.
62285         * modules/strdup (Depends-on): Likewise.
62286         * modules/getdelim (Depends-on): Add realloc-posix.
62287         * modules/read-file (Depends-on): Likewise.
62288
62289 2007-09-09  Bruno Haible  <bruno@clisp.org>
62290
62291         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62292         (gl_FUNC_MALLOC_POSIX): Require it.
62293         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62294         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62295         * modules/realloc (Files): Add m4/malloc.m4.
62296         * modules/calloc (Files): Likewise.
62297
62298 2007-09-09  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/malloc-posix: New file.
62301         * modules/malloc (Depends-on): Add malloc-posix.
62302         * lib/malloc.c: Include errno.h.
62303         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62304         and a POSIX-compatible malloc into a single function. Set ENOMEM
62305         when returning NULL.
62306         * m4/malloc.m4: New file.
62307         * doc/functions/malloc.texi: Mention the malloc-posix module.
62308         * lib/stdlib_.h (malloc): New declaration.
62309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62310         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62311         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62312         and HAVE_MALLOC_POSIX.
62313
62314 2007-09-09  Bruno Haible  <bruno@clisp.org>
62315
62316         * modules/realloc-posix: New file.
62317         * modules/realloc (Depends-on): Add realloc-posix.
62318         * lib/realloc.c: Include errno.h.
62319         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62320         and a POSIX-compatible realloc into a single function. Set ENOMEM
62321         when returning NULL.
62322         * m4/realloc.m4: New file.
62323         * doc/functions/realloc.texi: Mention the realloc-posix module.
62324         * lib/stdlib_.h (realloc): New declaration.
62325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62326         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62327         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62328         and HAVE_REALLOC_POSIX.
62329
62330 2007-09-09  Bruno Haible  <bruno@clisp.org>
62331
62332         * modules/calloc-posix: New file.
62333         * modules/calloc (Depends-on): Add calloc-posix.
62334         * lib/calloc.c: Include errno.h.
62335         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62336         and a POSIX-compatible calloc into a single function. Set ENOMEM
62337         when returning NULL.
62338         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62339         * doc/functions/calloc.texi: Mention the calloc-posix module.
62340         * lib/stdlib_.h (calloc): New declaration.
62341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62342         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62343         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62344         and HAVE_CALLOC_POSIX.
62345
62346 2007-09-09  Bruno Haible  <bruno@clisp.org>
62347
62348         Allow for modules to show an arbitrary notice.
62349         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62350         * gnulib-tool: New option --extract-notice.
62351         (func_usage): Document it.
62352         (sed_extract_prog): Update.
62353         (func_get_notice): New function.
62354         (func_modules_notice): New function.
62355         (func_import, func_create_testdir): Invoke it.
62356         Suggested by Jim Meyering.
62357
62358 2007-09-09  Bruno Haible  <bruno@clisp.org>
62359
62360         * gnulib-tool: New options --verbose, --quiet.
62361         (func_usage): Document them.
62362         (verbose): New variable.
62363         (func_execute_command): New function.
62364         (func_import): Don't show the module list and the file list if
62365         $verbose < 0.
62366         (func_create_testdir): Likewise. Use func_execute_command.
62367         (func_create_megatestdir): Use func_execute_command.
62368
62369 2007-09-08  Bruno Haible  <bruno@clisp.org>
62370
62371         * gnulib-tool (func_import): Prefer rsync over wget when available,
62372         for fetching the PO files.
62373
62374 2007-09-08  Bruno Haible  <bruno@clisp.org>
62375
62376         * posix-modules: New file. Portions copied from gnulib-tool.
62377         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62378
62379 2007-09-08  Jim Meyering  <jim@meyering.net>
62380
62381         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62382         * lib/fpending.h: Rename from __fpending.h.
62383         * lib/fpending.c: Rename from __fpending.c.
62384         Include "fpending.h", not "__fpending.h".
62385         * lib/__fpending.h, lib/__fpending.c: Remove files.
62386         * modules/fpending (Files): Reflect new file names.
62387         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62388
62389 2007-09-08  Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/inttypes-h.m4: Remove stub file.
62392
62393 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62394
62395         * doc/headers/stdint.texi: Discuss #include_next issue.
62396
62397 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62400
62401 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62402
62403         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62404         in variable name.
62405
62406 2007-09-03  Jim Meyering  <jim@meyering.net>
62407
62408         New module: git-version-gen.
62409         * modules/git-version-gen: New file.
62410
62411         Import changes from coreutils for bootstrap script.
62412
62413         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62414
62415         bootstrap: uses rsync to download the .po files
62416         * build-aux/bootstrap (po_download_command_format): New global.
62417         (download_po_files): Use rsync.
62418         (update_po_files): Don't remove .po files after download,
62419         so future rsync runs can take advantage of the copies.
62420
62421         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62422
62423         Solve the unnecessary-.po-file-regeneration problem once and for all.
62424         * build-aux/bootstrap (download_po_files): New function, renamed from
62425         get_translations.  Now, downloads, but doesn't update LINGUAS.
62426         (update_po_files): New function.
62427
62428         bootstrap: Ignore more.
62429         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62430         uniwidth to e.g., lib/.gitignore.
62431         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62432
62433         * build-aux/bootstrap: New setting: vc_ignore.
62434         (insert_sorted_if_absent): Create $file if absent.
62435         Adapt to new, possibly empty, list: $vc_ignore.
62436
62437         bootstrap: generate more ignorable names
62438         * build-aux/bootstrap (slurp): When generating ignorable names,
62439         also map .sin to .sed, .gperf to .c, and .y to .c.
62440
62441 2007-09-03  Jim Meyering  <jim@meyering.net>
62442
62443         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62444         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62445
62446 2007-09-02  Bruno Haible  <bruno@clisp.org>
62447
62448         Fix mis-recognition of 'mcs' on QNX 6.
62449         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62450         output contains the string "Mono".
62451         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62452         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62453
62454 2007-09-01  Bruno Haible  <bruno@clisp.org>
62455
62456         Fix collision between uniwidth/* and linebreak modules.
62457         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62458         u32_width): Remove declarations.
62459         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62460         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62461         streq3, streq2, streq1, streq0): Remove functions.
62462         (STREQ): Remove macro.
62463         (is_cjk_encoding): Remove function.
62464         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62465         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62466         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62467         * NEWS: Document the change.
62468
62469 2007-09-01  Bruno Haible  <bruno@clisp.org>
62470
62471         * lib/streq.h: Add double-inclusion guard.
62472
62473 2007-09-01  Karl Berry  <karl@gnu.org>
62474
62475         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62476
62477 2007-08-28  Jim Meyering  <jim@meyering.net>
62478
62479         Rename mreadlink_with_size to areadlink_with_size.
62480         * NEWS: Document the change.
62481         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62482         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62483         * lib/mreadlink.h: Rename this to...
62484         * lib/areadlink.h: ...this.
62485         * modules/mreadlink-with-size: Rename this to...
62486         * modules/areadlink-with-size: ...this.
62487         * lib/canonicalize.c: Reflect the renaming.
62488         * modules/canonicalize: Likewise.
62489
62490 2007-08-26  Bruno Haible  <bruno@clisp.org>
62491
62492         * gnulib-tool (func_import): When deciding which files to remove,
62493         consider also dangling symbolic links.
62494         Reported by Eric Blake.
62495
62496 2007-08-26  Bruno Haible  <bruno@clisp.org>
62497
62498         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62499
62500 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62501
62502         * lib/readline.c: Don't include getline.h, the prototype is now
62503         found in stdio.h.
62504
62505 2007-08-23  Jim Meyering  <jim@meyering.net>
62506
62507         Getdelim touchup.
62508         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62509         around the funlockfile call, since funlockfile never sets errno.
62510         Don't set errno upon failed realloc.
62511
62512 2007-08-22  Eric Blake  <ebb9@byu.net>
62513
62514         Getline touchups.
62515         * lib/getdelim.c (getdelim): Revert regression that required *n to
62516         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62517         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62518         getdelim, rather than whether implementation is missing.
62519         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62520         * lib/stdio_.h (getline): Also declare if replacement is
62521         required.
62522         * doc/functions/getdelim.texi: New file.
62523         * doc/functions/getline.texi: Likewise.
62524         * doc/gnulib.texi (Function Substitutes): Add new files.
62525         Reported by Bruno Haible.
62526
62527 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62528
62529         * users.txt: Add Guile.
62530
62531 2007-08-22  Eric Blake  <ebb9@byu.net>
62532
62533         * tests/test-getdelim.c (main): Use remove, not unlink.
62534         * tests/test-getline.c (main): Likewise.
62535
62536         Move getline and getdelim into stdio.h, per POSIX 200x.
62537         * modules/getline (Files): Remove getline.h.
62538         (Depends-on): Add stdio.
62539         (configure.ac): Add module indicator.
62540         * modules/getdelim (Files): Remove getdelim.h.
62541         (Depends-on): Add stdio.
62542         (configure.ac): Add module indicator.
62543         * modules/stdio (Makefile.am): Work with new indicators.
62544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62545         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62546         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62547         * lib/getdelim.h: Delete.
62548         * lib/getline.h: Delete.
62549         * lib/stdio_.h (getdelim, getline): Declare.
62550         * modules/getdelim-tests: New module.
62551         * modules/getline-tests: Likewise.
62552         * tests/test-getdelim.c: New file.
62553         * tests/test-getline.c: Likewise.
62554         * NEWS: Document the change.
62555         * lib/getline.c: Update choice of header.
62556         * lib/csharpcomp.c: Likewise.
62557         * lib/getpass.c: Likewise.
62558         * lib/javacomp.c: Likewise.
62559         * lib/javaversion.c: Likewise.
62560         * lib/yesno.c: Likewise.
62561         * lib/getdelim.c: Likewise.
62562         (getdelim): Set errno on failure, and avoid memory leak.
62563
62564 2007-08-19  Bruno Haible  <bruno@clisp.org>
62565
62566         * modules/closein (Depends-on): Add freadahead.
62567         * lib/closein.c: Include freadahead.h.
62568         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62569         is zero.
62570
62571 2007-08-19  Bruno Haible  <bruno@clisp.org>
62572
62573         * modules/freadahead-tests: New file.
62574         * tests/test-freadahead.sh: New file.
62575         * tests/test-freadahead.c: New file.
62576
62577         * modules/freadahead: New file.
62578         * lib/freadahead.h: New file.
62579         * lib/freadahead.c: New file.
62580         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62581         fbufmode, fpurge, freadable, fwritable.
62582
62583 2007-08-19  Eric Blake  <ebb9@byu.net>
62584
62585         Test yesno in combination with closein.
62586         * lib/yesno.c (yesno): Document use of stdin.
62587         * modules/yesno-tests (Files): New module.
62588         * tests/test-yesno.c (main): New file.
62589         * tests/test-yesno.sh: Likewise.
62590
62591 2007-08-19  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62594         * lib/fseeko.c (rpl_fseeko): Likewise.
62595         * lib/fseterr.c (fseterr): Likewise.
62596
62597 2007-08-19  Bruno Haible  <bruno@clisp.org>
62598
62599         * tests/test-lseek.c (main): Disable a test for BeOS.
62600         * doc/functions/lseek.texi: Document the BeOS bug.
62601
62602 2007-08-19  Bruno Haible  <bruno@clisp.org>
62603             Eric Blake  <ebb9@byu.net>
62604
62605         * lib/lseek.c: Include <sys/stat.h>.
62606         (rpl_lseek): Add workaround code also for Unix platforms.
62607         Needed for BeOS.
62608         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62609         * doc/functions/lseek.texi: Document BeOS definiency.
62610
62611 2007-08-18  Bruno Haible  <bruno@clisp.org>
62612
62613         * modules/fstrcmp-tests: New file.
62614         * tests/test-fstrcmp.c: New file.
62615
62616 2007-08-18  Bruno Haible  <bruno@clisp.org>
62617
62618         * modules/fstrcmp: New file, from GNU gettext with modifications.
62619         * lib/fstrcmp.h: New file, from GNU gettext.
62620         * lib/fstrcmp.c: New file, from GNU gettext.
62621         * MODULES.html.sh (String handling): Add fstrcmp.
62622
62623 2007-08-18  Bruno Haible  <bruno@clisp.org>
62624
62625         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62626         'bool'.
62627         (diag, compareseq): Remove const from the ctxt argument.
62628         (USE_HEURISTIC): Undefine at the end.
62629
62630 2007-08-18  Jim Meyering  <jim@meyering.net>
62631
62632         New file: lib/idcache.h
62633         * NEWS: Mention the addition.
62634         * modules/idcache (Files): Add lib/idcache.h
62635         * lib/idcache.c: Include "idcache.h".
62636         Don't include <sys/types.h>.
62637         Add a FIXME comment.
62638         Move file-scoped "static" declarations to the top.
62639         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62640
62641 2007-08-17  Bruno Haible  <bruno@clisp.org>
62642         and Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * MODULES.html.sh: Add diffseq.
62645         * modules/diffseq: New file.
62646         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62647         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62648
62649 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         Import changes from coreutils for bootstrap script.
62652
62653         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         * build-aux/bootstrap (slurp): Work even in environments where
62656         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62657         current code does not slurp files whose names start with ".", and
62658         this looks like it might be a troublesome area.
62659
62660         2007-07-11  Jim Meyering  <jim@meyering.net>
62661
62662         If there's a GPL vN copyright comment, require that N == 3.
62663
62664         2007-07-08  Jim Meyering  <jim@meyering.net>
62665
62666         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62667         * build-aux/bootstrap (mam_template): Move definition out of loop.
62668
62669         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62670
62671         * build-aux/bootstrap (symlink_to_dir): Rename function from
62672         symlink_to_gnulib.  Add a directory parameter.  Update all
62673         callers.
62674         (cp_mark_as_generated): Also check for -- and link to -- files in
62675         gl/.
62676
62677         2007-07-08  Jim Meyering  <jim@meyering.net>
62678
62679         Adapt to deeper hierarchy in gnulib.
62680         * build-aux/bootstrap (symlink_to_dir): If the destination
62681         directory doesn't exist, create it. This is required at least for
62682         "lib/uniwidth/cjk.h".
62683
62684         2007-05-15  Jim Meyering  <jim@meyering.net>
62685
62686         * build-aux/bootstrap: Now that generated Makefile.am files
62687         are no longer under version control, they must be created at
62688         bootstrap time.
62689
62690 2007-08-14  Ben Pfaff  <blp@gnu.org>
62691
62692         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62693
62694 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62695
62696         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62697         given the changes below.
62698         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62699         even on hosts that have padding bits beyond the supported 64.
62700
62701 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62702
62703         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62704         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62705         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62706         depends on it.
62707         (xstrtol_error): Remove.
62708         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62709         but with a different signature.
62710         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62711         * lib/xstrtol-error.c: Include exitfail.h.
62712         (xstrtol_fatal): New function, with a different signature from the
62713         old xstrtol_error, so that the caller need not worry about passing
62714         in an exit status, or about storage management of the option argument.
62715         (xstrtol_error): Now a static function.  Redo signature to
62716         implement xstrtol_fatal.  Output the correct number of hyphens in
62717         front of the option so that the caller need not worry about
62718         storage management.
62719         (N_): New macro.
62720         (_): Remove; not used now.
62721         * modules/xstrtol: Depend on getopt.
62722         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62723         of old STRTOL_FATAL_ERROR macro.
62724         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62725         of test program.
62726         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62727         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62728
62729 2007-08-08  Eric Blake  <ebb9@byu.net>
62730
62731         * lib/xstrtol-error.c: Add missing include.
62732
62733         Move xstrtol messages into gnulib domain, when --pobase is used.
62734         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62735         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62736         * modules/xstrtol (Files): Distribute new file.
62737         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62738         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62739         * tests/test-xstrtol.c: ...into new file.
62740         * tests/test-xstrtoul.c: Also test xstrtoul.
62741         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62742         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62743         * tests/test-xstrtol.sh: Drive the tests.
62744         * tests/test-xstrtoimax.sh: Likewise.
62745         * tests/test-xstrtoumax.sh: Likewise.
62746         * modules/xstrtol-tests: New module.
62747         * modules/xstrtoimax-tests: Likewise.
62748         * modules/xstrtoumax-tests: Likewise.
62749
62750 2007-08-08  Jim Meyering  <jim@meyering.net>
62751
62752         New function: mfile_name_concat.
62753         * lib/filenamecat.c (mfile_name_concat): New function, just like
62754         file_name_concat, but return NULL upon failure rather than exiting
62755         with a diagnostic.
62756         * lib/filenamecat.h: Declare it.
62757
62758 2007-08-07  Bruno Haible  <bruno@clisp.org>
62759
62760         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62761         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62762         warning from gcc.
62763         Reported by Eric Blake.
62764
62765 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62766
62767         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62768         * modules/crypto/arcfour (License): Likewise.
62769         * modules/crypto/des-tests (License): Likewise.
62770         * modules/crypto/gc-arctwo-tests (License): Likewise.
62771         * modules/crypto/gc-des-tests (License): Likewise.
62772         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62773         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62774         * modules/crypto/gc-md2-tests (License): Likewise.
62775         * modules/crypto/gc-md4-tests (License): Likewise.
62776         * modules/crypto/gc-md5-tests (License): Likewise.
62777         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62778         * modules/crypto/gc-rijndael-tests (License): Likewise.
62779         * modules/crypto/gc-sha1-tests (License): Likewise.
62780         * modules/crypto/gc-tests (License): Likewise.
62781         * modules/crypto/hmac-md5 (License): Likewise.
62782         * modules/crypto/hmac-sha1 (License): Likewise.
62783         * modules/crypto/md2-tests (License): Likewise.
62784         * modules/crypto/md4-tests (License): Likewise.
62785         * modules/crypto/md5 (License): Likewise.
62786         * modules/crypto/rijndael (License): Likewise.
62787         * modules/crypto/sha1 (License): Likewise.
62788         * modules/memxor (License): Likewise.
62789
62790 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62791         and Bruno Haible  <bruno@clisp.org>
62792
62793         * NEWS: Describe interface changes to human, xstrtol.
62794         * lib/human.h: Include <xstrtol.h>.
62795         (human_options): Return enum strtol_error, not int.  Remove
62796         bool arg; take int * instead.
62797         * lib/human.c: Don't include "gettext.h".
62798         (_): Remove; no longer used.
62799         Don't include <xstrtol.h>, since human.h does it.
62800         (human_options): Adjust to abovementioned interface changes.
62801         Do not report error to stderr; that's now the caller's
62802         responsibility.
62803         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62804         interface change.
62805         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62806         Str, Argument_type_string.  All uses changed.  Put " argument"
62807         in diagnostics to make them clearer.  Change wording of suffix
62808         message for clarity.
62809         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62810         Argument_type_string.
62811         (STRTOL_FATAL_WARN): Remove; no longer used.
62812         * modules/human (Depends-on): Remove gettext-h.
62813
62814 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62815
62816         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62817
62818 2007-07-31  Bruno Haible  <bruno@clisp.org>
62819
62820         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62821         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62822         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62823
62824 2007-07-31  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62827         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62828
62829 2007-07-30  Bruno Haible  <bruno@clisp.org>
62830
62831         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62832         * modules/c-ctype (License): Likewise.
62833         * modules/c-strcase (License): Likewise.
62834         * modules/check-version (License): Likewise.
62835         * modules/iconv (License): Likewise.
62836         * modules/iconv_open (License): Likewise.
62837         * modules/read-file (License): Likewise.
62838         * modules/striconv (License): Likewise.
62839         * modules/strverscmp (License): Likewise.
62840         * modules/vasprintf (License): Likewise.
62841         * modules/crypto/des (License): Likewise.
62842         * modules/crypto/gc (License): Likewise.
62843         * modules/crypto/gc-arcfour (License): Likewise.
62844         * modules/crypto/gc-arctwo (License): Likewise.
62845         * modules/crypto/gc-des (License): Likewise.
62846         * modules/crypto/gc-hmac-md5 (License): Likewise.
62847         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62848         * modules/crypto/gc-md2 (License): Likewise.
62849         * modules/crypto/gc-md4 (License): Likewise.
62850         * modules/crypto/gc-md5 (License): Likewise.
62851         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62852         * modules/crypto/gc-random (License): Likewise.
62853         * modules/crypto/gc-rijndael (License): Likewise.
62854         * modules/crypto/gc-sha1 (License): Likewise.
62855         * modules/crypto/md2 (License): Likewise.
62856         * modules/crypto/md4 (License): Likewise.
62857
62858 2007-07-30  Jim Meyering  <jim@meyering.net>
62859
62860         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62861         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62862         it has valid stat data.  This bug would cause du not to count the
62863         sizes of inaccessible directories.
62864         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62865         in <http://bugzilla.redhat.com/250077>.
62866
62867 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62868             Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62871         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62872         #include_next, gives a diagnostic about it, but reports no error in
62873         the exit code.
62874         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62875
62876 2007-07-24  Ben Pfaff  <blp@gnu.org>
62877
62878         Improve name: "count-one-bits" is better than "popcount".
62879         * MODULES.html.sh: Update name.
62880         * lib/popcount.h: Renamed lib/count-one-bits.h.
62881         (popcount): Renamed count_one_bits.
62882         (popcountl): Renamed count_one_bits_l.
62883         (popcountll): Renamed count_one_bits_ll.
62884         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62885         * modules/popcount: Renamed module/count-one-bits.
62886         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62887         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62888
62889 2007-07-23  Ben Pfaff  <blp@gnu.org>
62890
62891         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62892         better code generation, and add U to large constants to avoid
62893         warnings, in non-GCC case.
62894         Suggested by Bruno Haible.
62895
62896 2007-07-23  Ben Pfaff  <blp@gnu.org>
62897
62898         * lib/popcount.h: Use verify_true instead of if...abort.
62899         * modules/popcount: Depend on verify module.
62900         Suggested by Jim Meyering.
62901
62902 2007-07-23  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_import): Create a .cvsignore file also when the
62905         directory is not yet in CVS but the toplevel directory is. When
62906         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62907         Reported by Karl Berry.
62908
62909 2007-07-22  Ben Pfaff  <blp@gnu.org>
62910
62911         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62912         case.
62913         Suggested by Eric Blake.
62914
62915 2007-07-22  Ben Pfaff  <blp@gnu.org>
62916
62917         New module: popcount.
62918         * MODULES.html.sh: Add popcount.
62919         * modules/popcount: New file.
62920         * modules/popcount-tests: New file.
62921         * tests/test-popcount.c: New file.
62922         * lib/popcount.h: New file.
62923         * m4/popcount.m4: New file.
62924
62925 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62926
62927         * build-aux/announce-gen: Update to GPLv3.
62928
62929         * build-aux/config.guess: Update from config.
62930
62931 2007-07-21  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62934         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62935
62936 2007-07-20  Jim Meyering  <jim@meyering.net>
62937
62938         * check-module: Diagnose a self-dependency.
62939
62940 2007-07-19  Bruno Haible  <bruno@clisp.org>
62941
62942         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62943         empty.
62944         Reported by Eric Blake.
62945
62946 2007-07-18  Bruno Haible  <bruno@clisp.org>
62947
62948         * gnulib-tool: New options --po-base, --po-domain.
62949         (func_usage): Document them.
62950         (pobase, po_domain): New variables.
62951         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62952         DEFAULT_TEXT_DOMAIN.
62953         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62954         (func_import): Consider pobase and po_domain. Create a po/ directory.
62955         (func_create_testdir): Set pobase and po_domain to empty.
62956         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62957         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62958
62959 2007-07-18  Bruno Haible  <bruno@clisp.org>
62960
62961         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62962         EXTRA_DIST augmentation for files in build-aux/.
62963
62964 2007-07-16  Bruno Haible  <bruno@clisp.org>
62965
62966         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62967         * modules/getdelim (License): Likewise.
62968
62969 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62970
62971         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62972         * modules/d-type (License): Likewise.
62973         * modules/extensions (License): Likewise.
62974         * modules/fnmatch (License): Likewise.
62975         * modules/fseeko (License): Likewise.
62976         * modules/getaddrinfo (License): Likewise.
62977         * modules/getline (License): Likewise.
62978         * modules/getlogin_r (License): Likewise.
62979         * modules/getpass (License): Likewise.
62980         * modules/gettimeofday (License): Likewise.
62981         * modules/glob (License): Likewise.
62982         * modules/inet_ntop (License): Likewise.
62983         * modules/malloc (License): Likewise.
62984         * modules/malloca (License): Likewise.
62985         * modules/memmem (License): Likewise.
62986         * modules/mempcpy (License): Likewise.
62987         * modules/memset (License): Likewise.
62988         * modules/minmax (License): Likewise.
62989         * modules/mktime (License): Likewise.
62990         * modules/netinet_in (License): Likewise.
62991         * modules/pathmax (License): Likewise.
62992         * modules/poll (License): Likewise.
62993         * modules/regex (License): Likewise.
62994         * modules/snprintf (License): Likewise.
62995         * modules/stdbool (License): Likewise.
62996         * modules/stdint (License): Likewise.
62997         * modules/stdio (License): Likewise.
62998         * modules/strcase (License): Likewise.
62999         * modules/strcasestr (License): Likewise.
63000         * modules/strdup (License): Likewise.
63001         * modules/string (License): Likewise.
63002         * modules/strndup (License): Likewise.
63003         * modules/strnlen (License): Likewise.
63004         * modules/strpbrk (License): Likewise.
63005         * modules/strptime (License): Likewise.
63006         * modules/strsep (License): Likewise.
63007         * modules/sys_select (License): Likewise.
63008         * modules/sys_socket (License): Likewise.
63009         * modules/sys_stat (License): Likewise.
63010         * modules/sys_time (License): Likewise.
63011         * modules/time (License): Likewise.
63012         * modules/time_r (License): Likewise.
63013         * modules/timegm (License): Likewise.
63014         * modules/unistd (License): Likewise.
63015         * modules/vsnprintf (License): Likewise.
63016         * modules/wctype (License): Likewise.
63017
63018 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63019
63020         * modules/argz (License): LGPLv2+.
63021
63022 2007-07-15  Karl Berry  <karl@gnu.org>
63023
63024         * doc/gnulib.texi: revise node structure per new fdl.texi.
63025
63026 2007-07-14  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63029         the output file.
63030         * lib/uniname/uninames.h: Regenerated.
63031
63032 2007-07-14  Karl Berry  <karl@gnu.org>
63033
63034         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63035         omitting sectioning and index commands.
63036
63037 2007-07-13  Bruno Haible  <bruno@clisp.org>
63038
63039         New gnulib-tool option --more-symlinks.
63040         * gnulib-tool (func_usage): Document --more-symlinks.
63041         (do_copyrights): New variable.
63042         Recognize option --more-symlinks.
63043         (func_import): Don't add a copyright notice transform to
63044         sed_transform_lib_file if do_copyrights is empty.
63045
63046 2007-07-13  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/vasnprintf.c (decimal_point_char): Define also if
63049         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63050         && !NEED_PRINTF_DIRECTIVE_A.
63051         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63052         Gary V. Vaughan <gary@gnu.org>.
63053
63054 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * lib/inttypes_.h: Undo previous change, since it was fixed
63057         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63058
63059 2007-07-13  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63062         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63063
63064 2007-07-13  Jim Meyering  <jim@meyering.net>
63065
63066         df: Don't fail for Tru64's "file-on-file mount".
63067         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63068         so we fall through and use statfs instead.  Details here:
63069         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63070         Reported by Albert Chin.
63071
63072 2007-07-13  Bruno Haible  <bruno@clisp.org>
63073
63074         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63075         * modules/configmake (License): Likewise.
63076         * modules/gettext (License): Likewise.
63077         * modules/gettext-h (License): Likewise.
63078         * modules/include_next (License): Likewise.
63079         * modules/link-warning (License): Likewise.
63080         * modules/localcharset (License): Likewise.
63081         * modules/localename (License): Likewise.
63082         * modules/lock (License): Likewise.
63083         * modules/relocatable-lib-lgpl (License): Likewise.
63084         * modules/size_max (License): Likewise.
63085         * modules/vasnprintf (License): Likewise.
63086         * modules/wchar (License): Likewise.
63087         * modules/xsize (License): Likewise.
63088
63089 2007-07-13  Bruno Haible  <bruno@clisp.org>
63090
63091         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63092         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63093
63094 2007-07-12  Bruno Haible  <bruno@clisp.org>
63095
63096         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63097         in the modules files.
63098
63099 2007-07-11  Karl Berry  <karl@gnu.org>
63100
63101         * MODULES.html.sh (func_module): use
63102          sed -e '\|^'"${includefile}"'$|d'
63103          instead of /.../d, to avoid errors on $includefile's containing /.
63104
63105 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63106
63107         * gnulib-tool (func_import): Avoid duplication of --avoid
63108         statements
63109         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63110         names to `_' in variable names.
63111
63112 2007-07-10  Eric Blake  <ebb9@byu.net>
63113
63114         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63115         * NEWS: Document this change.
63116
63117 2007-07-08  Bruno Haible  <bruno@clisp.org>
63118
63119         Update to Unicode 5.0.
63120         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63121         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63122         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63123         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63124         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63125         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63126         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63127         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63128         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63129         U+10A3F, U+1D242..U+1D244.
63130         (nonspacing_table_ind): Update.
63131         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63132         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63133
63134 2007-07-08  Bruno Haible  <bruno@clisp.org>
63135
63136         Update to Unicode 5.0.
63137         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63138         code transform. Extend the name index field of unicode_name_to_code and
63139         unicode_code_to_name from 16 to 24 bits.
63140         * lib/uniname/uniname.c (unicode_character_name,
63141         unicode_name_character): Add the range 0x12xxx to the code transform.
63142         * lib/uniname/uninames.h: Regenerated.
63143         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63144
63145 2007-07-07  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/wcwidth-tests: New file.
63148         * tests/test-wcwidth.c: New file.
63149
63150         Work around MacOS X wcwidth() bug.
63151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63152         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63153         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63154         original wcwidth in non-UTF-8 locales.
63155         * modules/wcwidth (Depends-on): Add localcharset, streq,
63156         uniwidth/width.
63157         * doc/functions/wcwidth.texi: Update.
63158
63159 2007-07-07  Bruno Haible  <bruno@clisp.org>
63160
63161         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63162         (wcwidth): New declaration.
63163         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63164         macros.
63165         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63166         here. Prepare for creating <wchar.h> unconditionally.
63167         * modules/wchar (Depends-on): Add link-warning.
63168         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63169         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63170         * lib/wcwidth.h: Remove file.
63171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63172         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63173         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63174         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63175         (Include): Replace wcwidth.h with <wchar.h>.
63176         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63177         * lib/mbchar.h: Don't include wcwidth.h.
63178         * lib/mbswidth.c: Likewise.
63179         * NEWS: Mention the change.
63180
63181 2007-07-07  Bruno Haible  <bruno@clisp.org>
63182
63183         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63184         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63185         definition with an external declaration.
63186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63187         defined as a function. Remove AC_C_INLINE requirement.
63188         * modules/wcwidth (Files): Add lib/wcwidth.c.
63189         (Makefile.am): Remove redundant statement.
63190
63191 2007-07-07  Bruno Haible  <bruno@clisp.org>
63192
63193         * MODULES.html.sh (Unicode string functions): Add the new modules.
63194
63195         * tests/uniwidth/test-u32-strwidth.c: New file.
63196         * modules/uniwidth/u32-strwidth-tests: New file.
63197
63198         * lib/uniwidth/u32-strwidth.c: New file.
63199         * modules/uniwidth/u32-strwidth: New file.
63200
63201         * tests/uniwidth/test-u16-strwidth.c: New file.
63202         * modules/uniwidth/u16-strwidth-tests: New file.
63203
63204         * lib/uniwidth/u16-strwidth.c: New file.
63205         * modules/uniwidth/u16-strwidth: New file.
63206
63207         * tests/uniwidth/test-u8-strwidth.c: New file.
63208         * modules/uniwidth/u8-strwidth-tests: New file.
63209
63210         * lib/uniwidth/u8-strwidth.c: New file.
63211         * modules/uniwidth/u8-strwidth: New file.
63212
63213         * tests/uniwidth/test-u32-width.c: New file.
63214         * modules/uniwidth/u32-width-tests: New file.
63215
63216         * lib/uniwidth/u32-width.c: New file.
63217         * modules/uniwidth/u32-width: New file.
63218
63219         * tests/uniwidth/test-u16-width.c: New file.
63220         * modules/uniwidth/u16-width-tests: New file.
63221
63222         * lib/uniwidth/u16-width.c: New file.
63223         * modules/uniwidth/u16-width: New file.
63224
63225         * tests/uniwidth/test-u8-width.c: New file.
63226         * modules/uniwidth/u8-width-tests: New file.
63227
63228         * lib/uniwidth/u8-width.c: New file.
63229         * modules/uniwidth/u8-width: New file.
63230
63231         * tests/uniwidth/test-uc_width.c: New file.
63232         * modules/uniwidth/width-tests: New file.
63233
63234         * lib/uniwidth/width.c: New file, from GNU libiconv.
63235         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63236         * modules/uniwidth/width: New file.
63237
63238         * lib/uniwidth.h: New file, from GNU libiconv.
63239         * modules/uniwidth/base: New file.
63240
63241 2007-07-07  Bruno Haible  <bruno@clisp.org>
63242
63243         * lib/uniname.h: New file, from GNU gettext.
63244         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63245         * lib/uniname/uninames.h: New file, from GNU gettext.
63246         * lib/uniname/uniname.c: New file, from GNU gettext.
63247         * tests/uniname/test-uninames.sh: New file.
63248         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63249         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63250         * modules/uniname/base: New file.
63251         * modules/uniname/uniname: New file.
63252         * modules/uniname/uniname-tests: New file.
63253         * MODULES.html.sh (Unicode string functions): Add the new modules.
63254
63255 2007-07-06  Bruno Haible  <bruno@clisp.org>
63256
63257         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63258
63259 2007-07-06  Bruno Haible  <bruno@clisp.org>
63260
63261         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63262         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63263         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63264         include <sys/time.h>.
63265         Reported by Eric Blake.
63266
63267 2007-07-06  Eric Blake  <ebb9@byu.net>
63268
63269         Fix testing canonicalize on cygwin.
63270         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63271         Revert patch from 2007-06-19.
63272         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63273         canonicalize module is also in use.
63274         * tests/test-canonicalize.c: New file.
63275         * tests/test-canonicalize.sh: Likewise.
63276         * modules/canonicalize-tests: Likewise.
63277
63278 2007-07-06  Jim Meyering  <jim@meyering.net>
63279
63280         * lib/getugroups.c (getugroups): Detect getgrent failure.
63281         Adjust comment to reflect reality: this function may return -1.
63282
63283 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63284
63285         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63286         the new TP address.
63287         (usage): Fix typo
63288         (gnulib_mk): New variable.
63289
63290 2007-07-05  Jim Meyering  <jim@meyering.net>
63291
63292         Don't let endgrent clobber errno, no matter how improbable.
63293         * lib/getugroups.c (getugroups): Save and restore errno around
63294         endgrent call.
63295
63296         Close the group DB even when failing with 2^31 or more members.
63297         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63298
63299 2007-07-04  Jim Meyering  <jim@meyering.net>
63300
63301         * lib/getugroups.h: New file.
63302         * lib/getugroups.c: Include "getugroups.h".
63303         Remove uses of "register" keyword.
63304         Move local variable, "cp", down into scope where used.
63305         Give "username" parameter the "const" attribute.
63306         * modules/getugroups (Files): Add lib/getugroups.h
63307
63308 2007-07-04  Karl Berry  <karl@gnu.org>
63309
63310         * MODULES.html.sh (func_all_modules): Complete rename of
63311         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63312
63313 2007-07-02  Bruno Haible  <bruno@clisp.org>
63314
63315         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63316         mode, when inttypes.h comes from gnulib.
63317         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63318
63319 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63320
63321         * NEWS: Mention lgpl module name change.
63322
63323         * modules/lgpl-2.1: Renamed from lgpl.
63324
63325         * NEWS: Mention gpl module name change.
63326
63327         * modules/gpl-3.0: New file, based on gpl-2.0.
63328
63329         * modules/gpl-2.0: Renamed from gpl.
63330
63331         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63332         doc/gpl-2.0.texi.
63333
63334 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63337         #define __STDC_LIMIT_MACROS temporarily while including
63338         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63339         Problem reported by Joel E. Denny in
63340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63341
63342 2007-07-01  Bruno Haible  <bruno@clisp.org>
63343
63344         * lib/unistdio.h: New file.
63345         * lib/unistdio/u-asnprintf.h: New file.
63346         * lib/unistdio/u-asprintf.h: New file.
63347         * lib/unistdio/u-printf-args.c: New file.
63348         * lib/unistdio/u-printf-args.h: New file.
63349         * lib/unistdio/u-printf-parse.h: New file.
63350         * lib/unistdio/u-snprintf.h: New file.
63351         * lib/unistdio/u-sprintf.h: New file.
63352         * lib/unistdio/u-vasprintf.h: New file.
63353         * lib/unistdio/u-vsnprintf.h: New file.
63354         * lib/unistdio/u-vsprintf.h: New file.
63355         * lib/unistdio/ulc-asnprintf.c: New file.
63356         * lib/unistdio/ulc-asprintf.c: New file.
63357         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63358         * lib/unistdio/ulc-printf-parse.c: New file.
63359         * lib/unistdio/ulc-snprintf.c: New file.
63360         * lib/unistdio/ulc-sprintf.c: New file.
63361         * lib/unistdio/ulc-vasnprintf.c: New file.
63362         * lib/unistdio/ulc-vasprintf.c: New file.
63363         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63364         * lib/unistdio/ulc-vsnprintf.c: New file.
63365         * lib/unistdio/ulc-vsprintf.c: New file.
63366         * lib/unistdio/u8-asnprintf.c: New file.
63367         * lib/unistdio/u8-asprintf.c: New file.
63368         * lib/unistdio/u8-printf-parse.c: New file.
63369         * lib/unistdio/u8-snprintf.c: New file.
63370         * lib/unistdio/u8-sprintf.c: New file.
63371         * lib/unistdio/u8-vasnprintf.c: New file.
63372         * lib/unistdio/u8-vasprintf.c: New file.
63373         * lib/unistdio/u8-vsnprintf.c: New file.
63374         * lib/unistdio/u8-vsprintf.c: New file.
63375         * lib/unistdio/u8-u8-asnprintf.c: New file.
63376         * lib/unistdio/u8-u8-asprintf.c: New file.
63377         * lib/unistdio/u8-u8-snprintf.c: New file.
63378         * lib/unistdio/u8-u8-sprintf.c: New file.
63379         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63380         * lib/unistdio/u8-u8-vasprintf.c: New file.
63381         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63382         * lib/unistdio/u8-u8-vsprintf.c: New file.
63383         * lib/unistdio/u16-asnprintf.c: New file.
63384         * lib/unistdio/u16-asprintf.c: New file.
63385         * lib/unistdio/u16-printf-parse.c: New file.
63386         * lib/unistdio/u16-snprintf.c: New file.
63387         * lib/unistdio/u16-sprintf.c: New file.
63388         * lib/unistdio/u16-vasnprintf.c: New file.
63389         * lib/unistdio/u16-vasprintf.c: New file.
63390         * lib/unistdio/u16-vsnprintf.c: New file.
63391         * lib/unistdio/u16-vsprintf.c: New file.
63392         * lib/unistdio/u16-u16-asnprintf.c: New file.
63393         * lib/unistdio/u16-u16-asprintf.c: New file.
63394         * lib/unistdio/u16-u16-snprintf.c: New file.
63395         * lib/unistdio/u16-u16-sprintf.c: New file.
63396         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63397         * lib/unistdio/u16-u16-vasprintf.c: New file.
63398         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63399         * lib/unistdio/u16-u16-vsprintf.c: New file.
63400         * lib/unistdio/u32-asnprintf.c: New file.
63401         * lib/unistdio/u32-asprintf.c: New file.
63402         * lib/unistdio/u32-printf-parse.c: New file.
63403         * lib/unistdio/u32-snprintf.c: New file.
63404         * lib/unistdio/u32-sprintf.c: New file.
63405         * lib/unistdio/u32-vasnprintf.c: New file.
63406         * lib/unistdio/u32-vasprintf.c: New file.
63407         * lib/unistdio/u32-vsnprintf.c: New file.
63408         * lib/unistdio/u32-vsprintf.c: New file.
63409         * lib/unistdio/u32-u32-asnprintf.c: New file.
63410         * lib/unistdio/u32-u32-asprintf.c: New file.
63411         * lib/unistdio/u32-u32-snprintf.c: New file.
63412         * lib/unistdio/u32-u32-sprintf.c: New file.
63413         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63414         * lib/unistdio/u32-u32-vasprintf.c: New file.
63415         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63416         * lib/unistdio/u32-u32-vsprintf.c: New file.
63417         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63418         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63419         * tests/unistdio/test-ulc-printf1.h: New file.
63420         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63421         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63422         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63423         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63424         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63425         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63426         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63427         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63428         * tests/unistdio/test-u8-asnprintf1.c: New file.
63429         * tests/unistdio/test-u8-asnprintf1.h: New file.
63430         * tests/unistdio/test-u8-printf1.h: New file.
63431         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63432         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63433         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63434         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63435         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63436         * tests/unistdio/test-u8-vasprintf1.c: New file.
63437         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63438         * tests/unistdio/test-u8-vsprintf1.c: New file.
63439         * tests/unistdio/test-u16-asnprintf1.c: New file.
63440         * tests/unistdio/test-u16-asnprintf1.h: New file.
63441         * tests/unistdio/test-u16-printf1.h: New file.
63442         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63443         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63444         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63445         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63446         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63447         * tests/unistdio/test-u16-vasprintf1.c: New file.
63448         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63449         * tests/unistdio/test-u16-vsprintf1.c: New file.
63450         * tests/unistdio/test-u32-asnprintf1.c: New file.
63451         * tests/unistdio/test-u32-asnprintf1.h: New file.
63452         * tests/unistdio/test-u32-printf1.h: New file.
63453         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63454         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63455         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63456         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63457         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63458         * tests/unistdio/test-u32-vasprintf1.c: New file.
63459         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63460         * tests/unistdio/test-u32-vsprintf1.c: New file.
63461         * modules/unistdio/base: New file.
63462         * modules/unistdio/u-printf-args: New file.
63463         * modules/unistdio/ulc-asnprintf: New file.
63464         * modules/unistdio/ulc-asprintf: New file.
63465         * modules/unistdio/ulc-fprintf: New file.
63466         * modules/unistdio/ulc-printf-parse: New file.
63467         * modules/unistdio/ulc-snprintf: New file.
63468         * modules/unistdio/ulc-sprintf: New file.
63469         * modules/unistdio/ulc-vasnprintf: New file.
63470         * modules/unistdio/ulc-vasprintf: New file.
63471         * modules/unistdio/ulc-vfprintf: New file.
63472         * modules/unistdio/ulc-vsnprintf: New file.
63473         * modules/unistdio/ulc-vsprintf: New file.
63474         * modules/unistdio/u8-asnprintf: New file.
63475         * modules/unistdio/u8-asprintf: New file.
63476         * modules/unistdio/u8-printf-parse: New file.
63477         * modules/unistdio/u8-snprintf: New file.
63478         * modules/unistdio/u8-sprintf: New file.
63479         * modules/unistdio/u8-vasnprintf: New file.
63480         * modules/unistdio/u8-vasprintf: New file.
63481         * modules/unistdio/u8-vsnprintf: New file.
63482         * modules/unistdio/u8-vsprintf: New file.
63483         * modules/unistdio/u8-u8-asnprintf: New file.
63484         * modules/unistdio/u8-u8-asprintf: New file.
63485         * modules/unistdio/u8-u8-snprintf: New file.
63486         * modules/unistdio/u8-u8-sprintf: New file.
63487         * modules/unistdio/u8-u8-vasnprintf: New file.
63488         * modules/unistdio/u8-u8-vasprintf: New file.
63489         * modules/unistdio/u8-u8-vsnprintf: New file.
63490         * modules/unistdio/u8-u8-vsprintf: New file.
63491         * modules/unistdio/u16-asnprintf: New file.
63492         * modules/unistdio/u16-asprintf: New file.
63493         * modules/unistdio/u16-printf-parse: New file.
63494         * modules/unistdio/u16-snprintf: New file.
63495         * modules/unistdio/u16-sprintf: New file.
63496         * modules/unistdio/u16-vasnprintf: New file.
63497         * modules/unistdio/u16-vasprintf: New file.
63498         * modules/unistdio/u16-vsnprintf: New file.
63499         * modules/unistdio/u16-vsprintf: New file.
63500         * modules/unistdio/u16-u16-asnprintf: New file.
63501         * modules/unistdio/u16-u16-asprintf: New file.
63502         * modules/unistdio/u16-u16-snprintf: New file.
63503         * modules/unistdio/u16-u16-sprintf: New file.
63504         * modules/unistdio/u16-u16-vasnprintf: New file.
63505         * modules/unistdio/u16-u16-vasprintf: New file.
63506         * modules/unistdio/u16-u16-vsnprintf: New file.
63507         * modules/unistdio/u16-u16-vsprintf: New file.
63508         * modules/unistdio/u32-asnprintf: New file.
63509         * modules/unistdio/u32-asprintf: New file.
63510         * modules/unistdio/u32-printf-parse: New file.
63511         * modules/unistdio/u32-snprintf: New file.
63512         * modules/unistdio/u32-sprintf: New file.
63513         * modules/unistdio/u32-vasnprintf: New file.
63514         * modules/unistdio/u32-vasprintf: New file.
63515         * modules/unistdio/u32-vsnprintf: New file.
63516         * modules/unistdio/u32-vsprintf: New file.
63517         * modules/unistdio/u32-u32-asnprintf: New file.
63518         * modules/unistdio/u32-u32-asprintf: New file.
63519         * modules/unistdio/u32-u32-snprintf: New file.
63520         * modules/unistdio/u32-u32-sprintf: New file.
63521         * modules/unistdio/u32-u32-vasnprintf: New file.
63522         * modules/unistdio/u32-u32-vasprintf: New file.
63523         * modules/unistdio/u32-u32-vsnprintf: New file.
63524         * modules/unistdio/u32-u32-vsprintf: New file.
63525         * modules/unistdio/ulc-asnprintf-tests: New file.
63526         * modules/unistdio/ulc-vasnprintf-tests: New file.
63527         * modules/unistdio/ulc-vasprintf-tests: New file.
63528         * modules/unistdio/ulc-vsnprintf-tests: New file.
63529         * modules/unistdio/ulc-vsprintf-tests: New file.
63530         * modules/unistdio/u8-asnprintf-tests: New file.
63531         * modules/unistdio/u8-vasnprintf-tests: New file.
63532         * modules/unistdio/u8-vasprintf-tests: New file.
63533         * modules/unistdio/u8-vsnprintf-tests: New file.
63534         * modules/unistdio/u8-vsprintf-tests: New file.
63535         * modules/unistdio/u16-asnprintf-tests: New file.
63536         * modules/unistdio/u16-vasnprintf-tests: New file.
63537         * modules/unistdio/u16-vasprintf-tests: New file.
63538         * modules/unistdio/u16-vsnprintf-tests: New file.
63539         * modules/unistdio/u16-vsprintf-tests: New file.
63540         * modules/unistdio/u32-asnprintf-tests: New file.
63541         * modules/unistdio/u32-vasnprintf-tests: New file.
63542         * modules/unistdio/u32-vasprintf-tests: New file.
63543         * modules/unistdio/u32-vsnprintf-tests: New file.
63544         * modules/unistdio/u32-vsprintf-tests: New file.
63545         * MODULES.html.sh (Unicode string functions): Add the new modules.
63546
63547 2007-07-01  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/sprintf.c (sprintf): Limit the available length estimation,
63550         to avoid address wraparound.
63551         * lib/vsprintf.c (vsprintf): Likewise.
63552         * modules/sprintf-posix (Dependencies): Add stdint.
63553         * modules/vsprintf-posix (Dependencies): Likewise.
63554
63555 2007-07-01  Bruno Haible  <bruno@clisp.org>
63556
63557         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63558         Windows PATH as well. Conservative double-quoting. Comments.
63559
63560 2007-07-01  Bruno Haible  <bruno@clisp.org>
63561             Eric Blake  <ebb9@byu.net>
63562             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63563
63564         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63565         empty components in $PATH, denoting '.'.
63566
63567 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63568
63569         * gnulib-tool: Fix indentation.
63570         (func_create_megatestdir): Likewise.
63571         Report by Bruno Haible.
63572
63573 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63574
63575         Sync from Automake.
63576         * build-aux/gnupload: Fix shell portability issues with for loops.
63577         Report by Karl Berry.
63578
63579 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63580
63581         * build-aux/maint.mk (POURL): Use translationproject.org.
63582
63583 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63584             Bruno Haible  <bruno@clisp.org>
63585
63586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63587         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63588         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63589         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63590         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63591
63592 2007-06-27  Bruno Haible  <bruno@clisp.org>
63593
63594         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63595         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63596
63597 2007-06-26  Karl Berry  <karl@gnu.org>
63598
63599         * MODULES.html.sh: remove xreadlink-with-size.
63600
63601 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63604         method that I hope also handles the double-include problem noted
63605         by Bruno Haible in
63606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63607
63608 2007-06-23  Bruno Haible  <bruno@clisp.org>
63609
63610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63611         Don't let the 'mostlyclean' target fail if the last subdirectory could
63612         not be removed.
63613         Reported by Karl Berry.
63614
63615 2007-06-23  Bruno Haible  <bruno@clisp.org>
63616
63617         * gnulib-tool (echo): Add a speedier workaround for ksh.
63618         * tests/test-echo.sh: Likewise.
63619
63620 2007-06-23  Bruno Haible  <bruno@clisp.org>
63621
63622         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63623         * tests/test-echo.sh: Likewise.
63624
63625 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63626
63627         * gnulib-tool (IFS): Initialize early, so we don't set it to
63628         empty later.
63629         (self_abspathname): Rewrite algorithm to set it, reindent.
63630         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63631         (func_create_megatestdir): Merge some sed scripts.
63632
63633 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63634
63635         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63636         exposed by Sun Studio 11 cc on Solaris 8.
63637
63638 2007-06-22  Bruno Haible  <bruno@clisp.org>
63639
63640         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63641         backslashes.
63642         * tests/test-echo.sh: New file.
63643
63644 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63645
63646         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63647         simplify `sed_replace_build_aux' scripts, they are portable but
63648         echoing them with `echo' is not.
63649         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63650
63651 2007-06-21  Karl Berry  <karl@gnu.org>
63652
63653         * config/srclist.txt: guess we can't handle the licenses via
63654         srclist at the moment.
63655
63656 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * MODULES.html.sh: Add include_next.
63659         * modules/include_next: New file.
63660
63661 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63662
63663         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63664         INCLUDE_NEXT.
63665         (gl_CHECK_NEXT_HEADERS): New macro.
63666         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63667         the obsolescent gl_ABSOLUTE_HEADER.
63668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63669         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63670         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63671         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63672         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63673         * m4/math_h.m4 (gl_MATH_H): Likewise.
63674         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63675         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63676         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63677         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63678         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63679         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63680         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63684         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63685         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63686         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63687         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63688         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63689         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63690         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63691         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63692         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63693         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63694         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63695         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63696         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63697         * lib/float_.h: Likewise.
63698         * lib/inttypes_.h: Likewise.
63699         * lib/math_.h: Likewise.
63700         * lib/search_.h: Likewise.
63701         * lib/signal_.h: Likewise.
63702         * lib/stdint_.h: Likewise.
63703         * lib/stdio_.h: Likewise.
63704         * lib/stdlib_.h: Likewise.
63705         * lib/string_.h: Likewise.
63706         * lib/sys_stat_.h: Likewise.
63707         * lib/sys_time_.h: Likewise.
63708         * lib/time_.h: Likewise.
63709         * lib/unistd_.h: Likewise.
63710         * lib/wchar_.h: Likewise.
63711         * lib/wctype_.h: Likewise.
63712         * lib/dirent_.h: Likewise.
63713         * lib/iconv_.h: Likewise.
63714         * lib/locale_.h: Likewise.
63715         * lib/netinet_in_.h: Likewise.
63716         * lib/sys_select_.h: Likewise.
63717         * lib/sys_socket_.h: Likewise.
63718         * lib/sysexits_.h: Likewise.
63719         * modules/fcntl (Depends-on): Depend on include_next, not
63720         absolute_header.
63721         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63722         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63723         * modules/fchdir: Likewise.
63724         * modules/float: Likewise.
63725         * modules/iconv_open: Likewise.
63726         * modules/inttypes: Likewise.
63727         * modules/locale: Likewise.
63728         * modules/math: Likewise.
63729         * modules/netinet_in: Likewise.
63730         * modules/search: Likewise.
63731         * modules/signal: Likewise.
63732         * modules/stdint: Likewise.
63733         * modules/stdio: Likewise.
63734         * modules/stdlib: Likewise.
63735         * modules/string: Likewise.
63736         * modules/sys_select: Likewise.
63737         * modules/sys_socket: Likewise.
63738         * modules/sys_stat: Likewise.
63739         * modules/sys_time: Likewise.
63740         * modules/sysexits: Likewise.
63741         * modules/time: Likewise.
63742         * modules/unistd: Likewise.
63743         * modules/wchar: Likewise.
63744         * modules/wctype: Likewise.
63745         * modules/sys_stat: Change maintainer to "all".
63746         * modules/unistd: Likewise.
63747
63748 2007-06-20  Karl Berry  <karl@gnu.org>
63749
63750         * config/srclist.txt: track www changes in license files.
63751
63752 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63753
63754         * build-aux/bootstrap: Remove stray dot.
63755         Make sure build_aux settings are honored when linking
63756         gnulib_extra_files.
63757
63758 2007-06-19  Eric Blake  <ebb9@byu.net>
63759
63760         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63761         Allow compilation on cygwin.
63762
63763 2007-06-19  Jim Meyering  <jim@meyering.net>
63764
63765         xreadlink-with-size: Remove module.  No longer used.
63766         Ex-callers now use xreadlink or mreadlink-with-size.
63767         * modules/xreadlink-with-size: Remove module.
63768         * lib/xreadlink-with-size.c: Remove file.
63769         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63770         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63771         just before the function definition *is* accurate.
63772
63773         Eliminate one way canonicalize_filename_mode could exit.
63774         * lib/canonicalize.c (canonicalize_filename_mode):
63775         Use mreadlink_with_size, not xreadlink_with_size.
63776
63777 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         Detect porting problems to FreeBSD/arm, which has time_t wider than
63780         long int.  Original problem reported for GNU diff by Xin Li in
63781         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63782         * modules/getdate (Depends-on): Add intprops, verify.
63783         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63784         is an integer type no wider than long int.
63785
63786 2007-06-18  Jim Meyering  <jim@meyering.net>
63787
63788         New module: mreadlink-with-size.
63789         * MODULES.html.sh: Add mreadlink-with-size.
63790         * modules/mreadlink-with-size: New module
63791         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63792         not xreadlink-with-size.
63793         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63794
63795 2007-06-16  Bruno Haible  <bruno@clisp.org>
63796
63797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63798         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63799         Reported by Gary V. Vaughan <gary@gnu.org>.
63800
63801 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         Revamp lchown so that it lives in unistd.h where it belongs.
63804         * lib/lchown.h: Remove.
63805         * lib/dirchownmod.c: Don't include lib/lchown.h.
63806         * lib/fchownat.c: Likewise.
63807         * lib/openat.c: Likewise.
63808         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63809         does not follow symlinks.
63810         (EOPNOTSUPP): Define if not defined.
63811         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63812         is defined to 0.
63813         (lchown): New decl.
63814         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63815         Do not check for lchown decl.
63816         Set REPLACE_LCHOWN.
63817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63818         REPLACE_LCHOWN.
63819         * modules/chown: Make it clear it follows symlinks.
63820         * modules/lchown: Make it clear it doesn't follow symlinks.
63821         (Files): Remove lib/lchown.h
63822         (Depends-on): Add unistd.
63823         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63824         (Include): Include <unistd.h>, not "lchown.h".
63825         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63826         REPLACE_LCHOWN.
63827
63828 2007-06-15  Jim Meyering  <jim@meyering.net>
63829
63830         Change license (GPL to LGPL) of fsusage and dependents.
63831         * modules/fsusage (License): Change to LGPL.
63832         * modules/full-read (License): Likewise.
63833         * modules/full-write (License): Likewise.
63834         * modules/safe-read (License): Likewise.
63835         * modules/safe-write (License): Likewise.
63836
63837 2007-06-14  Ben Pfaff  <blp@gnu.org>
63838
63839         Missing part of allocsa -> malloca transition.
63840         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63841         gl_MALLOCA.
63842
63843 2007-06-12  Bruno Haible  <bruno@clisp.org>
63844
63845         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63846         to ia64, x86_64, i386.
63847         Reported by Eric Blake.
63848
63849 2007-06-12  Bruno Haible  <bruno@clisp.org>
63850
63851         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63852         cross-compiling to x86_64.
63853
63854 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63857         glitch reported by Ralf Wildenhues in
63858         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63859
63860         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63861         Vin Shelton.
63862
63863 2007-06-11  Bruno Haible  <bruno@clisp.org>
63864
63865         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63866         replacement string.
63867         Reported by Eric Blake.
63868
63869 2007-06-10  Bruno Haible  <bruno@clisp.org>
63870
63871         Prepare vasnprintf code for use with Unicode strings.
63872         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63873         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63874         TYPE_U32_STRING.
63875         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63876         a_u32_string variants.
63877         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63878         * lib/printf-args.c: Don't include config.h and the specification
63879         header if PRINTF_FETCHARGS is already defined.
63880         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63881         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63882         TYPE_U16_STRING, TYPE_U32_STRING.
63883         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63884         u16_directive, u16_directives, u32_directive, u32_directives): New
63885         types.
63886         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63887         New declarations.
63888         * lib/printf-parse.c: Don't include config.h and the specification
63889         header if PRINTF_PARSE is already defined. Eliminate the set of
63890         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63891         them now. Include c-ctype.h.
63892         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63893         directive and CHAR_T_ONLY_ASCII.
63894         * lib/vasnprintf.c: Don't include config.h and the specification header
63895         if VASNPRINTF is already defined.
63896         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63897         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63898         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63899         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63900         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63901         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63902         code accordingly.
63903         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63904         pad_ourselves also in this case, with the 'c' and 's' directives, and
63905         with a different notion of "width".
63906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63907
63908 2007-06-10  Bruno Haible  <bruno@clisp.org>
63909
63910         * modules/unistr/u32-mbsnlen: New file.
63911         * lib/unistr/u32-mbsnlen.c: New file.
63912
63913         * modules/unistr/u16-mbsnlen: New file.
63914         * lib/unistr/u16-mbsnlen.c: New file.
63915
63916         * modules/unistr/u8-mbsnlen: New file.
63917         * lib/unistr/u8-mbsnlen.c: New file.
63918
63919         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63920         declarations.
63921
63922 2007-06-10  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/string_.h (mbsnlen): New declaration.
63925         * lib/mbsnlen.c: New file.
63926         * m4/mbsnlen.m4: New file.
63927         * modules/mbsnlen: New file.
63928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63929         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63930         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63931
63932 2007-06-10  Bruno Haible  <bruno@clisp.org>
63933
63934         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63935
63936 2007-06-10  Bruno Haible  <bruno@clisp.org>
63937
63938         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63939         * lib/mbuiter.h: Likewise.
63940
63941 2007-06-10  Bruno Haible  <bruno@clisp.org>
63942
63943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63944         declaration.
63945
63946 2007-06-10  Karl Berry  <karl@gnu.org>
63947
63948         * config/srclist.txt: remove gettext entries, Bruno prefers
63949         to update individually.
63950
63951 2007-06-10  Bruno Haible  <bruno@clisp.org>
63952
63953         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63954         'maxlen'. Ensure only length + width bytes are allocated, not
63955         length + 1 + width.
63956
63957 2007-06-09  Bruno Haible  <bruno@clisp.org>
63958
63959         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63960         (CHAR_T): Remove macro.
63961         (VASNPRINTF): Update.
63962
63963 2007-06-09  Bruno Haible  <bruno@clisp.org>
63964
63965         * MODULES.html.sh (Unicode string functions): Add the new modules.
63966
63967         * modules/uniconv/u32-conv-to-enc: New file.
63968         * lib/uniconv/u32-conv-to-enc.c: New file.
63969         * modules/uniconv/u32-conv-to-enc-tests: New file.
63970         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63971
63972         * modules/uniconv/u16-conv-to-enc: New file.
63973         * lib/uniconv/u16-conv-to-enc.c: New file.
63974         * lib/uniconv/u-conv-to-enc.h: New file.
63975         * modules/uniconv/u16-conv-to-enc-tests: New file.
63976         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63977
63978         * modules/uniconv/u8-conv-to-enc: New file.
63979         * lib/uniconv/u8-conv-to-enc.c: New file.
63980         * modules/uniconv/u8-conv-to-enc-tests: New file.
63981         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63982
63983         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63984         u32_conv_to_encoding): New declarations.
63985
63986 2007-06-09  Bruno Haible  <bruno@clisp.org>
63987
63988         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63989
63990 2007-06-09  Bruno Haible  <bruno@clisp.org>
63991
63992         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63993         * modules/malloca: Renamed from modules/allocsa, updated.
63994         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63995         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63996         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63997         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63998         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63999         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64000         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64001         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64002         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64003         * modules/c-strcasestr (Depends-on): Update.
64004         * lib/c-strcasestr.c: Update.
64005         * modules/c-strstr (Depends-on): Update.
64006         * lib/c-strstr.c: Update.
64007         * modules/canonicalize-lgpl (Depends-on): Update.
64008         * lib/canonicalize-lgpl.c: Update.
64009         * modules/clean-temp (Depends-on): Update.
64010         * lib/clean-temp.c: Update.
64011         * modules/csharpcomp (Depends-on): Update.
64012         * lib/csharpcomp.c: Update.
64013         * modules/csharpexec (Depends-on): Update.
64014         * lib/csharpexec.c: Update.
64015         * modules/javacomp (Depends-on): Update.
64016         * lib/javacomp.c: Update.
64017         * modules/javaexec (Depends-on): Update.
64018         * lib/javaexec.c: Update.
64019         * modules/mbscasestr (Depends-on): Update.
64020         * lib/mbscasestr.c: Update.
64021         * modules/mbsstr (Depends-on): Update.
64022         * lib/mbsstr.c: Update.
64023         * modules/setenv (Depends-on): Update.
64024         * lib/setenv.c: Update.
64025         * modules/strcasestr (Depends-on): Update.
64026         * lib/strcasestr.c: Update.
64027         * modules/striconveha (Depends-on): Update.
64028         * lib/striconveha.c: Update.
64029         * modules/relocatable-prog-wrapper (Files): Update.
64030         * lib/relocwrapper.c: Update.
64031         * build-aux/install-reloc: Update.
64032         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64033
64034 2007-06-08  Bruno Haible  <bruno@clisp.org>
64035
64036         Port to uClibc.
64037         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64038         * lib/fpurge.c (fpurge): Likewise.
64039         * lib/freading.c (freading): Likewise.
64040         * lib/fseeko.c (rpl_fseeko): Likewise.
64041         * lib/fseterr.c (fseterr): Likewise.
64042         * lib/fwriting.c (fwriting): Likewise.
64043         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64044
64045 2007-06-08  Bruno Haible  <bruno@clisp.org>
64046
64047         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64048         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64049         * modules/gettext (Files): Add m4/intlmacosx.m4.
64050
64051 2007-06-07  Bruno Haible  <bruno@clisp.org>
64052
64053         * modules/localename-tests: New file.
64054         * tests/test-localename.c: New file.
64055
64056         New module 'localename'.
64057         * lib/localename.h: New file.
64058         * lib/localename.c: New file, from GNU gettext.
64059         * m4/localename.m4: New file.
64060         * modules/localename: New file.
64061
64062 2007-06-07  Bruno Haible  <bruno@clisp.org>
64063
64064         Work around the lack of <wchar.h> on some builds of uClibc.
64065         * doc/headers/wchar.texi: Update.
64066         * lib/wchar_.h: Include <wchar.h> only if it exists.
64067         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64068         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64069         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64070         doesn't exist.
64071         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64072         * modules/mbfile (Depends-on): Add wchar.
64073         * modules/mbiter (Depends-on): Likewise.
64074         * modules/mbuiter (Depends-on): Likewise.
64075         Reported by Simon Josefsson.
64076
64077 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64078
64079         Work around problem reported by Steven M. Schweda in
64080         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64081         Tru64 5.1B with the Compaq compiler environment installed declares
64082         an 'isblank' function but does not define it in the C library.
64083         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64084         * lib/regex_internal.h (isblank): Likewise.
64085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64086         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64087
64088 2007-06-05  Bruno Haible  <bruno@clisp.org>
64089
64090         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64091         ia64.
64092         * modules/printf-safe: New file.
64093         * modules/fprintf-posix (Depends-on): Add printf-safe.
64094         * modules/printf-posix (Depends-on): Likewise.
64095         * modules/snprintf-posix (Depends-on): Likewise.
64096         * modules/sprintf-posix (Depends-on): Likewise.
64097         * modules/vasnprintf-posix (Depends-on): Likewise.
64098         * modules/vasprintf-posix (Depends-on): Likewise.
64099         * modules/vfprintf-posix (Depends-on): Likewise.
64100         * modules/vprintf-posix (Depends-on): Likewise.
64101         * modules/vsnprintf-posix (Depends-on): Likewise.
64102         * modules/vsprintf-posix (Depends-on): Likewise.
64103         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64104         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64105         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64106         "no" on i386, x86_64, ia64.
64107         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64108         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64109         on i386, x86_64, ia64.
64110         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64111         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64112         on i386, x86_64, ia64.
64113         * tests/test-vasnprintf-posix.c: Include float.h.
64114         (LDBL80_WORDS): New macro.
64115         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64116         on i386, x86_64, ia64.
64117         * tests/test-vasprintf-posix.c: Include float.h.
64118         (LDBL80_WORDS): New macro.
64119         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64120         on i386, x86_64, ia64.
64121         * tests/test-snprintf-posix.c: Include float.h.
64122         * tests/test-sprintf-posix.c: Likewise.
64123         * tests/test-vsnprintf-posix.c: Likewise.
64124         * tests/test-vsprintf-posix.c: Likewise.
64125
64126 2007-06-05  Bruno Haible  <bruno@clisp.org>
64127
64128         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64129         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64130         non-IEEE numbers on i386, x86_64, ia64.
64131         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64132         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64133         * tests/test-isnanl.h: Include float.h.
64134         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64135
64136 2007-06-05  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64139         also the %a / %A. Handle the %a / %A code before this extra handling.
64140
64141 2007-06-05  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64144         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64145
64146 2007-06-05  Bruno Haible  <bruno@clisp.org>
64147
64148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64149         typo in variable name.
64150
64151 2007-06-05  Eric Blake  <ebb9@byu.net>
64152
64153         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64154         Reported by Simon Josefsson.
64155
64156 2007-06-04  Bruno Haible  <bruno@clisp.org>
64157
64158         Avoid test failures on some PowerPC platforms.
64159         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64160         Define differently for PowerPC.
64161         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64162         Reported by Gary V. Vaughan <gary@gnu.org>.
64163
64164 2007-06-02  Bruno Haible  <bruno@clisp.org>
64165
64166         Fix test-stdint failure on FreeBSD/ia64.
64167         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64168         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64169         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64170         * doc/headers/stdint.texi: Update.
64171
64172 2007-06-01  Bruno Haible  <bruno@clisp.org>
64173
64174         * tests/test-binary-io.c (main): Pass a third argument to open().
64175         Reported by Gary V. Vaughan <gary@gnu.org>.
64176
64177 2007-06-01  Bruno Haible  <bruno@clisp.org>
64178
64179         * doc/functions/frexpl.texi: Update for mingw.
64180
64181 2007-06-01  Bruno Haible  <bruno@clisp.org>
64182
64183         * tests/test-lseek.c (main): Disable test of errno for invalid third
64184         argument.
64185         * doc/functions/lseek.texi: Update.
64186         Reported by Gary V. Vaughan <gary@gnu.org>.
64187
64188 2007-05-28  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64191
64192 2007-05-31  Eric Blake  <ebb9@byu.net>
64193
64194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64195         cross compiling.
64196
64197 2007-05-30  Eric Blake  <ebb9@byu.net>
64198         and Bruno Haible  <bruno@clisp.org>
64199
64200         Work around mingw test failures exposed by m4-1.4.9b.
64201         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64202         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64203         moment.
64204
64205 2007-05-30  Bruno Haible  <bruno@clisp.org>
64206
64207         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64208         assuming that they are closed. Needed on HP-UX 11.
64209
64210 2007-05-29  Bruno Haible  <bruno@clisp.org>
64211
64212         Fix a problem with #include_next.
64213         * lib/dirent_.h: Split the double-inclusion guard.
64214         * lib/fcntl_.h: Likewise.
64215         * lib/float_.h: Likewise.
64216         * lib/iconv_.h: Likewise.
64217         * lib/inttypes_.h: Likewise.
64218         * lib/locale_.h: Likewise.
64219         * lib/math_.h: Likewise.
64220         * lib/netinet_in_.h: Likewise.
64221         * lib/search_.h: Likewise.
64222         * lib/signal_.h: Likewise.
64223         * lib/stdint_.h: Likewise.
64224         * lib/stdio_.h: Likewise.
64225         * lib/stdlib_.h: Likewise.
64226         * lib/string_.h: Likewise.
64227         * lib/sys_select_.h: Likewise.
64228         * lib/sys_socket_.h: Likewise.
64229         * lib/sys_stat_.h: Likewise.
64230         * lib/sys_time_.h: Likewise.
64231         * lib/sysexits_.h: Likewise.
64232         * lib/time_.h: Likewise.
64233         * lib/unistd_.h: Likewise.
64234         * lib/wchar_.h: Likewise.
64235         * lib/wctype_.h: Likewise.
64236
64237 2007-05-29  Bruno Haible  <bruno@clisp.org>
64238
64239         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64240         for the moment.
64241
64242 2007-05-29  Bruno Haible  <bruno@clisp.org>
64243
64244         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64245         invocation.
64246         Reported by Eric Blake.
64247
64248 2007-05-29  Bruno Haible  <bruno@clisp.org>
64249
64250         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64251         compiling case.
64252
64253 2007-05-29  Eric Blake  <ebb9@byu.net>
64254             Bruno Haible  <bruno@clisp.org>
64255
64256         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64257         cross compiles.
64258
64259 2007-05-28  Eric Blake  <ebb9@byu.net>
64260
64261         * modules/closein-tests (test_closein_LDADD): Support test on
64262         cygwin with libtool.
64263
64264 2007-05-28  Bruno Haible  <bruno@clisp.org>
64265
64266         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64267         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64268         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64269         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64270         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64271         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64272         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64273         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64274         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64275
64276 2007-05-28  Eric Blake  <ebb9@byu.net>
64277
64278         Unconditionally include <config.h> in unit tests.
64279         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64280         * tests/test-allocsa.c, tests/test-arcfour.c,
64281         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64282         tests/test-array_list.c, tests/test-array_oset.c,
64283         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64284         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64285         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64286         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64287         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64288         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64289         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64290         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64291         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64292         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64293         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64294         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64295         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64296         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64297         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64298         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64299         test-md5.c, test-memmem.c, test-printf-posix.c,
64300         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64301         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64302         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64303         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64304         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64305         test-vasnprintf-posix2.c, test-vasnprintf.c,
64306         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64307         test-vfprintf-posix.c, test-vprintf-posix.c,
64308         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64309         test-xvasprintf.c: Likewise.
64310
64311 2007-05-28  Bruno Haible  <bruno@clisp.org>
64312
64313         * gnulib-tool (func_import): Remember the --with-tests command-line
64314         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64315         Reported by Eric Blake.
64316
64317 2007-05-28  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/ftell-tests: New file.
64320         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64321         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64322
64323         * lib/ftell.c: New file.
64324         * modules/ftell: New file.
64325         * m4/ftell.m4: New file.
64326         * doc/functions/ftell.texi: Update.
64327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64328         REPLACE_FTELL.
64329         * lib/stdio_.h (rpl_ftell): New declaration.
64330         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64331         REPLACE_FTELL.
64332
64333 2007-05-28  Eric Blake  <ebb9@byu.net>
64334
64335         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64336
64337 2007-05-28  Bruno Haible  <bruno@clisp.org>
64338
64339         * modules/fseek-tests: New file.
64340         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64341         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64342
64343         * lib/fseek.c: New file.
64344         * modules/fseek: New file.
64345         * m4/fseek.m4: New file.
64346         * doc/functions/fseek.texi: Update.
64347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64348         REPLACE_FSEEK.
64349         * lib/stdio_.h (rpl_fseek): New declaration.
64350         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64351         REPLACE_FSEEK.
64352
64353 2007-05-28  Bruno Haible  <bruno@clisp.org>
64354
64355         * lib/stdio_.h (fflush): More comments.
64356
64357 2007-05-28  Bruno Haible  <bruno@clisp.org>
64358
64359         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64360         runtime test.
64361
64362 2007-05-28  Eric Blake  <ebb9@byu.net>
64363
64364         Improve lseek module.
64365         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64366         * lib/unistd_.h (lseek): Scale back link warning message.
64367         * tests/test-lseek.c: Beef up test.
64368         * tests/test-lseek.sh: Exercise more facets of lseek.
64369         Reported by Bruno Haible.
64370
64371 2007-05-28  Bruno Haible  <bruno@clisp.org>
64372
64373         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64374         to define.
64375
64376 2007-05-27  Bruno Haible  <bruno@clisp.org>
64377
64378         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64379
64380 2007-05-27  Bruno Haible  <bruno@clisp.org>
64381
64382         * modules/openmp: New file.
64383         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64384         Noah Misch.
64385
64386 2007-05-26  Bruno Haible  <bruno@clisp.org>
64387
64388         * modules/chdir-long (Depends-on): Add fchdir.
64389         * modules/chdir-safer (Depends-on): Likewise.
64390         * modules/fts (Depends-on): Likewise.
64391         * modules/fts-lgpl (Depends-on): Likewise.
64392         * modules/openat (Depends-on): Likewise.
64393         * modules/savewd (Depends-on): Likewise.
64394
64395 2007-05-24  Eric Blake  <ebb9@byu.net>
64396
64397         Fix lseek on mingw.
64398         * modules/lseek: New module.
64399         * m4/lseek.m4: New file.
64400         * lib/lseek.c: New file.
64401         * modules/lseek-tests: New file.
64402         * tests/test-lseek.c: New file.
64403         * tests/test-lseek.sh: New file.
64404         * MODULES.html.sh: Document lseek module.
64405         * modules/fflush (Depends-on): Add lseek, fseeko.
64406         * modules/fseeko (Depends-on): Likewise.
64407         * modules/ftello (Depends-on): Likewise.
64408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64409         broken.
64410         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64411         broken.
64412         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64413         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64414         * lib/ftello.c (rpl_ftello): Likewise.
64415         * tests/test-fseeko.c (main): Test this.
64416         * tests/test-fseeko.sh: Likewise.
64417         * tests/test-ftello.c (main): Likewise.
64418         * tests/test-ftello.sh: Likewise.
64419         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64420         implies replacing fseek.
64421         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64422         HAVE_FTELLO.
64423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64424         * modules/unistd (Makefile.am): Likewise.
64425         * lib/unistd_.h (lseek): Declare a replacement.
64426         * doc/functions/lseek.texi (lseek): Document this fix.
64427         * doc/functions/fseek.texi (fseek): Likewise.
64428         * doc/functions/ftell.texi (ftell): Likewise.
64429
64430 2007-05-24  Bruno Haible  <bruno@clisp.org>
64431
64432         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64433         in the printed representation of a NaN.
64434         * tests/test-vasprintf-posix.c (test_function): Likewise.
64435         * tests/test-snprintf-posix.h (test_function): Likewise.
64436         * tests/test-sprintf-posix.h (test_function): Likewise.
64437         Reported by Eric Blake.
64438
64439 2007-05-23  Eric Blake  <ebb9@byu.net>
64440
64441         Fix fseeko/ftello on cygwin 1.5.24.
64442         * doc/functions/fseeko.texi (fseeko): Document the fix.
64443         * doc/functions/ftello.texi (ftello): Document the fix.
64444         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64445         * doc/functions/stdout.text (stdout): New file.
64446         * doc/functions/stderr.text (stderr): New file.
64447         * doc/gnulib.texi (Function Substitutes): Use new files.
64448         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64449         prior to 1.7.0.
64450         * tests/test-ftello.c (main): Likewise for ftello.
64451         * tests/test-fseeko.sh: New file.
64452         * tests/test-ftello.sh: New file.
64453         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64454         with seekable stdin.
64455         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64456         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64457         (gl_REPLACE_FSEEKO): New macro.
64458         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64459         * modules/fseeko (Files): Distribute fseeko.c.
64460         * modules/ftello (Files): Distribute ftello.c.
64461         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64462         mode.
64463         * lib/ftello.c (rpl_ftello): New file.
64464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64465         fseeko, ftello.
64466         (gl_STDIN_LARGE_OFFSET): New macro.
64467         * modules/stdio (Makefile.am): Perform the replacement.
64468         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64469
64470 2007-05-23  Bruno Haible  <bruno@clisp.org>
64471
64472         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64473         GNULIB_POSIXCHECK is defined.
64474
64475 2007-05-21  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64478         Check also the output for NaN arguments. When cross-compiling, guess
64479         no on IRIX.
64480         * lib/vasnprintf.c: Update comments.
64481         * tests/test-vasnprintf-posix.c (strisnan): New function.
64482         (test_function): Use it.
64483         * tests/test-vasprintf-posix.c (strisnan): New function.
64484         (test_function): Use it.
64485         * tests/test-snprintf-posix.h (strisnan): New function.
64486         (test_function): Use it.
64487         * tests/test-sprintf-posix.h (strisnan): New function.
64488         (test_function): Use it.
64489         Reported by Eric Blake.
64490
64491 2007-05-20  Bruno Haible  <bruno@clisp.org>
64492
64493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64494         numbers that fails on BeOS.
64495         * doc/functions/frexpl.texi: Update.
64496
64497 2007-05-20  Jim Meyering  <jim@meyering.net>
64498
64499         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64500         forced upon us by glibc-2.6.
64501
64502 2007-05-20  Bruno Haible  <bruno@clisp.org>
64503
64504         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64505         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64506         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64507         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64508         NEED_PRINTF_INFINITE.
64509         (is_infinitel): New function.
64510         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64512         gl_PREREQ_VASNPRINTF_INFINITE.
64513         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64515         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64516         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64517         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64518         gl_PREREQ_VASNPRINTF_INFINITE.
64519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64526         * doc/functions/fprintf.texi: Update.
64527         * doc/functions/printf.texi: Update.
64528         * doc/functions/snprintf.texi: Update.
64529         * doc/functions/sprintf.texi: Update.
64530         * doc/functions/vfprintf.texi: Update.
64531         * doc/functions/vprintf.texi: Update.
64532         * doc/functions/vsnprintf.texi: Update.
64533         * doc/functions/vsprintf.texi: Update.
64534
64535 2007-05-20  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64538         was not found in libc.
64539         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64540
64541 2007-05-20  Bruno Haible  <bruno@clisp.org>
64542
64543         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64544         printed as "-nan" instead of "nan".
64545         * tests/test-vasprintf-posix.c (test_function): Likewise.
64546         * tests/test-snprintf-posix.h (test_function): Likewise.
64547         * tests/test-sprintf-posix.h (test_function): Likewise.
64548         Needed for HP-UX 11.
64549
64550 2007-05-20  Jim Meyering  <jim@meyering.net>
64551
64552         Fix buggy test for the fchownat-deref bug.
64553         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64554         symlink required for the run-test.  Without it, this test would
64555         always declare that fchownat doesn't work, and client code would
64556         unnecessarily use the replacement function with fixed libc.
64557         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64558         Reported by Greg Schafer.
64559
64560 2007-05-19  Bruno Haible  <bruno@clisp.org>
64561
64562         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64563         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64564         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64565         Needed for IRIX 6.5 and Solaris 2.5.1.
64566
64567 2007-05-19  Bruno Haible  <bruno@clisp.org>
64568
64569         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64570         (test_function): Skip tests involving -0.0 on platforms where
64571         -0.0 = 0.0.
64572         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64573         (test_function): Skip tests involving -0.0 on platforms where
64574         -0.0 = 0.0.
64575         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64576         (test_function): Skip tests involving -0.0 on platforms where
64577         -0.0 = 0.0.
64578         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64579         (test_function): Skip tests involving -0.0 on platforms where
64580         -0.0 = 0.0.
64581         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64582         tests.
64583         * tests/test-printf-posix.h (test_function): Likewise.
64584         * tests/test-printf-posix.output: Remove all -0.0 related results.
64585         Needed for IRIX 6.5.
64586
64587 2007-05-19  Bruno Haible  <bruno@clisp.org>
64588
64589         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64590         printed as "nan0x7fffffff" instead of "nan".
64591         * tests/test-vasprintf-posix.c (test_function): Likewise.
64592         * tests/test-snprintf-posix.h (test_function): Likewise.
64593         * tests/test-sprintf-posix.h (test_function): Likewise.
64594         * tests/test-fprintf-posix.h (NaN): Remove macro.
64595         (test_function): Remove all NaN related tests.
64596         * tests/test-printf-posix.h (NaN): Remove macro.
64597         (test_function): Remove all NaN related tests.
64598         * tests/test-printf-posix.output: Remove all NaN related results.
64599         Needed for IRIX 6.5.
64600
64601 2007-05-19  Bruno Haible  <bruno@clisp.org>
64602
64603         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64605
64606 2007-05-19  Bruno Haible  <bruno@clisp.org>
64607
64608         * lib/float_.h: New file.
64609         * m4/float_h.m4: New file.
64610         * modules/float: New file.
64611         * modules/isnanl (Dependencies): Add float.
64612         * modules/isnanl-nolibm (Dependencies): Likewise.
64613         * modules/mathl (Dependencies): Likewise.
64614         * modules/printf-frexpl (Dependencies): Likewise.
64615         * modules/signbit (Dependencies): Likewise.
64616         * modules/vasnprintf (Dependencies): Likewise.
64617         * doc/headers/float.texi: Update.
64618
64619 2007-05-19  Jim Meyering  <jim@meyering.net>
64620
64621         * lib/utimens.c (gl_futimens): Rename from futimens,
64622         now that glibc-2.6 declares futimens.
64623         * lib/utimens.h: Likewise.
64624
64625 2007-05-19  Bruno Haible  <bruno@clisp.org>
64626
64627         Avoid test failures on mingw.
64628         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64629         * tests/test-printf-posix.sh: Likewise.
64630         * tests/test-vfprintf-posix.sh: Likewise.
64631         * tests/test-vprintf-posix.sh: Likewise.
64632
64633 2007-05-19  Bruno Haible  <bruno@clisp.org>
64634
64635         Fix *printf result for NaN, Inf, -0.0 on mingw.
64636         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64637         * lib/vasnprintf.c: Include math.h and isnan.h.
64638         (is_infinite_or_zero): New function.
64639         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64640         values in the %f, %F, %e, %E, %g, %G directives.
64641         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64642         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64643         gl_PRINTF_INFINITE and test its result. Invoke
64644         gl_PREREQ_VASNPRINTF_INFINITE.
64645         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64649         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64651         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64652         * doc/functions/fprintf.texi: Update.
64653         * doc/functions/printf.texi: Update.
64654         * doc/functions/snprintf.texi: Update.
64655         * doc/functions/sprintf.texi: Update.
64656         * doc/functions/vfprintf.texi: Update.
64657         * doc/functions/vprintf.texi: Update.
64658         * doc/functions/vsnprintf.texi: Update.
64659         * doc/functions/vsprintf.texi: Update.
64660
64661 2007-05-19  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64664         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64665         Instead of multiplying with 10^k, set extra_zeroes to k.
64666         (scale10_round_long_double): Remove function.
64667
64668 2007-05-18  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64671         introduced on 2007-05-06.
64672
64673 2007-05-18  Bruno Haible  <bruno@clisp.org>
64674
64675         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64676         %g directives.
64677         * tests/test-vasprintf-posix.c (test_function): Likewise.
64678         * tests/test-snprintf-posix.h (test_function): Likewise.
64679         * tests/test-sprintf-posix.h (test_function): Likewise.
64680
64681 2007-05-18  Bruno Haible  <bruno@clisp.org>
64682
64683         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64684         (strmatch): New function.
64685         (test_function): Test the %f directive on numbers of various exponents.
64686         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64687         (strmatch): New function.
64688         (test_function): Test the %f directive on numbers of various exponents.
64689         * tests/test-snprintf-posix.h (strmatch): New function.
64690         (test_function): Test the %f directive on numbers of various exponents.
64691         * tests/test-sprintf-posix.h (strmatch): New function.
64692         (test_function): Test the %f directive on numbers of various exponents.
64693         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64694         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64695         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64696         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64697
64698 2007-05-18  Bruno Haible  <bruno@clisp.org>
64699
64700         Add support for 'long double' number output.
64701         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64702         * lib/vasnprintf.c: Include math.h and float+.h.
64703         (mp_limb_t): New type.
64704         (GMP_LIMB_BITS): New macro.
64705         (mp_twolimb_t): New type.
64706         (GMP_TWOLIMB_BITS): New macro.
64707         (mpn_t): New type.
64708         (multiply, divide, convert_to_decimal, decode_long_double,
64709         scale10_round_long_double, scale10_round_decimal_long_double,
64710         floorlog10l): New functions.
64711         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64712         for the %f, %F, %e, %E, %g, %G directives.
64713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64714         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64715         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64716         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64724         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64725         * modules/snprintf-posix (Depends-on): Likewise.
64726         * modules/sprintf-posix (Depends-on): Likewise.
64727         * modules/vasnprintf-posix (Depends-on): Likewise.
64728         * modules/vasprintf-posix (Depends-on): Likewise.
64729         * modules/vfprintf-posix (Depends-on): Likewise.
64730         * modules/vsnprintf-posix (Depends-on): Likewise.
64731         * modules/vsprintf-posix (Depends-on): Likewise.
64732         * modules/vasnprintf (Files): Add lib/float+.h.
64733         * doc/functions/fprintf.texi: Update.
64734         * doc/functions/printf.texi: Update.
64735         * doc/functions/snprintf.texi: Update.
64736         * doc/functions/sprintf.texi: Update.
64737         * doc/functions/vfprintf.texi: Update.
64738         * doc/functions/vprintf.texi: Update.
64739         * doc/functions/vsnprintf.texi: Update.
64740         * doc/functions/vsprintf.texi: Update.
64741
64742 2007-05-18  Bruno Haible  <bruno@clisp.org>
64743
64744         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64745
64746 2007-05-18  Bruno Haible  <bruno@clisp.org>
64747
64748         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64749         for printing 64-bit integers. Needed for mingw.
64750
64751 2007-05-18  Bruno Haible  <bruno@clisp.org>
64752
64753         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64754         gl_FUNC_FREXPL_WORKS.
64755         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64756
64757 2007-05-18  Bruno Haible  <bruno@clisp.org>
64758
64759         * modules/frexpl-nolibm-tests: New file.
64760
64761         * modules/frexpl-nolibm: New file.
64762         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64763
64764 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64765
64766         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64767         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64768         GCC 4.2, which otherwise issues a lot of warnings.
64769         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64770         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64771         Likewise.
64772         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64773         * modules/iconv_open (iconv.h): Likewise.
64774         * modules/locale (locale.h): Likewise.
64775         * modules/netinet_in (netinet/in.h): Likewise.
64776         * modules/sys_select (sys_select.h): Likewise.
64777         * modules/sys_socket (sys/socket.h): Likewise.
64778         * modules/sys_stat (sys/stat.h): Likewise.
64779         * modules/sysexits (sysexits.h): Likewise.
64780         * modules/unistd (unistd.h): Likewise.
64781
64782 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64783
64784         * modules/closein-tests (Makefile.am): Distribute
64785         `test-closein.sh'.
64786
64787 2007-05-17  Bruno Haible  <bruno@clisp.org>
64788
64789         * tests/test-printf-posix.output: Renamed from
64790         tests/test-fprintf-posix.out.
64791         * modules/fprintf-posix-tests: Update.
64792         * modules/printf-posix-tests: Update.
64793         * modules/vfprintf-posix-tests: Update.
64794         * modules/vprintf-posix-tests: Update.
64795         * tests/test-fprintf-posix.sh: Update.
64796         * tests/test-printf-posix.sh: Update.
64797         * tests/test-vfprintf-posix.sh: Update.
64798         * tests/test-vprintf-posix.sh: Update.
64799         Reported by Ralf Wildenhues.
64800
64801 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64802
64803         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64804         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64805         GCC 4.2, which otherwise issues a lot of warnings.
64806         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64807         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64808         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64809         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64810         it should no longer be needed.
64811         * lib/string_.h: Likewise.
64812         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64813         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64814         * modules/inttypes (inttypes.h): Likewise.
64815         * modules/math (math.h): Likewise.
64816         * modules/search (search.h): Likewise.
64817         * modules/signal (signal.h): Likewise.
64818         * modules/stdint (stdint.h): Likewise.
64819         * modules/stdio (stdio.h): Likewise.
64820         * modules/stdlib (stdlib.h): Likewise.
64821         * modules/string (string.h): Likewise.
64822         * modules/sys_time (sys/time.h): Likewise.
64823         * modules/time (time.h): Likewise.
64824         * modules/wchar (wchar.h): Likewise.
64825         * modules/wctype (wtype.h): Likewise.
64826
64827 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64828
64829         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64830
64831 2007-05-13  Bruno Haible  <bruno@clisp.org>
64832
64833         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64834         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64835         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64836         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64837         (gl_PREREQ_STRTOK_R): Don't require it here.
64838
64839 2007-05-13  Bruno Haible  <bruno@clisp.org>
64840
64841         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64842         when used in C++ mode.
64843
64844 2007-05-12  Bruno Haible  <bruno@clisp.org>
64845
64846         * lib/linebuffer.h: Tweak doc.
64847         * lib/linebuffer.c: Likewise.
64848
64849 2007-05-12  James Youngman  <jay@gnu.org>
64850
64851         * lib/linebuffer.c (readlinebuffer_delim): New function,
64852         like readlinebuffer, but use a caller-specified delimiter.
64853         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64854         as the delimiter.
64855         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64856
64857 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64858
64859         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64860         * modules/openat (Files): Remove openat-die.c.
64861         (Depends-on): Add openat-die.
64862         * modules/openat-die: New module.
64863
64864 2007-05-06  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64867         Update with info about Cygwin.
64868         * doc/functions/fprintf.texi: Update.
64869         * doc/functions/printf.texi: Update.
64870         * doc/functions/snprintf.texi: Update.
64871         * doc/functions/sprintf.texi: Update.
64872         * doc/functions/vfprintf.texi: Update.
64873         * doc/functions/vprintf.texi: Update.
64874         * doc/functions/vsnprintf.texi: Update.
64875         * doc/functions/vsprintf.texi: Update.
64876         Reported by Eric Blake.
64877
64878 2007-05-06  Bruno Haible  <bruno@clisp.org>
64879
64880         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64881         padding ourselves for the floating-point directives.
64882         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64885         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64886         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64888         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64894         * tests/test-snprintf-posix.h (test_function): Also check the width
64895         and some flags in the %f directive.
64896         * tests/test-sprintf-posix.h (test_function): Likewise.
64897         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64898         * tests/test-vasprintf-posix.c (test_function): Likewise.
64899         * doc/functions/fprintf.texi: Update.
64900         * doc/functions/printf.texi: Update.
64901         * doc/functions/snprintf.texi: Update.
64902         * doc/functions/sprintf.texi: Update.
64903         * doc/functions/vfprintf.texi: Update.
64904         * doc/functions/vprintf.texi: Update.
64905         * doc/functions/vsnprintf.texi: Update.
64906         * doc/functions/vsprintf.texi: Update.
64907
64908 2007-05-06  Bruno Haible  <bruno@clisp.org>
64909
64910         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64911         pass the ' flag character to sprintf or snprintf.
64912         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64914         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64915         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64916         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64917         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64919         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64924         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64925         flag.
64926         * tests/test-sprintf-posix.h (test_function): Likewise.
64927         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64928         * tests/test-vasprintf-posix.c (test_function): Likewise.
64929         * doc/functions/fprintf.texi: Update.
64930         * doc/functions/printf.texi: Update.
64931         * doc/functions/snprintf.texi: Update.
64932         * doc/functions/sprintf.texi: Update.
64933         * doc/functions/vfprintf.texi: Update.
64934         * doc/functions/vprintf.texi: Update.
64935         * doc/functions/vsnprintf.texi: Update.
64936         * doc/functions/vsprintf.texi: Update.
64937
64938 2007-05-01  Bruno Haible  <bruno@clisp.org>
64939
64940         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64941
64942 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64945         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64946
64947 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64950         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64951         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64952
64953 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64954
64955         * lib/argp-help.c (struct hol_entry): New member `ord'.
64956         (HOL_ENTRY_PTRCMP): Use ord for comparison
64957         (hol_sort): Initialize ord.
64958
64959 2007-05-01  Bruno Haible  <bruno@clisp.org>
64960
64961         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64962         Reported by Eric Blake.
64963         * doc/gnulib.texi (Function Substitutes): Update.
64964
64965 2007-05-01  Bruno Haible  <bruno@clisp.org>
64966
64967         * doc/functions.texi: Remove file, now redundant through
64968         doc/functions/*.texi.
64969
64970 2007-05-01  Bruno Haible  <bruno@clisp.org>
64971
64972         * modules/argp (Depends-on): Add sleep.
64973
64974 2007-05-01  Bruno Haible  <bruno@clisp.org>
64975
64976         * modules/sleep-tests: New file.
64977         * tests/test-sleep.c: New file.
64978
64979         * modules/sleep: New file.
64980         * lib/sleep.c: New file.
64981         * m4/sleep.m4: New file.
64982         * lib/unistd_.h (sleep): New declaration.
64983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64984         HAVE_SLEEP.
64985         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64986         * doc/functions/sleep.texi: Document the sleep module.
64987
64988 2007-05-01  Bruno Haible  <bruno@clisp.org>
64989
64990         * lib/sigprocmask.h: Remove file.
64991         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64992         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64994         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64995         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64996         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64997         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64998         HAVE_SIGSET_T as a shell variable.
64999         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65000         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65001         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65002         (Depends-on): Add signal. Remove verify.
65003         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65004         (Include): Mention <signal.h> instead of sigprocmask.h.
65005         * NEWS: Mention the change.
65006         * lib/fatal-signal.c: Don't include sigprocmask.h.
65007
65008 2007-05-01  Bruno Haible  <bruno@clisp.org>
65009
65010         * modules/signal: New file.
65011         * lib/signal_.h: New file.
65012         * m4/signal_h.m4: New file.
65013
65014 2007-05-01  Bruno Haible  <bruno@clisp.org>
65015
65016         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65017         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65018         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65019         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65020
65021 2007-05-01  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65024         configure time.
65025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65026         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65027         * modules/sys_stat (Makefile.am): Substitute their values into
65028         sys/stat.h.
65029
65030 2007-05-01  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65033         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65034         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65035
65036 2007-05-01  Bruno Haible  <bruno@clisp.org>
65037
65038         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65039         'assert' module here.
65040
65041 2007-05-01  Bruno Haible  <bruno@clisp.org>
65042
65043         * doc/functions/*.texi: New files.
65044         * doc/functions/google-ranking.txt: New file.
65045         * doc/gnulib.texi (Function Substitutes): New chapter.
65046         (ctime, inet_ntoa): Remove sections.
65047         * doc/ctime.texi: Remove file.
65048         * doc/inet_ntoa.texi: Remove file.
65049         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65050         dependencies.
65051         (%.info): New rule, specifying a --reference-limit.
65052
65053 2007-05-01  Bruno Haible  <bruno@clisp.org>
65054
65055         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65056
65057 2007-05-01  Bruno Haible  <bruno@clisp.org>
65058
65059         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65060         the portability of 'mkdir' to mingw systems.
65061
65062 2007-05-01  Bruno Haible  <bruno@clisp.org>
65063
65064         * doc/headers/google-ranking.txt: New file.
65065
65066 2007-04-30  Eric Blake  <ebb9@byu.net>
65067
65068         Prefer fseeko to fseek.
65069         * modules/getpass (Depends-on): Add fseeko.
65070         * lib/getpass.c (getpass): Use fseeko, not fseek.
65071
65072 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65073
65074         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65075         assumes the sorting is stable, while most qsort implementations
65076         are not.  Use argument addresses to ensure they never compare as
65077         equal.
65078
65079         * tests/test-argp-2.sh (usage-indent test): Fix output
65080         (func_compare): Restore diff options
65081         * tests/test-argp.c: Restore #include "progname.h"
65082
65083 2007-04-29  Bruno Haible  <bruno@clisp.org>
65084
65085         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65087         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65089         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65090         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65091         (TESTS, check_PROGRAMS): Add test-snprintf.
65092         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65093         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65094         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65095         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65096         assertions that fail on HP-UX, OSF/1, or IRIX.
65097         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65098
65099 2007-04-29  Bruno Haible  <bruno@clisp.org>
65100
65101         * MODULES.html.sh (posix_functions): Remove 'contents'.
65102
65103 2007-04-29  Karl Berry  <karl@gnu.org>
65104
65105         * config/srclist.txt (gendocs_template_min): new entry.
65106
65107 2007-04-29  Bruno Haible  <bruno@clisp.org>
65108
65109         Work around fpurge bug on BSD systems.
65110         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65111         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65112         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65113         fpurge to rpl_fpurge if the system already has this function.
65114         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65115         the case where the system already has this function. Correct invariants
65116         on BSD systems.
65117         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65118         BSD systems.
65119
65120 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65121
65122         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65123         proposed by Sven Verdoolaege.
65124
65125         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65126         options.
65127         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65128         (usage and help tests): Update
65129
65130 2007-04-29  Bruno Haible  <bruno@clisp.org>
65131
65132         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65133         Print more information in case of failure. Disable a test on BeOS.
65134
65135 2007-04-29  Bruno Haible  <bruno@clisp.org>
65136
65137         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65138         This helps debugging on systems on which no gdb is available.
65139
65140 2007-04-29  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/freading.h: Improve comments.
65143         * lib/fwriting.h: Likewise.
65144         * tests/test-freading.c (main): Don't check freading immediately after
65145         repositioning. Needed for glibc.
65146
65147 2007-04-29  Bruno Haible  <bruno@clisp.org>
65148
65149         * lib/freading.c (freading): Trivial simplification.
65150
65151 2007-04-28  Bruno Haible  <bruno@clisp.org>
65152
65153         * tests/test-fwriting.c (main): Also test the interaction between
65154         fflush and fwriting.
65155         * modules/fwriting-tests (Depends-on): Add fflush.
65156
65157         * tests/test-freading.c (main): Also test the interaction between
65158         fflush and freading.
65159         * modules/freading-tests (Depends-on): Add fflush.
65160
65161 2007-04-28  Bruno Haible  <bruno@clisp.org>
65162
65163         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65164         fseeko and ftello.
65165         Suggested by Eric Blake.
65166
65167 2007-04-28  Jim Meyering  <jim@meyering.net>
65168
65169         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65170         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65171         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65172
65173 2007-04-27  Eric Blake  <ebb9@byu.net>
65174
65175         * doc/headers/assert.texi (assert.h): Document assert module use.
65176
65177 2007-04-27  Bruno Haible  <bruno@clisp.org>
65178
65179         * doc/headers/*.texi: New files.
65180         * doc/gnulib.texi (Header File Substitutes): New chapter.
65181         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65182         dependencies.
65183         (standards.info ,standards.html, standards.dvi): Update dependencies.
65184         (mostlyclean, clean): New targets.
65185
65186 2007-04-27  Bruno Haible  <bruno@clisp.org>
65187
65188         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65189         * modules/sysexits (Files, Makefile.am): Update.
65190
65191         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65192         * modules/sys_socket (Files, Makefile.am): Update.
65193
65194         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65195         * modules/sys_stat (Files, Makefile.am): Update.
65196
65197 2007-04-27  Eric Blake  <ebb9@byu.net>
65198
65199         * lib/freading.h: Improve comments.
65200         * lib/fwriting.h: Likewise.
65201         * lib/fflush.c: Likewise.
65202
65203         Fix closein for mingw.
65204         * modules/closein-tests: Add tests for closein.
65205         * tests/test-closein.c: New file.
65206         * tests/test-closein.sh: Likewise.
65207         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65208         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65209
65210 2007-04-27  Bruno Haible  <bruno@clisp.org>
65211
65212         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65213         version is < 6.
65214         * lib/math_.h [__DECC]: Likewise.
65215         * lib/stdio_.h [__DECC]: Likewise.
65216         * lib/stdlib_.h [__DECC]: Likewise.
65217         * lib/string_.h [__DECC]: Likewise.
65218         * lib/time_.h [__DECC]: Likewise.
65219         * lib/wchar_.h [__DECC]: Likewise.
65220         * lib/wctype_.h [__DECC]: Likewise.
65221
65222 2007-04-27  Bruno Haible  <bruno@clisp.org>
65223
65224         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65225
65226 2007-04-27  Bruno Haible  <bruno@clisp.org>
65227
65228         * lib/fflush.c: Add comments.
65229         * modules/fpurge-tests (Depends-on): Add fflush.
65230         * modules/freadable-tests (Depends-on): Likewise.
65231         * modules/fwritable-tests (Depends-on): Likewise.
65232
65233 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65234
65235         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65236         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65237         Report by Bruno Haible <bruno@clisp.org>.
65238
65239 2007-04-26  Eric Blake  <ebb9@byu.net>
65240
65241         Fix fflush on mingw.
65242         * modules/fflush (Depends-on): Add freading.
65243         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65244         but unread data.
65245
65246 2007-04-26  Eric Blake  <ebb9@byu.net>
65247         and Bruno Haible  <bruno@clisp.org>
65248
65249         Implement freading and fwriting.
65250         * lib/freading.c: New file.
65251         * lib/freading.h: Likewise.
65252         * m4/freading.m4: Likewise.
65253         * modules/freading: Likewise.
65254         * modules/freading-tests: Likewise.
65255         * tests/test-freading.c: Likewise.
65256         * lib/fwriting.c: New file.
65257         * lib/fwriting.h: Likewise.
65258         * m4/fwriting.m4: Likewise.
65259         * modules/fwriting: Likewise.
65260         * modules/fwriting-tests: Likewise.
65261         * tests/test-fwriting.c: Likewise.
65262         * MODULES.html.sh (File stream based Input/Output): Mention them.
65263
65264 2007-04-26  Bruno Haible  <bruno@clisp.org>
65265
65266         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65267         'long' when we assume it.
65268         Suggested by Eric Blake.
65269
65270 2007-04-26  Bruno Haible  <bruno@clisp.org>
65271
65272         Ensure fseeko, ftello are declared on glibc systems.
65273         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65274         * modules/fseeko (configure.ac-early): Likewise.
65275         * modules/ftello (configure.ac-early): Likewise.
65276         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65277         AC_FUNC_FSEEKO for this.
65278         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65279         (gl_CHECK_FSEEKO): Remove macro.
65280
65281 2007-04-26  Bruno Haible  <bruno@clisp.org>
65282
65283         * tests/test-fflush.c (main): Also check the ftell result after
65284         fflush and fseek/fseeko.
65285         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65286         file descriptor position cache in the stream.
65287         * lib/fseeko.c (rpl_fseeko): Likewise.
65288
65289 2007-04-26  Bruno Haible  <bruno@clisp.org>
65290
65291         * modules/fflush-tests (Depends-on): Add fseeko.
65292
65293 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65294             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65295
65296         * lib/argz_.h: ensure error_t definition is obtained in same
65297         mechanism system argz.h would have.
65298         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65299         argz facilities are known bad.  Err on the side of caution if
65300         cross-compiling.
65301
65302 2007-04-25  Eric Blake  <ebb9@byu.net>
65303
65304         * lib/fpurge.c (includes): Use stdlib.h for free.
65305         * tests/test-fflush.c (main): Also test fflush-fseeko.
65306
65307 2007-04-25  Bruno Haible  <bruno@clisp.org>
65308
65309         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65310         * lib/fseeko.c: New file.
65311         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65312         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65313         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65314         gl_FUNC_FSEEKO.
65315         (gl_FUNC_FSEEKO): Invoke it.
65316         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65317         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65318         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65319
65320 2007-04-25  Bruno Haible  <bruno@clisp.org>
65321
65322         * modules/fflush (Depends-on): Add ftello.
65323
65324 2007-04-25  Bruno Haible  <bruno@clisp.org>
65325
65326         * modules/ftello-tests: New file.
65327         * tests/test-ftello.c: New file.
65328
65329         * modules/ftello: New file.
65330         * m4/ftello.m4: New file.
65331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65332         HAVE_FTELLO.
65333         * lib/stdio_.h (ftello): New declaration.
65334         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65335         HAVE_FTELLO.
65336
65337 2007-04-25  Bruno Haible  <bruno@clisp.org>
65338
65339         * modules/fseeko-tests: New file.
65340         * tests/test-fseeko.c: New file.
65341
65342         * modules/fseeko: New file.
65343         * m4/fseeko.m4: New file.
65344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65345         HAVE_FSEEKO.
65346         * lib/stdio_.h (fseeko): New declaration.
65347         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65348         HAVE_FSEEKO.
65349
65350 2007-04-25  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65353
65354 2007-04-25  Bruno Haible  <bruno@clisp.org>
65355
65356         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65357         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65358         * tests/test-unistd.c: Likewise.
65359         * tests/test-fcntl.c: Likewise.
65360
65361 2007-04-23  Eric Blake  <ebb9@byu.net>
65362
65363         * lib/fflush.c: Fix missing include.
65364         Reported by Bruno Haible.
65365
65366 2007-04-23  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65369         Reported by Eric Blake.
65370
65371 2007-04-23  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65374
65375 2007-04-23  Bruno Haible  <bruno@clisp.org>
65376
65377         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65378
65379 2007-04-23  Bruno Haible  <bruno@clisp.org>
65380
65381         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65382         Needed on HP-UX 11.
65383
65384 2007-04-16  Eric Blake  <ebb9@byu.net>
65385
65386         Make fflush rely on fpurge.
65387         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65388         open coding all variants.
65389         * modules/fflush (Depends-on): Add fpurge and unistd.
65390         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65391         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65392
65393         Fix --with-tests compilation on cygwin.
65394         * modules/argmatch-tests (Makefile.am): List gnulib library first
65395         in LDADD.
65396         * modules/argp-tests (Makefile.am): Likewise.
65397         * modules/array-list-tests (Makefile.am): Likewise.
65398         * modules/array-oset-tests (Makefile.am): Likewise.
65399         * modules/avltree-list-tests (Makefile.am): Likewise.
65400         * modules/avltree-oset-tests (Makefile.am): Likewise.
65401         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65402         * modules/carray-list-tests (Makefile.am): Likewise.
65403         * modules/dirname-tests (Makefile.am): Likewise.
65404         * modules/frexp-tests (Makefile.am): Likewise.
65405         * modules/isnanl-tests (Makefile.am): Likewise.
65406         * modules/linked-list-tests (Makefile.am): Likewise.
65407         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65408         * modules/lock-tests (Makefile.am): Likewise.
65409         * modules/rbtree-list-tests (Makefile.am): Likewise.
65410         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65411         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65412         * modules/tls-tests (Makefile.am): Likewise.
65413         * modules/tsearch-tests (Makefile.am): Likewise.
65414         * modules/xvasprintf-tests (Makefile.am): Likewise.
65415
65416         Fix fpurge for cygwin.
65417         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65418         value.
65419         * modules/fpurge-tests (Depends-on): Clean up trash.
65420
65421 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65422
65423         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65424
65425         * m4/autobuild.m4: Re-indent.
65426
65427 2007-04-13  Bruno Haible  <bruno@clisp.org>
65428
65429         * modules/fpurge-tests: New file.
65430         * tests/test-fpurge.c: New file.
65431
65432         * modules/fpurge: New file.
65433         * lib/fpurge.h: New file.
65434         * lib/fpurge.c: New file.
65435         * m4/fpurge.m4: New file.
65436
65437 2007-04-13  Bruno Haible  <bruno@clisp.org>
65438
65439         * modules/fbufmode-tests: New file.
65440         * tests/test-fbufmode.c: New file.
65441
65442         * modules/fbufmode: New file.
65443         * lib/fbufmode.h: New file.
65444         * lib/fbufmode.c: New file.
65445         * m4/fbufmode.m4: New file.
65446
65447 2007-04-13  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/fwritable-tests: New file.
65450         * tests/test-fwritable.c: New file.
65451
65452         * modules/fwritable: New file.
65453         * lib/fwritable.h: New file.
65454         * lib/fwritable.c: New file.
65455         * m4/fwritable.m4: New file.
65456
65457 2007-04-13  Bruno Haible  <bruno@clisp.org>
65458
65459         * modules/freadable-tests: New file.
65460         * tests/test-freadable.c: New file.
65461
65462         * modules/freadable: New file.
65463         * lib/freadable.h: New file.
65464         * lib/freadable.c: New file.
65465         * m4/freadable.m4: New file.
65466
65467 2007-04-13  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65470         MOSTLYCLEANFILES.
65471
65472 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65475         gzip bootstrap.conf to avoid dragging in i18n machinery.
65476         (gnulib_tool_option): Use it.
65477
65478 2007-04-13  Bruno Haible  <bruno@clisp.org>
65479
65480         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65481         %F directives.
65482         * tests/test-vasprintf-posix.c (test_function): Likewise.
65483         * tests/test-snprintf-posix.h (test_function): Likewise.
65484         * tests/test-sprintf-posix.h (test_function): Likewise.
65485         * tests/test-fprintf-posix.h (test_function): Likewise.
65486         * tests/test-printf-posix.h (test_function): Likewise.
65487         * tests/test-fprintf-posix.out: Likewise.
65488
65489 2007-04-13  Bruno Haible  <bruno@clisp.org>
65490
65491         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65492         * modules/tls-tests (configure.ac): Likewise.
65493         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65494
65495 2007-04-13  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/tls.c (glthread_tls_get): Fix return type.
65498         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65499
65500 2007-04-12  Eric Blake  <ebb9@byu.net>
65501
65502         * modules/gettime (Depends-on): Remove gettime.
65503         Reported by Dmitry V. Levin.
65504
65505 2007-04-12  Bruno Haible  <bruno@clisp.org>
65506
65507         * modules/fflush (Include): Mention <stdio.h>.
65508         * modules/strtoimax (Include): Mention <inttypes.h>.
65509         * modules/strtoumax (Include): Likewise.
65510
65511 2007-04-12  Eric Blake  <ebb9@byu.net>
65512
65513         * .cvsignore: New file.
65514         * .gitignore: Likewise.
65515
65516 2007-04-12  Bruno Haible  <bruno@clisp.org>
65517
65518         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65519         not before, since $(LDADD) often contains libgnu.a.
65520         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65521         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65522         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65523         Needed on Cygwin.
65524
65525 2007-04-12  Eric Blake  <ebb9@byu.net>
65526
65527         Work around glibc's failure to flush stdin on fclose.
65528         * lib/closein.c (close_stdin): Flush stdin before closing.
65529
65530         Work around glibc's failure to reset seekable stdin on exit.
65531         * modules/closein: New module.
65532         * lib/closein.c: New file.
65533         * lib/closein.h: Likewise.
65534         * m4/closein.m4: Likewise.
65535         * MODULES.html.sh (File stream based Input/Output): Document it.
65536
65537 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65538
65539         * gnulib-tool: Rename generated 'autobuild' script to
65540         'do-autobuild' in --create-megatestdir output.
65541
65542         * doc/gnulib.texi (Build robot for gnulib): Fix.
65543
65544 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65545
65546         * modules/sysexits (Depends-on): Add absolute-header.
65547
65548 2007-04-12  Eric Blake  <ebb9@byu.net>
65549
65550         No need to preserve errno on success.
65551         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65552         Reported by Bruno Haible.
65553
65554 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65555
65556         * MODULES.html.sh (Support for maintaining and releasing
65557         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65558
65559 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65560
65561         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65562
65563 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65564
65565         * modules/autobuild: New module.
65566
65567         * m4/autobuild.m4: New file.
65568
65569 2007-04-11  Bruno Haible  <bruno@clisp.org>
65570
65571         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65572         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65576         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65577         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65579         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65580         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65582         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65583         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65591         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65592         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65594         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65595         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65596         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65597         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65598         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65599         Reported by Eric Blake.
65600
65601 2007-04-11  Bruno Haible  <bruno@clisp.org>
65602
65603         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65604
65605 2007-04-10  Bruno Haible  <bruno@clisp.org>
65606
65607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65608         for NaN and Infinity. Needed on FreeBSD 6.1.
65609         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65610         regarding results for "%010a" of Infinity and NaN.
65611         * tests/test-vasprintf-posix.c (test_function): Likewise.
65612         * tests/test-snprintf-posix.h (test_function): Likewise.
65613         * tests/test-sprintf-posix.h (test_function): Likewise.
65614         * tests/test-fprintf-posix.h (test_function): Likewise.
65615         * tests/test-printf-posix.h (test_function): Likewise.
65616         * tests/test-fprintf-posix.out: Likewise.
65617
65618 2007-04-10  Bruno Haible  <bruno@clisp.org>
65619
65620         * modules/locale-tests: New file.
65621         * tests/test-locale.c: New file.
65622
65623         * modules/locale: New file.
65624         * lib/locale_.h: New file.
65625         * m4/locale_h.m4: New file.
65626
65627 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65628             Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65631         be determined, test for availability of the copysignf, copysign,
65632         copysignl functions.
65633         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65634         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65635         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65636
65637 2007-04-09  Eric Blake  <ebb9@byu.net>
65638
65639         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65640         * modules/stdio (Makefile.am): Support fflush.
65641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65642         * modules/fflush: New file.
65643         * lib/fflush.c: Likewise.
65644         * m4/fflush.m4: Likewise.
65645         * modules/fflush-tests: New test.
65646         * tests/test-fflush.c: Likewise.
65647         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65648
65649 2007-04-06  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65652         (VASNPRINTF): Use signbit for faster determination whether to print a
65653         minus sign.
65654         * modules/vasnprintf (Files): Remove lib/float+.h.
65655         * modules/fprintf-posix (Depends-on): Add signbit.
65656         * modules/snprintf-posix (Depends-on): Likewise.
65657         * modules/sprintf-posix (Depends-on): Likewise.
65658         * modules/vasnprintf-posix (Depends-on): Likewise.
65659         * modules/vasprintf-posix (Depends-on): Likewise.
65660         * modules/vfprintf-posix (Depends-on): Likewise.
65661         * modules/vsnprintf-posix (Depends-on): Likewise.
65662         * modules/vsprintf-posix (Depends-on): Likewise.
65663
65664 2007-04-06  Bruno Haible  <bruno@clisp.org>
65665
65666         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65667         * tests/test-frexpl.c (main): Likewise.
65668         * tests/test-ldexpl.c (main): Likewise.
65669         * modules/frexp-tests (Depends-on): Add signbit.
65670         * modules/frexpl-tests (Depdends-on): Likewise.
65671         * modules/ldexpl-tests (Depdends-on): Likewise.
65672
65673 2007-04-06  Bruno Haible  <bruno@clisp.org>
65674
65675         * modules/signbit-tests: New file.
65676         * tests/test-signbit.c: New file.
65677
65678         * modules/signbit: New file.
65679         * lib/signbitf.c: New file.
65680         * lib/signbitd.c: New file.
65681         * lib/signbitl.c: New file.
65682         * m4/signbit.m4: New file.
65683         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65684         (signbit): New macro.
65685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65686         REPLACE_SIGNBIT.
65687         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65688         REPLACE_FREXPL into math.h.
65689
65690 2007-04-06  Bruno Haible  <bruno@clisp.org>
65691
65692         * modules/isnanf-nolibm-tests: New file.
65693         * tests/test-isnanf.c: New file.
65694
65695         * modules/isnanf-nolibm: New file.
65696         * lib/isnanf.h: New file.
65697         * lib/isnanf.c: New file.
65698         * lib/isnan.c: Consider the USE_FLOAT macro.
65699         * m4/isnanf.m4: New file.
65700
65701 2007-04-06  Bruno Haible  <bruno@clisp.org>
65702
65703         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65704         (Link): New section.
65705
65706         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65707
65708 2007-04-06  Bruno Haible  <bruno@clisp.org>
65709
65710         Assume the 'long double' type.
65711         * m4/longdouble.m4: Remove file.
65712         * config/srclist.txt: Don't mention longdouble.m4.
65713         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65714         * lib/float+.h: Likewise.
65715         * lib/frexp.c: Likewise.
65716         * lib/printf-args.h: Likewise.
65717         * lib/printf-args.c: Likewise.
65718         * lib/printf-frexp.c: Likewise.
65719         * lib/printf-parse.c: Likewise.
65720         * lib/vasnprintf.c: Likewise.
65721         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65722         * m4/intl.m4: Likewise.
65723         * m4/isnanl.m4: Likewise.
65724         * m4/printf.m4: Likewise.
65725         * m4/printf-frexpl.m4: Likewise.
65726         * m4/vasnprintf.m4: Likewise.
65727         * modules/allocsa (Files): Remove m4/longdouble.m4.
65728         * modules/gettext (Files): Likewise.
65729         * modules/relocatable-prog-wrapper (Files): Likewise.
65730         * modules/vasnprintf (Files): Likewise.
65731         * modules/isnanl (Files): Likewise.
65732         (Include): Simplify.
65733         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65734         (Include): Simplify.
65735         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65736         (Include): Simplify.
65737         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65739         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65740         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65741         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65742         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65743         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65744         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65745         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65746         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65747         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65748         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65749         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65750         * tests/test-isnanl.c: Likewise.
65751         * tests/test-snprintf-posix.h: Likewise.
65752         * tests/test-sprintf-posix.h: Likewise.
65753         * tests/test-vasnprintf-posix.c: Likewise.
65754         * tests/test-vasnprintf-posix2.c: Likewise.
65755         * tests/test-vasprintf-posix.c: Likewise.
65756
65757 2007-04-06  Bruno Haible  <bruno@clisp.org>
65758
65759         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65760         * lib/math_.h [__DECC]: Include the overridden include file through
65761         #include_next, outside the double-inclusion guard.
65762         * lib/stdio_.h [__DECC]: Likewise.
65763         * lib/stdlib_.h [__DECC]: Likewise.
65764         * lib/string_.h [__DECC]: Likewise.
65765         * lib/time_.h [__DECC]: Likewise.
65766         * lib/wchar_.h [__DECC]: Likewise.
65767         * lib/wctype_.h [__DECC]: Likewise.
65768         * lib/inttypes_.h [__DECC]: Likewise.
65769         Reported by Albert Chin <china@thewrittenword.com> in
65770         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65771
65772 2007-04-04  Eric Blake  <ebb9@byu.net>
65773
65774         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65775         1.5.x.
65776
65777 2007-04-04  Bruno Haible  <bruno@clisp.org>
65778
65779         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65780         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65781
65782 2007-04-04  Bruno Haible  <bruno@clisp.org>
65783
65784         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65785         results for "%010a" of Infinity and NaN.
65786         * tests/test-vasprintf-posix.c (test_function): Likewise.
65787         * tests/test-snprintf-posix.h (test_function): Likewise.
65788         * tests/test-sprintf-posix.h (test_function): Likewise.
65789         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65790         * tests/test-printf-posix.h (test_function): Likewise.
65791         * tests/test-fprintf-posix.out: Update.
65792         Needed for FreeBSD 6.1.
65793
65794 2007-04-04  Bruno Haible  <bruno@clisp.org>
65795
65796         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65797         directly used by the gnulib modules nor by gnulib-tool.
65798
65799 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65800
65801         * DEPENDENCIES: Give overall description of version dependency
65802         desirability.  Use more-typical names for apps.
65803         Add shell, coreutils, diffutils, grep, tar, gzip.
65804
65805 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65806
65807         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65808
65809 2007-04-04  Karl Berry  <karl@gnu.org>
65810
65811         * MODULES.html.sh (func_module): missing '.
65812
65813 2007-04-03  Bruno Haible  <bruno@clisp.org>
65814
65815         * modules/argmatch-tests (Makefile.am): New variable
65816         test_argmatch_LDADD.
65817         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65818         * modules/array-list-tests (Makefile.am): New variable
65819         test_array_list_LDADD.
65820         * modules/array-oset-tests (Makefile.am): New variable
65821         test_array_oset_LDADD.
65822         * modules/avltree-list-tests (Makefile.am): New variable
65823         test_avltree_list_LDADD.
65824         * modules/avltree-oset-tests (Makefile.am): New variable
65825         test_avltree_oset_LDADD.
65826         * modules/avltreehash-list-tests (Makefile.am): New variable
65827         test_avltreehash_list_LDADD.
65828         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65829         test_canonicalize_lgpl_LDADD.
65830         * modules/carray-list-tests (Makefile.am): New variable
65831         test_carray_list_LDADD.
65832         * modules/dirname-tests (Makefile.am): New variable
65833         test_dirname_LDADD.
65834         * modules/linked-list-tests (Makefile.am): New variable
65835         test_linked_list_LDADD.
65836         * modules/linkedhash-list-tests (Makefile.am): New variable
65837         test_linkedhash_list_LDADD.
65838         * modules/rbtree-list-tests (Makefile.am): New variable
65839         test_rbtree_list_LDADD.
65840         * modules/rbtree-oset-tests (Makefile.am): New variable
65841         test_rbtree_oset_LDADD.
65842         * modules/rbtreehash-list-tests (Makefile.am): New variable
65843         test_rbtreehash_list_LDADD.
65844         * modules/xvasprintf-tests (Makefile.am): New variable
65845         test_xvasprintf_LDADD.
65846         Reported by Eric Blake.
65847
65848 2007-04-03  Eric Blake  <ebb9@byu.net>
65849
65850         * DEPENDENCIES: Weaken m4 requirements.
65851
65852 2007-04-03  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65855         * modules/isnanl-tests (configure.ac): Likewise.
65856
65857 2007-04-03  Ben Pfaff  <blp@gnu.org>
65858
65859         * modules/iconv_open: Add $(srcdir)/ to source directory
65860         references in Makefile fragments that call gperf, to fix VPATH
65861         builds.
65862
65863 2007-04-03  Bruno Haible  <bruno@clisp.org>
65864
65865         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65866         * lib/ldexpl.c: Undo last change.
65867
65868 2007-04-03  Bruno Haible  <bruno@clisp.org>
65869
65870         * modules/printf-frexpl (Depends-on): Undo last change.
65871         (Files): Add m4/ldexpl.m4.
65872
65873 2007-04-03  Bruno Haible  <bruno@clisp.org>
65874
65875         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65876         * modules/isnanl (Link): New section.
65877
65878         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65879         * modules/frexp (Link): New section.
65880
65881         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65882         * modules/frexpl (Link): New section.
65883
65884         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65885         * modules/ldexpl (Link): New section.
65886
65887 2007-04-03  Bruno Haible  <bruno@clisp.org>
65888
65889         * modules/TEMPLATE-EXTENDED: New file.
65890         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65891
65892 2007-04-03  Bruno Haible  <bruno@clisp.org>
65893
65894         * DEPENDENCIES: New file.
65895         Suggested by Simon Josefsson.
65896
65897 2007-04-03  Bruno Haible  <bruno@clisp.org>
65898
65899         * doc/gnulib.texi: Escape @.
65900
65901 2007-04-03  James Youngman  <jay@gnu.org>
65902         and Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65905         birthtime on all systems that have birthtime, not just those which
65906         use st_birthtimensec rather than st_birthtim.  Putting zero in
65907         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65908         that the birth time is not available for files on an NFS mount.
65909
65910 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65911
65912         * modules/memxor: Move back from crypto/, suggested by Bruno.
65913         * modules/crypto/hmac-sha1: Fix memxor dependency.
65914
65915         * modules/crypto/gc: Moved from ../.
65916
65917 2007-04-02  Eric Blake  <ebb9@byu.net>
65918
65919         * lib/ldexpl.c (includes): Avoid libm.
65920
65921         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65922
65923 2007-04-02  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65926         on IRIX.
65927
65928 2007-04-02  Bruno Haible  <bruno@clisp.org>
65929
65930         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65931         x86 or x86_64 platforms running MacOS X.
65932         Reported by Ryan Schmidt <@ryandesign.com>.
65933
65934 2007-04-02  Bruno Haible  <bruno@clisp.org>
65935
65936         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65937         i386.
65938
65939 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65940
65941         * modules/crypto/arcfour: Moved from ../.
65942         * modules/crypto/arcfour-tests: Moved from ../.
65943         * modules/crypto/arctwo: Moved from ../.
65944         * modules/crypto/arctwo-tests: Moved from ../.
65945         * modules/crypto/des: Moved from ../.
65946         * modules/crypto/des-tests: Moved from ../.
65947         * modules/crypto/gc-arcfour: Moved from ../.
65948         * modules/crypto/gc-arcfour-tests: Moved from ../.
65949         * modules/crypto/gc-arctwo: Moved from ../.
65950         * modules/crypto/gc-arctwo-tests: Moved from ../.
65951         * modules/crypto/gc-des: Moved from ../.
65952         * modules/crypto/gc-des-tests: Moved from ../.
65953         * modules/crypto/gc-hmac-md5: Moved from ../.
65954         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65955         * modules/crypto/gc-hmac-sha1: Moved from ../.
65956         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65957         * modules/crypto/gc-md2: Moved from ../.
65958         * modules/crypto/gc-md2-tests: Moved from ../.
65959         * modules/crypto/gc-md4: Moved from ../.
65960         * modules/crypto/gc-md4-tests: Moved from ../.
65961         * modules/crypto/gc-md5: Moved from ../.
65962         * modules/crypto/gc-md5-tests: Moved from ../.
65963         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65964         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65965         * modules/crypto/gc-random: Moved from ../.
65966         * modules/crypto/gc-rijndael: Moved from ../.
65967         * modules/crypto/gc-rijndael-tests: Moved from ../.
65968         * modules/crypto/gc-sha1: Moved from ../.
65969         * modules/crypto/gc-sha1-tests: Moved from ../.
65970         * modules/crypto/gc-tests: Moved from ../.
65971         * modules/crypto/hmac-md5: Moved from ../.
65972         * modules/crypto/hmac-md5-tests: Moved from ../.
65973         * modules/crypto/hmac-sha1: Moved from ../.
65974         * modules/crypto/hmac-sha1-tests: Moved from ../.
65975         * modules/crypto/md2: Moved from ../.
65976         * modules/crypto/md2-tests: Moved from ../.
65977         * modules/crypto/md4: Moved from ../.
65978         * modules/crypto/md4-tests: Moved from ../.
65979         * modules/crypto/md5: Moved from ../.
65980         * modules/crypto/md5-tests: Moved from ../.
65981         * modules/crypto/memxor: Moved from ../.
65982         * modules/crypto/rijndael: Moved from ../.
65983         * modules/crypto/rijndael-tests: Moved from ../.
65984         * modules/crypto/sha1: Moved from ../.
65985
65986 2007-03-30  James Youngman  <jay@gnu.org>
65987
65988         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65989         rename() to change the ctime of a file (because ctime is unaffected
65990         by rename on jfs2 on AIX 5.1).
65991         (main): Start by doing cleanup, in case a previous run failed leaving
65992         test files behind.
65993
65994 2007-03-31  Bruno Haible  <bruno@clisp.org>
65995
65996         Support old proprietary implementations of iconv.
65997         * modules/iconv_open: New file.
65998         * lib/iconv_.h: New file.
65999         * m4/iconv_h.m4: New file.
66000         * lib/iconv_open.c: New file.
66001         * lib/iconv_open-aix.gperf: New file.
66002         * lib/iconv_open-hpux.gperf: New file.
66003         * lib/iconv_open-irix.gperf: New file.
66004         * lib/iconv_open-osf.gperf: New file.
66005         * m4/iconv_open.m4: New file.
66006         * modules/linebreak (Depends-on): Add iconv_open.
66007         * modules/striconv (Depends-on): Likewise.
66008         * modules/striconveh (Depends-on): Likewise.
66009         * modules/unicodeio (Depends-on): Likewise.
66010         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66011         (iconv_t)(-1).
66012         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66013         conversion if cd is (iconv_t)(-1).
66014         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66015         is not possible.
66016
66017 2007-03-31  Bruno Haible  <bruno@clisp.org>
66018
66019         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66020         work on Solaris either. Protect also second use of "autodetect_jp".
66021
66022 2007-03-31  Bruno Haible  <bruno@clisp.org>
66023
66024         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66025         the function is not present.
66026
66027 2007-03-31  Bruno Haible  <bruno@clisp.org>
66028
66029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66030         the function is not present.
66031
66032 2007-03-31  Bruno Haible  <bruno@clisp.org>
66033
66034         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66035         a bug in HP-UX iconv_open().
66036
66037 2007-03-31  Bruno Haible  <bruno@clisp.org>
66038
66039         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66040         (Mathematics <math.h>): New section, add fpieee.
66041         (Input/output <stdio.h>): Add fseterr.
66042         (Mathematics <math.h>): New section, add printf-frexp.
66043         (Container data structures): Add sublist.
66044         (Core language properties): Add fpucw, inline.
66045         (Functions for greatest-width integer types <inttypes.h>): Add
66046         imaxabs, imaxdiv, inttypes.
66047         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66048         isnanl-nolibm, ldexp.
66049         (Mathematics <math.h>): New section, add printf-frexpl.
66050         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66051         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66052         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66053         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66054         (Unicode string functions): Add unistr/u*-mbtoucr.
66055         (Java): Add javacomp-script, javaexec-script.
66056         (C#): Add csharpcomp-script, csharpexec-script.
66057         (Support for building libraries and executables): Add havelib,
66058         relocatable-*.
66059         (Support for maintaining and releasing projects): Renamed from
66060         'Support for maintaining and release projects'. Add announce-gen.
66061
66062 2007-03-31  Bruno Haible  <bruno@clisp.org>
66063
66064         * README: Talk primarily about git.
66065         (git and CVS): Renamed from CVS.
66066         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66067         gnulib is available through git.
66068         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66069
66070 2007-03-30  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66073         * lib/poll_.h: Likewise.
66074         * lib/stat_.h: Likewise.
66075         * lib/sys_time_.h: Likewise.
66076         * lib/sysexit_.h: Likewise.
66077         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66078         * lib/stdbool_.h: Likewise.
66079         * lib/byteswap_.h: Add double-inclusion guard.
66080
66081 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66082
66083         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66084
66085 2007-03-30  Karl Berry  <karl@gnu.org>
66086
66087         * config/srclist-update: double space after USA in the license
66088         substitution, since that's how it's usually (?) written.
66089
66090 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66093         reported by Bruno Haible.
66094
66095 2007-03-29  Bruno Haible  <bruno@clisp.org>
66096
66097         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66098         a bug in AIX iconv().
66099
66100 2007-03-29  Bruno Haible  <bruno@clisp.org>
66101
66102         * modules/ldexpl-tests: New file.
66103         * tests/test-ldexpl.c: New file.
66104
66105 2007-03-29  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/ldexpl.c: Include fpucw.h.
66108         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66109         multiplication.
66110         * modules/ldexpl (Depends-on): Add fpucw.
66111
66112 2007-03-29  Bruno Haible  <bruno@clisp.org>
66113
66114         * modules/ldexpl: New file.
66115         * m4/ldexpl.m4: New file.
66116         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66117         set.
66118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66119         REPLACE_LDEXPL.
66120         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66121         REPLACE_LDEXPL.
66122         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66123         gl_FUNC_LDEXPL_WORKS.
66124         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66125         * modules/mathl (Files): Remove lib/ldexpl.c.
66126         (Depends-on): Add ldexpl.
66127
66128 2007-03-29  Bruno Haible  <bruno@clisp.org>
66129
66130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66131
66132 2007-03-29  Bruno Haible  <bruno@clisp.org>
66133
66134         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66135         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66136         and possibly also HP-UX.
66137         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66138         work on AIX, IRIX, HP-UX, OSF/1.
66139         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66140         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66141         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66142         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66143         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66144         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66145
66146 2007-03-29  Bruno Haible  <bruno@clisp.org>
66147
66148         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66149
66150 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66153         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66154
66155 2007-03-29  Eric Blake  <ebb9@byu.net>
66156
66157         * lib/acl-internal.h: Remove redundant include.
66158         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66159         Cygwin when a file is locked.
66160
66161 2007-03-29  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66164         file.
66165         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66166
66167 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66168
66169         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66170         try to remove a parent directory if the child couldn't be removed
66171         (except for the first rmdir, which could fail because the child
66172         doesn't exist).  Problem reported by Jeff Blaine in
66173         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66174
66175 2007-03-28  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/striconveh.c (utf8conv_carefully): New function.
66178         (mem_cd_iconveh_internal): Invoke it.
66179
66180 2007-03-28  Bruno Haible  <bruno@clisp.org>
66181
66182         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66183         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66184         input.
66185         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66186         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66187         unistr/u8-uctomb.
66188
66189 2007-03-28  Bruno Haible  <bruno@clisp.org>
66190
66191         * modules/unistr/u8-mbtoucr: New file.
66192         * lib/unistr/u8-mbtoucr.c: New file.
66193         * modules/unistr/u16-mbtoucr: New file.
66194         * lib/unistr/u16-mbtoucr.c: New file.
66195         * modules/unistr/u16-mbtoucr: New file.
66196         * lib/unistr/u16-mbtoucr.c: New file.
66197         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66198
66199 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66200             Bruno Haible  <bruno@clisp.org>
66201
66202         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66203         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66204         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66205
66206         * m4/stdio_h.m4: Add stubs for vasprintf too.
66207
66208         * modules/stdio: Support vasprintf in sed command.
66209
66210         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66211         vasprintf.h.  Add stdio module indicator.
66212
66213         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66214         vasprintf.h.
66215
66216         * lib/vasprintf.h: File removed.
66217
66218         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66219         * lib/vasprintf.c: Ditto.
66220         * lib/xvasprintf.c: Ditto.
66221         * tests/test-vasprintf-posix.c: Ditto.
66222         * tests/test-vasprintf.c: Ditto.
66223
66224 2007-03-27  Bruno Haible  <bruno@clisp.org>
66225
66226         Make vasnprintf multithread-safe.
66227         * lib/vasnprintf.c (decimal_point_char): New function.
66228         (VASNPRINTF): Use it.
66229         Suggested by Simon Josefsson.
66230
66231 2007-03-27  Eric Blake  <ebb9@byu.net>
66232
66233         Support sub-second birthtime on cygwin.
66234         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66235         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66236         (get_stat_birthtime): Also work with st_birthtim.
66237
66238 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66241         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66242         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66243         (get_stat_birthtime_ns): Simplify compile-time tests.
66244         (get_stat_birthtime): Change the API to look like
66245         get_stat_mtime etc., except return a negative tv_nsec on error.
66246         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66247         Don't check for "spare" fields.
66248         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66249         or for struct stat.st_birthtime, as these tests aren't used.
66250         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66251
66252 2007-03-27  Bruno Haible  <bruno@clisp.org>
66253
66254         * lib/stat-time.h: Include <sys/stat.h>.
66255
66256 2007-03-27  James Youngman  <jay@gnu.org>
66257
66258         * lib/stat-time.h (get_stat_birthtime): New function for
66259           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66260         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66261           and its variants.
66262         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66263         * modules/stat-time-test: New file.
66264         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66265
66266 2007-03-26  Bruno Haible  <bruno@clisp.org>
66267
66268         Better support of signalling NaNs.
66269         * lib/atanl.c: Include isnanl.h.
66270         (atanl): Perform test for NaN at the beginning of the function and
66271         through a call to isnanl.
66272         * lib/cosl.c: Include isnanl.h.
66273         (cosl): Perform test for NaN at the beginning of the function and
66274         through a call to isnanl.
66275         * lib/ldexpl.c: Include isnanl.h.
66276         (ldexpl): Perform test for NaN through a call to isnanl.
66277         * lib/logl.c: Include isnanl.h.
66278         (logl): Perform test for NaN at the beginning of the function and
66279         through a call to isnanl.
66280         * lib/sinl.c: Include isnanl.h.
66281         (sinl): Perform test for NaN at the beginning of the function and
66282         through a call to isnanl.
66283         * lib/sqrtl.c: Include isnanl.h.
66284         (sqrtl): Perform test for NaN at the beginning of the function and
66285         through a call to isnanl.
66286         * lib/tanl.c: Include isnanl.h.
66287         (tanl): Perform test for NaN at the beginning of the function and
66288         through a call to isnanl.
66289         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66290         * modules/mathl (Depends-on): Add isnanl.
66291
66292 2007-03-26  Eric Blake  <ebb9@byu.net>
66293
66294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66295         regression in logic sense of previous patch.
66296
66297 2007-03-26  Bruno Haible  <bruno@clisp.org>
66298
66299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66300         unportable shell command "if ! ...".
66301         Reported by Ralf Wildenhues.
66302
66303 2007-03-25  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66306         <sysexits.h> file, and only add EX_CONFIG.
66307         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66308         absolute file name and whether it is sufficient. Substitute also
66309         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66310         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66311         ABSOLUTE_SYSEXITS_H into sysexits.h.
66312
66313 2007-03-25  Bruno Haible  <bruno@clisp.org>
66314
66315         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66316         hints is NULL.
66317
66318 2007-03-25  Bruno Haible  <bruno@clisp.org>
66319
66320         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66321         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66322
66323 2007-03-25  Bruno Haible  <bruno@clisp.org>
66324
66325         * lib/vasnprintf.c: Include langinfo.h.
66326         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66327         multithread-safe.
66328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66329         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66337         Reported by Simon Josefsson.
66338
66339 2007-03-25  Bruno Haible  <bruno@clisp.org>
66340
66341         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66342         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66343         * modules/vasnprintf (Depends-on): Add stdint.
66344
66345 2007-03-25  Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/fpieee: New file.
66348         * m4/fpieee.m4: New file.
66349         * modules/isnan-nolibm (Depends-on): Add fpieee.
66350         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66351         * modules/isnanl (Depends-on): Add fpieee.
66352
66353 2007-03-25  Bruno Haible  <bruno@clisp.org>
66354
66355         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66356
66357 2007-03-25  Bruno Haible  <bruno@clisp.org>
66358
66359         Avoid test failures on IRIX 6.5.
66360         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66361         (main): Use it.
66362         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66363         macros.
66364         (main): Use them.
66365
66366 2007-03-25  Bruno Haible  <bruno@clisp.org>
66367
66368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66369         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66370         exists but doesn't work.
66371         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66372         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66374         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66375         math.h.
66376
66377 2007-03-25  Bruno Haible  <bruno@clisp.org>
66378
66379         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66380         returns inf. Needed on IRIX 6.5.
66381
66382 2007-03-25  Bruno Haible  <bruno@clisp.org>
66383
66384         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66385         (main): Use isnanl instead of x != x idiom.
66386         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66387
66388         * tests/test-frexp.c: Include isnan.h.
66389         (main): Use isnan instead of x != x idiom.
66390         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66391
66392 2007-03-25  Bruno Haible  <bruno@clisp.org>
66393
66394         * tests/test-frexp.c (NaN): New function/macro.
66395         (main): Use it instead of 0.0 / 0.0.
66396         * tests/test-isnan.c (NaN): New function/macro.
66397         (main): Use it instead of 0.0 / 0.0.
66398         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66399         (test_function): Use it instead of 0.0 / 0.0.
66400         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66401         (test_function): Use it instead of 0.0 / 0.0.
66402         * tests/test-snprintf-posix.h (NaN): New function/macro.
66403         (test_function): Use it instead of 0.0 / 0.0.
66404         * tests/test-sprintf-posix.h (NaN): New function/macro.
66405         (test_function): Use it instead of 0.0 / 0.0.
66406         * tests/test-fprintf-posix.h (NaN): New function/macro.
66407         (test_function): Use it instead of 0.0 / 0.0.
66408         * tests/test-printf-posix.h (NaN): New function/macro.
66409         (test_function): Use it instead of 0.0 / 0.0.
66410
66411         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66412
66413 2007-03-25  Bruno Haible  <bruno@clisp.org>
66414
66415         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66416
66417 2007-03-25  Bruno Haible  <bruno@clisp.org>
66418
66419         * lib/regexec.c (merge_state_with_log): Make static.
66420
66421 2007-03-25  Bruno Haible  <bruno@clisp.org>
66422
66423         * lib/trigl.c (kernel_rem_pio2): Make static.
66424
66425 2007-03-25  Bruno Haible  <bruno@clisp.org>
66426
66427         * lib/sincosl.c (sincosl_table): Make static.
66428
66429 2007-03-25  Bruno Haible  <bruno@clisp.org>
66430
66431         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66432         if the compiler does not support C99.
66433
66434 2007-03-25  Bruno Haible  <bruno@clisp.org>
66435
66436         * modules/time (Makefile.am): Ensure all rule action lines start with a
66437         tab.
66438
66439 2007-03-24  Bruno Haible  <bruno@clisp.org>
66440
66441         * modules/tsearch-tests: New file.
66442         * tests/test-tsearch.sh: New file.
66443         * tests/test-tsearch.c: New file, mostly copied from glibc.
66444
66445         * modules/search-tests: New file.
66446         * tests/test-search.c: New file.
66447
66448         * modules/search: New file.
66449         * lib/search_.h: New file, incorporating lib/tsearch.h.
66450         * m4/search_h.m4: New file.
66451         * lib/tsearch.h: Remove file.
66452         * lib/tsearch.c: Include search.h instead of tsearch.h.
66453         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66454         HAVE_TSEARCH.
66455         * modules/tsearch (Files): Remove lib/tsearch.h.
66456         (Depends-on): Add search.
66457         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66458         (Include): Change tsearch.h into search.h.
66459
66460 2007-03-24  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/fpucw: New file.
66463         * lib/fpucw.h: New file.
66464         * lib/frexp.c: Include fpucw.h.
66465         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66466         (FUNC): Use them.
66467         * lib/printf-frexp.c: Include fpucw.h.
66468         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66469         (FUNC): Use them.
66470         * lib/vasnprintf.c: Include fpucw.h.
66471         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66472         'long double' calculations.
66473         * tests/test-frexpl.c: Include fpucw.h.
66474         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66475         * tests/test-printf-frexpl.c: Include fpucw.h.
66476         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66477         * modules/frexpl (Depends-on): Add fpucw.
66478         * modules/printf-frexpl (Depends-on): Likewise.
66479         * modules/fprintf-posix (Depends-on): Likewise.
66480         * modules/snprintf-posix (Depends-on): Likewise.
66481         * modules/sprintf-posix (Depends-on): Likewise.
66482         * modules/vasnprintf-posix (Depends-on): Likewise.
66483         * modules/vasprintf-posix (Depends-on): Likewise.
66484         * modules/vfprintf-posix (Depends-on): Likewise.
66485         * modules/vsnprintf-posix (Depends-on): Likewise.
66486         * modules/vsprintf-posix (Depends-on): Likewise.
66487         * modules/frexpl-tests (Depends-on): Likewise.
66488         * modules/printf-frexpl-tests (Depends-on): Likewise.
66489
66490 2007-03-24  Bruno Haible  <bruno@clisp.org>
66491
66492         * lib/float+.h: New file.
66493         * lib/isnan.c: Include float+.h.
66494         (SIZE): New macro.
66495         (FUNC): Compare only SIZE bytes of the value.
66496         * lib/vasnprintf.c: Include float+.h.
66497         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66498         SIZEOF_LDBL or SIZEOF_DBL bytes.
66499         * modules/isnan-nolibm (Files): Add lib/float+.h.
66500         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66501         * modules/isnanl (Files): Add lib/float+.h.
66502         * modules/vasnprintf (Files): Add lib/float+.h.
66503
66504 2007-03-24  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66507         include isnanl-nolibm.h.
66508
66509 2007-03-24  Bruno Haible  <bruno@clisp.org>
66510
66511         * tests/test-read-file.c (main): Don't produce spurious output for
66512         expected situations. Make the test fail if it encountered unexpected
66513         results.
66514
66515 2007-03-24  Bruno Haible  <bruno@clisp.org>
66516
66517         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66518         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66519
66520 2007-03-24  Bruno Haible  <bruno@clisp.org>
66521
66522         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66523
66524 2007-03-24  Bruno Haible  <bruno@clisp.org>
66525
66526         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66527         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66528
66529         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66530         * modules/utf8-ucs4: Turn into a symbolic link to module
66531         unistr/u8-mbtouc.
66532
66533         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66534         utf8-ucs4-unsafe.
66535         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66536         unistr/u8-mbtouc-unsafe.
66537
66538         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66539         * modules/utf16-ucs4: Turn into a symbolic link to module
66540         unistr/u16-mbtouc.
66541
66542         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66543         utf16-ucs4-unsafe.
66544         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66545         unistr/u16-mbtouc-unsafe.
66546
66547         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66548         * modules/ucs4-utf8: Turn into a symbolic link to module
66549         unistr/u8-ubtomb.
66550
66551         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66552         * modules/ucs4-utf16: Turn into a symbolic link to module
66553         unistr/u16-ubtomb.
66554
66555 2007-03-24  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66558         Enable the function only if HAVE_INLINE.
66559         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66560         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66561         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66562         Enable the function only if HAVE_INLINE.
66563         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66564         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66565         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66566         Enable the function only if HAVE_INLINE.
66567         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66568         Enable the function only if HAVE_INLINE.
66569         * modules/utf8-ucs4: Update.
66570         * modules/utf8-ucs4-unsafe: Update.
66571         * modules/utf16-ucs4: Update.
66572         * modules/utf16-ucs4-unsafe: Update.
66573         * modules/ucs4-utf8: Update.
66574         * modules/ucs4-utf16: Update.
66575
66576 2007-03-24  Bruno Haible  <bruno@clisp.org>
66577
66578         * lib/utf8-ucs4.h: Remove file.
66579         * lib/utf8-ucs4-unsafe.h: Remove file.
66580         * lib/utf16-ucs4.h: Remove file.
66581         * lib/utf16-ucs4-unsafe.h: Remove file.
66582         * lib/ucs4-utf8.h: Remove file.
66583         * lib/ucs4-utf16.h: Remove file.
66584         * lib/unistr.h: Include their previous contents.
66585         * m4/utf-ucs4.m4: Remove file.
66586         * m4/ucs4-utf.m4: Remove file.
66587         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66588         (Depends-on): Add unistr/base.
66589         (configure.ac): Remove gl_UTF_UCS4.
66590         (Makefile.am): Update.
66591         (Include): Change to unistr.h.
66592         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66593         (Depends-on): Add unistr/base.
66594         (configure.ac): Remove gl_UTF_UCS4.
66595         (Makefile.am): Update.
66596         (Include): Change to unistr.h.
66597         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66598         (Depends-on): Add unistr/base.
66599         (configure.ac): Remove gl_UTF_UCS4.
66600         (Makefile.am): Update.
66601         (Include): Change to unistr.h.
66602         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66603         (Depends-on): Add unistr/base.
66604         (configure.ac): Remove gl_UTF_UCS4.
66605         (Makefile.am): Update.
66606         (Include): Change to unistr.h.
66607         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66608         (Depends-on): Add unistr/base.
66609         (configure.ac): Remove gl_UCS4_UTF.
66610         (Makefile.am): Update.
66611         (Include): Change to unistr.h.
66612         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66613         (Depends-on): Add unistr/base.
66614         (configure.ac): Remove gl_UCS4_UTF.
66615         (Makefile.am): Update.
66616         (Include): Change to unistr.h.
66617         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66618         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66619         utf8-ucs4-unsafe.h.
66620         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66621         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66622         utf16-ucs4-unsafe.h.
66623         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66624         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66625         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66626         * lib/unistr/u8-strchr.c: Likewise.
66627         * lib/unistr/u8-strrchr.c: Likewise.
66628         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66629         * lib/unistr/u16-strchr.c: Likewise.
66630         * lib/unistr/u16-strrchr.c: Likewise.
66631         * lib/striconveh.c: Update.
66632         * lib/linebreak.c: Update.
66633
66634 2007-03-24  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66637         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66638
66639 2007-03-22  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66642
66643 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * MODULES.html.sh (File system functions): New module write-any-file.
66646         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66647         * m4/write-any-file.m4: New files.
66648
66649 2007-03-23  Eric Blake  <ebb9@byu.net>
66650
66651         * gnulib-tool: Rearrange space-tab sequences, since some editors
66652         like to eat them.
66653
66654 2007-03-23  Eric Blake  <ebb9@byu.net>
66655
66656         * lib/version-etc.c (version_etc_va): Update license wording to
66657         be more concise.  Recommended by Richard Stallman.
66658
66659 2007-03-22  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/poll.c (MSG_PEEK): New fallback definition.
66662
66663 2007-03-22  Bruno Haible  <bruno@clisp.org>
66664
66665         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66666         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66667         (main): Update.
66668         Fixes a compilation error on BeOS.
66669
66670 2007-03-22  Bruno Haible  <bruno@clisp.org>
66671
66672         * modules/frexpl-tests: New file.
66673         * tests/test-frexpl.c: New file.
66674
66675         * modules/frexpl: New file.
66676         * m4/frexpl.m4: New file.
66677         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66678         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66680         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66681         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66682         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66683
66684 2007-03-22  Bruno Haible  <bruno@clisp.org>
66685
66686         * lib/frexpl.c: Share code with lib/frexp.c.
66687         * modules/mathl (Files): Add lib/frexp.c.
66688         (Depends-on): Add isnanl-nolibm.
66689
66690 2007-03-22  Bruno Haible  <bruno@clisp.org>
66691
66692         * modules/printf-frexp (Files): Add m4/frexp.m4.
66693         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66694         only if the found frexp function actually works.
66695
66696 2007-03-22  Bruno Haible  <bruno@clisp.org>
66697
66698         * lib/frexp.c: Remove older implementation that uses divisions.
66699
66700 2007-03-21  Bruno Haible  <bruno@clisp.org>
66701
66702         * modules/frexp-tests: New file.
66703         * tests/test-frexp.c: New file.
66704
66705         * modules/frexp: New file.
66706         * lib/frexp.c: New file.
66707         * m4/frexp.m4: New file.
66708         * lib/math_.h (frexp): New declaration.
66709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66710         REPLACE_FREXP.
66711         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66712
66713 2007-03-21  Bruno Haible  <bruno@clisp.org>
66714
66715         * modules/isnanl-tests: New file.
66716         * tests/test-isnanl.c: New file.
66717
66718         * modules/isnanl: New file.
66719         * lib/isnanl.h: New file.
66720         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66721         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66722         gl_FUNC_ISNANL_WORKS.
66723         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66724         New macros.
66725
66726 2007-03-21  Bruno Haible  <bruno@clisp.org>
66727
66728         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66729         lib/isnanl.h.
66730         (Include): Update.
66731         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66732         * lib/vasnprintf.c: Update.
66733         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66734         tests/test-isnanl.h, remove tests/test-isnanl.c.
66735         (Makefile.am): Update.
66736         * tests/test-isnanl-nolibm.c: New file.
66737         * tests/test-isnanl.h: New file.
66738         * tests/test-isnanl.c: Remove file.
66739
66740 2007-03-21  Jim Meyering  <jim@meyering.net>
66741
66742         When trying to open ".", treat ESTALE like EACCES.
66743         * lib/savewd.c (savewd_save): Resort to forking not just upon
66744         failure with EACCES, but also when errno is ESTALE.
66745
66746 2007-03-20  Bruno Haible  <bruno@clisp.org>
66747
66748         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66749         Needed on AIX 5.1. Reported by Matthew Woehlke.
66750
66751 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         Suggestions by Bruno Haible:
66754         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66755         our own.
66756         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66757         * modules/acl (Depends-on): Add gettext.
66758
66759 2007-03-19  Bruno Haible  <bruno@clisp.org>
66760
66761         * modules/iconvme: Remove file.
66762         * lib/iconvme.h: Remove file.
66763         * lib/iconvme.c: Remove file.
66764         * m4/iconvme.m4: Remove file.
66765
66766 2007-03-19  Bruno Haible  <bruno@clisp.org>
66767
66768         * doc/relocatable-maint.texi: Break long shell script line.
66769         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66770
66771 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66774         handle file_has_acl.
66775         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66776         * lib/acl.c: Move header inclusions and related macro defns into
66777         lib/acl-internal.h.
66778         (S_ISLNK): Remove defn, since that's now done for us.
66779         (file_has_acl): Move to lib/file-has-acl.c.
66780         Call acl_trivial if available.  This is the crucial part of the fix.
66781         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66782         shared within the library.  Rewrite a bit, partly to make it compatible
66783         with the GNU coding style.
66784         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66785         Remove unnecessary double-quotes.
66786         Don't test for acl_to_text; the build will catch that.
66787         Replace acl_entries if it doesn't exist and it is needed.
66788         Check for -lsec and acl_trivial (as used on Solaris 10).
66789         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66790         lib/file-has-acl.c.
66791         (Depends-on): Add sys_stat, for S_ISLNK.
66792
66793 2007-03-19  Ben Pfaff  <blp@gnu.org>
66794
66795         * doc/gnulib.texi: Fix typos.
66796         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66797
66798 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66801         If size is zero here, buf must be zero.
66802
66803 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66804
66805         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66806         <bruno@clisp.org>.
66807
66808 2007-03-18  Bruno Haible  <bruno@clisp.org>
66809
66810         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66811         Suggested by Eric Blake.
66812
66813 2007-03-18  Ben Pfaff  <blp@gnu.org>
66814
66815         * doc/relocatable.texi: Recommend using as prefix a directory
66816         that does not exist and will never be created.  Based on
66817         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66818         and others.
66819
66820 2007-03-17  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/fchownat.c: Include lchown.h.
66823
66824 2007-03-17  Bruno Haible  <bruno@clisp.org>
66825
66826         Fix endless loop when the given allocated size was > INT_MAX.
66827         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66828         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66829         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66830         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66831         * lib/sprintf.c (sprintf): Likewise.
66832
66833 2007-03-17  Bruno Haible  <bruno@clisp.org>
66834
66835         * tests/test-argp-2.sh (func_compare): Output a context diff.
66836
66837 2007-03-17  Bruno Haible  <bruno@clisp.org>
66838
66839         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66840         locale's decimal-point character.
66841
66842 2007-03-17  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66845         before comparing it. Needed because on some platforms (e.g. x86) a
66846         'long double' occupies less bytes than sizeof (long double).
66847
66848 2007-03-17  Bruno Haible  <bruno@clisp.org>
66849
66850         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66851         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66852         * tests/test-getaddrinfo.c (simple): Likewise.
66853         * tests/test-read-file.c (main): Likewise.
66854
66855 2007-03-17  Bruno Haible  <bruno@clisp.org>
66856
66857         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66858
66859 2007-03-17  Bruno Haible  <bruno@clisp.org>
66860
66861         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66862         unused variable.
66863
66864 2007-03-17  Bruno Haible  <bruno@clisp.org>
66865
66866         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66867         * tests/test-c-strncasecmp.c: Likewise.
66868
66869 2007-03-17  Bruno Haible  <bruno@clisp.org>
66870
66871         * modules/stdlib (Depends-on): Add unistd.
66872         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66873         Needed for MacOS X 10.3.
66874
66875 2007-03-17  Bruno Haible  <bruno@clisp.org>
66876
66877         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66878
66879 2007-03-17  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66882
66883 2007-03-17  Bruno Haible  <bruno@clisp.org>
66884
66885         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66886         to reflect files copied from gnulib (with or without modifications).
66887         Suggested by Jim Meyering.
66888
66889 2007-03-17  Eric Blake  <ebb9@byu.net>
66890
66891         * NEWS: Document stdlib change from 2007-02-18.
66892
66893 2007-03-17  Jim Meyering  <jim@meyering.net>
66894
66895         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66896         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66897         someone uses a name containing shell meta-characters.
66898         Reported by Alfred M. Szmidt.
66899
66900         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66901
66902 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66903
66904         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66905         and copy gettext configuration files only if configure.ac contains
66906         a use of AM_GNU_GETTEXT_VERSION.
66907
66908 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66909
66910         * build-aux/bootstrap (gnulib_name): New variable.
66911         (gnulib_tool_options): Use it.
66912
66913 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66914
66915         * tests/test-des.c: Use new namespace.
66916
66917 2007-03-15  Bruno Haible  <bruno@clisp.org>
66918
66919         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66920         Reported by James Youngman <jay@gnu.org>.
66921
66922 2007-03-15  Bruno Haible  <bruno@clisp.org>
66923
66924         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66925         declared prototype. Needed with cc on OSF/1 5.1.
66926
66927 2007-03-15  Bruno Haible  <bruno@clisp.org>
66928
66929         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66930         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66931         (struct gl_list_implementation): Add dispose_fn argument to the
66932         'create_empty', 'create' methods.
66933         (struct gl_list_impl_base): Add field 'dispose_fn'.
66934         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66935         argument.
66936         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66937         dispose_fn argument.
66938         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66939         dispose_fn on the dropped values.
66940         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66941         dispose_fn argument.
66942         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66943         dropped values.
66944         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66945         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66946         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66947         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66948         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66949         argument.
66950         (gl_tree_list_free): Call dispose_fn on the dropped values.
66951         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66952         the dropped values.
66953         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66954         Add dispose_fn argument.
66955         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66956         Call dispose_fn on the dropped values.
66957         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66958         Add dispose_fn argument.
66959         (gl_sublist_create): Initialize the 'dispose_fn' field.
66960         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66961         * tests/test-array_list.c (main): Update.
66962         * tests/test-carray_list.c (main): Update.
66963         * tests/test-avltree_list.c (main): Update.
66964         * tests/test-rbtree_list.c (main): Update.
66965         * tests/test-avltreehash_list.c (main): Update.
66966         * tests/test-rbtreehash_list.c (main): Update.
66967         * tests/test-linked_list.c (main): Update.
66968         * tests/test-linkedhash_list.c (main): Update.
66969         * tests/test-array_oset.c (main): Update.
66970
66971 2007-03-15  Bruno Haible  <bruno@clisp.org>
66972
66973         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66974         (gl_oset_create_empty): Add dispose_fn argument.
66975         (struct gl_oset_implementation): Add dispose_fn argument to
66976         'create_empty' method.
66977         (struct gl_oset_impl_base): Add dispose_fn field.
66978         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66979         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66980         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66981         values.
66982         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66983         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66984         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66985         dropped value.
66986         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66987         dropped value.
66988         * tests/test-array_oset.c (main): Update.
66989         * tests/test-avltree_oset.c (main): Update.
66990         * tests/test-rbtree_oset.c (main): Update.
66991         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66992
66993 2007-03-13  Bruno Haible  <bruno@clisp.org>
66994
66995         * tests/test-stdbool.c (i): Update after last patch.
66996
66997 2007-03-12  Bruno Haible  <bruno@clisp.org>
66998
66999         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67000         the iswprint macro. Needed on Solaris 2.5.1.
67001
67002 2007-03-12  Bruno Haible  <bruno@clisp.org>
67003
67004         * tests/test-printf-frexp.c (main): Declare x as volatile.
67005
67006 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67007
67008         * doc/gnulib.texi (Build robot for gnulib): New section.
67009
67010 2007-03-12  Jim Meyering  <jim@meyering.net>
67011
67012         * build-aux/bootstrap: New file.
67013         * build-aux/bootstrap.conf: New file, from coreutils.
67014
67015 2007-03-11  Bruno Haible  <bruno@clisp.org>
67016
67017         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67018
67019 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67020
67021         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67022         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67023         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67024
67025 2007-03-11  Bruno Haible  <bruno@clisp.org>
67026
67027         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67028         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67029
67030 2007-03-11  Bruno Haible  <bruno@clisp.org>
67031
67032         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67033         formula. Needed for SunPRO C 5.0.
67034
67035 2007-03-11  Bruno Haible  <bruno@clisp.org>
67036
67037         * modules/long-options (Depends-on): Add getopt.
67038
67039 2007-03-11  Bruno Haible  <bruno@clisp.org>
67040
67041         * modules/modechange (Depends-on): Add stdbool.
67042
67043 2007-03-11  Bruno Haible  <bruno@clisp.org>
67044
67045         * modules/i-ring (Depends-on): Add stdbool.
67046
67047 2007-03-11  Bruno Haible  <bruno@clisp.org>
67048
67049         * modules/gc-des (Depends-on): Add stdbool.
67050
67051 2007-03-11  Bruno Haible  <bruno@clisp.org>
67052
67053         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67054
67055 2007-03-11  Bruno Haible  <bruno@clisp.org>
67056
67057         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67058
67059 2007-03-11  Bruno Haible  <bruno@clisp.org>
67060
67061         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67062
67063 2007-03-11  Bruno Haible  <bruno@clisp.org>
67064
67065         * lib/vasnprintf.c (sprintf): Undefine.
67066
67067 2007-03-11  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67070         initializers in SunPRO C and Compaq C compilers.
67071
67072 2007-03-11  Bruno Haible  <bruno@clisp.org>
67073
67074         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67075         decrementing code ANSI C compliant.
67076
67077 2007-03-11  Bruno Haible  <bruno@clisp.org>
67078
67079         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67080         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67081
67082 2007-03-11  Bruno Haible  <bruno@clisp.org>
67083
67084         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67085         <stdbool.h> substitute doesn't pass.
67086
67087 2007-03-11  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67090
67091 2007-03-11  Bruno Haible  <bruno@clisp.org>
67092
67093         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67094         script, for submission to autobuild.josefsson.org.
67095
67096 2007-03-10  Bruno Haible  <bruno@clisp.org>
67097
67098         * modules/canonicalize-lgpl-tests: New file.
67099         * tests/test-canonicalize-lgpl.sh: New file.
67100         * tests/test-canonicalize-lgpl.c: New file.
67101
67102         * modules/c-strcase-tests: New file.
67103         * tests/test-c-strcase.sh: New file.
67104         * tests/test-c-strcasecmp.c: New file.
67105         * tests/test-c-strncasecmp.c: New file.
67106
67107         * modules/atexit-tests: New file.
67108         * tests/test-atexit.sh: New file.
67109         * tests/test-atexit.c: New file.
67110
67111 2007-03-10  Bruno Haible  <bruno@clisp.org>
67112
67113         * tests/test-binary-io.sh: Use temporary filenames that are not so
67114         likely to clash with those of other tests (in a parallel make).
67115         * tests/test-binary-io.c: Likewise.
67116
67117 2007-03-10  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67120         fallback; use #error instead.
67121         Suggested by Simon Josefsson.
67122
67123 2007-03-10  Bruno Haible  <bruno@clisp.org>
67124
67125         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67126         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67127         first and the last.
67128
67129 2007-03-10  Bruno Haible  <bruno@clisp.org>
67130
67131         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67132
67133 2007-03-10  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67136         "make distcheck".
67137         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67138         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67139         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67140
67141 2007-03-10  Bruno Haible  <bruno@clisp.org>
67142
67143         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67144         variable.
67145         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67146         variable.
67147
67148 2007-03-09  Eric Blake  <ebb9@byu.net>
67149         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67150
67151         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67152         types are not being provided by gnulib.
67153         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67154         types are supported.
67155
67156 2007-03-10  Bruno Haible  <bruno@clisp.org>
67157
67158         * lib/stdio_.h (__attribute__): New macro.
67159         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67160         vsprintf): Specify __attribute__ __format__ for GCC.
67161         Suggested by Eric Blake.
67162
67163 2007-03-09  Bruno Haible  <bruno@clisp.org>
67164
67165         * modules/printf-posix-tests: New file.
67166         * tests/test-printf-posix.sh: New file.
67167         * tests/test-printf-posix.c: New file.
67168
67169         * modules/printf-posix: New file.
67170         * lib/printf.c: New file.
67171         * m4/printf-posix-rpl.m4: New file.
67172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67173         REPLACE_PRINTF.
67174         * lib/stdio_.h (printf): New declaration.
67175         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67176         ____strfmon____): New macros.
67177         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67178         REPLACE_PRINTF.
67179
67180 2007-03-09  Bruno Haible  <bruno@clisp.org>
67181
67182         * tests/test-vasnprintf-posix2.sh: New file.
67183         * tests/test-vasnprintf-posix2.c: New file.
67184         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67185         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67186         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67187
67188         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67189         a locale dependent decimal point, rather than always '.'.
67190
67191 2007-03-09  Eric Blake  <ebb9@byu.net>
67192
67193         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67194         spite of platforms like Tandem/NSK that define it to -1.
67195
67196 2007-03-08  Bruno Haible  <bruno@clisp.org>
67197
67198         * modules/vprintf-posix-tests: New file.
67199         * tests/test-vprintf-posix.sh: New file.
67200         * tests/test-vprintf-posix.c: New file.
67201         * tests/test-printf-posix.h: New file.
67202
67203         * modules/vprintf-posix: New file.
67204         * lib/vprintf.c: New file.
67205         * m4/vprintf-posix.m4: New file.
67206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67207         REPLACE_VPRINTF.
67208         * lib/stdio_.h (vprintf): New declaration.
67209         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67210         REPLACE_VPRINTF.
67211
67212 2007-03-08  Bruno Haible  <bruno@clisp.org>
67213
67214         * modules/fprintf-posix-tests: New file.
67215         * tests/test-fprintf-posix.sh: New file.
67216         * tests/test-fprintf-posix.c: New file.
67217
67218         * modules/fprintf-posix: New file.
67219         * lib/fprintf.c: New file.
67220         * m4/fprintf-posix.m4: New file.
67221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67222         REPLACE_FPRINTF.
67223         * lib/stdio_.h (fprintf): New declaration.
67224         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67225         REPLACE_FPRINTF.
67226
67227 2007-03-08  Bruno Haible  <bruno@clisp.org>
67228
67229         * modules/vfprintf-posix-tests: New file.
67230         * tests/test-vfprintf-posix.sh: New file.
67231         * tests/test-vfprintf-posix.c: New file.
67232         * tests/test-fprintf-posix.h: New file.
67233         * tests/test-fprintf-posix.out: New file.
67234
67235         * modules/vfprintf-posix: New file.
67236         * lib/vfprintf.c: New file.
67237         * m4/vfprintf-posix.m4: New file.
67238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67239         REPLACE_VFPRINTF.
67240         * lib/stdio_.h (vfprintf): New declaration.
67241         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67242         REPLACE_VFPRINTF.
67243
67244 2007-03-08  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67247
67248 2007-03-08  Bruno Haible  <bruno@clisp.org>
67249
67250         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67251         instead of 'expr' invocations.
67252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67257         Suggested by Paul Eggert.
67258
67259 2007-03-08  Bruno Haible  <bruno@clisp.org>
67260
67261         * modules/fseterr-tests: New file.
67262         * tests/test-fseterr.c: New file.
67263
67264         * modules/fseterr: New file.
67265         * lib/fseterr.h: New file.
67266         * lib/fseterr.c: New file.
67267
67268 2007-03-08  Bruno Haible  <bruno@clisp.org>
67269
67270         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67271         * lib/getopt_.h: Likewise.
67272         * lib/mbswidth.h: Likewise.
67273         * lib/setenv.h: Likewise.
67274         * lib/vasnprintf.h: Likewise.
67275         * lib/vasprintf.h: Likewise.
67276         * lib/verror.h: Likewise.
67277         * lib/xsetenv.h: Likewise.
67278         * lib/xvasprintf.h: Likewise.
67279
67280 2007-03-08  Jim Meyering  <jim@meyering.net>
67281
67282         * users.txt: Add parted.
67283
67284         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67285
67286 2007-03-07  Bruno Haible  <bruno@clisp.org>
67287
67288         * m4/printf.m4: Make the shell script snippets copy&pastable.
67289
67290 2007-03-02  Bruno Haible  <bruno@clisp.org>
67291
67292         * lib/netinet_in_.h: New file.
67293         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67294         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67295         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67296         (Depends-on): Add absolute-header.
67297         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67298         into netinet/in.h.
67299
67300 2007-03-03  Bruno Haible  <bruno@clisp.org>
67301
67302         * lib/sys_select_.h: New file.
67303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67304         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67305         * modules/sys_select (Files): Add lib/sys_select_.h.
67306         (Depends-on): Add absolute-header.
67307         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67308         into sys/select.h.
67309
67310 2007-03-02  Bruno Haible  <bruno@clisp.org>
67311
67312         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67313         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67314         values.
67315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67316         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67317         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67318         * modules/sys_socket (Depends-on): Add absolute-header.
67319         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67320         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67321         (Include): Remove requirement of inclusion of <sys/types.h>.
67322
67323 2007-03-02  Bruno Haible  <bruno@clisp.org>
67324
67325         * lib/byteswap_.h (bswap_32): Fix formula.
67326
67327 2007-03-06  Bruno Haible  <bruno@clisp.org>
67328
67329         * modules/sprintf-posix-tests: New file.
67330         * tests/test-sprintf-posix.c: New file.
67331
67332         * modules/sprintf-posix: New file.
67333         * lib/sprintf.c: New file.
67334         * m4/sprintf-posix.m4: New file.
67335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67336         REPLACE_SPRINTF.
67337         * lib/stdio_.h (sprintf): New declaration.
67338         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67339         REPLACE_SPRINTF.
67340
67341 2007-03-06  Bruno Haible  <bruno@clisp.org>
67342
67343         * modules/vsprintf-posix-tests: New file.
67344         * tests/test-vsprintf-posix.c: New file.
67345         * tests/test-sprintf-posix.h: New file.
67346
67347         * modules/vsprintf-posix: New file.
67348         * lib/vsprintf.c: New file.
67349         * m4/vsprintf-posix.m4: New file.
67350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67351         REPLACE_VSPRINTF.
67352         * lib/stdio_.h (vsprintf): New declaration.
67353         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67354         REPLACE_VSPRINTF.
67355
67356 2007-03-06  Bruno Haible  <bruno@clisp.org>
67357
67358         * modules/vsnprintf (Depend-on): Remove minmax.
67359
67360 2007-03-06  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/snprintf-posix-tests: New file.
67363         * tests/test-snprintf-posix.c: New file.
67364
67365         * modules/snprintf-posix: New file.
67366         * m4/snprintf-posix.m4: New file.
67367         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67368         gl_FUNC_SNPRINTF.
67369         (gl_FUNC_SNPRINTF): Invoke it.
67370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67371         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67372         is set.
67373         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67374
67375 2007-03-06  Bruno Haible  <bruno@clisp.org>
67376
67377         * modules/vsnprintf-posix-tests: New file.
67378         * tests/test-vsnprintf-posix.c: New file.
67379         * tests/test-snprintf-posix.h: New file.
67380
67381         * modules/vsnprintf-posix: New file.
67382         * m4/vsnprintf-posix.m4: New file.
67383         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67384         gl_FUNC_VSNPRINTF.
67385         (gl_FUNC_VSNPRINTF): Invoke it.
67386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67387         * lib/stdio_.h (vsnprintf): Define as a replacement if
67388         REPLACE_VSNPRINTF is set.
67389         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67390
67391 2007-03-06  Bruno Haible  <bruno@clisp.org>
67392
67393         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67395
67396 2007-03-06  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67399         (asinl): Declare also if HAVE_DECL_ASINL is set.
67400         (atanl): Declare also if HAVE_DECL_ATANL is set.
67401         (ceill): Declare also if HAVE_DECL_CEILL is set.
67402         (cosl): Declare also if HAVE_DECL_COSL is set.
67403         (expl): Declare also if HAVE_DECL_EXPL is set.
67404         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67405         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67406         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67407         (logl): Declare also if HAVE_DECL_LOGL is set.
67408         (sinl): Declare also if HAVE_DECL_SINL is set.
67409         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67410         (tanl): Declare also if HAVE_DECL_TANL is set.
67411         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67413         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67414         declaration of frexpl, ldexpl.
67415         * modules/printf-frexpl (Depends-on): Add math.
67416         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67417
67418 2007-03-05  Bruno Haible  <bruno@clisp.org>
67419
67420         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67421         frexpl and ldexpl are declared.
67422         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67423
67424 2007-03-05  Bruno Haible  <bruno@clisp.org>
67425
67426         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67427         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67428
67429 2007-03-05  Bruno Haible  <bruno@clisp.org>
67430
67431         * lib/stdio_.h: Include <stddef.h>.
67432
67433 2007-03-05  Bruno Haible  <bruno@clisp.org>
67434
67435         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67436
67437 2007-03-05  Bruno Haible  <bruno@clisp.org>
67438
67439         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67440         NetBSD 4, from Ralf Wildenhues.
67441
67442 2007-03-04  Bruno Haible  <bruno@clisp.org>
67443
67444         * lib/vasprintf.h: Update #if logic for the case when the functions
67445         exist but are overridden.
67446
67447 2007-03-04  Bruno Haible  <bruno@clisp.org>
67448
67449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67450         implementations: glibc-2.4 and MacOS X 10.3.
67451         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67452         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67453         * tests/test-vasprintf-posix.c (test_function): Likewise.
67454
67455 2007-03-04  Bruno Haible  <bruno@clisp.org>
67456
67457         * modules/vasprintf-posix-tests: New file.
67458         * tests/test-vasprintf-posix.c: New file.
67459
67460         * modules/vasprintf-posix: New file.
67461         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67462         defined.
67463         * m4/vasprintf-posix.m4: New file.
67464         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67465         gl_FUNC_VASPRINTF.
67466         (gl_FUNC_VASPRINTF): Invoke it.
67467         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67468         here.
67469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67470
67471 2007-03-04  Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67474         REPLACE_GETTIMEOFDAY.
67475         * modules/sys_time (Makefile.am): Likewise.
67476         * m4/sys_time_h.m4: Likewise.
67477         * m4/gettimeofday.m4: Likewise.
67478
67479 2007-03-04  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/vasnprintf-posix-tests: New file.
67482         * tests/test-vasnprintf-posix.c: New file.
67483
67484         * modules/vasnprintf-posix: New file.
67485         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67486         printf-frexpl.h.
67487         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67488         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67489         REPLACE_VASNPRINTF is defined.
67490         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67491         gl_FUNC_VASNPRINTF.
67492         (gl_FUNC_VASNPRINTF): Invoke it.
67493         * m4/vasnprintf-posix.m4: New file.
67494         * m4/printf.m4: New file.
67495
67496 2007-03-04  Bruno Haible  <bruno@clisp.org>
67497
67498         Compile progreloc.c only if --enable-relocatable is specified.
67499         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67500         if --enable-relocatable was specified.
67501         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67502         lib_SOURCES.
67503
67504 2007-03-04  Jim Meyering  <jim@meyering.net>
67505
67506         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67507         Use it consistently, rather than enumerating errno constants.
67508
67509 2007-03-04  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/xvasprintf-tests: New file.
67512         * tests/test-xvasprintf.c: New file.
67513
67514         * modules/vasprintf-tests: New file.
67515         * tests/test-vasprintf.c: New file.
67516
67517         * modules/vasnprintf-tests: New file.
67518         * tests/test-vasnprintf.c: New file.
67519
67520         * modules/vsnprintf-tests: New file.
67521         * tests/test-vsnprintf.c: New file.
67522
67523         * modules/snprintf-tests: New file.
67524         * tests/test-snprintf.c: New file.
67525
67526 2007-03-04  Bruno Haible  <bruno@clisp.org>
67527
67528         Compile relocatable.c only if --enable-relocatable is specified.
67529         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67530         gl_RELOCATABLE_LIBRARY.
67531         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67532         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67533         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67534         gl_RELOCATABLE_LIBRARY.
67535         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67536         (Makefile.am): Remove lib_SOURCES.
67537         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67538         gl_RELOCATABLE_LIBRARY.
67539         (Makefile.am): Remove lib_SOURCES.
67540         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67541         always.
67542         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67543         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67544
67545 2007-03-04  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/argmatch-tests: New file.
67548         * tests/test-argmatch.c: New file.
67549
67550         * tests/test-allocsa.c (main): Halve the number of loop runs.
67551
67552         * modules/alloca-opt-tests: New file.
67553         * tests/test-alloca-opt.c: New file.
67554
67555 2007-03-04  Jim Meyering  <jim@meyering.net>
67556
67557         Work around difference between Linux ACLs and Solaris 10 ZFS.
67558         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67559         for EINVAL.
67560
67561 2007-03-03  Bruno Haible  <bruno@clisp.org>
67562
67563         * modules/relocatable-prog (Depends-on): Add back progreloc's
67564         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67565
67566 2007-03-03  Bruno Haible  <bruno@clisp.org>
67567
67568         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67569         * modules/relocatable-lib: New file.
67570
67571 2007-03-03  Bruno Haible  <bruno@clisp.org>
67572
67573         * modules/relocatable-prog: Renamed from modules/relocatable.
67574         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67575
67576 2007-03-03  Bruno Haible  <bruno@clisp.org>
67577
67578         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67579         m4/relocatable-lib.m4.
67580         (Depends-on): Remove 'relocatable'.
67581         (configure.ac): Add gl_RELOCATABLE_NOP.
67582
67583 2007-03-03  Bruno Haible  <bruno@clisp.org>
67584
67585         * modules/relocatable-prog-wrapper: New file.
67586         * modules/relocatable (Depends-on): Add it. Remove all other
67587         dependencies except progname.
67588         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67589
67590         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67591         (gl_FUNC_STRERROR): Nop.
67592         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67593
67594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67595         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67596
67597         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67598         (gl_FUNC_READLINK): Update.
67599
67600         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67601
67602 2007-03-03  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67605         * modules/xreadlink (Depends-on): Add unistd.
67606         * modules/xreadlink-with-size (Depends-on): Likewise.
67607
67608 2007-03-03  Bruno Haible  <bruno@clisp.org>
67609
67610         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67611         extracted from gt_FUNC_SETENV.
67612         (gt_FUNC_SETENV): Remove macro.
67613         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67614         remove gt_FUNC_SETENV.
67615
67616 2007-03-03  Bruno Haible  <bruno@clisp.org>
67617
67618         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67619         ENABLE_RELOCATABLE here.
67620         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67621
67622 2007-03-03  Bruno Haible  <bruno@clisp.org>
67623
67624         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67625         * tests/test-rbtreehash_list.c: Include progname.h.
67626         (main): Call set_program_name.
67627
67628         * modules/rbtree-oset-tests (Depends-on): Add progname.
67629         * tests/test-rbtree_oset.c: Include progname.h.
67630         (main): Call set_program_name.
67631
67632         * modules/rbtree-list-tests (Depends-on): Add progname.
67633         * tests/test-rbtree_list.c: Include progname.h.
67634         (main): Call set_program_name.
67635
67636         * modules/linked-list-tests (Depends-on): Add progname.
67637         * tests/test-linked_list.c: Include progname.h.
67638         (main): Call set_program_name.
67639
67640 2007-03-03  Bruno Haible  <bruno@clisp.org>
67641
67642         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67643         All uses of __restrict changed to _Restrict_.
67644         * lib/glob_.h (__restrict): Remove macro.
67645
67646 2007-03-02  Bruno Haible  <bruno@clisp.org>
67647
67648         * modules/gettext (configure.ac): Require gettext infrastructure
67649         from version 0.16.1.
67650
67651 2007-03-02  Bruno Haible  <bruno@clisp.org>
67652
67653         * modules/linkedhash-list-tests (Depends-on): Add progname.
67654         * tests/test-linkedhash_list.c: Include progname.h.
67655         (main): Call set_program_name.
67656
67657         * modules/carray-list-tests (Depends-on): Add progname.
67658         * tests/test-carray_list.c: Include progname.h.
67659         (main): Call set_program_name.
67660
67661         * modules/avltreehash-list-tests (Depends-on): Add progname.
67662         * tests/test-avltreehash_list.c: Include progname.h.
67663         (main): Call set_program_name.
67664
67665         * modules/avltree-oset-tests (Depends-on): Add progname.
67666         * tests/test-avltree_oset.c: Include progname.h.
67667         (main): Call set_program_name.
67668
67669         * modules/avltree-list-tests (Depends-on): Add progname.
67670         * tests/test-avltree_list.c: Include progname.h.
67671         (main): Call set_program_name.
67672
67673         * modules/array-oset-tests (Depends-on): Add progname.
67674         * tests/test-array_oset.c: Include progname.h.
67675         (main): Call set_program_name.
67676
67677         * modules/array-list-tests (Depends-on): Add progname.
67678         * tests/test-array_list.c: Include progname.h.
67679         (main): Call set_program_name.
67680
67681         * modules/argp-tests (Depends-on): Add progname.
67682         * tests/test-argp.c: Include argp.h first. Include progname.h.
67683         (main): Call set_program_name.
67684
67685 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * doc/gnulib-tool.texi (Initial import): Reword description of
67688         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67689         limited effect even if defined after the first system include.
67690
67691 2007-03-01  Bruno Haible  <bruno@clisp.org>
67692
67693         * build-aux/config.libpath: Update to libtool-1.5.22.
67694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67695
67696 2007-03-01  Bruno Haible  <bruno@clisp.org>
67697
67698         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67699         foo_CFLAGS.
67700         Reported by Ralf Wildenhues.
67701
67702 2007-03-01  Bruno Haible  <bruno@clisp.org>
67703
67704         * build-aux/install-reloc: Remove object files left over by some
67705         compilers.
67706         Reported by Ralf Wildenhues.
67707
67708 2007-03-01  Bruno Haible  <bruno@clisp.org>
67709
67710         * build-aux/install-reloc: Break long lines.
67711
67712 2007-03-01  Bruno Haible  <bruno@clisp.org>
67713
67714         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67715         Reported by Ralf Wildenhues.
67716
67717 2007-03-01  Bruno Haible  <bruno@clisp.org>
67718
67719         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67720         include ordering constraints.
67721
67722 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67726         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67727         as another example.
67728         * lib/time_.h: Fix misspelling.
67729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67730         Require gl_HEADER_TIME_H_DEFAULTS.
67731         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67732         * m4/time_r.m4 (gl_TIME_R): Likewise.
67733         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67734
67735 2007-03-01  Bruno Haible  <bruno@clisp.org>
67736
67737         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67738         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67739
67740 2007-03-01  Jim Meyering  <jim@meyering.net>
67741
67742         * modules/xreadlink (Maintainer): Add my name.
67743         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67744
67745 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67746             Bruno Haible  <bruno@clisp.org>
67747
67748         * build-aux/install-reloc: Compile also c-ctype.c.
67749         * build-aux/relocatable.sh.in: New file.
67750         * doc/relocatable.texi: New file.
67751         * doc/relocatable-maint.texi: New file.
67752         * doc/gnulib.texi: Include relocatable-maint.texi.
67753         * lib/progreloc.c: Include unistd.h unconditionally.
67754         * lib/relocwrapper.c: Include unistd.h unconditionally.
67755         Include c-ctype.h.
67756         (add_dotbin): Use c_tolower.
67757         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67758         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67759         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67760         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67761         to m4/relocatable-lib.m4.
67762         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67763         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67764         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67765         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67766         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67767         * modules/relocatable: New file.
67768         * modules/relocatable-lib: New file.
67769         * modules/relocatable-script: New file.
67770
67771 2007-02-28  Bruno Haible  <bruno@clisp.org>
67772
67773         Import --enable-relocatable infrastructure.
67774         * build-aux/config.libpath: New file, from GNU gettext.
67775         * build-aux/install-reloc: New file, from GNU gettext.
67776         * build-aux/reloc-ldflags: New file, from GNU gettext.
67777         * lib/relocatable.h: New file, from GNU gettext.
67778         * lib/relocatable.c: New file, from GNU gettext.
67779         * lib/relocwrapper.c: New file, from GNU gettext.
67780         * m4/relocatable.m4: New file, from GNU gettext.
67781
67782 2007-02-28  Bruno Haible  <bruno@clisp.org>
67783
67784         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67785
67786         * modules/xreadlink: New file, from GNU gettext with modifications.
67787         * lib/xreadlink.c: New file, from GNU gettext.
67788         * lib/xreadlink.h: Add comments.
67789         (xreadlink): New declaration.
67790
67791         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67792         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67793         lib/xreadlink-with-size.c.
67794         (configure.ac): Remove gl_XREADLINK invocation.
67795         (Makefile.am): Augment lib_SOURCES.
67796         * m4/xreadlink.m4: Remove file.
67797         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67798         (xreadlink_with_size): Renamed from xreadink.
67799         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67800         * modules/canonicalize (Depends-on): Replace xreadlink with
67801         xreadlink-with-size.
67802         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67803
67804 2007-02-25  Jim Meyering  <jim@meyering.net>
67805
67806         * build-aux/announce-gen: When complaining about excess arguments,
67807         list them.
67808
67809 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * README: Document signed integer overflow situation more
67812         accurately.
67813
67814 2007-02-25  Bruno Haible  <bruno@clisp.org>
67815
67816         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67817         'a' or 'A' conversion.
67818
67819 2007-02-25  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/filename: Renamed from modules/pathname.
67822         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67823         lib/concatpath.c with lib/concat-filename.c.
67824         (Makefile.am): Update.
67825         (Include): Replace pathname.h with filename.h.
67826         * lib/filename.h: Renamed from lib/pathname.h.
67827         (concatenated_filename): Renamed from concatenated_pathname.
67828         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67829         (concatenated_filename): Renamed from concatenated_pathname.
67830         * lib/findprog.c: Include filename.h instead of pathname.h.
67831         (find_in_path): Update.
67832         * lib/javacomp.c: Include filename.h instead of pathname.h.
67833         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67834         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67835         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67836         is_oldgcj_14_13_usable, is_javac_usable): Update.
67837         * lib/javaexec.c: Include filename.h instead of pathname.h.
67838         (execute_java_class): Update.
67839         * modules/findprog: Update.
67840         * modules/javacomp: Update.
67841         * modules/javaexec: Update.
67842         * MODULES.html.sh (File system functions): Add 'filename', remove
67843         'pathname'.
67844
67845 2007-02-25  Bruno Haible  <bruno@clisp.org>
67846
67847         * modules/printf-frexpl-tests: New file.
67848         * tests/test-printf-frexpl.c: New file.
67849
67850         * modules/printf-frexpl: New file.
67851         * lib/printf-frexpl.h: New file.
67852         * lib/printf-frexpl.c: New file.
67853         * m4/printf-frexpl.m4: New file.
67854
67855 2007-02-25  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/printf-frexp-tests: New file.
67858         * tests/test-printf-frexp.c: New file.
67859
67860         * modules/printf-frexp: New file.
67861         * lib/printf-frexp.h: New file.
67862         * lib/printf-frexp.c: New file.
67863         * m4/printf-frexp.m4: New file.
67864
67865 2007-02-25  Bruno Haible  <bruno@clisp.org>
67866
67867         Assume automake >= 1.10 for the tests.
67868         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67869         * modules/arctwo-tests: Likewise.
67870         * modules/argp-tests: Likewise.
67871         * modules/avltree-list-tests: Likewise.
67872         * modules/avltree-oset-tests: Likewise.
67873         * modules/avltreehash-list-tests: Likewise.
67874         * modules/carray-list-tests: Likewise.
67875         * modules/crc-tests: Likewise.
67876         * modules/des-tests: Likewise.
67877         * modules/gc-arcfour-tests: Likewise.
67878         * modules/gc-arctwo-tests: Likewise.
67879         * modules/gc-des-tests: Likewise.
67880         * modules/gc-hmac-md5-tests: Likewise.
67881         * modules/gc-hmac-sha1-tests: Likewise.
67882         * modules/gc-md2-tests: Likewise.
67883         * modules/gc-md4-tests: Likewise.
67884         * modules/gc-md5-tests: Likewise.
67885         * modules/gc-pbkdf2-sha1-tests: Likewise.
67886         * modules/gc-rijndael-tests: Likewise.
67887         * modules/gc-sha1-tests: Likewise.
67888         * modules/gc-tests: Likewise.
67889         * modules/getaddrinfo-tests: Likewise.
67890         * modules/hmac-md5-tests: Likewise.
67891         * modules/hmac-sha1-tests: Likewise.
67892         * modules/linked-list-tests: Likewise.
67893         * modules/linkedhash-list-tests: Likewise.
67894         * modules/lock-tests: Likewise.
67895         * modules/md2-tests: Likewise.
67896         * modules/md4-tests: Likewise.
67897         * modules/md5-tests: Likewise.
67898         * modules/rbtree-list-tests: Likewise.
67899         * modules/rbtree-oset-tests: Likewise.
67900         * modules/rbtreehash-list-tests: Likewise.
67901         * modules/read-file-tests: Likewise.
67902         * modules/rijndael-tests: Likewise.
67903         * modules/stdint-tests: Likewise.
67904         * modules/tls-tests: Likewise.
67905
67906 2007-02-24  Bruno Haible  <bruno@clisp.org>
67907
67908         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67909         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67910         function; instead check whether isnan with a double argument links.
67911         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67912         function; instead check whether isnan with a 'long double' argument
67913         links.
67914         Reported by Eric Blake <ebb9@byu.net>.
67915
67916 2007-02-24  Bruno Haible  <bruno@clisp.org>
67917
67918         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67919         defined.
67920         * lib/isnanl.c: Remove all code. Just include isnan.c.
67921         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67922
67923 2007-02-25  Jim Meyering  <jim@meyering.net>
67924
67925         Avoid conflicting types for 'unsetenv' on FreeBSD.
67926         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67927         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67928         in stdlib.h.
67929
67930 2007-02-24  Bruno Haible  <bruno@clisp.org>
67931
67932         * modules/isnanl-nolibm-tests: New file.
67933         * tests/test-isnanl.c: New file.
67934
67935         * modules/isnanl-nolibm: New file.
67936         * lib/isnanl.h: New file.
67937         * lib/isnanl.c: New file.
67938         * m4/isnanl.m4: New file.
67939
67940 2007-02-24  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/isnan-nolibm-tests: New file.
67943         * tests/test-isnan.c: New file.
67944
67945         * modules/isnan-nolibm: New file.
67946         * lib/isnan.h: New file.
67947         * lib/isnan.c: New file.
67948         * m4/isnan.m4: New file.
67949
67950 2007-02-24  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67953         assume that an exponent fits in 20 bits.
67954
67955 2007-02-24  Jim Meyering  <jim@meyering.net>
67956
67957         * m4/regex.m4: Update the description of the configure-time option,
67958         --without-included-regex, to state accurately what the defaults are,
67959         and perhaps to give people an idea why using this option is risky.
67960
67961 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67962
67963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67964         loops on small arguments.  This attempts to avoid the problem
67965         Bruno Haible reported for AIX 4.3.2 in
67966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67967
67968 2007-02-23  Bruno Haible  <bruno@clisp.org>
67969
67970         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67971         Needed for help2man.
67972
67973 2007-02-23  Karl Berry  <karl@gnu.org>
67974
67975         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67976         exists, foo.h should be cvs-ignored, not committed.
67977
67978 2007-02-23  Eric Blake  <ebb9@byu.net>
67979
67980         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67981         * lib/stat-time.h (includes): Likewise.
67982         * lib/utimecmp.c (includes): Likewise.
67983         * lib/utimens.h (includes): Likewise.
67984         * lib/getdate.y (includes): Also include "timespec.h" for use
67985         internal to the module.
67986         * modules/utimens (Depends-on): Revert yesterday's patch.
67987         * modules/nanosleep (Depends-on): Add missing dependency.
67988
67989 2007-02-22  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/glob.c: Don't include getlogin_r.h.
67992
67993 2007-02-22  Jim Meyering  <jim@meyering.net>
67994
67995         * modules/utimens (Depends-on): Add timespec, required for
67996         utimens.h's inclusion of timespec.h.
67997
67998 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68001         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68002         Schwab in
68003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68004         I'll try to think of a better way to fix the Solaris problem.
68005
68006         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68007         like glibc; on Solaris 10, it fails with errno == EINVAL.
68008         POSIX says the behavior is unspecified if the first argument is NULL,
68009         so play it safe and never pass NULL to the system getcwd.
68010
68011 2007-02-21  Jim Meyering  <jim@meyering.net>
68012
68013         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68014         of gettimeofday.  It would conflict with the one now always
68015         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68016         an IRIX 6.5 build failure.
68017
68018 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68019
68020         Minor fixups to port to Solaris 10 with Sun C 5.8.
68021         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68022         * modules/getcwd (Depends-on): Add dirfd.
68023         * lib/putenv.c (putenv): #undef it.
68024         (rpl_putenv): New decl.
68025         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68026
68027 2007-02-20  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/stdio-tests: New file.
68030         * tests/test-stdio.c: New file.
68031
68032         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68033         (Depends-on): Add stdio.
68034         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68035         (Include): Use <stdio.h> instead of vsnprintf.h.
68036         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68037         HAVE_DECL_VSNPRINTF.
68038         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68039
68040         * modules/snprintf (Files): Remove lib/snprintf.h.
68041         (Depends-on): Add stdio.
68042         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68043         (Include): Use <stdio.h> instead of snprintf.h.
68044         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68045         HAVE_DECL_SNPRINTF.
68046         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68047         * lib/getaddrinfo.c: Likewise.
68048
68049         * modules/stdio: New file.
68050         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68051         * lib/snprintf.h: Remove file.
68052         * lib/vsnprintf.h: Remove file.
68053         * lib/.cppi-disable: Remove snprintf.h.
68054         * m4/stdio_h.m4: New file.
68055         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68056
68057 2007-02-20  Jim Meyering  <jim@meyering.net>
68058
68059         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68060         used by e.g., mingw.  From Bruno Haible.
68061
68062 2007-02-19  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68065         warnings.
68066         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68067
68068 2007-02-19  Bruno Haible  <bruno@clisp.org>
68069
68070         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68071         from mingw users.
68072
68073 2007-02-19  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68076         warnings.
68077         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68078
68079 2007-02-19  Jim Meyering  <jim@meyering.net>
68080
68081         Don't use FD after a successful "fdopendir (fd)".
68082         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68083         Reset it by calling dirfd on the just-obtained DIR*.
68084
68085         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68086         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68087
68088 2007-02-18  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/readlink.c: Include <unistd.h>.
68091         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68092         HAVE_READLINK.
68093         * modules/readlink (Depends-on): Add unistd.
68094         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68095         (Include): Add <unistd.h>.
68096
68097         * lib/getlogin_r.h: Remove file.
68098         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68099         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68100         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68101         HAVE_DECL_GETLOGIN_R.
68102         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68104         (Include): Use <unistd.h> instead of getlogin_r.h.
68105
68106         * lib/getcwd.h: Remove file.
68107         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68108         * lib/xgetcwd.c: Likewise.
68109         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68110         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68111         * modules/getcwd (Files): Remove lib/getcwd.h.
68112         (Depends-on): Add unistd.
68113         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68114         (Include): Use <unistd.h> instad of getcwd.h.
68115
68116         * lib/ftruncate.c: Include <unistd.h> first.
68117         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68118         Set HAVE_FTRUNCATE.
68119         * modules/ftruncate (Depends-on): Add unistd.
68120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68121
68122         * lib/fchdir.c: Include <unistd.h> first.
68123         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68125         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68126         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68127         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68128
68129         * lib/dup2.c: Include <unistd.h> first.
68130         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68131         HAVE_DUP2.
68132         * modules/dup2 (Depends-on): Add unistd.
68133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68134
68135         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68136         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68137         REPLACE_CHOWN. Don't define chown as a macro here.
68138         * modules/chown (Depends-on): Add unistd.
68139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68140
68141         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68142         Add definition for GL_LINK_WARNING.
68143         (chown, dup2): New declarations.
68144         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68145         link warning.
68146         (ftruncate): New declaration.
68147         (getcwd): New declaration, taken from old getcwd.h.
68148         (getlogin_r): New declaration, taken from old getlogin_r.h.
68149         (readlink): New declaration.
68150         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68151         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68152         (gl_PREREQ_UNISTD): Remove macro.
68153         (gl_UNISTD_MODULE_INDICATOR): New macro.
68154         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68155         many new variables. Don't set UNISTD_H.
68156         * modules/unistd (Description): Change.
68157         (Depends-on): Add link-warning.
68158         (configure.ac): Update.
68159         (Makefile.am): Create unistd.h always. Substitute many new variables
68160         into it.
68161
68162 2007-02-18  Bruno Haible  <bruno@clisp.org>
68163
68164         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68165         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68166         HAVE_GETSUBOPT.
68167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68168         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68169         * lib/getsubopt.h: Remove file.
68170         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68171         (Depends-on): Add stdlib.
68172         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68173         (Includes): Use <stdlib.h> instead of getsubopt.h.
68174         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68175         Set HAVE_GETSUBOPT.
68176         * lib/getsubopt.c: Don't include getsubopt.h.
68177
68178 2007-02-18  Bruno Haible  <bruno@clisp.org>
68179
68180         * modules/fchdir (Depends-on): Add dup2.
68181
68182 2007-02-18  Bruno Haible  <bruno@clisp.org>
68183
68184         * lib/stdlib_.h: Handle glibc's special invocation convention
68185         specially.
68186
68187 2007-02-18  Bruno Haible  <bruno@clisp.org>
68188
68189         * modules/stdlib-tests: New file.
68190         * tests/test-stdlib.c: New file.
68191
68192         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68193         (Depends-on): Add stdlib.
68194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68195         (Includes): Use <stdlib.h> instead of mkstemp.h.
68196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68197         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68198         * lib/mkstemp.c: Don't include mkstemp.h.
68199         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68200         * lib/stdlib--.h: Don't include mkstemp.h.
68201
68202         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68203         (Depends-on): Add stdlib.
68204         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68205         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68206         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68207         HAVE_MKDTEMP.
68208         * lib/mkdtemp.c: Don't include mkdtemp.h.
68209         * lib/clean-temp.c: Don't include mkdtemp.h.
68210
68211         * modules/exit (Files): Remove lib/exit.h.
68212         (Depends-on): Add stdlib.
68213         (Makefile.am): Remove lib_SOURCES.
68214         (Include): Use <stdlib.h> instead of exit.h.
68215         * lib/argmatch.c: Don't include exit.h.
68216         * lib/execute.c: Likewise.
68217         * lib/pagealign_alloc.c: Likewise.
68218         * lib/pipe.c: Likewise.
68219         * lib/wait-process.c: Likewise.
68220         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68221         * lib/exitfail.c: Likewise.
68222         * lib/savewd.c: Likewise.
68223         * lib/xsetenv.c: Likewise.
68224
68225         * modules/stdlib: New file.
68226         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68227         and extra comments about mkstemp().
68228         * lib/exit.h: Remove file.
68229         * lib/mkdtemp.h: Remove file.
68230         * lib/mkstemp.h: Remove file.
68231         * m4/stdlib_h.m4: New file.
68232         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68233
68234 2007-02-18  Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/math-tests: New file.
68237         * tests/test-math.c: New file.
68238
68239         * modules/math: New file.
68240         * modules/mathl (Files): Remove lib/mathl.h.
68241         (Depends-on): Add math.
68242         (Makefile.am): Don't mention mathl.h.
68243         (Include): Use <math.h> instead of mathl.h.
68244         * lib/math_.h: New file.
68245         * lib/mathl.h: Remove file.
68246         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68247         mathl.h.
68248         * lib/asinl.c: Likewise.
68249         * lib/atanl.c: Likewise.
68250         * lib/ceill.c: Likewise.
68251         * lib/cosl.c: Likewise.
68252         * lib/expl.c: Likewise.
68253         * lib/floorl.c: Likewise.
68254         * lib/frexpl.c: Likewise.
68255         * lib/ldexpl.c: Likewise.
68256         * lib/logl.c: Likewise.
68257         * lib/sincosl.c: Likewise.
68258         * lib/sinl.c: Likewise.
68259         * lib/sqrtl.c: Likewise.
68260         * lib/tanl.c: Likewise.
68261         * lib/trigl.c: Likewise.
68262         * m4/math_h.m4: New file.
68263         * MODULES.html.sh (Mathematics): Add math.
68264
68265 2007-02-17  Bruno Haible  <bruno@clisp.org>
68266
68267         * modules/wctype-tests: New file.
68268         * tests/test-wctype.c: New file.
68269
68270         * modules/wchar-tests: New file.
68271         * tests/test-wchar.c: New file.
68272
68273         * modules/unistd-tests: New file.
68274         * tests/test-unistd.c: New file.
68275
68276         * modules/time-tests: New file.
68277         * tests/test-time.c: New file.
68278
68279         * modules/sysexits-tests: New file.
68280         * tests/test-sysexits.c: New file.
68281
68282         * modules/sys_time-tests: New file.
68283         * tests/test-sys_time.c: New file.
68284
68285         * modules/sys_stat-tests: New file.
68286         * tests/test-sys_stat.c: New file.
68287
68288         * modules/sys_socket-tests: New file.
68289         * tests/test-sys_socket.c: New file.
68290
68291         * modules/sys_select-tests: New file.
68292         * tests/test-sys_select.c: New file.
68293
68294         * modules/string-tests: New file.
68295         * tests/test-string.c: New file.
68296
68297         * modules/stdbool-tests: New file.
68298         * tests/test-stdbool.c: New file.
68299
68300         * modules/netinet_in-tests: New file.
68301         * tests/test-netinet_in.c: New file.
68302
68303         * modules/inttypes-tests: New file.
68304         * tests/test-inttypes.c: New file.
68305
68306         * modules/fcntl-tests: New file.
68307         * tests/test-fcntl.c: New file.
68308
68309         * modules/byteswap-tests: New file.
68310         * tests/test-byteswap.c: New file.
68311
68312         * modules/arpa_inet-tests: New file.
68313         * tests/test-arpa_inet.c: New file.
68314
68315 2007-02-17  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68318         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68319         if the corresponding module is not enabled. Emit link warnings if
68320         the function is used nevertheless.
68321         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68322         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68323         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68324         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68325         * modules/inttypes (Depends-on): Add link-warning.
68326         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68327         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68328         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68329         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68330         * modules/imaxdiv (configure.ac): Likewise.
68331         * modules/strtoimax (configure.ac): Likewise.
68332         * modules/strtoumax (configure.ac): Likewise.
68333
68334 2007-02-17  Bruno Haible  <bruno@clisp.org>
68335
68336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68337         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68338         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68339         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68340
68341 2007-02-17  Bruno Haible  <bruno@clisp.org>
68342
68343         * modules/link-warning: New file.
68344         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68345         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68346         * modules/string (Depends-on): Add link-warning.
68347         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68348         string.h.
68349         * MODULES.html.sh (Support for building libraries and executables): Add
68350         link-warning.
68351
68352 2007-02-17  Bruno Haible  <bruno@clisp.org>
68353
68354         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68355         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68356         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68357         long lines.
68358
68359 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68360             Bruno Haible  <bruno@clisp.org>
68361
68362         * modules/tmpfile: New file.
68363         * lib/tmpfile.c: New file.
68364         * m4/tmpfile.m4: New file.
68365         * MODULES.html.sh (func_all_modules): New section "Input/output".
68366
68367 2007-02-15  Bruno Haible  <bruno@clisp.org>
68368
68369         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68370         (supports_delete_on_close): New function.
68371         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68372
68373 2007-02-14  Bruno Haible  <bruno@clisp.org>
68374
68375         * modules/mbspcasecmp-tests: New file.
68376         * tests/test-mbspcasecmp.sh: New file.
68377         * tests/test-mbspcasecmp.c: New file.
68378
68379         New module mbspcasecmp.
68380         * modules/mbspcasecmp: New file.
68381         * lib/mbspcasecmp.c: New file.
68382         * lib/string_.h (strncasecmp): Change warning message.
68383         (mbspcasecmp): New declaration.
68384         * m4/mbspcasecmp.m4: New file.
68385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68386         GNULIB_MBSPCASECMP.
68387         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68388         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68389
68390 2007-02-14  Bruno Haible  <bruno@clisp.org>
68391
68392         * modules/mbsncasecmp-tests: New file.
68393         * tests/test-mbsncasecmp.sh: New file.
68394         * tests/test-mbsncasecmp.c: New file.
68395
68396         New module mbsncasecmp.
68397         * modules/mbsncasecmp: New file.
68398         * lib/mbsncasecmp.c: New file.
68399         * lib/string_.h (mbsncasecmp): New declaration.
68400         * m4/mbsncasecmp.m4: New file.
68401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68402         GNULIB_MBSNCASECMP.
68403         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68404         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68405
68406 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68409         Verify that it doesn't overlap with our flags.
68410         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68411         do not have the desired effect in multibyte locales; instead, use
68412         mbscasecmp.
68413         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68414         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68415         we don't require GNU fnmatch ourselves (if our users require it, they
68416         should do so explicitly).
68417
68418         Fix regex code so it doesn't rely on strcasecmp.
68419         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68420         Otherwise, include gnulib's langinfo.h.
68421         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68422         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68423         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68424         * modules/regex (FILES): Remove m4/codeset.m4.
68425         (Depends-on): Add localcharset.  Remove strcase.
68426
68427 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68428
68429         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68430         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68431
68432 2007-02-13  Bruno Haible  <bruno@clisp.org>
68433
68434         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68435         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68436
68437 2007-02-12  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68440         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68441         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68442         time warning rather than a link error.
68443
68444 2007-02-12  Bruno Haible  <bruno@clisp.org>
68445
68446         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68447         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68448         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68449
68450 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68453         args, not 2.
68454
68455 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         New module 'time', so that apps can include <time.h> as per
68458         POSIX and GNU instead of separate include files like time_r.h
68459         and timegm.h.  This implementation tries out a simpler approach
68460         for replacing decls in standard include files (as compared to
68461         the string module), somewhat as an experiment.
68462
68463         * config/srclist.txt: Comment out mktime.c for now.
68464         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68465         since it doesn't apply any more.  Use generic wording instead.
68466         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68467         'time'.
68468         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68469         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68470         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68471         Don't include <sys/types.h>; no longer needed since we assume C89.
68472         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68473         * lib/strftime.c: Likewise.
68474         * lib/time_r.c: Likewise.
68475         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68476         * lib/nanosleep.c: Include <time.h> first, to check interface.
68477         * lib/strptime.c: Likewise.
68478         * lib/time_r.c: Likewise.
68479         * lib/timegm.c: Likewise.
68480         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68481         needed.
68482         * lib/timegm.c: Don't include timegm.h; no longer needed.
68483         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68484         time.h now handles any problems in that area.
68485         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68486         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68487         that time.h defines struct timespec.
68488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68489         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68490         handles that.
68491         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68492         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68493         needed.  Set REPLACE_LOCALTIME.
68494         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68495         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68496         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68497         nanosleep; time_h.m4 now does that.  Don't require
68498         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68499         module handles this now.
68500         * modules/getdate (Depends-on): Remove timespec.  Add time.
68501         * modules/nanosleep (Depends-on): Likewise.
68502         * modules/stat-time (Depends-on): Likewise.
68503         * modules/nanosleep (Include): Include time.h, not timespec.h.
68504         * modules/strptime (Files): Remove lib/strptime.h.
68505         (Depends-on): Add extensions, time.
68506         (Include): Include time.h, not strptime.h.
68507         * modules/time_r (Files): Remove lib/time_r.h.
68508         (Depends-on): Add time.
68509         (Include): Include time.h, not time_r.h.
68510         * modules/timegm: Likewise.
68511         * modules/timespec (Description): Now does timespec-related decls
68512         of our own, instead of struct timespec itself.
68513         (Depends-on): Add time; remove extensions.
68514         (Maintainer): Add self.
68515         * modules/utimecmp (Depends-on): Add time; remove timespec.
68516         * modules/utimens (Depends-on): Likewise.
68517         * modules/xnanosleep (Depends-on): Likewise.
68518
68519 2007-02-11  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/c-strstr.c: Include allocsa.h.
68522         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68523         * lib/c-strcasestr.c: Include allocsa.h.
68524         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68525         * lib/strcasestr.c: Include allocsa.h.
68526         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68527         * lib/mbsstr.c: Include allocsa.h.
68528         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68529         allocsa/freesa instead of malloc/free.
68530         * lib/mbscasestr.c: Include allocsa.h.
68531         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68532         allocsa/freesa instead of malloc/free.
68533         * modules/c-strstr (Depends-on): Add allocsa.
68534         * modules/c-strcasestr (Depends-on): Likewise.
68535         * modules/strcasestr (Depends-on): Likewise.
68536         * modules/mbsstr (Depends-on): Likewise.
68537         * modules/mbscasestr (Depends-on): Likewise.
68538
68539 2007-02-11  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68542
68543         * modules/mbsspn-tests: New file.
68544         * tests/test-mbsspn.sh: New file.
68545         * tests/test-mbsspn.c: New file.
68546
68547 2007-02-11  Bruno Haible  <bruno@clisp.org>
68548
68549         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68550
68551         * modules/mbspbrk-tests: New file.
68552         * tests/test-mbspbrk.sh: New file.
68553         * tests/test-mbspbrk.c: New file.
68554
68555 2007-02-11  Bruno Haible  <bruno@clisp.org>
68556
68557         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68558         unneeded cast.
68559
68560         * modules/mbscspn-tests: New file.
68561         * tests/test-mbscspn.sh: New file.
68562         * tests/test-mbscspn.c: New file.
68563
68564 2007-02-11  Bruno Haible  <bruno@clisp.org>
68565
68566         * modules/mbscasecmp-tests: New file.
68567         * tests/test-mbscasecmp.sh: New file.
68568         * tests/test-mbscasecmp.c: New file.
68569
68570 2007-02-11  Bruno Haible  <bruno@clisp.org>
68571
68572         Ensure O(n) worst-case complexity of mbscasestr.
68573         * lib/mbscasestr.c: Include stdbool.h.
68574         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68575         functions.
68576         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68577         the bookkeeping indicates that it's worth it.
68578         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68579
68580         * modules/mbscasestr-tests: New file.
68581         * tests/test-mbscasestr1.c: New file.
68582         * tests/test-mbscasestr2.sh: New file.
68583         * tests/test-mbscasestr2.c: New file.
68584         * tests/test-mbscasestr3.sh: New file.
68585         * tests/test-mbscasestr3.c: New file.
68586         * tests/test-mbscasestr4.sh: New file.
68587         * tests/test-mbscasestr4.c: New file.
68588         * m4/locale-tr.m4: New file.
68589
68590 2007-02-11  Bruno Haible  <bruno@clisp.org>
68591
68592         Ensure O(n) worst-case complexity of mbsstr.
68593         * lib/mbsstr.c: Include stdbool.h.
68594         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68595         functions.
68596         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68597         bookkeeping indicates that it's worth it.
68598         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68599
68600         * modules/mbsstr-tests: New file.
68601         * tests/test-mbsstr1.c: New file.
68602         * tests/test-mbsstr2.sh: New file.
68603         * tests/test-mbsstr2.c: New file.
68604         * tests/test-mbsstr3.sh: New file.
68605         * tests/test-mbsstr3.c: New file.
68606         * m4/locale-fr.m4: New file.
68607
68608 2007-02-11  Bruno Haible  <bruno@clisp.org>
68609
68610         * lib/mbsrchr.c (mbsrchr): Fix bug.
68611
68612         * modules/mbsrchr-tests: New file.
68613         * tests/test-mbsrchr.sh: New file.
68614         * tests/test-mbsrchr.c: New file.
68615
68616 2007-02-11  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/mbschr.c (mbschr): Fix bug.
68619
68620         * modules/mbschr-tests: New file.
68621         * tests/test-mbschr.sh: New file.
68622         * tests/test-mbschr.c: New file.
68623         * m4/locale-zh.m4: New file.
68624
68625 2007-02-11  Bruno Haible  <bruno@clisp.org>
68626
68627         Support for copying multibyte string iterators.
68628         * lib/mbiter.h: Include <string.h>.
68629         (mbiter_multi_copy): New function.
68630         (mbi_copy): New macro.
68631         * lib/mbuiter.h: Include <string.h>.
68632         (mbuiter_multi_copy): New function.
68633         (mbui_copy): New macro.
68634
68635 2007-02-11  Bruno Haible  <bruno@clisp.org>
68636
68637         New module mbslen.
68638         * modules/mbslen: New file.
68639         * lib/mbslen.c: New file.
68640         * lib/string_.h (mbslen): New declaration.
68641         * m4/mbslen.m4: New file.
68642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68643         GNULIB_MBSLEN.
68644         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68645         * MODULES.html.sh (Internationalization functions): Add mbslen.
68646
68647 2007-02-11  Bruno Haible  <bruno@clisp.org>
68648
68649         Ensure O(n) worst-case complexity of strcasestr substitute.
68650         * lib/strcasestr.c: Include stdbool.h.
68651         (knuth_morris_pratt): New function.
68652         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68653         bookkeeping indicates that it's worth it.
68654         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68655
68656         * modules/strcasestr-tests: New file.
68657         * tests/test-strcasestr.c: New file.
68658
68659 2007-02-11  Bruno Haible  <bruno@clisp.org>
68660
68661         Ensure O(n) worst-case complexity of c_strcasestr.
68662         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68663         (knuth_morris_pratt): New function.
68664         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68665         the bookkeeping indicates that it's worth it.
68666         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68667
68668         * modules/c-strcasestr-tests: New file.
68669         * tests/test-c-strcasestr.c: New file.
68670
68671 2007-02-11  Bruno Haible  <bruno@clisp.org>
68672
68673         Ensure O(n) worst-case complexity of c_strstr.
68674         * lib/c-strstr.c: Include stdbool.h, string.h.
68675         (knuth_morris_pratt): New function.
68676         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68677         bookkeeping indicates that it's worth it.
68678         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68679
68680         * lib/c-strstr.c: Complete rewrite for maintainability.
68681
68682         * modules/c-strstr-tests: New file.
68683         * tests/test-c-strstr.c: New file.
68684
68685 2007-02-11  Bruno Haible  <bruno@clisp.org>
68686
68687         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68688         5.2.1 and earlier, whereby \055 was treated just like the range
68689         delimiter '-'.
68690         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68691
68692 2007-02-08  Bruno Haible  <bruno@clisp.org>
68693
68694         * modules/regex (Depends-on): Add stdbool.
68695         Reported by Dalibor Topic <robilad@kaffe.org>.
68696
68697 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68700         Prefer returning from main to exiting from it.
68701         Remove unnecessary parens after sizeof.
68702
68703 2007-02-05  Bruno Haible  <bruno@clisp.org>
68704
68705         New module mbssep.
68706         * modules/mbssep: New file.
68707         * lib/mbssep.c: New file.
68708         * lib/string_.h (strsep): Add a conditional link warning.
68709         (mbssep): New declaration.
68710         * m4/mbssep.m4: New file.
68711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68712         GNULIB_MBSSEP.
68713         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68714         * MODULES.html.sh (Internationalization functions): Add mbssep.
68715
68716 2007-02-05  Bruno Haible  <bruno@clisp.org>
68717
68718         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68719         Optimize search in case of 1 delimiter.
68720
68721 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68722
68723         * lib/acl.h: Include sys/types.h before sys/acl.h.
68724
68725 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68726
68727         Merge upstream fix for glibc bugzilla #3957:
68728
68729         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68730
68731         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68732         bit for RE_HAT_LISTS_NOT_NEWLINE.
68733         (build_charclass_op): Remove bogus comment.
68734
68735 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68736
68737         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68738
68739 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68740
68741         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68742         * lib/memmem.c [!defined _LIBC]: Include config.h.
68743
68744 2007-02-04  Bruno Haible  <bruno@clisp.org>
68745
68746         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68747         warning message.
68748
68749 2007-02-04  Bruno Haible  <bruno@clisp.org>
68750
68751         New module mbstok_r.
68752         * modules/mbstok_r: New file.
68753         * lib/mbstok_r.c: New file.
68754         * lib/string_.h (strtok_r): Change argument names to match the
68755         comments. Add a conditional link warning.
68756         (mbstok_r): New declaration.
68757         * m4/mbstok_r.m4: New file.
68758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68759         GNULIB_MBSTOK_R.
68760         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68761         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68762
68763 2007-02-04  Bruno Haible  <bruno@clisp.org>
68764
68765         New module mbsspn.
68766         * modules/mbsspn: New file.
68767         * lib/mbsspn.c: New file.
68768         * lib/string_.h (strspn): Add a conditional link warning.
68769         (mbsspn): New declaration.
68770         * m4/mbsspn.m4: New file.
68771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68772         GNULIB_MBSSPN.
68773         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68774         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68775
68776 2007-02-04  Bruno Haible  <bruno@clisp.org>
68777
68778         New module mbspbrk.
68779         * modules/mbspbrk: New file.
68780         * lib/mbspbrk.c: New file.
68781         * lib/string_.h (strpbrk): Add a conditional link warning.
68782         (mbspbrk): New declaration.
68783         * m4/mbspbrk.m4: New file.
68784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68785         GNULIB_MBSPBRK.
68786         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68787         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68788
68789 2007-02-04  Bruno Haible  <bruno@clisp.org>
68790
68791         New module mbscspn.
68792         * modules/mbscspn: New file.
68793         * lib/mbscspn.c: New file.
68794         * lib/string_.h (strcspn): Add a conditional link warning.
68795         (mbscspn): New declaration.
68796         * m4/mbscspn.m4: New file.
68797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68798         GNULIB_MBSCSPN.
68799         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68800         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68801
68802 2007-02-04  Bruno Haible  <bruno@clisp.org>
68803
68804         New module mbscasestr, reduced goal of strcasestr.
68805         * modules/mbscasestr: New file.
68806         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68807         (mbscasestr): Renamed from strcasestr.
68808         * lib/strcasestr.c: Don't include mbuiter.h.
68809         (strcasestr): Remove support for multibyte locales.
68810         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68811         Change the conditional link warning.
68812         (mbscasestr): New declaration.
68813         * m4/mbscasestr.m4: New file.
68814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68815         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68816         REPLACE_STRCASESTR.
68817         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68819         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68820         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68821         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68822         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68823         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68824         (Depends-on): Remove mbuiter.
68825         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68826
68827 2007-02-04  Bruno Haible  <bruno@clisp.org>
68828
68829         Simplify handling of strncasecmp.
68830         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68831         the conditional link warning.
68832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68833         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68834         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68835         * modules/strcase (configure.ac): Don't invoke
68836         gl_STRING_MODULE_INDICATOR.
68837         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68838
68839 2007-02-04  Bruno Haible  <bruno@clisp.org>
68840
68841         New module mbscasecmp, reduced goal of strcasecmp.
68842         * modules/mbscasecmp: New file.
68843         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68844         (mbscasecmp): Renamed from strcasecmp.
68845         * lib/strcasecmp.c: Don't include mbuiter.h.
68846         (strcasecmp): Remove support for multibyte locales.
68847         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68848         Change the conditional link warning.
68849         (mbscasecmp): New declaration.
68850         * m4/mbscasecmp.m4: New file.
68851         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68852         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68853         REPLACE_STRCASECMP.
68854         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68856         GNULIB_MBSCASECMP.
68857         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68858         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68859         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68860         (Depends-on): Remove mbuiter.
68861         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68862
68863 2007-02-04  Bruno Haible  <bruno@clisp.org>
68864
68865         New module mbsstr. Remove module strstr.
68866         * modules/mbsstr: New file.
68867         * modules/strstr: Remove file.
68868         * lib/mbsstr.c: Renamed from lib/strstr.c.
68869         (mbsstr): Renamed from strstr.
68870         * lib/string_.h (strstr): Remove declaration. Change the conditional
68871         link warning.
68872         (mbsstr): New declaration.
68873         * m4/mbsstr.m4: New file.
68874         * m4/strstr.m4: Remove file.
68875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68876         REPLACE_STRSTR.
68877         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68878         Don't initialize GNULIB_STRSTR.
68879         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68880         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68881         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68882         (Support for systems lacking ANSI C 89): Remove strstr.
68883
68884 2007-02-04  Bruno Haible  <bruno@clisp.org>
68885
68886         New module mbsrchr.
68887         * modules/mbsrchr: New file.
68888         * lib/mbsrchr.c: New file.
68889         * lib/string_.h (strrchr): Add a conditional link warning.
68890         (mbsrchr): New declaration.
68891         * m4/mbsrchr.m4: New file.
68892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68893         GNULIB_MBSRCHR.
68894         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68895         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68896
68897 2007-02-04  Bruno Haible  <bruno@clisp.org>
68898
68899         New module mbschr.
68900         * modules/mbschr: New file.
68901         * lib/mbschr.c: New file.
68902         * lib/string_.h (strchr): Add a conditional link warning.
68903         (mbschr): New declaration.
68904         * m4/mbschr.m4: New file.
68905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68906         GNULIB_MBSCHR.
68907         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68908         * MODULES.html.sh (Internationalization functions): Add mbschr.
68909
68910 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68913
68914         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68915
68916 2007-02-04  Bruno Haible  <bruno@clisp.org>
68917
68918         New module description section 'configure.ac-early'.
68919         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68920         (func_get_autoconf_early_snippet): New function.
68921         (func_import, func_create_testdir): Use it. Remove special cases for
68922         modules 'extensions' and 'lock'.
68923         * modules/extensions (configure.ac-early): Require
68924         gl_USE_SYSTEM_EXTENSIONS.
68925         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68926
68927 2007-02-04  Bruno Haible  <bruno@clisp.org>
68928
68929         Make use of gcj-4.3's -fsource and -ftarget option.
68930         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68931         and if so try the options -fsource and -ftarget.
68932         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68933         source_version, ftarget_option, target_version arguments.
68934         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68935         (is_envjavac_oldgcj_14_14_usable): Renamed from
68936         is_envjavac_gcj_14_14_usable.
68937         (is_envjavac_oldgcj_14_13_usable): Renamed from
68938         is_envjavac_gcj_14_13_usable.
68939         (is_gcj_present): Update.
68940         (is_gcj_43, is_gcj43_usable): New functions.
68941         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68942         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68943         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68944         try the options -fsource and -ftarget.
68945
68946 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68949         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68950         larger value.
68951
68952 2007-02-03  Jim Meyering  <jim@meyering.net>
68953
68954         Give tools a better chance to allocate space for very large buffers.
68955         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68956
68957         Make pwd and readlink work also when run with an unreadable parent dir
68958         on systems with openat support.
68959         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68960         provided getcwd function, even when we have openat support.
68961         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68962
68963 2007-02-02  Bruno Haible  <bruno@clisp.org>
68964
68965         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68966         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68967         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68968         portability problems if one of these functions is only used on specific
68969         platforms.
68970         Reported by Paul Eggert.
68971
68972 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68975         is causing more trouble than it's curing.
68976         * lib/regex_internal.h (__mempcpy): Remove.
68977         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68978         (and make the code a tad smaller to boot).
68979         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68980
68981 2007-02-02  Jim Meyering  <jim@meyering.net>
68982
68983         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68984         section, not in the Makefile.am: one.
68985
68986 2007-02-02  Eric Blake  <ebb9@byu.net>
68987
68988         * lib/strchrnul.c: Always include config.h first.
68989
68990         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68991         gnulib strstr is not necessary here.
68992
68993 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68994
68995         * m4/socklen.m4: Fix typo.
68996
68997 2007-02-02  Eric Blake  <ebb9@byu.net>
68998
68999         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69000         * modules/netinet_in (Makefile.am): Likewise.
69001
69002 2007-02-01  Bruno Haible  <bruno@clisp.org>
69003
69004         * lib/string_.h (GL_LINK_WARNING): New macro.
69005         (strcasecmp, strstr, strcasestr): If provided by the system,
69006         conditionally define as a macro that leads to a warning instead of to
69007         an error.
69008         (strncasecmp): Conditionally define as a macro that leads to a warning.
69009
69010 2007-02-01  Karl Berry  <karl@gnu.org>
69011
69012         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69013
69014 2007-02-01  Bruno Haible  <bruno@clisp.org>
69015
69016         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69017         renamings.
69018
69019 2007-02-01  Eric Blake  <ebb9@byu.net>
69020
69021         * modules/regex (Depends-on): Revert dependence on mempcpy.
69022         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69023         module's definition of mempcpy.
69024         Reported by Paul Eggert.
69025
69026 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69029         the symbol XYZ before redefining it.  This fixes a problem with
69030         programs that don't use XYZ, when compiled on systems that define
69031         XYZ to something else.
69032
69033 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69036         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69037         writeable to group or other and (2) is intended to have a special
69038         mode bit that is set or cleared.  In such a case, the directory
69039         should be neither group- nor other-writeable until the special
69040         mode bits are right.
69041
69042 2007-01-31  Eric Blake  <ebb9@byu.net>
69043
69044         * modules/mountlist (Depends-on): Add strstr.
69045
69046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69047         bug.
69048         * modules/string (Makefile.am): Remove redundant replacement.
69049         * modules/regex (Depends-on): Add mempcpy.
69050
69051 2007-01-31  Bruno Haible  <bruno@clisp.org>
69052
69053         New module description field 'Link'.
69054         * gnulib-tool (func_usage): Document --extract-link-directive.
69055         (sed_extract_prog): Recognize 'Link' directive.
69056         (func_get_link_directive): New function.
69057         (func_import): Show summary of link directives.
69058         Handle --extract-link-directive option.
69059         * modules/acl (Link): New section.
69060         * modules/clock-time (Link): New section.
69061         * modules/euidaccess (Link): New section.
69062         * modules/gettext (Link): New section.
69063         * modules/iconv (Link): New section.
69064         * modules/lock (Link): New section.
69065         * modules/nanosleep (Link): New section.
69066         * modules/readline (Link): New section.
69067
69068 2007-01-27  Bruno Haible  <bruno@clisp.org>
69069
69070         Enforce the use of gnulib modules for unportable <string.h> functions.
69071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69072         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69073         (gl_HEADER_STRING_H_BODY): Require it.
69074         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69075         the symbol XYZ to one that gives a link error.
69076         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69077         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69078         * modules/mempcpy (configure.ac): Likewise.
69079         * modules/memrchr (configure.ac): Likewise.
69080         * modules/stpcpy (configure.ac): Likewise.
69081         * modules/stpncpy (configure.ac): Likewise.
69082         * modules/strcase (configure.ac): Likewise.
69083         * modules/strcasestr (configure.ac): Likewise.
69084         * modules/strchrnul (configure.ac): Likewise.
69085         * modules/strdup (configure.ac): Likewise.
69086         * modules/strndup (configure.ac): Likewise.
69087         * modules/strnlen (configure.ac): Likewise.
69088         * modules/strpbrk (configure.ac): Likewise.
69089         * modules/strsep (configure.ac): Likewise.
69090         * modules/strstr (configure.ac): Likewise.
69091         * modules/strtok_r (configure.ac): Likewise.
69092
69093 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69094
69095         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69096
69097 2007-01-30  Jim Meyering  <jim@meyering.net>
69098
69099         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69100
69101 2007-01-29  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69104         * lib/execute.c: Likewise.
69105         * lib/pipe.c: Likewise.
69106         * lib/printf-args.h: Likewise.
69107         * lib/printf-args.c: Likewise.
69108         * lib/printf-parse.c: Likewise.
69109         * lib/vasnprintf.c: Likewise.
69110
69111 2007-01-29  Eric Blake  <ebb9@byu.net>
69112
69113         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69114         declaration.
69115
69116 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         * lib/strptime.h (strptime): Use 'restrict' for args where
69119         POSIX requires this.
69120         * lib/strptime.c (strptime): Likewise.
69121         Change license notice from LGPL to GPL, since gnulib-tool will
69122         change this as needed.
69123         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69124         defined.
69125         Include "strptime.h" first, to check interface.
69126         Do not #undef _LIBC and _NL_CURRENT.
69127         Do not include <stdlib.h>; no longer needed.
69128         Include "time_r.h" and declare ptime_locale_status
69129         only if _LIBC is not defined.
69130         (__P): Remove unused macro.
69131         (match_string): Bring back glibc version, but use it only if _LIBC
69132         is defined.
69133         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69134         Remove unnecessary assertion and abort() call.
69135         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69136         * m4/strptime.m4: Fix serial number comment.
69137         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69138         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69139         (Depends-on): Add time_r.
69140
69141 2007-01-29  Bruno Haible  <bruno@clisp.org>
69142
69143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69144         strptime.
69145         * modules/strptime (Depends-on): Add stdbool.
69146         * lib/strptime.h: Include <time.h> always. Add comments.
69147
69148 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69149
69150         * modules/strptime: New file.
69151         * lib/strptime.h: New file.
69152         * lib/strptime.c: New file.
69153         * m4/strptime.m4: New file.
69154
69155 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * MODULES.html.sh: New module mpsort.
69158         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69159
69160         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69161         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69163         All uses changed.
69164         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69165         All uses changed.
69166         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69167         to _Restrict_.
69168         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69169         the parameter matches the prototype.
69170
69171 2007-01-28  Jim Meyering  <jim@meyering.net>
69172
69173         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69174         sys/time.h here, reverting that part of the previous patch:
69175         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69176
69177 2007-01-28  Bruno Haible  <bruno@clisp.org>
69178
69179         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69180         value of $(SYS_TIME_H).
69181         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69182         remove it conditionally, too. [added by Jim Meyering]
69183         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69184         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69185         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69186         GETTIMEOFDAY_REPLACEMENT to 1.
69187
69188 2007-01-28  Bruno Haible  <bruno@clisp.org>
69189
69190         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69191         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69193         Set UNISTD_H instead of UNISTD_H2.
69194         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69195
69196 2007-01-28  Bruno Haible  <bruno@clisp.org>
69197
69198         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69199         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69200
69201 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69202
69203         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69204         (func_create_testdir): Ensure C locale for `grep' and `tr'
69205         character ranges.
69206         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69207         ACLOCAL_AMFLAGS parsing state machine.
69208
69209 2007-01-27  Bruno Haible  <bruno@clisp.org>
69210
69211         * modules/unistr/base: Update.
69212
69213 2007-01-27  Bruno Haible  <bruno@clisp.org>
69214
69215         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69216         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69217         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69218         modules/unistr/u32-mbtouc.
69219         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69220         * lib/unistr.h: Update.
69221         * lib/linebreak.c: Update.
69222         * modules/unistr/u32-mbtouc: Renamed from
69223         modules/unistr/u32-mbtouc-safe.
69224         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69225         * lib/unistr.h: Update.
69226         * lib/unistr/u32-to-u8.c: Update.
69227         * lib/unistr/u32-to-u16.c: Update.
69228
69229 2007-01-27  Bruno Haible  <bruno@clisp.org>
69230
69231         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69232         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69233         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69234         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69235         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69236         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69237         modules/unistr/u16-mbtouc.
69238         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69239         * lib/unistr.h: Update.
69240         * lib/linebreak.c: Update.
69241         * modules/linebreak: Update.
69242         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69243         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69244         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69245         * modules/unistr/u16-mbtouc: Renamed from
69246         modules/unistr/u16-mbtouc-safe.
69247         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69248         * lib/unistr.h: Update.
69249         * lib/unistr/u16-to-u8.c: Update.
69250         * modules/unistr/u16-to-u8: Update.
69251         * lib/unistr/u16-to-u32.c: Update.
69252         * modules/unistr/u16-to-u32: Update.
69253
69254 2007-01-27  Bruno Haible  <bruno@clisp.org>
69255
69256         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69257         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69258         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69259         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69260         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69261         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69262         modules/unistr/u8-mbtouc.
69263         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69264         * lib/unistr.h: Update.
69265         * lib/striconveh.c: Update.
69266         * modules/striconveh: Update.
69267         * lib/linebreak.c: Update.
69268         * modules/linebreak: Update.
69269         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69270         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69271         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69272         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69273         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69274         * lib/unistr.h: Update.
69275         * lib/striconveh.c: Update.
69276         * modules/striconveh: Update.
69277         * lib/unistr/u8-to-u16.c: Update.
69278         * modules/unistr/u8-to-u16: Update.
69279         * lib/unistr/u8-to-u32.c: Update.
69280         * modules/unistr/u8-to-u32: Update.
69281
69282 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69283
69284         Sync from Libtool.
69285         * lib/argz.c: Do not include strings.h nor memory.h, include
69286         string.h unconditionally.  Patch by Simon Josefsson.
69287
69288 2007-01-27  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69291         from gl_HEADER_STRING_H_BODY.
69292         (gl_HEADER_STRING_H_BODY): Require it.
69293         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69294         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69295         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69296         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69297         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69298         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69300         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69301         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69302         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69303         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69304         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69305         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69306         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69307         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69308
69309 2007-01-27  Bruno Haible  <bruno@clisp.org>
69310
69311         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69312         check_PROGRAMS into noinst_PROGRAMS.
69313         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69314         check_PROGRAMS in this case.
69315         (func_import): Set for_test to false.
69316         (func_create_testdir): Set for_test to true.
69317
69318 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69319             Bruno Haible  <bruno@clisp.org>
69320
69321         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69322         (Depends-on): Add string.
69323         (Includes): Use <string.h> instead of strcasestr.h.
69324         * modules/string (Makefile.am): Also substitute the value of
69325         REPLACE_STRCASESTR.
69326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69327         assume strcasestr is declared in <string.h> not <strings.h>. Also
69328         set REPLACE_STRCASESTR.
69329         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69330         REPLACE_STRCASESTR.
69331         * lib/strcasestr.h: Remove file.
69332         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69333         * lib/string_.h (strcasestr): New declaration.
69334
69335 2007-01-27  Bruno Haible  <bruno@clisp.org>
69336
69337         * lib/string_.h: Use 'extern'.
69338
69339 2007-01-27  Jim Meyering  <jim@meyering.net>
69340
69341         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69342         of set-but-not-used local, "q".
69343
69344         * lib/mempcpy.c: Include <config.h> before <string.h>.
69345         This fixes a compilation error on HP-UX, due to the system's
69346         "restrict"-using mempcpy prototype.
69347
69348 2007-01-26  Bruno Haible  <bruno@clisp.org>
69349
69350         Small optimization.
69351         * lib/javacomp.c: Include c-strstr.h.
69352          (is_envjavac_gcj): Use c_strstr instead of strstr.
69353         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69354
69355 2007-01-26  Bruno Haible  <bruno@clisp.org>
69356
69357         * MODULES.html.sh (Unicode string functions): Add the new modules.
69358
69359         * modules/uniconv/u32-strconv-to-locale: New file.
69360         * lib/uniconv/u32-strconv-to-locale.c: New file.
69361
69362         * modules/uniconv/u16-strconv-to-locale: New file.
69363         * lib/uniconv/u16-strconv-to-locale.c: New file.
69364
69365         * modules/uniconv/u8-strconv-to-locale: New file.
69366         * lib/uniconv/u8-strconv-to-locale.c: New file.
69367
69368         * modules/uniconv/u32-strconv-from-locale: New file.
69369         * lib/uniconv/u32-strconv-from-locale.c: New file.
69370
69371         * modules/uniconv/u16-strconv-from-locale: New file.
69372         * lib/uniconv/u16-strconv-from-locale.c: New file.
69373
69374         * modules/uniconv/u8-strconv-from-locale: New file.
69375         * lib/uniconv/u8-strconv-from-locale.c: New file.
69376
69377         * modules/uniconv/u32-strconv-to-enc: New file.
69378         * lib/uniconv/u32-strconv-to-enc.c: New file.
69379         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69380         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69381
69382         * modules/uniconv/u16-strconv-to-enc: New file.
69383         * lib/uniconv/u16-strconv-to-enc.c: New file.
69384         * lib/uniconv/u-strconv-to-enc.h: New file.
69385         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69386         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69387
69388         * modules/uniconv/u8-strconv-to-enc: New file.
69389         * lib/uniconv/u8-strconv-to-enc.c: New file.
69390         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69391         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69392
69393         * modules/uniconv/u32-strconv-from-enc: New file.
69394         * lib/uniconv/u32-strconv-from-enc.c: New file.
69395         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69396         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69397
69398         * modules/uniconv/u16-strconv-from-enc: New file.
69399         * lib/uniconv/u16-strconv-from-enc.c: New file.
69400         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69401         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69402
69403         * modules/uniconv/u8-strconv-from-enc: New file.
69404         * lib/uniconv/u8-strconv-from-enc.c: New file.
69405         * lib/uniconv/u-strconv-from-enc.h: New file.
69406         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69407         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69408
69409         * modules/uniconv/u32-conv-from-enc: New file.
69410         * lib/uniconv/u32-conv-from-enc.c: New file.
69411         * modules/uniconv/u32-conv-from-enc-tests: New file.
69412         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69413
69414         * modules/uniconv/u16-conv-from-enc: New file.
69415         * lib/uniconv/u16-conv-from-enc.c: New file.
69416         * lib/uniconv/u-conv-from-enc.h: New file.
69417         * modules/uniconv/u16-conv-from-enc-tests: New file.
69418         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69419
69420         * modules/uniconv/u8-conv-from-enc: New file.
69421         * lib/uniconv/u8-conv-from-enc.c: New file.
69422         * modules/uniconv/u8-conv-from-enc-tests: New file.
69423         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69424
69425         * modules/uniconv/base: New file.
69426         * lib/uniconv.h: New file.
69427
69428 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * doc/gnulib-tool.texi (Initial import): Update to match current
69431         behavior with strdup module.
69432         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69433         * lib/memmem.h: Remove; all uses removed.  This is now done
69434         by <string.h>.
69435         * lib/mempcpy.h: Likewise.
69436         * lib/memrchr.h: Likewise.
69437         * lib/stpcpy.h: Likewise.
69438         * lib/stpncpy.h: Likewise.
69439         * lib/strcase.h: Likewise.
69440         * lib/strchrnul.h: Likewise.
69441         * lib/strdup.h: Likewise.
69442         * lib/strndup.h: Likewise.
69443         * lib/strnlen.h: Likewise.
69444         * lib/strpbrk.h: Likewise.
69445         * lib/strsep.h: Likewise.
69446         * lib/strstr.h: Likewise.
69447         * lib/strtok_r.h: Likewise.
69448         * lib/string_.h: New file.
69449         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69450         Rely on <string.h> instead.
69451         * lib/canon-host.c: Likewise.
69452         * lib/chdir-long.c: Likewise.
69453         * lib/concatpath.c: Likewise.
69454         * lib/exclude.c: Likewise.
69455         * lib/fchdir.c: Likewise.
69456         * lib/getaddrinfo.c: Likewise.
69457         * lib/getcwd.c: Likewise.
69458         * lib/getsubopt.c: Likewise.
69459         * lib/glob.c: Likewise.
69460         * lib/hard-locale.c: Likewise.
69461         * lib/iconvme.c: Likewise.
69462         * lib/javacomp.c: Likewise.
69463         * lib/mempcpy.c: Likewise.
69464         * lib/memrchr.c: Likewise.
69465         * lib/regex_internal.h: Likewise.
69466         * lib/stpncpy.c: Likewise.
69467         * lib/strcasecmp.c: Likewise.
69468         * lib/strchrnul.c: Likewise.
69469         * lib/strdup.c: Likewise.
69470         * lib/striconv.c: Likewise.
69471         * lib/striconveh.c: Likewise.
69472         * lib/striconveha.c: Likewise.
69473         * lib/strncasecmp.c: Likewise.
69474         * lib/strndup.c: Likewise.
69475         * lib/strnlen.c: Likewise.
69476         * lib/strsep.c: Likewise.
69477         * lib/strstr.c: Likewise.
69478         * lib/strtok_r.c: Likewise.
69479         * lib/userspec.c: Likewise.
69480         * lib/w32spawn.h: Likewise.
69481         * lib/xstrndup.c: Likewise.
69482         * lib/mountlist.c (strstr): Remove decl.
69483         * m4/string_h.m4: New file.
69484         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69485         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69486         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69487         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69488         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69489         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69490         Set REPLACE_STRCASECMP if necessary.
69491         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69492         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69493         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69494         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69495         HAVE_DECL_STRDUP if necessary.
69496         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69497         since gl_FUNC_STRNDUP does that now.
69498         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69499         Check for decl here...
69500         (gl_PREREQ_STRNLEN): ... not here.
69501         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69502         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69503         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69504         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69505         necessary.
69506         * modules/string: New file.
69507         * modules/memmem (Files): Remove special-purpose include file.
69508         (Depends-on): Add string.
69509         (Include): Include <string.h>, not the removed file.
69510         * modules/mempcpy: Likewise.
69511         * modules/memrchr: Likewise.
69512         * modules/stpcpy: Likewise.
69513         * modules/stpncpy: Likewise.
69514         * modules/strcase: Likewise.
69515         * modules/strchrnul: Likewise.
69516         * modules/strdup: Likewise.
69517         * modules/strndup: Likewise.
69518         * modules/strnlen: Likewise.
69519         * modules/strpbrk: Likewise.
69520         * modules/strsep: Likewise.
69521         * modules/strstr: Likewise.
69522         * modules/strtok_r: Likewise.
69523         * tests/test-dirname.c: Don't include "strdup.h", since
69524         <string.h> now suffices.
69525         * tests/test-memmem.c: Don't include "memmem.h", since
69526         <string.h> now suffices.
69527
69528 2007-01-25  Bruno Haible  <bruno@clisp.org>
69529
69530         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69531         *resultp is 0.
69532
69533         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69534         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69535         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69536         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69537
69538         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69539         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69540         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69541         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69542         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69543         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69544
69545 2007-01-24  Bruno Haible  <bruno@clisp.org>
69546
69547         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69549         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69550         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69551         gl_FUNC_FTS_CORE.
69552         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69553         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69554         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69555         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69556         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69557         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69558         gl_FUNC_FCHOWNAT.
69559         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69560         gl_FUNC_STRFTIME.
69561         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69562         Reported by Ralf Wildenhues.
69563
69564 2007-01-24  Bruno Haible  <bruno@clisp.org>
69565
69566         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69567         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69568         gl_GETADDRINFO.
69569         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69570         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69571         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69572
69573 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69574
69575         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69576         Don't use 'exit'; just return from 'main'.
69577         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69578
69579         * lib/fnmatch_.h: Readjust white space and comments to match
69580         glibc, to avoid spurious diffs.
69581
69582 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69585         2004-12-01 change by Jakub Jelinek, since this code won't compile
69586         if !LIBC.  Problem reported by Bob Proulx.
69587
69588 2007-01-23  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/striconveh.c: Include c-strcaseeq.h.
69591         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69592         * modules/striconveh (Depends-on): Add c-strcaseeq.
69593
69594 2007-01-23  Bruno Haible  <bruno@clisp.org>
69595
69596         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69597
69598         * modules/c-strcaseeq: New file.
69599         * lib/c-strcaseeq.h: New file.
69600
69601         * modules/streq: New file.
69602         * lib/streq.h: New file.
69603
69604 2007-01-23  Bruno Haible  <bruno@clisp.org>
69605
69606         * modules/striconveha-tests: New file.
69607         * tests/test-striconveha.c: New file.
69608
69609         * lib/striconveha.h: Include <stdbool.h>.
69610         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69611         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69612         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69613         (mem_iconveha): New function.
69614         (str_iconveha_notranslit): Renamed from str_iconveha.
69615         (str_iconveha): New function.
69616         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69617         c-strcase.
69618
69619 2007-01-23  Bruno Haible  <bruno@clisp.org>
69620
69621         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69622         encodings without forgiving before trying any encoding with handler.
69623         (str_iconveha): Try all encodings without forgiving before trying any
69624         encoding with handler.
69625
69626 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         Import the following changes from libc.
69629
69630         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69631
69632         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69633
69634         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69635
69636         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69637         normal_bracket label.
69638
69639         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69640
69641         [BZ #361]
69642         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69643         to normal_bracket after fetching the next character.
69644
69645 2007-01-22  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69648         argument.
69649         * lib/striconveh.c (iconv_carefully_1): New function.
69650         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69651         argument.
69652         (str_cd_iconveh): Update.
69653         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69654         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69655         * tests/test-striconveh.c (MAGIC): New macro.
69656         (new_offsets): New function.
69657         (main): Test call with and without offsets.
69658
69659 2007-01-22  Bruno Haible  <bruno@clisp.org>
69660
69661         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69662         * modules/sys_select (Makefile.am): Likewise.
69663         * modules/sys_socket (Makefile.am): Likewise.
69664         * modules/sys_time (Makefile.am): Likewise.
69665
69666 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69667
69668         * modules/gettimeofday (License): Change from GPL to LGPL, since
69669         gettimeofday is a library function.
69670
69671 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69672
69673         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69674
69675 2007-01-21  Bruno Haible  <bruno@clisp.org>
69676
69677         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69678
69679 2007-01-21  Bruno Haible  <bruno@clisp.org>
69680
69681         * modules/striconveha: New file.
69682         * lib/striconveha.h: New file.
69683         * lib/striconveha.c: New file.
69684         * MODULES.html.sh (Internationalization functions): Add striconveha.
69685         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69686         string.
69687         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69688
69689 2007-01-21  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69692         * lib/striconveh.c (str_iconveh): Likewise.
69693
69694 2007-01-21  Bruno Haible  <bruno@clisp.org>
69695
69696         * lib/striconveh.h (mem_iconveh): New declaration.
69697         * lib/striconveh.c (mem_iconveh): New function.
69698         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69699
69700 2007-01-21  Bruno Haible  <bruno@clisp.org>
69701
69702         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69703
69704         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69705         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69706         original result buffer.
69707         (str_cd_iconveh): Update.
69708         * tests/test-striconveh.c (main): Update.
69709
69710         * lib/striconv.h (mem_cd_iconv): Change specification.
69711         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69712         result buffer.
69713         (str_cd_iconv): Update.
69714         * tests/test-striconv.c (main): Update.
69715
69716 2007-01-21  Bruno Haible  <bruno@clisp.org>
69717
69718         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69719
69720 2007-01-20  Jim Meyering  <jim@meyering.net>
69721
69722         * lib/userspec.c (parse_with_separator): If a user or group string
69723         starts with "+", skip the corresponding name-to-ID look-up, since
69724         such a look-up must fail: user and group names may not include "+".
69725
69726 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69729         since we now assume the sys_time module.
69730         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69731         check for sys/time.h; no longer needed.
69732         * modules/poll (Depends-on): Depend on sys_time.
69733
69734 2007-01-18  Bruno Haible  <bruno@clisp.org>
69735
69736         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69737         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69738
69739         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69740         gettimeofday.
69741
69742         * tests/test-gettimeofday.c: Include <time.h>.
69743         (dummy): Remove variable.
69744
69745         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69746         gl_HEADER_SYS_TIME_H.
69747         (gl_HEADER_SYS_TIME_H): New macro.
69748
69749         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69750         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69751         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69752         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69753         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69754         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69755         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69756         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69757         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69758         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69759         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69760
69761         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69762         last change; it caused a compilation error when cross-compiling to
69763         Cygwin.
69764
69765 2007-01-18  Jim Meyering  <jim@meyering.net>
69766
69767         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69768         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69769         than the race-prone "test -d sys || mkdir sys".
69770         (configure.ac): Use AC_PROG_MKDIR_P.
69771         * modules/sys_select: Likewise.
69772         * modules/sys_socket: Likewise.
69773         * modules/sys_time: Likewise.
69774
69775 2007-01-18  Eric Blake  <ebb9@byu.net>
69776
69777         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69778         replace gettimeofday.
69779         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69780         name, to avoid infinite recursion.
69781
69782 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69785         module sys_time.
69786         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69787         assume timespec.h defines struct timeval.
69788         * lib/settime.c: Likewise.
69789         * lib/utimens.c: Likewise.
69790         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69791         since we now assume the gettimeofday module.
69792         * lib/tempname.c (__gen_tempname): Likewise.
69793         * lib/gettimeofday.h: Remove.
69794         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69795         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69796         Include <time.h>, for 'time()'.
69797         (localtime_buffer_addr): Also use this workaround if
69798         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69799         to simplify the uses.  All uses changed.
69800         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69801         that #undef is inside {}, and 'const' follows type name consistently.
69802         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69803         (gettimeofday): Do not use the maximum possible value for
69804         tv->tv_usec, since that might break usages other than ls.c.
69805         Instead, we'll leave ls.c alone.  This undoes today's patch
69806         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69807         we've never observed the problem but might as well keep the
69808         canary.
69809         * lib/nanosleep.c: Include timespec.h first, for interface check.
69810         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69811         now assume the sys_time module.
69812         * lib/tempname.c: Likewise.
69813         * lib/timespec.h: Likewise.
69814         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69815         needed.
69816         * lib/strftime.c: Likewise.
69817         * lib/timespec.h: Likewise.
69818         * lib/posixtm.c: Include posixtm.h first, for interface check.
69819         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69820         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69821         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69822         * lib/sys_time_.h: New file.
69823         * lib/timespec.h (struct timespec): Use long int, not long.
69824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69825         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69826         Remove obsolescent call to AC_HEADER_TIME.
69827         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69829         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69830         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69831         Likewise.
69832         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69833         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69835         into the sys_time module.  Check for gettimeofday just once.
69836         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69837         for gettimeofday signature to just check the signature.  Merely
69838         compile it, since linking doesn't test signature.  Improve test for
69839         whether gettimeofday.o is actually needed.
69840         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69841         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69842         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69843         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69844         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69845         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69846         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69847         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69848         than worrying about sys/time.h.
69849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69850         Don't bother worrying about TIME_WITH_SYS_TIME.
69851         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69852         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69853         * m4/sys_time_h.m4: New file.
69854         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69855         Don't include sys/time.h.  Return from main rather than exiting.
69856         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69857         all uses changed.
69858         * modules/gethrxtime (Depends-on): Add sys_time.
69859         * modules/gettime (Depends-on): Likewise.
69860         * modules/gettimeofday (Depends-on): Likewise.
69861         * modules/nanosleep (Depends-on): Likewise.
69862         * modules/settime (Depends-on): Likewise.
69863         * modules/tempname (Depends-on): Likewise.
69864         * modules/utimens (Depends-on): Likewise.
69865         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69866         (Include): Change back to <sys/time.h>.
69867         (Maintainer): Add self.
69868         * modules/sys_time: New file.
69869         * modules/tempname (Depends-on): Add gettimeofday.
69870         * tests/test-gettimeofday.c: Include <sys/time.h>
69871         rather than gettimeofday.h.
69872
69873 2007-01-17  Bruno Haible  <bruno@clisp.org>
69874
69875         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69876         the license default to GPL.
69877         (func_create_testdir): Don't complain if a module is LGPL and its
69878         tests module depends on GPLed modules.
69879
69880 2007-01-17  Bruno Haible  <bruno@clisp.org>
69881
69882         * lib/gettimeofday.c (gettimeofday): Add code for the case
69883         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69884         maximum possible value for tv->tv_usec, rather than the minimum one.
69885
69886 2005-10-08  Martin Lambers  <marlam@marlam.de>
69887 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69888 2007-01-16  Bruno Haible  <bruno@clisp.org>
69889
69890         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69891         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69892         gl_FUNC_GETTIMEOFDAY.
69893         (Include): Add gettimeofday.h.
69894         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69895         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69896         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69897         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69898         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69899         * lib/gettimeofday.h: New file.
69900         * lib/gettimeofday.c: Include <sys/timeb.h>.
69901         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69902         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69903         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69904         fall back on time().
69905
69906         * tests/test-gettimeofday.c: New file.
69907         * modules/gettimeofday-tests: New file.
69908
69909 2007-01-16  Eric Blake  <ebb9@byu.net>
69910
69911         * modules/fnmatch (Depends-on): Depend on wchar.
69912         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69913         * m4/fnmatch.m4: Likewise.
69914         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69915         * m4/mbchar.m4: Likewise.
69916         * modules/mbswidth (Depends-on): Depend on wchar.
69917         * lib/mbswidth.c: Assume <wchar.h>.
69918         * m4/mbswidth.m4: Likewise.
69919         * modules/quotearg (Depends-on): Depend on wchar.
69920         * lib/quotearg.c: Assume <wchar.h>.
69921         * m4/quotearg.m4: Likewise.
69922         * modules/regex (Depends-on): Depend on wchar.
69923         * lib/regex_internal.h: Assume <wchar.h>.
69924         * m4/regex.m4: Likewise.
69925         * modules/stdint (Depends-on): Depend on wchar.
69926         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69927         * m4/stdint.m4: Likewise.
69928         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69929         * modules/strftime (Depends-on): Depend on wchar.
69930         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69931         * modules/strtol (Depends-on): Depend on wchar.
69932         * lib/strtol.c: Assume <wchar.h>.
69933         * modules/wcwidth (Depends-on): Depend on wchar.
69934         * lib/wcwidth.h: Assume <wchar.h>.
69935         * m4/wcwidth.m4: Likewise.
69936
69937 2007-01-16  Bruno Haible  <bruno@clisp.org>
69938
69939         * modules/csharpexec-script: New, created from...
69940         * modules/csharpexec: ... this.
69941
69942 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69943
69944         * modules/javaexec-script: New, created from...
69945         * modules/javaexec: ... this.
69946
69947 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69948
69949         * modules/poll (Dependencies): Add sys_select.
69950
69951 2007-01-15  Jim Meyering  <jim@meyering.net>
69952
69953         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69954         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69955         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69956         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69957
69958 2007-01-15  Bruno Haible  <bruno@clisp.org>
69959
69960         * modules/striconveh: New file.
69961         * lib/striconveh.h: New file.
69962         * lib/striconveh.c: New file.
69963         * MODULES.html.sh (Internationalization functions): Add striconveh.
69964
69965         * modules/striconveh-tests: New file.
69966         * tests/test-striconveh.c: New file.
69967
69968 2007-01-15  Bruno Haible  <bruno@clisp.org>
69969
69970         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69971         not from GNU libiconv or GNU libc.
69972
69973 2007-01-15  Bruno Haible  <bruno@clisp.org>
69974
69975         * doc/gnulib-intro.texi (Copyright): Explain the different license
69976         terms for module descriptions, autoconf macros, tests, documentation.
69977
69978 2007-01-14  Bruno Haible  <bruno@clisp.org>
69979
69980         * modules/striconv-tests: New file.
69981         * tests/test-striconv.c: New file.
69982
69983 2007-01-14  Bruno Haible  <bruno@clisp.org>
69984
69985         * modules/iconv-tests: New file.
69986         * tests/test-iconv.c: New file.
69987
69988 2007-01-14  Bruno Haible  <bruno@clisp.org>
69989
69990         * gnulib-tool (func_get_license): For test modules, use the license of
69991         the main module.
69992
69993 2007-01-14  Bruno Haible  <bruno@clisp.org>
69994
69995         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69996         if iconv is found to exist.
69997
69998 2007-01-14  Bruno Haible  <bruno@clisp.org>
69999
70000         * modules/c-ctype-tests: New file.
70001         * tests/test-c-ctype.c: New file.
70002
70003 2007-01-14  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/binary-io-tests: New file.
70006         * tests/test-binary-io.sh: New file.
70007         * tests/test-binary-io.c: New file.
70008
70009 2007-01-14  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/array-oset-tests: New file.
70012         * tests/test-array_oset.c: New file.
70013
70014 2007-01-14  Bruno Haible  <bruno@clisp.org>
70015
70016         * modules/array-list-tests: New file.
70017         * tests/test-array_list.c: New file.
70018
70019 2007-01-14  Bruno Haible  <bruno@clisp.org>
70020
70021         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70022         and make.
70023         Reported by Simon Josefsson in
70024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70025
70026 2007-01-14  Bruno Haible  <bruno@clisp.org>
70027
70028         * modules/allocsa-tests: New file.
70029         * tests/test-allocsa.c: New file.
70030
70031 2007-01-14  Bruno Haible  <bruno@clisp.org>
70032
70033         * modules/fchdir (Depends-on): Add absolute-header.
70034         * modules/unistd (Depends-on): Likewise.
70035
70036 2006-12-30  Bruno Haible  <bruno@clisp.org>
70037
70038         * modules/fchdir: New file.
70039         * modules/unistd (Files): Add lib/unistd_.h.
70040         (Makefile.am): Generate unistd.h from unistd_.h.
70041         * lib/fchdir.c: New file.
70042         * lib/dirent_.h: New file.
70043         * lib/unistd_.h: New file.
70044         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70045         * m4/fchdir.m4: New file.
70046         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70047         (gl_HEADER_UNISTD): Invoke it.
70048         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70049         function.
70050         * lib/backupfile.c (opendir, closedir): Undefine.
70051         * lib/chown.c (open, close): Undefine.
70052         * lib/clean-temp.c (open, close): Undefine.
70053         * lib/copy-file.c (open, close): Undefine.
70054         * lib/execute.c (open, close): Undefine.
70055         * lib/fsusage.c (open, close): Undefine.
70056         * lib/gc-gnulib.c (open, close): Undefine.
70057         * lib/getcwd.c (opendir, closedir): Undefine.
70058         * lib/glob.c (opendir, closedir): Undefine.
70059         * lib/javacomp.c (open, close): Undefine.
70060         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70061         * lib/openat-proc.c (open, close): Undefine.
70062         * lib/pagealign_alloc.c (open, close): Undefine.
70063         * lib/pipe.c (open, close): Undefine.
70064         * lib/progreloc.c (open, close): Undefine.
70065         * lib/savedir.c (opendir, closedir): Undefine.
70066         * lib/utime.c (open, close): Undefine.
70067         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70068
70069 2007-01-10  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70072
70073 2007-01-12  Eric Blake  <ebb9@byu.net>
70074
70075         Provide a robust <wchar.h>.  Further simplifications are now
70076         possible in other modules, but not included here.
70077         * modules/wchar: New module.
70078         * m4/wchar.m4: New file.
70079         * lib/wchar_.h: Likewise.
70080         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70081         of the new module.
70082         * MODULES.html.sh (Extended multibyte and wide character utilities):
70083         New section.
70084
70085 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70088         to a reasonable default for memory allocation.
70089         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70090         file system that reports garbage st_size values for symlinks.
70091         Problem reported by Liyang Hu.
70092
70093 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70094
70095         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70096         Emacs .#* auto-save files).
70097
70098 2007-01-11  Bruno Haible  <bruno@clisp.org>
70099
70100         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70101         directory.
70102
70103 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         Use @...@ consistently in lib/wctype_.h.
70106         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70107         on it being set to 1 or 0.
70108         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70109         go back to AC_SUBSTing it.
70110         * modules/wctype (Makefile.am): Undo previous change.
70111
70112 2007-01-10  Eric Blake  <ebb9@byu.net>
70113
70114         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70115         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70116         * modules/wctype (Makefile.am): Likewise.
70117         Reported by Chris McGuire.
70118
70119 2007-01-10  Jim Meyering  <jim@meyering.net>
70120
70121         fts.c: a small readability/maintainability improvement
70122         * lib/fts.c (fts_read): Make this code slightly more readable and
70123         maintainable by hoisting the "sp->fts_cur = p" assignments to
70124         immediately follow the statements that set P.  Derived from
70125         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70126
70127 2007-01-10  Eric Blake  <ebb9@byu.net>
70128
70129         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70130         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70132         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70133         Reported by Chris McGuire.
70134
70135 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70136
70137         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70138         in sed script.
70139
70140 2007-01-09  Bruno Haible  <bruno@clisp.org>
70141
70142         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70143         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70144         variables.
70145         (func_module): Use them.
70146
70147 2007-01-09  Bruno Haible  <bruno@clisp.org>
70148
70149         * modules/unistr/base: New file.
70150         * lib/unistr.h: New file.
70151
70152         * modules/unistr/u8-to-u16: New file.
70153         * lib/unistr/u8-to-u16.c: New file.
70154
70155         * modules/unistr/u8-to-u32: New file.
70156         * lib/unistr/u8-to-u32.c: New file.
70157
70158         * modules/unistr/u16-to-u8: New file.
70159         * lib/unistr/u16-to-u8.c: New file.
70160
70161         * modules/unistr/u16-to-u32: New file.
70162         * lib/unistr/u16-to-u32.c: New file.
70163
70164         * modules/unistr/u32-to-u8: New file.
70165         * lib/unistr/u32-to-u8.c: New file.
70166
70167         * modules/unistr/u32-to-u16: New file.
70168         * lib/unistr/u32-to-u16.c: New file.
70169
70170         * modules/unistr/u8-check: New file.
70171         * modules/unistr/u16-check: New file.
70172         * modules/unistr/u32-check: New file.
70173         * lib/unistr/u8-check.c: New file.
70174         * lib/unistr/u16-check.c: New file.
70175         * lib/unistr/u32-check.c: New file.
70176
70177         * modules/unistr/u8-chr: New file.
70178         * modules/unistr/u16-chr: New file.
70179         * modules/unistr/u32-chr: New file.
70180         * lib/unistr/u8-chr.c: New file.
70181         * lib/unistr/u16-chr.c: New file.
70182         * lib/unistr/u32-chr.c: New file.
70183
70184         * modules/unistr/u8-cmp: New file.
70185         * modules/unistr/u16-cmp: New file.
70186         * modules/unistr/u32-cmp: New file.
70187         * lib/unistr/u8-cmp.c: New file.
70188         * lib/unistr/u16-cmp.c: New file.
70189         * lib/unistr/u32-cmp.c: New file.
70190
70191         * modules/unistr/u8-cpy: New file.
70192         * modules/unistr/u16-cpy: New file.
70193         * modules/unistr/u32-cpy: New file.
70194         * lib/unistr/u8-cpy.c: New file.
70195         * lib/unistr/u16-cpy.c: New file.
70196         * lib/unistr/u32-cpy.c: New file.
70197         * lib/unistr/u-cpy.h: New file.
70198
70199         * modules/unistr/u8-cpy-alloc: New file.
70200         * modules/unistr/u16-cpy-alloc: New file.
70201         * modules/unistr/u32-cpy-alloc: New file.
70202         * lib/unistr/u8-cpy-alloc.c: New file.
70203         * lib/unistr/u16-cpy-alloc.c: New file.
70204         * lib/unistr/u32-cpy-alloc.c: New file.
70205         * lib/unistr/u-cpy-alloc.h: New file.
70206
70207         * modules/unistr/u8-endswith: New file.
70208         * modules/unistr/u16-endswith: New file.
70209         * modules/unistr/u32-endswith: New file.
70210         * lib/unistr/u8-endswith.c: New file.
70211         * lib/unistr/u16-endswith.c: New file.
70212         * lib/unistr/u32-endswith.c: New file.
70213         * lib/unistr/u-endswith.h: New file.
70214
70215         * modules/unistr/u8-mblen: New file.
70216         * modules/unistr/u16-mblen: New file.
70217         * modules/unistr/u32-mblen: New file.
70218         * lib/unistr/u8-mblen.c: New file.
70219         * lib/unistr/u16-mblen.c: New file.
70220         * lib/unistr/u32-mblen.c: New file.
70221
70222         * modules/unistr/u8-mbtouc: New file.
70223         * modules/unistr/u16-mbtouc: New file.
70224         * modules/unistr/u32-mbtouc: New file.
70225         * lib/unistr/u8-mbtouc.c: New file.
70226         * lib/unistr/u16-mbtouc.c: New file.
70227         * lib/unistr/u32-mbtouc.c: New file.
70228
70229         * modules/unistr/u8-mbtouc-safe: New file.
70230         * modules/unistr/u16-mbtouc-safe: New file.
70231         * modules/unistr/u32-mbtouc-safe: New file.
70232         * lib/unistr/u8-mbtouc-safe.c: New file.
70233         * lib/unistr/u16-mbtouc-safe.c: New file.
70234         * lib/unistr/u32-mbtouc-safe.c: New file.
70235
70236         * modules/unistr/u8-move: New file.
70237         * modules/unistr/u16-move: New file.
70238         * modules/unistr/u32-move: New file.
70239         * lib/unistr/u8-move.c: New file.
70240         * lib/unistr/u16-move.c: New file.
70241         * lib/unistr/u32-move.c: New file.
70242         * lib/unistr/u-move.h: New file.
70243
70244         * modules/unistr/u8-next: New file.
70245         * modules/unistr/u16-next: New file.
70246         * modules/unistr/u32-next: New file.
70247         * lib/unistr/u8-next.c: New file.
70248         * lib/unistr/u16-next.c: New file.
70249         * lib/unistr/u32-next.c: New file.
70250
70251         * modules/unistr/u8-prev: New file.
70252         * modules/unistr/u16-prev: New file.
70253         * modules/unistr/u32-prev: New file.
70254         * lib/unistr/u8-prev.c: New file.
70255         * lib/unistr/u16-prev.c: New file.
70256         * lib/unistr/u32-prev.c: New file.
70257
70258         * modules/unistr/u8-set: New file.
70259         * modules/unistr/u16-set: New file.
70260         * modules/unistr/u32-set: New file.
70261         * lib/unistr/u8-set.c: New file.
70262         * lib/unistr/u16-set.c: New file.
70263         * lib/unistr/u32-set.c: New file.
70264         * lib/unistr/u-set.h: New file.
70265
70266         * modules/unistr/u8-startswith: New file.
70267         * modules/unistr/u16-startswith: New file.
70268         * modules/unistr/u32-startswith: New file.
70269         * lib/unistr/u8-startswith.c: New file.
70270         * lib/unistr/u16-startswith.c: New file.
70271         * lib/unistr/u32-startswith.c: New file.
70272         * lib/unistr/u-startswith.h: New file.
70273
70274         * modules/unistr/u8-stpcpy: New file.
70275         * modules/unistr/u16-stpcpy: New file.
70276         * modules/unistr/u32-stpcpy: New file.
70277         * lib/unistr/u8-stpcpy.c: New file.
70278         * lib/unistr/u16-stpcpy.c: New file.
70279         * lib/unistr/u32-stpcpy.c: New file.
70280         * lib/unistr/u-stpcpy.h: New file.
70281
70282         * modules/unistr/u8-stpncpy: New file.
70283         * modules/unistr/u16-stpncpy: New file.
70284         * modules/unistr/u32-stpncpy: New file.
70285         * lib/unistr/u8-stpncpy.c: New file.
70286         * lib/unistr/u16-stpncpy.c: New file.
70287         * lib/unistr/u32-stpncpy.c: New file.
70288         * lib/unistr/u-stpncpy.h: New file.
70289
70290         * modules/unistr/u8-strcat: New file.
70291         * modules/unistr/u16-strcat: New file.
70292         * modules/unistr/u32-strcat: New file.
70293         * lib/unistr/u8-strcat.c: New file.
70294         * lib/unistr/u16-strcat.c: New file.
70295         * lib/unistr/u32-strcat.c: New file.
70296         * lib/unistr/u-strcat.h: New file.
70297
70298         * modules/unistr/u8-strchr: New file.
70299         * modules/unistr/u16-strchr: New file.
70300         * modules/unistr/u32-strchr: New file.
70301         * lib/unistr/u8-strchr.c: New file.
70302         * lib/unistr/u16-strchr.c: New file.
70303         * lib/unistr/u32-strchr.c: New file.
70304
70305         * modules/unistr/u8-strcmp: New file.
70306         * modules/unistr/u16-strcmp: New file.
70307         * modules/unistr/u32-strcmp: New file.
70308         * lib/unistr/u8-strcmp.c: New file.
70309         * lib/unistr/u16-strcmp.c: New file.
70310         * lib/unistr/u32-strcmp.c: New file.
70311
70312         * modules/unistr/u8-strcpy: New file.
70313         * modules/unistr/u16-strcpy: New file.
70314         * modules/unistr/u32-strcpy: New file.
70315         * lib/unistr/u8-strcpy.c: New file.
70316         * lib/unistr/u16-strcpy.c: New file.
70317         * lib/unistr/u32-strcpy.c: New file.
70318         * lib/unistr/u-strcpy.h: New file.
70319
70320         * modules/unistr/u8-strcspn: New file.
70321         * modules/unistr/u16-strcspn: New file.
70322         * modules/unistr/u32-strcspn: New file.
70323         * lib/unistr/u8-strcspn.c: New file.
70324         * lib/unistr/u16-strcspn.c: New file.
70325         * lib/unistr/u32-strcspn.c: New file.
70326         * lib/unistr/u-strcspn.h: New file.
70327
70328         * modules/unistr/u8-strdup: New file.
70329         * modules/unistr/u16-strdup: New file.
70330         * modules/unistr/u32-strdup: New file.
70331         * lib/unistr/u8-strdup.c: New file.
70332         * lib/unistr/u16-strdup.c: New file.
70333         * lib/unistr/u32-strdup.c: New file.
70334         * lib/unistr/u-strdup.h: New file.
70335
70336         * modules/unistr/u8-strlen: New file.
70337         * modules/unistr/u16-strlen: New file.
70338         * modules/unistr/u32-strlen: New file.
70339         * lib/unistr/u8-strlen.c: New file.
70340         * lib/unistr/u16-strlen.c: New file.
70341         * lib/unistr/u32-strlen.c: New file.
70342         * lib/unistr/u-strlen.h: New file.
70343
70344         * modules/unistr/u8-strmblen: New file.
70345         * modules/unistr/u16-strmblen: New file.
70346         * modules/unistr/u32-strmblen: New file.
70347         * lib/unistr/u8-strmblen.c: New file.
70348         * lib/unistr/u16-strmblen.c: New file.
70349         * lib/unistr/u32-strmblen.c: New file.
70350
70351         * modules/unistr/u8-strmbtouc: New file.
70352         * modules/unistr/u16-strmbtouc: New file.
70353         * modules/unistr/u32-strmbtouc: New file.
70354         * lib/unistr/u8-strmbtouc.c: New file.
70355         * lib/unistr/u16-strmbtouc.c: New file.
70356         * lib/unistr/u32-strmbtouc.c: New file.
70357
70358         * modules/unistr/u8-strncat: New file.
70359         * modules/unistr/u16-strncat: New file.
70360         * modules/unistr/u32-strncat: New file.
70361         * lib/unistr/u8-strncat.c: New file.
70362         * lib/unistr/u16-strncat.c: New file.
70363         * lib/unistr/u32-strncat.c: New file.
70364         * lib/unistr/u-strncat.h: New file.
70365
70366         * modules/unistr/u8-strncmp: New file.
70367         * modules/unistr/u16-strncmp: New file.
70368         * modules/unistr/u32-strncmp: New file.
70369         * lib/unistr/u8-strncmp.c: New file.
70370         * lib/unistr/u16-strncmp.c: New file.
70371         * lib/unistr/u32-strncmp.c: New file.
70372
70373         * modules/unistr/u8-strncpy: New file.
70374         * modules/unistr/u16-strncpy: New file.
70375         * modules/unistr/u32-strncpy: New file.
70376         * lib/unistr/u8-strncpy.c: New file.
70377         * lib/unistr/u16-strncpy.c: New file.
70378         * lib/unistr/u32-strncpy.c: New file.
70379         * lib/unistr/u-strncpy.h: New file.
70380
70381         * modules/unistr/u8-strnlen: New file.
70382         * modules/unistr/u16-strnlen: New file.
70383         * modules/unistr/u32-strnlen: New file.
70384         * lib/unistr/u8-strnlen.c: New file.
70385         * lib/unistr/u16-strnlen.c: New file.
70386         * lib/unistr/u32-strnlen.c: New file.
70387         * lib/unistr/u-strnlen.h: New file.
70388
70389         * modules/unistr/u8-strpbrk: New file.
70390         * modules/unistr/u16-strpbrk: New file.
70391         * modules/unistr/u32-strpbrk: New file.
70392         * lib/unistr/u8-strpbrk.c: New file.
70393         * lib/unistr/u16-strpbrk.c: New file.
70394         * lib/unistr/u32-strpbrk.c: New file.
70395         * lib/unistr/u-strpbrk.h: New file.
70396
70397         * modules/unistr/u8-strrchr: New file.
70398         * modules/unistr/u16-strrchr: New file.
70399         * modules/unistr/u32-strrchr: New file.
70400         * lib/unistr/u8-strrchr.c: New file.
70401         * lib/unistr/u16-strrchr.c: New file.
70402         * lib/unistr/u32-strrchr.c: New file.
70403
70404         * modules/unistr/u8-strspn: New file.
70405         * modules/unistr/u16-strspn: New file.
70406         * modules/unistr/u32-strspn: New file.
70407         * lib/unistr/u8-strspn.c: New file.
70408         * lib/unistr/u16-strspn.c: New file.
70409         * lib/unistr/u32-strspn.c: New file.
70410         * lib/unistr/u-strspn.h: New file.
70411
70412         * modules/unistr/u8-strstr: New file.
70413         * modules/unistr/u16-strstr: New file.
70414         * modules/unistr/u32-strstr: New file.
70415         * lib/unistr/u8-strstr.c: New file.
70416         * lib/unistr/u16-strstr.c: New file.
70417         * lib/unistr/u32-strstr.c: New file.
70418         * lib/unistr/u-strstr.h: New file.
70419
70420         * modules/unistr/u8-strtok: New file.
70421         * modules/unistr/u16-strtok: New file.
70422         * modules/unistr/u32-strtok: New file.
70423         * lib/unistr/u8-strtok.c: New file.
70424         * lib/unistr/u16-strtok.c: New file.
70425         * lib/unistr/u32-strtok.c: New file.
70426         * lib/unistr/u-strtok.h: New file.
70427
70428         * modules/unistr/u8-uctomb: New file.
70429         * modules/unistr/u16-uctomb: New file.
70430         * modules/unistr/u32-uctomb: New file.
70431         * lib/unistr/u8-uctomb.c: New file.
70432         * lib/unistr/u16-uctomb.c: New file.
70433         * lib/unistr/u32-uctomb.c: New file.
70434
70435         * MODULES.html.sh (Unicode string functions): Add the new modules.
70436
70437 2007-01-08  Bruno Haible  <bruno@clisp.org>
70438
70439         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70440         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70441         subdirectories.
70442
70443 2007-01-08  Karl Berry  <karl@gnu.org>
70444
70445         * doc/error.texi: mention that main() fns must set program_name
70446         when progname is used.
70447
70448 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70451         WCTYPE_H is empty, for the benefit of builds from non-distclean
70452         directories.  Problem reported by Eric Blake in
70453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70454
70455 2007-01-08  Bruno Haible  <bruno@clisp.org>
70456
70457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70458         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70459         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70460         PROVIDE_CANONICALIZE_FILENAME_MODE.
70461         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70462
70463 2007-01-08  Bruno Haible  <bruno@clisp.org>
70464
70465         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70466         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70467         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70468         * lib/fts.c: Likewise.
70469         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70470
70471 2006-12-25  Bruno Haible  <bruno@clisp.org>
70472
70473         * modules/utf8-ucs4-safe: New file.
70474         * lib/utf8-ucs4-safe.h: New file.
70475         * lib/unistr/utf8-ucs4-safe.c: New file.
70476
70477         * modules/utf16-ucs4-safe: New file.
70478         * lib/utf16-ucs4-safe.h: New file.
70479         * lib/unistr/utf16-ucs4-safe.c: New file.
70480
70481         * MODULES.html.sh (Unicode string functions): Add the new modules.
70482
70483 2007-01-08  Bruno Haible  <bruno@clisp.org>
70484
70485         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70486         (Depends-on): Add unitypes.
70487         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70488         (u8_mbtouc_aux): Move out to separate file.
70489         (u8_mbtouc): Use ucs4_t, uint8_t types.
70490         * lib/unistr/utf8-ucs4.c: New file.
70491
70492         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70493         (Depends-on): Add unitypes.
70494         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70495         (u16_mbtouc_aux): Move out to separate file.
70496         (u16_mbtouc): Use ucs4_t, uint16_t types.
70497         * lib/unistr/utf16-ucs4.c: New file.
70498
70499         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70500         (Depends-on): Add unitypes.
70501         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70502         (u8_uctomb_aux): Move out to separate file.
70503         (u8_uctomb): Use ucs4_t, uint8_t types.
70504         * lib/unistr/ucs4-utf8.c: New file.
70505
70506         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70507         (Depends-on): Add unitypes.
70508         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70509         (u16_uctomb_aux): Move out to separate file.
70510         (u16_uctomb): Use ucs4_t, uint16_t types.
70511         * lib/unistr/ucs4-utf16.c: New file.
70512
70513 2006-12-25  Bruno Haible  <bruno@clisp.org>
70514
70515         * modules/unitypes: New file.
70516         * lib/unitypes.h: New file.
70517         * MODULES.html.sh (func_all_modules): New section "Unicode string
70518         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70519         this section. Add unitypes.
70520
70521 2007-01-08  Bruno Haible  <bruno@clisp.org>
70522
70523         Avoid variable names that conflict with those from libtool.
70524         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70525         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70526         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70527         library_names_spec to acl_library_names_spec, hardcode_* to
70528         acl_hardcode_*.
70529         Reported by Ralf Wildenhues.
70530
70531 2007-01-08  Bruno Haible  <bruno@clisp.org>
70532
70533         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70534         definition.
70535         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70536         definition.
70537         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70538         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70539         definition.
70540         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70541         definition.
70542         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70543         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70544         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70545         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70546         definition.
70547         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70548         definition.
70549         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70550         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70551         GC_USE_<algorithm>.
70552         * lib/gc-libgcrypt.c: Likewise.
70553         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70554         * modules/gc-arctwo (configure.ac): Likewise.
70555         * modules/gc-des (configure.ac): Likewise.
70556         * modules/gc-hmac-md5 (configure.ac): Likewise.
70557         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70558         * modules/gc-md2 (configure.ac): Likewise.
70559         * modules/gc-md4 (configure.ac): Likewise.
70560         * modules/gc-md5 (configure.ac): Likewise.
70561         * modules/gc-random (configure.ac): Likewise.
70562         * modules/gc-rijndael (configure.ac): Likewise.
70563         * modules/gc-sha1 (configure.ac): Likewise.
70564
70565 2007-01-08  Bruno Haible  <bruno@clisp.org>
70566
70567         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70568         macro definition.
70569         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70570         definition.
70571         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70572         definition.
70573         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70574         * modules/fcntl-safer (configure.ac): Likewise.
70575         * modules/fopen-safer (configure.ac): Likewise.
70576         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70577         GNULIB_FWRITEERROR macro definition.
70578
70579 2007-01-08  Bruno Haible  <bruno@clisp.org>
70580
70581         * m4/gnulib-common.m4: New file.
70582         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70583         (func_get_filelist): Add m4/gnulib-common.m4.
70584
70585 2007-01-08  Bruno Haible  <bruno@clisp.org>
70586
70587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70588         command.
70589
70590 2007-01-08  Jim Meyering  <jim@meyering.net>
70591
70592         Use a more robust test for a "can't happen" condition.
70593         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70594         narrowed the st_size value.  Presuming the "can't happen" condition
70595         is true, that narrowing could conceivably convert an invalid st_size
70596         value into a valid one.  Instead, use a change based on Matthew
70597         Woehlke's original patch.
70598
70599         Slight readability improvement: use an assert-like macro
70600         in place of literal "abort ()" uses.
70601         * lib/fts.c (fts_assert): Define.
70602         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70603         Use this macro instead of a bare 'abort'.
70604
70605 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70606
70607         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70608         simply work around them.
70609         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70610         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70611         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70612         declaring.
70613         Don't bother to define as macros, since the standard doesn't require it.
70614         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70615         longer worry about IRIX 5.3.
70616         (HAVE_WCTYPE_CTMP_BUG): Remove.
70617
70618 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70619
70620         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70621         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70622         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70623         Problems reported by Georg Schwarz for IRIX 5.3.
70624
70625         * gnulib-tool (autoconf_minversion): Take the maximum version number
70626         found, not the minimum.  Problem reported by James Youngman.
70627
70628 2007-01-03  Karl Berry  <karl@gnu.org>
70629
70630         * doc/error.texi: new file, explaining interaction with progname.
70631         * doc/gnulib.texi: include it.  Update copyright.
70632
70633 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70634
70635         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70636         AC_CANONICAL_HOST, to improve autobuild outputs.
70637
70638 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70639             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70640
70641         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70642         sockets, server sockets, and other file descriptors.  Count errors
70643         to compute the return value.  Reorder the code a bit to be easier
70644         to follow.  Don't set event bits that were not requested (except
70645         POLLERR and POLLHUP).
70646
70647 2007-01-01  Bruno Haible  <bruno@clisp.org>
70648
70649         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70650
70651 2007-01-03  Jim Meyering  <jim@meyering.net>
70652
70653         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70654
70655 2007-01-02  Bruno Haible  <bruno@clisp.org>
70656
70657         * modules/settime (Include): Require timespec.h.
70658         * modules/nanosleep (Include): Likewise.
70659
70660 2007-01-01  Bruno Haible  <bruno@clisp.org>
70661
70662         * gnulib-tool (func_emit_copyright_notice): Bump year.
70663         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70664
70665 2007-01-01  Bruno Haible  <bruno@clisp.org>
70666
70667         Improve support for OpenBSD.
70668         * build-aux/config.rpath (libname_spec): Export.
70669         (library_names_spec): New variable. Export.
70670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70671         library_names_spec from the config.rpath output. Locate shared library
70672         through the name pattern in library_names_spec.
70673
70674 2007-01-01  Eric Blake  <ebb9@byu.net>
70675
70676         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70677
70678 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70681         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70682         assume the C locale, and avoid an "eval" that could cause trouble.
70683         Problem with SORT reported by Bob Proulx.
70684
70685         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70686         Define.  Trivial patch from Henning Nielsen Lund, originally
70687         sent to bug-grep@gnu.org today.
70688
70689 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70692         struct stat.  Problem reported by Henning Nielsen Lund.
70693         * lib/acl.c: Include acl.h first, to check interface.  Don't
70694         bother to include sys/types.h and sys/stat.h again.
70695
70696 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         Import the following change from libc; problem reported by
70699         Sven Verdoolaege.
70700
70701         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70702
70703         [BZ #1373]
70704         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70705
70706 2006-12-28  Jim Meyering  <jim@meyering.net>
70707
70708         * build-aux/announce-gen: Do not assume that the package
70709         builds any of tar.gz, tar.bz2, and .xdelta files.
70710         Suggestion from Simon Josefsson.
70711
70712 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70713
70714         * modules/announce-gen: New file.
70715
70716 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70717
70718         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70719         handles its gotchas now.
70720         * lib/mbswidth.c: Likewise.
70721         * lib/wcwidth.h: Likewise.
70722         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70723         and iswcntrl; the wctype module does this stuff now.
70724         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70726         * modules/mbchar (Depends-on): Add wctype.
70727         * modules/mbswidth (Depends-on): Likewise.
70728         * modules/wcwidth (Depends-on): Likewise.
70729
70730 2006-12-27  Eric Blake  <ebb9@byu.net>
70731
70732         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70733         module uses more than what <wctype.h> is required to provide.
70734
70735 2006-12-26  Eric Blake  <ebb9@byu.net>
70736
70737         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70738
70739 2006-12-26  Eric Blake  <ebb9@byu.net>
70740
70741         * modules/absolute-header: New module.
70742         * modules/fcntl (Depends-on): Depend on it.
70743         * modules/inttypes (Depends-on): Likewise.
70744         * modules/stdint (Depends-on): Likewise.
70745         * modules/sys_stat (Depends-on): Likewise.
70746         * modules/wctype (Depends-on): Likewise.
70747         * MODULES.html.sh (Support for building libraries and
70748         executables): Document it.
70749
70750 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * gnulib-tool (SED): Remove, undoing previous change.
70753         The problem was that it broke coreutils on Solaris, because
70754         "sed --posix" leaked into a makefile.
70755         (sed): New alias, if 'alias' and GNU sed.
70756
70757 2006-12-24  Jim Meyering  <jim@meyering.net>
70758
70759         Work around an fchownat bug in glibc-2.4:
70760         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70761         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70762         in spite of the -P option.
70763         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70764         New macros.
70765         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70766         * modules/openat (Files): Add lib/fchownat.c.
70767         * lib/openat.c (fchownat): Don't define here.  Move to...
70768         * lib/fchownat.c: ...this new file.
70769
70770 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         Fix bug reported by Bruno Haible in
70773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70774         where quotearg.c didn't compile on Mac OS X 10.2 because it
70775         lacks <wchar.h> and wint_t.
70776         * lib/wctype_.h (__wctype_wint_t): New type.
70777         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70778         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70779         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70780         Arg is now of type __wctype_wint_t, not wint_t.
70781         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70782         substitute HAVE_WINT_T.
70783         * modules/wctype (Files): Add m4/wint_t.m4.
70784         (wctype.h): Substitute HAVE_WINT_T.
70785
70786 2006-12-23  Bruno Haible  <bruno@clisp.org>
70787
70788         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70789
70790 2006-12-23  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70793         S_ISLNK.
70794         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70795         mingw.
70796
70797 2006-12-22  Bruno Haible  <bruno@clisp.org>
70798
70799         * lib/copy-file.c: Include acl.h.
70800         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70801         Close the file descriptors only after being done with copy_acl.
70802         * modules/copy-file (Depends-on): Add acl.
70803
70804 2006-12-22  Bruno Haible  <bruno@clisp.org>
70805
70806         * gnulib-tool (SED): New variable.
70807         Use $SED instead of sed everywhere.
70808
70809 2006-12-22  Bruno Haible  <bruno@clisp.org>
70810
70811         * modules/no-c++: New file.
70812         * m4/no-c++.m4: New file.
70813         * MODULES.html.sh (Support for building libraries and executables):
70814         Add no-c++.
70815
70816 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70819         Include <limits.h>, and use its INT_MAX to rewrite the
70820         j loop so that it does not overflow 'int'.  Problem reported by
70821         Ralf Wildenhues in
70822         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70823         Play it safe by shifting left by 1 rather than multiplying by 2,
70824         as GCC is less likely to optimize this away when the value
70825         is signed (when it assumes overflow leads to undefined behavior).
70826         Also, don't assume time_t uses two's complement.
70827
70828 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         * MODULES.html.sh: New module wctype.
70831         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70832         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70833         <wctype.h>, since the new wctype module should fix this.
70834         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70835         the wctype module should arrange for it.
70836         * lib/regex_internal.h: Likewise.
70837         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70838         since the wctype module should handle this now.
70839         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70840         * modules/fnmatch (Depends-on): Add wctype.
70841         * modules/quotearg (Depends-on): Likewise.
70842         * modules/regex (Depends-on): Likewise.
70843
70844 2006-12-19  Bruno Haible  <bruno@clisp.org>
70845
70846         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70847         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70848
70849 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70850
70851         * modules/savewd (Depends-on): Fix dependency on fcntl.
70852
70853 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70856         conforms to C99, rather than relying on the user's environment
70857         setting of STDINT_H.
70858
70859 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70860         and Eric Blake  <ebb9@byu.net>
70861
70862         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70863         This is more consistent with the other defines here.
70864         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70865         Port to z/OS.  Problem reported by Paul Gilmartin.
70866         Change local vars to use gl_ prefix rather than ac_.
70867         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70868         with other defines.
70869         * modules/double-slash-root: New module.
70870         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70871         (Depends-on): Add double-slash-root.
70872         * MODULES.html.sh (File system functions): Mention new module.
70873
70874 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70877         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70878         This is for the benefit of gzip, which doesn't do i18n.
70879
70880 2006-12-12  Jim Meyering  <jim@meyering.net>
70881
70882         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70883         Reported by Andreas Schwab <schwab@suse.de>.
70884
70885 2006-12-12  Bruno Haible  <bruno@clisp.org>
70886
70887         Merge these changes.
70888         2006-09-05  Bruno Haible  <bruno@clisp.org>
70889         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70890         iconv_alloc succeeded.
70891         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70892         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70893         test for " && dest " at the end - dest is always != NULL there. Call
70894         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70895         with 2xNULL arguments, also to flush the state storage. Handle the
70896         IRIX iconv behaviour. Realloc the final result, to throw away unused
70897         memory.
70898
70899 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70902         and fchmodat unconditionally, since glibc 2.4 has them.
70903         Problem reported by Arkadiusz Miskiewicz.
70904
70905 2006-12-10  Bruno Haible  <bruno@clisp.org>
70906
70907         * gnulib-tool (func_import): Show the include files only for those
70908         modules that are copied and specified.
70909         Reported by Karl Berry.
70910
70911 2006-12-08  Jim Meyering  <jim@meyering.net>
70912
70913         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70914         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70915
70916         * build-aux/announce-gen: Add two new options, both optional:
70917         --bootstrap-tools=TOOL_LIST
70918               a comma-separated list of tools, e.g.,
70919               autoconf,automake,bison,gnulib
70920         --gnulib-snapshot-date=DATE
70921               if gnulib is in the bootstrap tool list,
70922               then report this as the snapshot date.
70923               If not specified, use the current date/time.
70924               If you specify a date here, be sure it's UTC.
70925
70926 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70927
70928         * tests/test-argp-2.sh: Fix test to match actual output.
70929         (func_compare): Fix sed script to be portable.
70930
70931 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70932
70933         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70934         workaround for this case.  It is not autoconfigured now; offhand
70935         it's hard to see how to autoconfigure it.
70936
70937 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70940         a directory that is about to be chowned.  Such a directory's
70941         initial file permissions should permit the owner only and this
70942         should not be changed until after the chown, since the group and
70943         other bits would be incorrect if they granted permission before
70944         the chown.
70945
70946         Fix porting problem for iswctype reported by Georg Schwarz in:
70947         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70948         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70949         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70951         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70952
70953 2006-12-03  Jim Meyering  <jim@meyering.net>
70954
70955         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70956         p->fts_statp may not yet be defined.
70957         (fts_read): Instead, set it in the caller, once p->fts_statp is
70958         sure to be defined, and corresponds to a top-level directory.
70959         This bug made du -x fail.  Here's the coreutils test case:
70960         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70961         Reported by Mike Frysinger.
70962
70963 2006-12-01  Jim Meyering  <jim@meyering.net>
70964
70965         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70966         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70967         Reported by Simon Josefsson.
70968
70969 2006-11-30  Jim Meyering  <jim@meyering.net>
70970
70971         * m4/warning.m4: Use the all-permissive copyright notice
70972         recommended by RMS (rather than LGPL).
70973         * m4/vararrays.m4: Likewise.
70974         * m4/flexmember.m4: Likewise.
70975
70976 2006-11-29  Bruno Haible  <bruno@clisp.org>
70977
70978         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70979         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70980         using +=.
70981         Reported by Simon Josefsson <simon@josefsson.org>.
70982
70983 2006-11-28  James Youngman <jay@gnu.org>
70984
70985         * README: Advise users that they might find the bug-gnulib@gnu.org
70986         and autotools-announce@gnu.org mailing lists useful.
70987
70988 2006-11-28  Bruno Haible  <bruno@clisp.org>
70989
70990         * m4/ptrdiff_max.m4: Remove file.
70991
70992 2006-11-21  Bruno Haible  <bruno@clisp.org>
70993
70994         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70995         _AC_COMPUTE_INT.
70996         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70997         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70998         _AC_COMPUTE_INT.
70999         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71000         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71001         _AC_COMPUTE_INT.
71002         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71003
71004 2006-11-28  Jim Meyering  <jim@meyering.net>
71005
71006         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71007         warning from "gcc -Wshadow" about shadowing the builtin.
71008
71009 2006-11-27  Bruno Haible  <bruno@clisp.org>
71010
71011         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71012         _AC_COMPUTE_INT.
71013         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71014
71015 2006-11-27  Bruno Haible  <bruno@clisp.org>
71016             Paul Eggert  <eggert@cs.ucla.edu>
71017
71018         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71019
71020 2006-11-26  Bruno Haible  <bruno@clisp.org>
71021
71022         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71023         noinst_LTLIBRARIES.
71024
71025 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71026             Bruno Haible  <bruno@clisp.org>
71027
71028         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71029         if compiling with "gcc -ansi".
71030
71031 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         Fix some incompatibilities with gcc -ansi -pedantic.
71034         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71035         if compiling pedantically with GCC, unless it's C99 or later.
71036         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71037         it mishandles gcc -ansi -pedantic as well.
71038         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71039         if gcc -pedantic.
71040         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71041         initializers for struct if -pedantic, unless it's C99 or later.
71042
71043 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71044
71045         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71046         Don't close an fd more than once. Identical atimes indicate
71047         success, not failure.
71048
71049 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71050
71051         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71052
71053 2006-11-23  Jim Meyering  <jim@meyering.net>
71054
71055         * build-aux/announce-gen: New file.  From coreutils.
71056
71057 2006-11-22  Jim Meyering  <jim@meyering.net>
71058
71059         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71060         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71061         (fts_read): Use a temporary to narrow the overused st_size member
71062         before using it in a switch statement.  Reported by Matthew Woehlke.
71063
71064         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71065         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71066
71067 2006-11-20  Bruno Haible  <bruno@clisp.org>
71068
71069         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71070         changequote instead of pairs of brackets.
71071         Reported by Andreas Schwab <schwab@suse.de>.
71072
71073 2006-11-21  Jim Meyering  <jim@meyering.net>
71074
71075         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71076         so as to remain compatible with older compilers.
71077         Patch from Michael Deutschmann.
71078
71079 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * MODULES.html.sh (File system functions): Add openat.
71082
71083         * lib/openat.h (rpl_fstatat): New macro, if
71084         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71085         (fstatat): Define to rpl_fstatat under the same conditions,
71086         unless COMPILING_FSTATAT.
71087         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71088         seems to have the bug.
71089         * lib/fstatat.c: New file.
71090         * modules/openat (Files): Add it.
71091
71092 2006-11-20  Bruno Haible  <bruno@clisp.org>
71093
71094         * Makefile: New file.
71095
71096 2006-11-20  Jim Meyering  <jim@meyering.net>
71097
71098         The beginnings of syntax-related checks for gnulib.
71099         * lib/Makefile: New file.
71100         * lib/t-idcache: New script.  Ensure that the two halves of
71101         idcache.c stay in sync.
71102
71103         * lib/idcache.c: Adjust comments in user- and group- portions to
71104         be more accurate, and to be consistent with one another.
71105
71106 2006-11-20  Jim Meyering  <jim@meyering.net>
71107
71108         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71109         continue using the flexible array member (thus, this module performs
71110         half as many malloc calls), with the addition that...
71111         (getgroup, getuser): Consistently record a non-match via an empty
71112         "name" string, and map an empty string match to a NULL return value.
71113         * modules/idcache (Depends-on): Re-add flexmember.
71114
71115         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71116         (getuidbyname, getgroup, getgidbyname): Likewise.
71117
71118         Use cleaner syntax: NULL rather than 0.
71119         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71120
71121 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71124         It mishandled the case where the group was missing.
71125         Problem reported by Greg Schafer.
71126         * modules/idcache: Likewise.
71127
71128 2006-11-18  Jim Meyering  <jim@meyering.net>
71129
71130         * check-module (%exempt_header): Add exception for some
71131         conditionally-included headers.
71132
71133         * modules/i-ring (Depends-on): Add verify.
71134         (License): Change to LGPL.
71135
71136 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71139         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71140         and inttostr.h.  Use snprintf rather than uinttostr, so that
71141         LGPLed code doesn't depend on GPLed.
71142
71143 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * modules/inline (License): Change from GPL to LGPL.
71146
71147 2006-11-17  Jim Meyering  <jim@meyering.net>
71148
71149         * modules/d-type (License): Switch to LGPL.
71150
71151 2006-11-15  Bruno Haible  <bruno@clisp.org>
71152
71153         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71154
71155 2006-11-15  Eric Blake  <ebb9@byu.net>
71156
71157         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71158         the module dependency.
71159
71160 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71161             Bruno Haible  <bruno@clisp.org>
71162
71163         * gnulib-tool (func_create_testdir): Add license consistency check.
71164
71165 2006-11-15  Eric Blake  <ebb9@byu.net>
71166
71167         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71168         random "(cached)" in configure output.
71169
71170 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71171
71172         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71173         test for conforming inttypes.h is both announced and cached.
71174
71175         * MODULES.html.sh (seen_modules, seen_files): New variables.
71176         (func_module): Rewrite to use a few less gnulib-tool and sed
71177         invocations.  Avoid a couple of quadratic algorithms for ...
71178         (missed_modules, missed_files): ... these, with ...
71179         (func_append, func_tmpdir): ... these new functions, from
71180         gnulib-tool.  Analogously, install traps for cleanup.
71181
71182         * tests/test-gc.c (main): Remove unused variables.
71183         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71184
71185 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * modules/inttostr (License): Change to LGPL.
71188
71189 2006-11-14  Eric Blake  <ebb9@byu.net>
71190
71191         * modules/tempname (License): Change to LGPL.
71192
71193 2006-11-14  Eric Blake  <ebb9@byu.net>
71194
71195         * doc/functions.texi (Function Portability): *printf functions on
71196         Cygwin now understand all POSIX size specifiers.
71197
71198 2006-11-14  Bruno Haible  <bruno@clisp.org>
71199
71200         * modules/c-ctype (License): Change to LGPL.
71201
71202 2006-11-12  Bruno Haible  <bruno@clisp.org>
71203
71204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71205         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71206         for GNOME libraries, for which the include files are installed in
71207         subdirectories of $prefix/include.
71208
71209 2006-11-12  Bruno Haible  <bruno@clisp.org>
71210
71211         * m4/lib-link.m4: Require at least autoconf-2.54.
71212         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71213         name to underscores for the --with option.
71214
71215 2006-11-13  Bruno Haible  <bruno@clisp.org>
71216
71217         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71218         the tests directory.
71219         Reported by Ralf Wildenhues.
71220
71221 2006-11-13  Bruno Haible  <bruno@clisp.org>
71222
71223         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71224         (func_emit_initmacro_end): Undo the override here.
71225         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71226         Works around the famous automake error in coreutils.
71227
71228 2006-11-13  Eric Blake  <ebb9@byu.net>
71229
71230         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71231         element, not its node.
71232
71233 2006-11-12  Bruno Haible  <bruno@clisp.org>
71234
71235         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71236         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71237
71238 2006-11-12  Bruno Haible  <bruno@clisp.org>
71239
71240         * gnulib-tool: New option --local-symlink.
71241         (func_usage): Document it.
71242         (lsymbolic): New variable.
71243         (func_import, func_create_testdir): If --symlink was not specified,
71244         test whether --local-symlink was specified and the file comes from
71245         the local_gnulib_dir.
71246
71247 2006-11-12  Bruno Haible  <bruno@clisp.org>
71248
71249         * gnulib-tool (func_ln): New function.
71250         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71251
71252 2006-11-12  Bruno Haible  <bruno@clisp.org>
71253
71254         Finish support for source files in subdirectories.
71255         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71256         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71257         AUTOMAKE_OPTIONS.
71258         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71259
71260 2006-11-12  Bruno Haible  <bruno@clisp.org>
71261
71262         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71263         EXTRA_lib_SOURCES augmentation.
71264         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71265
71266 2006-11-12  Jim Meyering  <jim@meyering.net>
71267
71268         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71269         file descriptors.  This also averts a failure on systems with
71270         native openat support when a traversed directory lacks "x" access.
71271         * lib/fts_.h: Include "i-ring.h"
71272         (struct FTS) [fts_fd_ring]: New member.
71273         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71274         (FCHDIR): Add parentheses.
71275         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71276         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71277         When descending, rather than simply closing the previous
71278         fts_cwd_fd value, push that file descriptor onto the ring.
71279         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71280         (fts_open): Initialize the new fd_ring member.
71281         (fts_close): Clear the ring.
71282         (fts_safe_changedir): When possible, use our new fd_ring to skip
71283         the diropen and fstat and dev/ino comparison that would normally
71284         accompany a virtual `chdir ("..")'.
71285
71286         * modules/fts (Depends-on): Add i-ring.
71287         * modules/i-ring: New module.
71288         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71289         * m4/i-ring.m4: New file.
71290
71291 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71292
71293         * gnulib-tool (func_create_testdir): Fix replacement of
71294         `build-aux' in configure.ac.  Run autotools in gltests
71295         subdirectory.
71296         (func_create_testdir, func_create_megatestdir, test): There is
71297         no need for '--force' in most autotool invocations in a new
71298         tree.  Actually fail the whole test if any of the tools, or the
71299         configure or make stages fail.
71300
71301         Sync from Automake.
71302         * build-aux/gnupload: Revert last change.  Add pointer to upload
71303         instructions of the GNU Maintenance Instructions.
71304         Suggestion by Karl Berry.
71305
71306 2006-11-10  Jim Meyering  <jim@meyering.net>
71307
71308         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71309
71310 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71313         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71314         (bind_textdomain_codeset) [! ENABLE_NLS]:
71315         Evaluate all the arguments.  That way, callers get compatible behavior
71316         if the arguments have side effects.  Also, it avoids some GCC
71317         diagnostics in some cases; Joel E. Denny reported problems when Bison
71318         was configured with --enable-gcc-warnigs.
71319
71320 2006-11-10  Jim Meyering  <jim@meyering.net>
71321
71322         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71323         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71324         account.
71325
71326 2006-11-10  Jim Meyering  <jim@meyering.net>
71327
71328         * modules/inline: New file/module.
71329         * modules/xalloc (Files): Remove m4/inline.m4.
71330         (Depends-on): Add inline, instead.
71331         * modules/oset: Likewise.
71332         * modules/list: Likewise.
71333
71334 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71337         Problem reported by Matthew Woehlke.
71338
71339 2006-11-09  Bruno Haible  <bruno@clisp.org>
71340
71341         * lib/tempname.c (gen_tempname): Remove variant that invokes
71342         __gen_tempname.
71343         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71344         __gen_tempname.
71345
71346 2006-11-08  Bruno Haible  <bruno@clisp.org>
71347
71348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71349         to 'yes' instead of 'cross-compiling'.
71350
71351 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * lib/quotearg.h (quotearg_free): New decl.
71354         * lib/quotearg.c (quotearg_free): New function.
71355         (slot0, nslots, slotvec0, slotvec):
71356         Now file-scope so that quotearg_free can get at them.
71357
71358 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71359
71360         Sync from Automake.
71361         * build-aux/gnupload: Add missing 'gnu' to example URL.
71362         Report by Karl Berry.
71363
71364 2006-11-08  Bruno Haible  <bruno@clisp.org>
71365
71366         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71367         Suggested by Paul Eggert.
71368
71369 2006-11-08  Jim Meyering  <jim@meyering.net>
71370
71371         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71372         It's already included if !_LIBC.
71373         (fts_safe_changedir): Add a comment.
71374
71375 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71378         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71379         Matthew Woehlke.
71380
71381         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71382         definitions up, to avoid colliding with change below.
71383         (static_inline) [HAVE_INLINE]: New macro.
71384         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71385         Provide extern decls when !HAVE_INLINE.  Do not define unless
71386         static_inline is defined, either by us or by xmalloc.c.  Use
71387         static_inline rather than static inline.
71388         (XCALLOC): Optimize sizeof(T) = 1 case.
71389         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71390
71391 2006-11-07  Bruno Haible  <bruno@clisp.org>
71392
71393         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71394         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71395         AC_C_INLINE.
71396         * modules/xalloc (Files): Add m4/inline.m4.
71397
71398 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71399
71400         * README: Fix typo.
71401         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71402         (Miscellanous Notes): ...from this.
71403
71404 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71405
71406         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71407         Mention that offsetof should be used instead of sizeof.
71408         From Bruno Haible.
71409
71410 2006-11-07  Bruno Haible  <bruno@clisp.org>
71411
71412         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71413
71414 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71417         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71418         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71419         (gl_tree_add_before, gl_tree_add_after):
71420         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71421         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71422         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71423         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71424         (gl_linked_add_after, gl_linked_add_at): Likewise.
71425         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71426         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71427         (gl_tree_add_before, gl_tree_add_after): Likewise.
71428         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71429         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71430         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71431
71432 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71433
71434         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71435
71436 2006-11-06  Bruno Haible  <bruno@clisp.org>
71437
71438         * m4/inline.m4: New file.
71439         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71440         * modules/list (Files): Add m4/inline.m4.
71441         * modules/oset (Files): Likewise.
71442
71443 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         * lib/idcache.c: Include <stddef.h>, for offsetof.
71446         (struct userid.name): Change from char * to a flexible array member.
71447         All uses changed.
71448         * modules/idcache (Depends-on): Add flexmember.
71449
71450         * MODULES.html.sh (Core language properties): New module flexmember.
71451         * modules/flexmember, m4/flexmember.m4: New files.
71452
71453         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71454         inline functions that are identical with the old xnmalloc_inline,
71455         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71456         that we can avoid some unnecessary integer multiplications and
71457         divisions in the common case where the element size is known at
71458         compile time.
71459         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71460         needed.
71461         (xnboundedmalloc): Remove.
71462         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71463         arguments, for consistency with rest of this header.
71464         (xcharalloc): Rewrite using XNMALLOC.
71465         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71466         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71467         versions have been moved to lib/xalloc.h and renamed to be the
71468         non-*_inline versions.
71469         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71470         and xnrealloc functions, since those functions are now inline and
71471         now call us.
71472         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71473         renaming described above.
71474         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71475         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71476         captures the dependency in AC_C_INLINE.
71477
71478         New module canonicalize-lgpl, proposed by Charles Wilson in
71479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71480         with a few small changes afterwards.
71481         * MODULES.html.sh (File system functions): New module
71482         canonicalize-lgpl.
71483         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71484         and canonicalize_file_name.
71485         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71486         * modules/canonicalize-lgpl: New files.
71487
71488 2006-11-05  Bruno Haible  <bruno@clisp.org>
71489
71490         * gnulib-tool (func_import, func_create_testdir): Create directories
71491         also for files in subdirectories of lib/.
71492
71493 2006-11-05  Bruno Haible  <bruno@clisp.org>
71494
71495         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71496         ANSI C compliant.
71497
71498 2006-11-03  Bruno Haible  <bruno@clisp.org>
71499
71500         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71501         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71502         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71503         (xnboundedmalloc): New inline function.
71504         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71505         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71506         xmalloc.
71507         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71508         xmalloc.
71509         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71510         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71511         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71512         xmalloc.
71513         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71514         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71515         xmalloc.
71516         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71517         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71518         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71519         xmalloc.
71520         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71521         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71522         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71523         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71524         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71525         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71526         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71527
71528 2006-11-03  Bruno Haible  <bruno@clisp.org>
71529
71530         * lib/c-ctype.h [C++]: Define functions without name mangling.
71531         * lib/fwriteerror.h [C++]: Likewise.
71532         * lib/gcd.h [C++]: Likewise.
71533         * lib/linebreak.h [C++]: Likewise.
71534
71535 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71538         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71539         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71541         Check for functions and headers just once.
71542         Check for declaration of canonicalize_file_name.
71543         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71544
71545 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71546
71547         * gnulib-tool (func_import): Fix typo in actioncmd.
71548
71549 2006-11-02  Bruno Haible  <bruno@clisp.org>
71550
71551         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71552         newline sequence in the Makefile.am snippet as a space, like "make"
71553         does.
71554         Reported by Roger Persson <perrog@gmail.com>.
71555
71556 2006-11-01  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71559         already declared in <string.h>.
71560         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71561
71562 2006-11-01  Bruno Haible  <bruno@clisp.org>
71563
71564         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71565         * lib/strcase.h: Include <string.h>.
71566         (strcasecmp): Define to rpl_strcasecmp here.
71567
71568 2006-11-01  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71571
71572 2006-11-01  Eric Blake  <ebb9@byu.net>
71573
71574         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71575
71576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71577
71578 2006-10-29  Bruno Haible  <bruno@clisp.org>
71579
71580         Make it compile in C++ mode.
71581         * lib/full-write.c (full_rw): Add a cast.
71582
71583 2006-11-01  Bruno Haible  <bruno@clisp.org>
71584
71585         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71586         be POSIX compliant.
71587         Reported by Roger Persson <perrog@gmail.com>.
71588
71589 2006-11-01  Eric Blake  <ebb9@byu.net>
71590
71591         * lib/getopt_.h: Fix comments.
71592
71593 2006-10-31  Eric Blake  <ebb9@byu.net>
71594
71595         * modules/tmpdir (Depends-on): Add sys_stat.
71596         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71597         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71598         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71599         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71600         tempname.
71601
71602 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         Avoid some C++ diagnostics reported by Bruno Haible.
71605         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71606         xmalloc.
71607         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71608         (struct slotvec): Move to top level.
71609         (quotearg_n_options): Rewrite to avoid xmalloc.
71610         * lib/xalloc.h (xcharalloc): New function.
71611         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71612         [defined __cplusplus]: Add function template that provides result
71613         type propagation.  This part of the change is from Bruno Haible.
71614
71615 2006-10-29  Bruno Haible  <bruno@clisp.org>
71616
71617         Make it compile in C++ mode.
71618         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71619         * lib/strnlen1.c (strnlen1): Cast memchr result.
71620         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71621         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71622         (create_temp_dir): Rename local variable 'template'.
71623         (compile_csharp_using_sscli): Add cast.
71624         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71625         * lib/findprog.c (find_in_path): Likewise.
71626         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71627         * lib/wait-process.c (register_slave_subprocess): Likewise.
71628
71629 2006-10-22  Bruno Haible  <bruno@clisp.org>
71630
71631         * modules/tsearch: New file.
71632         * lib/tsearch.h: New file.
71633         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71634         * m4/tsearch.m4: New file.
71635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71636
71637 2006-10-29  Eric Blake  <ebb9@byu.net>
71638
71639         * lib/arcfour.c: Assume config.h.
71640         * lib/arctwo.c: Likewise.
71641         * lib/base64.c: Likewise.
71642         * lib/check-version.c: Likewise.
71643         * lib/crc.c: Likewise.
71644         * lib/des.c: Likewise.
71645         * lib/gc-gnulib.c: Likewise.
71646         * lib/gc-libgcrypt.c: Likewise.
71647         * lib/gc-pbkdf2-sha1.c: Likewise.
71648         * lib/getaddrinfo.c: Likewise.
71649         * lib/getdelim.c: Likewise.
71650         * lib/getline.c: Likewise.
71651         * lib/hmac-md5.c: Likewise.
71652         * lib/hmac-sha1.c: Likewise.
71653         * lib/iconvme.c: Likewise.
71654         * lib/md2.c: Likewise.
71655         * lib/md4.c: Likewise.
71656         * lib/memxor.c: Likewise.
71657         * lib/read-file.c: Likewise.
71658         * lib/readline.c: Likewise.
71659         * lib/rijndael-alg-fst.c: Likewise.
71660         * lib/rijndael-api-fst.c: Likewise.
71661         * lib/xgetdomainname.c: Likewise.
71662
71663 2006-10-28  Eric Blake  <ebb9@byu.net>
71664
71665         * lib/xstrndup.c: Assume config.h.
71666
71667 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71670         stat-macros.h is now for our own macros, whereas stat_h is for
71671         macros in the <sys/stat.h> name space.
71672         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71673         (STAT_MACROS_H): Remove.
71674         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71675         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71676         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71677         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71678         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71679         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71680         Move these macros to ...
71681         * lib/stat_.h: here.  Don't include stat-macros.h.
71682         * lib/canonicalize.c: Don't include stat-macros.h.
71683         * lib/chown.c: Likewise.
71684         * lib/euidaccess.c: Likewise.
71685         * lib/file-type.c: Likewise.
71686         * lib/filemode.c: Likewise.
71687         * lib/glob.c: Likewise.
71688         * lib/isapipe.c: Likewise.
71689         * lib/lchown.c: Likewise.
71690         * lib/lstat.c: Likewise.
71691         * lib/mkdir-p.c: Likewise.
71692         * lib/rmdir.c: Likewise.
71693         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71695         unless mkdir isn't declared, to speed up 'configure'.
71696         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71697         would define all the S_* symbols.
71698         * modules/canonicalize (Depends-on):
71699         Depend on sys_stat, not stat-macros.
71700         * modules/chown: Likewise.
71701         * modules/euidaccess: Likewise.
71702         * modules/filemode: Likewise.
71703         * modules/file-type: Likewise.
71704         * modules/glob: Likewise.
71705         * modules/isapipe: Likewise.
71706         * modules/lchown: Likewise.
71707         * modules/lstat: Likewise.
71708         * modules/mkancesdirs: Likewise.
71709         * modules/rmdir: Likewise.
71710         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71711         * modules/modechange: Likewise.
71712         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71713         (configure.ac): Remove gl_STAT_MACROS.
71714         * modules/sys_stat (Depends-on): Remove stat-macros.
71715
71716 2006-10-27  Bruno Haible  <bruno@clisp.org>
71717
71718         * m4/signed.m4: Remove file.
71719         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71720         invocation.
71721         * modules/vasnprintf (Files): Remove m4/signed.m4.
71722
71723 2006-10-27  Bruno Haible  <bruno@clisp.org>
71724
71725         Update to GNU gettext 0.16.
71726         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71727         m4/inttypes-h.m4, m4/signed.m4.
71728         * m4/gettext.m4: Update to GNU gettext 0.16.
71729         * m4/intl.m4: New file, from GNU gettext.
71730         * m4/intldir.m4: New file, from GNU gettext.
71731         * config/srclist.txt: Update
71732
71733 2006-10-27  Eric Blake  <ebb9@byu.net>
71734
71735         * MODULES.html.sh: Document tempname.
71736         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71737         dependencies.
71738         (Files): Move lib/tempname.c...
71739         * modules/tempname: ...to this new module.
71740         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71741         (gl_PREREQ_TEMPNAME): Move...
71742         * m4/tempname.m4: ...to this new file.
71743         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71744         * modules/sys_stat (Depends-on): Add stat-macros.
71745         * lib/stat_.h (includes): Pick up stat macros.
71746         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71747         if stat macros are broken.
71748         * lib/tempname.c (includes): No need to include "stat-macros.h".
71749         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71750         (direxists, __path_search) [!_LIBC]: Don't compile these in
71751         gnulib; the tmpdir module covers that.
71752         * lib/tempname.h: New file.
71753
71754 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71755
71756         * COPYING: Explain how gnulib-tool converts licence headers.
71757         Almost all wording by Eric Blake.
71758
71759 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71760
71761         * lib/mbchar.h (is_basic_table): Make read-only.
71762         * lib/mbchar.c (is_basic_table): Likewise.
71763         Reported by John Darrington.
71764
71765 2006-10-25  Bruno Haible  <bruno@clisp.org>
71766
71767         * lib/progname.h (set_program_name): Undefine before defining.
71768
71769 2006-10-25  Bruno Haible  <bruno@clisp.org>
71770
71771         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71772         false for non-gcc C++ compilers.
71773         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71774
71775 2006-10-24  Bruno Haible  <bruno@clisp.org>
71776
71777         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71778         iconv implementations like Irix iconv.
71779
71780 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * modules/vararrays: New file.
71783         * m4/vararrays.m4: New file, taken from diffutils.
71784         * MODULES.html.sh: New module vararrays.
71785
71786 2006-10-24  Karl Berry  <karl@gnu.org>
71787
71788         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71789         Don't call GNU Unix.
71790
71791 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71792
71793         * users.txt: Add Libtool.
71794
71795         Sync from Libtool:
71796
71797         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71798
71799         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71800         to gnulib's policy of including config.h unconditionally.
71801
71802 2006-10-24  Bruno Haible  <bruno@clisp.org>
71803
71804         * modules/wcwidth (Files): Add m4/wint_t.m4.
71805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71806         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71807
71808 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71811         to pacify GCC with some -W flags enabled.  Problem reported by
71812         Bruno Haible.
71813
71814 2006-10-24  Jim Meyering  <jim@meyering.net>
71815
71816         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71817         Reported by Karl Berry.
71818
71819 2006-10-23  Bruno Haible  <bruno@clisp.org>
71820
71821         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71822
71823 2006-10-24  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/gl_list.h: Use C comment style, not C++ comment style.
71826
71827 2006-10-23  Eric Blake  <ebb9@byu.net>
71828
71829         * lib/getaddrinfo.c (includes): Add missing include.
71830
71831 2006-10-23  Bruno Haible  <bruno@clisp.org>
71832             Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         Ability to rename obstack_free.
71835         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71836         obstack_free.
71837         (obstack_free): Invoke the __obstack_free macro.
71838         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71839
71840 2006-10-23  Bruno Haible  <bruno@clisp.org>
71841             Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71844         __argc, __argv from the declaration. (They are defined as macros on
71845         mingw.)
71846
71847 2006-10-22  Bruno Haible  <bruno@clisp.org>
71848
71849         * doc/gnulib-intro.texi: New file.
71850         * doc/gnulib.texi: Include it.
71851
71852 2006-10-21  Bruno Haible  <bruno@clisp.org>
71853
71854         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71855         "Introduction", "Miscellanous Notes", "Particular Modules".
71856
71857 2006-10-21  Bruno Haible  <bruno@clisp.org>
71858
71859         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71860         Change mostlyclean-local rule to avoid sh syntax error from bash
71861         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71862
71863 2006-10-23  Jim Meyering  <jim@meyering.net>
71864
71865         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71866         in place of snprintf.
71867
71868         * modules/inttostr (Files): Add lib/uinttostr.c.
71869         * lib/uinttostr.c (inttostr): New file/function.
71870         * lib/inttostr.h (uinttostr): Declare.
71871         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71872         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71873         Add uinttostr.
71874         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71875
71876 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71877
71878         * lib/canonicalize.c (ELOOP): Define if not already defined.
71879         Problem reported by Bruno Haible in
71880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71881
71882 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71885         Problem reported by Perry Smith and Ville Laurikari.
71886
71887         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71888         uses.
71889
71890 2006-10-19  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71893         for mingw.
71894
71895 2006-10-19  Bruno Haible  <bruno@clisp.org>
71896
71897         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71898         Needed for mingw.
71899
71900 2006-10-19  Bruno Haible  <bruno@clisp.org>
71901
71902         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71903
71904 2006-10-19  Bruno Haible  <bruno@clisp.org>
71905
71906         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71907         it.
71908
71909 2006-10-19  Bruno Haible  <bruno@clisp.org>
71910
71911         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71912         invocation.
71913
71914 2006-10-19  Bruno Haible  <bruno@clisp.org>
71915
71916         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71917         mountlist by default.
71918
71919 2006-10-16  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/c-strstr.c: Include c-strstr.h.
71922
71923 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71924
71925         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71926         in a slash.
71927
71928 2006-10-18  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/lock.h [C++]: Wrap definitions in extern "C".
71931
71932 2006-10-18  Bruno Haible  <bruno@clisp.org>
71933
71934         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71935         gl_LIBOBJS list.
71936
71937 2006-10-18  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71940
71941 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * lib/xstrtol.h: Include gettext.h.
71944         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71945         Problem reported by Eric Blake.
71946         * modules/xstrtol (Depends-on): Add gettext-h.
71947
71948 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71949
71950         * lib/strftime.c (advance): New macro.
71951         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71952         incomplete type, so you can't add 0 to it.  Problem and patch
71953         reported by Eelco Dolstra for dietlibc.
71954
71955 2006-10-18  Jim Meyering  <jim@meyering.net>
71956
71957         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71958         type for a local, and rename it: s/up/user_proc/.
71959
71960 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71961
71962         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71963         READ_UTMP_USER_PROCESS.
71964         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71965
71966 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71969         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71970
71971 2006-10-17  Eric Blake  <ebb9@byu.net>
71972
71973         * lib/sigprocmask.c (sigprocmask): Fix typo.
71974
71975         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71976
71977         * modules/clean-temp (Makefile.am): Don't add to make output...
71978         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71979         config.h.
71980
71981 2006-10-17  Bruno Haible  <bruno@clisp.org>
71982
71983         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71984         differently if DEFAULT_TEXT_DOMAIN is set.
71985
71986 2006-10-16  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/clean-temp.c: Include fwriteerror.h.
71989
71990 2006-10-16  Bruno Haible  <bruno@clisp.org>
71991
71992         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71993
71994 2006-10-16  Bruno Haible  <bruno@clisp.org>
71995
71996         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71997         * lib/sigprocmask.h: Include <sys/types.h>.
71998         (sigset_t): Use the system's definition if present.
71999
72000 2006-10-17  Eric Blake  <ebb9@byu.net>
72001
72002         * lib/xvasprintf.c (includes): Assume config.h.
72003         * lib/xasprintf.c (includes): Likewise.
72004
72005 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72008         at least as wide as intmax_t.
72009
72010 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72011
72012         (Imported from Automake.)
72013         * build-aux/gnupload: Update to version 1.1 of directive file.
72014
72015 2006-10-16  Eric Blake  <ebb9@byu.net>
72016
72017         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72018         match Automake 1.10a.
72019
72020 2006-10-14  Bruno Haible  <bruno@clisp.org>
72021
72022         * modules/sigprocmask: New file.
72023         * lib/sigprocmask.h: New file.
72024         * lib/sigprocmask.c: New file.
72025         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72026         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72027         request sigprocmask.o.
72028         (gl_PREREQ_SIGPROCMASK): New macro.
72029         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72030         (Depends-on): Add sigprocmask.
72031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72032         gt_SIGNALBLOCKING. Test for 'raise' only once.
72033         * lib/fatal-signal.c: Include sigprocmask.h.
72034         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72035         unblock_fatal_signals): Define always.
72036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72037         sigprocmask.
72038
72039 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         Sync from Automake.
72042         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72043         which incorrectly sets the mode of an existing destination
72044         directory.  In some cases the unpatched install-sh could do the
72045         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72046         system.  We hope this is rare in practice, but it's clearly worth
72047         fixing.  Problem reported by Alex Unleashed in
72048         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72049         Also, don't bother to check for -m bugs unless we're using -m;
72050         suggested by Stepan Kasal.
72051
72052 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72053
72054         Sync from Automake.
72055         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72056         `-c' flag, so they appear at the same position as in %FASTDEP%
72057         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72058         which ignores unknown options only after the first non-option.
72059         Bug report against M4 by Nelson H. F. Beebe.
72060
72061 2006-10-13  Jim Meyering  <jim@meyering.net>
72062
72063         Fix a bug in yesterday's change.
72064         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72065         p->fts_statp->st_dev would be used uninitialized.
72066         Ensures that we always call fts_stat on the very first entry.
72067         Miklos Szeredi reported that find -xdev stopped working.
72068
72069 2006-10-12  Bruno Haible  <bruno@clisp.org>
72070
72071         * gnulib-tool (func_get_automake_snippet): Append an automatically
72072         computed EXTRA_DIST augmentation.
72073         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72074         * modules/alloca-opt (Makefile.am): Likewise.
72075         * modules/allocsa (Makefile.am): Likewise.
72076         * modules/arcfour (Makefile.am): Likewise.
72077         * modules/arctwo (Makefile.am): Likewise.
72078         * modules/argmatch (Makefile.am): Likewise.
72079         * modules/argz (Makefile.am): Likewise.
72080         * modules/atexit (Makefile.am): Likewise.
72081         * modules/backupfile (Makefile.am): Likewise.
72082         * modules/byteswap (Makefile.am): Likewise.
72083         * modules/c-strtod (Makefile.am): Likewise.
72084         * modules/c-strtold (Makefile.am): Likewise.
72085         * modules/calloc (Makefile.am): Likewise.
72086         * modules/canon-host (Makefile.am): Likewise.
72087         * modules/canonicalize (Makefile.am): Likewise.
72088         * modules/chdir-long (Makefile.am): Likewise.
72089         * modules/chdir-safer (Makefile.am): Likewise.
72090         * modules/check-version (Makefile.am): Likewise.
72091         * modules/chown (Makefile.am): Likewise.
72092         * modules/cloexec (Makefile.am): Likewise.
72093         * modules/close-stream (Makefile.am): Likewise.
72094         * modules/closeout (Makefile.am): Likewise.
72095         * modules/crc (Makefile.am): Likewise.
72096         * modules/csharpexec (Makefile.am): Likewise.
72097         * modules/cycle-check (Makefile.am): Likewise.
72098         * modules/des (Makefile.am): Likewise.
72099         * modules/dev-ino (Makefile.am): Likewise.
72100         * modules/dirfd (Makefile.am): Likewise.
72101         * modules/dirname (Makefile.am): Likewise.
72102         * modules/dup2 (Makefile.am): Likewise.
72103         * modules/eealloc (Makefile.am): Likewise.
72104         * modules/error (Makefile.am): Likewise.
72105         * modules/euidaccess (Makefile.am): Likewise.
72106         * modules/exclude (Makefile.am): Likewise.
72107         * modules/exitfail (Makefile.am): Likewise.
72108         * modules/fcntl-safer (Makefile.am): Likewise.
72109         * modules/fcntl (Makefile.am): Likewise.
72110         * modules/file-type (Makefile.am): Likewise.
72111         * modules/fileblocks (Makefile.am): Likewise.
72112         * modules/filemode (Makefile.am): Likewise.
72113         * modules/filenamecat (Makefile.am): Likewise.
72114         * modules/fnmatch (Makefile.am): Likewise.
72115         * modules/fopen-safer (Makefile.am): Likewise.
72116         * modules/fpending (Makefile.am): Likewise.
72117         * modules/fprintftime (Makefile.am): Likewise.
72118         * modules/free (Makefile.am): Likewise.
72119         * modules/fsusage (Makefile.am): Likewise.
72120         * modules/ftruncate (Makefile.am): Likewise.
72121         * modules/fts (Makefile.am): Likewise.
72122         * modules/gc-arcfour (Makefile.am): Likewise.
72123         * modules/gc-des (Makefile.am): Likewise.
72124         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72125         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72126         * modules/gc-md4 (Makefile.am): Likewise.
72127         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72128         * modules/gc-sha1 (Makefile.am): Likewise.
72129         * modules/gc (Makefile.am): Likewise.
72130         * modules/getaddrinfo (Makefile.am): Likewise.
72131         * modules/getcwd (Makefile.am): Likewise.
72132         * modules/getdelim (Makefile.am): Likewise.
72133         * modules/getdomainname (Makefile.am): Likewise.
72134         * modules/getgroups (Makefile.am): Likewise.
72135         * modules/gethostname (Makefile.am): Likewise.
72136         * modules/gethrxtime (Makefile.am): Likewise.
72137         * modules/getline (Makefile.am): Likewise.
72138         * modules/getloadavg (Makefile.am): Likewise.
72139         * modules/getlogin_r (Makefile.am): Likewise.
72140         * modules/getndelim2 (Makefile.am): Likewise.
72141         * modules/getopt (Makefile.am): Likewise.
72142         * modules/getpagesize (Makefile.am): Likewise.
72143         * modules/getpass-gnu (Makefile.am): Likewise.
72144         * modules/getpass (Makefile.am): Likewise.
72145         * modules/getsubopt (Makefile.am): Likewise.
72146         * modules/gettime (Makefile.am): Likewise.
72147         * modules/gettimeofday (Makefile.am): Likewise.
72148         * modules/getugroups (Makefile.am): Likewise.
72149         * modules/getusershell (Makefile.am): Likewise.
72150         * modules/glob (Makefile.am): Likewise.
72151         * modules/group-member (Makefile.am): Likewise.
72152         * modules/hard-locale (Makefile.am): Likewise.
72153         * modules/hash (Makefile.am): Likewise.
72154         * modules/hmac-md5 (Makefile.am): Likewise.
72155         * modules/hmac-sha1 (Makefile.am): Likewise.
72156         * modules/human (Makefile.am): Likewise.
72157         * modules/idcache (Makefile.am): Likewise.
72158         * modules/imaxabs (Makefile.am): Likewise.
72159         * modules/imaxdiv (Makefile.am): Likewise.
72160         * modules/inet_ntop (Makefile.am): Likewise.
72161         * modules/inet_pton (Makefile.am): Likewise.
72162         * modules/intprops (Makefile.am): Likewise.
72163         * modules/inttostr (Makefile.am): Likewise.
72164         * modules/inttypes (Makefile.am): Likewise.
72165         * modules/isapipe (Makefile.am): Likewise.
72166         * modules/javaversion (Makefile.am): Likewise.
72167         * modules/lchmod (Makefile.am): Likewise.
72168         * modules/lchown (Makefile.am): Likewise.
72169         * modules/localcharset (Makefile.am): Likewise.
72170         * modules/long-options (Makefile.am): Likewise.
72171         * modules/lstat (Makefile.am): Likewise.
72172         * modules/malloc (Makefile.am): Likewise.
72173         * modules/mathl (Makefile.am): Likewise.
72174         * modules/mbchar (Makefile.am): Likewise.
72175         * modules/md2 (Makefile.am): Likewise.
72176         * modules/md4 (Makefile.am): Likewise.
72177         * modules/md5 (Makefile.am): Likewise.
72178         * modules/memcasecmp (Makefile.am): Likewise.
72179         * modules/memchr (Makefile.am): Likewise.
72180         * modules/memcmp (Makefile.am): Likewise.
72181         * modules/memcoll (Makefile.am): Likewise.
72182         * modules/memcpy (Makefile.am): Likewise.
72183         * modules/memmem (Makefile.am): Likewise.
72184         * modules/memmove (Makefile.am): Likewise.
72185         * modules/mempcpy (Makefile.am): Likewise.
72186         * modules/memrchr (Makefile.am): Likewise.
72187         * modules/memset (Makefile.am): Likewise.
72188         * modules/memxor (Makefile.am): Likewise.
72189         * modules/mkancesdirs (Makefile.am): Likewise.
72190         * modules/mkdir-p (Makefile.am): Likewise.
72191         * modules/mkdir (Makefile.am): Likewise.
72192         * modules/mkdtemp (Makefile.am): Likewise.
72193         * modules/mkstemp (Makefile.am): Likewise.
72194         * modules/mktime (Makefile.am): Likewise.
72195         * modules/modechange (Makefile.am): Likewise.
72196         * modules/mountlist (Makefile.am): Likewise.
72197         * modules/nanosleep (Makefile.am): Likewise.
72198         * modules/obstack (Makefile.am): Likewise.
72199         * modules/openat (Makefile.am): Likewise.
72200         * modules/pagealign_alloc (Makefile.am): Likewise.
72201         * modules/pathmax (Makefile.am): Likewise.
72202         * modules/physmem (Makefile.am): Likewise.
72203         * modules/poll (Makefile.am): Likewise.
72204         * modules/posixtm (Makefile.am): Likewise.
72205         * modules/posixver (Makefile.am): Likewise.
72206         * modules/putenv (Makefile.am): Likewise.
72207         * modules/quote (Makefile.am): Likewise.
72208         * modules/quotearg (Makefile.am): Likewise.
72209         * modules/raise (Makefile.am): Likewise.
72210         * modules/read-file (Makefile.am): Likewise.
72211         * modules/readline (Makefile.am): Likewise.
72212         * modules/readlink (Makefile.am): Likewise.
72213         * modules/readtokens (Makefile.am): Likewise.
72214         * modules/readutmp (Makefile.am): Likewise.
72215         * modules/realloc (Makefile.am): Likewise.
72216         * modules/regex (Makefile.am): Likewise.
72217         * modules/rename-dest-slash (Makefile.am): Likewise.
72218         * modules/rename (Makefile.am): Likewise.
72219         * modules/rijndael (Makefile.am): Likewise.
72220         * modules/rmdir (Makefile.am): Likewise.
72221         * modules/rpmatch (Makefile.am): Likewise.
72222         * modules/safe-read (Makefile.am): Likewise.
72223         * modules/safe-write (Makefile.am): Likewise.
72224         * modules/same-inode (Makefile.am): Likewise.
72225         * modules/same (Makefile.am): Likewise.
72226         * modules/save-cwd (Makefile.am): Likewise.
72227         * modules/savedir (Makefile.am): Likewise.
72228         * modules/setenv (Makefile.am): Likewise.
72229         * modules/settime (Makefile.am): Likewise.
72230         * modules/sha1 (Makefile.am): Likewise.
72231         * modules/sig2str (Makefile.am): Likewise.
72232         * modules/snprintf (Makefile.am): Likewise.
72233         * modules/stat-macros (Makefile.am): Likewise.
72234         * modules/stat-time (Makefile.am): Likewise.
72235         * modules/stdbool (Makefile.am): Likewise.
72236         * modules/stdint (Makefile.am): Likewise.
72237         * modules/stdlib-safer (Makefile.am): Likewise.
72238         * modules/stpcpy (Makefile.am): Likewise.
72239         * modules/stpncpy (Makefile.am): Likewise.
72240         * modules/strcase (Makefile.am): Likewise.
72241         * modules/strcasestr (Makefile.am): Likewise.
72242         * modules/strchrnul (Makefile.am): Likewise.
72243         * modules/strcspn (Makefile.am): Likewise.
72244         * modules/strdup (Makefile.am): Likewise.
72245         * modules/strerror (Makefile.am): Likewise.
72246         * modules/strftime (Makefile.am): Likewise.
72247         * modules/strndup (Makefile.am): Likewise.
72248         * modules/strnlen (Makefile.am): Likewise.
72249         * modules/strpbrk (Makefile.am): Likewise.
72250         * modules/strsep (Makefile.am): Likewise.
72251         * modules/strstr (Makefile.am): Likewise.
72252         * modules/strtod (Makefile.am): Likewise.
72253         * modules/strtoimax (Makefile.am): Likewise.
72254         * modules/strtok_r (Makefile.am): Likewise.
72255         * modules/strtol (Makefile.am): Likewise.
72256         * modules/strtoll (Makefile.am): Likewise.
72257         * modules/strtoul (Makefile.am): Likewise.
72258         * modules/strtoull (Makefile.am): Likewise.
72259         * modules/strtoumax (Makefile.am): Likewise.
72260         * modules/strverscmp (Makefile.am): Likewise.
72261         * modules/sys_socket (Makefile.am): Likewise.
72262         * modules/sys_stat (Makefile.am): Likewise.
72263         * modules/sysexits (Makefile.am): Likewise.
72264         * modules/time_r (Makefile.am): Likewise.
72265         * modules/timegm (Makefile.am): Likewise.
72266         * modules/timespec (Makefile.am): Likewise.
72267         * modules/tmpfile-safer (Makefile.am): Likewise.
72268         * modules/trim (Makefile.am): Likewise.
72269         * modules/unistd-safer (Makefile.am): Likewise.
72270         * modules/unlinkdir (Makefile.am): Likewise.
72271         * modules/unlocked-io (Makefile.am): Likewise.
72272         * modules/userspec (Makefile.am): Likewise.
72273         * modules/utime (Makefile.am): Likewise.
72274         * modules/utimecmp (Makefile.am): Likewise.
72275         * modules/utimens (Makefile.am): Likewise.
72276         * modules/vasnprintf (Makefile.am): Likewise.
72277         * modules/vasprintf (Makefile.am): Likewise.
72278         * modules/vsnprintf (Makefile.am): Likewise.
72279         * modules/xalloc (Makefile.am): Likewise.
72280         * modules/xgetcwd (Makefile.am): Likewise.
72281         * modules/xnanosleep (Makefile.am): Likewise.
72282         * modules/xreadlink (Makefile.am): Likewise.
72283         * modules/xstrtod (Makefile.am): Likewise.
72284         * modules/xstrtol (Makefile.am): Likewise.
72285         * modules/xstrtold (Makefile.am): Likewise.
72286         * modules/yesno (Makefile.am): Likewise.
72287         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72288
72289 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         * modules/error (Makefile.am): Distribute files through
72292         EXTRA_DIST, not lib_SOURCES.
72293
72294 2006-10-12  Eric Blake  <ebb9@byu.net>
72295
72296         * modules/error (Makefile.am): Distribute files in /lib.
72297         * modules/obstack (Makefile.am): Likewise.
72298
72299 2006-10-12  Bruno Haible  <bruno@clisp.org>
72300
72301         * modules/acl (Makefile.am): Distribute all files in lib/ through
72302         EXTRA_DIST.
72303         * modules/arcfour (Makefile.am): Likewise.
72304         * modules/arctwo (Makefile.am): Likewise.
72305         * modules/argmatch (Makefile.am): Likewise.
72306         * modules/argz (Makefile.am): Likewise.
72307         * modules/atexit (Makefile.am): Likewise.
72308         * modules/backupfile (Makefile.am): Likewise.
72309         * modules/c-strtod (Makefile.am): Likewise.
72310         * modules/c-strtold (Makefile.am): Likewise.
72311         * modules/calloc (Makefile.am): Likewise.
72312         * modules/canon-host (Makefile.am): Likewise.
72313         * modules/canonicalize (Makefile.am): Likewise.
72314         * modules/chdir-long (Makefile.am): Likewise.
72315         * modules/chdir-safer (Makefile.am): Likewise.
72316         * modules/check-version (Makefile.am): Likewise.
72317         * modules/chown (Makefile.am): Likewise.
72318         * modules/cloexec (Makefile.am): Likewise.
72319         * modules/close-stream (Makefile.am): Likewise.
72320         * modules/closeout (Makefile.am): Likewise.
72321         * modules/crc (Makefile.am): Likewise.
72322         * modules/cycle-check (Makefile.am): Likewise.
72323         * modules/des (Makefile.am): Likewise.
72324         * modules/dirfd (Makefile.am): Likewise.
72325         * modules/dirname (Makefile.am): Likewise.
72326         * modules/dup2 (Makefile.am): Likewise.
72327         * modules/euidaccess (Makefile.am): Likewise.
72328         * modules/exclude (Makefile.am): Likewise.
72329         * modules/exitfail (Makefile.am): Likewise.
72330         * modules/fcntl-safer (Makefile.am): Likewise.
72331         * modules/file-type (Makefile.am): Likewise.
72332         * modules/fileblocks (Makefile.am): Likewise.
72333         * modules/filemode (Makefile.am): Likewise.
72334         * modules/filenamecat (Makefile.am): Likewise.
72335         * modules/fnmatch (Makefile.am): Likewise.
72336         * modules/fopen-safer (Makefile.am): Likewise.
72337         * modules/fpending (Makefile.am): Likewise.
72338         * modules/fprintftime (Makefile.am): Likewise.
72339         * modules/free (Makefile.am): Likewise.
72340         * modules/fsusage (Makefile.am): Likewise.
72341         * modules/ftruncate (Makefile.am): Likewise.
72342         * modules/fts (Makefile.am): Likewise.
72343         * modules/gc (Makefile.am): Likewise.
72344         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72345         * modules/getaddrinfo (Makefile.am): Likewise.
72346         * modules/getcwd (Makefile.am): Likewise.
72347         * modules/getdelim (Makefile.am): Likewise.
72348         * modules/getdomainname (Makefile.am): Likewise.
72349         * modules/getgroups (Makefile.am): Likewise.
72350         * modules/gethostname (Makefile.am): Likewise.
72351         * modules/gethrxtime (Makefile.am): Likewise.
72352         * modules/getline (Makefile.am): Likewise.
72353         * modules/getloadavg (Makefile.am): Likewise.
72354         * modules/getlogin_r (Makefile.am): Likewise.
72355         * modules/getopt (Makefile.am): Likewise.
72356         * modules/getpass (Makefile.am): Likewise.
72357         * modules/getpass-gnu (Makefile.am): Likewise.
72358         * modules/getsubopt (Makefile.am): Likewise.
72359         * modules/gettime (Makefile.am): Likewise.
72360         * modules/gettimeofday (Makefile.am): Likewise.
72361         * modules/getugroups (Makefile.am): Likewise.
72362         * modules/getusershell (Makefile.am): Likewise.
72363         * modules/glob (Makefile.am): Likewise.
72364         * modules/group-member (Makefile.am): Likewise.
72365         * modules/hard-locale (Makefile.am): Likewise.
72366         * modules/hash (Makefile.am): Likewise.
72367         * modules/hmac-md5 (Makefile.am): Likewise.
72368         * modules/hmac-sha1 (Makefile.am): Likewise.
72369         * modules/human (Makefile.am): Likewise.
72370         * modules/idcache (Makefile.am): Likewise.
72371         * modules/imaxabs (Makefile.am): Likewise.
72372         * modules/imaxdiv (Makefile.am): Likewise.
72373         * modules/inet_ntop (Makefile.am): Likewise.
72374         * modules/inet_pton (Makefile.am): Likewise.
72375         * modules/inttostr (Makefile.am): Likewise.
72376         * modules/isapipe (Makefile.am): Likewise.
72377         * modules/lchown (Makefile.am): Likewise.
72378         * modules/long-options (Makefile.am): Likewise.
72379         * modules/lstat (Makefile.am): Likewise.
72380         * modules/malloc (Makefile.am): Likewise.
72381         * modules/mathl (Makefile.am): Likewise.
72382         * modules/mbchar (Makefile.am): Likewise.
72383         * modules/md2 (Makefile.am): Likewise.
72384         * modules/md4 (Makefile.am): Likewise.
72385         * modules/md5 (Makefile.am): Likewise.
72386         * modules/memcasecmp (Makefile.am): Likewise.
72387         * modules/memchr (Makefile.am): Likewise.
72388         * modules/memcmp (Makefile.am): Likewise.
72389         * modules/memcoll (Makefile.am): Likewise.
72390         * modules/memcpy (Makefile.am): Likewise.
72391         * modules/memmem (Makefile.am): Likewise.
72392         * modules/memmove (Makefile.am): Likewise.
72393         * modules/mempcpy (Makefile.am): Likewise.
72394         * modules/memrchr (Makefile.am): Likewise.
72395         * modules/memset (Makefile.am): Likewise.
72396         * modules/memxor (Makefile.am): Likewise.
72397         * modules/mkancesdirs (Makefile.am): Likewise.
72398         * modules/mkdir (Makefile.am): Likewise.
72399         * modules/mkdir-p (Makefile.am): Likewise.
72400         * modules/mkdtemp (Makefile.am): Likewise.
72401         * modules/mkstemp (Makefile.am): Likewise.
72402         * modules/mktime (Makefile.am): Likewise.
72403         * modules/modechange (Makefile.am): Likewise.
72404         * modules/mountlist (Makefile.am): Likewise.
72405         * modules/nanosleep (Makefile.am): Likewise.
72406         * modules/openat (Makefile.am): Likewise.
72407         * modules/pagealign_alloc (Makefile.am): Likewise.
72408         * modules/physmem (Makefile.am): Likewise.
72409         * modules/poll (Makefile.am): Likewise.
72410         * modules/posixtm (Makefile.am): Likewise.
72411         * modules/posixver (Makefile.am): Likewise.
72412         * modules/putenv (Makefile.am): Likewise.
72413         * modules/quote (Makefile.am): Likewise.
72414         * modules/quotearg (Makefile.am): Likewise.
72415         * modules/raise (Makefile.am): Likewise.
72416         * modules/read-file (Makefile.am): Likewise.
72417         * modules/readline (Makefile.am): Likewise.
72418         * modules/readlink (Makefile.am): Likewise.
72419         * modules/readtokens (Makefile.am): Likewise.
72420         * modules/readutmp (Makefile.am): Likewise.
72421         * modules/realloc (Makefile.am): Likewise.
72422         * modules/regex (Makefile.am): Likewise.
72423         * modules/rename (Makefile.am): Likewise.
72424         * modules/rename-dest-slash (Makefile.am): Likewise.
72425         * modules/rijndael (Makefile.am): Likewise.
72426         * modules/rmdir (Makefile.am): Likewise.
72427         * modules/rpmatch (Makefile.am): Likewise.
72428         * modules/safe-read (Makefile.am): Likewise.
72429         * modules/safe-write (Makefile.am): Likewise.
72430         * modules/same (Makefile.am): Likewise.
72431         * modules/save-cwd (Makefile.am): Likewise.
72432         * modules/savedir (Makefile.am): Likewise.
72433         * modules/setenv (Makefile.am): Likewise.
72434         * modules/settime (Makefile.am): Likewise.
72435         * modules/sha1 (Makefile.am): Likewise.
72436         * modules/sig2str (Makefile.am): Likewise.
72437         * modules/snprintf (Makefile.am): Likewise.
72438         * modules/stdlib-safer (Makefile.am): Likewise.
72439         * modules/stpcpy (Makefile.am): Likewise.
72440         * modules/stpncpy (Makefile.am): Likewise.
72441         * modules/strcase (Makefile.am): Likewise.
72442         * modules/strcasestr (Makefile.am): Likewise.
72443         * modules/strchrnul (Makefile.am): Likewise.
72444         * modules/strcspn (Makefile.am): Likewise.
72445         * modules/strdup (Makefile.am): Likewise.
72446         * modules/strerror (Makefile.am): Likewise.
72447         * modules/strftime (Makefile.am): Likewise.
72448         * modules/strndup (Makefile.am): Likewise.
72449         * modules/strnlen (Makefile.am): Likewise.
72450         * modules/strpbrk (Makefile.am): Likewise.
72451         * modules/strsep (Makefile.am): Likewise.
72452         * modules/strstr (Makefile.am): Likewise.
72453         * modules/strtod (Makefile.am): Likewise.
72454         * modules/strtoimax (Makefile.am): Likewise.
72455         * modules/strtok_r (Makefile.am): Likewise.
72456         * modules/strtol (Makefile.am): Likewise.
72457         * modules/strtoll (Makefile.am): Likewise.
72458         * modules/strtoul (Makefile.am): Likewise.
72459         * modules/strtoull (Makefile.am): Likewise.
72460         * modules/strtoumax (Makefile.am): Likewise.
72461         * modules/strverscmp (Makefile.am): Likewise.
72462         * modules/time_r (Makefile.am): Likewise.
72463         * modules/timegm (Makefile.am): Likewise.
72464         * modules/tmpfile-safer (Makefile.am): Likewise.
72465         * modules/unistd-safer (Makefile.am): Likewise.
72466         * modules/unlinkdir (Makefile.am): Likewise.
72467         * modules/userspec (Makefile.am): Likewise.
72468         * modules/utime (Makefile.am): Likewise.
72469         * modules/utimecmp (Makefile.am): Likewise.
72470         * modules/utimens (Makefile.am): Likewise.
72471         * modules/vasnprintf (Makefile.am): Likewise.
72472         * modules/vasprintf (Makefile.am): Likewise.
72473         * modules/vsnprintf (Makefile.am): Likewise.
72474         * modules/xalloc (Makefile.am): Likewise.
72475         * modules/xgetcwd (Makefile.am): Likewise.
72476         * modules/xnanosleep (Makefile.am): Likewise.
72477         * modules/xreadlink (Makefile.am): Likewise.
72478         * modules/xstrtod (Makefile.am): Likewise.
72479         * modules/xstrtol (Makefile.am): Likewise.
72480         * modules/xstrtold (Makefile.am): Likewise.
72481         * modules/yesno (Makefile.am): Likewise.
72482
72483 2006-10-12  Jim Meyering  <jim@meyering.net>
72484
72485         * m4/getloadavg.m4: Revert the change below.
72486
72487         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72488         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72489         fail with a symlink, which is what coreutils' ./bootstrap now
72490         creates by default.
72491
72492 2006-10-12  Bruno Haible  <bruno@clisp.org>
72493
72494         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72495         mingw.
72496         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72497         MSVC and mingw explicitly.
72498
72499 2006-10-11  Simon Josefsson  <jas@extundo.com>
72500             Bruno Haible  <bruno@clisp.org>
72501
72502         Add support for multiple gnulib-tool invocations in the scope of a
72503         single configure.ac file.
72504         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72505         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72506         with the same contents as the _LIBADD variable.
72507         (func_emit_initmacro_start, func_emit_initmacro_end,
72508         func_emit_initmacro_done): New functions.
72509         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72510         gl_LIBOBJS and gl_LTLIBOBJS.
72511
72512 2006-10-11  Bruno Haible  <bruno@clisp.org>
72513
72514         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72515         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72516         autoreconf. Instead, invoke autopoint explicitly but move back the
72517         *.m4 files from gnulib.
72518
72519 2006-10-11  Bruno Haible  <bruno@clisp.org>
72520
72521         * gnulib-tool (func_usage): Make module names after --create-testdir
72522         optional.
72523         (func_create_testdir): If no module was specified, use nearly all
72524         modules.
72525
72526 2006-10-12  Jim Meyering  <jim@meyering.net>
72527
72528         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72529         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72530         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72531         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72532         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72533         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72534         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72535         (fts_set_stat_required): New function.
72536         (fts_open): Defer the calls to fts_stat, if possible or requested.
72537         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72538         into fts_stat itself.
72539         (fts_read): Perform any required (deferred) fts_stat call.
72540         (fts_build): Likewise, for the directory we're about to open and read.
72541         In the readdir loop, carefully decide whether each entry will require
72542         an eventual call to fts_stat, using dirent.d_type info if available.
72543         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72544         a command line argument into this function.  Update all callers.
72545         Map a return value of FTS_DOT to FTS_D for a command line argument.
72546         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72547         Thanks to Miklos Szeredi for his tenacity and for the initial
72548         bug report about "find" failing on a FUSE-based file system.
72549
72550         * lib/fts.c (fts_open): Use consistent indentation.
72551
72552 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72555         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72556         reported by Jim Meyering.  All uses of cache variables renamed
72557         to match Autoconf's.
72558         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72559         the other one.
72560
72561         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72562         Fix misspelling in diagnostic.
72563
72564 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72565
72566         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72567         defined.  Problem reported by Matthew Woehlke.
72568
72569         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72570         Add support for Tandem NonStop R series.
72571         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72572         Use new macro.
72573
72574         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72575         (has_trailing_slash): Omit size arg; all callers changed.
72576         Omit 'inline', since it doesn't help performance and we'd
72577         need to configure it.
72578         Don't count //, ///, etc. as having a trailing slash.
72579         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72580         (rpl_rename_dest_slash): On failure, use rename's errno rather
72581         than (in some cases) an incorrect or junk errno.
72582         Simplify code by removing need to compute length; this does
72583         cause it to make two passes instead of one over the file name,
72584         but it's worth it.
72585
72586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72587         change, since Autoconf's version may no longer be appropriate now
72588         that we are using CVS Autoconf's version.  Add support for Tandem.
72589
72590 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72591             Bruno Haible  <bruno@clisp.org>
72592
72593         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72594         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72595         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72596         gl_AC_TYPE_LONG_LONG.
72597
72598         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72599         instead of HAVE_LONG_LONG.
72600         * lib/printf-args.c (printf_fetchargs): Likewise.
72601         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72602         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72603         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72604         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72605         gl_AC_TYPE_LONG_LONG.
72606
72607 2006-10-11  Bruno Haible  <bruno@clisp.org>
72608
72609         * m4/longlong.m4: Add comments.
72610         * m4/ulonglong.m4: Likewise.
72611
72612 2006-10-10  Bruno Haible  <bruno@clisp.org>
72613
72614         Make it possible to #define stpcpy, strdup to aliases.
72615         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72616         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72617
72618 2006-10-10  Bruno Haible  <bruno@clisp.org>
72619
72620         Make it possible to #define gcd to an alias.
72621         * lib/gcd.c: Include config.h.
72622
72623 2006-10-10  Bruno Haible  <bruno@clisp.org>
72624
72625         Make it possible to #define c_isascii to an alias.
72626         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72627         defined. Undefine the macros before defining them, to avoid gcc
72628         warnings.
72629         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72630         define NO_C_CTYPE_MACROS early.
72631
72632 2006-10-10  Bruno Haible  <bruno@clisp.org>
72633
72634         Make it possible to #define set_program_name to an alias.
72635         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72636         ENABLE_RELOCATABLE early.
72637
72638 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72641         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72642         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72643         More generally, don't assume that 64-bit signed int is available
72644         if unsigned int is, and vice versa.
72645         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72646         unsigned symbols, not on their signed counterparts.
72647         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72648         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72649         (UINT64_C, UINTMAX_C):
72650         Likewise.
72651         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72652         unsigned counterparts.
72653         (Have_long_long, Unsigned): New macros.
72654         (Int): Renamed from INT.
72655         (strtoimax): Use the new macros.
72656         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72657         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72658         * modules/inttypes (inttypes.h): Substitute
72659         HAVE_UNSIGNED_LONG_LONG_INT.
72660         * modules/stdint (stdint.h): Likewise.
72661         (Files): Add m4/ulonglong.m4.
72662
72663 2006-10-10  Bruno Haible  <bruno@clisp.org>
72664
72665         Fix a gcc -Wshadow warning.
72666         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72667         to 'bucket'.
72668         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72669         gl_linked_indexof_from_to): Likewise.
72670         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72671         Likewise.
72672         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72673         Likewise.
72674         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72675         Reported by Eric Blake.
72676
72677 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72678
72679         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72680         for NetBSD.  Problem reported by Bruno Haible.
72681
72682 2006-10-09  Jim Meyering  <jim@meyering.net>
72683
72684         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72685         Patch from Bruno Haible.
72686
72687 2006-10-09  Jim Meyering  <jim@meyering.net>
72688
72689         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72690         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72691         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72692
72693 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         Don't include <config.h> twice; this doesn't work in some cases,
72696         e.g., when config.h has "#define intmax_t long long int" and
72697         we include <config.h>, <inttypes.h>, <config.h> in that order.
72698         Problem reported by Matthew Woehlke in:
72699         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72700         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72701         * lib/fts-cycle.c: Don't include config.h.
72702         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72703         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72704         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72705         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72706         inttypes.h.
72707         * lib/xstrtoumax.c: Likewise.
72708         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72709         __strtol and the like, so that this module is more like its siblings.
72710         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72711         Remove; no longer needed now that we assume gnulib inttypes.h.
72712
72713 2006-10-08  Bruno Haible  <bruno@clisp.org>
72714
72715         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72716         option.
72717
72718 2006-10-07  Jim Meyering  <jim@meyering.net>
72719
72720         * modules/inttypes (inttypes.h): Revert what seems to have been
72721         an inadvertent part of today's change: use "|", not "/" in the
72722         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72723
72724 2006-10-07  Bruno Haible  <bruno@clisp.org>
72725
72726         * modules/sublist: New file.
72727
72728 2006-10-07  Bruno Haible  <bruno@clisp.org>
72729
72730         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72731         * modules/argz (argz.h): Likewise.
72732         * modules/arpa_inet (arpa/inet.h): Likewise.
72733         * modules/byteswap (byteswap.h): Likewise.
72734         * modules/configmake (configmake.h): Likewise.
72735         * modules/fcntl (fcntl.h): Likewise.
72736         * modules/fnmatch (fnmatch.h): Likewise.
72737         * modules/getopt (getopt.h): Likewise.
72738         * modules/glob (glob.h): Likewise.
72739         * modules/inttypes (inttypes.h): Likewise.
72740         * modules/netinet_in (netinet/in.h): Likewise.
72741         * modules/poll (poll.h): Likewise.
72742         * modules/stdbool (stdbool.h): Likewise.
72743         * modules/stdint (stdint.h): Likewise.
72744         * modules/sys_select (sys/select.h): Likewise.
72745         * modules/sys_socket (sys/socket.h): Likewise.
72746         * modules/sys_stat (sys/stat.h): Likewise.
72747         * modules/sysexits (sysexits.h): Likewise.
72748         * modules/unistd (unistd.h): Likewise.
72749         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72750         Add a "DO NOT EDIT" comment to the generated file.
72751         (func_import): Likewise for gnulib-comp.m4.
72752
72753 2006-10-07  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/gl_sublist.h: New file.
72756         * lib/gl_sublist.c: New file.
72757
72758 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72759
72760         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72761         name (relative to the original working directory) and the file
72762         name component (relative to the temporary working directory).  All
72763         callers changed.
72764         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72765         * lib/mkdir-p.c (make_dir_parents): Likewise.
72766         * lib/mkdir-p.h (make_dir_parents): Likewise.
72767
72768 2006-10-06  Eric Blake  <ebb9@byu.net>
72769
72770         Define several macros for use by the clean-temp module.
72771         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72772         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72773         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72774
72775         * lib/clean-temp.h (close_stream_temp): New declaration.
72776         * lib/clean-temp.c (includes): Pull in headers according to what
72777         other modules are in use.
72778         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72779
72780 2006-10-06  Bruno Haible  <bruno@clisp.org>
72781
72782         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72783         instead of fopen, fwriteerror.
72784
72785 2006-10-06  Bruno Haible  <bruno@clisp.org>
72786
72787         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72788         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72789         int.
72790         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72791         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72792         Return an error indicator.
72793         Suggested by Eric Blake.
72794
72795 2006-10-06  Bruno Haible  <bruno@clisp.org>
72796
72797         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72798         Reported by Eric Blake.
72799
72800 2006-10-06  Bruno Haible  <bruno@clisp.org>
72801
72802         * modules/closeout (Description): Mention stderr too.
72803
72804 2006-10-06  Bruno Haible  <bruno@clisp.org>
72805         and Paul Eggert  <eggert@cs.ucla.edu>
72806
72807         * lib/closeout.c (close_stdout): Also close stderr.
72808         * lib/closeout.h: Update comment.
72809
72810 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72813         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72814         * lib/dirchownmod.c: Include lchown.h.
72815         * lib/lchown.c: Don't include files that lchown.h now includes.
72816         Don't declare chown, since lchown.h now does that.
72817         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72818         (lchown): Define to rpl_chown if lchown is declared but
72819         does not exist.  Declare using a prototype if lchown is not
72820         declared.  Add a copyright notice.
72821         * lib/mkstemp.h: Include <unistd.h>.
72822         * lib/openat.c: Include lchown.h.
72823
72824         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72825         we now test for that separately.
72826         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72827         rather than O_NOFOLLOW, when testing whether it's possible to
72828         avoid a race condition reliably.
72829         * lib/savewd.c (savewd_chdir): Likewise.
72830
72831         Remove macros that are no longer needed now that stdint.h is
72832         reliable.
72833         * lib/fsusage.c (UINTMAX_MAX): Remove.
72834         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72835         * lib/utimecmp.c (SIZE_MAX): Remove.
72836
72837         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72838
72839         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72840         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72841         O_NOATIME works.
72842
72843 2006-10-05  Bruno Haible  <bruno@clisp.org>
72844
72845         * lib/gl_list.h (gl_sortedlist_search_from_to,
72846         gl_sortedlist_indexof_from_to): New declarations.
72847         (gl_list_implementation): New fields sortedlist_search_from_to,
72848         sortedlist_indexof_from_to.
72849         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72850         inline functions.
72851         * lib/gl_list.c (gl_sortedlist_search_from_to,
72852         gl_sortedlist_indexof_from_to): New functions.
72853         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72854         function.
72855         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72856         (gl_array_sortedlist_search_from_to): New function.
72857         (gl_array_list_implementation): Update.
72858         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72859         function.
72860         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72861         (gl_carray_sortedlist_search_from_to): New function.
72862         (gl_carray_list_implementation): Update.
72863         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72864         gl_linked_sortedlist_indexof_from_to): New functions.
72865         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72866         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72867         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72868         gl_tree_sortedlist_indexof_from_to): New functions.
72869         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72870         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72871         Update.
72872         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72873         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72874         Update.
72875
72876 2006-10-05  Bruno Haible  <bruno@clisp.org>
72877
72878         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72879         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72880         (struct gl_list_implementation): Add fields search_from_to,
72881         indexof_from_to. Remove fields search, indexof.
72882         (gl_list_search): Use the search_from_to method.
72883         (gl_list_search_from, gl_list_search_from_to): New functions.
72884         (gl_list_indexof): Use the indexof_from_to method.
72885         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72886         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72887         (gl_list_search_from, gl_list_search_from_to): New functions.
72888         (gl_list_indexof): Use the indexof_from_to method.
72889         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72890         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72891         gl_array_indexof. Add start_index, end_index arguments.
72892         (gl_array_search_from_to): Renamed from gl_array_search. Add
72893         start_index, end_index arguments.
72894         (gl_array_remove, gl_array_list_implementation): Update.
72895         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72896         gl_carray_indexof. Add start_index, end_index arguments.
72897         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72898         start_index, end_index arguments.
72899         (gl_carray_remove, gl_carray_list_implementation): Update.
72900         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72901         gl_linked_search. Add start_index, end_index arguments.
72902         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72903         start_index, end_index arguments.
72904         (gl_linked_remove): Update.
72905         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72906         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72907         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72908         field to 'size_t'.
72909         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72910         gl_tree_search. Add start_index, end_index arguments.
72911         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72912         start_index, end_index arguments.
72913         (gl_tree_remove): Update.
72914         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72915         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72916         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72917         function.
72918         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72919         gl_tree_search. Add start_index, end_index arguments.
72920         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72921         start_index, end_index arguments.
72922         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72923         Update.
72924         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72925
72926 2006-10-05  Bruno Haible  <bruno@clisp.org>
72927
72928         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72929
72930         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72931         fwriteerror_temp): New declarations.
72932         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72933         (descriptors): New variable.
72934         (cleanup): First, close the descriptors.
72935         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72936         fclose_temp, fwriteerror_temp): New functions.
72937
72938 2006-10-04  Jim Meyering  <jim@meyering.net>
72939
72940         * lib/fts.c (fts_open): Tiny comment change.
72941
72942 2006-10-04  Bruno Haible  <bruno@clisp.org>
72943
72944         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72945         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72946         gl_LOCK_BODY.
72947         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72948         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72949         gl_LOCK_EARLY_BODY.
72950         (gl_LOCK): Require gl_LOCK_BODY.
72951
72952 2006-10-04  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72955         (gl_oset_search_atleast): New declaration.
72956         (struct gl_oset_implementation): Add field 'search_atleast'.
72957         (gl_oset_search_atleast): New inline function.
72958         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72959         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72960         (gl_array_oset_implementation): Update.
72961         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72962         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72963         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72964
72965 2006-10-04  Bruno Haible  <bruno@clisp.org>
72966
72967         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72968
72969 2006-10-03  Bruno Haible  <bruno@clisp.org>
72970
72971         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72972         from gl_avltreehash_list_implementation.
72973
72974 2006-10-03  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/gl_oset.c (gl_oset_add): Fix return type.
72977
72978 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72979
72980         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72981
72982 2006-10-02  Eric Blake  <ebb9@byu.net>
72983
72984         * modules/strnlen (Depends-on): Add extensions.
72985
72986 2006-10-02  Eric Blake  <ebb9@byu.net>
72987
72988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72989         definition in 2.60+.
72990
72991 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72992
72993         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72994         checks.
72995
72996 2006-10-02  Bruno Haible  <bruno@clisp.org>
72997
72998         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72999         to the AUTOMAKE_OPTIONS.
73000         Reported by Jim Meyering.
73001
73002 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         Work around bug in Solaris 10 /proc file system:
73005         /proc/self/fd/NNN/.. isn't the parent directory of
73006         the directory whose file descriptor is NNN.  This needs to
73007         be worked around at run time, not compile time, since a
73008         program might be built on Solaris 8, where things work, and
73009         run on Solaris 10.
73010         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73011         to use the following interface instead:
73012         (OPENAT_BUFFER_SIZE): New macro.
73013         (openat_proc_name): New function.
73014         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73015         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73016         Likewise.
73017         * lib/openat-proc.c: New file.
73018         * modules/openat (Files): Add lib/openat-proc.c.
73019         (Depends-on): Add same-inode, stdbool.
73020         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73021
73022 2006-09-29  Bruno Haible  <bruno@clisp.org>
73023
73024         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73025         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73026         argument. Set stdout_closed before testing for ferror, not after.
73027         (fwriteerror, fwriteerror_no_ebadf): New functions.
73028
73029 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73030
73031         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73032
73033 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73034
73035         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73036         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73037
73038 2006-09-28  Jim Meyering  <jim@meyering.net>
73039
73040         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73041         Include <unistd.h>.
73042
73043 2006-09-28  Bruno Haible  <bruno@clisp.org>
73044
73045         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73046         * modules/linkedhash-list (Depends-on): Likewise.
73047         * modules/rbtreehash-list (Depends-on): Likewise.
73048
73049 2006-09-28  Bruno Haible  <bruno@clisp.org>
73050
73051         * lib/strndup.h: Simplify the redefinition of strndup.
73052         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73053         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73054
73055 2006-09-28  Bruno Haible  <bruno@clisp.org>
73056
73057         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73058         * lib/gl_linkedhash_list.c: Likewise.
73059         * lib/gl_rbtreehash_list.c: Likewise.
73060
73061 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73064         getaddrinfo.
73065
73066         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73067         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73068         it causes <stdio_ext.h> to cause a compile-time error.
73069         Problem reported by Nelson H. F. Beebe.
73070         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73071         of HAVE_DECL___PENDING.
73072
73073         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73074         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73075         declaration.
73076
73077 2006-09-27  Jim Meyering  <jim@meyering.net>
73078
73079         This file could end up with a definition for a function
73080         named __strndup, rather than rpl_strndup on a system with
73081         incomplete weak_alias support.
73082         * lib/strndup.c (strndup): Rename from __strndup.
73083         Remove #defines that used to map __strndup to strndup.
73084         Don't use K&R prototypes.
73085         Remove LIBC-related code, since this file is not sync'd with glibc.
73086         * lib/strndup.h: Revamp, accordingly.
73087         * m4/strndup.m4: Modernize.
73088
73089 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73090
73091         * modules/savewd (Depends-on): Add 'raise'.
73092         * lib/savewd.c: Include <signal.h>, for 'raise'.
73093
73094 2006-09-26  Jim Meyering  <jim@meyering.net>
73095
73096         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73097         when we detect Darwin 8.7.0's acl_get_file bug.
73098         Rearrange to perform the new (below) run-test while $LIBS
73099         contains any acl-related library.  Set USE_ACL at the end.
73100         (gl_ACL_GET_FILE): New function.
73101
73102 2006-09-26  Eric Blake  <ebb9@byu.net>
73103
73104         * lib/verror.c: Include <config.h> unconditionally.
73105
73106 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73107
73108         * modules/clock-time (Maintainer): Add self.
73109         * modules/getlogin_r (Depends-on): Add extensions.
73110
73111 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73112
73113         * modules/clock-time: New module.
73114         * modules/nanosleep (Depends-on): Add clock-time.
73115         * modules/gethrxtime (Depends-on): Likewise.
73116         * modules/gettime (Depends-on): Likewise.
73117         * modules/settime (Depends-on): Likewise.
73118
73119         * modules/fts-lgpl: Depend on openat.
73120         * modules/mkancesdirs: Depend on savewd.
73121         * modules/mkdir-p: Likewise.
73122
73123 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73124
73125         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73126
73127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73128         `gl_have_arbitrary_file_name_length_limit' to
73129         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73130         actually works between configure runs.
73131
73132 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73133             Bruno Haible  <bruno@clisp.org>
73134
73135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73136
73137 2006-09-25  Jim Meyering  <jim@meyering.net>
73138
73139         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73140         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73141
73142 2006-09-25  Eric Blake  <ebb9@byu.net>
73143
73144         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73145         exec's in 2006-09-18 patch when shuffling fds.
73146
73147 2006-09-25  Bruno Haible  <bruno@clisp.org>
73148
73149         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73150         Reported by Jim Meyering.
73151
73152 2006-09-24  Jim Meyering  <jim@meyering.net>
73153
73154         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73155         compare a pointer against a literal "0".  That caused failures with
73156         at least HP-UX's hpcc.
73157
73158 2006-09-22  Simon Josefsson  <jas@extundo.com>
73159
73160         * modules/gc-sha1:
73161         * modules/gc-md4:
73162         * modules/gc-hmac-sha1:
73163         * modules/gc-hmac-md5:
73164         * modules/gc-des:
73165         * modules/gc-arcfour: Distribute more files.
73166
73167 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73168
73169         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73170         (gl_linked_iterator_from_to): Initialize struct completely.
73171         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73172         (gl_tree_iterator_from_to): Likewise
73173         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73174         * lib/gl_array_list.c [lint] (gl_array_iterator)
73175         (gl_array_iterator_from_to): Likewise.
73176         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73177         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73178         (gl_carray_iterator_from_to): Likewise.
73179
73180         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73181         * lib/md4.c (md4_process_block): Remove unused variable.
73182         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73183         parentheses for clarity.
73184
73185 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73186
73187         * modules/bison-i18n (Depends-on): Add gettext.
73188
73189 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73190
73191         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73192         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73193         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73194         also add missing comma that caused broken test.
73195         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73196         stdlib.h, for `abort'.
73197         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73198         variables.
73199         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73200         include unistd.h if present, for `rmdir'.
73201         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73202         variables.
73203         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73204         in the process include standard headers for prototypes.
73205         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73206         gets declared on GNU/Linux.
73207         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73208         unistd.h, for `rmdir'.
73209         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73210
73211         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73212         always true.
73213         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73214
73215         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73216
73217 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73218
73219         * gnulib-tool (func_version): Create output all at once.  This
73220         may help avoid triggering unnecessary SIGPIPEs, and at any
73221         rate it doesn't hurt.
73222
73223 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73224             Bruno Haible  <bruno@clisp.org>
73225
73226         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73227         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73228         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73229
73230         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73231         (gl_FUNC_VASPRINTF): Invoke it.
73232
73233 2006-09-22  Bruno Haible  <bruno@clisp.org>
73234
73235         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73236         getloadavg.c as first argument.
73237
73238 2006-09-22  Bruno Haible  <bruno@clisp.org>
73239
73240         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73241         at the beginning of the gl_INIT macro.
73242         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73243         gl_GETLOADAVG.
73244
73245 2006-09-22  Bruno Haible  <bruno@clisp.org>
73246
73247         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73248         module.
73249         Suggested by Ralf Wildenhues.
73250
73251 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         Import this patch from libc:
73254
73255         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73256
73257         * lib/regex_internal.c (re_string_reconstruct): Handle
73258         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73259         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73260         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73261         re_string_context_at.
73262
73263         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73264         now requires it.
73265         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73266         gl_REGEX now does it for us.
73267         (gl_REGEX): Add test taken from
73268         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73269
73270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73271         Check that large offsets work.  Modernize Autoconf usages.
73272         Prefer "yes" to mean a good thing rather than a bad.
73273         Don't put "#define mkstemp" in config.h, as this might interfere
73274         with standard system headers that "#define mkstemp mkstemp64".
73275
73276         * modules/mkstemp (Depends-on): Add extensions, so that
73277         mkstemp is visible on some platforms.
73278         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73279         (Include): Change to "mkstemp.h" from <stdlib.h>.
73280         (Files): Add mkstemp.h.
73281
73282         * lib/mkstemp.h: New file, since some standard headers
73283         #define mkstemp.
73284         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73285         Include "mkstemp.h".
73286         Make the _LIBC code resemble glibc original more,
73287         e.g., use K&R style.
73288         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73289         (mkstemp): Remove, since mkstemp.h does this for us.
73290         * lib/stdlib--.h: Include mkstemp.h.
73291
73292         Import this patch from libc:
73293
73294         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73295
73296         * lib/tempname.c (__gen_tempname): Change attempts_min
73297         into a macro.  Use preprocessor to decide how to initialize
73298         attempts [Coverity CID 67].
73299
73300 2006-09-20  Bruno Haible  <bruno@clisp.org>
73301
73302         * lib/mkdtemp.c: Import from libc.
73303         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73304                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73305                 attempts_min into a macro.  Use preprocessor to decide how to
73306                 initialize attempts [Coverity CID 67].
73307         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73308                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73309                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73310
73311 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73312
73313         * gnulib-tool (func_exit): New function, to allow to pass the
73314         exit status portably through the trap.  Use everywhere.
73315         (--help, --version): Signal a write error.
73316         (trap): catch SIGPIPE, for write errors.
73317         Exit at the end of the trap, with the correct exit status.
73318
73319 2006-09-19  Karl Berry  <karl@gnu.org>
73320
73321         * doc/gnulib.texi: note about the license texinfo files.
73322
73323 2006-09-19  Eric Blake  <ebb9@byu.net>
73324
73325         * gnulib-tool: Avoid space-tab.
73326
73327 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73330         that prevented coreutils 6.1 from building.  Problem reported
73331         by Petter Reinholdtsen.
73332
73333 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * gnulib-tool (avoidlist): Fix typo that broke options like
73336         --avoid=lock that are used by coreutils bootstrap.
73337
73338 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73339
73340         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73341         more systematically.
73342
73343 2006-09-18  Jim Meyering  <jim@meyering.net>
73344
73345         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73346
73347 2006-09-18  Bruno Haible  <bruno@clisp.org>
73348
73349         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73350
73351 2006-09-18  Bruno Haible  <bruno@clisp.org>
73352
73353         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73354         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73355         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73356         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73357         * m4/gettext.m4: Require autoconf >= 2.52.
73358         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73359         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73360         of gl_cv_header_inttypes_h.
73361
73362 2006-09-18  Bruno Haible  <bruno@clisp.org>
73363
73364         * lib/javaversion.c: Include configmake.h.
73365
73366 2006-09-18  Bruno Haible  <bruno@clisp.org>
73367
73368         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73369         avoid that the while loops be executed in a subshell.
73370
73371 2006-09-18  Bruno Haible  <bruno@clisp.org>
73372
73373         * MODULES.html.sh (func_module): Break long lines.
73374         Suggested by Bruce Korb <bkorb@gnu.org>.
73375
73376 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73377
73378         Speed up by a factor of 1.12.
73379         * gnulib-tool (nl): New variable.
73380         (func_import): Rewrite include directive extraction to only read each
73381         directive once.
73382
73383 2006-09-17  Bruno Haible  <bruno@clisp.org>
73384
73385         * modules/javaversion (Makefile.am): Remove DEFS setting.
73386         (Depends-on): Add configmake, for PKGDATADIR definition.
73387
73388 2006-09-17  Bruno Haible  <bruno@clisp.org>
73389
73390         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73391
73392 2006-09-17  Bruno Haible  <bruno@clisp.org>
73393
73394         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73395         (func_modules_transitive_closure, func_modules_add_dummy,
73396         func_modules_to_filelist, func_import, func_create_testdir,
73397         func_create_megatestdir, ...): Use it wherever possible.
73398         Suggested by Ralf Wildenhues.
73399
73400 2006-09-16  Karl Berry  <karl@gnu.org>
73401
73402         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73403         to avoid sectioning errors.
73404         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73405         [ifinfo]: blank line after @center-ed titles.
73406         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73407         Spell FSF address consistently with others.
73408         (These changes approved by rms.)
73409
73410 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73411
73412         Speed up by a factor of 1.61.
73413         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73414         already checked module names again.
73415
73416 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73417
73418         Speed up by a factor of 1.13.
73419         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73420         for new_files, and the input to func_add_or_update.
73421
73422 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73423
73424         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73425         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73426
73427 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         * modules/mkancesdirs (Depends-on): Add fcntl.
73430         * modules/savewd: New file.
73431         * MODULES.html.sh (File system functions): Add savewd.
73432
73433         * modules/configmake (Makefile.am): Add support for the
73434         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73435
73436 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         * m4/savewd.m4: New file.
73439
73440 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73443         (dirchownmod): New arg FD.  All callers changed.
73444         Use FD rather than opening the directory ourself, as opening is
73445         now the caller's responsibility.
73446         * lib/dirchownmod.h: Likewise.
73447         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73448         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73449         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73450         (test_dir): Remove.
73451         (mkancesdirs): Return length of prefix of FILE that has already
73452         been made, or -2 if there is a child doing the work.  Redo
73453         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73454         ".", and treat ".." specially since it might stray back into
73455         already-created areas.  Use a subprocess if necessary.  New arg
73456         WD; all users changed.  MAKE_DIR function should now return 1
73457         if it creates a directory that is not readable.  Return -2 if
73458         a child process is spun off.
73459         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73460         Adjust signature to match code.
73461         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73462         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73463         all users changed.
73464         * lib/savewd.c, lib/savewd.h: New files.
73465
73466 2006-09-15  Jim Meyering  <jim@meyering.net>
73467
73468         * modules/rename-dest-slash: New module.
73469         * MODULES.html.sh (posix_compat): Add it here.
73470
73471         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73472
73473 2006-09-15  Jim Meyering  <jim@meyering.net>
73474
73475         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73476         file.
73477
73478         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73479
73480 2006-09-15  Jim Meyering  <jim@meyering.net>
73481
73482         * lib/rename-dest-slash.c (has_trailing_slash): Use
73483         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73484         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73485         test before testing whether SRC is a directory.
73486         Suggestions from Bruno Haible.
73487
73488         Avoid a warning about an unused variable.
73489         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73490         into the #ifdef block where it's used.
73491
73492         * lib/rename-dest-slash.c: New file.
73493
73494 2006-09-14  Bruno Haible  <bruno@clisp.org>
73495
73496         * lib/allocsa.c: Include <config.h> unconditionally.
73497         * lib/asnprintf.c: Likewise.
73498         * lib/asprintf.c: Likewise.
73499         * lib/c-strcasecmp.c: Likewise.
73500         * lib/c-strcasestr.c: Likewise.
73501         * lib/c-strncasecmp.c: Likewise.
73502         * lib/c-strstr.c: Likewise.
73503         * lib/classpath.c: Likewise.
73504         * lib/clean-temp.c: Likewise.
73505         * lib/concatpath.c: Likewise.
73506         * lib/copy-file.c: Likewise.
73507         * lib/csharpcomp.c: Likewise.
73508         * lib/csharpexec.c: Likewise.
73509         * lib/execute.c: Likewise.
73510         * lib/fatal-signal.c: Likewise.
73511         * lib/findprog.c: Likewise.
73512         * lib/fwriteerror.c: Likewise.
73513         * lib/gl_array_list.c: Likewise.
73514         * lib/gl_array_oset.c: Likewise.
73515         * lib/gl_avltree_list.c: Likewise.
73516         * lib/gl_avltree_oset.c: Likewise.
73517         * lib/gl_avltreehash_list.c: Likewise.
73518         * lib/gl_carray_list.c: Likewise.
73519         * lib/gl_linked_list.c: Likewise.
73520         * lib/gl_linkedhash_list.c: Likewise.
73521         * lib/gl_list.c: Likewise.
73522         * lib/gl_oset.c: Likewise.
73523         * lib/gl_rbtree_list.c: Likewise.
73524         * lib/gl_rbtree_oset.c: Likewise.
73525         * lib/gl_rbtreehash_list.c: Likewise.
73526         * lib/imaxabs.c: Likewise.
73527         * lib/imaxdiv.c: Likewise.
73528         * lib/javacomp.c: Likewise.
73529         * lib/javaexec.c: Likewise.
73530         * lib/javaversion.c: Likewise.
73531         * lib/linebreak.c: Likewise.
73532         * lib/localcharset.c: Likewise.
73533         * lib/lock.c: Likewise.
73534         * lib/mbchar.c: Likewise.
73535         * lib/mbswidth.c: Likewise.
73536         * lib/mkdtemp.c: Likewise.
73537         * lib/pipe.c: Likewise.
73538         * lib/printf-args.c: Likewise.
73539         * lib/printf-parse.c: Likewise.
73540         * lib/progname.c: Likewise.
73541         * lib/progreloc.c: Likewise.
73542         * lib/readlink.c: Likewise.
73543         * lib/sh-quote.c: Likewise.
73544         * lib/stpcpy.c: Likewise.
73545         * lib/stpncpy.c: Likewise.
73546         * lib/strcasecmp.c: Likewise.
73547         * lib/strcasestr.c: Likewise.
73548         * lib/strcspn.c: Likewise.
73549         * lib/striconv.c: Likewise.
73550         * lib/strncasecmp.c: Likewise.
73551         * lib/strnlen1.c: Likewise.
73552         * lib/strstr.c: Likewise.
73553         * lib/strtok_r.c: Likewise.
73554         * lib/tls.c: Likewise.
73555         * lib/tmpdir.c: Likewise.
73556         * lib/unicodeio.c: Likewise.
73557         * lib/unsetenv.c: Likewise.
73558         * lib/vasnprintf.c: Likewise.
73559         * lib/vasprintf.c: Likewise.
73560         * lib/wait-process.c: Likewise.
73561         * lib/xallocsa.c: Likewise.
73562         * lib/xsetenv.c: Likewise.
73563         * lib/xstriconv.c: Likewise.
73564
73565 2006-09-13  Simon Josefsson  <jas@extundo.com>
73566
73567         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73568         that internally, suggested by Ralf Wildenhues
73569         <Ralf.Wildenhues@gmx.de>.
73570
73571 2006-09-13  Simon Josefsson  <jas@extundo.com>
73572
73573         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73574         @LIBOBJS@.
73575         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73576
73577 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73580         longer worry about uses that don't define HAVE_CONFIG_H.
73581         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73582         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73583         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73584         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73585         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73586         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73587         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73588         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73589         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73590         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73591         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73592         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73593         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73594         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73595         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73596         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73597         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73598         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73599         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73600         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73601         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73602         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73603         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73604         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73605         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73606         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73607         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73608         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73609         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73610         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73611         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73612         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73613         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73614         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73615         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73616         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73617         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73618         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73619         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73620         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73621         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73622         Likewise.
73623
73624 2006-09-13  Eric Blake  <ebb9@byu.net>
73625
73626         * lib/getopt.c: Fix typo in last commit.
73627
73628 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73629
73630         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73631         dgettext.
73632
73633 2006-09-12  Jim Meyering  <jim@meyering.net>
73634
73635         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73636         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73637         Reported by Nelson H. F. Beebe.
73638
73639 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73640
73641         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73642         program_invocation_name and program_invocation_short_name are
73643         initialized.
73644         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73645         and program_invocation_short_name to argp.h, so they are visible
73646         to user programs.
73647         * lib/argp.h: Likewise
73648
73649 2006-09-10  Bruno Haible  <bruno@clisp.org>
73650
73651         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73652         m4/inttypes_h.m4, m4/uintmax_t.m4.
73653
73654 2006-09-10  Bruno Haible  <bruno@clisp.org>
73655
73656         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73657         gl_AC_TYPE_UINTMAX_T.
73658
73659 2006-09-10  Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73662
73663 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73664
73665         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73666         convention.  Text proposed by Bruno Haible.
73667         (struct argp_option): Document the use of N_() wrappers.
73668
73669         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73670         '\v', and translate the two parts separately, instead of feeding
73671         the whole string to gettext.  This allows to exclude
73672         '\v' from the strings visible to the translator by writing doc
73673         strings as N_("..") "\v" N_("..").
73674
73675 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         * config/srclist.txt: Undo latest change; the bug was fixed.
73678
73679 2006-09-09  Bruno Haible  <bruno@clisp.org>
73680
73681         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73682         assignments if building a library without libtool.
73683         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73684         in func_emit_lib_Makefile_am.
73685         (func_import): When building a static library libfoo.a, arrange to
73686         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73687         (func_create_testdir): Likewise.
73688         * modules/gc (configure.ac, Makefile.am): If building statically,
73689         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73690         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73691         * modules/striconv (configure.ac, Makefile.am): Likewise.
73692         Based on a suggestion by Ralf Wildenhues.
73693
73694 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73697         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73698         Also:
73699
73700         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73701         Add year_2050_test to catch glibc bug 2821
73702         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73703
73704         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73705         Prefer #ifdef to #if.
73706
73707         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73708         Return from 'main' instead of calling 'exit'.
73709
73710 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73713         returned the maximum time_t value rather than (time_t) -1.
73714         Problem originally reported by William Bardwell
73715         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73716
73717         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73718         Moved to here ...
73719         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73720         ... from here.
73721
73722 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73723
73724         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73725         2821 is fixed.
73726
73727 2006-09-08  Jim Meyering  <jim@meyering.net>
73728
73729         Don't make generated files read-only.  That would bother too many
73730         people.  However, do retain the ability to work when targets are
73731         read-only: remove the destination and temporary files before writing
73732         them (when generated via sed or echo), or by using the -f option for
73733         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73734         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73735         * modules/byteswap, modules/configmake, modules/fcntl:
73736         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73737         * modules/localcharset, modules/netinet_in, modules/poll:
73738         * modules/stdbool, modules/stdint, modules/sys_select:
73739         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73740
73741 2006-09-08  Jim Meyering  <jim@meyering.net>
73742
73743         Avoid new build failure on FreeBSD 6.0.
73744         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73745         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73746         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73747
73748 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73749
73750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73751
73752 2006-09-07  Jim Meyering  <jim@meyering.net>
73753
73754         Fix global typo in last change: use chmod u-w, not chmod u-x.
73755         Spotted by Paul Eggert and Bruce Korb.
73756         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73757         * modules/byteswap, modules/configmake, modules/fcntl:
73758         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73759         * modules/localcharset, modules/netinet_in, modules/poll:
73760         * modules/stdbool, modules/stdint, modules/sys_select:
73761         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73762
73763 2006-09-06  Jim Meyering  <jim@meyering.net>
73764
73765         Make generated files be read-only.
73766         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73767         Ensure that each generated file is now read-only.
73768         * modules/argz: Likewise.
73769         * modules/arpa_inet: Likewise.
73770         * modules/byteswap: Likewise.
73771         * modules/configmake: Likewise.
73772         * modules/fcntl: Likewise.
73773         * modules/fnmatch: Likewise.
73774         * modules/getopt: Likewise.
73775         * modules/glob: Likewise.
73776         * modules/inttypes: Likewise.
73777         * modules/netinet_in: Likewise.
73778         * modules/poll: Likewise.
73779         * modules/stdbool: Likewise.
73780         * modules/stdint: Likewise.
73781         * modules/sys_select: Likewise.
73782         * modules/sys_socket: Likewise.
73783         * modules/sys_stat: Likewise.
73784         * modules/sysexits: Likewise.
73785         * modules/localcharset: Same as above, but continue using temporary
73786         file named "t-$@" (why different?) rather than the "$@-t" used
73787         everywhere else.
73788
73789         * modules/sysexits (Makefile.am): Replace literal occurrences
73790         of "sysexit.h" more readable, and more consistent, "$@".
73791
73792 2006-09-06  Bruno Haible  <bruno@clisp.org>
73793
73794         * modules/striconv: New file.
73795         * modules/xstriconv: New file.
73796         * MODULES.html.sh (Internationalization functions): Add striconv,
73797         xstriconv.
73798
73799 2006-09-06  Bruno Haible  <bruno@clisp.org>
73800
73801         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73802         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73803         not using libtool correctly.
73804
73805 2006-09-06  Bruno Haible  <bruno@clisp.org>
73806
73807         * lib/striconv.h: New file.
73808         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73809         iconvstring.c.
73810         * lib/xstriconv.h: New file.
73811         * lib/xstriconv.c: New file.
73812
73813 2006-09-06  Bruno Haible  <bruno@clisp.org>
73814
73815         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73816         lib_..._LDFLAGS.
73817
73818 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73819
73820         * lib/argz_.h: Sync from Libtool.
73821
73822         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73823                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73824
73825         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73826
73827 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73828
73829         * modules/trim: New file.
73830
73831 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73832
73833         * lib/trim.h: New file.
73834         * lib/trim.c: New file.
73835
73836 2006-09-05  Bruno Haible  <bruno@clisp.org>
73837
73838         * MODULES.html.sh (String handling): Add trim.
73839
73840 2006-09-04  Karl Berry  <karl@gnu.org>
73841
73842         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73843         until next release.
73844
73845 2006-09-03  Bruno Haible  <bruno@clisp.org>
73846
73847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73848         correctly.
73849
73850 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73851
73852         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73853         not gl_GETLOADAVG.  Omit unneeded semicolons.
73854         Problems reported by Ralf Wildenhues in
73855         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73856         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73857         at the end, which is the usual gnulib style.
73858
73859         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73860         of doing all the work ourselves.
73861         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73862         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73863
73864 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73865
73866         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73867         Problem reported by Ralf Wildenhues in
73868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73869
73870         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73871         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73872
73873 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73876         yesterday's patch by changing test -n to test -z.
73877
73878 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73879
73880         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73881         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73882         the former is now obsolescent.
73883
73884         * modules/chdir-long (Depends-on): Add fcntl.
73885
73886 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73889         obsolescent, and programs should use gnulib instead.
73890         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73891         but with prefixes changed.
73892
73893 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73896         or stdbool.h, because they might not exist while configuring.
73897
73898         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73899         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73900         does that for us.
73901         (O_DIRECTORY): Remove.
73902
73903 2006-08-31  Eric Blake  <ebb9@byu.net>
73904
73905         * gnulib-tool: Don't let emacs change spaces to TAB.
73906
73907 2006-08-31  Bruno Haible  <bruno@clisp.org>
73908
73909         * gnulib-tool: When calling func_import more than once, do it in a
73910         subshell.
73911         Reported by Eric Blake <ebb9@byu.net>.
73912
73913 2006-08-31  Bruno Haible  <bruno@clisp.org>
73914
73915         * gnulib-tool (nl): Remove variable.
73916         (sed_transform_lib_file): Use more robust test for config-h module.
73917         (func_import): Fix typo in 2006-08-25 patch.
73918
73919 2006-08-31  Bruno Haible  <bruno@clisp.org>
73920
73921         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73922         specified, augment Makefile.am variables instead of assigning them.
73923
73924 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         Work around a bug in both the Linux and SunOS 64-bit kernels:
73927         nanosleep mishandles sleeps for longer than 2**31 seconds.
73928         Problem reported by Frank v Waveren in
73929         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73931         Check for nanosleep bug.
73932         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73933
73934 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73935
73936         Work around a bug in both the Linux and SunOS 64-bit kernels:
73937         nanosleep mishandles sleeps for longer than 2**31 seconds.
73938         Problem reported by Frank v Waveren in
73939         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73940         * lib/nanosleep.c (BILLION): New constant.
73941         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73942         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73943         implementation.
73944
73945 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * modules/nanosleep (Depends-on): Add gettime.
73948
73949 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73950         and Simon Josefsson  <jas@extundo.com>
73951         and Oskar Liljeblad  <oskar@osk.mine.nu>
73952
73953         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73954         * gnulib-tool (func_import): New license type 'unmodifiable license
73955         text'.
73956         * modules/fdl: Use it.  Longer description.
73957         * module/gpl, module/lgpl: New files.
73958
73959 2006-08-30  Jim Meyering  <jim@meyering.net>
73960
73961         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73962         shadowing the parameter.
73963
73964 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73965
73966         Sync from Libtool:
73967
73968         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73969
73970         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73971         sharing with gnulib.  Report by Eric Blake.
73972
73973 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         * modules/isapipe: New file.
73976         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73977
73978 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         * modules/configmake (Makefile.am): Add a comment, and omit
73981         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73982         by Bruno Haible.
73983
73984 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * m4/isapipe.m4: New file.
73987
73988 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * lib/isapipe.c, lib/isapipe.h: New files.
73991
73992 2006-08-29  Jim Meyering  <jim@meyering.net>
73993
73994         * modules/configmake (Makefile.am): Make configmake.h depend on
73995         Makefile.  Otherwise, a stale configmake.h could hang around.
73996
73997 2006-08-29  Eric Blake  <ebb9@byu.net>
73998
73999         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74000         resolution of upstream bug 3044.
74001
74002 2006-08-29  Bruno Haible  <bruno@clisp.org>
74003
74004         * modules/localcharset (Depends-on): Add configmake.
74005         (Makefile.am): Remove setting of LIBDIR through DEFS.
74006
74007 2006-08-29  Bruno Haible  <bruno@clisp.org>
74008
74009         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74010         defined.
74011
74012 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * modules/fcntl: New file.
74015         * modules/chdir-safer (Depends-on): Add fcntl.
74016         * modules/fts: Likewise.
74017         * modules/mkdir-p: Likewise.
74018
74019         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74020         This undoes the most recent change, since we're now addressing the
74021         problem in a different way.
74022
74023         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74024         into output, since the output might be called Makefile.am even
74025         if $makefile_name is something different.
74026         (func_import): Use $makefile_am rather than
74027         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74028         empty.
74029
74030         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74031
74032 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74035         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74036         recent change to stdint.m4, since we're now addressing the problem in a
74037         different way.
74038
74039 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74040
74041         * m4/fcntl_h.m4: New file.
74042
74043 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * lib/fcntl_.h: New file.
74046         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74047         the fcntl module.
74048         * lib/dirchownmod.c: Likewise.
74049         * lib/fts.c: Likewise.
74050
74051         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74052         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74053         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74054         just before including <inttypes.h>, to avoid circular inclusion.
74055
74056 2006-08-28  Jim Meyering  <jim@meyering.net>
74057
74058         * doc/visibility.texi: Actually read and correct the grammar of the
74059         sentence affected by yesterday's change.
74060
74061 2006-08-28  Eric Blake  <ebb9@byu.net>
74062
74063         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74064         needs wrapper.
74065
74066 2006-08-28  Eric Blake  <ebb9@byu.net>
74067
74068         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74069
74070 2006-08-28  Eric Blake  <ebb9@byu.net>
74071
74072         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74073
74074 2006-08-28  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/c-strstr: New file, from GNU gettext.
74077         * MODULES.html.sh (String handling): Add c-strstr.
74078
74079 2006-08-28  Bruno Haible  <bruno@clisp.org>
74080
74081         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74082         macros.
74083         Reported by Eric Blake.
74084
74085 2006-08-28  Bruno Haible  <bruno@clisp.org>
74086
74087         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74088         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74089         * lib/vasprintf.c: Include errno.h, limits.h.
74090         (EOVERFLOW): New fallback definition.
74091         (vasprintf): Test here whether the string length is > INT_MAX.
74092         * lib/vsnprintf.c: Include errno.h, limits.h.
74093         (EOVERFLOW): New fallback definition.
74094         (vsnprintf): Fix bug when generated string was too long for the buffer.
74095         Test here whether the string length is > INT_MAX.
74096
74097 2006-08-28  Bruno Haible  <bruno@clisp.org>
74098
74099         * lib/inttypes_.h (SCNX*): Remove definitions.
74100         Reported by Eric Blake.
74101
74102 2006-08-28  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/c-strstr.h: New file, from GNU gettext.
74105         * lib/c-strstr.c: New file, from GNU gettext.
74106
74107 2006-08-28  Bruno Haible  <bruno@clisp.org>
74108
74109         * gnulib-tool: Reorder some statements.
74110
74111 2006-08-28  Bruno Haible  <bruno@clisp.org>
74112
74113         * gnulib-tool: New option --makefile-name.
74114         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74115         $makefile_name.
74116         (func_import): Write $makefile_name to the cache file, and read it from
74117         there unless explicitly specified. Use $makefile_name as file name
74118         instead of Makefile.am. Adjust the recommendations accordingly.
74119
74120 2006-08-28  Bruno Haible  <bruno@clisp.org>
74121
74122         * gnulib-tool (func_verify_module): Check against misapplying patch.
74123
74124 2006-08-28  Bruno Haible  <bruno@clisp.org>
74125
74126         * gnulib-tool (func_relativize, func_relconcat): New functions.
74127         Give an error if --local-dir is given with --update.
74128         Remove trailing slashes from $local_gnulib_dir.
74129         (func_import): Store the relativized $local_gnulib_dir in
74130         gnulib-cache.m4, and read it from there if not specified explicitly.
74131
74132 2006-08-28  Bruno Haible  <bruno@clisp.org>
74133
74134         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74135         is the current directory. Respect also $local_gnulib_dir.
74136
74137 2006-08-28  Bruno Haible  <bruno@clisp.org>
74138             Simon Josefsson  <jas@extundo.com>
74139
74140         BeOS portability.
74141         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74142
74143 2006-08-27  Jim Meyering  <jim@meyering.net>
74144
74145         * doc/visibility.texi: Remove duplicate word: "pointer".
74146
74147 2006-08-26  Bruno Haible  <bruno@clisp.org>
74148
74149         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74150         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74151         (Makefile.am): Create inttypes.h from inttypes_.h.
74152         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74153
74154         * modules/imaxabs: New file.
74155
74156         * modules/imaxdiv: New file.
74157
74158 2006-08-26  Bruno Haible  <bruno@clisp.org>
74159
74160         * m4/inttypes.m4: New file.
74161         * m4/_inttypes_h.m4: Remove file.
74162         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74163         PRI_MACROS_BROKEN.
74164         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74165
74166         * m4/imaxabs.m4: New file.
74167
74168         * m4/imaxdiv.m4: New file.
74169
74170 2006-08-26  Bruno Haible  <bruno@clisp.org>
74171
74172         * lib/inttypes_.h: New file.
74173         * lib/inttypes.h: Remove file.
74174         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74175
74176         * lib/imaxabs.c: New file.
74177
74178         * lib/imaxdiv.c: New file.
74179
74180 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74181
74182         New config-h module, so that "make" output needn't be cluttered
74183         by -DHAVE_CONFIG_H.
74184         * MODULES.html.sh (Support for building libraries and executables):
74185         Add config-h.
74186         * modules/config-h: New file.
74187         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74188         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74189         the config-h module is used.
74190
74191         New configmake module, so that "make" output needn't be cluttered
74192         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74193         * MODULES.html.sh (Support for building libraries and executables):
74194         Add configmake.
74195         * modules/configmake: New file.
74196
74197 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * m4/config-h.m4: New file.
74200
74201 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * config/srclist.txt: Add elisp-comp.
74204
74205 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * MODULES.html.sh (Support for building libraries and executables):
74208         Add elisp-comp.
74209         * build-aux/elisp-comp: New file.
74210         * modules/elisp-comp: New file.
74211
74212 2006-08-24  Bruno Haible  <bruno@clisp.org>
74213
74214         * gnulib-tool (func_create_testdir): Use non-default values of
74215         sourcebase and m4base.
74216
74217 2006-08-24  Bruno Haible  <bruno@clisp.org>
74218
74219         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74220         HTML structure.
74221
74222 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * modules/openat (Depends-on): Add lchown.
74225
74226 2006-08-23  Bruno Haible  <bruno@clisp.org>
74227
74228         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74229         of gl_LOCK_EARLY instead of gl_LOCK.
74230
74231 2006-08-23  Bruno Haible  <bruno@clisp.org>
74232
74233         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74234         on OSF/1 to no.
74235         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74236
74237 2006-08-23  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74240         as unusable.
74241
74242         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74243         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74244         (gl_LOCK): New macro.
74245
74246 2006-08-22  Simon Josefsson  <jas@extundo.com>
74247
74248         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74249         to md5 module.
74250
74251 2006-08-22  Simon Josefsson  <jas@extundo.com>
74252
74253         * MODULES.html.sh: Add "Support for maintaining and release
74254         projects".
74255
74256         * build-aux/gnupload: New file, from coreutils.
74257
74258 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74259
74260         Avoid the need for AC_LIBSOURCES in m4 macros.
74261         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74262         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74263         * modules/check-version (EXTRA_DIST): Add check-version.h.
74264         * modules/crc (EXTRA_DIST): Add crc.h.
74265         * modules/des (EXTRA_DIST): Add des.h.
74266         * modules/gc (EXTRA_DIST): Add gc.h.
74267         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74268         * modules/getline (EXTRA_DIST): Add getline.h.
74269         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74270         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74271         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74272         * modules/md2 (EXTRA_DIST): Add md2.h.
74273         * modules/md4 (EXTRA_DIST): Add md4.h.
74274         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74275         * modules/read-file (EXTRA_DIST): Add read-file.h.
74276         * modules/readline (EXTRA_DIST): Add readline.h.
74277         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74278         rijndael-api-fst.h.
74279
74280 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74281
74282         * m4/rijndael.m4 (gl_ARCFOUR):
74283         * m4/arctwo.m4 (gl_ARCTWO):
74284         * m4/check-version.m4 (gl_CHECK_VERSION):
74285         * m4/crc.m4 (gl_CRC):
74286         * m4/des.m4 (gl_DES):
74287         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74288         * m4/gc.m4 (gl_GC):
74289         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74290         * m4/getline.m4 (gl_FUNC_GETLINE):
74291         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74292         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74293         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74294         * m4/md2.m4 (gl_MD2):
74295         * m4/md4.m4 (gl_MD4):
74296         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74297         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74298         * m4/readline.m4 (gl_FUNC_READLINE):
74299         * m4/rijndael.m4 (gl_RIJNDAEL):
74300         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74301         to get the necessary .h files and whatnot.
74302
74303 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74306         gnulib rather than the other way around.
74307         * config/srclistvars.sh (COREUTILS): Remove.
74308
74309 2006-08-22  Jim Meyering  <jim@meyering.net>
74310
74311         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74312
74313         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74314
74315 2006-08-22  Eric Blake  <ebb9@byu.net>
74316
74317         * modules/regexprops-generic: New file.
74318         * MODULES.html.sh (Support for building documentation): List it.
74319
74320 2006-08-22  Eric Blake  <ebb9@byu.net>
74321
74322         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74323         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74324         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74325         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74326
74327 2006-08-22  Bruno Haible  <bruno@clisp.org>
74328
74329         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74330         and lib_LTLIBRARIES like the other lib_* variables.
74331
74332 2006-08-22  Bruno Haible  <bruno@clisp.org>
74333
74334         * build-aux/x-to-1.in: New file, from GNU gettext.
74335
74336 2006-08-22  Bruno Haible  <bruno@clisp.org>
74337
74338         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74339         <utmpx.h> exists.
74340
74341 2006-08-22  Bruno Haible  <bruno@clisp.org>
74342
74343         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74344         <utmpx.h> exists.
74345
74346 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         BeOS portability.
74349         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74350         exist.
74351         Problem reported by Bruno Haible.
74352
74353 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         Avoid the need for AC_LIBSOURCES in m4 macros.
74356         * modules/acl (EXTRA_DIST): Add acl.h.
74357         * modules/argmatch (Files): Add m4/argmatch.m4.
74358         (configure.ac): Add gl_ARGMATCH.
74359         (EXTRA_DIST): Renamed from lib_SOURCES, for
74360         consistency with the other modules.  Remove argmatch.c.
74361         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74362         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74363         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74364         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74365         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74366         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74367         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74368         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74369         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74370         * modules/closeout (EXTRA_DIST): Add closeout.h.
74371         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74372         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74373         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74374         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74375         dirname.h; remove basename.c and stripslash.c.
74376         * modules/exclude (EXTRA_DIST): Add exclude.h.
74377         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74378         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74379         * modules/file-type (EXTRA_DIST): Add file-type.h.
74380         * modules/filemode (EXTRA_DIST): Add filemode.h.
74381         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74382         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74383         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74384         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74385         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74386         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74387         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74388         * modules/getdate (EXTRA_DIST): Add getdate.c.
74389         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74390         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74391         * modules/getpass (EXTRA_DIST): Add getpass.h.
74392         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74393         * modules/group-member (EXTRA_DIST): Add group-member.h.
74394         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74395         * modules/hash (EXTRA_DIST): Add hash.h.
74396         * modules/human (EXTRA_DIST): Add human.h.
74397         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74398         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74399         * modules/lchown (EXTRA_DIST): Add lchown.h.
74400         * modules/long-options (EXTRA_DIST): Add long-options.h.
74401         * modules/lstat (EXTRA_DIST): Add lstat.h.
74402         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74403         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74404         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74405         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74406         * modules/memxor (EXTRA_DIST): Add memxor.h.
74407         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74408         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74409         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74410         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74411         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74412         * modules/physmem (EXTRA_DIST): Add physmem.h.
74413         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74414         * modules/posixver (EXTRA_DIST): Add posixver.h.
74415         * modules/quote (EXTRA_DIST): Add quote.h.
74416         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74417         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74418         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74419         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74420         regex_internal.h regexec.c.
74421         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74422         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74423         * modules/same (EXTRA_DIST): Add same.h.
74424         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74425         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74426         * modules/savedir (EXTRA_DIST): Add savedir.h.
74427         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74428         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74429         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74430         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74431         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74432         * modules/strdup (EXTRA_DIST): Add strdup.h.
74433         * modules/strftime (EXTRA_DIST): Add strftime.h.
74434         * modules/strndup (EXTRA_DIST): Add strndup.h.
74435         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74436         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74437         * modules/time_r (EXTRA_DIST): Add time_r.h.
74438         * modules/timespec (EXTRA_DIST): Add timespec.h.
74439         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74440         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74441         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74442         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74443         * modules/userspec (EXTRA_DIST): Add userspec.h.
74444         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74445         * modules/utimens (EXTRA_DIST): Add utimens.h.
74446         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74447         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74448         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74449         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74450         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74451         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74452         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74453         * modules/yesno (EXTRA_DIST): Add yesno.h.
74454
74455 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74458
74459         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74460         * m4/dev-ino.m4, same-inode.m4: Remove.
74461
74462         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74463         * m4/acl.m4 (AC_FUNC_ACL):
74464         * m4/backupfile.m4 (gl_BACKUPFILE):
74465         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74466         * m4/canon-host.m4 (gl_CANON_HOST):
74467         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74469         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74470         * m4/cloexec.m4 (gl_CLOEXEC):
74471         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74472         * m4/closeout.m4 (gl_CLOSEOUT):
74473         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74474         * m4/dirname.m4 (gl_DIRNAME):
74475         * m4/exclude.m4 (gl_EXCLUDE):
74476         * m4/exitfail.m4 (gl_EXITFAIL):
74477         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74478         * m4/file-type.m4 (gl_FILE_TYPE):
74479         * m4/filemode.m4 (gl_FILEMODE):
74480         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74481         * m4/fpending.m4 (gl_FUNC_FPENDING):
74482         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74483         * m4/fts.m4 (gl_FUNC_FTS):
74484         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74485         * m4/getdate.m4 (gl_GETDATE):
74486         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74487         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74488         * m4/getpass.m4 (gl_FUNC_GETPASS):
74489         * m4/gettime.m4 (gl_GETTIME):
74490         * m4/getugroups.m4 (gl_GETUGROUPS):
74491         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74492         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74493         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74494         * m4/hash.m4 (gl_HASH):
74495         * m4/idcache.m4 (gl_IDCACHE):
74496         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74497         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74498         * m4/long-options.m4 (gl_LONG_OPTIONS):
74499         * m4/lstat.m4 (gl_FUNC_LSTAT):
74500         * m4/md5.m4 (gl_MD5):
74501         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74502         * m4/memcoll.m4 (gl_MEMCOLL):
74503         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74504         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74505         * m4/memxor.m4 (gl_MEMXOR):
74506         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74507         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74508         * m4/modechange.m4 (gl_MODECHANGE):
74509         * m4/mountlist.m4 (gl_MOUNTLIST):
74510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74511         * m4/openat.m4 (gl_FUNC_OPENAT):
74512         * m4/pathmax.m4 (gl_PATHMAX):
74513         * m4/physmem.m4 (gl_PHYSMEM):
74514         * m4/posixtm.m4 (gl_POSIXTM):
74515         * m4/posixver.m4 (gl_POSIXVER):
74516         * m4/quote.m4 (gl_QUOTE):
74517         * m4/quotearg.m4 (gl_QUOTEARG):
74518         * m4/readtokens.m4 (gl_READTOKENS):
74519         * m4/readutmp.m4 (gl_READUTMP):
74520         * m4/regex.m4 (gl_REGEX):
74521         * m4/safe-read.m4 (gl_SAFE_READ):
74522         * m4/safe-write.m4 (gl_SAFE_WRITE):
74523         * m4/same.m4 (gl_SAME):
74524         * m4/save-cwd.m4 (gl_SAVE_CWD):
74525         * m4/savedir.m4 (gl_SAVEDIR):
74526         * m4/settime.m4 (gl_SETTIME):
74527         * m4/sha1.m4 (gl_SHA1):
74528         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74529         * m4/stat-macros.m4 (gl_STAT_MACROS):
74530         * m4/stat-time.m4 (gl_STAT_TIME):
74531         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74532         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74533         * m4/strdup.m4 (gl_FUNC_STRDUP):
74534         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74535         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74536         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74537         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74538         * m4/time_r.m4 (gl_TIME_R):
74539         * m4/timespec.m4 (gl_TIMESPEC):
74540         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74541         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74542         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74543         * m4/userspec.m4 (gl_USERSPEC):
74544         * m4/utimecmp.m4 (gl_UTIMECMP):
74545         * m4/utimens.m4 (gl_UTIMENS):
74546         * m4/xalloc.m4 (gl_XALLOC):
74547         * m4/xgetcwd.m4 (gl_XGETCWD):
74548         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74549         * m4/xreadlink.m4 (gl_XREADLINK):
74550         * m4/xstrtod.m4 (gl_XSTRTOD):
74551         * m4/yesno.m4 (gl_YESNO):
74552         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74553         to get the necessary .h files and whatnot.
74554
74555 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74556             Bruno Haible  <bruno@clisp.org>
74557
74558         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74559         /bin/sh understanding of '!' conditional negation.
74560
74561 2006-08-21  Jim Meyering  <jim@meyering.net>
74562
74563         * modules/openat (Depends-on): Really alphabetize.
74564
74565         * modules/acl (Depends-on): Add error and quote.
74566
74567         * check-module (find_included_lib_files): Add at-func.c to the
74568         ok-to-include-more-than-once white list.
74569
74570         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74571
74572 2006-08-21  Bruno Haible  <bruno@clisp.org>
74573
74574         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74575         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74576         Reported by Martin Lambers <marlam@marlam.de>.
74577
74578 2006-08-21  Bruno Haible  <bruno@clisp.org>
74579
74580         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74581         specify an installation location, don't emit a noinst_LIBRARIES or
74582         noinst_LTLIBRARIES assignment.
74583
74584 2006-08-21  Bruno Haible  <bruno@clisp.org>
74585
74586         BeOS portability.
74587         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74588         BeOS has mbrtowc() but no <wctype.h>.
74589
74590 2006-08-21  Bruno Haible  <bruno@clisp.org>
74591
74592         BeOS portability.
74593         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74594         exist.
74595
74596 2006-08-21  Bruno Haible  <bruno@clisp.org>
74597
74598         BeOS portability.
74599         * lib/mbchar.h: Include <wctype.h> only if it exists.
74600
74601 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         Remove files that are no longer needed by their respective modules.
74604         * m4/obstack.m4: Remove.
74605         * m4/strerror_r.m4: Remove.
74606         * m4/uint32_t.m4: Remove.
74607         * m4/uintptr_t.m4: Remove.
74608         * m4/ullong_max.m4: Remove.
74609         * m4/xstrtoimax.m4: Remove.
74610         * m4/xstrtoumax.m4: Remove.
74611
74612         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74613         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74614         dependencies now capture this.
74615
74616         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74617         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74618         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74619         * m4/human.m4 (gl_HUMAN): Likewise.
74620         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74621         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74622
74623         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74624
74625         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74626         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74627         stdint.
74628         * m4/human.m4 (gl_HUMAN): Likewise.
74629         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74630         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74631         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74632         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74633         * m4/xstrtol (gl_XSTRTOL): Likewise.
74634
74635         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74636         AC_TYPE_LONG_LONG_INT.
74637         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74638         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74639         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74640         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74641
74642         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74643         on stdbool.
74644
74645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74646         (gl_PREREQ_XSTRTOUL): Remove.
74647
74648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74649
74650         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74651         mode.
74652
74653 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         Add and change modules to make it easier for coreutils to use
74656         gnulib-tool.
74657         * modules/backupfile (Files): Remove m4/d-ino.m4.
74658         (Depends-on): Add d-ino.
74659         * modules/cycle-check (Depends-on): Add stdint.
74660         (lib_SOURCES): Add cycle-check.h.
74661         * modules/d-ino: New module.
74662         * modules/d-type: New module.
74663         * modules/error (Files): Remove m4/strerror_r.m4.
74664         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74665         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74666         m4/inttypes_h.m4, m4/uintmax_t.m4.
74667         (Depends-on): Add stdint.
74668         (lib_SOURCES): Add fsusage.h.
74669         * modules/getcwd (Files): Remove d-ino.m4.
74670         (Depends-on): Add d-ino.
74671         * modules/getndelim2 (Depends-on): Add stdint.
74672         * modules/glob (Files): Remove m4/d-type.m4.
74673         (Depends-on): Add d-type.
74674         * modules/host-os: New module.
74675         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74676         m4/inttypes_h.m4, m4/uintmax_t.m4.
74677         * Depends-on: Add stdint.
74678         (lib_SOURCES): Add human.h.
74679         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74680         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74681         m4/uintmax_t.m4, m4/ulonglong.m4.
74682         (Depends-on): Add stdint.
74683         (EXTRA_DIST): Add inttostr.h.
74684         * modules/lchmod: New module.
74685         * modules/link-follow: New module.
74686         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74687         (Depends-on): Add lchmod.
74688         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74689         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74690         (Depends-on): Add stdint.
74691         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74692         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74693         (Depends-on): Add stdint.
74694         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74695         * modules/perl: New module.
74696         * modules/regex (Depends-on): Add stdint.
74697         * modules/rmdir-errno: New module.
74698         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74699         m4/intmax_t.m4.
74700         (Depends-on): Add stdint.
74701         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74702         m4/uintmax_t.m4.
74703         (Depends-on): Add stdint.
74704         * modules/unlink-busy: New module.
74705         * modules/utimecmp (Depends-on): Add stdint.
74706         * modules/uptime: New module.
74707         * modules/winsz-ioctl: New module.
74708         * modules/winsz-termios: New module.
74709         * modules/xnanosleep (Depends-on): Add nanosleep.
74710         * modules/ullong_max: Remove.
74711         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74712         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74713         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74714         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74715         (Depends-on): Add inttypes.
74716         (lib_SOURCES): Add xstrtol.h.
74717         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74718         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74719         * MODULES.html.sh: Move 'assert' into the assert section.
74720         Move 'dummy' into the linking section.
74721         Remove ullong_max.
74722         Add section for compatibility checks for POSIX:2001 functions,
74723         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74724         winsz-ioctl, and winsz-termios into it.
74725         Add lchmod.
74726         Add top-level Misc section and put host-os, perl, and uptime
74727         into it.
74728
74729 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74730
74731         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74732         now assume the stdint module.  Do not include inttypes.h.
74733         * lib/fsusage.h: Likewise.
74734         * lib/getndelim2.c: Likewise.
74735         * lib/human.h: Likewise.
74736         * lib/inttostr.h: Likewise.
74737         * lib/obstack.c: Likewise.
74738         * lib/regex_internal.h: Likewise.
74739         * lib/tempname.c: Likewise.
74740         * lib/utimecmp.c: Likewise.
74741         * lib/xstrtol.h: Likewise.
74742
74743         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74744
74745         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74746         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74747         * lib/xtime.h: Likewise.
74748
74749 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * modules/openat (Files): Add lib/fchmodat.c.
74752         Fixes problem reported by Jay Youngman.
74753
74754 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74757         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74758
74759 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74760             Bruno Haible  <bruno@clisp.org>
74761
74762         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74763         and is a script that invokes bison. Tighten the code. Add comments.
74764
74765 2006-08-18  Jim Meyering  <jim@meyering.net>
74766
74767         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74768         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74769         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74770         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74771
74772 2006-08-18  Bruno Haible  <bruno@clisp.org>
74773
74774         * modules/bison-i18n: New file.
74775         * MODULES.html.sh (Internationalization functions): Add it.
74776
74777 2006-08-18  Bruno Haible  <bruno@clisp.org>
74778
74779         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74780         sys/statvfs.h. When getmntinfo was found, check its declaration and
74781         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74782
74783 2006-08-18  Bruno Haible  <bruno@clisp.org>
74784
74785         * m4/bison-i18n.m4: New file, from bison.
74786
74787 2006-08-18  Bruno Haible  <bruno@clisp.org>
74788
74789         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74790         (ME_DUMMY): Treat "kernfs" as a dummy.
74791         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74792
74793 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         Update from coreutils.
74796
74797         2006-08-15  Jim Meyering  <jim@meyering.net>
74798
74799         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74800
74801         2006-01-17  Jim Meyering  <jim@meyering.net>
74802
74803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74804
74805         2006-01-11  Jim Meyering  <jim@meyering.net>
74806
74807         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74808         Check for the lchmod function.
74809
74810 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         Update from coreutils.
74813
74814         * lib/__fpending.h: Add copyright notice.
74815         * lib/fprintftime.h: Likewise.
74816         * lib/savedir.c: Use (C) in copyright notice.
74817         * lib/savedir.h: Likewise.
74818
74819         2006-08-15  Jim Meyering  <jim@meyering.net>
74820
74821         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74822         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74823         in support of the EXPECTED_ERRNO macro.
74824         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74825         definitions.  Instead, define the appropriate symbols and include
74826         "at-func.c".
74827         * lib/mkdirat.c (mkdirat): Likewise.
74828         * lib/fchmodat.c (fchmodat): Likewise.
74829         (ENOSYS): Remove definition.
74830         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74831         it.  Don't include "unistd--.h" -- it wasn't ever used.
74832
74833         2006-01-17  Jim Meyering  <jim@meyering.net>
74834
74835         Rewrite fts.c not to change the current working directory,
74836         by using openat, fstatat, fdopendir, etc..
74837
74838         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74839         (HAVE_OPENAT_SUPPORT): Define.
74840         [_LIBC] (fchdir): Don't undef or define; no longer used.
74841         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74842         Now, this `function' always succeeds, and consumes its file descriptor
74843         parameter -- so callers must not close such FDs.  Update callers.
74844         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74845         (diropen): Add parameter, SP.  Adjust all callers.
74846         Implement using diropen_fd, rather than open.
74847         (fts_open): Initialize new member, fts_cwd_fd.
74848         Remove fts_rft-setting code.
74849         (fts_close): Close fts_cwd_fd, if necessary.
74850         (__opendir2): Define in terms of opendir or opendirat,
74851         depending on whether the FST_NOCHDIR flag is set.
74852         (fts_build): Since fts_safe_changedir consumes its FD, and since
74853         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74854         and close the dup'd file descriptor upon failure.
74855         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74856         (fts_safe_changedir): Tweak semantics to reflect that this function
74857         now calls cwd_advance_fd and hence consumes its FD argument.
74858         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74859         [struct FTS] (fts_rft): Remove now-unused member.
74860         [struct FTS] (fts_cycle.state): Improve comment.
74861
74862         * lib/openat.c (openat_needs_fchdir): New function.
74863         * lib/openat.h (openat_needs_fchdir): Declare it.
74864
74865 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74868         Problem and fix reported by Pádraig Brady in
74869         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74870
74871 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74874
74875 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * lib/memcoll.c (memcoll): Optimize for the common case where the
74878         arguments are bytewise equal.
74879
74880 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * doc/regexprops-generic.texi: Add a copyright notice.
74883
74884 2006-08-15  Bruno Haible  <bruno@clisp.org>
74885
74886         * modules/tmpdir (License): Change to LGPL.
74887
74888 2006-08-15  Bruno Haible  <bruno@clisp.org>
74889
74890         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74891         module.
74892
74893 2006-08-14  Simon Josefsson  <jas@extundo.com>
74894
74895         * config/srclist.txt: Add gnupload.
74896
74897 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         Change copyright notice from LGPL 2 to GPL 2, since that's the
74900         standard form used in the gnulib repository.
74901         * tests/test-lock.c: Likewise.
74902         * tests/test-stdint.c: Likewise.
74903         * tests/test-tls.c: Likewise.
74904
74905         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74906         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74907         Add copyright notice.
74908
74909         * check-module: Add copyright notice.  Output a copyright
74910         notice if "--version" is specified.
74911         * modules/COPYING: New file.
74912         * tests/test-getaddrinfo.c: Add copyright notice.
74913         * tests/test-verify.c: Likewise.
74914
74915 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         Change copyright notice from LGPL 2 to GPL 2, since that's the
74918         standard form used in the gnulib repository.
74919         * lib/lock.c: LGPL -> GPL.
74920         * lib/lock.h: Likewise.
74921         * lib/strnlen1.c: Likewise.
74922         * lib/strnlen1.h: Likewise.
74923         * lib/tls.c: Likewise.
74924         * lib/tls.h: Likewise.
74925         * lib/tmpdir.c: Likewise.
74926
74927         * lib/TODO: Remove; this belongs only in coreutils.
74928
74929 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74930
74931         Add copyright notices to long-enough files that lack them, since
74932         otherwise the files aren't clearly free.  Use the same notice that
74933         getdate.texi already uses.
74934         * doc/alloca-opt.texi: Add copyright notice.
74935         * doc/alloca.texi: Likewise.
74936         * doc/ctime.texi: Likewise.
74937         * doc/functions.texi: Likewise.
74938         * doc/gcd.texi: Likewise.
74939         * doc/gnulib-tool.texi: Likewise.
74940         * doc/inet_ntoa.texi: Likewise.
74941         * doc/visibility.texi: Likewise.
74942
74943         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74944         * doc/quote.texi: Add copyright notice.
74945
74946         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74947         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74948         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74949         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74950         is now obsolete, and give a pointer to the Sun list.
74951         Add copyright notice.
74952
74953 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * config/srclistvars.sh: Add copyright notice.
74956
74957 2006-08-14  Eric Blake  <ebb9@byu.net>
74958
74959         Import the following change from libc:
74960
74961         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74962
74963         Upstream bug 2997.
74964         * lib/misc/error.c: Add space between program name and message if file
74965         name is missing.
74966
74967 2006-08-12  Karl Berry  <karl@gnu.org>
74968
74969         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74970         remove, these originate in gnulib now.
74971
74972 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74973
74974         * doc/Makefile (standards.info standards.html standards.dvi):
74975         Also depend on make-stds.texi.
74976
74977 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74980         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74981
74982         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74983         in wchar_t.  Problem reported by Eric Blake.
74984
74985         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74986         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74987         Also, help the compiler to keep LEN in a register.
74988
74989 2006-08-11  Eric Blake  <ebb9@byu.net>
74990
74991         * users.txt: Sort.  Add tar.
74992
74993 2006-08-11  Bruno Haible  <bruno@clisp.org>
74994
74995         * users.txt: New file.
74996
74997 2006-08-11  Bruno Haible  <bruno@clisp.org>
74998
74999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75000         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75001
75002 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75003
75004         * modules/snprintf (Depends-on): Remove minmax.
75005         (Maintainer): Add self and Bruno.
75006
75007 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75010         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75011         (EOVERFLOW): Define if the system does not.
75012         Do not include "minmax.h"; it wasn't used.
75013         (snprintf): Don't assume size_t promotes to an unsigned type.
75014         Fix bug when generated string was too long for the buffer: the
75015         buffer's contents are supposed to be the initial prefix of the
75016         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75017         exceeds INT_MAX; do the check ourselves.
75018
75019         Import the following changes from libc:
75020
75021         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75022
75023         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75024         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75025         set wc to the byte which couldn't be converted.
75026         (re_string_reconstruct): Don't clear valid_raw_len before calling
75027         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75028         tip_context using re_string_context_at.
75029
75030         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75031
75032         * lib/posix/regex.h: g++ still cannot handled [restrict].
75033
75034         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75035
75036         * lib/posix/regex.h: Remove special handling for VMS.
75037
75038 2006-08-10  Jim Meyering  <jim@meyering.net>
75039
75040         * modules/same-inode: New module.
75041         * modules/dev-ino: New module.
75042         * modules/cycle-check: Depend on these modules, rather than simply
75043         including their .h files.
75044         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75045         required via m4/cycle-check.m4.
75046         * modules/same: Depend on new same-inode module, rather than
75047         including same-inode.h.
75048         * modules/chdir-safer: New file.
75049
75050         * modules/chown (Depends-on): Add stat-macros.
75051
75052 2006-08-10  Jim Meyering  <jim@meyering.net>
75053
75054         * m4/cycle-check.m4: New file.
75055         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75056         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75057
75058 2006-08-10  Eric Blake  <ebb9@byu.net>
75059
75060         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75061         in from original proposal.
75062
75063 2006-08-10  Eric Blake  <ebb9@byu.net>
75064         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75065
75066         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75067         namespace.
75068
75069 2006-08-10  Bruno Haible  <bruno@clisp.org>
75070
75071         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75072         as well.
75073
75074 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75075
75076         Sync from coreutils.
75077
75078         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75079
75080         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75081         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75082
75083 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * modules/restrict: Remove; no longer needed now that we assume
75086         Autoconf 2.59 or later.
75087         * MODULES.html.sh: Remove 'restrict'.
75088         * modules/argp (Depends-on): Remove 'restrict'.
75089         * modules/base64 (Depends-on): Likewise.
75090         * modules/gc (Depends-on): Likewise.
75091         * modules/getaddrinfo (Depends-on): Likewise.
75092         * modules/glob (Depends-on): Likewise.
75093         * modules/inet_ntop (Depends-on): Likewise.
75094         * modules/inet_pton (Depends-on): Likewise.
75095         * modules/memxor (Depends-on): Likewise.
75096         * modules/regex (Depends-on): Likewise.
75097         * modules/strtok_r (Depends-on): Likewise.
75098         * modules/time_r (Depends-on): Likewise.
75099
75100 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75101
75102         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75103         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75104         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75105         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75106         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75107         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75108         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75109         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75110
75111         Merge from coreutils.
75112         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75113         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75114         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75115         * m4/time_r.m4 (gl_TIME_R): Likewise.
75116
75117 2006-08-09  Karl Berry  <karl@gnu.org>
75118
75119         * config/srclist.txt: no more gettext-tools, per Bruno.
75120
75121 2006-08-08  Eric Blake  <ebb9@byu.net>
75122
75123         * modules/verror: New module.
75124         * MODULES.html.sh: Document it.
75125
75126 2006-08-08  Eric Blake  <ebb9@byu.net>
75127
75128         * lib/verror.h, lib/verror.c: New files.
75129
75130 2006-08-08  Eric Blake  <ebb9@byu.net>
75131
75132         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75133         verror_at_line output complies with GNU Coding Standards even when
75134         file is NULL.
75135
75136 2006-08-07  Bruno Haible  <bruno@clisp.org>
75137
75138         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75139         versions of AIX.
75140         Reported by Ralf Wildenhues.
75141
75142 2006-08-07  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75145         in an AC_DEFUN. Needed so that the autoconf snippets can use
75146         AC_REQUIRE.
75147
75148 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75149
75150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75151         Initialize pkgdata_DATA.
75152         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75153         overriding it.
75154
75155 2006-08-06  Eric Blake  <ebb9@byu.net>
75156
75157         * lib/error.h: Fold in some upstream changes from glibc.
75158         * lib/error.c: Likewise.
75159
75160 2006-08-04  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75163         Make the mostlyclean-local rule depend on mostlyclean-generic.
75164         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75165
75166 2006-07-31  Bruno Haible  <bruno@clisp.org>
75167
75168         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75169         <stdlib.h>, <string.h>.
75170
75171 2006-07-30  Bruno Haible  <bruno@clisp.org>
75172
75173         * modules/readlink (License): Change to LGPL.
75174
75175 2006-07-30  Bruno Haible  <bruno@clisp.org>
75176
75177         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75178         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75179         set PKGDATADIR to point to it.
75180
75181 2006-07-30  Bruno Haible  <bruno@clisp.org>
75182
75183         * modules/csharpexec (configure.ac): Comment out macro invocation.
75184         * modules/javaexec (configure.ac): Likewise.
75185         * modules/javacomp-script (configure.ac): Likewise.
75186
75187         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75188
75189 2006-07-30  Bruno Haible  <bruno@clisp.org>
75190
75191         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75192         linked-list.
75193
75194 2006-07-30  Bruno Haible  <bruno@clisp.org>
75195
75196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75197
75198 2006-07-30  Bruno Haible  <bruno@clisp.org>
75199
75200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75201         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75202         get removed.
75203
75204 2006-07-29  Bruno Haible  <bruno@clisp.org>
75205
75206         Make it possible for gnulib-tool to work with locally modified or
75207         augmented gnulib repositories.
75208         * gnulib-tool (func_usage): Document --local-dir option.
75209         (local_gnulib_dir): New variable.
75210         Handle --local-dir option.
75211         (func_lookup_file): New function.
75212         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75213         (func_get_description, func_get_filelist, func_get_description,
75214         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75215         func_get_automake_snippet, func_get_include_directive,
75216         func_get_license, func_get_maintainer): Use func_lookup_file.
75217         (func_import, func_create_testdir): Use func_lookup_file.
75218
75219 2006-07-29  Bruno Haible  <bruno@clisp.org>
75220
75221         * modules/setenv (Depends-on): Add unistd.
75222
75223 2006-07-29  Bruno Haible  <bruno@clisp.org>
75224
75225         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75226
75227 2006-07-29  Bruno Haible  <bruno@clisp.org>
75228
75229         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75230
75231 2006-07-29  Bruno Haible  <bruno@clisp.org>
75232
75233         * gnulib-tool (import, update): If there is no Makefile.am, look at
75234         aclocal.m4, instead of bailing out.
75235
75236 2006-07-29  Bruno Haible  <bruno@clisp.org>
75237
75238         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75239         Categorize the options by when they are useful.
75240
75241 2006-07-29  Bruno Haible  <bruno@clisp.org>
75242
75243         * gnulib-tool (func_usage): Document option --no-libtool.
75244         Handle option --no-libtool.
75245         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75246         for changed semantics of $libtool variable.
75247         (func_import): Likewise. If libtool is not used, show this through
75248         an option --no-libtool.
75249         (func_create_testdir): Update.
75250
75251 2006-07-29  Bruno Haible  <bruno@clisp.org>
75252
75253         * gnulib-tool (func_import): Extend error message about missing
75254         --doc-base.
75255
75256 2006-07-29  Bruno Haible  <bruno@clisp.org>
75257
75258         * gnulib-tool (func_import): Don't create the $docbase directory if
75259         there is no file to store there.
75260
75261 2006-07-29  Bruno Haible  <bruno@clisp.org>
75262
75263         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75264         relevant, look for configure.ac there, not in the current directory.
75265         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75266
75267 2006-07-29  Bruno Haible  <bruno@clisp.org>
75268
75269         * gnulib-tool (SORT): New variable.
75270         (func_usage): Undocument --assume-autoconf option.
75271         Remove --assume-autoconf option handling.
75272         (autoconf_minversion): Determine from the contents of configure.ac.
75273         (func_import): Remove autoconf_minversion handling.
75274         Suggested by Eric Blake.
75275
75276 2006-07-29  Bruno Haible  <bruno@clisp.org>
75277
75278         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75279
75280 2006-07-29  Bruno Haible  <bruno@clisp.org>
75281
75282         * config/srclist.txt (*setenv.[ch]): Remove rules.
75283
75284 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75285
75286         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75287
75288 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75289
75290         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75291         arpa/inet.h.
75292
75293 2006-07-28  Simon Josefsson  <jas@extundo.com>
75294
75295         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75296         * modules/inet_pton (Depends-on): Likewise.
75297
75298 2006-07-28  Simon Josefsson  <jas@extundo.com>
75299
75300         * m4/netinet_in_h.m4: New file.
75301
75302 2006-07-28  Simon Josefsson  <jas@extundo.com>
75303
75304         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75305         #include's.
75306
75307 2006-07-28  Simon Josefsson  <jas@extundo.com>
75308
75309         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75310         #include's.
75311
75312 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75315         setgid on directories only if they set these bits.
75316         * lib/modechange.h: Remove obsolete comment about masks.
75317
75318 2006-07-28  Eric Blake  <ebb9@byu.net>
75319
75320         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75321         macro expansion.
75322
75323 2006-07-28  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75326
75327 2006-07-28  Bruno Haible  <bruno@clisp.org>
75328
75329         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75330
75331 2006-07-28  Bruno Haible  <bruno@clisp.org>
75332
75333         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75334         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75335         Define fallbacks.
75336         Avoids link error on FreeBSD 4.x.
75337         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75338
75339         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75340         encoding.
75341         * lib/mbswidth.c (iswcntrl): Likewise.
75342
75343 2006-07-27  Bruno Haible  <bruno@clisp.org>
75344
75345         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75346         test.
75347
75348 2006-07-27  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75351         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75352         defined.
75353
75354 2006-07-26  Eric Blake  <ebb9@byu.net>
75355
75356         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75357
75358 2006-07-26  Eric Blake  <ebb9@byu.net>
75359
75360         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75361         like mingw that lack mkstemp.
75362         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75363         avoid compilation warning on mingw.
75364
75365 2006-07-26  Bruno Haible  <bruno@clisp.org>
75366
75367         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75368         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75369         INT_FAST*_MIN, INTPTR_MIN.
75370
75371 2006-07-25  Bruno Haible  <bruno@clisp.org>
75372
75373         * modules/version-etc (Depends-on): Add stdarg.
75374
75375 2006-07-25  Bruno Haible  <bruno@clisp.org>
75376
75377         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75378         complex commands.
75379
75380 2006-07-25  Bruno Haible  <bruno@clisp.org>
75381
75382         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75383         defined in <stdarg.h> or config.h.
75384
75385 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75388         (gl_STDIO_SAFER): Remove.
75389
75390 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75391
75392         * MODULES.html.sh (File stream based Input/Output):
75393         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75394         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75395         * modules/fopen-safer, modules/tmpfile-safer: New files.
75396         * modules/stdio-safer: Remove.
75397
75398 2006-07-24  Bruno Haible  <bruno@clisp.org>
75399
75400         * modules/tmpdir: New file.
75401         * MODULES.html.sh (File system functions): Add it.
75402
75403 2006-07-24  Bruno Haible  <bruno@clisp.org>
75404
75405         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75406         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75407
75408 2006-07-24  Bruno Haible  <bruno@clisp.org>
75409
75410         * modules/clean-temp: New file.
75411
75412 2006-07-24  Bruno Haible  <bruno@clisp.org>
75413
75414         * m4/tmpdir.m4: New file, from GNU gettext.
75415
75416 2006-07-24  Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/tmpdir.h: New file, from GNU gettext.
75419         * lib/tmpdir.c: New file, from GNU gettext.
75420
75421 2006-07-24  Bruno Haible  <bruno@clisp.org>
75422
75423         * lib/clean-temp.h: New file, from GNU gettext.
75424         * lib/clean-temp.c: New file, from GNU gettext.
75425
75426 2006-07-23  Eric Blake  <ebb9@byu.net>
75427
75428         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75429         (Depends-on): Add binary-io.
75430
75431 2006-07-23  Eric Blake  <ebb9@byu.net>
75432
75433         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75434
75435 2006-07-23  Eric Blake  <ebb9@byu.net>
75436
75437         * lib/tmpfile-safer.c: New file.
75438         * lib/stdio-safer.h (fopen_safer): Add prototype.
75439         * lib/stdio--.h (tmpfile): Make safer.
75440
75441 2006-07-23  Bruno Haible  <bruno@clisp.org>
75442
75443         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75444         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75445         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75446         gl_linked_remove_at): Use it.
75447
75448 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75449         and Simon Josefsson <jas@extundo.com>
75450
75451         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75452
75453         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75454
75455 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         * modules/close-stream: New file.
75458         * modules/closeout (Description): Make it clear that it exits
75459         with a diagnostic on error.
75460         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75461         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75462
75463 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         * m4/close-stream.m4: New file.
75466
75467 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75468
75469         * lib/close-stream.c, lib/close-stream.h: New files.
75470
75471 2006-07-22  Bruno Haible  <bruno@clisp.org>
75472
75473         Merge from GNU gettext 0.15.
75474
75475         2006-05-01  Bruno Haible  <bruno@clisp.org>
75476
75477                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75478
75479         2006-07-22  Bruno Haible  <bruno@clisp.org>
75480
75481                 * modules/javaversion: New file.
75482                 * MODULES.html.sh (Java): Add javaversion.
75483
75484         2006-03-12  Bruno Haible  <bruno@clisp.org>
75485
75486                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75487
75488         2005-12-04  Bruno Haible  <bruno@clisp.org>
75489
75490                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75491                 (untested).
75492
75493         2006-06-21  Bruno Haible  <bruno@clisp.org>
75494
75495                 Avoid warnings from recent versions of mcs.
75496                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75497                 -o, -L, -r any more. Use options documented since mcs-1.0
75498                 instead. Similarly for -g.
75499
75500         2005-12-04  Bruno Haible  <bruno@clisp.org>
75501
75502                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75503                 .resources, not .resource.
75504
75505         2005-07-09  Bruno Haible  <bruno@clisp.org>
75506
75507                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75508                 add a .dll suffix.
75509                 Reported by Mark Junker <mjscod@gmx.de>.
75510
75511         2006-07-22  Bruno Haible  <bruno@clisp.org>
75512
75513                 * modules/gettext: Upgrade to gettext-0.15.
75514                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75515                 m4/visibility.m4.
75516                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75517
75518 2006-07-22  Bruno Haible  <bruno@clisp.org>
75519
75520         Merge from GNU gettext 0.15.
75521
75522         2006-03-25  Bruno Haible  <bruno@clisp.org>
75523
75524                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75525
75526         2006-07-21  Bruno Haible  <bruno@clisp.org>
75527
75528                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75529                 "1.1".
75530
75531         2006-05-09  Bruno Haible  <bruno@clisp.org>
75532
75533                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75534                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75535                 for the conftestver execution.
75536
75537         2006-05-01  Bruno Haible  <bruno@clisp.org>
75538
75539                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75540                 optional target-version argument. Verify that the compiler
75541                 groks source of the specified source-version, or add -source
75542                 option as necessary. Verify that the compiler produces
75543                 bytecode in the specified target-version, or add -target and
75544                 -source options as necessary. Make the result of the test
75545                 available as variable CONF_JAVAC. Also log error output in
75546                 config.log.
75547
75548         2006-03-11  Bruno Haible  <bruno@clisp.org>
75549
75550                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75551
75552         2006-05-09  Bruno Haible  <bruno@clisp.org>
75553
75554                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75555                 CLASSPATH_SEPARATOR to a semicolon.
75556
75557         2006-03-12  Bruno Haible  <bruno@clisp.org>
75558
75559                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75560                 available as variable CONF_JAVA, for subsequent autoconf
75561                 tests. Also log error output in config.log.
75562
75563         2006-07-19  Bruno Haible  <bruno@clisp.org>
75564
75565                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75566                 that getline works on glibc2 systems. Needed to avoid trouble
75567                 in relocatable.c.
75568                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75569
75570         2005-12-04  Bruno Haible  <bruno@clisp.org>
75571
75572                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75573                 launcher (untested).
75574
75575         2005-12-04  Bruno Haible  <bruno@clisp.org>
75576
75577                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75578
75579         2006-07-22  Bruno Haible  <bruno@clisp.org>
75580
75581                 * gettext.m4: Update from GNU gettext-0.15.
75582                 * nls.m4: Likewise.
75583                 * po.m4: Likewise.
75584                 * inttypes-pri.m4: Likewise.
75585                 * inttypes-h.m4: Renamed from inttypes.m4.
75586                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75587
75588 2006-07-22  Bruno Haible  <bruno@clisp.org>
75589
75590         Merge from GNU gettext 0.15.
75591
75592         2005-07-05  Bruno Haible  <bruno@clisp.org>
75593
75594                 * printf-args.c (printf_fetchargs): Work around broken
75595                 definition of wint_t on mingw.
75596
75597         2005-02-12  Bruno Haible  <bruno@clisp.org>
75598
75599                 * xallocsa.h: Add extern "C" for C++.
75600
75601         2006-05-17  Bruno Haible  <bruno@clisp.org>
75602
75603                 Cygwin portability.
75604                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75605
75606         2006-04-30  Bruno Haible  <bruno@clisp.org>
75607
75608                 * progreloc.c: Include <mach-o/dyld.h> if available.
75609                 (find_executable): Use _NSGetExecutablePath when possible.
75610
75611         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75612
75613                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75614                 function.
75615
75616         2005-12-29  Bruno Haible  <bruno@clisp.org>
75617
75618                 * progreloc.c (set_program_name_and_installdir): Fix
75619                 compilation error.
75620
75621         2005-12-04  Bruno Haible  <bruno@clisp.org>
75622
75623                 Cygwin portability.
75624                 * progreloc.c: Include <windows.h> also on Cygwin.
75625                 (find_executable): Add support for Cygwin.
75626                 (set_program_name_and_installdir): Handle also platforms with
75627                 nonempty EXEEXT.
75628
75629         2006-07-11  Bruno Haible  <bruno@clisp.org>
75630
75631                 * javacomp.c: Fix a comment.
75632                 Reported by Jim Meyering.
75633
75634         2006-04-30  Bruno Haible  <bruno@clisp.org>
75635
75636                 * javacomp.h (compile_java_class): Add source_version,
75637                 target_version arguments.
75638                 * javacomp.c: Rewritten to choose only a compiler that
75639                 respects the specified source_version and target_version.
75640
75641         2006-06-27  Bruno Haible  <bruno@clisp.org>
75642
75643                 Assume correct S_ISDIR macro.
75644                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75645
75646         2006-07-22  Bruno Haible  <bruno@clisp.org>
75647
75648                 * javaversion.h: New file, from GNU gettext.
75649                 * javaversion.c: New file, from GNU gettext.
75650                 * javaversion.java: New file, from GNU gettext.
75651                 * javaversion.class: New file, from GNU gettext.
75652
75653         2006-05-17  Bruno Haible  <bruno@clisp.org>
75654
75655                 Cygwin portability.
75656                 * javaexec.c (execute_java_class): Test for jview program
75657                 also on Cygwin.
75658
75659         2006-04-09  Bruno Haible  <bruno@clisp.org>
75660
75661                 * fatal-signal.c: Don't include string.h.
75662                 (at_fatal_signal): Use a copying loop instead of memcpy.
75663
75664         2005-12-04  Bruno Haible  <bruno@clisp.org>
75665
75666                 * csharpexec.c: Add support for 'clix' launcher (untested).
75667                 (execute_csharp_using_sscli): New function.
75668                 (execute_csharp_program): Call it.
75669
75670         2006-06-21  Bruno Haible  <bruno@clisp.org>
75671
75672                 Avoid warnings from recent versions of mcs.
75673                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75674                 -o, -L, -r any more. Use options documented since mcs-1.0
75675                 instead. Similarly for -g.
75676
75677         2005-07-09  Bruno Haible  <bruno@clisp.org>
75678
75679                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75680                 add a .dll suffix.
75681                 Reported by Mark Junker <mjscod@gmx.de>.
75682
75683         2006-06-17  Bruno Haible  <bruno@clisp.org>
75684
75685                 * config.charset: Update for NetBSD 3.0.
75686
75687         2006-05-17  Bruno Haible  <bruno@clisp.org>
75688
75689                 Cygwin portability.
75690                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75691
75692         2006-05-16  Bruno Haible  <bruno@clisp.org>
75693
75694                 * localcharset.c [CYGWIN]: Include <windows.h>.
75695                 (get_charset_aliases): For Cygwin, return the same CPxxx
75696                 aliases list as under WIN32.
75697                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75698                 the environment variables. Fall back to GetACP().
75699
75700         2006-04-05  Bruno Haible  <bruno@clisp.org>
75701
75702                 * config.charset: Update Juan Manuel Guerrero's address.
75703
75704         2005-02-12  Bruno Haible  <bruno@clisp.org>
75705
75706                 * allocsa.h: Add extern "C" for C++.
75707
75708         2005-02-10  Bruno Haible  <bruno@clisp.org>
75709
75710                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75711                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75712
75713         2006-07-22  Bruno Haible  <bruno@clisp.org>
75714
75715                 * gettext.h: Update to GNU gettext-0.15.
75716
75717 2006-07-22  Bruno Haible  <bruno@clisp.org>
75718
75719         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75720         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75721         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75722
75723 2006-07-21  Eric Blake  <ebb9@byu.net>
75724
75725         * modules/stdlib-safer: New file.
75726         * MODULES.html.sh (File stream based Input/Output): Add
75727         stdlib-safer.
75728
75729 2006-07-21  Eric Blake  <ebb9@byu.net>
75730
75731         * lib/stdlib-safer.h: New file from coreutils, required by
75732         stdlib--.h.
75733
75734 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75737
75738 2006-07-20  Bruno Haible  <bruno@clisp.org>
75739
75740         * gnulib-tool: Recognize new option --assume-autoconf.
75741         (autoconf_minversion): New variable.
75742         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75743
75744 2006-07-20  Bruno Haible  <bruno@clisp.org>
75745
75746         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75747
75748 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75749
75750         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75751         Reindent and repaginate.
75752
75753 2006-07-19  Derek Price  <derek@ximbiot.com>
75754
75755         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75756         Correct grammar.
75757
75758 2006-07-17  Bruno Haible  <bruno@clisp.org>
75759
75760         * modules/list: New file.
75761         * modules/array-list: New file.
75762         * modules/carray-list, modules/carray-list-tests: New files.
75763         * modules/linked-list, modules/linked-list-tests: New files.
75764         * modules/avltree-list, modules/avltree-list-tests: New files.
75765         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75766         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75767         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75768         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75769         * modules/oset: New file.
75770         * modules/array-oset: New file.
75771         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75772         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75773         * tests/test-carray_list.c: New file.
75774         * tests/test-linked_list.c: New file.
75775         * tests/test-avltree_list.c: New file.
75776         * tests/test-rbtree_list.c: New file.
75777         * tests/test-linkedhash_list.c: New file.
75778         * tests/test-avltreehash_list.c: New file.
75779         * tests/test-rbtreehash_list.c: New file.
75780         * tests/test-avltree_oset.c: New file.
75781         * tests/test-rbtree_oset.c: New file.
75782         * MODULES.html.sh (Container data structures): New section.
75783
75784 2006-07-17  Bruno Haible  <bruno@clisp.org>
75785
75786         * m4/gl_list.m4: New file.
75787
75788 2006-07-17  Bruno Haible  <bruno@clisp.org>
75789
75790         * lib/gl_list.h: New file.
75791         * lib/gl_list.c: New file.
75792         * lib/gl_array_list.h: New file.
75793         * lib/gl_array_list.c: New file.
75794         * lib/gl_carray_list.h: New file.
75795         * lib/gl_carray_list.c: New file.
75796         * lib/gl_linked_list.h: New file.
75797         * lib/gl_linked_list.c: New file.
75798         * lib/gl_anylinked_list1.h: New file.
75799         * lib/gl_anylinked_list2.h: New file.
75800         * lib/gl_avltree_list.h: New file.
75801         * lib/gl_avltree_list.c: New file.
75802         * lib/gl_anyavltree_list1.h: New file.
75803         * lib/gl_anyavltree_list2.h: New file.
75804         * lib/gl_rbtree_list.h: New file.
75805         * lib/gl_rbtree_list.c: New file.
75806         * lib/gl_anyrbtree_list1.h: New file.
75807         * lib/gl_anyrbtree_list2.h: New file.
75808         * lib/gl_anytree_list1.h: New file.
75809         * lib/gl_anytree_list2.h: New file.
75810         * lib/gl_linkedhash_list.h: New file.
75811         * lib/gl_linkedhash_list.c: New file.
75812         * lib/gl_anyhash_list1.h: New file.
75813         * lib/gl_anyhash_list2.h: New file.
75814         * lib/gl_avltreehash_list.h: New file.
75815         * lib/gl_avltreehash_list.c: New file.
75816         * lib/gl_rbtreehash_list.h: New file.
75817         * lib/gl_rbtreehash_list.c: New file.
75818         * lib/gl_anytreehash_list1.h: New file.
75819         * lib/gl_anytreehash_list2.h: New file.
75820
75821         * lib/gl_oset.h: New file.
75822         * lib/gl_oset.c: New file.
75823         * lib/gl_array_oset.h: New file.
75824         * lib/gl_array_oset.c: New file.
75825         * lib/gl_avltree_oset.h: New file.
75826         * lib/gl_avltree_oset.c: New file.
75827         * lib/gl_rbtree_oset.h: New file.
75828         * lib/gl_rbtree_oset.c: New file.
75829         * lib/gl_anytree_oset.h: New file.
75830
75831 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * m4/mkancesdirs.m4: New file.
75834         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75835         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75836         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75837         it.
75838
75839 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75842         * lib/mkancesdirs.h: New files.
75843         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75844         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75845         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75846         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75847         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75848         callers changed.  Revamp internals significantly, by not
75849         attempting to create directories that are temporarily more
75850         permissive than the final results.  Do not attempt to use
75851         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75852         This removes some race conditions, fixes some bugs, and simplifies
75853         things.  Use new dirchownmod function to do owner and mode changes.
75854         * lib/mkdir-p.h: Likewise.
75855         * lib/modechange.c (octal_to_mode): New function.
75856         (struct mode_change): New member mentioned.
75857         (make_node_op_equals): New arg mentioned.  All callers changed.
75858         (mode_compile): Keep track of which mode bits the user has explicitly
75859         mentioned.
75860         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75861         New arg PMODE_BITS, to keep track of which mode bits the user
75862         mentioned; it treats S_ISUID and S_ISGID speciall.
75863         All callers changed.
75864         * lib/modechange.h: Likewise.
75865
75866 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75867
75868         * MODULES.html.sh: Add mkancestors.
75869         * modules/mkancesdirs: New module.
75870         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75871         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75872         The chdir-safer and afs files are now orphans; I'll remove them
75873         unless someone speaks up.
75874         Add lib/dirchownmod.c, lib/dirchownmod.h.
75875         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75876         Add lchown, mkancesdirs.
75877         (Maintainer): Add self.
75878
75879 2006-07-15  Karl Berry  <karl@gnu.org>
75880
75881         * gnulib-tool: help message wording/arrangement.
75882
75883 2006-07-14  Simon Josefsson  <jas@extundo.com>
75884
75885         * doc/gnulib.texi (Libtool and Windows): New section.
75886
75887 2006-07-12  Simon Josefsson  <jas@extundo.com>
75888
75889         * modules/gendocs (License): Fix license, approved by Karl.
75890
75891 2006-07-12  Eric Blake  <ebb9@byu.net>
75892
75893         * MODULES.html.sh: Add gendocs.
75894
75895 2006-07-11  Eric Blake  <ebb9@byu.net>
75896
75897         * modules/fdl: New module, to install doc/fdl.texi.
75898         * MODULES.html.sh: Add new section for documentation modules.
75899         * gnulib-tool: Avoid space-tab.
75900         (--doc-base): New option, to manage files from doc.
75901
75902 2006-07-11  Eric Blake  <ebb9@byu.net>
75903
75904         * m4/absolute-header.m4: Fix comments to match recent change.
75905
75906 2006-07-11  Eric Blake  <ebb9@byu.net>
75907
75908         * gnulib-tool: List --doc-base before --tests-base.
75909
75910 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75911
75912         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75913
75914 2006-07-11  Bruno Haible  <bruno@clisp.org>
75915
75916         * README: Mention where to put documentation.
75917
75918 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75919
75920         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75921
75922 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75925         to stdint.m4.
75926
75927 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75930         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75931         "no/such/file/stdint.h" when there is no such file, so that
75932         the resulting C code can be parsed by dodgy compilers.
75933         Problems reported by Bob Proulx.
75934
75935 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75936
75937         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75938         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75939         macros into the GNU _D_EXACT_NAMLEN.
75940         * lib/savedir.c:  Likewise.
75941         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75942
75943 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75944         and Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75947         * m4/savedir.m4:
75948         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75949         macros into the GNU _D_EXACT_NAMLEN.
75950
75951 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75954         around the absolute name, to work around a problem with the HP-UX
75955         11.23 native C compiler, reported by Bob Proulx.
75956
75957 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75958
75959         * doc/maintain.texi, make-stds.texi: Sync from
75960         <http://savannah.gnu.org/projects/gnustandards>.
75961
75962 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75965
75966 2006-07-09  Jim Meyering  <jim@meyering.net>
75967
75968         * m4/glob.m4: Remove a doubled word in a comment.
75969
75970 2006-07-09  Jim Meyering  <jim@meyering.net>
75971
75972         * lib/argp-pv.c: Remove a doubled word in a comment.
75973         * lib/check-version.c (check_version): Likewise.
75974         * lib/javacomp.c (compile_java_class): Likewise.
75975
75976 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75977
75978         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75979         for the benefit of people using Autoconf 2.60.  If you want to
75980         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75981         (or m4/onceonly.m4, if pre-2.57) manually.
75982
75983 2006-07-08  Jim Meyering  <jim@meyering.net>
75984
75985         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75986         comment.
75987         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75988         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75989         comment.
75990
75991 2006-07-08  Jim Meyering  <jim@meyering.net>
75992
75993         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75994
75995 2006-07-07  Simon Josefsson  <jas@extundo.com>
75996
75997         * tests/test-crc.c: Change expected crc value, the test vector
75998         were probably computed using the old broken crc.c?
75999
76000 2006-07-06  Simon Josefsson  <jas@extundo.com>
76001
76002         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76003         now the canonical place for the M4 file).
76004
76005         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76006         from the sys_socket dependency now.
76007
76008         * modules/inet_pton (Files): Ditto.
76009
76010         * modules/inet_ntop (Files): Ditto.
76011
76012 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76013
76014         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76015         not gl_PREREQ_GETUSERSHELL.
76016
76017 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76018
76019         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76020         with only one argument, for Autoconf 2.60.
76021         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76022         expand to nothing, so add a shell command to avoid syntax error.
76023         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76024
76025 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76026
76027         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76028
76029 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76032         no longer needed.  Check for isblank decl.
76033         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76034         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76035         of existence.
76036
76037 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76038
76039         * lib/getloadavg.c: Use __VMS, not VMS.
76040         * lib/getopt.c: Likewise.
76041         * lib/getpagesize.h: Likewise.
76042         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76043         and probably does not work.
76044
76045 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         * lib/.cppi-disable: Add wcwidth.
76048         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76049         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76050         (ISGRAPH): Remove.  All uses changed to isgraph.
76051         (FOLD) [!defined _LIBC]: Remove special case.
76052         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76053         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76054         HAVE_ISBLANK.
76055         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76056         case.
76057
76058 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76059
76060         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76061         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76062         brackets.  Other minor changes to suppress some compiler
76063         warnings.
76064
76065 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76066         and Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76069         of invoking obsolescent AC_HEADER_DIRENT macro.
76070         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76071         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76072         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76074         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76075         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76076         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76077         * m4/readdir.m4: Remove; no longer needed.
76078
76079 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76080         and Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76083         Don't worry about this obsolete case any more.
76084         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76085         directories.
76086         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76087         worry about this obsolete case any more.
76088         * lib/fts.c: Likewise.
76089         * lib/getcwd.c: Likewise.
76090         * lib/glob.h: Likewise.
76091         * lib/savedir.c: Likewise.
76092
76093 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76096         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76097         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76098         needed.
76099         All uses removed.
76100         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76101         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76102         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76103         needed.
76104         * m4/getdate.m4 (gl_GETDATE): Likewise.
76105         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76106         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76107         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76108         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76109         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76110         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76111         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76112         needed.
76113
76114 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * lib/memcasecmp.c: Include <limits.h>.
76117         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76118         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76119         Don't assume isdigit succeeds only on '0' through '9'.
76120
76121 2006-07-05  Eric Blake  <ebb9@byu.net>
76122
76123         * modules/getaddrinfo (Depends-on): Add snprintf.
76124
76125 2006-07-05  Eric Blake  <ebb9@byu.net>
76126
76127         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76128         to avoid 'header present but could not be compiled' on cygwin.
76129
76130 2006-07-05  Eric Blake  <ebb9@byu.net>
76131
76132         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76133         missing from netdb.h.
76134         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76135
76136 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76137
76138         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76139         no longer needed.
76140         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76141         * m4/getdate.m4 (gl_GETDATE): Likewise.
76142         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76143         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76144         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76145         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76146         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76147
76148 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76149
76150         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76151         All uses of is_space replaced by isspace.
76152         * lib/exit.h: Don't talk about STDC_HEADERS.
76153         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76154         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76155         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76156         replaced by isprint etc.
76157         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76158         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76159         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76160         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76161         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76162         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76163
76164 2006-07-05  Bruno Haible  <bruno@clisp.org>
76165
76166         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76167         the function exists, before testing against AIX.
76168         Reported by Martin Lambers <marlam@marlam.de>.
76169
76170 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76173         From Mark D. Baushke.
76174
76175 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76178         to the absolute name, not just one, to bypass Sun C 5.8's
76179         "warning: #include of /usr/include/... may be non-portable".
76180
76181 2006-07-04  Eric Blake  <ebb9@byu.net>
76182
76183         * modules/dirname-tests: New test module.
76184         * tests/test-dirname.c: New file, replacing dirname.c
76185         TEST_DIRNAME section that was recently deleted.
76186
76187 2006-07-04  Bruno Haible  <bruno@clisp.org>
76188
76189         Assume ANSI C header files and <ctype.h> functions.
76190         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76191         (mbsnwidth): Use isprint, iscntrl instead.
76192
76193 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         Merge from coreutils.
76196         * MODULES.html.sh: Add xstrtold.
76197         * modules/xstrtold: New file.
76198         * modules/cycle-check (Files): Add lib/same-inode.h.
76199         * modules/dirname (Files): Add m4/double-slash-root.m4.
76200         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76201         * modules/mkdir-p (Files): Add lib/same-inode.h.
76202         * modules/same (Files): Add lib/same-inode.h.
76203
76204 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76205
76206         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76207         This is to keep the terminology clean; POSIX talks about
76208         "absolute pathnames", not "full pathnames", but the GNU
76209         Coding Standards say to use "path" for something else;
76210         so use "absolute" to keep both sides happy.
76211         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76212         Set gl_absolute_header, not gl_full_header_path.
76213         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76214         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76215         All uses changed.
76216
76217         Merge from coreutils.
76218
76219         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76222         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76223         want to require the building of c-strtod.o.
76224         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76225         needs -lm directly.
76226         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76227
76228         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76231         --as-needed option if available.  Problem reported by Albert Chin in
76232         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76233         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76234         cc merely issues a bunch of annoying warnings for --as-needed
76235         (this problem was reported by Bob Proulx).  Also, try linking with
76236         -lm to detect a bug in binutils 2.16 (this problem was reported
76237         by Ralf Wildenhues).
76238
76239         2006-06-18  Jim Meyering  <jim@meyering.net>
76240
76241         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76242         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76243         macro.
76244         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76245         also check for glibc-2.4's abort-inducing bug.
76246
76247         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76248         Low-probability clean-up should be to use rmdir to get rid of
76249         the just-created directory, not unlink.
76250
76251         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76252         configure fail, and request a bug report to inform us about it.
76253         Add a comment that, barring reports to the contrary, in 2007 we'll
76254         assume ftruncate is universally available.
76255
76256         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76259
76260         2006-03-12  Jim Meyering  <jim@meyering.net>
76261
76262         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76263         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76264         * m4/same.m4 (gl_SAME): Likewise.
76265         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76266
76267         2006-03-11  Eric Blake  <ebb9@byu.net>
76268
76269         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76270         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76271         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76272         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76273
76274 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76277         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76278         reported by Mark D. Baushke, one in
76279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76280
76281         Merge from coreutils.
76282
76283         * lib/.cppi-disable: Add stdint_.h.
76284         * lib/.cvsignore: Add stdint.h.
76285
76286         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76289         both double and long double versions.
76290         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76291         * lib/xstrtold.c: New file.
76292         * lib/xstrtod.h (xstrtold): New decl.
76293
76294         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         * lib/filemode.c (setst): Remove.
76297         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76298         (arguably) clearer, and the generated code is a bit smaller on my
76299         Debian GNU/Linux stable x86 host.
76300
76301         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76304         Assume that filemode.h includes sys/types.h and sys/stat.h.
76305         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76306         (ftypelet): Reorder to put common cases first, for efficiency.
76307         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76308         to do 'M'.
76309         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76310         of 10, for compatibility with FreeBSD.  All callers changed.
76311         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76312         types that can't be deduced solely from st_mode.  First arg is now a
76313         const pointer.
76314         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76315         (strmode): Renamed from mode_string.
76316         (filemodestring): New decl.
76317         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76318         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76319         needed.
76320         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76321
76322         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76323
76324         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76325         fsusage.h now does that.  Include fsusage.h first, to test interface.
76326         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76327         at most one method (the old code could have generated decls that
76328         didn't conform to C89, not that this was ever exercised).
76329         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76330
76331         2006-03-19  Jim Meyering  <jim@meyering.net>
76332
76333         Work even in a chroot where d_ino values for entries in "/"
76334         don't match the stat.st_ino values for the same names.
76335         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76336         number, iterate through all entries again, using lstat instead.
76337         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76338         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76339
76340         * lib/getcwd.c (__getcwd): Clarify a comment.
76341         Use memcpy in place of a call to strcpy.
76342
76343         2006-03-12  Jim Meyering  <jim@meyering.net>
76344
76345         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76346         matches that of the current directory (which we're about to chdir ".."
76347         out of), then save the dev-ino of the parent, instead.
76348
76349         * lib/same-inode.h (SAME_INODE): New file/macro.
76350         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76351         Include "same-inode.h", instead.
76352         * lib/same.c: Likewise.
76353         * lib/cycle-check.h: Include "same-inode.h".
76354         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76355         * lib/cycle-check.c (SAME_INODE): Remove definition.
76356         * lib/root-dev-ino.h: Include "same-inode.h".
76357
76358         2006-03-11  Eric Blake  <ebb9@byu.net>
76359
76360         * lib/same.c (same_name): s/base_name/last_component/
76361         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76362         * lib/filenamecat.c (file_name_concat): Likewise.
76363
76364         2006-03-11  Eric Blake  <ebb9@byu.net>,
76365                     Paul Eggert  <eggert@cs.ucla.edu>
76366
76367         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76368         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76369         drive prefix.
76370         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76371         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76372         (last_component): New method.
76373         * lib/dirname.c (dir_len): Determine when drive letters need a
76374         subsequent slash.  Preserve // when it is special.
76375         (dir_name): Don't append dot when drive letter is absolute.
76376         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76377         * lib/basename.c (base_name): New semantics - malloc the result.
76378         Preserve // when it is special.  Preserve relative files that look
76379         like drive letters.
76380         (base_len): Preserve // when it is special.
76381         (last_component): New method, similar to old base_name semantics.
76382         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76383         base_name.  Strip redundant slashes from ///.
76384
76385 2006-07-03  Jim Meyering  <jim@meyering.net>
76386
76387         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76388         macro is used before the first cycle_check call.
76389
76390 2006-07-03  Eric Blake  <ebb9@byu.net>
76391
76392         * modules/dirname (Depends-on): Add xstrndup.
76393
76394 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76397         test cases, so that config.log is a bit easier to follow.
76398
76399 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76402         both are 64 bits, since this seems to be the tradition, and this
76403         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76404         we ever run into a host that prefers long long to long in this
76405         case, we'll need another configure-time test.  Problem reported by
76406         Jim Meyering.
76407
76408 2006-07-02  Eric Blake  <ebb9@byu.net>
76409
76410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76411
76412 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76413
76414         * modules/inttypes (Depends-on): No longer depends on stdint.
76415         * modules/stdint (Description): Say more about assumptions.
76416         Say that the fast types might differ.  Say macros are used.
76417         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76418         (Makefile.am): Revise list of substituted symbols to match
76419         new stdint.m4.
76420         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76421         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76422         * tests/test-stdint.c (verify_same_types)
76423         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76424         the code conforms to C99/C89.
76425         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76426         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76427
76428 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76429
76430         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76431         but fix a bug, by requiring at least 64 bits.
76432         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76433         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76434         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76435         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76436
76437         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76438         changes.  Make 2.59 a prerequisite.  Check and substitute for
76439         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76440         inttypes.h.  Do not use special include files; just use the
76441         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76442         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76443         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76444         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76445         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76446         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76447         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76448         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76449         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76450         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76451         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76452         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76453         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76454         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76455         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76456         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76457         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76458         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76459         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76460         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76461         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76462         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76463         not check for things that C99 does not require, e.g., int8_t.  If
76464         a test isn't needed unless <stdint.h> isn't working, and is
76465         unlikely to be needed for any other reason, then don't do it
76466         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76467         size_t, since we assume C89 freestanding at least.  Do not check
76468         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76469         the right thing even if the types are not defined.  Instead use:
76470         (gl_STDINT_TYPE_PROPERTIES): New macro.
76471         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76472         testing whether <sys/types.h> clashes, as Autoconf does this for
76473         us now.  All uses removed.
76474         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76475         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76476         (gl_CHECK_TYPE_SAME):
76477         Remove; no longer needed.
76478         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76479         exists, since we'll return 0 anyway in that case.
76480         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76481
76482 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76485         possible collision with system files.
76486         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76487         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76488         WCHAR_MIN and WCHAR_MAX in this case.
76489         (<stddef.h>): Do not include; no longer needed.
76490         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76491         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76492         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76493         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76494         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76495         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76496         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76497         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76498         !defined(__c99))]: Include in this case too, since it's harmless
76499         now.
76500         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76501         dangerous to do so.
76502         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76503         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76504         (_STDINT_MIN, _STDINT_MAX): New macros.
76505         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76506         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76507         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76508         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76509         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76510         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76511         macros, not typedefs; this simplifies things quite a bit.
76512         Use long int for all types narrower than int64_t.
76513         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76514         Define in terms of long long int or int64_t or long int,
76515         not int64_t or int32_t.  This saves some compile-time testing.
76516         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76517         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76518         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76519         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76520         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76521         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76522         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76523         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76524         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76525         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76526         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76527         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76528         undef any previous version and define our own version, for
76529         simplicity and consistency with the new macros for types.
76530         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76531         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76532         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76533         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76534         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76535         @WINT_T_SUFFIX@ to keep things simple here.
76536         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76537         Simplify by assuming typical 8/16/32/64 host, since we're
76538         already doing that elsewhere anyway.
76539         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76540         and assume long long int is 64 bits if available.  This
76541         speeds up 'configure'.
76542
76543 2006-07-01  Eric Blake  <ebb9@byu.net>
76544
76545         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76546         Reported by Andreas Buening.
76547
76548 2006-07-01  Eric Blake  <ebb9@byu.net>
76549
76550         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76551
76552 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76553
76554         * lib/getaddrinfo.c: fixed typo
76555
76556 2006-06-29  Jim Meyering  <jim@meyering.net>
76557
76558         * modules/strftime (Maintainer): Add my name, since with the
76559         FPRINTFTIME changes strftime.c has forked from glibc.
76560
76561 2006-06-29  Eric Blake  <ebb9@byu.net>
76562
76563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76564
76565 2006-06-29  Eric Blake  <ebb9@byu.net>
76566
76567         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76568
76569 2006-06-29  Eric Blake  <ebb9@byu.net>
76570
76571         * lib/stat_.h: New file.
76572
76573 2006-06-29  Eric Blake  <ebb9@byu.net>
76574
76575         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76576         unused static function.
76577
76578 2006-06-29  Eric Blake  <ebb9@byu.net>
76579
76580         * doc/functions.texi (Function Portability): Document missing lstat
76581         on mingw.
76582
76583 2006-06-29  Eric Blake  <ebb9@byu.net>
76584
76585         * MODULES.html.sh: Add sys_stat.
76586         * modules/sys_stat: New module.
76587         * modules/mkstemp (Depends-on): Add sys_stat.
76588
76589 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76590
76591         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76592
76593 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76594
76595         * m4/c-bs-a.m4: Removed.
76596
76597 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76598
76599         * lib/strftime.c: Assume strftime() exists.
76600
76601 2006-06-29  Derek Price  <derek@ximbiot.com>
76602
76603         * modules/c-bs-a: Removed - \a is C89.
76604         * MODULES.html.sh: Remove c-bs-a.
76605
76606 2006-06-29  Bruno Haible  <bruno@clisp.org>
76607
76608         * modules/wcwidth (License): Change to LGPL.
76609
76610 2006-06-28  Simon Josefsson  <jas@extundo.com>
76611
76612         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76613         on _WIN32.
76614
76615         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76616         getnameinfo.
76617
76618 2006-06-28  Simon Josefsson  <jas@extundo.com>
76619
76620         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76621
76622 2006-06-28  Simon Josefsson  <jas@extundo.com>
76623
76624         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76625         functions there.  It will succeed on Windows XP, but on Windows
76626         2000 and (presumably) earlier, it will fail, and use the internal
76627         re-implementation.
76628         (use_win32_p): New function.
76629         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76630         Support AI_NUMERICSERV to disable getservbyname.
76631         (getnameinfo): New function, only supports
76632         NI_NUMERICHOST|NI_NUMERICSERV for now.
76633
76634         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76635         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76636         getnameinfo.
76637
76638 2006-06-28  Eric Blake  <ebb9@byu.net>
76639
76640         * modules/wcwidth: New file.
76641         * modules/mbchar (Depends-on): Add wcwidth.
76642         * modules/mbswidth (Depends-on): Add wcwidth.
76643         * MODULES.html.sh: Add wcwidth.
76644
76645 2006-06-28  Eric Blake  <ebb9@byu.net>
76646
76647         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76649
76650 2006-06-28  Eric Blake  <ebb9@byu.net>
76651
76652         * lib/xvasprintf.h: Fix comments.
76653
76654 2006-06-28  Eric Blake  <ebb9@byu.net>
76655
76656         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76657         * lib/mbswidth.c (wcwidth): Move from here...
76658         * lib/wcwidth.h: ...to this new file.
76659
76660 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76661
76662         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76663
76664         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76665         it's obsolete.
76666         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76667
76668 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76669
76670         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76671         Autoconf 2.60 says this stuff was obsolete.
76672
76673 2006-06-28  Bruno Haible  <bruno@clisp.org>
76674
76675         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76676
76677 2006-06-28  Bruno Haible  <bruno@clisp.org>
76678
76679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76680         gt_TYPE_WCHAR_T.
76681
76682 2006-06-28  Bruno Haible  <bruno@clisp.org>
76683
76684         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76685         declaration for wcwidth.
76686         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76687
76688 2006-06-28  Bruno Haible  <bruno@clisp.org>
76689
76690         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76691         (mkdir): Define using _mkdir.
76692
76693 2006-06-28  Bruno Haible  <bruno@clisp.org>
76694
76695         * lib/getaddrinfo.h: Fix POSIX URL.
76696         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76697         _WIN32.
76698         (use_win32_p): Make static.
76699         (getaddrinfo): Reject service name if it is empty or does not consist
76700         solely of decimal digits, or if its value is > 65535.
76701         (getnameinfo): Remove useless casts.
76702
76703 2006-06-27  Simon Josefsson  <jas@extundo.com>
76704
76705         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76706         Eggert and Martin Lambers.
76707
76708 2006-06-27  Simon Josefsson  <jas@extundo.com>
76709
76710         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76711         Eggert and Martin Lambers.
76712
76713 2006-06-27  Bruno Haible  <bruno@clisp.org>
76714
76715         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76716         result to 0, not to empty.
76717         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76718
76719 2006-06-27  Bruno Haible  <bruno@clisp.org>
76720
76721         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76722
76723 2006-06-26  Simon Josefsson  <jas@extundo.com>
76724
76725         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76726         present.
76727
76728 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76729
76730         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76731         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76732         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76733
76734 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76735
76736         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76737
76738 2006-06-26  Bruno Haible  <bruno@clisp.org>
76739
76740         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76741
76742 2006-06-26  Bruno Haible  <bruno@clisp.org>
76743
76744         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76745
76746 2006-06-26  Bruno Haible  <bruno@clisp.org>
76747
76748         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76749         SGI C compiler in pre-C99 mode.
76750         Suggested by Mark D. Baushke and Larry Jones.
76751
76752 2006-06-26  Bruno Haible  <bruno@clisp.org>
76753
76754         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76755         WCHAR_MAX.
76756         Reported by Mark D. Baushke and Larry Jones.
76757
76758 2006-06-26  Bruno Haible  <bruno@clisp.org>
76759
76760         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76761         in pre-C99 mode.
76762         Suggested by Mark D. Baushke and Larry Jones.
76763
76764 2006-06-23  Simon Josefsson  <jas@extundo.com>
76765             Bruno Haible  <bruno@clisp.org>
76766
76767         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76768         Emit mostlyclean-local rule.
76769         (func_emit_tests_Makefile_am): Likewise.
76770         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76771
76772 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76773
76774         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76775
76776 2006-06-23  Bruno Haible  <bruno@clisp.org>
76777
76778         * tests/test-stdint.c: Update to match ISO C 99 Technical
76779         Corrigendum 1.
76780
76781 2006-06-23  Bruno Haible  <bruno@clisp.org>
76782
76783         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76784
76785 2006-06-23  Bruno Haible  <bruno@clisp.org>
76786
76787         * lib/stdint_.h: Treat IRIX like OpenBSD.
76788
76789 2006-06-23  Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76792         ISO C 99 Technical Corrigendum 1.
76793
76794 2006-06-22  Simon Josefsson  <jas@extundo.com>
76795
76796         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76797         MinGW.
76798
76799 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76802         needed.  Some compiler complained about some of them.  Problem reported
76803         by Larry Jones in
76804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76805
76806 2006-06-21  Simon Josefsson  <jas@extundo.com>
76807
76808         * tests/test-getaddrinfo.c: New file.
76809
76810         * modules/getaddrinfo-tests: New file.
76811
76812         * MODULES.html.sh: Add inet_pton.
76813
76814         * modules/inet_pton: New file.
76815
76816 2006-06-21  Simon Josefsson  <jas@extundo.com>
76817
76818         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76819         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76820         of using the (limited) gnulib implementation on Windows XP.
76821
76822         * m4/inet_pton.m4: New file.
76823
76824 2006-06-21  Simon Josefsson  <jas@extundo.com>
76825
76826         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76827         variable.
76828
76829         * lib/socket_.h: Don't define WINVER.
76830
76831         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76832         slightly modified to work in gnulib.
76833
76834 2006-06-21  Simon Josefsson  <jas@extundo.com>
76835
76836         * doc/gnulib.texi (Windows sockets): Add.
76837
76838 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * lib/read-file.c (fread_file): Start with buffer allocation of
76841         0 bytes rather than 1 byte; this simplifies the code.
76842         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76843         code to free buffer and save/restore errno.
76844         (internal_read_file): Remove unused local.
76845
76846 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76849         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76850         Problem reported by Denis Excoffier in
76851         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76852
76853 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76854
76855         * modules/sys_socket, modules/socklen: Include sys/types since
76856         FreeBSD 4.x's sys/socket.h needs it.
76857
76858 2006-06-19  Simon Josefsson  <jas@extundo.com>
76859
76860         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76861
76862 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76863
76864         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76865
76866 2006-06-19  Bruno Haible  <bruno@clisp.org>
76867
76868         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76869         and FULL_PATH_INTTYPES_H in angle brackets.
76870         Reported by Mark D. Baushke <mdb@gnu.org>.
76871
76872 2006-06-17  Eric Blake  <ebb9@byu.net>
76873
76874         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76875         errno.
76876
76877 2006-06-17  Bruno Haible  <bruno@clisp.org>
76878
76879         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76880         <sys/inttypes.h>.
76881
76882 2006-06-17  Bruno Haible  <bruno@clisp.org>
76883
76884         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76885         whether errno is declared. Assume <errno.h> declares errno.
76886
76887 2006-06-17  Bruno Haible  <bruno@clisp.org>
76888
76889         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76890
76891 2006-06-17  Bruno Haible  <bruno@clisp.org>
76892
76893         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76894         problem on Solaris 2.5.1.
76895
76896 2006-06-16  Eric Blake  <ebb9@byu.net>
76897
76898         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76899         * lib/unicodeio.c [!defined errno]: Likewise.
76900         * lib/strtol.c [!defined errno]: Likewise.
76901         * lib/strtod.c [!defined errno]: Likewise.
76902
76903 2006-06-15  Eric Blake  <ebb9@byu.net>
76904
76905         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76906
76907 2006-06-15  Eric Blake  <ebb9@byu.net>
76908
76909         * config/srclist.txt (ssize_t.m4): Lose sync.
76910
76911 2006-06-15  Bruno Haible  <bruno@clisp.org>
76912
76913         * modules/stdint (Files): Include m4/full-header-path.m4,
76914         m4/size_max.m4, m4/wchar_t.m4.
76915         (Makefile.am): Many more substitutions.
76916         * modules/stdint-tests: New file.
76917         * tests/test-stdint.c: New file.
76918
76919 2006-06-15  Bruno Haible  <bruno@clisp.org>
76920
76921         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76922         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76923         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76924         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76925         gl_CHECK_TYPE_SAME): New macros.
76926
76927 2006-06-15  Bruno Haible  <bruno@clisp.org>
76928
76929         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76930
76931 2006-06-15  Bruno Haible  <bruno@clisp.org>
76932
76933         * lib/stdint_.h: Rewritten to be fully auto-configured.
76934         Fixes bug on HP-UX/IA64.
76935
76936 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         * lib/getdate.y (__attribute__): Don't define if already defined.
76939         Problem reported by Larry Jones.
76940         * lib/utimens.c (__attribute__): Likewise.
76941
76942 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76945         reported by Andreas Schwab.
76946
76947 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76948             Bruno Haible  <bruno@clisp.org>
76949
76950         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76951         check for the declaration of strnlen and a run test that exposes the
76952         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76953         rpl_strndup.
76954
76955 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76956             Bruno Haible  <bruno@clisp.org>
76957
76958         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76959
76960 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76961
76962         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76963         compile test, for Tru64 4.0D.
76964
76965 2006-05-28  Karl Berry  <karl@gnu.org>
76966
76967         * config/srclist.txt (printf-args.c): lose sync.
76968
76969 2006-05-26  Martin Lambers  <marlam@marlam.de>
76970
76971         * lib/getpass.c: Updates the test for the native W32 API, and adds
76972         missing includes, thus fixing compilation warnings.
76973
76974 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76975
76976         * lib/exclude.c (exclude_fnmatch): New function.
76977         (excluded_file_name): Call exclude_fnmatch.
76978         * lib/exclude.h (excluded_file_name): New prototype
76979
76980 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * lib/tempname.c (small_open, large_open): New macros.
76983         (__open, __open64) [!_LIBC]: Remove.
76984         (__gen_tempname): Use small_open and large_open instead of __open
76985         and __open64.  This fixes a portability bug on HP-UX 11.11i
76986         reported by Simon Wing-Tang in
76987         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76988
76989 2006-05-24  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76992         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76993         Reported by Thorsten Maerz <torte@netztorte.de> via
76994         Aaron Stone <aaron@serendipity.cx>.
76995
76996 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76999         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77000         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77001         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77002         not really conditional on the cache.
77003         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77004
77005 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77008         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77009         (my_usleep): Don't mishandle maximum value.
77010
77011 2006-05-19  Jim Meyering  <jim@meyering.net>
77012
77013         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77014
77015 2006-05-17  Bruno Haible  <bruno@clisp.org>
77016
77017         Cygwin portability.
77018         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77019
77020 2006-05-17  Bruno Haible  <bruno@clisp.org>
77021
77022         * lib/stdint_.h: Fix recognition of Cygwin.
77023
77024 2006-05-15  Bruno Haible  <bruno@clisp.org>
77025
77026         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77027         on libtool patch by Ralf Wildenhues.
77028
77029 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77032         test for C99 conformance; (bool) 0.5 is an integer constant
77033         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77034         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77035
77036 2006-05-11  Simon Josefsson  <jas@extundo.com>
77037
77038         * m4/xvasprintf.m4: Fix obvious typo.
77039
77040 2006-05-11  Jim Meyering  <jim@meyering.net>
77041
77042         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77043         James Lemley.
77044
77045 2006-05-10  Simon Josefsson  <jas@extundo.com>
77046
77047         * lib/md4.c: Typo fix, update copyright years.
77048         (K1, K2): Don't use L because it turn computations into 64-bit on
77049         64-bit platforms.
77050
77051 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77054         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77055         unwanted sign propagation, e.g., on hosts with 64-bit int.
77056         There still are some problems with reeelly weird theoretical hosts
77057         (e.g., 33-bit int) but it's not worth worrying about now.
77058         * lib/sha1.c (rol): Likewise.
77059         (K1, K2, K3, K4): Remove unnecessary L suffix.
77060
77061 2006-05-10  Bruno Haible  <bruno@clisp.org>
77062
77063         * lib/des.c: Cast to avoid warnings.
77064
77065 2006-05-09  Bruno Haible  <bruno@clisp.org>
77066
77067         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77068         (Depends-on): Depend also on xsize, stdarg.
77069         (configure.ac): Add gl_XVASPRINTF.
77070
77071 2006-05-09  Bruno Haible  <bruno@clisp.org>
77072
77073         * m4/xvasprintf.m4: New file.
77074
77075 2006-05-09  Bruno Haible  <bruno@clisp.org>
77076
77077         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77078         (EOVERFLOW): Define fallback value.
77079         (xstrcat): New function.
77080         (xvasprintf): Recognize the special case of a string concatenation.
77081
77082 2006-05-08  Eric Blake  <ebb9@byu.net>
77083
77084         * gnulib-tool (func_version): Base copyright year on CVS date.
77085         (func_emit_copyright_notice): New function.
77086         (func_emit_lib_Makefile_am): Use it.
77087         (func_emit_tests_Makefile_am): Likewise.
77088         (func_import): Likewise.
77089
77090 2006-05-08  Bruno Haible  <bruno@clisp.org>
77091
77092         * modules/stdarg: New file.
77093         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77094
77095 2006-05-08  Bruno Haible  <bruno@clisp.org>
77096
77097         * m4/stdarg.m4: New file, from GNU gettext.
77098
77099 2006-05-08  Bruno Haible  <bruno@clisp.org>
77100
77101         * config/srclist.txt (build-aux/config.rpath): different from latest
77102         release.
77103
77104 2006-05-08  Bruno Haible  <bruno@clisp.org>
77105
77106         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77107
77108 2006-05-05  Jim Meyering  <jim@meyering.net>
77109
77110         * m4/warning.m4: New file, derived from bison's file by the same name.
77111
77112 2006-05-03  Bruno Haible  <bruno@clisp.org>
77113
77114         * lib/stdint_.h: Shorter URL.
77115         * lib/inttypes.h: Likewise.
77116
77117 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77120
77121 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77122
77123         * lib/verify.h: Document the internals better.  Most of this change
77124         was written by Bruno Haible.
77125
77126 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         * doc/verify.texi: New file, partly based on a proposal by
77129         Bruno Haible.
77130
77131 2006-05-02  Bruno Haible  <bruno@clisp.org>
77132
77133         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77134         test from here...
77135         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77136
77137 2006-04-29  Bruno Haible  <bruno@clisp.org>
77138
77139         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77140         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77141
77142 2006-04-29  Bruno Haible  <bruno@clisp.org>
77143
77144         * gnulib-tool: Make --update option actually work.
77145
77146 2006-04-29  Bruno Haible  <bruno@clisp.org>
77147
77148         * doc/gcd.texi: New file.
77149         * doc/gnulib.texi: Include it.
77150
77151 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77152
77153         * lib/getdate.y (get_date): When adding relative date, start with the
77154         initial time, not with the result of the first mktime call.
77155
77156 2006-04-25  Bruno Haible  <bruno@clisp.org>
77157
77158         * gnulib-tool (func_import): Output the include directives in three
77159         blocks, sorted separately.
77160         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77161
77162 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77165         to define main with arguments, for C++.  Reported by Eric Blake.
77166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77167         Prefer 'int main ()' to 'int main (void)', for C++.
77168         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77170         for 'main', for C99 and C++.
77171
77172 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77173
77174         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77175         Don't assume that exit status -1 is valid.
77176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77177         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77178         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77179         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77180         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77181         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77182         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77183         functions can be used without declaring them, or that you can
77184         exit with status -1.
77185         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77186
77187 2006-04-24  Karl Berry  <karl@gnu.org>
77188
77189         * config/srclist.txt (longdouble.m4): sync lost.
77190
77191 2006-04-24  Eric Blake  <ebb9@byu.net>
77192
77193         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77194
77195 2006-04-24  Bruno Haible  <bruno@clisp.org>
77196
77197         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77198         poll() implementation in AIX.
77199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77200
77201 2006-04-24  Bruno Haible  <bruno@clisp.org>
77202
77203         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77204         assigned exactly once.
77205
77206 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77207             Bruno Haible  <bruno@clisp.org>
77208
77209         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77210         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77211         for AM_CPPFLAGS.
77212
77213 2006-04-23  Bruno Haible  <bruno@clisp.org>
77214
77215         * modules/copy-file: Depend on unistd.
77216         * modules/execute: Likewise.
77217         * modules/fatal-signal: Likewise.
77218         * modules/findprog: Likewise.
77219         * modules/mkdtemp : Likewise.
77220         * modules/pipe: Likewise.
77221         * modules/wait-process: Likewise.
77222
77223 2006-04-23  Bruno Haible  <bruno@clisp.org>
77224
77225         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77226         condition was already detected.
77227         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77228
77229 2006-04-23  Bruno Haible  <bruno@clisp.org>
77230
77231         * lib/copy-file.c: Include <unistd.h> unconditionally.
77232         * lib/execute.c: Likewise.
77233         * lib/fatal-signal.c: Likewise.
77234         * lib/findprog.c: Likewise.
77235         * lib/mkdtemp.c: Likewise.
77236         * lib/pipe.h: Likewise.
77237         * lib/pipe.c: Likewise.
77238         * lib/wait-process.h: Likewise.
77239
77240 2006-04-23  Bruno Haible  <bruno@clisp.org>
77241
77242         * gnulib-tool (func_usage): Fix --import description. Document
77243         --update.
77244         (func_import): Create temporary file in a temporary directory, if
77245         --dry-run is specified. Silence errors from 'grep' when there are no
77246         m4 files in $m4dir.
77247         (func_create_testdir): Silence errors from 'grep' when there are no
77248         m4 files in $m4dir.
77249         Reported by Karl Berry <karl@freefriends.org>.
77250
77251 2006-04-20  Bruno Haible  <bruno@clisp.org>
77252
77253         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77254         one argument, so that the code will be portable to Autoconf 2.60.
77255         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77256         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77257         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77258
77259 2006-04-19  Derek Price  <derek@ximbiot.com>
77260             Eric Blake  <ebb9@byu.net>
77261
77262         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77263         rather than "/full/path.h".  Update comment to match.  Shorten &
77264         generalize m4_translit call via AS_TR_CPP.
77265
77266 2006-04-19  Derek Price  <derek@ximbiot.com>
77267             Eric Blake  <ebb9@byu.net>
77268
77269         * lib/inttypes.h: Correct grammar in comment.
77270
77271 2006-04-18  Derek Price  <derek@ximbiot.com>
77272             Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * modules/inttypes: New file.
77275         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77276
77277 2006-04-18  Derek Price  <derek@ximbiot.com>
77278             Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77281         New files.
77282
77283 2006-04-18  Derek Price  <derek@ximbiot.com>
77284             Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * lib/inttypes.h: New file.
77287         * lib/strtoimax.c: Assume <inttypes.h>.
77288
77289 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77292         isn't mounted.  Problem reported by Kir Kolyshkin.
77293
77294 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77297         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77298         Derek R. Price.
77299         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77300         implementation.
77301
77302 2006-04-12  Eric Blake  <ebb9@byu.net>
77303
77304         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77305         is now done automatically by the corresponding Autoconf macro.
77306
77307 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77308
77309         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77310         time_r.h.
77311
77312 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         Merge regex changes from libc, removing some of our
77315         POSIX-conformance changes that were rejected and redoing them in a
77316         less-intrusive way.
77317
77318         * lib/regcomp.c (re_compile_internal, init_dfa):
77319         Length arg is now size_t, not Idx.  All uses changed.
77320         (peek_token): Forward decl now says internal_function.
77321         (__re_error_msgid, __re_error_msgid_idx):
77322         Now static rather than extern with attribute_hidden.
77323         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77324         For some reason libc prefers K&R style defns for external functions.
77325         (regerror) [!defined _LIBC]: Likewise.
77326         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77327         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77328         (build_range_exp, build_collating_symbol):
77329         Use K&R-style defn.
77330         (re_compile_fastmap): Use '\0' to memset, not 0.
77331         (utf8_sb_map): Make the calculations more obvious.
77332         (init_dfa, parse_bracket_exp, build_charclass_op):
77333         Call calloc and cast result, as glibc does.
77334         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77335         (build_range_exp, build_collating_symbol):
77336         Now internal functions.
77337
77338         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77339
77340         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77341         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77342         Don't depend on VMS; depend on __VMS instead, for POSIX
77343         namespace cleanness.
77344         (regoff_t): Define to ssize_t, not long int.
77345
77346         Remove the REG_ macros named below.  Instead, make the old names
77347         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77348         __USE_GNU_REGEX.
77349         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77350         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77351         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77352         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77353         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77354         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77355         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77356         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77357         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77358         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77359         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77360         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77361         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77362         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77363         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77364         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77365         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77366         (REG_NREGS):
77367         Remove.  All uses replaced by the old RE_* names.
77368         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77369         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77370         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77371         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77372         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77373         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77374         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77375         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77376         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77377         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77378         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77379         Don't bother having these macros be independent of each others'
77380         values, since they no longer exist in the POSIX name space.
77381
77382         Rename the following member names back to their old names,
77383         unless !__USE_GNU_REGEX.  All uses changed back.
77384         (buffer): Renamed from re_buffer.
77385         (allocated): Renamed from re_allocated.
77386         (used): Renamed from re_used.
77387         (syntax): Renamed from re_syntax.
77388         (fastmap): Renamed from re_fastmap.
77389         (translate): Renamed from re_translate.
77390         (can_be_null): Renamed from re_can_be_null.
77391         (regs_allocated): Renamed from re_regs_allocated.
77392         (fastmap_accurate): Renamed from re_fastmap_accurate.
77393         (no_sub): Renamed from re_no_sub.
77394         (not_bol): Renamed from re_not_bol.
77395         (not_eol): Renamed from re_not_eol.
77396         (newline_anchor): Renamed from re_newline_anchor.
77397         (num_regs): Renamed from rm_num_regs.
77398         (start): Renamed from rm_start.
77399         (end): Renamed from rm_end.
77400
77401         (free_state): Move up a bit.
77402
77403         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77404         #define to be empty.
77405         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77406         when that is what is intended.
77407         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77408         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77409         (MAX): New macro.
77410         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77411         All uses changed back to re_malloc, etc.  It's now the caller's
77412         responsibility to check for overflow; all callers changed.
77413         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77414         (re_x2nrealloc): Remove.
77415         (free_state): Remove decl.
77416
77417         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77418         (re_set_registers, re_exec):
77419         Use K&R-style defn.
77420
77421         2006-01-31  Roland McGrath  <roland@redhat.com>
77422
77423         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77424         Reported by Mike Frysinger <vapier@gentoo.org>.
77425
77426         2006-01-15  Andreas Jaeger  <aj@suse.de>
77427
77428         [BZ #1950]
77429         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77430         build_wcs_upper_buffer change.
77431         (build_wcs_upper_buffer): Change return type.
77432
77433         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77434
77435         * lib/regex_internal.h: Include <stdint.h> if available.
77436
77437         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77438
77439         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77440
77441         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77442
77443         * lib/regcomp.c: Adjust for changed secondary hash function.
77444
77445         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77446
77447         * lib/regex.h: Pretty printing.
77448         Clean up namespace a bit.
77449
77450         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77451
77452         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77453         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77454
77455         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77456                     Ulrich Drepper  <drepper@redhat.com>
77457
77458         [BZ #1302]
77459         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77460         changed.
77461         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77462
77463         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77464
77465         [BZ #281]
77466         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77467         * lib/regcomp.c: Remove unnecessary uses of
77468         unsigned RE_TRANSLATE_TYPE.
77469         * lib/regex_internal.h: Likewise.
77470         * lib/regex_internal.c: Likewise.
77471         * lib/regexec.c: Likewise.
77472         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77473
77474         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77475
77476         * lib/regexec.c (find_recover_state): Remove unnecessary
77477         initialization.
77478         (transit_state_bkref): Make DFA a const pointer.
77479         (get_subexp): Likewise.
77480         (check_arrival): Likewise.
77481         (update_cur_sifted_state): Likewise.
77482         (re_search_internal): Likewise.
77483         (prune_impossible_nodes): Likewise.
77484         (acquire_init_state_context): Likewise.
77485         (proceed_next_node): Likewise.
77486         (set_regs): Likewise.
77487         (free_fail_stack_return): Likewise.
77488         (check_arrival_expand_ecl): Mark DFA parameter as const.
77489         (check_arrival_expand_ecl_sub): Likewise.
77490         (check_subexp_limits): Likewise.
77491         (sub_epsilon_src_nodes):  Likewise.
77492         (add_epsilon_src_nodes):  Likewise.
77493         (merge_state_array): Likewise.
77494         (update_regs): Likewise.
77495         (build_trtable): Likewise.
77496         (sift_states_backward): Mark MCTX parameter as const.
77497         (build_sifted_states): Likewise.
77498         (update_cur_sifted_state): Likewise.
77499         (sift_states_mkref): Likewise.
77500         (check_arrival_expand_ecl): Mark eclosure as const.
77501         (check_dst_limits_calc_pos_1): Likewise.
77502         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77503         pointer.
77504
77505         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77506
77507         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77508         (transit_state_sb): Likewise.
77509         (transit_state_mb): Likewise.
77510         (sift_states_iter_mb): Likewise.
77511         (check_arrival_add_next_nodes): Likewise.
77512         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77513         [_LIBC] (re_search_2_stub): Use mempcpy.
77514
77515         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77516         mbrtowc for very simple UTF-8 case.
77517
77518         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77519         a pointer-to-const.
77520         (re_acquire_state_context): Likewise.
77521         * lib/regex_internal.h: Adjust prototypes.
77522
77523         * lib/regex.c: Prevent using C++ compilers.
77524
77525         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77526         (re_acquire_state_context): Likewise.
77527
77528 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         * modules/regex (Depends-on): Add ssize_t.
77531
77532 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77535         translation table.
77536
77537 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77540
77541 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77542             Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77545         <sys/types.h> and <inttypes.h>.
77546
77547 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77548
77549         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77550         `__error_t_defined', so argp.h will not typedef the former.
77551
77552 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77555         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77556         glibc names.  Even if glibc is changed to conform to POSIX, the
77557         traditional names will be available anyway, since regex depends on
77558         the extensions module.  Also, fix a longstanding typo in the
77559         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77560         reported by Emanuele Giaquinta.  Also, change sense of cached
77561         variable, so that the message makes sense.
77562
77563 2006-03-24  Simon Josefsson  <jas@extundo.com>
77564
77565         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77566         including some doc fixes.
77567         (base64_encode_alloc): Fix +1 bug on allocation failures.
77568
77569 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77570
77571         * lib/base64.c (base64_encode): Do not read past end of array with
77572         unsanitized input on systems with CHAR_BIT > 8.
77573
77574 2006-03-24  Eric Blake  <ebb9@byu.net>
77575
77576         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77577
77578 2006-03-22  Karl Berry  <karl@gnu.org>
77579
77580         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77581         * config/srclistvars.sh (COREUTILS): new var.
77582
77583 2006-03-17  Jim Meyering  <jim@meyering.net>
77584
77585         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77586         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77587
77588 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77591         no longer needs it.  Instead, check that regoff_t is as least
77592         as wide as ptrdiff_t.
77593
77594         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77595         so that our regex.h stays compatible with the installed regex.
77596         This is helpful for installers who configure --without-included-regex.
77597         Problem reported by Emanuele Giaquinta.
77598
77599 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77600
77601         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77602         Typedef to long int, not to off_, as POSIX will likely change
77603         in that direction.
77604
77605 2006-03-15  Eric Blake  <ebb9@byu.net>
77606
77607         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77608
77609 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77610
77611         * lib/argp-help.c (validate_uparams): Fix typo
77612         * lib/argp-parse.c (argp_default_options): Consistently begin help
77613         messages with a lowercase letter.
77614
77615 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77618         overrun buffers and shouldn't be used (much as gets shouldn't be
77619         used).
77620         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77621
77622 2006-03-08  Simon Josefsson  <jas@extundo.com>
77623
77624         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77625         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77626
77627 2006-03-08  Simon Josefsson  <jas@extundo.com>
77628
77629         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77630         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77631
77632 2006-03-08  Simon Josefsson  <jas@extundo.com>
77633
77634         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77635         signal that configure disabled the device.
77636
77637 2006-03-08  Simon Josefsson  <jas@extundo.com>
77638
77639         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77640         languages.
77641
77642 2006-03-07  Simon Josefsson  <jas@extundo.com>
77643
77644         * modules/getopt (Depends-on): Add unistd.
77645
77646         * modules/unistd: New file.
77647
77648 2006-03-07  Simon Josefsson  <jas@extundo.com>
77649
77650         * modules/gc-random: New file.
77651
77652 2006-03-07  Simon Josefsson  <jas@extundo.com>
77653
77654         * m4/unistd_h.m4: New file.
77655
77656 2006-03-07  Simon Josefsson  <jas@extundo.com>
77657
77658         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77659         test to be side-effect free by storing the result in the cache
77660         variable gl_cv_lib_readline, and moving the assignment of
77661         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77662         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77663
77664 2006-03-07  Simon Josefsson  <jas@extundo.com>
77665
77666         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77667         error on missing devices (the functions will return an error).
77668
77669         * m4/gc.m4: Move random stuff to gc-random.m4
77670
77671 2006-03-07  Simon Josefsson  <jas@extundo.com>
77672
77673         * lib/unistd_.h: New file.
77674
77675 2006-03-07  Simon Josefsson  <jas@extundo.com>
77676
77677         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77678
77679 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77682         Problem reported by Juan Manuel Guerrero.
77683
77684 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77687         the unistd module.
77688         * lib/getlogin_r.c: Likewise.
77689         * lib/getlogin_r.h: Likewise.
77690         * lib/glob.c: Likewise.
77691         * lib/pagealign_alloc.c: Likewise.
77692         * lib/unistd_.h: Remove; no longer needed.
77693
77694 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77697         Add unistd.
77698         * modules/c-stack (Depends-on): Add unistd.
77699         * modules/getlogin_r: Likewise.
77700         * modules/glob: Likewise.
77701         * modules/pagealign_alloc: Likewise.
77702         * modules/unistd (Files): Remove lib/unistd_.h.
77703         (EXTRA_DIST): Remove.
77704         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77705         need unistd_.h.
77706         (MOSTLYCLEANFILES): Remove unistd.h-t.
77707
77708 2006-03-03  Simon Josefsson  <jas@extundo.com>
77709
77710         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77711
77712 2006-03-03  Simon Josefsson  <jas@extundo.com>
77713
77714         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77715         libidn and bison.
77716
77717 2006-03-03  Simon Josefsson  <jas@extundo.com>
77718
77719         * build-aux/maint.mk: Add indent target.
77720
77721 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77722
77723         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77724         our replacement poll.h in any case, to avoid a differing
77725         declaration from a system header.  Seen on AIX.
77726
77727 2006-03-01  Simon Josefsson  <jas@extundo.com>
77728
77729         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77730         <kasal@ucw.cz>.
77731
77732 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * modules/gettime (Depends-on): Add extensions module.
77735         * modules/nanosleep (Depends-on): Likewise.
77736         * modules/settime (Depends-on): Likewise.
77737
77738 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77741         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77742         pedantically.
77743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77744         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77745
77746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77747         not "==".  Reported by Ralf Wildenhues.
77748
77749 2006-03-01  Karl Berry  <karl@gnu.org>
77750
77751         * doc/Copyright/request-*: new files, synced from gnuorg.
77752
77753 2006-03-01  Karl Berry  <karl@gnu.org>
77754
77755         * config/srclist.txt (Copyright/*): new entries.
77756
77757 2006-02-28  Simon Josefsson  <jas@extundo.com>
77758
77759         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77760
77761 2006-02-27  Simon Josefsson  <jas@extundo.com>
77762
77763         * lib/base64.h: Indent #define's.  From Jim Meyering
77764         <jim@meyering.net>.
77765
77766 2006-02-27  Jim Meyering  <jim@meyering.net>
77767
77768         Revert the change of 2006-02-24, so these files can continue
77769         to be sync'd from gettext.
77770         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77771         of `config.h'.
77772
77773 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * modules/intprops: New file.
77776         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77777         Add intprops.
77778         * modules/getloadavg (Files): Remove lib/intprops.h.
77779         (Depends-on): Add intprops.
77780         * modules/human: Likewise.
77781         * modules/inttostr: Likewise.
77782         * modules/openat: Likewise.
77783         * modules/sig2str: Likewise.
77784         * modules/userspec: Likewise.
77785         * modules/utimecmp: Likewise.
77786         * modules/xnanosleep: Likewise.
77787         * modules/xstrtol: Likewise.
77788
77789 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77790
77791         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77792         * modules/lock-tests (TESTS): Use $(EXEEXT).
77793         * modules/tls-tests: Likewise.
77794         * modules/argp-tests: Likewise.
77795         (check_PROGRAMS): New var, replacing...
77796         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77797
77798 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77799
77800         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77801         `config.h'.
77802
77803 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77806
77807 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77808
77809         Sync from coreutils.
77810         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77811         gl_CHDIR_SAFER.
77812
77813 2006-02-22  Jim Meyering  <jim@meyering.net>
77814
77815         Sync from coreutils.
77816         * m4/chdir-safer.m4: New file.
77817
77818 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77821         AT_FDCWD exceeds INT_MAX.
77822         * lib/openat.h (AT_FDCWD): Likewise.
77823
77824 2006-02-17  Eric Blake  <address@hidden>
77825
77826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77827
77828 2006-02-16  Simon Josefsson  <jas@extundo.com>
77829
77830         * modules/getaddrinfo (Depends-on): Add sys_socket.
77831
77832 2006-02-15  Simon Josefsson  <jas@extundo.com>
77833
77834         * build-aux/maint.mk: Add dsyntax-check rule.
77835
77836 2006-02-15  Eric Blake  <ebb9@byu.net>
77837
77838         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77839         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77840         'present but cannot compile' warnings on cygwin.
77841         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77842         use ws2tcpip.h if sys/socket.h works.
77843         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77844         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77845
77846 2006-02-14  Simon Josefsson  <jas@extundo.com>
77847
77848         * modules/maintainer-makefile (Files): Rename.
77849
77850         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77851         and (the local) Makefile.cfg to maint-cfg.mk.
77852
77853         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77854         to the latter.
77855
77856         * modules/maintainer-makefile: New module.
77857
77858         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77859         severaly stripped to make it possible to build it up from scratch
77860         with reliable tests.
77861
77862         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77863         fixes to permit overriding the default actions when configure and
77864         makefile are not available.
77865
77866 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77867
77868         Sync from coreutils.
77869         * modules/lstat (Depends-on): Don't depend on xalloc.
77870         (License): Change from GPL to LGPL, since this is now simply a
77871         replacement for a libc function.
77872
77873 2006-02-14  Jim Meyering  <jim@meyering.net>
77874
77875         Sync from coreutils.
77876
77877         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77878         failure on deficient systems, and simplify gnulib lgpl dependencies.
77879         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77880         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77881
77882         * lib/xalloc-die.c: Remove unused definition of N_.
77883
77884 2006-02-14  Jim Meyering  <jim@meyering.net>
77885
77886         Sync from coreutils.
77887         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77888         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77889         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77890         double-quote uses of that variable, to accommodate the rare case in
77891         which getmntent is available in none of the libraries checked.  This
77892         happens at least on FreeBSD 5.0.
77893
77894 2006-02-13  Simon Josefsson  <jas@extundo.com>
77895
77896         * gnulib-tool (Usage): Fix --import, from
77897         karl@freefriends.org (Karl Berry).
77898
77899 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77900
77901         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77902
77903 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77904
77905         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77906         "autoupdate" on 2005-12-12.
77907
77908 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77909
77910         * modules/closeout (Depends-on): Remove atexit.
77911
77912 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77915         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77916
77917 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77920         __EXTENSIONS__ if this causes compilation to fail.  Problem
77921         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77922         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77923
77924 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77927         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77929         All uses changed.
77930
77931 2006-01-26  Simon Josefsson  <jas@extundo.com>
77932
77933         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77934         prototype is visible on mingw32.
77935
77936         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77937         for mingw32.
77938
77939         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77940         mingw32).
77941
77942 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77943
77944         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77945         attempt to open for write; this always fails, at least on POSIX
77946         hosts.  This reinstates the 2006-01-09 change, which was
77947         inadvertently removed.
77948
77949 2006-01-26  Bruno Haible  <bruno@clisp.org>
77950
77951         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77952         Reported by Paul Eggert.
77953
77954 2006-01-26  Bruno Haible  <bruno@clisp.org>
77955             Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/stdbool_.h (_Bool)
77958         [(! (defined __cplusplus || defined __BEOS__)
77959           && !defined __GNUC__
77960           && !(defined __HP_cc || defined __xlc__
77961                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77962                || defined __sgi))]:
77963         #define to signed char in these cases too; this simplifies
77964         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77965         etc., separately) and makes it more conservative.
77966
77967 2006-01-25  Simon Josefsson  <jas@extundo.com>
77968
77969         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77970         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77971         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77972
77973 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77974
77975         * lib/argp-namefrob.h: Bugfix. Remove stray #
77976
77977 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77980         so that we test the test.
77981         Check for yet another HP-UX cc bug involving *bool |= bool.
77982
77983 2006-01-25  Karl Berry  <karl@gnu.org>
77984
77985         * config/srclist.txt (vasnprintf.c): sync lost.
77986
77987 2006-01-25  Jim Meyering  <jim@meyering.net>
77988
77989         Sync from the stable (b5) branch of coreutils:
77990
77991         * lib/fts.c (fts_children): Don't let close() clobber errno from
77992         failed fchdir().
77993
77994         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77995         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77996         a dangling symlink.  That can also happen at least for ELOOP.
77997         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77998         FYI, this bug predates the inclusion of fts.c in coreutils.
77999
78000         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78001         in their own block, so pre-c99 compilers don't object.
78002
78003         Avoid the double-free (first in fts_read, second in fts_close) that
78004         would occur when an `active' directory is made inaccessible (e.g.,
78005         via chmod a-x) during a traversal.
78006         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78007         before returning.  Reproduce this failure by
78008         mkdir -p a/b; cd a; chmod a-x . b
78009         Reported by Stavros Passas.
78010
78011 2006-01-25  Jim Meyering  <jim@meyering.net>
78012
78013         * lib/fileblocks.c: Remove more useless parentheses.
78014         * lib/readutmp.h: Likewise.
78015
78016 2006-01-25  Bruno Haible  <bruno@clisp.org>
78017
78018         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78019         warnings.
78020         Reported by Paul Eggert.
78021
78022 2006-01-25  Bruno Haible  <bruno@clisp.org>
78023
78024         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78025         rid of a trap command. For Solaris sh.
78026         Reported by Mark D. Baushke <mdb@gnu.org>.
78027
78028 2006-01-24  Simon Josefsson  <jas@extundo.com>
78029
78030         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78031         Bruno.
78032
78033 2006-01-24  Karl Berry  <karl@gnu.org>
78034
78035         * config/srclist.txt (argp-namefrob.h): sync lost.
78036
78037 2006-01-24  Jim Meyering  <jim@meyering.net>
78038
78039         * modules/openat (Files): Add lib/intprops.h.
78040         From Mark D. Baushke.
78041
78042 2006-01-24  Jim Meyering  <jim@meyering.net>
78043
78044         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78045         Reported by Mark D. Baushke.
78046
78047 2006-01-24  Jim Meyering  <jim@meyering.net>
78048
78049         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78050
78051 2006-01-24  Bruno Haible  <bruno@clisp.org>
78052
78053         * modules/strnlen (Maintainer): Change from glibc to all.
78054
78055 2006-01-24  Bruno Haible  <bruno@clisp.org>
78056
78057         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78058         Patch by Paul Eggert.
78059
78060 2006-01-24  Bruno Haible  <bruno@clisp.org>
78061
78062         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78063         already has it.
78064         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78065         2005-11-26.
78066
78067         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78068         'signed char' to avoid problems with the built-in _Bool type.
78069         Reported by Paul Eggert on 2005-11-26.
78070
78071 2006-01-24  Bruno Haible  <bruno@clisp.org>
78072
78073         * gnulib-tool (func_import): Avoid constructing complicated sed
78074         expressions inside backquote.
78075         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78076
78077 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78078
78079         These changes imported from libc.
78080         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78081         test and two separate function calls.
78082         * lib/strndup.c (__strndup): Add libc_hidden_def.
78083
78084 2006-01-23  Simon Josefsson  <jas@extundo.com>
78085
78086         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78087         Remove the test_*_SOURCES variable: automake infers it by default.
78088         * modules/tls-tests: Likewise.
78089
78090 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         Work around porting bugs reported by Dieter in
78093         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78094         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78095         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78096         Include "getopt.h" first, to check interface.
78097         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78098         !HAVE_DECL_GETENV.
78099         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78100         (__strndup): Revert to K&R-style function dfns, the glibc style.
78101         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78102         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78103         Include strnlen.h first, to get prototype properly.
78104         (strnlen): Renamed from __strnlen.
78105         Remove weak alias.
78106
78107 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78108
78109         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78110
78111 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * config/srclist.txt: Adjust to reflect glibc reorganization.
78114         This affects only comments.
78115
78116 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78117
78118          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78119          Reported by Bruce Korb <bkorb@gnu.org>.
78120
78121 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78124         to pacify gcc -Wswitch-default.
78125
78126 2006-01-22  Bruno Haible  <bruno@clisp.org>
78127
78128         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78129         temporary buffer for sprintf, take into account the precision also
78130         for 'd', 'i', 'u', 'o', 'x', 'X'.
78131
78132 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78133
78134         * modules/argp-tests: New module
78135         * tests/test-argp.c: New file
78136         * tests/test-argp-2.sh: New file
78137
78138 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78139
78140         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78141         (__argp_base_name): Removed
78142         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78143         typo.
78144         (__argp_base_name): Provide macro definition or extern declaration
78145         depending on the configuration
78146
78147 2006-01-20  Simon Josefsson  <jas@extundo.com>
78148
78149         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78150
78151 2006-01-20  Simon Josefsson  <jas@extundo.com>
78152
78153         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78154
78155 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78158         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78159         Suggested by Bruno Haible.
78160
78161 2006-01-20  Karl Berry  <karl@gnu.org>
78162
78163         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78164         until changes propagate, I guess.
78165
78166 2006-01-19  Simon Josefsson  <jas@extundo.com>
78167
78168         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78169
78170 2006-01-19  Simon Josefsson  <jas@extundo.com>
78171
78172         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78173
78174 2006-01-19  Simon Josefsson  <jas@extundo.com>
78175
78176         * gnulib-tool: Set check_PROGRAMS.
78177
78178         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78179         modules/des-tests, modules/gc-arcfour-tests,
78180         modules/gc-arctwo-tests, modules/gc-des-tests,
78181         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78182         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78183         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78184         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78185         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78186         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78187         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78188         test_*_SOURCES.
78189
78190 2006-01-18  Simon Josefsson  <jas@extundo.com>
78191
78192         * modules/socklen (Depends-on): Depend on sys_socket.
78193
78194 2006-01-18  Simon Josefsson  <jas@extundo.com>
78195
78196         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78197         modules/des-tests, modules/gc-arcfour-tests,
78198         modules/gc-arctwo-tests, modules/gc-des-tests,
78199         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78200         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78201         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78202         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78203         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78204         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78205         $(EXEEXT) to automake TESTS variable, for mingw32.
78206
78207 2006-01-17  Simon Josefsson  <jas@extundo.com>
78208
78209         * modules/socklen (Include): Need sys/socket.h.
78210
78211 2006-01-17  Bruno Haible  <bruno@clisp.org>
78212
78213         * modules/ssize_t (Include): Add <sys/types.h>.
78214
78215 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78216
78217         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78218         it's not portable and it doesn't work with cross-compiles.
78219         Problem reported by Bruno Haible.  Fix missing-$ typo in
78220         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78221         -zignore from being used with Sun's C compiler.
78222
78223 2006-01-12  Simon Josefsson  <jas@extundo.com>
78224
78225         * lib/base64.c: Fix warning, reported by Bruno Haible
78226         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78227
78228 2006-01-12  Bruno Haible  <bruno@clisp.org>
78229
78230         * modules/ldd: New file.
78231         * build-aux/ldd.sh.in: New file.
78232         * MODULES.html.sh (Support for building libraries and executables): Add
78233         ldd.
78234
78235 2006-01-12  Bruno Haible  <bruno@clisp.org>
78236
78237         * m4/ldd.m4: New file.
78238
78239 2006-01-12  Bruno Haible  <bruno@clisp.org>
78240
78241         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78242         endless loop while replacing $auxdir with build-aux.
78243
78244 2006-01-11  Simon Josefsson  <jas@extundo.com>
78245
78246         * lib/stdint_.h (SIZE_MAX): Add missing (.
78247
78248 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         Sync from coreutils.
78251         * lib/md5.c: Fix commentary typos.
78252         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78253         * lib/md5.h (__attribute__): Remove; unused.
78254         * lib/sha1.c: Fix commentary to match md5 better.
78255         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78256         so that we don't need to worry about alignment.  All uses changed.
78257         This merges the 2005-10-28 md5 change into sha1.
78258
78259 2006-01-11  Jim Meyering  <jim@meyering.net>
78260
78261         Sync from coreutils.
78262         * lib/md5.c (OP): Fix spacing.
78263
78264 2006-01-11  Bruno Haible  <bruno@clisp.org>
78265
78266         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78267         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78268         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78269
78270 2006-01-11  Bruno Haible  <bruno@clisp.org>
78271
78272         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78273         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78274         the "early" section as well.
78275
78276 2006-01-11  Bruno Haible  <bruno@clisp.org>
78277
78278         Avoid "ar: no archive members specified" error on MacOS X.
78279         * gnulib-tool (func_modules_add_dummy): New function.
78280         (func_import, func_create_testdir): Invoke it.
78281
78282 2006-01-11  Bruno Haible  <bruno@clisp.org>
78283
78284         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78285         with $auxdir in AC_CONFIG_FILES statements.
78286
78287 2006-01-11  Bruno Haible  <bruno@clisp.org>
78288
78289         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78290         Initialize also noinst_HEADERS to empty.
78291
78292 2006-01-11  Bruno Haible  <bruno@clisp.org>
78293
78294         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78295         variables.
78296         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78297         autoreconf.
78298
78299 2006-01-11  Bruno Haible  <bruno@clisp.org>
78300
78301         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78302         overridable by the user.
78303         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78304
78305 2006-01-10  Simon Josefsson  <jas@extundo.com>
78306
78307         * modules/sys_socket: New file.
78308
78309 2006-01-10  Simon Josefsson  <jas@extundo.com>
78310
78311         * m4/sys_socket_h.m4: New file.
78312
78313 2006-01-10  Simon Josefsson  <jas@extundo.com>
78314
78315         * lib/socket_.h: New file.
78316
78317 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * modules/readutmp (Maintainer): Add myself.
78320
78321 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78324         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78325         People who are still concerned with buggy memcmp implementations
78326         can invoke gl_FUNC_MEMCMP themselves.
78327
78328 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * lib/regex_internal.h (BITSET_WORD_BITS):
78331         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78332         preprocessor mishandles large unsigned values as if they were signed.
78333         Problem reported by Claudio Fontana in
78334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78335
78336 2006-01-10  Jim Meyering  <jim@meyering.net>
78337
78338         Avoid the double-free (first in fts_read, second in fts_close) that
78339         would occur when an `active' directory is made inaccessible (e.g.,
78340         via chmod a-x) during a traversal.
78341         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78342         before returning.  Reproduce this failure by
78343         mkdir -p a/b; cd a; chmod a-x . b
78344         Reported by Stavros Passas.
78345
78346         Sync from coreutils.
78347         * lib/sha1.c: Tweak grammar in a comment.
78348
78349 2006-01-10  Jim Meyering  <jim@meyering.net>
78350
78351         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78352         Patch by Joerg Sonnenberger.
78353
78354 2006-01-10  Bruno Haible  <bruno@clisp.org>
78355
78356         * modules/readutmp: Depend on module free.
78357         * modules/strtok_r: Depend on module restrict.
78358
78359 2006-01-10  Bruno Haible  <bruno@clisp.org>
78360
78361         * modules/gettext (configure.ac): Add an invocation of
78362         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78363
78364 2006-01-10  Bruno Haible  <bruno@clisp.org>
78365
78366         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78367         Reported by Werner Lemberg <wl@gnu.org>.
78368
78369 2006-01-10  Bruno Haible  <bruno@clisp.org>
78370
78371         * lib/localcharset.c: Update from GNU gettext.
78372
78373 2006-01-10  Bruno Haible  <bruno@clisp.org>
78374
78375         * lib/argp.h (__const): Remove macro. Use const instead.
78376         * lib/argp-fmtstream.h (__const): Likewise.
78377         * lib/glob_.h (__const): Remove macro.
78378         * lib/glob-libc.h: Use const instead of __const.
78379
78380 2006-01-10  Bruno Haible  <bruno@clisp.org>
78381
78382         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78383         variable.
78384         Needed to avoid an automake error regarding the 'gettext' module.
78385
78386 2006-01-09  Simon Josefsson  <jas@extundo.com>
78387
78388         * modules/inet_ntop (Depends-on): Add restrict.
78389
78390 2006-01-09  Simon Josefsson  <jas@extundo.com>
78391
78392         * modules/gc-rijndael-tests (License): Put under LGPL.
78393
78394         * modules/gc-des-tests (License): Likewise.
78395
78396         * modules/gc-arcfour-tests (License): Likewise.
78397
78398         * modules/gc-arctwo-tests (License): Likewise.
78399
78400         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78401
78402         * modules/gc-hmac-sha1-tests (Files): Likewise.
78403
78404         * modules/gc-hmac-md5-tests (License): Likewise.
78405
78406         * modules/gc-sha1-tests (License): Likewise.
78407
78408         * modules/gc-md5-tests (License): Likewise.
78409
78410         * modules/gc-md4-tests (License): Likewise.
78411
78412         * modules/gc-md2-tests (License): Likewise.
78413
78414         * modules/gc-tests (License): Likewise.
78415
78416         * modules/des-tests (License): Likewise.
78417
78418         * modules/md4-tests (License): Likewise.
78419
78420         * modules/md2-tests (License): Likewise.
78421
78422 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         Sync from coreutils:
78425
78426         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78427         * modules/lib-ignore: New file.
78428         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78429         chdir-safer.m4, lchmod.m4.
78430         * modules/openat: Add mkdirat.c, openat-priv.h.
78431
78432 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         Sync from coreutils.
78435         * m4/lib-ignore.m4: New file.
78436         * m4/lchmod.m4: New file.
78437
78438 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78439
78440         Sync from coreutils.
78441         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78442         for write access: POSIX says that must fail.
78443         * lib/fts.c (diropen): Likewise.
78444         * lib/save-cwd.c (save_cwd): Likewise.
78445         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78446         well, for minor improvements on hosts that lack O_DIRECTORY.
78447         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78448         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78449         Fall back on chown if open failed with EACCES.
78450
78451         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78452         Report an error at compile-time if only a 1-second nominal clock
78453         resolution is found.
78454
78455         * lib/lchmod.h: New file.
78456         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78457         (make_dir_parents): Use lchown rather than chown, and
78458         lchmod rather than chmod.
78459
78460         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78461         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78462         "proc" reported by n0dalus.
78463
78464         * lib/mountlist.c: Include <limits.h>.
78465         (dev_from_mount_options)
78466         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78467         New function.  It no longer assumes "dev=" has the System V meaning
78468         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78469         (read_file_system_list)
78470         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78471         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78472         dev= in that case.
78473
78474         * lib/posixtm.h (PDS_PRE_2000): New macro.
78475         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78476         allow_century.  All usages changed.  Reject dates outside the range
78477         1969-1999 if PDS_PRE_2000 is used.
78478
78479 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78480
78481         Sync from coreutils.
78482         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78483         (Time of day items): Mention the possibility of leap seconds.
78484         Problem reported by Dr. David Alan Gilbert.
78485
78486 2006-01-09  Jim Meyering  <jim@meyering.net>
78487
78488         Sync from coreutils.
78489
78490         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78491
78492         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78493
78494         * lib/modechange.c (mode_compile): Reject an invalid mode string
78495         that starts with an octal digit.  From Andreas Gruenbacher.
78496
78497         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78498         and dup to open_safer and dup_safer, respectively.
78499         (openat_permissive): Fix typo in comment.
78500
78501         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78502         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78503         (_): Remove; no longer needed.
78504         (openat): Renamed from rpl_openat; no need for rpl_openat
78505         since openat.h renames openat for us.
78506         Replace most of the body with a call to openat_permissive,
78507         to avoid duplicate code.
78508         Port to (probably hypothetical) environments were mode_t is
78509         wider than int.
78510         (openat_permissive): Require mode arg, so that we can check
78511         types better.  Put it just after flags.  Change cwd failure
78512         indicator from pointer-to-bool to pointer-to-errno-value.
78513         All callers changed.
78514         Invoke openat_save_fail and/or openat_restore_fail if
78515         cwd_errno is null, so that openat can call us.
78516         (openat_permissive, fdopendir, fstatat, unlinkat):
78517         Simplify errno handling to avoid some duplicate code,
78518         as it's OK to set errno on success.
78519         * lib/openat.h: Revamp code so that function macros depend on
78520         __OPENAT_PREFIX only, not also on AT_FDCWD.
78521         (openat_ro): Remove.  Caller changed to use openat_permissive.
78522         (openat_permissive): Now a macro, if not a function.
78523         (openat_restore_fail, openat_save_fail): Now always functions,
78524         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78525
78526         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78527         and openat.c.
78528         * lib/mkdirat.c: Include openat-priv.h.
78529         Remove definitions of macros defined therein.
78530         * lib/openat.c: Likewise.
78531
78532         * lib/mkdirat.c (mkdirat): New file and function.
78533         * lib/openat.h (mkdirat): Declare.
78534
78535         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78536
78537         * lib/openat.h (openat_permissive): Declare.
78538         (openat_ro): Define.
78539
78540         * lib/openat.c (EXPECTED_ERRNO): New macro.
78541         (openat_permissive): New function -- used in remove.c rewrite.
78542         (all functions): Set errno just before returning, only if there
78543         was an actual failure.
78544         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78545
78546         Emulate openat-family functions using Linux's procfs, if possible.
78547         Idea and some code based on Ulrich Drepper's glibc changes.
78548
78549         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78550         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78551         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78552         before falling back on save_cwd and restore_cwd.
78553         (fdopendir, fstatat, unlinkat): Likewise.
78554
78555         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78556         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78557
78558         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78559         as second argument to va_arg.  Otherwise, some versions of gcc
78560         warn that `if this code is reached, the program will abort'.
78561
78562 2006-01-09  Jim Meyering  <jim@meyering.net>
78563
78564         Sync from coreutils.
78565         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78566         Require openat-priv.h.
78567
78568 2006-01-09  Bruno Haible  <bruno@clisp.org>
78569
78570         * modules/strnlen (Include): Use strnlen.h.
78571
78572 2006-01-09  Bruno Haible  <bruno@clisp.org>
78573
78574         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78575
78576 2006-01-09  Bruno Haible  <bruno@clisp.org>
78577
78578         * lib/sysexit_.h (EX_OK): New macro.
78579         Suggested by Martin Lambers <marlam@marlam.de>.
78580
78581 2006-01-09  Bruno Haible  <bruno@clisp.org>
78582
78583         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78584         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78585
78586 2006-01-09  Bruno Haible  <bruno@clisp.org>
78587
78588         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78589         numbers.
78590
78591 2006-01-09  Bruno Haible  <bruno@clisp.org>
78592
78593         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78594         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78595         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78596         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78597
78598 2006-01-09  Bruno Haible  <bruno@clisp.org>
78599
78600         * build-aux/javacomp.sh.in: New file, moved from lib/.
78601         * modules/javacomp-script (Files): Update.
78602         (configure.ac): Add AC_CONFIG_FILES invocation.
78603         (EXTRA_DIST): Remove variable.
78604
78605         * build-aux/javaexec.sh.in: New file, moved from lib/.
78606         * modules/javaexec (Files): Update.
78607         (configure.ac): Add AC_CONFIG_FILES invocation.
78608         (EXTRA_DIST): Remove javaexec.sh.in.
78609
78610         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78611         * modules/csharpcomp-script (Files): Update.
78612         (configure.ac): Add AC_CONFIG_FILES invocation.
78613         (EXTRA_DIST): Remove variable.
78614
78615         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78616         * modules/csharpexec (Files): Update.
78617         (configure.ac): Add AC_CONFIG_FILES invocation.
78618         (EXTRA_DIST): Remove csharpexec.sh.in.
78619
78620 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78621
78622         Sync from coreutils.
78623
78624         Add POSIX ACL support
78625         * lib/acl.h (copy_acl, set_acl): Add declarations.
78626         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78627         systems other than Linux.
78628         (chmod_or_fchmod): New function: use fchmod when possible,
78629         and chmod otherwise.
78630         (file_has_acl): Add a POSIX ACL implementation, with a
78631         Linux-specific subcase.
78632         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78633         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78634         acls are unsupported.
78635         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78636         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78637         are unsupported.
78638
78639 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78640
78641         Sync from coreutils.
78642         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78643
78644 2006-01-07  Bruno Haible  <bruno@clisp.org>
78645
78646         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78647         gl_EARLY.
78648
78649 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78652         Problem reported for Mingw by Mark Junker.
78653
78654 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * README: Gnulib normally doesn't generate a tarball.
78657
78658 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78659
78660         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78661         long int, not int, for nanosecond counts, so that people who are
78662         used to POSIX struct timespec won't be surprised.  Reported by Jim
78663         Meyering.
78664
78665 2005-12-28  Bruno Haible  <bruno@clisp.org>
78666
78667         * build-aux/config.rpath: Update from GNU gettext.
78668
78669 2005-12-16  Jim Meyering  <jim@meyering.net>
78670
78671         * modules/fprintftime: New module.
78672         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78673
78674 2005-12-16  Jim Meyering  <jim@meyering.net>
78675
78676         * m4/fprintftime.m4: New file.
78677
78678 2005-12-16  Jim Meyering  <jim@meyering.net>
78679
78680         * lib/fprintftime.c, lib/fprintftime.h: New files.
78681
78682 2005-12-15  Simon Josefsson  <jas@extundo.com>
78683
78684         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78685         new m4/socklen.m4.
78686
78687 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78688
78689         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78690         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78691
78692 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78693
78694         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78695         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78696         struct uparams is valid. Fall back to the default values if it is
78697         not.
78698
78699 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78700
78701         * modules/argp (Files): Add argp-pin.c
78702         (Depends-on): dirname
78703         (lib_SOURCES): Add argp-pin.c
78704
78705 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78706
78707         * m4/argp.m4:  Check if program_invocation_name and
78708         program_invocation_short_name are declared and define appropriate
78709         macros if they are not.
78710
78711 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78712
78713         * lib/argp-help.c (__argp_base_name): New function
78714         (__argp_short_program_name): Rewrite using __argp_base_name
78715         * lib/argp-namefrob.h: Define program_invocation_name and
78716         program_invocation_short_name if requested
78717         (__argp_base_name): Add prototype
78718         * lib/argp-parse.c (argp_def): Use gettext wrappers
78719         (argp_default_parser): Use __argp_base_name
78720         * lib/argp-pin.c: New file. Defines program_invocation_name and
78721         program_invocation_short_name on systems that lack them.
78722
78723 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78726         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78727         porting problem reported by Georg Schwarz in
78728         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78729
78730 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78733         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78734         porting problem reported by Georg Schwarz in
78735         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78736
78737 2005-12-05  Bruno Haible  <bruno@clisp.org>
78738
78739         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78740         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78741         Reported by Mark Junker <mjscod@gmx.de>.
78742
78743 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78746         Use implementation from Albert Chin, with some
78747         comments/corrections by Stepan Kasal and myself.
78748
78749 2005-12-02  Bruno Haible  <bruno@clisp.org>
78750
78751         * gnulib-tool (func_import): Accept GPLed build tool modules when
78752         --lgpl is given.
78753         * modules/csharpcomp-script: New file.
78754         * modules/csharpcomp: Depend on it.
78755         * modules/javacomp-script: New file.
78756         * modules/javacomp: Depend on it.
78757         Suggested by Simon Josefsson.
78758
78759 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78762         statement, to work around an HP-UX 10.20 compiler bug reported by
78763         Peter O'Gorman.
78764
78765 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78766
78767         * modules/savedir (Depends-on): Add openat.
78768
78769 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78772         (uintmax_t) [defined uintmax_t]: Do not declare.
78773         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78774         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78775         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78776         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78777         sake of portability to weird hosts that C allows (though we don't
78778         know of any practical examples).
78779
78780         * lib/savedir.h (fdsavedir): New decl.
78781         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78782         contains most of the former guts of savedir.
78783         (savedir): Use savedirstream.
78784         Include "openat.h".
78785
78786 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78787
78788         * modules/obstack (Files): Add m4/ulonglong.m4.
78789         Problem reported by Davide Angelocola.
78790
78791 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78794         coreutils no longer futzes with rounding modes.
78795
78796 2005-11-14  Jim Meyering  <jim@meyering.net>
78797
78798         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78799         replacement of mkstemp.
78800
78801 2005-11-10  Simon Josefsson  <jas@extundo.com>
78802
78803         * lib/readline.c: Remove EOL.
78804
78805 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * modules/gethrxtime (Depends-on): Add gettime.
78808
78809 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78812         or gettimeofday; no longer needed.
78813
78814 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78817         time business.
78818         (gethrxtime) [! (HAVE_NANOUPTIME
78819         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78820         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78821         our own approximation.
78822
78823 2005-11-08  Eric Blake  <ebb9@byu.net>
78824
78825         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78826
78827 2005-11-08  Eric Blake  <ebb9@byu.net>
78828
78829         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78830
78831 2005-11-04  Bruno Haible  <bruno@clisp.org>
78832
78833         * gnulib-tool: Implement --update mode.
78834
78835 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         Fix porting problem reported by Theodoros V. Kalamatianos.
78838         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78839         Don't assume that futimes failing means we must fail.
78840
78841 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78842
78843         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78844         variables to suggest the intended function of the PATH_MAX check.
78845
78846 2005-10-30  Kean Johnston  <jkj@sco.com>
78847
78848         Trivial changes to support SCO systems.
78849         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78850         as PATH_MAX.
78851         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78852         where __ptr is null when no I/O is pending.
78853
78854 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78855
78856         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78857         leave errno alone.  Problem reported by Dmitry V. Levin.
78858
78859 2005-10-28  Simon Josefsson  <jas@extundo.com>
78860
78861         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78862         Test more.
78863
78864         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78865
78866         * modules/md2, modules/md2-tests: New files.
78867
78868 2005-10-28  Simon Josefsson  <jas@extundo.com>
78869
78870         * m4/inet_ntop.m4: More tests.
78871
78872         * m4/gc-md2.m4, md2.m4: New file.
78873
78874 2005-10-28  Simon Josefsson  <jas@extundo.com>
78875
78876         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78877         "restrict" keywords, as per POSIX.  Protect the function
78878         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78879         Don't use K&R prototypes.  Check the sprintf return values.
78880         Re-define EAFNOSUPPORT if not present.  Indent.
78881
78882         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78883         suggested by Bruno Haible <bruno@clisp.org>.
78884
78885         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78886
78887         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78888
78889         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78890         libgcrypt).
78891
78892         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78893
78894         * lib/md2.h, lib/md2.c: New files.
78895
78896 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78899         errno alone.  Problem reported by Frederic Jolliton.
78900
78901 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * modules/verify (License): Change from GPL to LGPL.  This is a
78904         tiny module and there are apparently near-equivalents that are
78905         under the BSD license.
78906
78907 2005-10-24  Simon Josefsson  <jas@extundo.com>
78908
78909         * modules/sha1: Relicense to LGPL.
78910
78911 2005-10-24  Simon Josefsson  <jas@extundo.com>
78912
78913         * lib/md4.h: Shrink buffer size, now that we changed the type.
78914
78915 2005-10-23  Simon Josefsson  <jas@extundo.com>
78916
78917         * gnulib-tool (func_import): Fix --tests-base.
78918
78919 2005-10-22  Simon Josefsson  <jas@extundo.com>
78920
78921         * modules/arcfour (Depends-on): Need stdint.
78922
78923 2005-10-22  Simon Josefsson  <jas@extundo.com>
78924
78925         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78926         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78927
78928 2005-10-22  Simon Josefsson  <jas@extundo.com>
78929
78930         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78931         suggested by Bruno Haible <bruno@clisp.org>.
78932
78933 2005-10-22  Simon Josefsson  <jas@extundo.com>
78934
78935         * lib/crc.h: Include stddef.h, for size_t.
78936
78937 2005-10-22  Simon Josefsson  <jas@extundo.com>
78938
78939         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78940         arcfour_context struct (simplify test vector testing in GNU
78941         Shishi).
78942
78943 2005-10-21  Simon Josefsson  <jas@extundo.com>
78944
78945         * modules/des, modules/des-tests: New files.
78946
78947         * modules/gc-des, modules/gc-des-tests: New files.
78948
78949         * tests/test-des.c, tests/test-gc-des.c: New file.
78950
78951 2005-10-21  Simon Josefsson  <jas@extundo.com>
78952
78953         * modules/arctwo, modules/arctwo-tests: New files.
78954
78955         * tests/test-arctwo.c: New file.
78956
78957         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78958
78959         * tests/test-gc-arctwo.c: New file.
78960
78961 2005-10-21  Simon Josefsson  <jas@extundo.com>
78962
78963         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78964         Bruno Haible <bruno@clisp.org>.
78965
78966         * m4/gc-des.m4: New file.
78967
78968 2005-10-21  Simon Josefsson  <jas@extundo.com>
78969
78970         * m4/arctwo.m4: New file.
78971
78972         * m4/gc-arctwo.m4: New file.
78973
78974 2005-10-21  Simon Josefsson  <jas@extundo.com>
78975
78976         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78977         block.
78978
78979 2005-10-21  Simon Josefsson  <jas@extundo.com>
78980
78981         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78982         <bruno@clisp.org>.
78983
78984         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78985
78986         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78987         Bruno Haible <bruno@clisp.org>.
78988
78989         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78990         <bruno@clisp.org>.
78991
78992 2005-10-21  Simon Josefsson  <jas@extundo.com>
78993
78994         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78995
78996 2005-10-21  Simon Josefsson  <jas@extundo.com>
78997
78998         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78999
79000 2005-10-21  Simon Josefsson  <jas@extundo.com>
79001
79002         * lib/des.h, lib/des.c: New files.
79003
79004         * lib/gc-gnulib.c: Support DES.c
79005
79006 2005-10-21  Simon Josefsson  <jas@extundo.com>
79007
79008         * lib/arctwo.h, lib/arctwo.c: New files.
79009
79010         * lib/gc-gnulib.c: Support ARCTWO.
79011
79012 2005-10-21  Simon Josefsson  <jas@extundo.com>
79013
79014         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79015         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79016
79017 2005-10-21  Simon Josefsson  <jas@extundo.com>
79018
79019         * gnulib-tool (func_import, func_create_testdir): Define automake
79020         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79021         Makefile.am snippet),
79022         suggested by Bruno Haible <bruno@clisp.org>.
79023
79024         * modules/gc (Makefile.am): Use it.
79025
79026 2005-10-21  Bruno Haible  <bruno@clisp.org>
79027
79028         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79029         patch.
79030
79031 2005-10-19  Simon Josefsson  <jas@extundo.com>
79032
79033         * tests/test-gc-rijndael.c: New file.
79034
79035         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79036
79037 2005-10-19  Simon Josefsson  <jas@extundo.com>
79038
79039         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79040         interface too.
79041
79042 2005-10-19  Simon Josefsson  <jas@extundo.com>
79043
79044         * tests/test-gc-arcfour.c: New file.
79045
79046         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79047
79048 2005-10-19  Simon Josefsson  <jas@extundo.com>
79049
79050         * modules/gc-md4, modules/gc-md4-tests: New file.
79051
79052         * tests/test-gc-md4.c: New file.
79053
79054 2005-10-19  Simon Josefsson  <jas@extundo.com>
79055
79056         * m4/gc-md4.m4: New file.
79057
79058 2005-10-19  Simon Josefsson  <jas@extundo.com>
79059
79060         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79061         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79062         <kasal@ucw.cz>.
79063
79064 2005-10-19  Simon Josefsson  <jas@extundo.com>
79065
79066         * m4/gc-arcfour.m4: New file.
79067
79068         * m4/gc-rijndael.m4: New file.
79069
79070 2005-10-19  Simon Josefsson  <jas@extundo.com>
79071
79072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79073
79074 2005-10-19  Simon Josefsson  <jas@extundo.com>
79075
79076         * lib/gc-gnulib.c: Support ARCFOUR.
79077
79078 2005-10-19  Simon Josefsson  <jas@extundo.com>
79079
79080         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79081         support.
79082
79083         * lib/gc.h: Add ECB enum type.
79084
79085         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79086
79087 2005-10-18  Simon Josefsson  <jas@extundo.com>
79088
79089         * tests/test-md5.c: New file.
79090
79091         * modules/md5-tests: New file.
79092
79093 2005-10-18  Simon Josefsson  <jas@extundo.com>
79094
79095         * tests/test-md4.c: New file.
79096
79097         * modules/md4, modules/md4-tests: New files.
79098
79099 2005-10-18  Simon Josefsson  <jas@extundo.com>
79100
79101         * m4/md4.m4: New file.
79102
79103 2005-10-18  Simon Josefsson  <jas@extundo.com>
79104
79105         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79106
79107 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79108
79109         * gnulib-tool (func_create_testdir): Omit the second check whether
79110         BUILT_SOURCES in nonempty.
79111
79112 2005-10-17  Simon Josefsson  <jas@extundo.com>
79113
79114         * tests/test-rijndael.c: New file.
79115
79116 2005-10-17  Simon Josefsson  <jas@extundo.com>
79117
79118         * modules/sha1: Depend on stdint instead of md5.
79119
79120         * modules/md5: Depend on stdint, remove uint32_t.
79121
79122 2005-10-17  Simon Josefsson  <jas@extundo.com>
79123
79124         * modules/gc-sha1-tests: New file.
79125
79126         * tests/test-gc-sha1.c: New file.
79127
79128 2005-10-17  Simon Josefsson  <jas@extundo.com>
79129
79130         * m4/md5.m4: Remove call to uint32_t.m4.
79131
79132 2005-10-17  Simon Josefsson  <jas@extundo.com>
79133
79134         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79135
79136         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79137         md5.h.
79138
79139         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79140
79141         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79142
79143 2005-10-17  Simon Josefsson  <jas@extundo.com>
79144
79145         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79146
79147 2005-10-17  Simon Josefsson  <jas@extundo.com>
79148
79149         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79150
79151 2005-10-17  Simon Josefsson  <jas@extundo.com>
79152
79153         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79154
79155         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79156
79157 2005-10-17  Bruno Haible  <bruno@clisp.org>
79158
79159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79160         that it can also be used in a test.
79161
79162 2005-10-16  Bruno Haible  <bruno@clisp.org>
79163
79164         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79165         TESTS_ENVIRONMENT, so that individual tests can augment it.
79166
79167         * gnulib-tool (func_create_testdir): Use an intermediate target for
79168         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79169         macros, like $(ALLOCA_H), which cannot be passed through the command
79170         line.
79171
79172 2005-10-15  Simon Josefsson  <jas@extundo.com>
79173
79174         * modules/rijndael-tests: New file.
79175
79176         * modules/rijndael: New file.
79177
79178 2005-10-15  Simon Josefsson  <jas@extundo.com>
79179
79180         * m4/rijndael.m4: New file.
79181
79182 2005-10-15  Simon Josefsson  <jas@extundo.com>
79183
79184         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79185
79186         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79187
79188 2005-10-14  Simon Josefsson  <jas@extundo.com>
79189
79190         * tests/test-arcfour.c: New file.
79191
79192         * modules/arcfour, modules/arcfour-tests: New files.
79193
79194 2005-10-14  Simon Josefsson  <jas@extundo.com>
79195
79196         * m4/arcfour.m4: New file.
79197
79198 2005-10-14  Simon Josefsson  <jas@extundo.com>
79199
79200         * lib/arcfour.h, lib/arcfour.c: New files.
79201
79202 2005-10-14  Roland McGrath  <roland@redhat.com>
79203
79204         Import from libc.  [BZ #1331]
79205         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79206         macro argument.
79207         Reported by Matej Vela <vela@debian.org>.
79208
79209 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79212         include <wchar.h>; no longer needed.
79213
79214 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79217
79218 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79219         and  Ulrich Drepper  <drepper@redhat.com>
79220
79221         Import from libc.
79222         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79223         instead of inline stream orientation test and two separate
79224         function calls.  Pay no attention to USE_IN_LIBIO.
79225
79226 2005-10-13  Simon Josefsson  <jas@extundo.com>
79227
79228         * modules/gc-hmac-md5-tests: New file.
79229
79230         * tests/test-gc-hmac-sha1.c: New file.
79231
79232         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79233
79234         * modules/gc-hmac-md5-tests: New file.
79235
79236         * tests/test-gc-md5.c: New file.
79237
79238         * modules/gc-md5-tests: New file.
79239
79240 2005-10-13  Simon Josefsson  <jas@extundo.com>
79241
79242         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79243         Move memory allocation outside of loop.
79244
79245 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79248         intermediate directory is in a read-only file system.  Problem
79249         reported by Eric Blake.
79250
79251 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79252
79253         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79254
79255 2005-10-12  Simon Josefsson  <jas@extundo.com>
79256
79257         * tests/test-hmac-sha1.c: New file.
79258
79259         * modules/hmac-sha1-tests: New file.
79260
79261         * modules/hmac-sha1: New file.
79262
79263 2005-10-12  Simon Josefsson  <jas@extundo.com>
79264
79265         * modules/gc-sha1: New file.
79266
79267 2005-10-12  Simon Josefsson  <jas@extundo.com>
79268
79269         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79270
79271         * tests/test-gc-pbkdf2-sha1.c: New file.
79272
79273 2005-10-12  Simon Josefsson  <jas@extundo.com>
79274
79275         * modules/gc-md5, modules/gc-hmac-md5: New files.
79276
79277         * modules/gc (Files): Remove md5, memxor and hmac files.
79278
79279 2005-10-12  Simon Josefsson  <jas@extundo.com>
79280
79281         * m4/gc-pbkdf2-sha1.m4: New file.
79282
79283         * m4/gc-hmac-sha1.m4: New file.
79284
79285         * m4/gc-sha1: New file.
79286
79287         * m4/hmac-sha1.m4: New file.
79288
79289 2005-10-12  Simon Josefsson  <jas@extundo.com>
79290
79291         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79292
79293         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79294
79295 2005-10-12  Simon Josefsson  <jas@extundo.com>
79296
79297         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79298         suggested by Bruno Haible <bruno@clisp.org>.
79299
79300 2005-10-12  Simon Josefsson  <jas@extundo.com>
79301
79302         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79303
79304 2005-10-12  Simon Josefsson  <jas@extundo.com>
79305
79306         * lib/gc-pbkdf2-sha1.c: New file.
79307
79308         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79309
79310 2005-10-12  Simon Josefsson  <jas@extundo.com>
79311
79312         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79313
79314         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79315
79316 2005-10-12  Simon Josefsson  <jas@extundo.com>
79317
79318         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79319         GC_USE_HMAC_MD5, respectively.
79320
79321         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79322         (gc_md5): Fix typo.
79323
79324         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79325
79326         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79327
79328         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79329
79330 2005-10-12  Bruno Haible  <bruno@clisp.org>
79331
79332         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79333         Reported by Stepan Kasal <kasal@ucw.cz>.
79334
79335 2005-10-11  Simon Josefsson  <jas@extundo.com>
79336
79337         * tests/test-crc.c: New file.
79338
79339         * modules/crc, modules/crc-tests: New files.
79340
79341 2005-10-11  Simon Josefsson  <jas@extundo.com>
79342
79343         * m4/crc.m4: New file.
79344
79345 2005-10-11  Simon Josefsson  <jas@extundo.com>
79346
79347         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79348
79349         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79350
79351         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79352
79353 2005-10-11  Simon Josefsson  <jas@extundo.com>
79354
79355         * lib/crc.h, lib/crc.c: New files.
79356
79357         * lib/gc.h (gc_hash_buffer): Add doc.
79358
79359 2005-10-11  Bruno Haible  <bruno@clisp.org>
79360
79361         * modules/c-strcasestr: New file.
79362         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79363
79364 2005-10-11  Bruno Haible  <bruno@clisp.org>
79365
79366         * modules/c-strcase: New file.
79367         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79368
79369 2005-10-11  Bruno Haible  <bruno@clisp.org>
79370
79371         * lib/strcasecmp.c: Include limits.h.
79372         (strcasecmp): Avoid integer overflow on exotic platforms.
79373         * lib/strncasecmp.c: Include limits.h.
79374         (strncasecmp): Avoid integer overflow on exotic platforms.
79375         Reported by Paul Eggert.
79376
79377 2005-10-11  Bruno Haible  <bruno@clisp.org>
79378
79379         * lib/c-strcasestr.h: New file, from GNU gettext.
79380         * lib/c-strcasestr.c: New file, from GNU gettext.
79381
79382 2005-10-11  Bruno Haible  <bruno@clisp.org>
79383
79384         * lib/c-strcase.h: New file, from GNU gettext.
79385         * lib/c-strcasecmp.c: New file, from GNU gettext.
79386         * lib/c-strncasecmp.c: New file, from GNU gettext.
79387
79388 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79389
79390         * modules/mempcpy (License): GPL -> LGPL.
79391         * modules/strchrnul (License): Likewise.
79392         * modules/sysexits (License): Likewise.
79393
79394 2005-10-08  Simon Josefsson  <jas@extundo.com>
79395
79396         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79397
79398 2005-10-07  Simon Josefsson  <jas@extundo.com>
79399
79400         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79401
79402 2005-10-06  Simon Josefsson  <jas@extundo.com>
79403
79404         * tests/test-hmac-md5.c: New file.
79405
79406         * modules/hmac-md5-tests: New file.
79407
79408         * modules/hmac-md5: New file.
79409
79410 2005-10-06  Simon Josefsson  <jas@extundo.com>
79411
79412         * m4/hmac-md5.m4: New file.
79413
79414         * m4/memxor.m4: Require gl_C_RESTRICT.
79415
79416 2005-10-06  Simon Josefsson  <jas@extundo.com>
79417
79418         * lib/memxor.c (memxor): Avoid casts and warnings.
79419
79420 2005-10-06  Simon Josefsson  <jas@extundo.com>
79421
79422         * lib/hmac-md5.c: New file.
79423
79424         * lib/hmac.h: New file.
79425
79426 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79429         promotes to int, not unsigned int, to catch the AIX 5.3
79430         compiler bug.
79431
79432 2005-10-05  Simon Josefsson  <jas@extundo.com>
79433
79434         * modules/memxor: New file.
79435
79436         * modules/iconv (Files): Move config.rpath to havelib, it is used
79437         there.
79438
79439         * modules/havelib (Files): Add config.rpath.
79440
79441 2005-10-05  Simon Josefsson  <jas@extundo.com>
79442
79443         * m4/memxor.m4: New file.
79444
79445 2005-10-05  Simon Josefsson  <jas@extundo.com>
79446
79447         * lib/memxor.c (memxor): Fix compiler error.
79448
79449         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79450         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79451
79452         * lib/memxor.h, lib/memxor.c: New files.
79453
79454         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79455         we assume all systems have it, suggested by Jim Meyering
79456         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79457         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79458         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79459         same reasons.
79460
79461 2005-10-05  Simon Josefsson  <jas@extundo.com>
79462
79463         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79464
79465 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79468         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79469         needed, since the source code now assumes these .h files.
79470
79471 2005-10-05  Derek Price  <derek@ximbiot.com>
79472
79473         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79474
79475 2005-10-05  Bruno Haible  <bruno@clisp.org>
79476
79477         * modules/stdint (License): Change to LGPL.
79478
79479 2005-10-04  Simon Josefsson  <jas@extundo.com>
79480
79481         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79482         D. Baushke" <mdb@gnu.org>.
79483
79484 2005-10-04  Bruno Haible  <bruno@clisp.org>
79485
79486         * lib/verify.h (verify_true): Provide alternative definition for C++.
79487
79488 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79491         (SSIZE_MAX): New macro, if not already defined.
79492         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79493         than 2 GiB.
79494
79495 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         Sync from coreutils.
79498         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79499         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79500         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79501         ULLONG_MAX doesn't work with 2.7.2.1.
79502
79503 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79506         From Ben Pfaff.
79507
79508         * modules/exclude (Depends-on): Depend on verify.
79509         * modules/strtoimax (Depends-on): Likewise.
79510         * modules/utimecmp (Depends-on): Likewise.
79511
79512 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * lib/exclude.c: Include verify.h.
79515         (verify): Remove.  All callers changed to use verify.h's version.
79516         * lib/strtoimax.c: Likewise.
79517         * lib/utimecmp.c: Likewis.e
79518
79519         Sync from coreutils.
79520         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79521         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79522         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79523         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79524         bother returning ENOSYS if settimeofday or stime fails; just let
79525         them return whatever errno they want to return.
79526         * lib/utimens.c: Include unistd.h, for dup2.
79527         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79528         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79529
79530 2005-10-02  Jim Meyering  <jim@meyering.net>
79531
79532         Sync from coreutils.
79533         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79534         from glibc-2.2.5 that fails for read-only files.
79535
79536 2005-10-02  Jim Meyering  <jim@meyering.net>
79537
79538         Sync from coreutils.
79539         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79540         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79541         `#if HAVE_CONFIG_H'.
79542         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79543         Remove AT_FDCWD test.
79544         Do not consume the fd unless successful.
79545         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79546         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79547         block, so that we don't even try to compile it if settimeofday is
79548         available.  This works around a compilation failure on OSF1 V5.1,
79549         due to stime requiring a `long int*' while tv_sec is `int'.
79550
79551 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79552
79553         Sync from coreutils.
79554         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79555         against `yes', rather than just testing for nonempty.
79556
79557 2005-10-01  Simon Josefsson  <jas@extundo.com>
79558
79559         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79560         and Darwin.
79561
79562         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79563         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79564         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79565         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79566         Check if struct addrinfo is declared.
79567
79568 2005-10-01  Simon Josefsson  <jas@extundo.com>
79569
79570         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79571         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79572         AI_* and EAI_* definitions.  Protect function declarations.
79573
79574 2005-10-01  Jim Meyering  <jim@meyering.net>
79575
79576         Sync from coreutils.
79577
79578         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79579         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79580         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79582         in the inet and nsl libraries.  Required on Solaris 5.7.
79583
79584 2005-10-01  Jim Meyering  <jim@meyering.net>
79585
79586         Sync from coreutils.
79587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79588         in the inet and nsl libraries.  Required on Solaris 5.7.
79589
79590 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79591
79592         * lib/getdelim.c (getdelim): Remove unused variables.
79593
79594 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79597         so that the code works even with ancient cpp.  Portability problem
79598         with GCC 2.7.2.1 reported by Thomas M.Ott.
79599
79600 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79601
79602         * modules/regex (Depends-on): Add strcase.
79603
79604         * modules/gethostname (Licence): Change from GPL to LGPL, since
79605         gethostname.c is a trivial implementation of a standard library
79606         function.
79607         * modules/poll (License): Change from GPL to LGPL, since it's
79608         derived from LGPL code.
79609
79610 2005-09-27  Jim Meyering  <jim@meyering.net>
79611
79612         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79613         HAVE_CONFIG_H.
79614
79615         * lib/intprops.h (signed_type_or_expr__): Define.
79616         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79617         for unsigned types.
79618
79619 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * lib/verify.h (verify_expr): Remove, replacing with:
79622         (verify_true): New macro that returns true instead of void.
79623         (verify_type__): Remove.
79624         (verify): Use verify_true rather than verify_type__.
79625
79626 2005-09-26  Bruno Haible  <bruno@clisp.org>
79627
79628         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79629         is necessary.
79630         (lib_SOURCES): Remove mbchar.c.
79631         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79632         (Files): Add m4/mbrtowc.m4.
79633         * modules/mbiter: Likewise.
79634         * modules/mbuiter: Likewise.
79635
79636 2005-09-26  Bruno Haible  <bruno@clisp.org>
79637
79638         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79639         compile mbchar.c if they are not both present.
79640         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79641         * m4/mbiter.m4 (gl_MBITER): Likewise.
79642         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79643         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79644         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79645
79646 2005-09-25  Jim Meyering  <jim@meyering.net>
79647
79648         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79649         also uses socklen_t.
79650
79651 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * lib/utimens.c (ENOSYS): Define if not already defined.
79654         (futimens): Support having a null PATH if the file descriptor
79655         is nonnegative.
79656
79657         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79658         Remove.
79659         (__attribute): Define to empty unless GCC 3.1 or later.
79660         This works around a core dump on OpenBSD 3.4, which has GCC
79661         2.95.3, which dumps core when given __attribute__(()).  It also
79662         simplifies other tests, since we really don't want to bother with
79663         worrying about which ancient version of GCC supported what.
79664         Original problem reported by Yoann Vandoorselaere, with part of
79665         the fix suggested by Derek Price.
79666
79667 2005-09-24  Jim Meyering  <jim@meyering.net>
79668
79669         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79670         so we can once again use a positive bitfield width of 1 -- now we
79671         don't have to explain why we were using a bitfield width of 2.
79672
79673 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79676         and similarly for the other external symbols.  Problem reported
79677         by James Gallager.
79678
79679         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79680         bug reported by Jim Meyering.
79681
79682         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79683         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79684         not needed, since socklen is a prerequisite module.
79685
79686 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79689         Problem reported by Eric Blake.
79690         (getaddrinfo): Initialize se so that it's not garbage.
79691         Redo internal storage allocation so that it doesn't make unportable
79692         assumptions about alignment.
79693         Fix a memory leak.
79694
79695         * lib/utimens.c (futimens): Use futimesat if available.
79696         Prefer it to futimes since it doesn't have the futimes bug.
79697
79698         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79699         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79700         Instead, declare a function that returns a pointer to an array,
79701         and use verify_type__ to declare the size of the array.
79702         Problem and germ of a solution reported by Bruno Haible.
79703         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79704         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79705
79706 2005-09-23  Jim Meyering  <jim@meyering.net>
79707
79708         Sync from coreutils.
79709         Correct build failure (socklen_t not defined) on at least
79710         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79711         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79712
79713 2005-09-23  Jim Meyering  <jim@meyering.net>
79714
79715         * modules/getaddrinfo (Depends-on): Add socklen.
79716
79717 2005-09-23  Bruno Haible  <bruno@clisp.org>
79718
79719         * tests/test-verify.c: New file.
79720
79721 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         Sync from coreutils.
79724
79725         * modules/argmatch (Depends-on): Add verify.
79726         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79727         unistd-safer.
79728         * modules/save-cwd (Depends-on): Likewise.
79729
79730         * modules/openat (Files): Add lib/openat-die.c.
79731         (Depends-on): Remove error, exitfail.
79732         Add dirname.
79733
79734         * modules/verify: New file.
79735         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79736         with "verify" module.
79737
79738 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         Sync from coreutils.
79741
79742         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79743         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79744         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79745         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79746         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79747         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79748         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79749         Don't bother checking for string.h, stdlib.h, unistd.h.
79750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79751         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79752         module's job.
79753         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79754         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79755
79756         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79757         (gl_GETDATE): Use it.
79758
79759         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79760
79761 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         Sync from coreutils.
79764
79765         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79766         stat-time.h.
79767         * lib/argmatch.h: Include verify.h
79768         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79769         (ARGMATCH_ASSERT): Remove; unused.
79770         * lib/canonicalize.c: Assume STDC_HEADERS.
79771         * lib/exclude.c: Include "strcase.h".
79772         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79773         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79774         and stdio-safer.h.
79775         (getusershell): Call fopen, not fopen_safer.
79776         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79777         Do not include unistd-safer.h.
79778         (save_cwd): Don't call fd_safer; no longer needed
79779         now that we include fcntl--.h.
79780
79781         * lib/getdate.y (relative_time): New type.
79782         (RELATIVE_TIME_0): New constant.
79783         (parser_control): Use relative_time instead of doing it ourselves.
79784         (%union): Add new relative_time rel member.
79785         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79786         Now typeless.
79787         (relunit, relunit_snumber): Now of type rel.
79788         (zone, rel, relunit, get_date): Adjust to above changes.
79789
79790         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79791         Do not include unistd-safer.h.
79792         (getloadavg): Don't call fd_safer; no longer needed
79793         now that we include fcntl--.h.
79794
79795         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79796         (make_dir_parents): Treat ENOSYS like EEXIST.
79797
79798         Improve quality of diagnostics on restore_cwd failure.
79799         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79800         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79801         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79802         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79803         each time through the loop.  Do not diagnose restore_cwd failure;
79804         that is the caller's job (and perhaps the caller does not care).
79805
79806         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79807         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79808         If the file already exists but is not a directory, don't bother
79809         to try to make its parents.
79810         Close potential file descriptor leak if we can't chdir("/") (!).
79811         Don't always return true if chdir($PWD) fails; return true only
79812         if the requested action was done successfully (except for the
79813         chdir($PWD)).
79814         Don't log final directory unless we actually made it.
79815         Refactor to avoid duplicate code to fix up permissions.
79816         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79817
79818         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79819         to make it a bit faster and (I hope) clearer.
79820         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79821         Fix bug in formats like %2N.
79822
79823         * lib/verify.h: New file.
79824
79825 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79826
79827         Sync from coreutils.
79828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79829
79830 2005-09-22  Jim Meyering  <jim@meyering.net>
79831
79832         Sync from coreutils.
79833
79834         * m4/lstat.m4 (gl_FUNC_LSTAT):
79835         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79836         Remove obsolete comment.
79837         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79838         * m4/xstrtod.m4: Likewise.
79839
79840         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79841
79842 2005-09-22  Jim Meyering  <jim@meyering.net>
79843
79844         Sync from coreutils.
79845
79846         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79847
79848         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79849         the .tm_year member, since otherwise gcc-4.0 would now warn about
79850         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79851
79852         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79853         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79854
79855         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79856         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79857         when run in a time zone for which daylight savings time is in effect
79858         for the starting date.
79859
79860         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79861         stop us from restricting permissions of just-created absolute-named
79862         directories.
79863         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79864         to restore initial working directory.
79865         * lib/mkdir-p.c (make_dir_parents): New parameter:
79866         different_working_dir, to tell caller if/when we change the working
79867         directory and are unable to return to the initial one.
79868         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79869         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79870         `return false'.  This fixes a bug introduced on 2004-07-30.
79871
79872         * lib/openat.c (fdopendir): Be sure to close the supplied
79873         file descriptor before returning.  This makes our replacement
79874         implementation a little closer to Solaris's, where fdopendir
79875         ties the file descriptor to the returned DIR* pointer.
79876         * lib/openat.c (unlinkat): New function.
79877         * lib/openat.h (unlinkat): Add prototype.
79878         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79879         (openat_restore_fail): Rename from openat_restore_die.
79880         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79881
79882         Provide an alternative to exiting immediately upon save_cwd or
79883         restore_cwd failure.  Now, an application can arrange e.g.,
79884         to perform a longjump in that case.
79885         * lib/openat.c: Include dirname.h.
79886         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79887         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79888         and openat_restore_die rather than calling error directly.
79889         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79890
79891         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79892         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79893         define.
79894
79895         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79896         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79897                             int utc, int nanoseconds);
79898         Background:
79899         date should not have to allocate a megabyte of virtual memory to
79900         handle a format argument like +%1048575T.  When implemented with
79901         strftime, it must allocate such a buffer, use strftime to fill it
79902         in, print it, then free it.
79903         With fprintftime, it simply prints everything and exits.
79904         With no need for memory allocation, that's one fewer way to fail.
79905         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79906         optional field width, not before, so we accept %9:z, not %:9z.
79907         (my_strftime): Be sure to use L_('x') for literals.
79908
79909         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79910         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79911         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79912         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79913         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79914         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79915         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79916         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79917         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79918         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79919         * lib/xgethostname.c, lib/xreadlink.c:
79920         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79921
79922         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79923         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79924         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79925         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79926         and don't include <sys/file.h>).
79927
79928 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79929
79930         Sync from coreutils.
79931
79932         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79933         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79934         [!LDAV_DONE]: Avoid unused variable warning.
79935
79936 2005-09-21  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/unicodeio.h (unicode_to_mb): New declaration.
79939
79940 2005-09-20  Derek Price  <derek@ximbiot.com>
79941
79942         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79943         getaddrinfo.h.
79944
79945 2005-09-20  Bruno Haible  <bruno@clisp.org>
79946
79947         * gnulib-tool: Remove trailing slashes from the values specified for
79948         --source-base, --m4-base, --tests-base, --aux-dir.
79949         Suggested by Simon Josefsson <jas@extundo.com>.
79950
79951 2005-09-20  Bruno Haible  <bruno@clisp.org>
79952
79953         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79954         func_modules_to_filelist, func_import, func_create_testdir): Make all
79955         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79956         change when gnulib-tool is invoked in a different locale.
79957
79958 2005-09-19  Simon Josefsson  <jas@extundo.com>
79959
79960         * m4/socklen.m4: Fix typo.
79961
79962 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79963
79964         Use a consistent style for including <config.h>.
79965         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79966         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79967         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79968         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79969         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79970         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79971         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79972         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79973         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79974         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79975         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79976         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79977         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79978         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79979         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79980         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79981         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79982         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79983         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79984         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79985         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79986         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79987         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79988         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79989         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79990         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79991         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79992         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79993         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79994         lib/xstrtoumax.c, lib/yesno.c:
79995         Standardize inclusion of config.h.
79996         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79997         lib/inttostr.h:  Removed inclusion of config.h from header files.
79998         * lib/inttostr.c:  Adjusted in-tree users.
79999         * lib/timespec.h: Remove superfluous warning to include config.h.
80000         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80001         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80002         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80003         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80004         config.h with HAVE_CONFIG_H.
80005
80006 2005-09-19  Jim Meyering  <jim@meyering.net>
80007
80008         * modules/pathmax (License): Change to LGPL.
80009
80010 2005-09-19  Derek Price  <derek@ximbiot.com>
80011
80012         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80013
80014 2005-09-19  Bruno Haible  <bruno@clisp.org>
80015
80016         * gnulib-tool (import): Provide default for --tests-base.
80017
80018 2005-09-19  Bruno Haible  <bruno@clisp.org>
80019
80020         * doc/quote.texi: New file, extracted from gnulib.texi.
80021         * doc/ctime.texi: New file, extracted from gnulib.texi.
80022         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80023         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80024         * doc/gnulib.texi: Include them.
80025
80026 2005-09-18  Bruno Haible  <bruno@clisp.org>
80027
80028         Portability fix.
80029         * gnulib-tool (func_readlink): New function.
80030         (func_ln_if_changed): Use it.
80031
80032 2005-09-18  Bruno Haible  <bruno@clisp.org>
80033
80034         * gnulib-tool: Support --with-tests also with --import.
80035         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80036         (func_import): Use variables $testsbase and $inctests. Emit a
80037         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80038         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80039         SUBDIRS += $testsdir.
80040         (func_create_testdir): Update.
80041
80042 2005-09-18  Bruno Haible  <bruno@clisp.org>
80043
80044         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80045         instead of $dry_run.
80046         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80047         (func_ln_if_changed): Don't handle dry-run here.
80048         (func_import): In dry-run mode, detect more precisely which actions
80049         would be performed, and don't use "...ing" verbs.
80050
80051 2005-09-18  Bruno Haible  <bruno@clisp.org>
80052
80053         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80054         (func_import): Use join on two temporary files instead of three nested
80055         loops, in order to determine which files are new or old.
80056
80057 2005-09-18  Bruno Haible  <bruno@clisp.org>
80058
80059         * gnulib-tool (func_import): Comment out code that spits out the
80060         new files with --dry-run.
80061
80062 2005-09-18  Bruno Haible  <bruno@clisp.org>
80063
80064         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80065
80066 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * lib/stat-time.h: New file.
80069         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80070         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80071         in a different way.
80072         (timespec_cmp): New function.
80073         * lib/utimecmp.c: Include stat-time.h.
80074         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80075         members exist, not on the obsolescent ST_MTIM_NSEC.
80076         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80077
80078 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80081
80082 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         * MODULES.html.sh (File system functions): Add stat-time.
80085         * modules/stat-time: New file.
80086         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80087         is now done in a different way, by the stat-time module.
80088         * modules/utimecmp (Depends-on): Add stat-time.
80089
80090 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * m4/st_mtim.m4: Remove.  Superseded by...
80093         * m4/stat-time.m4: New file.
80094         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80095         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80096
80097 2005-09-15  Derek Price  <derek@ximbiot.com>
80098
80099         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80100
80101 2005-09-15  Derek Price  <derek@ximbiot.com>
80102
80103         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80104         * lib/regex_internal.c: Ditto, using this...
80105         (__GNUC_PREREQ): ...new macro.
80106         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80107         using...
80108         (__GNUC_PREREQ): ...this new macro.
80109
80110         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80111
80112 2005-09-15  Derek Price  <derek@ximbiot.com>
80113             Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80116         changes, consolidating in...
80117         * lib/regex_internal.h: ...this file.
80118
80119 2005-09-13  Jim Meyering  <jim@meyering.net>
80120
80121         * lib/canon-host.c: Filter through gnu indent and reword comments
80122         slightly.
80123         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80124
80125 2005-09-13  Derek Price  <derek@ximbiot.com>
80126
80127         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80128         failure.
80129         Reported by Jim Meyering  <jim@meyering.net>.
80130
80131 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80132
80133         * lib/base64.c: Typo.
80134         (base64_encode): Put b64str in initialized data section.
80135
80136 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80137
80138         Merge glibc and coreutils changes into gnulib, plus a few
80139         extra fixes.
80140         * lib/md5.c: Use #error rather than a string.
80141         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80142         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80143         (__attribute__): Define to empty for non recent-GCC.
80144         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80145         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80146         Renamed from their non-__ counterparts, with new macros replacing
80147         them if not _LIBC.  Add __THROW attribute.
80148         (rol): Remove.
80149         (struct md5_ctx): Align buffer if using GCC.
80150         * lib/sha1.h (struct sha1_ctx): Likewise.
80151         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80152         The old name was backwards.
80153         (NOTSWAP): Remove; not used.
80154         (rol): New macro, moved here from md5.h.
80155         (sha1_process_block): Remove a FIXME that doesn't make sense.
80156
80157 2005-09-12  Derek Price  <derek@ximbiot.com>
80158
80159         Return usable errors from canon-host.
80160         * lib/canon-host.h: New file.
80161         * lib/canon-host.c (canon_host): Wrap...
80162         (canon_host_r): ...this new function, which now relies exclusively on
80163         getaddrinfo.
80164         (ch_strerror): New function.
80165         (last_cherror): New global.
80166         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80167         interface.
80168         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80169         void *.
80170         (freeaddrinfo): Free ai->ai_canonname when set.
80171
80172 2005-09-12  Derek Price  <derek@ximbiot.com>
80173
80174         Make canon-host require getaddrinfo.
80175         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80176         AC_LIBSOURCE canon-host.h.  Call...
80177         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80178         gl_GETADDRINFO.
80179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80180
80181 2005-09-12  Derek Price  <derek@ximbiot.com>
80182
80183         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80184         LGPL.
80185         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80186
80187 2005-09-12  Derek Price  <derek@ximbiot.com>
80188
80189         * lib/gai_strerror.c: Include config.h when available.  Include
80190         getaddrinfo.h before other headers to test interface.
80191         Reported by Larry Jones <lawrence.jones@ugs.com>.
80192
80193 2005-09-12  Derek Price  <derek@ximbiot.com>
80194             Paul Eggert  <eggert@cs.ucla.edu>
80195
80196         * modules/glob (Files): Add glob-libc.h.
80197
80198 2005-09-12  Derek Price  <derek@ximbiot.com>
80199             Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80202         glob_.h, glob-libc.h.
80203         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80204
80205 2005-09-12  Derek Price  <derek@ximbiot.com>
80206             Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80209         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80210         protecting things that should be done only in gnulib contexts.
80211         * lib/glob_.h: New file, containing only the glob things needed for
80212         gnulib.
80213         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80214         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80215         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80216         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80217         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80218         and to respect the namespace rules better.
80219
80220 2005-09-08  Simon Josefsson  <jas@extundo.com>
80221
80222         * modules/socklen: New file.
80223
80224 2005-09-08  Simon Josefsson  <jas@extundo.com>
80225
80226         * m4/socklen.m4: New file.
80227
80228 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * modules/utimens (Files): Add m4/utimbuf.m4, since
80231         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80232         Reported by Sergey Poznyakoff.
80233
80234 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80235
80236         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80237         definitions, since that's the preferred style in glibc.
80238         Fix a minor spacing issue, and update copyright notice to match
80239         glibc's.
80240
80241 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80242
80243         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80244
80245 2005-09-06  Simon Josefsson  <jas@extundo.com>
80246
80247         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80248         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80249
80250 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80251
80252         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80253         warning.
80254
80255 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80256
80257         * config/srclist.txt: Add glibc bug 1302.
80258
80259 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         Change bitset word type from unsigned int to unsigned long int,
80262         as this has better performance on typical 64-bit hosts.
80263         Port bitset code to hosts with unusual word sizes.
80264         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80265         (build_collating_symbol):
80266         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80267         argument is a bitset.  This is merely a style issue, but it makes
80268         it clearer that an entire array is expected.
80269         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80270         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80271         Port to the case where bitset_word is not the same as unsigned int.
80272         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80273         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80274         Likewise.
80275         * lib/regexec.c (check_dst_limits_calc_pos_1,
80276         check_subexp_matching_top):
80277         (build_trtable, group_nodes_into_DFAstates):
80278         Likewise.
80279         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80280         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80281         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80282         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80283         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80284         * lib/regcomp.c (optimize_subexps, lower_subexp):
80285         Work even if bitset_word has holes in its bitwise representation.
80286         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80287         * lib/regexec.c (check_dst_limits_calc_pos_1,
80288         check_subexp_matching_top):
80289         Likewise.
80290         * lib/regex_internal.c (re_string_reconstruct):
80291         Don't assume UCHAR_MAX == 255.
80292         * lib/regex_internal.h (bitset_set_all): Likewise.
80293         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80294         All uses changed.
80295         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80296         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80297         All uses changed.
80298         (BITSET_WORD_MAX): New macro.
80299         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80300         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80301         (bitset_empty, bitset_copy):
80302         Prefer sizeof (bitset) to multiplying it out ourselves.
80303         (bitset_not_merge): Remove; unused.
80304         (bitset_contain): Return bool, not unsigned int with one bit on.
80305         All callers changed.
80306         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80307         alignment than re_node_set; do this by defining a new internal
80308         type struct dests_alloc and using it to allocate memory.
80309
80310 2005-09-05  Bruno Haible  <bruno@clisp.org>
80311
80312         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80313         links.
80314
80315 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80316
80317         * modules/size_max (Makefile.am): Add size_max.h
80318
80319 2005-09-04  Derek Price  <derek@ximbiot.com>
80320
80321         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80322
80323 2005-09-03  Simon Josefsson  <jas@extundo.com>
80324
80325         * gnulib-tool: Fix typo.
80326
80327 2005-09-03  Simon Josefsson  <jas@extundo.com>
80328
80329         * config/srclist.txt: Add glibc bug 1293.
80330
80331 2005-09-03  Derek Price  <derek@ximbiot.com>
80332
80333         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80334         From Larry Jones <lawrence.jones@ugs.com>.
80335
80336 2005-09-02  Simon Josefsson  <jas@extundo.com>
80337
80338         * modules/socklen: New file.
80339
80340 2005-09-02  Simon Josefsson  <jas@extundo.com>
80341
80342         * modules/havelib: New module.
80343
80344         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80345         Use havelib.
80346
80347 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         Check for arithmetic overflow when calculating sizes, to prevent
80350         some buffer-overflow issues.  These patches are conservative, in the
80351         sense that when I couldn't determine whether an overflow was possible,
80352         I inserted a run-time check.
80353         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80354         macros.
80355         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80356         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80357         (re_xnrealloc, re_x2nrealloc): New inline functions.
80358         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80359         parse_bracket_exp):
80360         (build_equiv_class, build_charclass): Check for arithmetic overflow
80361         in size expression calculations.
80362         * lib/regex_internal.c (re_string_realloc_buffers):
80363         (build_wcs_upper_buffer, re_node_set_add_intersect):
80364         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80365         (re_dfa_add_node, register_state): Likewise.
80366         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80367         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80368         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80369         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80370
80371 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80372
80373         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80374         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80375
80376 2005-09-02  Bruno Haible  <bruno@clisp.org>
80377
80378         Support for lib vs. lib64 distinction on biarch platforms.
80379         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80380         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80381         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80382
80383 2005-09-02  Bruno Haible  <bruno@clisp.org>
80384
80385         * gnulib-tool (import): In the other first-use case, provide defaults
80386         as well.
80387
80388 2005-09-02  Bruno Haible  <bruno@clisp.org>
80389
80390         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80391         patches not yet found in the latest gettext release.
80392
80393 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80394
80395         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80396         to avoid a collision with bits/local_lim.h in glibc.
80397         All uses changed.  Problem reported by Dmitry V. Levin in
80398         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80399
80400         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80401         bugs in int versus size_t comparisons.
80402         (re_string_context_at): Fix bug where the code assumed that
80403         Idx is signed.
80404
80405         Use bool where appropriate.
80406         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80407         All callers changed.
80408         (calc_eclosure_iter): Likewise, for ROOT arg.
80409         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80410         (build_charclass_op): Likewise, for NON_MATCH arg.
80411         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80412         (re_string_construct_common): Likewise, for ICASE arg.
80413         * lib/regexec.c (re_search_2_stub, re_search_stub):
80414         Likewise, for RET_LEN arg.
80415         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80416         (set_regs): Likewise, for FL_BACKTRACK arg.
80417         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80418         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80419         (calc_eclosure_iter, parse_bracket_exp):
80420         Use bool for internal variables that are booleans.
80421         * lib/regexec.c (re_search_internal, check_matching,
80422         proceed_next_node):
80423         (set_regs, build_sifted_states, sift_states_bkref):
80424         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80425         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80426         (find_collation_sequence_value):
80427         Likewise.
80428         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80429         (re_node_set_compare):
80430         Return bool, not int. All callers changed.
80431         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80432         (build_trtable, check_node_accept): Likewise.
80433         * lib/regex_internal.h: Include stdbool.h.
80434
80435         Fix bugs uncovered when converting to bool.
80436         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80437         failure instead of charging ahead blindly.
80438         * lib/regex_internal.c (register_state): Likewise.
80439         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80440         for freeing internal storage.
80441         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80442         bitset pieces used as boolean, to avoid undefined behavior
80443         on hosts that do int overflow checking.
80444
80445 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * config/srclist.txt: Add glibc bugs 1285-1287.
80448
80449 2005-09-01  Jim Meyering  <jim@meyering.net>
80450
80451         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80452         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80453         Require gl_STAT_MACROS, too.
80454
80455 2005-09-01  Bruno Haible  <bruno@clisp.org>
80456
80457         * gnulib-tool (import): In the first-use case, provide defaults.
80458
80459 2005-09-01  Bruno Haible  <bruno@clisp.org>
80460
80461         * gnulib-tool (func_import): Remove the .tmp files.
80462
80463 2005-09-01  Bruno Haible  <bruno@clisp.org>
80464
80465         * gnulib-tool (func_import): Fix handling of symbolic links.
80466
80467 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80470         old glibc regex code mishandles strings longer than 2**31 bytes.
80471         This patch fixes this when the regex code is used in gnulib
80472         (i.e., outside glibc).
80473
80474         This patch should not affect the use of the regex code inside
80475         glibc.  No doubt this problem also needs to be handled for glibc
80476         as well, but the result will be an incompatible change to the
80477         glibc ABI, and the old ABI will have to be supported too.  That
80478         can be the the subject for another patch.
80479
80480         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80481         governing whether the rest of this patch is active.  By default,
80482         the macro is disabled and the patch has no effect.
80483         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80484         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80485         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80486         (re_match_2, re_set_registers): Use the new types.
80487         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80488         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80489         New macros.
80490         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80491         (re_string_context_at, bin_tree_t, re_dfastate_t):
80492         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80493         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80494         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80495         (re_string_char_size_at, re_string_wchar_at):
80496         (re_string_elem_size_at):
80497         Use the new types and macros to port to 64-bit hosts.
80498         Use unsigned types for internal values, so that the code
80499         mostly works even for arrays larger than SSIZE_MAX.
80500         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80501         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80502         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80503         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80504         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80505         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80506         (calc_inveclosure, parse_dup_op, build_range_exp):
80507         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80508         (fetch_number, create_token_tree, mark_opt_subexp):
80509         Likewise.
80510         * lib/regex_internal.c (re_string_construct_common,
80511         create_ci_newstate):
80512         (create_cd_newstate, re_string_allocate, re_string_construct):
80513         (re_string_realloc_buffers, build_wcs_upper_buffer):
80514         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80515         (re_string_reconstruct, re_string_peek_byte_case):
80516         (re_string_fetch_byte_case, re_string_context_at):
80517         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80518         (re_node_set_init_copy, re_node_set_add_intersect):
80519         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80520         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80521         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80522         (re_acquire_state, re_acquire_state_context, register_state):
80523         Likewise.
80524         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80525         search_cur_bkref_entry):
80526         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80527         (re_search_internal, re_search_2_stub, re_search_stub)
80528         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80529         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80530         (update_cur_sifted_state, check_dst_limits):
80531         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80532         (check_subexp_limits, sift_states_bkref, merge_state_array):
80533         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80534         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80535         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80536         (expand_bkref_cache, check_node_accept_bytes):
80537         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80538         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80539         (acquire_init_state_context, check_halt_node_context):
80540         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80541         (sift_states_backward, clean_state_log_if_needed):
80542         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80543         (find_recover_state, transit_state_sb, transit_state_mb):
80544         (transit_state_bkref, build_trtable, match_ctx_clean):
80545         Likewise.
80546         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80547         to work around an assumption that REG_MISSING is negative.
80548
80549         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80550         (seek_collating_symbol_entry) [defined _LIBC]:
80551         (lookup_collation_sequence_value) [defined _LIBC]:
80552         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80553         Use prototypes rather than old-style function definitions.
80554         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80555         (transit_state_sb) [0]:
80556         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80557
80558         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80559         rm_eo.
80560
80561         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80562         (optimize_subexps, lower_subexp):
80563         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80564         since the signed shift might overflow.  Use 1u<<31 instead.
80565         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80566         Likewise.
80567         * lib/regexec.c (check_dst_limits_calc_pos_1,
80568         check_subexp_matching_top): Likewise.
80569
80570         * lib/regcomp.c (optimize_subexps, lower_subexp):
80571         Use CHAR_BIT rather than 8, for clarity.
80572         * lib/regexec.c (check_dst_limits_calc_pos_1):
80573         (check_subexp_matching_top): Likewise.
80574         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80575         have to worry about portability issues when shifting it left.
80576         Remove no-longer-needed test for table_size > 0.
80577         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80578         in a word, as the resulting behavior is undefined.
80579         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80580         in one case, a <= should have been an <, and in another case the
80581         whole test was missing.
80582         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80583         the standard name CHAR_BIT.
80584         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80585         this is not true on one's complement and signed-magnitude hosts.
80586
80587         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80588         next_last_offset.
80589         (struct re_dfa_t): Remove unused member states_alloc.
80590         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80591
80592 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80595         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80596         and large-file glibc and in 32-bit large-file Solaris.
80597
80598 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80599
80600         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80601         lengths fit in regoff_t; this isn't true if regoff_t is the same
80602         width as size_t.
80603         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80604         (= START + RANGE) instead of RANGE.  This avoids overflow
80605         problems when regoff_t is the same width as size_t.
80606         All callers changed.
80607         (re_search_2_stub): Check for overflow when adding the
80608         sizes of the two strings.
80609         (re_search_stub): Check for overflow when adding START
80610         to RANGE; if it occurs, substitute the extreme value.
80611
80612 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80615
80616 2005-08-31  Jim Meyering  <jim@meyering.net>
80617
80618         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80619         a pointer-to-const.
80620         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80621         (register_state): Likewise.
80622         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80623         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80624         (group_nodes_into_DFAstates): Likewise.
80625
80626 2005-08-31  Jim Meyering  <jim@meyering.net>
80627
80628         * check-module: Add a FIXME comment.
80629
80630 2005-08-31  Eric Blake  <ebb9@byu.net>
80631
80632         * modules/unistd-safer (Files): Add unistd--.h.
80633         * modules/stdio-safer (Files): Add stdio--.h.
80634
80635 2005-08-31  Derek Price  <derek@ximbiot.com>
80636
80637         * lib/getdelim.c (getdelim): Return EOF on EOF.
80638         Reported by Larry Jones <lawrence.jones@ugs.com>.
80639
80640 2005-08-31  Bruno Haible  <bruno@clisp.org>
80641
80642         Avoid unnecessary diffs in the generated lib/Makefile.am.
80643         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80644         the generated files.
80645         (func_import): Don't set cmd.
80646
80647 2005-08-31  Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/strstr.c: Include <stddef.h>, for NULL.
80650         * lib/strcasestr.c: Likewise.
80651         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80652
80653 2005-08-31  Bruno Haible  <bruno@clisp.org>
80654
80655         * gnulib-tool: New option --macro-prefix.
80656         (func_import): Use macro_prefix.
80657         (import): Handle option --macro-prefix.
80658
80659 2005-08-31  Bruno Haible  <bruno@clisp.org>
80660
80661         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80662         Also use new variables cached_lgpl, cached_libtool.
80663
80664 2005-08-31  Bruno Haible  <bruno@clisp.org>
80665
80666         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80667         always instantiating them.
80668
80669 2005-08-31  Bruno Haible  <bruno@clisp.org>
80670
80671         * gnulib-tool (func_import): Read the previous cached settings
80672         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80673         earlier added by gnulib but are now dropped. Warn when a gnulib file
80674         overwrites a non-gnulib file.
80675
80676 2005-08-31  Bruno Haible  <bruno@clisp.org>
80677
80678         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80679         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80680         projects that don't keep autogenerated files in CVS. Put into
80681         actioncmd only the specified modules, not the transitive closure.
80682
80683 2005-08-31  Bruno Haible  <bruno@clisp.org>
80684
80685         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80686         Create directories that shall be filled.
80687         (import): Don't look for gl_* macros in configure.ac. Recurse across
80688         all directories containing a gnulib-cache.m4 files, if meaningful.
80689
80690 2005-08-31  Bruno Haible  <bruno@clisp.org>
80691
80692         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80693         (import): Set seen_libtool when we see gl_LIBTOOL.
80694
80695 2005-08-31  Bruno Haible  <bruno@clisp.org>
80696
80697         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80698         declaration macro definitions from generated gnulib.m4.
80699
80700 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80701
80702         * lib/iconvme.h: Add prototype for iconv_alloc.
80703
80704 2005-08-29  Simon Josefsson  <jas@extundo.com>
80705
80706         * lib/iconvme.c: Fix errno.
80707
80708 2005-08-29  Bruno Haible  <bruno@clisp.org>
80709
80710         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80711         that it works when the directory contains spaces.
80712
80713 2005-08-29  Bruno Haible  <bruno@clisp.org>
80714
80715         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80716
80717 2005-08-29  Bruno Haible  <bruno@clisp.org>
80718
80719         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80720         Emit more advice.
80721
80722 2005-08-29  Bruno Haible  <bruno@clisp.org>
80723         and Stepan Kasal  <kasal@ucw.cz>
80724
80725         * check-module: If more parameters are given, check each of them
80726         separately; add more exceptions, as noted by Jim Meyering.
80727         (check_module): New procedure.
80728         (%exempt_header): Now contains all exceptions.
80729
80730 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80731
80732         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80733
80734 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80735
80736         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80737
80738 2005-08-28  Bruno Haible  <bruno@clisp.org>
80739
80740         * m4/gnulib-tool.m4: New file.
80741
80742 2005-08-27  Jim Meyering  <jim@meyering.net>
80743
80744         * modules/unistd-safer (Files): Add pipe-safer.c.
80745         * modules/fcntl-safer (Files): Add creat-safer.c.
80746
80747 2005-08-27  Jim Meyering  <jim@meyering.net>
80748
80749         * m4/stdlib-safer.m4: New file.  From coreutils.
80750         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80751         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80752         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80753         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80754         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80755
80756 2005-08-27  Jim Meyering  <jim@meyering.net>
80757
80758         * lib/fopen-safer.c: Merge minor changes from coreutils.
80759         * lib/dup-safer.c: Likewise.
80760         * lib/fd-safer.c: Likewise.
80761
80762         Merge from coreutils.
80763         * lib/stdio--.h: New file.
80764         * lib/stdlib--.h: New file.
80765         * lib/mkstemp-safer.c: New file.
80766
80767         GNU tar needs these.
80768         * lib/pipe-safer.c: New file.
80769         * lib/creat-safer.c: New file.
80770         * lib/fcntl--.h (creat): Define to creat_safer.
80771         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80772         * lib/unistd--.h (pipe): Define to pipe_safer.
80773         * lib/unistd-safer.h: Declare pipe_safer.
80774
80775 2005-08-26  Simon Josefsson  <jas@extundo.com>
80776
80777         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80778         Haible <bruno@clisp.org>.
80779
80780 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * lib/regex_internal.h: Remove all references to
80783         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80784         or better.
80785         (bitset_not, bitset_merge, bitset_not_merge):
80786         (bitset_mask, re_string_allocate, re_string_construct):
80787         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80788         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80789         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80790         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80791         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80792         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80793         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80794         (re_acquire_state_context):
80795         Remove unnecessary forward decls.
80796         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80797         Put __attribute at function definition,
80798         now that the function decl has been removed.
80799         * lib/regex_internal.c (re_string_peek_byte_case):
80800         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80801         Likewise.
80802
80803 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80804
80805         * m4/regex.m4: Add AC_PREREQ(2.50).
80806         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80807
80808 2005-08-25  Simon Josefsson  <jas@extundo.com>
80809
80810         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80811         __fsetlocking.
80812
80813 2005-08-25  Simon Josefsson  <jas@extundo.com>
80814
80815         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80816         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80817         GLIBC specific code.
80818
80819 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         Make regex safe for g++.  This fixes one real bug (an "err"
80822         that should have been "*err").  g++ problem reported by
80823         Sam Steingold.
80824         * lib/regex_internal.h (re_calloc): New macro, consistent with
80825         re_malloc etc.  All callers of calloc changed to use re_calloc.
80826         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80827         not int.  All callers changed.
80828         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80829         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80830         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80831         (find_recover_state): Change "err" to "*err"; this fixes what
80832         appears to be a real bug.
80833         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80834         versus int.
80835
80836 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         * modules/regex (Depends-on): Add malloc, since the code
80839         assumes that !malloc(0) means failure.
80840
80841 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80844
80845         alloca modernization/simplification for regex.
80846         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80847         needs to be at the start of the file, and can be moved into
80848         regex_internal.h and simplified.
80849         * lib/regex_internal.h: Include <alloca.h>.
80850         (__libc_use_alloca) [!defined _LIBC]: New macro.
80851         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80852         now works outside glibc.
80853
80854 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80855
80856         * config/srclist.txt: Add glibc bugs 1241, 1245.
80857
80858 2005-08-25  Jim Meyering  <jim@meyering.net>
80859
80860         * lib/open-safer.c: Include <config.h>.
80861         Otherwise, we'd lose LARGEFILE support in any file using
80862         e.g. "fcntl--.h"
80863
80864 2005-08-25  Bruno Haible  <bruno@clisp.org>
80865
80866         * m4/minmax.m4: Require autoconf 2.52.
80867         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80868         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80869         alternatives of translit over the alphabet.
80870         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80871
80872 2005-08-24  Simon Josefsson  <jas@extundo.com>
80873
80874         * tests/test-getpass.c: New file.
80875
80876 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80879         for GNU regex features.
80880
80881 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80882
80883         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80884         * lib/regex.h (regerror): Likewise.
80885
80886         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80887         requires this.  (The code never needed it.)
80888
80889         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80890         All uses of recently-renamed identifiers changed to use the new,
80891         POSIX-compliant names.  The code will build and run just fine
80892         without these changes, but it's better to eat our own dog food
80893         and use the standard-conforming names.
80894
80895         * lib/regex.h: Fix a multitude of POSIX name space violations.
80896         These changes have an effect only for programs that define
80897         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80898         do not change anything for programs compiled in the normal way.
80899         Also, there is no effect on the ABI.
80900
80901         (_REGEX_SOURCE): New macro.
80902         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80903         defined and _GNU_SOURCE is not; this fixes a name space violation.
80904
80905         Rename the following macros to obey POSIX requirements.
80906         The old names are still visible as macros if _REGEX_SOURCE is defined.
80907         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80908         RE_BACKSLASH_ESCAPE_IN_LISTS.
80909         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80910         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80911         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80912         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80913         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80914         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80915         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80916         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80917         (REG_INTERVALS): renamed from RE_INTERVALS.
80918         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80919         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80920         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80921         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80922         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80923         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80924         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80925         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80926         RE_UNMATCHED_RIGHT_PAREN_ORD.
80927         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80928         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80929         (REG_DEBUG): renamed from RE_DEBUG.
80930         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80931         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80932         unusual, since we can't clash with the POSIX REG_ICASE.
80933         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80934         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80935         (REG_NO_SUB): renamed from RE_NO_SUB.
80936         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80937         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80938         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80939         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80940         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80941         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80942         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80943         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80944         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80945         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80946         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80947         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80948         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80949         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80950         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80951         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80952         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80953         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80954         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80955         (REG_FIXED): Renamed from REGS_FIXED.
80956         (REG_NREGS): Renamed from RE_NREGS.
80957
80958         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80959         of other REG_* macros, since POSIX says the user is allowed to
80960         #undef these macros selectively.
80961
80962         (reg_errcode_t): Update comment stating what other tables need
80963         to be consistent.
80964
80965         Rename the following enum values to obey POSIX requirements.
80966         The old names are still visible as macros.
80967         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80968         is not defined, since GNU is supposed to be a superset of POSIX as
80969         much as possible, and since we want reg_errcode_t to be a signed
80970         type for implementation consistency.
80971         (_REG_NOERROR): Renamed from REG_NOERROR.
80972         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80973         (_REG_BADPAT): Renamed from REG_BADPAT.
80974         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80975         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80976         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80977         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80978         (_REG_EBRACK): Renamed from REG_EBRACK.
80979         (_REG_EPAREN): Renamed from REG_EPAREN.
80980         (_REG_EBRACE): Renamed from REG_EBRACE.
80981         (_REG_BADBR): Renamed from REG_BADBR.
80982         (_REG_ERANGE): Renamed from REG_ERANGE.
80983         (_REG_ESPACE): Renamed from REG_ESPACE.
80984         (_REG_BADRPT): Renamed from REG_BADRPT.
80985         (_REG_EEND): Renamed from REG_EEND.
80986         (_REG_ESIZE): Renamed from REG_ESIZE.
80987         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80988         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80989         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80990         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80991         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80992
80993         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80994         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80995         changed.  But support the old name if the new one is not defined
80996         and if _REGEX_SOURCE.
80997
80998         Change the following member names in struct re_pattern_buffer.
80999         The old names are still supported if !_REGEX_SOURCE.
81000         The new names are always supported, regardless of _REGEX_SOURCE.
81001         (re_buffer): Renamed from buffer.
81002         (re_allocated): Renamed from allocated.
81003         (re_used): Renamed from used.
81004         (re_syntax): Renamed from syntax.
81005         (re_fastmap): Renamed from fastmap.
81006         (re_translate): Renamed from translate.
81007         (re_can_be_null): Renamed from can_be_null.
81008         (re_regs_allocated): Renamed from regs_allocated.
81009         (re_fastmap_accurate): Renamed from fastmap_accurate.
81010         (re_no_sub): Renamed from no_sub.
81011         (re_not_bol): Renamed from not_bol.
81012         (re_not_eol): Renamed from not_eol.
81013         (re_newline_anchor): Renamed from newline_anchor.
81014
81015         Change the following member names in struct re_registers.
81016         The old names are still supported if !_REGEX_SOURCE.
81017         The new names are always supported, regardless of _REGEX_SOURCE.
81018         (rm_num_regs): Renamed from num_regs.
81019         (rm_start): Renamed from start.
81020         (rm_end): Renamed from end.
81021
81022         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81023         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81024         Prepend __ to parameter names.
81025
81026         Undo yesterday's changes.
81027
81028 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81031         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81032         lib/regex.c.
81033
81034 2005-08-24  Jim Meyering  <jim@meyering.net>
81035
81036         Sync from coreutils.
81037         * m4/fcntl-safer.m4: New file.
81038
81039         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81040         and object files for this module.
81041
81042 2005-08-24  Jim Meyering  <jim@meyering.net>
81043
81044         Sync from coreutils.
81045         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81046
81047 2005-08-24  Jim Meyering  <jim@meyering.net>
81048
81049         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81050         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81051
81052 2005-08-24  Jim Meyering  <jim@meyering.net>
81053
81054         * modules/fcntl-safer: New module.
81055         * modules/fts (Depends-on): Add fcntl-safer.
81056         * MODULES.html.sh (File descriptor based Input/Output):
81057         Add fcntl-safer.
81058
81059 2005-08-24  Bruno Haible  <bruno@clisp.org>
81060
81061         Support for unit test modules.
81062         * modules/README: Mention tests modules.
81063         * modules/TEMPLATE-TESTS: New file.
81064         * gnulib-tool: New options --extract-tests-module, --with-tests and
81065         --tests-base (unused for the moment).
81066         (testsbase, inctests): New variables.
81067         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81068         (func_verify_module): Exclude TEMPLATE-TESTS.
81069         (func_verify_nontests_module, func_verify_tests_module): New functions.
81070         (func_get_dependencies): Add implicit dependency for tests modules.
81071         (func_get_tests_module): New function.
81072         (func_modules_transitive_closure): When --with-tests was specified,
81073         include the unit tests as well, unless explicitly avoided.
81074         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81075         (func_emit_tests_Makefile_am): New function.
81076         (func_create_testdir): When --with-tests was specified, emit a
81077         tests/ directory.
81078         * MODULES.html.sh (Future developments): Update.
81079
81080 2005-08-24  Bruno Haible  <bruno@clisp.org>
81081
81082         * modules/tls-tests: New file.
81083         * tests/test-tls.c: New file, from GNU gettext.
81084
81085 2005-08-24  Bruno Haible  <bruno@clisp.org>
81086
81087         * modules/lock-tests: New file.
81088         * tests/test-lock.c: New file, from GNU gettext.
81089
81090 2005-08-24  Bruno Haible  <bruno@clisp.org>
81091
81092         * lib/lock.h: Add multiple inclusion guard.
81093         * lib/tls.h: Add multiple inclusion guard.
81094
81095 2005-08-24  Bruno Haible  <bruno@clisp.org>
81096
81097         * gnulib-tool: Add support for the --aux-dir option to
81098         --create-testdir, --create-megatestdir, --test, --megatest.
81099         (func_create_testdir, func_create_megatestdir): Optionally emit a
81100         AC_CONFIG_AUX_DIR directive.
81101         (create-testdir, create-megatestdir, test, megatest): Provide a
81102         default value for $auxdir.
81103
81104 2005-08-24  Bruno Haible  <bruno@clisp.org>
81105
81106         * gnulib-tool (import): Use compound statement instead of subshell
81107         where possible.
81108
81109 2005-08-24  Bruno Haible  <bruno@clisp.org>
81110
81111         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81112
81113 2005-08-24  Bruno Haible  <bruno@clisp.org>
81114
81115         * gnulib-tool (func_version): Update.
81116
81117 2005-08-24  Bruno Haible  <bruno@clisp.org>
81118
81119         * gnulib-tool (func_import, func_create_testdir,
81120         func_create_megatestdir): Quote all autoconf macro arguments.
81121
81122 2005-08-24  Bruno Haible  <bruno@clisp.org>
81123
81124         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81125         option --force, because --force causes the aclocal.m4 of each
81126         subdirectory to be newer than the corresponding config.h.in.
81127
81128 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81131         All contents moved to gl_REGEX.
81132         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81133         assume that it does.
81134
81135 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * lib/regex.h (REG_NOSYS)
81138         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81139         Define, since POSIX requires it as of 2001.
81140         (_REG_ENOSYS)
81141         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81142         New private symbol, used to keep the enum signed in all cases.
81143         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81144         Youngman in
81145         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81146
81147         * lib/regex_internal.c (re_string_skip_chars, register_state):
81148         (calc_state_hash):
81149         Remove forward decls; no longer needed now that we use prototypes.
81150         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81151         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81152         (clean_state_log_if_needed): Likewise.
81153
81154 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81155
81156         * config/srclist.txt: Add glibc bugs 1231-1233.
81157
81158 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         Fix problems reported by Sam Steingold in
81161         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81162         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81163         assumed that reg_errcode_t is a signed type, which is not
81164         necessarily true if _XOPEN_SOURCE is not defined.
81165         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81166         since some compilers warn about it otherwise.
81167
81168 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81171         (init_word_char, create_initial_state, duplicate_node_closure):
81172         (fetch_token, peek_token_bracket, build_range_exp):
81173         (build_collating_symbol): Remove forward decls; no longer needed
81174         now that we use prototypes.
81175
81176         * lib/regcomp.c:
81177         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81178         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81179         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81180         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81181         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81182         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81183         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81184         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81185         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81186         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81187         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81188         (build_charclass, build_charclass_op, fetch_number, create_tree):
81189         (create_token_tree, mark_opt_subexp, duplicate_tree):
81190         Use prototypes rather than old-style definitions.
81191
81192         * lib/regex_internal.c:
81193         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81194         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81195         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81196         (re_string_reconstruct, re_string_peek_byte_case):
81197         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81198         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81199         (re_node_set_init_copy, re_node_set_add_intersect):
81200         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81201         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81202         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81203         (re_acquire_state, re_acquire_state_context, register_state):
81204         (create_ci_newstate, create_cd_newstate, free_state):
81205         Likewise.
81206         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81207         re_search_2):
81208         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81209         (re_search_internal, prune_impossible_nodes):
81210         (acquire_init_state_context, check_matching, static):
81211         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81212         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81213         (update_regs, sift_states_backward, build_sifted_states):
81214         (clean_state_log_if_needed, merge_state_array):
81215         (update_cur_sifted_state, add_epsilon_src_nodes):
81216         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81217         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81218         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81219         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81220         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81221         (check_arrival, check_arrival_add_next_nodes):
81222         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81223         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81224         (check_node_accept_bytes, check_node_accept, extend_buffers):
81225         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81226         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81227         (sift_ctx_init):
81228         Likewise.
81229
81230         * lib/regex_internal.h:
81231         (re_string_allocate, re_string_construct, re_string_reconstruct):
81232         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81233         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81234         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81235         (re_string_context_at, re_string_peek_byte_case):
81236         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81237         is defined, since we now use prototypes always.
81238
81239         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81240         C89 or better.  All uses removed.
81241
81242 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * config/srclist.txt: Add glibc bugs 1220-1227.
81245
81246 2005-08-20  Jim Meyering  <jim@meyering.net>
81247
81248         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81249         of unused local, dfa.
81250
81251 2005-08-20  Bruno Haible  <bruno@clisp.org>
81252
81253         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81254
81255 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81258         (re_node_set_insert_last, re_dfa_add_node):
81259         Rename local variables to avoid GCC shadowing warnings.
81260
81261 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81264         [defined lint]: Suppress bogus uninitialized-variable warnings.
81265
81266         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81267         and let the caller return REG_ESPACE if out of space.  This
81268         removes an uninitialied-variable warning with GCC 4.0.1, and also
81269         avoids taking the address of a local variable.  All callers
81270         changed.
81271
81272 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81275         $LIBCSRC/posix/regexec.c.
81276         Add glibc bug 1217 for regcomp.c.
81277
81278 2005-08-19  Jim Meyering  <jim@meyering.net>
81279
81280         * lib/regexec.c (proceed_next_node): Redo local variables to
81281         avoid GCC shadowing warnings.
81282
81283 2005-08-18  Bruno Haible  <bruno@clisp.org>
81284
81285         * lib/strstr.c (strstr): Fix return value in multibyte case.
81286         * lib/strcasestr.c (strcasestr): Likewise.
81287
81288 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81291
81292 2005-08-17  Jim Meyering  <jim@meyering.net>
81293
81294         Make the %s format (seconds since the epoch) work for a negative
81295         number and when used with a zero-padded field width, e.g. %015s.
81296
81297         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81298         label so that it precedes the code to set `digits'.  Otherwise,
81299         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81300         print `00-22'.  Now, it prints `-0022', as it should.
81301
81302 2005-08-17  Bruno Haible  <bruno@clisp.org>
81303
81304         * modules/strstr (Files): Add m4/mbrtowc.m4.
81305         (Depends-on): Add mbuiter.
81306
81307 2005-08-17  Bruno Haible  <bruno@clisp.org>
81308
81309         * modules/strcasestr: New file.
81310         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81311         strcasestr.
81312
81313 2005-08-17  Bruno Haible  <bruno@clisp.org>
81314
81315         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81316
81317 2005-08-17  Bruno Haible  <bruno@clisp.org>
81318
81319         * modules/mbuiter: New file.
81320         * MODULES.html.sh (Extended multibyte and wide character utilities):
81321         Add mbuiter.
81322
81323 2005-08-17  Bruno Haible  <bruno@clisp.org>
81324
81325         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81326         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81327
81328 2005-08-17  Bruno Haible  <bruno@clisp.org>
81329
81330         * m4/strcasestr.m4: New file.
81331
81332 2005-08-17  Bruno Haible  <bruno@clisp.org>
81333
81334         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81335         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81336
81337 2005-08-17  Bruno Haible  <bruno@clisp.org>
81338
81339         * lib/strcasestr.h: New file.
81340         * lib/strcasestr.c: New file.
81341
81342 2005-08-17  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/strcasecmp.c: Use mbuiter.h.
81345
81346 2005-08-17  Bruno Haible  <bruno@clisp.org>
81347
81348         * lib/mbuiter.h: New file.
81349
81350 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81351
81352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81353         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81354         and gl_GETOPT are both invoked via different paths (as happens
81355         with GNU tar CVS because it uses both argp and getopt), the former
81356         wins.
81357
81358 2005-08-16  Bruno Haible  <bruno@clisp.org>
81359
81360         * modules/tls: New file.
81361         * MODULES.html.sh (Multithreading): Add tls.
81362
81363 2005-08-16  Bruno Haible  <bruno@clisp.org>
81364
81365         * modules/strnlen1: New file.
81366         * MODULES.html.sh (String handling): Add strnlen1.
81367
81368 2005-08-16  Bruno Haible  <bruno@clisp.org>
81369
81370         * modules/strcase (Files): Add m4/mbrtowc.m4.
81371         (Depends-on): Add strnlen1, mbchar.
81372
81373 2005-08-16  Bruno Haible  <bruno@clisp.org>
81374
81375         * modules/mbiter: New file.
81376         * MODULES.html.sh (Extended multibyte and wide character utilities):
81377         Add mbiter.
81378
81379 2005-08-16  Bruno Haible  <bruno@clisp.org>
81380
81381         * modules/mbfile: New file.
81382         * MODULES.html.sh (Extended multibyte and wide character utilities):
81383         Add mbfile.
81384
81385 2005-08-16  Bruno Haible  <bruno@clisp.org>
81386
81387         * modules/mbchar: New file.
81388         * MODULES.html.sh (Extended multibyte and wide character utilities):
81389         New section.
81390
81391 2005-08-16  Bruno Haible  <bruno@clisp.org>
81392
81393         * m4/tls.m4: New file, from GNU gettext.
81394
81395 2005-08-16  Bruno Haible  <bruno@clisp.org>
81396
81397         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81398         always.
81399         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81400
81401 2005-08-16  Bruno Haible  <bruno@clisp.org>
81402
81403         * m4/mbiter.m4: New file.
81404
81405 2005-08-16  Bruno Haible  <bruno@clisp.org>
81406
81407         * m4/mbfile.m4: New file.
81408
81409 2005-08-16  Bruno Haible  <bruno@clisp.org>
81410
81411         * m4/mbchar.m4: New file.
81412
81413 2005-08-16  Bruno Haible  <bruno@clisp.org>
81414
81415         * lib/tls.h: New file, from GNU gettext.
81416         * lib/tls.c: New file, from GNU gettext.
81417
81418 2005-08-16  Bruno Haible  <bruno@clisp.org>
81419
81420         * lib/strnlen1.h: New file.
81421         * lib/strnlen1.c: New file.
81422
81423 2005-08-16  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81426         (mbi_init): Update.
81427         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81428         NUL byte, not after it.
81429
81430 2005-08-16  Bruno Haible  <bruno@clisp.org>
81431
81432         * lib/strcase.h (strcasecmp): Add note in comments.
81433         * lib/strncasecmp.c: Use code from strcasecmp.c.
81434         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81435         (strcasecmp): Work correctly in multibyte locales.
81436
81437 2005-08-16  Bruno Haible  <bruno@clisp.org>
81438
81439         * lib/mbiter.h: New file.
81440
81441 2005-08-16  Bruno Haible  <bruno@clisp.org>
81442
81443         * lib/mbfile.h: New file.
81444
81445 2005-08-16  Bruno Haible  <bruno@clisp.org>
81446
81447         * lib/mbchar.h: New file.
81448         * lib/mbchar.c: New file.
81449
81450 2005-08-16  Bruno Haible  <bruno@clisp.org>
81451
81452         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81453         the valid ones. Makes the comparison operations transitive:
81454         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81455         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81456
81457 2005-08-15  Simon Josefsson  <jas@extundo.com>
81458
81459         * modules/ssize_t (License): Change to 'unlimited'.
81460
81461         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81462
81463 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81464
81465         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81466         Add comments for each pending glibc patch.
81467
81468 2005-08-15  Bruno Haible  <bruno@clisp.org>
81469
81470         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81471         __cplusplus is defined.
81472
81473 2005-08-14  Jim Meyering  <jim@meyering.net>
81474
81475         Sync from coreutils.
81476
81477         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81478         Use the hash-table-based cycle-detection code not just when
81479         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81480         Reported by James Youngman in
81481         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81482         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81483         FTS_TIGHT_CYCLE_CHECK.
81484         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81485         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81486         once again.
81487         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81488         * lib/fts.c (fd_safer): Remove decl.
81489         Include fcntl--.h rather than unistd-safer.h
81490         (fts_safe_changedir): Don't call fd_safer; no longer needed
81491         now that we include fcntl--.h.
81492
81493 2005-08-12  Simon Josefsson  <jas@extundo.com>
81494
81495         * modules/getndelim2: Use ssize_t module.
81496         * modules/getnline: Likewise.
81497         * modules/safe-read: Likewise.
81498         * modules/xreadlink: Likewise.
81499
81500         * modules/ssize_t: New file.
81501
81502 2005-08-12  Simon Josefsson  <jas@extundo.com>
81503
81504         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81505
81506 2005-08-12  Simon Josefsson  <jas@extundo.com>
81507
81508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81509         ssize_t.
81510
81511 2005-08-12  Simon Josefsson  <jas@extundo.com>
81512
81513         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81514         readline, getdelim and check_version.
81515         (Support for systems lacking ISO C 99: Sizes of integer types):
81516         Add size_max.
81517
81518 2005-08-12  Bruno Haible  <bruno@clisp.org>
81519
81520         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81521
81522 2005-08-11  Simon Josefsson  <jas@extundo.com>
81523
81524         * modules/readline: New file.
81525
81526         * modules/strnlen (Files): Add strnlen.h.
81527
81528 2005-08-11  Simon Josefsson  <jas@extundo.com>
81529
81530         * m4/readline.m4: New file.
81531
81532 2005-08-11  Simon Josefsson  <jas@extundo.com>
81533
81534         * lib/readline.h, readline.c: New file.
81535
81536 2005-08-11  Simon Josefsson  <jas@extundo.com>
81537
81538         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81539         gl_AVOID.
81540
81541 2005-08-11  Bruno Haible  <bruno@clisp.org>
81542
81543         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81544
81545 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81546
81547         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81548
81549 2005-08-10  Simon Josefsson  <jas@extundo.com>
81550
81551         * tests/test-iconvme.c: New file.
81552
81553 2005-08-10  Simon Josefsson  <jas@extundo.com>
81554
81555         * m4/strnlen.m4: New file.
81556
81557         * m4/strndup.m4: Don't check for strnlen declaration, done in
81558         strnlen.m4.
81559
81560 2005-08-10  Simon Josefsson  <jas@extundo.com>
81561
81562         * lib/strndup.c: Use strnlen.h.
81563
81564         * lib/strnlen.h: New file.
81565
81566 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81567
81568         * README: Typos.
81569
81570 2005-08-02  Simon Josefsson  <jas@extundo.com>
81571
81572         * modules/readline: New file.
81573
81574 2005-08-02  Simon Josefsson  <jas@extundo.com>
81575
81576         * modules/getdelim: New file.
81577
81578         * modules/getline: Rewrite, don't use getndelim2.
81579
81580 2005-08-02  Simon Josefsson  <jas@extundo.com>
81581
81582         * m4/getline.m4: Separate out getdelim stuff into separate module.
81583
81584         * m4/getdelim.m4: New file.
81585
81586 2005-08-02  Simon Josefsson  <jas@extundo.com>
81587
81588         * lib/getline.h, getline.c: Rewrite.
81589
81590         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81591
81592 2005-07-31  Bruno Haible  <bruno@clisp.org>
81593
81594         * lib/lock.h (gl_lock_initializer): New macro.
81595         (gl_lock_define_initialized): Use it.
81596         (gl_rwlock_initializer): New macro.
81597         (gl_rwlock_define_initialized): Use it.
81598         (gl_recursive_lock_initializer): New macro.
81599         (gl_recursive_lock_define_initialized): Use it.
81600
81601 2005-07-30  Karl Berry  <karl@gnu.org>
81602
81603         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81604         Report from Ben Pfaff, regarding getopt.
81605
81606 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81609         normal way.
81610         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81611         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81612         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81613         (gl_GETOPT): Use the new macros.  Most of the implementation
81614         is moved to the new macros.  This is for programs like Emacs
81615         that don't want all the functionality of gl_GETOPT.
81616
81617 2005-07-26  Bruno Haible  <bruno@clisp.org>
81618
81619         * m4/lock.m4: Update from GNU gettext.
81620
81621 2005-07-26  Bruno Haible  <bruno@clisp.org>
81622
81623         * lib/lock.h: Update from GNU gettext.
81624         * lib/lock.c: Update from GNU gettext.
81625
81626 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81629         obsolescent AC_TRY_RUN.  Include the default includes files, for
81630         'exit'.
81631
81632 2005-07-24  Bruno Haible  <bruno@clisp.org>
81633
81634         * modules/visibility: New file.
81635         * MODULES.html.sh (Misc): Add visibility.
81636
81637 2005-07-24  Bruno Haible  <bruno@clisp.org>
81638
81639         * m4/visibility.m4: New file.
81640
81641 2005-07-24  Bruno Haible  <bruno@clisp.org>
81642
81643         * doc/visibility.texi: New file.
81644
81645 2005-07-22  Bruno Haible  <bruno@clisp.org>
81646
81647         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81648         $(ALLOCA_H), redundant through BUILT_SOURCES.
81649         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81650         redundant through BUILT_SOURCES.
81651         * modules/byteswap (Makefile.am): Remove explicit dependency on
81652         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81653         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81654         $(FNMATCH_H), redundant through BUILT_SOURCES.
81655         * modules/getopt (Makefile.am): Remove explicit dependency on
81656         $(GETOPT_H), redundant through BUILT_SOURCES.
81657         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81658         redundant through BUILT_SOURCES.
81659         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81660         redundant through BUILT_SOURCES.
81661         * modules/stdbool (Makefile.am): Remove explicit dependency on
81662         $(STDBOOL_H), redundant through BUILT_SOURCES.
81663         * modules/stdint (Makefile.am): Remove explicit dependency on
81664         $(STDINT_H), redundant through BUILT_SOURCES.
81665         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81666         Remove explicit dependency on $(SYSEXITS_H).
81667         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81668
81669 2005-07-18  Simon Josefsson  <jas@extundo.com>
81670
81671         * lib/check-version.c (check_version): Accept identical versions too.
81672
81673 2005-07-18  Bruno Haible  <bruno@clisp.org>
81674
81675         * modules/lock: New file.
81676         * MODULES.html.sh (Multithreading): New section.
81677
81678 2005-07-18  Bruno Haible  <bruno@clisp.org>
81679
81680         * m4/lock.m4: New file, from GNU gettext.
81681
81682 2005-07-18  Bruno Haible  <bruno@clisp.org>
81683
81684         * lib/lock.h: New file, from GNU gettext.
81685         * lib/lock.c: New file, from GNU gettext.
81686
81687 2005-07-18  Bruno Haible  <bruno@clisp.org>
81688
81689         * lib/lock.h (gl_once_t): New type.
81690         (gl_once_define, gl_once): New macros.
81691         * lib/lock.c (fresh_once): New variable.
81692         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81693         functions.
81694
81695 2005-07-16  Simon Josefsson  <jas@extundo.com>
81696
81697         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81698         workaround, suggested by Bruno.
81699
81700 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81701
81702         * modules/xalloc (Depends-on): Add xalloc-die.
81703         * modules/xvasprintf (Depends-on): Add xalloc-die.
81704
81705 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81708         with a minor change.
81709
81710 2005-07-15  Bruno Haible  <bruno@clisp.org>
81711
81712         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81713         When using lib/poll.c, define poll as rpl_poll.
81714
81715 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81716
81717         * modules/argp (Depends-on): Remove unlocked-io.
81718
81719 2005-07-14  Derek Price  <derek@ximbiot.com>
81720
81721         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81722         for glob symlink bug.
81723
81724 2005-07-14  Bruno Haible  <bruno@clisp.org>
81725
81726         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81727         Instead, test for *_unlocked function declarations directly.
81728
81729 2005-07-11  Simon Josefsson  <jas@extundo.com>
81730
81731         * modules/size_max: New file.
81732
81733         * modules/xsize: Depend on size_max module for size_max.m4.
81734
81735 2005-07-11  Simon Josefsson  <jas@extundo.com>
81736
81737         * lib/size_max.h: New file.
81738
81739 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81740
81741         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81742         copyright symbol and the year.
81743         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81744         (version_etc_va): Use parameterized copyright notice.
81745         Reword to conform to the current GNU coding standards.
81746
81747 2005-07-11  Karl Berry  <karl@gnu.org>
81748
81749         * doc/gnulib.texi (Quoting): new node.
81750         (Initial import): more info, from Patrice.
81751
81752 2005-07-11  Bruno Haible  <bruno@clisp.org>
81753
81754         * gnulib-tool (func_usage): Document option --avoid.
81755         (Command line options): Handle --avoid.
81756         (func_acceptable): New function.
81757         (func_modules_transitive_closure): Use it.
81758
81759 2005-07-11  Bruno Haible  <bruno@clisp.org>
81760
81761         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81762         Reported by Jim Meyering.
81763
81764 2005-07-10  Bruno Haible  <bruno@clisp.org>
81765
81766         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81767         Needed when size_t is smaller than 'unsigned int'.
81768         Reported by Paul Eggert.
81769
81770 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81771
81772         * modules/argp (Depends-on): Add unlocked-io
81773
81774 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81775
81776         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81777         block of defines.
81778
81779 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81780
81781         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81782         fix now.
81783
81784 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81785         and Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81788         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81789
81790 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         * modules/regex (Files): Add lib/regex_internal.c,
81793         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81794         (Depends-on): Add extensions.
81795         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81796
81797 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81798
81799         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81800         pathconf.
81801         * m4/same.m4 (gl_SAME): Likewise.
81802         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81803
81804         * m4/regex.m4: Adjust to new libc regex implementation.
81805         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81806         all the .c and .h parts of (the new) regex.
81807         Quote the m4 stuff better.
81808         Check for RE_ICASE bug of old gnulib.
81809         Check for REG_STARTEND of recent libc.
81810         Rename local variables from jm_* to gl_*.
81811         Quote operand of "test -f".
81812         Say "recent enough" version of libc, not "version 2".
81813         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81814         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81815         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81816         Remove check for btowc, isascii.
81817         Require AM_LANGINFO_CODESET.
81818
81819 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81820
81821         * lib/regex.c, regex.h: Sync from libc.
81822         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81823         * lib/regexec.c:
81824         New files, synced from libc, except that regex_internal.h
81825         currently has a small porting fix.
81826
81827 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81830         regex_internal.c, regexec.c.
81831         Add regex_internal.h too, but as a comment, since the libc version
81832         is currently broken in gnulib mode.
81833
81834 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         Support programs like Emacs that use gnulib but not gettext.
81837         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81838         * modules/gettext-h: New file.
81839         * modules/gettext (Files): Remove lib/gettext.h.
81840         (Depends-on): Add gettext-h.
81841         (Makefile.am): Remove lib_SOURCES.
81842         * modules/argmatch, modules/c-stack, modules/closeout:
81843         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81844         * modules/execute, modules/file-type, modules/getaddrinfo:
81845         * modules/getopt, modules/human, modules/javacomp:
81846         * modules/javaexec, modules/mkdir-p, modules/obstack:
81847         * modules/openat, modules/pagealign_alloc, modules/pipe:
81848         * modules/quotearg, modules/regex, modules/rpmatch:
81849         * modules/unicodeio, modules/userspec, modules/version-etc:
81850         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81851         * modules/xsetenv:
81852         Depend on gettext-h, not gettext.
81853
81854 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * gnulib-tool (func_import): Add support for 'public domain' license.
81857         * modules/alloca, modules/atexit, modules/memmove:
81858         Now public domain, not GPL.
81859         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81860         * modules/realloc, modules/strerror, modules/strtod:
81861         Now LGPL, not GPL.
81862
81863 2005-07-05  Bruno Haible  <bruno@clisp.org>
81864
81865         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81866         autoconf CVS. Needed for mingw.
81867
81868 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81869
81870         Remove the dependency of the strftime module on the tzset module.
81871         * modules/strftime (Depends-on): Remove dependency on tzset.
81872
81873 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81874
81875         Remove the dependency of the strftime module on the tzset module.
81876         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81877         gl_FUNC_TZSET_CLOBBER.
81878
81879 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81880
81881         Remove the dependency of the strftime module on the tzset module.
81882         * lib/strftime.c (my_strftime)
81883         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81884         Copy the input structure, to work around some of the bug with
81885         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81886         Solaris releases, you should also use the tzset module, but we won't
81887         require it as a dependency any more since we don't want LGPLed code
81888         to depend on GPLed code.
81889
81890 2005-07-02  Jim Meyering  <jim@meyering.net>
81891
81892         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81893         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81894         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81895         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81896
81897 2005-07-02  Jim Meyering  <jim@meyering.net>
81898
81899         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81900
81901 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81904         declares only 'struct timespec;' (!).
81905
81906 2005-07-01  Jim Meyering  <jim@meyering.net>
81907
81908         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81909         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81910         * lib/save-cwd.c, tempname.c:
81911         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81912         and don't include <sys/file.h>).
81913
81914 2005-06-29  Jim Meyering  <jim@meyering.net>
81915
81916         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81917         type name.  Use the variable name instead.
81918         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81919         Likewise.
81920
81921 2005-06-28  Simon Josefsson  <jas@extundo.com>
81922
81923         * modules/check-version (Files): Add check-version.m4.
81924
81925 2005-06-28  Simon Josefsson  <jas@extundo.com>
81926
81927         * m4/check-version.m4: New file, suggested by Jim Meyering
81928         <jim@meyering.net>.
81929
81930 2005-06-28  Simon Josefsson  <jas@extundo.com>
81931
81932         * lib/check-version.h, lib/check-version.c: New files.
81933
81934 2005-06-28  Simon Josefsson  <jas@extundo.com>
81935
81936         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81937         collision with global variable.  Better indentation.  Don't
81938         increment buffer pointer beyond buffer end.  Based on comments
81939         from Paul Eggert <eggert@cs.ucla.edu>.
81940
81941         * lib/base64.h: Indent.
81942
81943 2005-06-28  Simon Josefsson  <jas@extundo.com>
81944
81945         * doc/gnulib.texi (Library version handling): New section.
81946
81947 2005-06-28  Jim Meyering  <jim@meyering.net>
81948
81949         * check-module (find_included_lib_files): Hard-code another
81950         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81951         but modules/fts-lgpl (correctly) does not list those files.
81952
81953         * modules/canonicalize (Files): Add lib/pathmax.h.
81954
81955 2005-06-25  Simon Josefsson  <jas@extundo.com>
81956
81957         * modules/check-version: New file.
81958
81959 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81962         initializer of struct addrinfo, as an indication that we don't
81963         care how many members the structure has.
81964
81965 2005-06-24  Derek Price  <derek@ximbiot.com>
81966         and Bruno Haible  <bruno@clisp.org>
81967
81968         Remove stat module & update lstat.
81969         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81970         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81971         * m4/stat.m4: Remove this file.
81972
81973 2005-06-24  Derek Price  <derek@ximbiot.com>
81974         and Bruno Haible  <bruno@clisp.org>
81975
81976         Remove stat module & update lstat.
81977         * lib/stat.c: Remove this file...
81978         (slash_aware_lstat): ...moving this content and its support...
81979         * lib/lstat.c (rpl_lstat): ...into here.
81980         * lib/lstat.h: New file.
81981
81982 2005-06-24  Derek Price  <derek@ximbiot.com>
81983         and Bruno Haible  <bruno@clisp.org>
81984
81985         Remove stat module & update lstat.
81986         * config/srclist.txt (libc sources): Remove stat.
81987
81988 2005-06-24  Derek Price  <derek@ximbiot.com>
81989         and Bruno Haible  <bruno@clisp.org>
81990
81991         Remove stat module & update lstat.
81992         * MODULES.html.sh (stat): Remove.
81993         * MODULES.html: Regenerated.
81994         * modules/lstat (Description): Correct function name.
81995         (Files): Add "lstat.h".
81996         (Depends-on): Remove stat, add xalloc, stat-macros.
81997         * modules/stat: Remove this file.
81998         (Include): Add "lstat.h", remove <sys/stat.h>.
81999
82000 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82001
82002         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82003         (ranged_convert): Don't save conversion in a temporary struct.
82004         This causes a warning with GCC 4.0.0, and anyway in the typical
82005         case it's not worth the extra 100 bytes or so of code.
82006         (ranged_convert, __mktime_internal): When calling a function via a
82007         pointer P, use P () rather than (*P) (), as we now assume C89 or
82008         better.
82009
82010 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82013         "who -r" failed to give output.  Problem reported by Tim Waugh.
82014
82015         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82016         (xcalloc): Use it to avoid needless tests.
82017         Problem reported by Jim Meyering.
82018
82019 2005-06-20  Derek Price  <derek@ximbiot.com>
82020
82021         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82022         unnecessary for Autoconfs > 2.59c.
82023
82024 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82025
82026         * lib/argp.h (__option_is_short): Check upper limit of
82027         __key. Isprint() requires its argument to have the value
82028         of an unsigned char or EOF.
82029
82030 2005-06-16  Jim Meyering  <jim@meyering.net>
82031
82032         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82033         when either N or S is zero.
82034
82035 2005-06-16  Derek Price  <derek@ximbiot.com>
82036
82037         * m4/bison.m4: Declare YACC & YFLAGS precious.
82038
82039 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82040
82041         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82042         multibyte string or pattern, fall back on unibyte matching.
82043         Problem reported by James Youngman.
82044
82045 2005-06-08  Bruno Haible  <bruno@clisp.org>
82046
82047         * modules/csharpcomp: New file.
82048         * MODULES.html.sh (C#): Add csharpcomp.
82049
82050 2005-06-08  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/csharpcomp.m4: New file, from GNU gettext.
82053
82054 2005-06-08  Bruno Haible  <bruno@clisp.org>
82055
82056         * lib/csharpcomp.h: New file, from GNU gettext.
82057         * lib/csharpcomp.c: New file, from GNU gettext.
82058         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82059
82060 2005-06-08  Bruno Haible  <bruno@clisp.org>
82061
82062         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82063         warning on mingw.
82064
82065 2005-06-07  Derek Price  <derek@ximbiot.com>
82066
82067         Sync from CVS.
82068         * lib/glob_.h: Indent nested #ifdef.
82069
82070 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82071
82072         Sync from coreutils.
82073         Use "file name" when talking about file names, instead of "filename"
82074         or "path", as per the GNU coding standards.
82075         * lib/mkdir-p.c: Renamed from makepath.c.
82076         (make_dir_parents): Renamed from make_path.  All callers changed.
82077         * lib/mkdir-p.h: Likewise.  All includers changed.
82078         * lib/filenamecat.c: Renamed from path-concat.c.
82079         (file_name_concat): Renamed from path_concat.  All callers changed.
82080         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82081         * lib/filenamecat.h: Likewise.  All includers changed.
82082         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82083         in comments or local variable names.
82084         * lib/basename.c: Likewise.
82085         * lib/canonicalize.c, canonicalize.h: Likewise.
82086         * lib/dirname.c, dirname.h: Likewise.
82087         * lib/euidaccess.c: Likewise.
82088         * lib/exclude.c: Likewise
82089         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82090         * lib/fsusage.c, fsuage.h: Likewise.
82091         * lib/fts.c, fts_.h: Likewise.
82092         * lib/getcwd.c: Likewise.
82093         * lib/getloadavg.c: Likewise.
82094         * lib/mkstemp.c: Likewise.
82095         * lib/mountlist.c, mountlist.h: Likewise.
82096         * lib/openat.c, openat.h: Likewise.
82097         * lib/readlink-stub.c: Likewise.
82098         * lib/readutmp.c, readutmp.h: Likewise.
82099         * lib/rename.c: Likewise.
82100         * lib/rmdir.c: Likewise.
82101         * lib/same.c: Likewise.
82102         * lib/savedir.c: Likewise.
82103         * lib/stripslash.c: Likewise.
82104         * lib/tempname.c: Likewise.
82105         * lib/xreadlink.c: Likewise.
82106         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82107         All uses changed.
82108         * lib/exclude.h: Likewise.
82109
82110         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82111         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82112         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82113         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82114         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82115         files have been getting away with it for years (MORE/BSD 4.3
82116         is extinct now).
82117         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82118         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82119
82120         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82121         Define to 256, not 255, as per modern POSIX.
82122
82123 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         Sync from coreutils.
82126         Use "file name" when talking about file names, instead of "filename"
82127         or "path", as per the GNU coding standards.
82128         * MODULES.html.sh: mkdir-p renamed from makepath.
82129         filenamecat renamed from path-concat.
82130         * modules/filenamecat: Renamed from modules/path-concat.
82131         (Files): filenamecat.h and filenamecat.c renamed from
82132         path-concat.h and path-concat.c.
82133         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82134         (Include): filenamecat.h, not path-concat.h.
82135         * modules/mkdir-p: Renamed from modules/makepath.
82136         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82137         makepath.c.
82138         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82139         (Include): mkdir-p.h, not makepath.h.
82140
82141 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         Sync from coreutils.
82144         * m4/mkdir-p.m4: Renamed from makepath.m4.
82145         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82146         Rename files from makepath.c to mkdir-p.c, and from
82147         makepath.h to mkdir-p.h.
82148         * m4/filenamecat.m4: Renamed from path-concat.m4.
82149         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82150         Rename files from path-concat.c to filenamecat.c,
82151         and from path-concat.h to filenamecat.h.
82152         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82153         "file name" in local variables or comments.
82154         * m4/rename.m4: Likewise.
82155
82156 2005-06-01  Bruno Haible  <bruno@clisp.org>
82157
82158         * modules/csharpexec: New file.
82159         * MODULES.html.sh (C#): New section.
82160
82161 2005-06-01  Bruno Haible  <bruno@clisp.org>
82162
82163         * m4/csharp.m4: New file, from GNU gettext.
82164         * m4/csharpexec.m4: New file, from GNU gettext.
82165
82166 2005-06-01  Bruno Haible  <bruno@clisp.org>
82167
82168         * lib/csharpexec.h: New file, from GNU gettext.
82169         * lib/csharpexec.c: New file, from GNU gettext.
82170         * lib/csharpexec.sh.in: New file, from GNU gettext.
82171
82172 2005-05-31  Derek Price  <derek@ximbiot.com>
82173             Paul Eggert  <eggert@cs.ucla.edu>
82174
82175         Sync from cvs.
82176         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82177
82178 2005-05-31  Derek Price  <derek@ximbiot.com>
82179             Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         Sync from cvs.
82182         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82183
82184 2005-05-29  Derek Price  <derek@ximbiot.com>
82185
82186         * config/srclist.txt (glob_.h, glob.c): Add these files.
82187
82188 2005-05-29  Derek Price  <derek@ximbiot.com>
82189
82190         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82191         * modules/glob: New file.
82192         * modules/getlogin_r: Add link to POSIX spec in description.
82193
82194 2005-05-29  Derek Price  <derek@ximbiot.com>
82195             Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         * m4/glob.m4: New file.
82198
82199 2005-05-29  Derek Price  <derek@ximbiot.com>
82200             Paul Eggert  <eggert@cs.ucla.edu>
82201
82202         * lib/glob_.h, lib/glob.c: New files.
82203
82204 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82205
82206         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82207         * modules/fts-lgpl (Depends-on): Remove gettext.
82208
82209 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82210
82211         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82212         and don't require gt_INTTYPES_PRI.
82213
82214 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82217
82218         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82219         the configuration hassle isn't worth it.
82220         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82221         (LONGEST_MODIFIER, PRIuMAX): Remove.
82222
82223 2005-05-27  Bruno Haible  <bruno@clisp.org>
82224
82225         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82226
82227 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82230         _POSIX_PTHREAD_SEMANTICS for Solaris.
82231
82232 2005-05-25  Derek Price  <derek@ximbiot.com>
82233
82234         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82235
82236 2005-05-25  Derek Price  <derek@ximbiot.com>
82237             Paul Eggert  <eggert@cs.ucla.edu>
82238
82239         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82240         * lib/getlogin_r.c, getlogin_r.h: New files.
82241
82242 2005-05-25  Bruno Haible  <bruno@clisp.org>
82243             Derek Price  <derek@ximbiot.com>
82244
82245         * lib/getlogin_r.h: Simplify API documentation.
82246
82247 2005-05-23  Derek Price  <derek@ximbiot.com>
82248
82249         * modules/minmax (Files): Add m4/minmax.m4.
82250         (configure.ac): Add gl_MINMAX.
82251
82252 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82253
82254         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82255         so that unistd-safer.h (GPL'ed code) need not be included.
82256
82257 2005-05-22  Bruno Haible  <bruno@clisp.org>
82258
82259         * m4/minmax.m4: New file.
82260         Based on a patch by Derek Price <derek@ximbiot.com>.
82261
82262 2005-05-22  Bruno Haible  <bruno@clisp.org>
82263
82264         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82265         (INT64_MIN): Fix definition.
82266         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82267
82268         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82269         NEED_SIGNED_INT_TYPES.
82270
82271         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82272         HAVE_SYSTEM_INTTYPES.
82273
82274 2005-05-22  Bruno Haible  <bruno@clisp.org>
82275
82276         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82277         Also include <sys/param.h> if it defines MIN, MAX.
82278         Based on a patch by Derek Price <derek@ximbiot.com>.
82279
82280 2005-05-21  Jim Meyering  <jim@meyering.net>
82281
82282         * modules/fts (Files): Add m4/inttypes-pri.m4.
82283         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82284
82285 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         New fts module.
82288         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82289         (setup_dir, free_dir): New functions.
82290         (enter_dir, leave_dir): Define trivial
82291         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82292         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82293         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82294         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82295         Move to fts-cycle.c.
82296         (fts_open): Use setup_dir.
82297         (fts_close): Use free_dir.
82298         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82299         This adds a label and some gotos, but the alternatives were messier.
82300         Check for memory allocation failure when entering a dir.
82301         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82302         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82303         (FTS): New member fts_cycle, that is a union that contains the
82304         old active_dir_ht and cycle_state.  All uses changed to mention
82305         fts_cycle.ht and fts_cycle.state.
82306         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82307         fts.c, with the following changes:
82308         (setup_dir, free_dir): New functions.
82309         (enter_dir): Now returns bool.  Return true if successful, false
82310         if memory exhausted.  All callers changed.
82311         Do not bother partly cleaning up on
82312         memory allocation failure; that is free_dir's job.
82313         However, free ad if hash_insert fails, to avoid memory leak.
82314         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82315         fts->fts_options to see which union member to use.
82316
82317 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82318
82319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82320         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82321
82322 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82323
82324         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82325
82326 2005-05-20  Jim Meyering  <jim@meyering.net>
82327
82328         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82329         Now a macro, to pacify GCC.
82330
82331 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82332
82333         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82334         of -1.
82335
82336 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82337
82338         * lib/chown.c (rpl_chown): Return -1 on failure.
82339
82340 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82343         Don't check for stddef.h.
82344         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82345         don't use its results.
82346         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82347         since we include them unconditionally.  Don't require
82348         AM_STDBOOL_H, since stdbool is a prerequisite.
82349         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82350         since we assume C89 or better.
82351         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82352         as we don't use their results.
82353         Don't check for fchdir, memmove, memset, strrchr, as we use
82354         them unconditionally.
82355         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82356         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82357
82358 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82359
82360         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82361         Include <stddef.h> unconditionally, since we assume C89 now.
82362         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82363         * lib/fts.c: Include fts_.h first, to check interface.
82364         Do not include intprops.h; no longer needed.
82365         Include cycle-check.h and hash.h, since fts_.h no longer does.
82366         Remove unnecessary casts of closedir to void.
82367         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82368         decide whether to decrement nlinks.
82369         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82370         (FTS): Use struct hash_table * instead of Hash_table, so that
82371         we no longer need to include hash.h here.
82372
82373 2005-05-18  Jim Meyering  <jim@meyering.net>
82374
82375         * modules/dirfd (License): Change to LGPL.  Most of the code
82376         is already in the public domain.
82377
82378 2005-05-18  Jim Meyering  <jim@meyering.net>
82379
82380         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82381         Reported by Yoann Vandoorselaere.
82382
82383 2005-05-17  Jim Meyering  <jim@meyering.net>
82384
82385         * m4/fts.m4: New file, from coreutils.
82386
82387 2005-05-17  Jim Meyering  <jim@meyering.net>
82388
82389         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82390
82391 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         Sync from coreutils.
82394         * m4/unlinkdir.m4: New file.
82395
82396 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82397
82398         Sync from coreutils.
82399         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82400         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82401         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82402         White space changes only.
82403         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82404         special.
82405         * lib/yesno.c: Include getline.h, not ctype.h.
82406         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82407         Use getline to remove arbitrary restriction on response length.
82408
82409 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82410
82411         * config/srclist-update: Spell out "Street" in FSF postal
82412         mail address; this is the style the FSF seems to prefer.
82413
82414         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82415         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82416         this updates FSF postal mail address.
82417
82418         Sync from coreutils.
82419         * modules/unlinkdir: New file.
82420         * modules/yesno (Depends-on): Add getline.
82421         * MODULES.html.sh (File system functions): Add unlinkdir.
82422
82423 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82426         lib/strsep.h:
82427         Change the initial comment to refer to GPL, not LGPL.
82428         gnulib-tool will change it to LGPL as needed.
82429
82430         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82431         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82432         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82433         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82434         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82435         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82436         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82437         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82438         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82439         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82440         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82441         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82442         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82443         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82444         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82445         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82446         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82447         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82448         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82449         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82450         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82451         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82452         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82453         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82454         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82455         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82456         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82457         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82458         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82459         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82460         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82461         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82462         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82463         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82464         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82465         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82466         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82467         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82468         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82469         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82470         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82471         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82472         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82473         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82474         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82475         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82476         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82477         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82478         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82479         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82480         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82481         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82482         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82483         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82484         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82485         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82486         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82487         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82488         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82489         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82490         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82491         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82492         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82493         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82494         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82495         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82496         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82497         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82498         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82499         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82500         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82501         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82502         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82503         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82504         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82505         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82506         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82507         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82508         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82509         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82510         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82511         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82512         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82513         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82514         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82515         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82516         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82517         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82518         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82519         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82520         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82521         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82522         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82523         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82524         lib/yesno.c, lib/yesno.h:
82525         Update FSF postal mail address.
82526
82527 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82530         tests/test-memmem.c, tests/test-stpncpy.c:
82531         Update FSF postal mail address.
82532
82533 2005-05-13  Bruno Haible  <bruno@clisp.org>
82534
82535         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82536         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82537         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82538         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82539         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82540         Add support for 64-bit integers in the MSVC compiler.
82541
82542 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82543
82544         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82545
82546 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82547
82548         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82549
82550 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         * doc/getdate.texi (General date syntax): Don't say that date
82553         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82554         Problem reported by Nic Ferrier.
82555
82556 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82557
82558         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82559         specified in ai_socktype. Fix invalid ai_protocol
82560         check. ai_protocol is usually set to 0 or depending on
82561         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82562         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82563         ai_socktype / ai_protocol in the returned addrinfo structure.
82564
82565 2005-05-10  Simon Josefsson  <jas@extundo.com>
82566
82567         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82568         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82569
82570 2005-05-10  Karl Berry  <karl@gnu.org>
82571
82572         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82573         (from http://www.gnu.org/licenses).
82574         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82575         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82576         fdl.texi suffices.
82577
82578 2005-05-10  Karl Berry  <karl@gnu.org>
82579
82580         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82581         (COPYING.DOC): remove.
82582
82583         * config/srclist-update: new FSF address.
82584
82585 2005-05-10  Derek Price  <derek@ximbiot.com>
82586
82587         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82588         possible.
82589
82590 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82591             Bruno Haible  <bruno@clisp.org>
82592
82593         * modules/inet_ntop: New file.
82594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82595         inet_ntop.
82596
82597 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82598             Bruno Haible  <bruno@clisp.org>
82599
82600         * m4/inet_ntop.m4: New file.
82601
82602 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82603             Bruno Haible  <bruno@clisp.org>
82604
82605         * lib/inet_ntop.h: New file.
82606         * lib/inet_ntop.c: New file, from glibc with modifications.
82607
82608 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82609
82610         * modules/time_r (License): Change to LGPL.
82611         * modules/extensions (License): Change to LGPL.  Actually,
82612         the license is more permissive than that, but currently gnulib-tool
82613         doesn't know how to handle more-permissive licenses.
82614
82615         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82616         Problem reported by Dave Love.
82617
82618 2005-05-08  Jim Meyering  <jim@meyering.net>
82619
82620         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82621         blank.
82622
82623 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82624
82625         * modules/argmatch (Depends-on): Add stdbool.
82626         * modules/backupfile (Depends-on): Likewise.
82627         * modules/chdir-long (Depends-on): Likewise.
82628         * modules/closeout (Depends-on): Likewise.
82629         * modules/cycle-check (Depends-on): Likewise.
82630         * modules/dirname (Depends-on): Likewise.
82631         * modules/fnmatch (Depends-on): Likewise.
82632         * modules/fsusage (Depends-on): Likewise.
82633         * modules/fwriteerror (Depends-on): Likewise.
82634         * modules/getcwd (Depends-on): Likewise.
82635         * modules/getloadavg (Depends-on): Likewise.
82636         * modules/hard-locale (Depends-on): Likewise.
82637         * modules/makepath (Depends-on): Likewise.
82638         * modules/mountlist (Depends-on): Likewise.
82639         * modules/nanosleep (Depends-on): Likewise.
82640         * modules/posixtm (Depends-on): Likewise.
82641         * modules/quotearg (Depends-on): Likewise.
82642         * modules/readtokens (Depends-on): Likewise.
82643         * modules/readtokens0 (Depends-on): Likewise.
82644         * modules/readutmp (Depends-on): Likewise.
82645         * modules/save-cwd (Depends-on): Likewise.
82646         * modules/strftime (Depends-on): Likewise.
82647         * modules/userspec (Depends-on): Likewise.
82648         * modules/utimecmp (Depends-on): Likewise.
82649         * modules/xgetcwd (Depends-on): Likewise.
82650         * modules/xnanosleep (Depends-on): Likewise.
82651         * modules/xstrtod (Depends-on): Likewise.
82652         * modules/yesno (Depends-on): Likewise.
82653
82654 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82657         needless checks.
82658
82659 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82660
82661         Merge from coreutils.  Among other things,
82662         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82663         * lib/fd-safer.c: New file.
82664         * lib/fcntl-safer.h, open-safer.c: Remove.
82665         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82666         * lib/dup-safer.c: Include unistd-safer.h first.
82667         Don't include errno.h.
82668         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82669         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82670         * lib/file-type.c: Rely on file-type.h change.
82671         * lib/getloadavg.c: Include unistd-safer.h.
82672         (getloadavg): Use safer open.
82673         * lib/getusershell.c: Include "stdio-safer.h".
82674         (getusershell): Use safer fopen.
82675         * lib/long-options.c (long_options): Use NULL rather than 0.
82676         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82677         'free'.
82678         * lib/modechange.c: Likewise.
82679         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82680         (MODE_DONE): New constant.
82681         (struct mode_change): Remove 'next' member.
82682         (make_node_op_equals): New function; like the old one of the
82683         same name, except it allocates an array.
82684         (mode_compile, mode_create_from_ref): Use it.
82685         (mode_compile): Allocate result as an array, not a linked list.
82686         Parse octal string ourself, so that we catch mistakes like "+0".
82687         (mode_adjust): Arg is an array, not a linked list.
82688         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82689         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82690         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82691         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82692         Remove.  This is now stat-macros.h's job.
82693         (talloc): Remove.  All callers replaced by xalloc, so that
82694         our invokers don't have to worry about reporting memory failures.
82695         (make_node_op_equals): Remove.
82696         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82697         New constants.
82698         (struct mode_change): Moved here from modechange.h.
82699         (mode_append_entry): Remove.
82700         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82701         apps to have incorrect behavior.  Use simpler algorithm for head
82702         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82703         Detect more invalid usages rather than having somewhat-random behavior.
82704         Don't insert an "a=" action, as that leads to incorrect behavior.
82705         (mode_compile, mode_create_from_ref): Return NULL on error instead
82706         of an enum, since now there's only one way to have an error.  All
82707         callers changed.
82708         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82709         at the correct time.  Simplify calculation of "+u" and its ilk.
82710         Don't mishandle "+X".
82711         (mode_free): Remove "register" and localize decls.
82712         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82713         (struct mode_change): Move to modechange.c; callers don't
82714         need to see this stuff.
82715         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82716         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82717         (mode_change, mode_adjust): Reflect the new signatures noted above.
82718         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82719         that might redefine system include files.
82720         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82721         (my_usleep): Use NULL rather than (void *) 0.
82722         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82723         Use siginterrupt to specify that system calls should be interrupted.
82724         (rpl_nanosleep): Move initialization of suspended closer to call of
82725         my_usleep.
82726         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82727         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82728         (desirable_utmp_entry): New function.
82729         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82730         using x2nrealloc, to simplify logic.
82731         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82732         size calculation.  Do not assume utmp file is a regular file.
82733         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82734         (READ_UTMP_CHECK_PIDS): New constant.
82735         * lib/save-cwd.c: Include unistd-safer.h.
82736         (save_cwd): Use fd_safer.
82737         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82738         [!_LIBC] Include "stat-macros.h" instead.
82739         * lib/unistd-safer.h (fd_safer): New decl.
82740
82741 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         * modules/getloadavg (Depends-on): Add unistd-safer.
82744         * modules/getusershell (Depends-on): Add stdio-safer.
82745         * modules/lstat (Depends-on): Remove xalloc.
82746         * modules/mkstemp (Depends-on): Add stat-macros.
82747         * modules/modechange (Depends-on): Remove xstrtol.
82748         Add stat-macros, xalloc.
82749         * modules/save-cwd (Depends-on): Add unistd-safer.
82750         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82751         * modules/unistd-safer (Files): Add lib/fd-safer.c
82752         (Makefile.am): Remove lib_SOURCES.
82753
82754         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82755         Remove fcntl-safer; unistd-safer supersedes it.
82756
82757 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82758
82759         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82760         AC_HEADER_STAT.
82761         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82762         (gl_PREREQ_CHOWN): Remove.
82763         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82764         it.  Don't require AC_HEADER_STAT.
82765         (gl_PREREQ_LSTAT): Remove.
82766         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82767         Don't require AC_HEADER_STAT.
82768         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82769         (gl_PREREQ_RMDIR): Remove.
82770         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82771         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82772         the stat-macros module a prerequisite.
82773         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82774         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82775         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82776         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82777         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82778         variable names.
82779         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82780         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82781         variable prefixes.
82782         * m4/fcntl-safer.m4: Remove.
82783         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82784         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82785         Invoke gl_PREREQ_FD_SAFER.
82786         (gl_PREREQ_FD_SAFER): New macro.
82787         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82788         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82789         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82790         Remove duplicate call to AC_LIBOBJ(readutmp).
82791         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82792
82793         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82794         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82795
82796 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * MODULES.html.sh (Misc): Add byteswap.
82799
82800 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82801
82802         * modules/getcwd (Depends-on): Add extensions.
82803         * modules/openat (Depends-on): Likewise.
82804
82805 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82806
82807         * modules/byteswap: New file.
82808
82809 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82810
82811         * m4/byteswap.m4: New file.
82812
82813 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82814
82815         * lib/byteswap_.h: New file.
82816
82817 2005-04-25  Karl Berry  <karl@gnu.org>
82818
82819         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82820
82821 2005-04-25  Albert Chin  <china@thewrittenword.com>
82822
82823         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82824         Toolkit C bug.
82825
82826 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82827
82828         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82829         (func_ln_if_changed): Remove forcibly for no error message
82830         in case file does not exist.
82831
82832 2005-04-19  Simon Josefsson  <jas@extundo.com>
82833
82834         * gnulib-tool (Options): Make --symlink mean --symbolic.
82835
82836 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82837
82838         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82839
82840 2005-04-16  Simon Josefsson  <jas@extundo.com>
82841
82842         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82843
82844 2005-04-15  Simon Josefsson  <jas@extundo.com>
82845
82846         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82847
82848 2005-04-15  Simon Josefsson  <jas@extundo.com>
82849
82850         * gnulib-tool: Rename --symlink to --symbolic.
82851
82852 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82853
82854         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82855         symbolic links to files instead of copying/moving.  Add --aux-dir,
82856         specifying directory relative --dir where auxiliary build tools
82857         are placed.
82858
82859 2005-04-14  Bruno Haible  <bruno@clisp.org>
82860
82861         * modules/allocsa (License): Change to LGPL.
82862         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82863
82864 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82865
82866         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82867         that "UTC +1 second" continues to work.  Problem reported
82868         by Dmitry V. Levin.
82869         (relunit_snumber): New rule.
82870         (relunit): Use it.
82871
82872 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82873
82874         * lib/getdate.y (universal_time_zone_table): New constant.
82875         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82876         universal_time_zone_table.
82877         (lookup_zone): Prefer universal_time_zone_table to
82878         local_time_zone_table, so that "GMT" time stamps are allowed in
82879         London during the summer.  Problem reported by Ian Abbott.
82880
82881 2005-04-12  Jim Meyering  <jim@meyering.net>
82882
82883         * lib/human.c (humblock): Set *options even when returning due to
82884         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82885         warning from gcc-4.
82886
82887 2005-04-09  Jim Meyering  <jim@meyering.net>
82888
82889         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82890         -Wuninitialized: initialize tm0.tm_year.
82891
82892 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82893
82894         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82895         count, since there's no maximum.  All uses changed.
82896         Add member dsts_seen.
82897         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82898         not being INT_MAX.
82899         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82900         Use pc_rels_seen to decide whther a date is absolute.
82901
82902         * lib/getdate.y (number): Don't overwrite year.
82903         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82904         check.
82905
82906 2005-04-02  Simon Josefsson  <jas@extundo.com>
82907
82908         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82909         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82910
82911 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82912
82913         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82914         where no absolute path name can be longer than PATH_MAX.
82915
82916 2005-03-27  Jim Meyering  <jim@meyering.net>
82917
82918         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82919
82920 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82921
82922         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82923         "one's complement" -> "ones' complement" in comment, as per Knuth.
82924         "value of type" -> "type or expression" in comment.
82925         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82926
82927 2005-03-26  Jim Meyering  <jim@meyering.net>
82928
82929         Comment nits.
82930         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82931         Correct typos: s/or/of/.
82932
82933 2005-03-26  Jim Meyering  <jim@meyering.net>
82934
82935         * modules/check-include-files: Move to ../ and rename to...
82936         * check-module: ...this.
82937
82938 2005-03-25  Jim Meyering  <jim@meyering.net>
82939
82940         * modules/xvasprintf (Files): Add xalloc.h.
82941
82942 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82943
82944         * modules/gettext (Files): config/config.rpath ->
82945         build-aux/config.rpath
82946         * modules/iconv (Files): Likewise.
82947         Problem reported by Oskar Liljeblad.
82948
82949 2005-03-23  Jim Meyering  <jim@meyering.net>
82950
82951         * modules/check-include-files: New script to check for
82952         missing dependencies, multiple includes, etc.
82953
82954         * modules/c-strtold (Depends-on): Add xalloc.
82955         * modules/c-strtod (Depends-on): Add xalloc.
82956         * modules/hash (Depends-on): Add xalloc.
82957         (Files): Remove lib/xalloc.h.
82958
82959         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82960         * modules/userspec (Files): Add lib/inttostr.h.
82961
82962 2005-03-23  Jim Meyering  <jim@meyering.net>
82963
82964         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82965
82966 2005-03-22  Jim Meyering  <jim@meyering.net>
82967
82968         * modules/stat-macros: New module.
82969         * modules/canonicalize, modules/euidaccess, modules/file-type,
82970         * modules/filemode, modules/lchown, modules/makepath,
82971         * modules/rmdir, modules/stat: Depend on new stat-macros module
82972         rather than listing lib/stat-macros.h manually.
82973         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82974
82975 2005-03-22  Jim Meyering  <jim@meyering.net>
82976
82977         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82978
82979 2005-03-22  Bruno Haible  <bruno@clisp.org>
82980
82981         * config/srclist.txt: Replace target directory 'config' with
82982         'build-aux'.
82983         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82984         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82985         ../build-aux/.
82986
82987 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82988
82989         * modules/chdir-long (Depends-on): Add mempcpy.
82990
82991         * modules/acl, modules/backupfile, modules/c-strtod,
82992         modules/c-strtold, modules/canon-host, modules/canonicalize,
82993         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82994         modules/exclude, modules/exitfail, modules/file-type,
82995         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82996         modules/getdate, modules/getline, modules/getpagesize,
82997         modules/getpass, modules/getugroups, modules/group-member,
82998         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82999         modules/inttostr, modules/long-options, modules/makepath,
83000         modules/md5, modules/memcasecmp, modules/memcoll,
83001         modules/modechange, modules/mountlist, modules/path-concat,
83002         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83003         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83004         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83005         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83006         modules/strftime, modules/strndup, modules/strverscmp,
83007         modules/timespec, modules/unlocked-io, modules/userspec,
83008         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83009         modules/yesno:
83010         Remove lib_SOURCES line from Makefile.am section, as this is now
83011         done automatically by the corresponding Autoconf macro.
83012
83013 2005-03-21  Jim Meyering  <jim@meyering.net>
83014
83015         Changes imported from coreutils.
83016
83017         * lib/cycle-check.c: Don't include xalloc.h.
83018
83019         * lib/path-concat.c: Don't include assert.h.
83020         (path_concat): Remove assertion that would have triggered
83021         for ABASE starting with more than one slash.
83022         Reported by Andreas Schwab.
83023
83024         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83025         properly when ABASE is an absolute file name.
83026         Correct the description of this function.
83027         Include <assert.h>.
83028         Add an assertion and a test driver.
83029         This fixes a bug introduced on 2004-07-02.
83030         Andreas Schwab reported the resulting failure of cp --parents:
83031         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83032
83033 2005-03-21  Jim Meyering  <jim@meyering.net>
83034
83035         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83036         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83037
83038 2005-03-21  Jim Meyering  <jim@meyering.net>
83039         and  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83042         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83043         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83044         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83045         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83046         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83047         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83048         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83049         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83050         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83051         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83052         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83053         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83054         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83055         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83056         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83057         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83058         for these modules.
83059
83060 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83063         (which shouldn't happen), generate nothing instead of returning 0
83064         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83065
83066 2005-03-16  Bruno Haible  <bruno@clisp.org>
83067
83068         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83069         HAVE_LONGLONG_64BIT.
83070
83071 2005-03-16  Bruno Haible  <bruno@clisp.org>
83072
83073         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83074         HAVE_LONGLONG_64BIT.
83075
83076 2005-03-16  Bruno Haible  <bruno@clisp.org>
83077
83078         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83079         HAVE_LONGLONG_64BIT.
83080
83081 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83082
83083         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83084         reliably distinguish strftime failure from empty output on POSIX
83085         hosts.
83086
83087 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83088
83089         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83090         (iconv_string): Don't guess a size-zero buffer, as that might cause
83091         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83092         result would be 'too large', where 'too large' is (heuristically)
83093         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83094         overflow concerns.  This will prevent some unwanted malloc failures
83095         when the inputs are very large.
83096
83097 2005-03-15  Karl Berry  <karl@gnu.org>
83098
83099         * config/srclist.txt (config.rpath): from gettext.
83100         * config/config.rpath: update.
83101
83102 2005-03-15  Bruno Haible  <bruno@clisp.org>
83103
83104         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83105         to 'negate'.
83106
83107         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83108         variable.
83109
83110         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83111         results.
83112
83113 2005-03-14  Simon Josefsson  <jas@extundo.com>
83114
83115         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83116         <fx@gnu.org>.
83117
83118 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83119
83120         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83121         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83122         intprops.h.
83123         * lib/strtol.c: Likewise.
83124
83125 2005-03-14  Jim Meyering  <jim@meyering.net>
83126
83127         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83128         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83129         to be nonzero so that we (and caller) can detect the difference
83130         between a valid zero-length expansion and an error return, even
83131         when the underlying strftime fails before writing anything into
83132         that location.
83133
83134 2005-03-14  Bruno Haible  <bruno@clisp.org>
83135
83136         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83137         Update from GNU gettext 0.14.3.
83138
83139 2005-03-10  Jim Meyering  <jim@meyering.net>
83140
83141         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83142
83143 2005-03-10  Jim Meyering  <jim@meyering.net>
83144
83145         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83146         so that this module works on systems without fchdir.
83147
83148 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83149
83150         Factor int-properties macros into a single file, except for
83151         glibc-related files.
83152         * lib/intprops.h: New file.
83153         * lib/getloadavg.c: Include it instead of limits.h.
83154         (INT_STRLEN_BOUND): Remove.
83155         * lib/human.c: Include intprops.h.
83156         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83157         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83158         302/1000.
83159         * lib/inttostr.h: Include intprops.h instead of limits.h.
83160         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83161         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83162         for consistency with intprops.h.
83163         (time_t_is_integer, twos_complement_arithmetic): Use them.
83164         * lib/sig2str.h: Include <signal.h>, intprops.h.
83165         (INT_STRLEN_BOUND): Remove.
83166         * lib/strftime.c (TYPE_SIGNED): Remove.
83167         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83168         * lib/strtol.c: Adjust comments to match intprops.h.
83169         * lib/userspec.c: Include intprops.h.
83170         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83171         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83172         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83173         instead of rolling our own expressions.
83174         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83175
83176         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83177         instead of int.
83178         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83179         the right thing even if adding 1900 would overflow.  Similarly
83180         for tm_mon + 1 and tm_yday + 1.
83181         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83182         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83183         (DO_SIGNED_NUMBER): New macro.
83184         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83185
83186 2005-03-07  Bruno Haible  <bruno@clisp.org>
83187
83188         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83189
83190 2005-03-07  Bruno Haible  <bruno@clisp.org>
83191
83192         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83193
83194 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83195
83196         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83197         (func_import): Only replace files via --import when they have actually
83198         changed.
83199
83200 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83201
83202         * m4/mmap-anon.m4: New file.
83203         * m4/pagealign_alloc.m4: New file.
83204
83205 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83206             Bruno Haible  <bruno@clisp.org>
83207
83208         * modules/pagealign_alloc: New file.
83209         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83210
83211 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83212             Bruno Haible  <bruno@clisp.org>
83213
83214         * lib/pagealign_alloc.h: New file.
83215         * lib/pagealign_alloc.c: New file.
83216
83217 2005-03-03  Bruno Haible  <bruno@clisp.org>
83218
83219         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83220         Use an all-permissive copyright notice, recommended by RMS.
83221
83222 2005-03-02  Bruno Haible  <bruno@clisp.org>
83223
83224         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83225         of AIX, the replacement has to be done only after <string.h> is
83226         included, therefore not in config.h. stpncpy.h does the replacement,
83227         and stpncpy.c uses it.
83228
83229 2005-03-02  Bruno Haible  <bruno@clisp.org>
83230
83231         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83232         stpncpy.c uses it.
83233
83234 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83237         The workaround isn't strictly needed for POSIX conformance, and
83238         it's too much of a pain to configure and maintain.  We'll ask
83239         people to fix their kernels instead.
83240         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83241         (NANOSLEEP_BUG_WORKAROUND): Remove.
83242         (xnanosleep): Remove the workaround.
83243
83244 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83245
83246         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83247         Reported by Derek Price.
83248         (Include): Add "timespec.h".
83249
83250         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83251
83252 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83255         to detect nanosleep bug.
83256
83257 2005-03-01  Bruno Haible  <bruno@clisp.org>
83258
83259         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83260
83261 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83262
83263         * modules/gethrxtime: New file.
83264         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83265         (Depends-on): Add gethrxtime.
83266         (configure.ac): Add gl_XNANOSLEEP.
83267         (Makefile.am): Remove lib_SOURCES line.
83268
83269 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83270
83271         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83272         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83273
83274 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83275
83276         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83277         * lib/timespec.h (gettime): Return void, since it always
83278         succeeds now.  All uses changed.
83279         * lib/gettime.c (gettime): Likewise.
83280         [HAVE_NANOTIME]: Prefer nanotime.
83281         Assume gettimeofday succeeds, as POSIX requires.
83282         Assime time () succeeds, since other code already does.
83283         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83284         (timespec_subtract): Remove.
83285         (NANOSLEEP_BUG_WORKAROUND): New constant.
83286         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83287         things considerably.  Use it only on GNU/Linux hosts, since the
83288         workaround shouldn't be needed elsewhere.
83289
83290 2005-02-24  Bruno Haible  <bruno@clisp.org>
83291
83292         * modules/gettext (Files): Add m4/glibc2.m4.
83293
83294 2005-02-24  Bruno Haible  <bruno@clisp.org>
83295
83296         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83297         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83298         * m4/progtest.m4:
83299         Update from GNU gettext 0.14.2.
83300         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83301
83302 2005-02-24  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83305         * lib/config.charset: Update from GNU gettext 0.14.2.
83306
83307 2005-02-24  Bruno Haible  <bruno@clisp.org>
83308
83309         * lib/gettext.h: Update from GNU gettext 0.14.2.
83310
83311 2005-02-23  Simon Josefsson  <jas@extundo.com>
83312
83313         * m4/iconvme.m4: New file.
83314
83315 2005-02-23  Jim Meyering  <jim@meyering.net>
83316
83317         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83318         change.
83319         Thanks to Bruno Haible for catching it.
83320
83321 2005-02-22  Simon Josefsson  <jas@extundo.com>
83322
83323         * modules/iconvme: New file.
83324
83325         * MODULES.html.sh: Add iconvme.
83326
83327 2005-02-22  Simon Josefsson  <jas@extundo.com>
83328
83329         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83330
83331 2005-02-22  Simon Josefsson  <jas@extundo.com>
83332
83333         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83334
83335 2005-02-22  Jim Meyering  <jim@meyering.net>
83336
83337         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83338         s/ifndef/ifdef/.
83339
83340 2005-02-20  Neil Conway  <neilc@samurai.com>
83341
83342         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83343         returned by OSX/Darwin if the specified buffer is not large
83344         enough for the hostname.
83345
83346 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83347
83348         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83349         pass it to _help, otherwise the latter coredumps trying to
83350         dereference state.root_argp.
83351
83352 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         * modules/chdir-long (Depends-on): Add memrchr.
83355         * modules/memrchr (Files): Add lib/memrchr.h.
83356         (Include): "memrchr.h".
83357
83358 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83361
83362 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * lib/memrchr.h: New file.
83365         * lib/chdir-long.c: Include it.
83366         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83367         Don't bother including stddef.h.
83368
83369 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83370
83371         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83372         inclusion.
83373         Include <sys/types.h>, for dev_t.
83374         (ME_DUMMY, ME_REMOTE): Move from here....
83375         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83376         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83377         Dmitry V. Levin.
83378         Include mountlist.h first, to test the interface.
83379
83380 2005-01-29  Bruno Haible  <bruno@clisp.org>
83381
83382         * lib/progname.c (program_name): Initialize.
83383         Needed when linking statically on MacOS X.
83384
83385 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         Sync from coreutils.
83388         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83389         (Depends-on): Add c-strtod.
83390         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83391
83392 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         Sync from coreutils.
83395         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83396
83397         Remove files that are specific to coreutils.
83398         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83399
83400 2005-01-28  Bruno Haible  <bruno@clisp.org>
83401
83402         * modules/javacomp: New file.
83403         * MODULES.html.sh (Java): Add javacomp.
83404
83405 2005-01-28  Bruno Haible  <bruno@clisp.org>
83406
83407         * m4/javacomp.m4: New file, from GNU gettext.
83408
83409 2005-01-28  Bruno Haible  <bruno@clisp.org>
83410
83411         * lib/javacomp.sh.in: New file, from GNU gettext.
83412         * lib/javacomp.h: New file, from GNU gettext.
83413         * lib/javacomp.c: New file, from GNU gettext.
83414
83415 2005-01-26  Simon Josefsson  <jas@extundo.com>
83416
83417         * lib/gai_strerror.c: Use GPL in header.
83418
83419 2005-01-26  Bruno Haible  <bruno@clisp.org>
83420
83421         * modules/javaexec: New file.
83422         * MODULES.html.sh (Java): Add javaexec.
83423
83424 2005-01-26  Bruno Haible  <bruno@clisp.org>
83425
83426         * m4/javaexec.m4: New file, from GNU gettext.
83427
83428 2005-01-26  Bruno Haible  <bruno@clisp.org>
83429
83430         * lib/javaexec.sh.in: New file, from GNU gettext.
83431         * lib/javaexec.h: New file, from GNU gettext.
83432         * lib/javaexec.c: New file, from GNU gettext.
83433
83434 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83435
83436         * modules/lchown (Depends-on): Remove lchown.h
83437
83438 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83439
83440         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83441         must be defined if the header file was not found, in order
83442         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83443
83444 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83445
83446         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83447         initializers for struct pentry_state.
83448         (__argp_error): Check return value of __asprintf
83449         (__argp_failure): Translate error message
83450
83451         * lib/argp-parse.c: Removed braces around the expansion of N_()
83452
83453 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83454
83455         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83456         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83457         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83458         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83459         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83460         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83461         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83462         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83463         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83464         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83465         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83466         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83467         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83468         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83469         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83470         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83471         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83472         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83473         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83474         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83475         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83476         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83477         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83478         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83479         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83480         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83481         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83482         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83483         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83484         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83485         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83486         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83487         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83488         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83489         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83490         Use an all-permissive copyright notice, recommended by RMS.
83491
83492 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83493
83494         * modules/chdir-long (Depends-on): Remove mempcpy.
83495
83496 2005-01-21  Jim Meyering  <jim@meyering.net>
83497
83498         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83499         same value as for Solaris 9.
83500
83501         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83502         component length.  This included changing the parameter to be
83503         of type `char *' rather than `char const *'.
83504         * lib/chdir-long.h (chdir_long): Update prototype.
83505
83506         * lib/openat.c (fdopendir, fstatat): New functions.
83507         * lib/openat.h: Include headers required for use of DIR and struct
83508         stat.
83509         [AT_SYMLINK_NOFOLLOW]: Define.
83510         (fdopendir, fstatat): Add prototypes.
83511
83512 2005-01-21  Bruno Haible  <bruno@clisp.org>
83513
83514         * modules/classpath: New file.
83515         * MODULES.html.sh (Java): Add classpath.
83516
83517 2005-01-21  Bruno Haible  <bruno@clisp.org>
83518
83519         * lib/classpath.h: New file, from GNU gettext.
83520         * lib/classpath.c: New file, from GNU gettext.
83521
83522 2005-01-20  Simon Josefsson  <jas@extundo.com>
83523
83524         * modules/version-etc-fsf: New file.
83525
83526 2005-01-20  Simon Josefsson  <jas@extundo.com>
83527
83528         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83529         * lib/version-etc.c: Remove version_etc_copyright.
83530         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83531         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83532
83533 2005-01-20  Simon Josefsson  <jas@extundo.com>
83534
83535         * lib/base64.h (isbase64): Add.
83536
83537         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83538         using a unsigned prototype, don't inline.
83539         (base64_decode): Use it.
83540
83541 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83542
83543         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83544         it.
83545
83546 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83547
83548         * lib/save-cwd.c (save_cwd): Remove code to support the case
83549         where fchdir is missing or flaky.
83550
83551 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83554
83555 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83556
83557         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83558         AC_LIBSOURCES now does this.
83559         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83560         with new ullong_max module.
83561
83562 2005-01-19  Bruno Haible  <bruno@clisp.org>
83563
83564         * modules/sh-quote: New file.
83565         * MODULES.html.sh (Executing programs): Add sh-quote.
83566
83567 2005-01-19  Bruno Haible  <bruno@clisp.org>
83568
83569         * lib/sh-quote.h: New file, from GNU gettext.
83570         * lib/sh-quote.c: New file, from GNU gettext.
83571
83572 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         Merge from coreutils.
83575         * m4/ullong_max.m4: New file.
83576         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83577         (gl_MACROS): Assume localeconv exists.
83578
83579 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         Merge changes from coreutils, as described below in several
83582         changelogs dated today.
83583
83584         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83585         (O_DIRECTORY): Remove; not needed here, since "." must be
83586         a directory.  All uses removed.
83587         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83588         universal on Suns, and we also need to test for IRIX.
83589         Revamp code to use 'if' rather than '#if'.
83590         Avoid unnecessary comparison of cwd->desc to 0.
83591
83592         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83593         for known valid error numbers rather than observed invalid ones.
83594
83595 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83596
83597         * modules/ullong_max: New file.
83598
83599         * modules/chdir-long, modules/openat: New files.
83600         * modules/save-cwd (Depends-on): Depend on chdir-long.
83601         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83602
83603 2005-01-18  Jim Meyering  <jim@meyering.net>
83604
83605         Merge from coreutils.
83606         * m4/chdir-long.m4, m4/openat.m4: New files.
83607         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83608         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83609         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83610         is sane and DOES follow symlinks.  Besides, testing 20 different
83611         systems found no broken chown implementations.
83612         Prompted by a change in rsync's copy of this macro.
83613         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83614
83615         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83616
83617         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83618         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83619         NULL-means-set-to-current-time semantics.
83620         Remove temporary file immediately, rather than waiting
83621         for configure's at-exit trap code to do it.
83622
83623 2005-01-18  Jim Meyering  <jim@meyering.net>
83624
83625         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83626
83627         * lib/utimens.c (futimens): Account for the fact that futimes
83628         can also fail with errno == ENOSYS or errno == ENOENT.
83629         Patch from Dmitry V. Levin.
83630
83631         Change the name of the robust chdir function from chdir to chdir_long.
83632         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83633         (restore_cwd): Use chdir_long, not chdir.
83634         * lib/chdir-long.c: Renamed from chdir.c.
83635         * lib/chdir-long.h: Renamed from chdir.h.
83636         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83637         Hurd.
83638
83639 2005-01-18  Bruno Haible  <bruno@clisp.org>
83640
83641         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83642         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83643         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83644         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83645         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83646         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83647         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83648         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83649         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83650         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83651         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83652         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83653         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83654         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83655         Use an all-permissive copyright notice, recommended by RMS.
83656
83657 2005-01-18  Bob Proulx  <bob@proulx.com>
83658
83659         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83660         simplify offsetof() macro construct to avoid compile failure with
83661         native HP-UX 11.0 ANSI C compiler.
83662
83663 2005-01-17  Bruno Haible  <bruno@clisp.org>
83664
83665         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83666         redundant because stpncpy.m4 takes care of it.
83667
83668 2005-01-17  Bruno Haible  <bruno@clisp.org>
83669
83670         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83671
83672 2005-01-17  Bruno Haible  <bruno@clisp.org>
83673
83674         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83675         used.
83676
83677 2005-01-17  Bruno Haible  <bruno@clisp.org>
83678
83679         * lib/fwriteerror.h (fwriteerror): Change specification to include
83680         fclose.
83681         * lib/fwriteerror.c: Include <stdbool.h>.
83682         (fwriteerror): At the end, close the file stream. Record whether
83683         stdout was already closed.
83684
83685 2005-01-17  Bruno Haible  <bruno@clisp.org>
83686
83687         * lib/execute.c (environ): Declare if needed.
83688         * lib/pipe.c (environ): Likewise.
83689         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83690
83691 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83692
83693         * modules/argp: Depend on vsnprintf
83694
83695 2005-01-10  Jim Meyering  <jim@meyering.net>
83696
83697         * modules/closeout (Depends-on): Add atexit.
83698
83699 2005-01-06  Bruno Haible  <bruno@clisp.org>
83700
83701         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83702
83703 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83704
83705         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83706         definitions to be after all include files, to avoid collisions.
83707         Problem reported by Bob Proulx.
83708
83709 2005-01-04  Jim Meyering  <jim@meyering.net>
83710
83711         Changes imported from coreutils.
83712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83713         as the mkstemp template, use a temporary directory and an
83714         8.3-friendly template to avoid trouble on systems like DJGPP.
83715         Reported by Juan M. Guerrero via Stepan Kasal.
83716         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83717         close. Remove the temporary directory right away, rather than waiting
83718         for configure's at-exit trap code to do it.
83719         Suggestion from Stepan Kasal.
83720
83721 2005-01-01  Simon Josefsson  <jas@extundo.com>
83722
83723         * gnulib-tool: Print #include directives when --import'ing.
83724
83725 2004-12-28  Simon Josefsson  <jas@extundo.com>
83726
83727         * tests/test-base64.c: Include required header files.  Remove
83728         unused variables.
83729
83730 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83731
83732         * modules/error (Depends-on): Remove gettext.
83733
83734 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83735
83736         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83737         not needed.  This removes a dependency on the gettext module.
83738         [defined _LIBC]: Do not include <libintl.h>; not needed.
83739
83740 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83743         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83744
83745 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83748         HAVE_DECL_STRTOLD.
83749
83750 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * modules/getdate (Depends-on): Remove alloca-opt.
83753
83754 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83757
83758 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83759
83760         * lib/argp-parse.c: Include <stddef.h>.
83761         (alignof, alignto): New macros.
83762         (parser_init): Don't assume that void * is aligned sufficiently
83763         for struct option.
83764
83765         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83766         need to extend the stack.
83767         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83768         large.
83769
83770 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83771
83772         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83773
83774 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83777         (2004-10-24) change.  Apparently this was a false alarm.
83778
83779         * modules/getdate: Depend on alloca-opt, not alloca.
83780
83781 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83782
83783         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83784         Remove now-obsolete comment about AIX.
83785         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83786         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83787         (YYMAXDEPTH): New macro.
83788
83789 2004-12-18  Simon Josefsson  <jas@extundo.com>
83790
83791         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83792
83793 2004-12-18  Bruno Haible  <bruno@clisp.org>
83794
83795         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83796
83797 2004-12-18  Bruno Haible  <bruno@clisp.org>
83798
83799         * lib/fatal-signal.c (fatal_signals): Make non-const.
83800         (init_fatal_signals): New function.
83801         (uninstall_handlers, install_handlers): Ignore signals that were set to
83802         SIG_IGN.
83803         (at_fatal_signal): Call init_fatal_signals.
83804         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83805         SIG_IGN.
83806         Reported by Paul Eggert.
83807
83808 2004-12-18  Bruno Haible  <bruno@clisp.org>
83809
83810         * doc/alloca.texi: New file.
83811         * doc/alloca-opt.texi: New file.
83812
83813 2004-12-17  Jim Meyering  <jim@meyering.net>
83814
83815         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83816         Otherwise, install-sh could exit with improper exit status when
83817         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83818
83819 2004-12-16  Simon Josefsson  <jas@extundo.com>
83820
83821         * tests/test-base64.c: Add license.
83822
83823 2004-12-15  Stepan Kasal  <address@hidden>
83824
83825         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83826
83827 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83828
83829         * modules/getcwd (Files): Add m4/d-ino.m4.
83830         Suggested by Mark D. Baushke.
83831
83832 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         * lib/getdate.y (textint): New member "negative".
83835         (time_zone_hhmm): New function.
83836         Expect 14 shift-reduce conflicts, not 13.
83837         (o_colon_minutes): New rule.
83838         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83839         (yylex): Set the "negative" member of signed numbers.
83840
83841 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         * doc/getdate.texi (Time of day items, Time zone items):
83844         Describe new formats +00:00, UTC+00:00.
83845
83846 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83849         spurious "-l"s.  Problem reported by Stepan Kasal.
83850
83851 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83854         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83855
83856 2004-12-04  Simon Josefsson  <jas@extundo.com>
83857
83858         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83859         Vandoorselaere <yoann@prelude-ids.org>.
83860
83861 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83862
83863         Changes imported from coreutils.
83864         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83865         exist.
83866         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83867
83868 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83869
83870         Changes imported from coreutils.
83871         * lib/hard-locale.c: Assume <locale.h> exists.
83872         Include "strdup.h".
83873         (GLIBC_VERSION): New macro.
83874         (hard_locale): Assume setlocale exists.
83875         Rewrite to avoid #ifdef.
83876         Use strdup rather than malloc + strcpy.
83877         * lib/human.c: Assume <locale.h> exists.
83878         (human_readable): Assume localeconv exists.
83879
83880 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         * modules/hard-locale (Depends-on): Add strdup.
83883
83884 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83885
83886         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83887         convert T2, not T.  (Imported from libc.)
83888
83889 2004-11-30  Simon Josefsson  <jas@extundo.com>
83890
83891         * modules/restrict (License): Change to LGPL.
83892
83893 2004-11-30  Simon Josefsson  <jas@extundo.com>
83894
83895         * m4/restrict.m4: Add copyright and copying conditions.
83896
83897 2004-11-30  Simon Josefsson  <jas@extundo.com>
83898
83899         * m4/base64.m4: New file.
83900
83901 2004-11-30  Simon Josefsson  <jas@extundo.com>
83902
83903         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83904         base64.
83905
83906         * tests/test-base64.c: New file.
83907
83908         * modules/base64: New file.
83909
83910 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83913         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83914
83915         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83916
83917 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83918
83919         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83920         (__getcwd.c): Don't restore errno; glibc doesn't.
83921         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83922         first, falling back to our code only if its results look suspicious.
83923         Ensure that the resulting buffer is only as large as necessary.
83924
83925         * lib/readutmp.c: Include readutmp.h first.
83926         Include <errno.h>, since readutmp.h no longer does that.
83927         * lib/readutmp.h: Don't include <errno.h>,
83928         <sys/param.h>, <time.h>; not needed to establish interface.
83929         (errno): Remove decl.
83930         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83931         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83932         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83933
83934 2004-11-28  Simon Josefsson  <jas@extundo.com>
83935
83936         * lib/base64.h, base64.c: New file.
83937
83938 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83941
83942 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83943
83944         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83945         (Depends-on): Remove pathmax, same.  Add mempcpy.
83946         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83947         (Makefile.am): Append getcwd.h to lib_SOURCES.
83948         (Include): Add getcwd.h.
83949         (Maintainer): Change from Jim Meyering to "all, glibc",
83950         since getdate now uses intended-for-glibc code.
83951         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83952         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83953
83954 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83955
83956         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83957         HP's ANSI C compiler.
83958         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83959         Declaring int functions causes warnings on some modern systems and
83960         shouldn't be needed to compile on ancient ones.
83961         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83962         defined.
83963
83964         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83965         with the following changes.
83966         (__set_errno): Parenthesize properly.
83967         Include <stdbool.h>.
83968         (MIN, MAX, MATCHING_INO): New macros.
83969         (__getcwd): Define with prototype, not K&R form.
83970         Use heuristics to allocate default buffer on stack if possible.
83971         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83972         behavior, and to avoid the PATH_MAX limit when computing
83973         ../../../../...
83974         Use MATCHING_INO to compare inode number to file.
83975         Check for arithmetic overflow in size calculations.
83976         Fix bug in reallocation of dot array that caused getcwd to fail
83977         on directories nested deeper than 75.
83978         Be more careful about saving errno on error.
83979         Do not use realloc; use only free+malloc, as this is a bit
83980         more flexible and avoids a needless copy operation.
83981         Do not inspect st_dev and st_ino for symbolic links; POSIX
83982         doesn't specify the latter.
83983         Check for closedir errors.
83984         Avoid needless casts.
83985         Use "#ifdef weak_alias" around weak_alias, to be like other
83986         glibc code.
83987         The following changes to getcwd.c have effect only when used in
83988         gnulib; they have no effect inside glibc proper.
83989         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83990         as alloca isn't used.
83991         (alloca, __alloca): Likewise.
83992         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83993         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83994         unconditionally, as gnulib assumes C89 or better.
83995         Do not include <sys/param.h>.
83996         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83997         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83998         better.
83999         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84000         Include <dirent.h> in a way that is compatible with modern Autoconf.
84001         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84002         New macros, if not already defined.
84003         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84004         Use "_LIBC", not "defined _LIBC", for consistency.
84005         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84006         a mempcpy module.
84007         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84008         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84009         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84010         credit only to Jim Meyering and adjust the copyright dates.
84011         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84012         <stdlib.h>, <unistd.h>, "pathmax.h".
84013         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84014         (INITIAL_BUFFER_SIZE): Remove.
84015         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84016
84017 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84020         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84021         Use the _ONCE methods, for efficiency.
84022         Check for fcntl.h.  In test program, include <errno.h>
84023         and <fcntl.h> if available.  Remove old K&R cruft from
84024         test program.  Check for common errors in GNU/Linux,
84025         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84026         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84027         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84028         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84029         name accordingly.
84030         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84031         accommodate new getcwd.c.
84032         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84033         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84034         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84035         that's all we need now.
84036
84037 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84038
84039         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84040         argp-parse.c depends on getopt internals, that means we should
84041         always use our getopt, to be on the safe side.
84042         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84043         order not to spoil the result of an eventual previous invocation
84044         of gl_GETOPT_SUBSTITUTE.
84045
84046 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84047
84048         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84049         redefinition warnings. To avoid them, include the defines
84050         in `#if !defined __need_getopt ... #endif'. The only place
84051         where __getopt_argv_const is used is in definitions
84052         of getopt_long and getopt_long_only below, which are as well
84053         protected by `#ifndef __need_getopt'.
84054         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84055         __need_getopt after including <stdio.h> and <unistd.h> These
84056         headers might have defined it.
84057
84058 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84061
84062 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84063
84064         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84065         (futimens): New function, which uses futimes if available.
84066         (futimens, utimens): Support timespec==NULL, with same semantics
84067         as utime and utimens.
84068         * lib/utimens.h (futimens): New decl.
84069
84070 2004-11-23  Jim Meyering  <jim@meyering.net>
84071
84072         * lib/getopt_.h: Remove trailing blanks.
84073
84074 2004-11-23  Jim Meyering  <jim@meyering.net>
84075
84076         * lib/__fpending.c: Add comment.
84077
84078 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * modules/canonicalize (Depends-on): Add xreadlink.
84081         Problem reported by James Youngman.
84082
84083 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84086         New macros.
84087         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84088         optopt): Use them instead of invoking ## directly; otherwise, the
84089         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84090
84091 2004-11-19  Bruno Haible  <bruno@clisp.org>
84092
84093         * lib/strtok_r.c: Move comments from here...
84094         * lib/strtok_r.h: ... to here.
84095
84096 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84099         implementations that mishandle size_t overflow.
84100
84101 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84102
84103         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84104         might fail.  Problem reported by Yoann Vandoorselaere.
84105         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84106         implementations that mishandle size_t overflow.
84107
84108 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84109
84110         * modules/canon-host (Depends-on): Add strdup.
84111
84112 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84115
84116 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84117
84118         * lib/canon-host.c: Include "strdup.h".
84119         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84120         Use strdup instead of malloc/strcpy to duplicate strings.
84121
84122         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84123         (human_space_before_unit): New constant.
84124         * lib/human.c (human_readable): Support it.
84125
84126         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84127         (xgetcwd): Set errno correctly when failing.
84128         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84129         the failure is actually due to a PATH_MAX problem.
84130
84131         Further getopt changes to make it more likely that glibc will
84132         buy the changes back.
84133         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84134         (getopt): Use it, so to preserve glibc semantic
84135         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84136         when compiling for libc.
84137         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84138         (getopt_long, getopt_long_only): Use it.
84139
84140         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84141         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84142         (getopt): Argv is now char * const *, as per standard.
84143         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84144         not char *__getopt_argv_const *.
84145         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84146         _getopt_long_only_r): Likewise.
84147         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84148         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84149         _getopt_long_r, _getopt_long_only_r): Likewise.
84150         * lib/getopt_.h (__getopt_argv_const): Remove.
84151         (getopt): Argv is now char * const *, as per standard.
84152
84153         * lib/getdate.y (tORDINAL): New token.
84154         (day, relunit): Allow it for relative times.
84155         (relative_time_table): Use tORDINAL for ordinals.
84156
84157 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84160         Document that "second" isn't allowed as an ordinal number.
84161
84162 2004-11-16  Jim Meyering  <jim@meyering.net>
84163
84164         * modules/closeout (Depends-on): Add fpending.
84165
84166 2004-11-15  Jim Meyering  <jim@meyering.net>
84167
84168         * lib/closeout.c: Include "__fpending.h" once again.
84169         Include <stdbool.h>.
84170         (close_stdout): Don't fail just because stdout was closed initially,
84171         since some programs don't write to stdout in the normal course of
84172         operation (other than --version and --help), and we don't want this
84173         function to make e.g. `touch file >&-' fail.
84174         But do fail if it was closed and someone has tried to write to it.
84175         E.g., `printf foo >&-' must fail.
84176
84177 2004-11-13  Jim Meyering  <jim@meyering.net>
84178
84179         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84180
84181 2004-11-12  Simon Josefsson  <jas@extundo.com>
84182
84183         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84184         small doc fix is still pending.
84185
84186 2004-11-11  Simon Josefsson  <jas@extundo.com>
84187
84188         * modules/strtok_r: New file.
84189
84190         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84191         strtok_r.
84192
84193 2004-11-11  Simon Josefsson  <jas@extundo.com>
84194
84195         * m4/strtok_r.m4: New file.
84196
84197         * m4/getopt.m4: Replace opterr.
84198
84199 2004-11-11  Simon Josefsson  <jas@extundo.com>
84200
84201         * lib/strtok_r.h, strtok_r.c: New file.
84202
84203 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84206         of replacing opterr, getopt, etc.  This should handle the
84207         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84208
84209 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84212         we can stop lying to compilers about the constness of argv when we
84213         are compiled outside glibc.
84214         (getopt, getopt_long, getopt_long_only): Use it.
84215         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84216         _getopt_internal, getopt): Likewise.
84217         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84218         _getopt_long_only_r): Likewise.
84219         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84220         _getopt_long_r, _getopt_long_only_r): Likewise.
84221
84222         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84223         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84224         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84225         the other external symbols.
84226         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84227         declaration, since the above renaming now works around collisions.
84228
84229 2004-11-11  Jim Meyering  <jim@meyering.net>
84230
84231         * lib/linebreak.c: Remove trailing blanks.
84232         * lib/alloca_.h: Likewise.
84233         * lib/acosl.c: Likewise.
84234         * lib/euidaccess.c: Likewise.
84235         * lib/allocsa.h: Likewise.
84236
84237 2004-11-10  Simon Josefsson  <jas@extundo.com>
84238
84239         * m4/getaddrinfo.m4: New file.
84240
84241 2004-11-10  Simon Josefsson  <jas@extundo.com>
84242
84243         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84244
84245 2004-11-10  Simon Josefsson  <jas@extundo.com>
84246
84247         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84248         getaddrinfo.
84249
84250         * modules/getaddrinfo: New file.
84251
84252 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84253
84254         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84255
84256 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * lib/mktime.c (SHR): New macro, which is a portable
84259         substitute for >> that should work even on Crays.
84260         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84261         Problem reported by Mark D. Baushke in
84262         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84263         * lib/getdate.y (SHR): Likewise.
84264         (tm_diff): Use it.
84265         * lib/strftime.c (SHR): Likewise.
84266         (tm_diff): Use it.
84267         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84268         quote_these_too, so that right shifts are well defined.  All uses
84269         changed.
84270
84271 2004-11-10  Jim Meyering  <jim@meyering.net>
84272
84273         Ensure that no close failure goes unreported.
84274         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84275         return early when it seems there's nothing to flush.
84276         Don't include __fpending.h.
84277
84278 2004-11-10  Jim Meyering  <jim@meyering.net>
84279
84280         * modules/closeout (Depends-on): Remove fpending.
84281
84282 2004-11-10  Jim Meyering  <jim@meyering.net>
84283
84284         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84285
84286 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84289         gl_FUNC_STRFTIME.
84290         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84291         and AC_REQUIRE when possible, to avoid duplicate checks.
84292         Check for <wchar.h>.
84293
84294 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84295
84296         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84297
84298 2004-11-09  Bruno Haible  <bruno@clisp.org>
84299
84300         * m4/sockpfaf.m4: New file.
84301
84302 2004-11-05  Bruno Haible  <bruno@clisp.org>
84303
84304         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84305         Reported by Mark D. Baushke <mdb@cvshome.org>.
84306
84307 2004-11-04  Bruno Haible  <bruno@clisp.org>
84308
84309         2004-09-11  Bruno Haible  <bruno@clisp.org>
84310                 * allocsa.valgrind: New file.
84311         2004-02-06  Bruno Haible  <bruno@clisp.org>
84312                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84313                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84314                 Reported by Christopher Seip <chris.seip@hp.com>.
84315
84316 2004-11-04  Bruno Haible  <bruno@clisp.org>
84317
84318         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84319         (Makefile.am): Distribute it.
84320
84321 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84324         with errno == ERANGE if the buffer is too small.
84325         Problem reported by Mark D. Baushke.
84326
84327 2004-11-03  Albert Chin  <china@thewrittenword.com>
84328             Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84331         equivalent, substitute $ac_type for equivalent type rather than
84332         blindly using uint32_t *always* which won't work if uint32_t is not
84333         available.  Define _UINT32_T to work around typedef of uint32_t if
84334         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84335         2.5.1.
84336
84337 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84338
84339         * m4/jm-macros.m4: Sync from coreutils.
84340         (gl_MACROS): Check for mbrlen, for pathchk.
84341         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84342
84343 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * lib/xreadlink.c (MAXSIZE): New macro.
84346         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84347         size does not exceed MAXSIZE.  Avoid cast.
84348         As suggested by Mark D. Baushke in
84349         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84350         if readlink fails with buffer size just under MAXSIZE, try again
84351         with MAXSIZE.
84352
84353 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84354
84355         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84356
84357 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84358         and  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84361         (get_date): Overparenthesize to avoid GCC warning.
84362
84363 2004-11-02  Bruno Haible  <bruno@clisp.org>
84364
84365         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84366         returns void.
84367
84368 2004-11-02  Bruno Haible  <bruno@clisp.org>
84369
84370         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84371         function returns void.
84372
84373 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84374
84375         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84376         fflush_unlocked, flockfile, funlockfile, funlockfile,
84377         fputs_unlocked, putc_unlocked.
84378
84379 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84380
84381         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84382         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84383         already declared.
84384
84385 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * modules/getdate (Files): Add doc/getdate.texi.
84388         (Depends-on): Add setenv, xalloc.
84389
84390 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84391
84392         * lib/getdate.y: Add support for TZ="foo" within a date string.
84393         Fix some bugs near time_t boundaries.  Reject dates with
84394         out-of-range components, e.g., "Sept 31".
84395         Include <stdlib.h>, "setenv.h", "xalloc.h".
84396         (ISDIGIT_LOCALE): Remove; unused.
84397         Note that the TZ and time functions used here are not reentrant.
84398         (mktime_ok, get_tz): New functions.
84399         (TZBUFSIZE): New constant.
84400         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84401         This requires that we sometimes generate our own TZ="XXX..." setting.
84402
84403 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84404
84405         * doc/getdate.texi: New file, from coreutils with modifications for
84406         the new TZ parsing.
84407
84408 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84409
84410         * lib/mktime.c (not_equal_tm): Remove redundant check.
84411
84412 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84413
84414         * modules/regex (lib_SOURCES): Add regex.c.
84415         Reported by James Youngman in
84416         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84417
84418 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84419
84420         * lib/getdate.y: Use Bison 1.875 features, and some minor
84421         code cleanups.  This change does not affect semantics.
84422         Don't include <stdlib.h>; no longer needed.
84423         Don't include unlocked-io.h; only the "#if TEST" code uses
84424         stdio, and performance isn't crucial there.
84425         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84426         Bison 1.875 features as described below.
84427         All uses of "PC." replaced by "pc->".
84428         (YYSTYPE): Add a forward declaration.
84429         (yylex, yyerror): Use full prototypes in forward decls.
84430         Use "%pure-parser" rather than obsolescent "%pure_parser".
84431         Use %parse-param and %lex-param instead of obsolescent
84432         YYPARSE_PARAM and YYLEX_PARAM.
84433         (meridian_table, month_and_day_table, time_units_table,
84434         relative_time_table, time_zone_table, military_table,
84435         lookup_zone, lookup_word, get_date):
84436         Use NULL instead of 0 where appropriate.
84437         (to_hour): Avoid abort (), to avoid a dependency on
84438         stdlib.h.
84439         (yyerror, yylex): Now accepts parser_control * arg.
84440         (main) [TEST]: Use '\0' rather than 0 for char.
84441
84442 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84443
84444         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84445
84446 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84447
84448         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84449         It's now the caller's responsibility to handle the case where
84450         !HAVE_GETPAGESIZE && !defined getpagesize.
84451
84452         * lib/mktime.c (leapyear): Arg is long int, not int.
84453
84454 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84455
84456         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84457
84458 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84459
84460         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84461         missing.  Problem reported by James Youngman.
84462
84463 2004-10-16  Simon Josefsson  <jas@extundo.com>
84464
84465         * gnulib-tool: Fix comments.  Fix parse problem.
84466         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84467
84468 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84471         implementation of getopt_long.  Problem reported by Alexander Taler in:
84472         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84473
84474 2004-10-15  Bruno Haible  <bruno@clisp.org>
84475
84476         * gnulib-tool: Untabify. Initialize supplied_libname.
84477         (func_usage): More homogenous output.
84478         (func_modules_transitive_closure, func_modules_to_filelist,
84479         func_emit_lib_Makefile_am): New functions.
84480         (func_import): New function, extracted from big case statement. Use
84481         func_get_license, func_modules_transitive_closure,
84482         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84483         opt_lgpl. Don't use test -a, as it's not portable.
84484         (func_create_testdir): Use func_modules_transitive_closure,
84485         func_modules_to_filelist, func_emit_lib_Makefile_am.
84486
84487 2004-10-15  Bruno Haible  <bruno@clisp.org>
84488
84489         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84490
84491 2004-10-15  Bruno Haible  <bruno@clisp.org>
84492
84493         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84494         the portions belonging to each module.
84495         Suggested by Derek Robert Price <derek@ximbiot.com>.
84496
84497 2004-10-12  Simon Josefsson  <jas@extundo.com>
84498
84499         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84500         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84501         to real functions.
84502
84503 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84504
84505         * modules/vsnprintf: New file.
84506
84507 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84508
84509         * m4/vsnprintf.m4: New file.
84510
84511 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84512
84513         * lib/vsnprintf.h: New file.
84514         * lib/vsnprintf.c: New file.
84515
84516 2004-10-11  Bruno Haible  <bruno@clisp.org>
84517
84518         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84519         vsnprintf.
84520
84521 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84522
84523         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84524
84525 2004-10-07  Bruno Haible  <bruno@clisp.org>
84526
84527         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84528         fits into the provided buffer.
84529
84530 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         * lib/diacrit.c, diacrit.h: Add GPL notice.
84533
84534         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84535         notice.
84536         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84537         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84538         This avoids a potential constant-folding bug.
84539
84540 2004-10-05  Bruno Haible  <bruno@clisp.org>
84541
84542         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84543         for the declaration of strsep.
84544
84545 2004-10-05  Bruno Haible  <bruno@clisp.org>
84546
84547         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84548
84549 2004-10-04  Simon Josefsson  <jas@extundo.com>
84550
84551         * modules/memmem: New file.
84552         * tests/test-memmem.c: New file.
84553         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84554
84555 2004-10-04  Simon Josefsson  <jas@extundo.com>
84556
84557         * m4/memmem.m4: New file.
84558
84559 2004-10-04  Simon Josefsson  <jas@extundo.com>
84560
84561         * lib/memmem.h: New file.
84562         * lib/memmem.c: New file, taken from glibc.
84563
84564 2004-10-04  Simon Josefsson  <jas@extundo.com>
84565
84566         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84567         '#ifdef USE_UNLOCKED_IO'.
84568
84569 2004-10-04  Simon Josefsson  <jas@extundo.com>
84570
84571         * config/srclist.txt: Add memmem from glibc.
84572
84573 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84574
84575         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84576
84577         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84578         modules/exclude, modules/getdate, modules/getline,
84579         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84580         modules/getusershell, modules/linebuffer, modules/md5,
84581         modules/mountlist, modules/posixtm, modules/readtokens,
84582         modules/readutmp, modules/regex, modules/sha1,
84583         modules/version-etc, modules/yesno:
84584         Remove dependency on unlocked-io.
84585
84586 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84587
84588         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84589
84590         * m4/unlocked-io.m4: Add copyright notice.
84591         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84592
84593 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84594
84595         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84596         * lib/xmalloc.c (xmemdup): Likewise.
84597         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84598         XFREE): Remove these long-obsolescent macros.
84599         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84600         * lib/xstrdup.c: Remove.
84601
84602         * lib/regex.c (re_comp): Cast gettext return value to char *,
84603         Problem reported by Martin Neitzel via Mark D. Baushke.
84604
84605 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84608         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84609         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84610         regex.c, sha1.c, version-etc.c, yesno.c:
84611         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84612         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84613         the includer's responsibility.
84614
84615         Sync from coreutils.
84616
84617         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84618         points to the start of a string, as the C Standard says the
84619         resulting behavior is undefined.
84620
84621         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84622         simple -> simple_backups, numbered_existing ->
84623         numbered_existing_backups, numbered -> numbered_backups
84624         to avoid shadowing problems.  All uses changed.
84625         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84626         * lib/backupfile.c (check_extension, numbered_backup):
84627         Rename locals to avoid shadowing 'basename'.
84628         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84629         once.
84630
84631         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84632         * lib/.cvsignore: Add getopt.h.
84633
84634 2004-10-04  Bruno Haible  <bruno@clisp.org>
84635
84636         * modules/README: New file.
84637         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84638         not a module.
84639
84640 2004-10-02  Jim Meyering  <jim@meyering.net>
84641
84642         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84643
84644 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84645
84646         * modules/strsep: New file.
84647
84648 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84649
84650         * m4/strsep.m4: New file.
84651
84652 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84653
84654         * lib/strsep.h: New file.
84655         * lib/strsep.c: New file.
84656
84657 2004-10-01  Simon Josefsson  <jas@extundo.com>
84658
84659         * lib/snprintf.c (snprintf): Handle size==0.
84660
84661 2004-10-01  Simon Josefsson  <jas@extundo.com>
84662             Bruno Haible  <bruno@clisp.org>
84663
84664         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84665         (snprintf): Declare 'args'.
84666
84667 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * lib/snprintf.c: Remove comments as to why each header is needed.
84670
84671 2004-10-01  Bruno Haible  <bruno@clisp.org>
84672
84673         * MODULES.html.sh: Add strsep.
84674
84675 2004-09-30  Simon Josefsson  <jas@extundo.com>
84676
84677         * modules/snprintf: New file.
84678
84679 2004-09-30  Simon Josefsson  <jas@extundo.com>
84680
84681         * m4/snprintf.m4: New file.
84682
84683 2004-09-30  Simon Josefsson  <jas@extundo.com>
84684
84685         * lib/snprintf.h, lib/snprintf.c: New files.
84686
84687 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84688
84689         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84690         (hol_entry_help): Never translate an empty string.
84691         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84692         * lib/argp.h (OPTION_NO_TRANS): New option.
84693
84694 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84695
84696         * modules/argp (Maintainer): Replace Simon Josefsson
84697         by Sergey Poznyakoff.
84698
84699 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84700
84701         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84702         changes merged back into glibc.
84703
84704 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84705
84706         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84707
84708 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84709
84710         * lib/xvasprintf.c: Include xalloc.h.
84711         (xvasprintf): Use xalloc_die, not xmalloc_die.
84712
84713 2004-09-29  Bruno Haible  <bruno@clisp.org>
84714
84715         * modules/alloca-opt: New file, derived from modules/alloca.
84716         * modules/allocsa: Depend on alloca-opt instead of alloca.
84717         * modules/setenv: Likewise.
84718         * modules/vasnprintf: Likewise.
84719         * MODULES.html.sh: Add alloca-opt.
84720
84721 2004-09-28  Simon Josefsson  <jas@extundo.com>
84722
84723         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84724         LGPL, and to replace license template from GPL to LGPL.
84725
84726 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84727
84728         * modules/dummy: Change license to LGPL.
84729
84730 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84733
84734 2004-09-24  Simon Josefsson  <jas@extundo.com>
84735
84736         * modules/minmax (License): Change from GPL to LGPL.
84737
84738 2004-09-23  Simon Josefsson  <jas@extundo.com>
84739
84740         * gnulib-tool (--import): Typo.
84741
84742 2004-09-23  Simon Josefsson  <jas@extundo.com>
84743
84744         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84745
84746 2004-09-22  Bruno Haible  <bruno@clisp.org>
84747
84748         * modules/*: Add 'License' field.
84749         * gnulib-tool: Accept --extract-license option.
84750         (func_get_license): New function.
84751
84752 2004-09-21  Bruno Haible  <bruno@clisp.org>
84753
84754         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84755         Reported by Simon Josefsson.
84756
84757 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84758
84759         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84760         gl_AC_TYPE_LONG_LONG.
84761
84762 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84763
84764         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84765
84766 2004-09-18  Simon Josefsson  <jas@extundo.com>
84767         and  Paul Eggert  <eggert@cs.ucla.edu>
84768
84769         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84770         calls with autoreconf.  Define GL_LIB.
84771
84772 2004-09-14  Karl Berry  <karl@gnu.org>
84773
84774         * config/srclist.txt: unsync setenv.c, sigh.
84775
84776 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84777
84778         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84779         Problem reported by Bruno Haible in:
84780         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84781
84782 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * config/srclist.txt: Comment out argp-pvh.c.
84785
84786 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84789         in case some system header has #define'd it.  Problem reported by
84790         Soeren D. Schulze in
84791         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84792
84793 2004-09-09  Karl Berry  <karl@gnu.org>
84794
84795         * regex.[ch]: delete from the root.  These were supposed to be
84796                 synced with emacs cvs, but this has not happened for about
84797                 a year, and anyway nothing else uses emacs regex.[ch].
84798                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84799                 lib/regex[.ch] is untouched.
84800
84801 2004-09-09  Bruno Haible  <bruno@clisp.org>
84802
84803         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84804
84805 2004-09-09  Bruno Haible  <bruno@clisp.org>
84806
84807         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84808         modifications.
84809         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84810
84811 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84812
84813         * modules/xvasprintf: New file.
84814         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84815
84816 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84817
84818         * lib/xvasprintf.h: New file.
84819         * lib/xvasprintf.c: New file.
84820         * lib/xasprintf.c: New file.
84821
84822 2004-09-08  Bruno Haible  <bruno@clisp.org>
84823
84824         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84825
84826 2004-09-08  Bruno Haible  <bruno@clisp.org>
84827
84828         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84829         length is > INT_MAX.
84830         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84831         more.
84832
84833 2004-09-08  Bruno Haible  <bruno@clisp.org>
84834
84835         * lib/stdint_.h: New file, taken from GNU clisp.
84836
84837 2004-09-08  Bruno Haible  <bruno@clisp.org>
84838             Oskar Liljeblad  <oskar@osk.mine.nu>
84839
84840         * modules/stdint: New file.
84841         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84842
84843 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84844
84845         Import from coreutils.
84846         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84847         strings on unbounded length.  alloca's performance benefits aren't
84848         that important here.
84849         (V_STRDUP): Remove.
84850         (parse_with_separator): New function, with most of the internals
84851         of the old parse_user_spec.  Allow user to omit both user and group,
84852         for compatibility with FreeBSD.
84853         Clone only the user name, not the entire spec.
84854         Do not set *uid, *gid unless entirely successful.
84855         Avoid memory leak in some failing cases.
84856         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84857         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84858         (parse_user_spec): Rewrite to use parse_with_separator.
84859
84860 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84861
84862         * modules/userspec: Don't depend on alloca.
84863
84864 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84867
84868 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84871         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84872         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84873
84874 2004-08-16  Simon Josefsson  <jas@extundo.com>
84875
84876         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84877         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84878         Add --dry-run for --import.
84879         Let user provided command line parameters override configure.ac
84880         settings.
84881
84882 2004-08-12  Simon Josefsson  <jas@extundo.com>
84883
84884         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84885         as discussed with Paul Eggert in threads rooted at
84886         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84887         and
84888         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84889         Before, the test was empty, and relied on ELIDE_CODE in source
84890         code.)
84891         (gl_PREREQ_GETOPT): New macro.
84892         (gl_GETOPT): Use them.
84893
84894 2004-08-12  Simon Josefsson  <jas@extundo.com>
84895
84896         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84897         * lib/getopt_.h: Renamed from getopt.h.
84898
84899 2004-08-12  Simon Josefsson  <jas@extundo.com>
84900
84901         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84902         Change default library name from libfoo to libgnu.
84903         Now, if you have a configure.ac that says:
84904                 gl_SOURCE_BASE(gl)
84905                 gl_M4_BASE(gl/m4)
84906                 gl_MODULES(error getopt etcetera)
84907                 gl_INIT
84908         you can import all you need by running:
84909                 ../gnulib/gnulib-tool --import
84910
84911         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84912         (Makefile.am): Rewrite, use logic from argz.
84913         (Include): Use <getopt.h> instead of "getopt.h".
84914
84915 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * modules/argp (Files): Add m4/unlocked-io.m4.
84918         (Depends-on): Add extensions.
84919
84920 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84921
84922         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84923         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84924         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84925         Check for program_invocation_name, program_invocation_short_name,
84926         flockfile, funlockfile, features.h, _getopt_long_only_r.
84927
84928 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84929
84930         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84931         its complicated substitute.
84932         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84933         and program_invocation_name.
84934         (__argp_basename) [!_LIBC]: Remove; the only use was
84935         replaced by its body.
84936         (__argp_short_program_name): Change condition from
84937         !defined __argp_short_program_name to
84938         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84939         to match argp-namefrob.h.
84940         (__argp_failure): Don't assume strerror_r returns char *.
84941         * lib/argp-parse.c (N_): Define unconditionally.
84942         (argp_default_options): Fill out initializers with 0 to avoid
84943         gcc warnings.
84944
84945 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84948         getopt1.c.
84949
84950 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84951
84952         Merge from coreutils.
84953
84954         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84955
84956         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84957         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84958
84959 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84960
84961         Merge from coreutils.
84962
84963         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84964         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84965         for Reliant Unix 5.43.
84966
84967         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84968         (union fooround): Use uintmax_t, not long int.
84969         The rest is a merge from libc:
84970         [defined _LIBC]: Include <shlib-compat.h>.
84971         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84972
84973         * lib/settime.c (settime): Recode to avoid warning with
84974         Sun Forte C 6U2.
84975
84976         * lib/strverscmp.c: Convert to UTF-8.
84977
84978 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84979
84980         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84981         m4/uintmax_t.m4.
84982
84983 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * modules/xalloc-die: New file.
84986         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84987
84988         * modules/md5 (Files): Add m4/uint32_t.m4.
84989         * modules/sha1: Renamed from modules/sha.
84990         (Files):
84991         Rename lib/sha.h to lib/sha1.h.
84992         Rename lib/sha.c to lib/sha1.c.
84993         Rename m4/sha.m4 to m4/sha1.m4.
84994         (lib_SOURCES): Likewise.
84995         (configure.ac): Rename gl_SHA to gl_SHA1.
84996         (Include): sha.h -> sha1.h.
84997
84998 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84999
85000         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85001         * m4/sha1.m4: Renamed from sha.m4.
85002         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85003
85004 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85005
85006         * lib/obstack.h (obstack_empty_p):
85007         Don't assume that chunk->contents is suitably aligned.
85008         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85009         Likewise. Problem reported by Benno in
85010         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85011
85012         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85013         readable.  This could be improved further but it'd take some work.
85014
85015 2004-08-08  Simon Josefsson  <jas@extundo.com>
85016
85017         * modules/xgethostname (Depends-on): Remove exit and error (not
85018         used).
85019
85020         * modules/getpass-gnu: Add getpass.h.
85021         (Depends-on): Add stdbool.
85022         * modules/getpass: Add getpass.h.
85023
85024 2004-08-08  Simon Josefsson  <jas@extundo.com>
85025
85026         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85027         Check getpass declaration.
85028
85029 2004-08-08  Simon Josefsson  <jas@extundo.com>
85030
85031         * lib/xgethostname.c: Don't include error.h (not used).
85032
85033         * lib/getpass.h: Add.
85034         * lib/getpass.c: Include getpass.h first.
85035
85036 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         * lib/xalloc-die.c: New file.
85039         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85040         All uses removed.
85041         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85042         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85043         xalloc-die.c.
85044         (_, N_, xalloc_die): Move to xalloc-die.c.
85045         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85046         so that we needn't mess with xalloc_msg_memory_exhausted.
85047
85048         * lib/sha1.h: Renamed from sha.h.
85049         (SHA1_H): Renamed from _SHA_H.
85050         (sha1_ctx): Renamed from sha_ctx.
85051         (sha1_init_ctx): Renamed from sha_init_ctx.
85052         (sha1_process_block): Renamed from sha_process_block.
85053         (sha1_process_bytes): Renamed from sha_process_bytes.
85054         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85055         (sha1_read_ctx): Renamed from sha_read_ctx.
85056         (sha1_stream): Renamed from sha_stream.
85057         (sha1_buffer): Renamed from sha_buffer.
85058         * lib/sha1.c: Likewise; renamed from sha.c.
85059         Do not include <sys/types.h>.
85060         Include <stddef.h> rather than <stdlib.h>.
85061
85062 2004-08-08  Bruno Haible  <bruno@clisp.org>
85063
85064         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85065         FILESYSTEM_PREFIX_LEN.
85066         * lib/progreloc.c: Likewise.
85067         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85068
85069 2004-08-06  Simon Josefsson  <jas@extundo.com>
85070
85071         * modules/progname (Depends-on): Don't depend on stdbool.
85072
85073 2004-08-06  Simon Josefsson  <jas@extundo.com>
85074
85075         * modules/getsubopt: New file.
85076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85077         getsubopt.
85078
85079 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         More merge from coreutils.
85082
85083         * m4/utimens.m4, m4/utimecmp.m4: New files.
85084         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85085         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85086         prereq.m4, sha.m4: Import changes from coreutils.
85087
85088 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         More merge from coreutils.
85091         * modules/raise, modules/readtokens0, modules/utimens:
85092         * modules/utimecmp, module/xnanosleep: New files.
85093         * modules/strftime: Add lib/strftime.h.
85094         Change include from <time.h> to "strftime.h".
85095         * modules/yesno: Add lib/yesno.h.
85096         * modules/backupfile: Remove lib/addext.c.
85097         * modules/euidaccess: Add stat-macros.h.
85098         * modules/canonicalize, modules/euidaccess,
85099         modules/filemode, modules/lchown, modules/makepath,
85100         modules/rmdir, modules/stat: Likewise.
85101
85102 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         Merge from tar.
85105         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85106         SIZE_MAX is a valid preprocessor constant.
85107         (__argp_basename): Change from "#ifndef _LIBC"
85108         to "#ifndef __argp_short_program_name", so that
85109         we don't compile these functions for tar.
85110
85111         More merges from coreutils.
85112         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85113         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85114         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85115         * lib/addext.c: Remove; no longer needed.
85116         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85117         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85118         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85119         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85120         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85121         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85122         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85123         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85124         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85125         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85126         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85127         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85128         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85129         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85130         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85131         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85132         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85133         Import changes from coreutils.
85134
85135 2004-08-05  Simon Josefsson  <jas@extundo.com>
85136
85137         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85138
85139 2004-08-05  Simon Josefsson  <jas@extundo.com>
85140
85141         * m4/getsubopt.m4: New file.
85142
85143 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85144
85145         Merge from coreutils.
85146
85147         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85148         * m4/getcwd-path-max.m4: New files.
85149
85150         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85151         FILESYSTEM_PREFIX_LEN ->
85152         FILE_SYSTEM_PREFIX_LEN.
85153         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85154         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85155         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85156         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85157
85158         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85159         prerequisite modules now handle the DOS stuff.
85160         Don't check for unistd.h.
85161
85162 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         Merge from coreutils.
85165
85166         * lib/.gdb-history: Remove; this doesn't belong here.
85167
85168         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85169         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85170         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85171         * lib/getcwd.c: New files.
85172
85173         * lib/dirname.h: Include <stdbool.h>.
85174         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85175         for consistency with POSIX terminology.  All uses changed.
85176         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85177         (strip_trailing_slashes): Use bool for booleans.
85178         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85179
85180         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85181         sometimes returns a positive errno value even when it succeeds.
85182         (print_errno_message) [!LIBC]: Fall back on strerror if
85183         __strerror_r fails.
85184
85185         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85186         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85187         (longest_relative_suffix): New function.
85188         (path_concat): Use it.  Assume first argument is not NULL.
85189         Port to DOS.  Omit redundant separators.
85190         Report an error instead of returning NULL.
85191         Use mempcpy instead of memcpy.
85192         (xpath_concat): Remove: not declared or used.
85193
85194         * lib/same.h: Include <stdbool.h>
85195         (same_name): Return bool, not int.
85196         * lib/same.c (same_name): Likewise.
85197         (errno): Don't declare; we assume C89 or better now.
85198
85199         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85200         if not already defined.
85201
85202         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85203         * lib/dup-safer.c (errno): Likewise.
85204
85205 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         Merge from coreutils.
85208         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85209         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85210         * modules/path-concat: Don't depend on strdup.
85211
85212 2004-08-03  Simon Josefsson  <jas@extundo.com>
85213
85214         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85215         * lib/progname.h: Don't include stdbool.h.
85216
85217 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85220         * MODULES.html.sh (func_all_modules): Remove fatal.
85221
85222 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85223
85224         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85225
85226 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85227
85228         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85229         working.
85230
85231 2004-08-02  Simon Josefsson  <jas@extundo.com>
85232
85233         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85234         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85235         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85236
85237 2004-08-01  Simon Josefsson  <jas@extundo.com>
85238
85239         * lib/xgetdomainname.c: Include stdlib.h, for free().
85240
85241 2004-07-19  Bruno Haible  <bruno@clisp.org>
85242
85243         * MODULES.html.sh (func_all_modules): Add dummy.
85244
85245 2004-07-16  Simon Josefsson  <jas@extundo.com>
85246
85247         * modules/dummy: New file.
85248
85249 2004-07-16  Simon Josefsson  <jas@extundo.com>
85250
85251         * lib/dummy.c: New file.
85252
85253 2004-07-16  Bruno Haible  <bruno@clisp.org>
85254
85255         * lib/backupfile.h: Add extern "C" for C++.
85256         * lib/closeout.h: Likewise.
85257         * lib/copy-file.h: Likewise.
85258         * lib/findprog.h: Likewise.
85259         * lib/full-write.h: Likewise.
85260         * lib/pathname.h: Likewise.
85261         * lib/progname.h: Likewise.
85262         * lib/stpcpy.h: Likewise.
85263         * lib/stpncpy.h: Likewise.
85264         * lib/strcase.h: Likewise.
85265         * lib/strstr.h: Likewise.
85266         * lib/xalloc.h: Likewise.
85267
85268         * lib/mbswidth.h: Add extern "C" for C++.
85269         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85270
85271 2004-07-13  Robert Millan  <robertmh@gnu.org>
85272
85273         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85274
85275 2004-07-09  Simon Josefsson  <jas@extundo.com>
85276
85277         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85278         failed without this.)
85279
85280 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85281
85282         * modules/chown (Files): Add lib/fchown-stub.c, since
85283         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85284
85285 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85286
85287         * lib/fchown-stub.c: New file.
85288
85289 2004-06-24  Jim Meyering  <jim@meyering.net>
85290
85291         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85292
85293 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85294
85295         * modules/argz: Omit "#include".
85296
85297         * MODULES.html.sh (func_all_modules): Add calloc, to match
85298         2004-06-01 addition of calloc module.
85299
85300 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85301
85302         * m4/argz.m4: New file, which is autoupdated from libtool.
85303
85304 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85307         libtool.
85308
85309 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * config/srclist-update: Don't insist on "USA." before the
85312         close-comment, as libtool omits the period and puts the */ on a
85313         separate line.
85314         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85315         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85316
85317 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85318
85319         * modules/argz: New file.
85320         * MODULES.html.sh (func_all_modules): Add argz.
85321
85322 2004-06-12  Jim Meyering  <jim@meyering.net>
85323         and  Paul Eggert  <eggert@cs.ucla.edu>
85324
85325         * modules/hash (Files): Add lib/xalloc.h.
85326         * modules/pipe (Depends-on): Add wait-process.
85327         * modules/stat (Depends-on): Add xalloc.
85328         * modules/userspec (Files): Add lib/userspec.h.
85329         * modules/xstrto
85330
85331         Upgrade from gettext-0.13.
85332         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85333         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85334         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85335
85336 2004-06-10  Jim Meyering  <jim@meyering.net>
85337
85338         * lib/calloc.c: New file.
85339
85340 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * lib/getdate.y (yylex): Allow space between sign and number.
85343         Problem reported by Dan Jacobson.
85344
85345 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85346
85347         Merge from coreutils CVS.
85348
85349         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85350         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85351         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85352         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85353         xstrtol.m4: Fix copyright date and/or serial number.
85354
85355         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85356         See if we need an fchown replacement.
85357         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85358         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85359         and use the replacement function if we detect either defect.
85360
85361         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85362         gl_UTIMECMP.
85363
85364 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85365         and  Jim Meyering  <jim@meyering.net>
85366
85367         Merge from coreutils CVS.
85368
85369         * lib/stat-macros.h: New file, with contents from file-type.h
85370         and coreutils' system.h.
85371         * lib/file-type.c: Include "stat-macros.h".
85372         * lib/file-type.h (file_type): Move all macro definitions to new file,
85373         stat-macros.h.
85374
85375         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85376         Wrap old code with this conditional.
85377         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85378         function that does not dereference symlinks.
85379         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85380
85381         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85382         dependency problems.
85383         (xreadlink): Accept new arg SIZE, for efficiency.
85384         All decls and uses changed.
85385         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85386
85387         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85388         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85389
85390         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85391         sysexits.h.
85392
85393 2004-06-01  Jim Meyering  <jim@meyering.net>
85394
85395         * m4/calloc.m4: New file.
85396
85397 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85400         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85401         Also, fix a typo in a diagnostic.
85402
85403 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85406         or AC_FUNC_REALLOC.
85407
85408 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85411         macros to be defined.
85412         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85413         the allocator returns NULL because the requested size is zero.
85414
85415 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85416
85417         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85418         var.  Add comment explaining why libc still defines it.  This
85419         merges the following patch from glibc:
85420         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85421
85422 2004-05-20  Andreas Schwab  <schwab@suse.de>
85423
85424         * m4/free.m4: Replace free if it not known to work, not the other
85425         way round.
85426
85427 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85430         present in glibc since revision 1.1 of this file.
85431         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85432         obstack_alignment_mask, obstack_alloc, obstack_base,
85433         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85434         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85435         obstack_grow0, obstack_init, obstack_int_grow,
85436         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85437         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85438         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85439         nonexistent functions.
85440
85441 2004-05-18  Karl Berry  <karl@gnu.org>
85442
85443         * config/srclist.txt: break link for vasnprintf.c.
85444
85445 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85446
85447         Port obstack to the AS/400, where pointers are 16 bytes wide and
85448         you cannot cast an integer to a valid pointer.  This patch is
85449         currently waiting to be integrated into glibc; see
85450         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85451
85452         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85453         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85454         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85455         (struct obstack): temp member is now a union of a pointer and
85456         an integer, instead of an integer.  All integer uses changed.
85457         This does not affect the physical layout of struct obstack,
85458         except on hosts (like the AS/400) where the size or alignment of
85459         void * is greater than that of ptrdiff_t.
85460         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85461         __STDC__)]: Store temporary in pointer member of union, not
85462         integer member.
85463         * lib/obstack.c: Include <stddef.h>, for offsetof.
85464         (struct fooalign): Remove; it doesn't need a name.
85465         (union fooround): Change double to long double, and add void *.
85466         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85467         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85468         not a macro.  Hence the values are always int; so remove all
85469         casts-to-int in uses.
85470
85471 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85474         we can get this patch merged into glibc.
85475
85476 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85477             Paul Eggert  <eggert@cs.ucla.edu>
85478
85479         * m4/argp: Depend on alloca.
85480
85481 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85482             Paul Eggert  <eggert@cs.ucla.edu>
85483
85484         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85485         freecoding.
85486
85487 2004-05-17  Bruno Haible  <bruno@clisp.org>
85488
85489         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85490         precision that consists of a '.' followed by an empty digit string.
85491         Patch by Tor Lillqvist <tml@iki.fi>.
85492
85493 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85496         for backward compatibility with older code.  We need our own
85497         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85498         it under some other name, and our alloca.h will define it.
85499
85500 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85501             Derek Price  <derek@ximbiot.com>
85502
85503         * lib/alloca.c: Include <alloca.h>, to get our interface.
85504         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85505         include <alloca.h> first.  Use C89 prototype for alloca; this
85506         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85507         Use #elif for simplicity, since we can assume C89 now.
85508         Don't try to source the system alloca.h since it will not be found
85509         and to prevent recursively including its replacement.
85510         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85511         * lib/regex.c: Likewise.
85512
85513 2004-05-16  Derek Price  <derek@ximbiot.com>
85514             Paul Eggert  <eggert@cs.ucla.edu>
85515
85516         getline cleanup.  This changes the getndelim2 API: both order of
85517         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85518         no delimiter).
85519
85520         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85521         interface does that.
85522         (getline): Always use getdelim, so that we don't have two
85523         copies of this code.
85524         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85525         if available.
85526         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85527         (GETNDELIM2_MAXIMUM): New macro.
85528         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85529         instead of the old practice of delim2==0.  All callers changed.
85530         Return -1 on overflow, instead of returning junk.
85531         Do not set *linesize unless allocation succeeds.
85532         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85533         that we include sys/types.h.
85534         * lib/getnline.h: Likewise.
85535         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85536         (getndelim2): Reorder arguments.
85537         * lib/getnline.c (getnline, getndelim):
85538         Don't discard the NMAX argument.
85539         (getnline): Invoke getndelim, to avoid code duplication.
85540         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85541         of (size_t) -1 by callers of the getnline family.
85542
85543 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85544
85545         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85546         Check for gettimeofday.
85547         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85548         Check for settimeofday, stime.
85549
85550 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85551
85552         * lib/nanosleep.c (suspended): Change its type from int to
85553         sig_atomic_t volatile.
85554         (first_call): Make it private to rpl_nanosleep, and have it
85555         be zero initially as that's a bit faster.
85556         (my_usleep): Round up fractional times instead of truncating them,
85557         as this is the usual meaning for 'sleep'.
85558
85559         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85560         doesn't work.
85561         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85562         (ENOSYS): Define if not defined.
85563         (settime): Fall back on stime if it exists and settimeofday fails.
85564         But don't bother with fallbacks if a method fails with errno == EPERM.
85565
85566 2004-05-11  Jim Meyering  <jim@meyering.net>
85567
85568         Prior to this change, the save_cwd caller required read access to the
85569         current directory on most systems (ones with the fchdir function).
85570
85571         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85572         fails, try write-only, and finally, resort to using xgetcwd.
85573
85574 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * lib/obstack.c, obstack.h: Import changes from libc.
85577
85578 2004-04-28  Bruno Haible  <bruno@clisp.org>
85579
85580         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85581         also implicitly appends .exe to executables.
85582         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85583         accepts Windows pathnames.
85584         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85585         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85586         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85587         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85588         Reported by Derek Robert Price <derek@ximbiot.com>.
85589
85590 2004-04-21  Karl Berry  <karl@gnu.org>
85591
85592         * config/srclist.txt (localcharset.c): break sync.
85593
85594 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85595
85596         * m4/host-os.m4: Add a copyright notice.
85597
85598 2004-04-20  Jim Meyering  <jim@meyering.net>
85599
85600         Change UTILS_ to gl_ in AC_DEFINE'd names.
85601         Change utils_- and jm_-prefixed variables, too.
85602         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85603         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85605
85606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85607         Don't emit trailing blanks.
85608         Also rename jm_-prefixed variables to have gl_ prefix.
85609
85610         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85611         Also rename jm_-prefixed variables to have gl_ prefix.
85612
85613         * m4/jm-macros.m4: Reflect the renamings.
85614         * m4/prereq.m4: Likewise.
85615
85616 2004-04-20  Jim Meyering  <jim@meyering.net>
85617
85618         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85619         memory.
85620
85621 2004-04-20  Jim Meyering  <jim@meyering.net>
85622             Bruno Haible  <bruno@clisp.org>
85623
85624         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85625         memory when realloc fails.
85626
85627 2004-04-19  Jim Meyering  <jim@meyering.net>
85628
85629         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85630         now that readutmp.c may call `free (0)'.
85631
85632 2004-04-19  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85635         * m4/inttypes_h.m4: Likewise.
85636         * m4/stdint_h.m4: Likewise.
85637         * m4/intmax_t.m4: Likewise.
85638         * m4/uintmax_t.m4: Likewise.
85639
85640 2004-04-18  Jim Meyering  <jim@meyering.net>
85641
85642         * m4/prereq.m4: Don't forbid jm_ prefix.
85643
85644         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85645         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85646         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85647         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85648         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85649         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85650         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85651         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85652         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85653         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85654         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85655         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85656         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85657         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85658         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85659         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85660         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85661         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85662         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85663
85664 2004-04-18  Jim Meyering  <jim@meyering.net>
85665
85666         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85667         failure, don't leak memory and do call END_UTMP_ENT.
85668
85669 2004-04-16  Jim Meyering  <jim@meyering.net>
85670
85671         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85672         coreutils' stat program.
85673         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85674
85675 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85676
85677         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85678         C89.
85679         (CHAR_BIT): Remove, since we assume C89.
85680         Include <stdint.h> if available, as per current Autoconf CVS advice.
85681
85682 2004-03-31  Jim Meyering  <jim@meyering.net>
85683
85684         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85685         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85686         * m4/xalloc.m4: Likewise.
85687
85688 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85689
85690         Merge from coreutils.
85691
85692         * m4/inttostr.m4: New file.
85693         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85694         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85695         Require gl_CLOCK_TIME.
85696         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85697
85698 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85699
85700         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85701         not bool, to be more consistent with Unix conventions.
85702         Suggested by Bruno Haible.
85703
85704         Merge from coreutils.
85705
85706         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85707         * lib/umaxtostr.c: New files.
85708
85709         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85710         the usual <time.h> dance.
85711         (get_date): Change signature to support fractional time stamps.
85712         All callers changed.
85713         * lib/getdate.y: Include "getdate.h" first, as we can now
85714         assume C89 and don't need to worry about 'const'.
85715         Similarly, include "unlocked-io.h" near start, not in middle.
85716         Include <limits.h>.
85717         (textint.value): Use long int rather than int.
85718         (textint.digits): Use size_t rather than int.
85719         (BILLION, LOG10_BILLION): New constants.
85720         (parser_control): New member rel_ns.  Members day_ordinal,
85721         time_zone, month, day, hour, minutes, rel_year, rel_month,
85722         rel_day, rel_hour, rel_minutes, rel_seconds
85723         are now long int, not int.  Member seconds is now struct timespec,
85724         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85725         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85726         not int.
85727         (%union.intval): Now long int, not int.
85728         New member timespec.
85729         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85730         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85731         (spec): Now is a timespec or an item list.
85732         (timespec, items): New nonterminals.
85733         (time, rel, relunit, number, get_date):
85734         Add support for fractional seconds.
85735         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85736         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85737         (to_hour): First arg is now long int, not int.
85738         (to_year): Returns long int, not int.
85739         Don't treat year -70 like 70.
85740         (tm_diff): Returns long int, not int.
85741         (lookup_word): Use bool instead of int when appropriate.
85742         (yylex): Use size_t for count, not int.
85743         Detect overflow when parsing large integer constants.
85744         Add support for fractions.
85745         (get_date): Make pointers 'const' if possible.
85746         Use more-portable code to detect integer overflow.
85747         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85748         Don't use ctime; it's not reliable if the year has >4 digits.
85749
85750         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85751         This is for compatibility with BSD.
85752
85753         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85754         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85755         From coreutils' system.h.
85756
85757         * lib/userspec.c: Don't include "posixver.h".
85758         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85759         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85760         compatible extension.  Simplify code by removing a boolean int
85761         that was always nonzero if a string was nonnull.
85762
85763 2004-03-30  Jim Meyering  <jim@meyering.net>
85764
85765         Merge from coreutils.
85766
85767         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85768         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85769         on some systems one must include <grp.h> before it.
85770         Reported by Christian Krackowizer.
85771
85772 2004-03-30  Jim Meyering  <jim@meyering.net>
85773
85774         Merge from coreutils.
85775
85776         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85777
85778         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85779         an empty input stream.
85780
85781         * lib/readtokens.c: Include <stdbool.h>.
85782         (readtoken): Use `size_t' rather than int/long.
85783         All callers adjusted.
85784         Use `bool' rather than `int' where appropriate.
85785         Use memset rather than an explicit loop.
85786         Use x2nrealloc rather than xrealloc.
85787         Allow the use of `\0' as a delimiter.
85788         (readtokens): Likewise.
85789         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85790
85791 2004-03-30  Jim Meyering  <jim@meyering.net>
85792
85793         * m4/realloc.m4: Remove file, since now it does no more than
85794         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85795         the `configure.ac' section of module/realloc.
85796         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85797
85798 2004-03-30  Bruno Haible  <bruno@clisp.org>
85799
85800         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85801         nonnull.
85802
85803 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85804
85805         Merge changes to getloadavg.c from coreutils and Emacs.
85806
85807         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85808         Define to an expression, not to the empty string.
85809         Include cloexec.h and xalloc.h.
85810         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85811         Use set_cloexec_flag rather than rolling our own.
85812         * lib/cloexec.c, lib/cloexec.h: New files.
85813
85814 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85815
85816         * m4/cloexec.m4: New file.
85817
85818 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85819
85820         * lib/getopt.h: Sync with libc CVS.
85821
85822 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85823             Bruno Haible  <bruno@clisp.org>
85824
85825         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85826         mbswidth.
85827
85828 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85829             Bruno Haible  <bruno@clisp.org>
85830
85831         * lib/mbswidth.h: Include <wchar.h> only if
85832         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85833         <wchar.h>.
85834         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85835
85836 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85837
85838         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85839         Sync with libc CVS.
85840         * lib/getopt_int.h: New file, also synced from libc.
85841
85842 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85843
85844         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85845         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85846         Bring back getopt.c, getopt.h, getopt1.c.
85847
85848 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85849
85850         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85851         All uses changed.  Check for sa_sigaction member; this fixes
85852         a bug first reported by Jason Andrade in
85853         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85854
85855 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85856
85857         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85858         '#if' expressions.  Unlike the code it replaces, it does not
85859         depend on (defined _SC_PAGESIZE).  However, it does depend on
85860         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85861         first reported by Jason Andrade in
85862         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85863
85864 2004-02-25  Simon Josefsson  <jas@extundo.com>
85865
85866         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85867
85868 2004-02-25  Simon Josefsson  <jas@extundo.com>
85869
85870         * lib/strdup.h: New file.
85871         * lib/strdup.c: Include it.
85872         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85873         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85874
85875 2004-02-23  Karl Berry  <karl@gnu.org>
85876
85877         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85878         (from fencepost.gnu.org:/gd/gnuorg).
85879
85880 2004-02-23  Karl Berry  <karl@gnu.org>
85881
85882         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85883         * config/srclist.txt: add maintain/standards documents.
85884
85885 2004-02-18  Bruno Haible  <bruno@clisp.org>
85886
85887         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85888         Reported by Derek Robert Price <derek@ximbiot.com>.
85889
85890 2004-02-16  Karl Berry  <karl@gnu.org>
85891
85892         * config/mkinstalldirs, install-sh: update from automake.
85893
85894 2004-02-06  Karl Berry  <karl@gnu.org>
85895
85896         * m4/po.m4: update from gettext 0.14.1.
85897
85898 2004-02-06  Karl Berry  <karl@gnu.org>
85899
85900         * lib/config.charset: update from gettext 0.14.1.
85901
85902 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85903
85904         Add comments and code, prompted by suggestions from Bruno Haible
85905         for sh-quote.
85906         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85907         describing the enum quoting_style values.
85908         * lib/quotearg.c (quotearg_alloc): New function.
85909         (quotearg_buffer_restyled): Treat lone { and } as special.
85910         Treat = as special.  Work around bug with older shells
85911         that "see" a '\' that is really the 2nd byte of a multibyte char.
85912         Quote empty string with shell_quoting_style.
85913
85914 2004-02-03  Bruno Haible  <bruno@clisp.org>
85915
85916         * m4/pipe.m4: New file, from GNU gettext.
85917
85918 2004-02-03  Bruno Haible  <bruno@clisp.org>
85919
85920         * lib/pipe.h: New file, from GNU gettext.
85921         * lib/pipe.c: New file, from GNU gettext.
85922
85923 2004-01-27  Bruno Haible  <bruno@clisp.org>
85924
85925         * m4/execute.m4: New file, from GNU gettext.
85926
85927 2004-01-27  Bruno Haible  <bruno@clisp.org>
85928
85929         * lib/execute.h: New file, from GNU gettext.
85930         * lib/execute.c: New file, from GNU gettext.
85931         * lib/w32spawn.h: New file, from GNU gettext.
85932
85933 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85934
85935         Merge from diffutils.
85936
85937         * lib/file-type.c (file_type): Add typed memory objects.
85938         * lib/file-type.h (S_TYPEISTMO): New macro.
85939
85940         * lib/c-stack.h (c_stack_action): Remove argv argument.
85941         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85942         (die): Don't calculate message unless segv_action returns.
85943         (get_stack_location, min_address_from_argv, max_address_from_argv,
85944         volatile stack_base, volatile_stack_size): Remove.
85945         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85946         that every segmentation violation is a stack overflow.  (Ouch!)
85947         See Debian bug 136249 (still outstanding) for more info about why
85948         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85949
85950 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85951
85952         Exit-status fix from coreutils.
85953
85954         Use exit_failure consistently in place of EXIT_FAILURE,
85955         so that program exit statuses are consistent on failure.
85956
85957         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85958         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85959         * lib/argmatch.h: Comment fix to match the above.
85960         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85961         Now a macro referring to exit_failure, instead of a separate
85962         variable.  Include "exitfail.h" to get it.
85963         * lib/xstrtol.h: Include "exitfail.h".
85964         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85965
85966         * lib/long-options.c (parse_long_options): Use prototype
85967         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85968         for clarity.
85969
85970 2004-01-21  Jim Meyering  <jim@meyering.net>
85971
85972         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85973         so as not to conflict with a different-sized __mktime_internal
85974         function in GNU libc.
85975         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85976         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85977
85978 2004-01-20  Karl Berry  <karl@gnu.org>
85979
85980         * config/config.guess: update from config.
85981
85982         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85983
85984 2004-01-20  Bruno Haible  <bruno@clisp.org>
85985
85986         Safer stack allocation.
85987         * lib/setenv.c: Include allocsa.h.
85988         (alloca): Remove fallback definition.
85989         (freea): Remove macro.
85990         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85991         instead of freea.
85992
85993 2004-01-20  Bruno Haible  <bruno@clisp.org>
85994
85995         * m4/eealloc.m4: New file, from GNU gettext.
85996
85997 2004-01-20  Bruno Haible  <bruno@clisp.org>
85998
85999         * m4/allocsa.m4: New file, from GNU gettext.
86000
86001 2004-01-20  Bruno Haible  <bruno@clisp.org>
86002
86003         * lib/xallocsa.h: New file, from GNU gettext.
86004         * lib/xallocsa.c: New file, from GNU gettext.
86005
86006 2004-01-20  Bruno Haible  <bruno@clisp.org>
86007
86008         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86009
86010 2004-01-20  Bruno Haible  <bruno@clisp.org>
86011
86012         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86013         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86014         specially.
86015
86016 2004-01-20  Bruno Haible  <bruno@clisp.org>
86017
86018         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86019         patch.
86020
86021 2004-01-20  Bruno Haible  <bruno@clisp.org>
86022
86023         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86024
86025 2004-01-20  Bruno Haible  <bruno@clisp.org>
86026
86027         * lib/eealloc.h: New file.
86028
86029 2004-01-20  Bruno Haible  <bruno@clisp.org>
86030
86031         * lib/binary-io.h: Avoid warnings on Cygwin.
86032
86033 2004-01-20  Bruno Haible  <bruno@clisp.org>
86034
86035         * lib/allocsa.h: New file, from GNU gettext.
86036         * lib/allocsa.c: New file, from GNU gettext.
86037
86038 2004-01-18  Karl Berry  <karl@gnu.org>
86039
86040         * doc/gpl.texi, doc/lgpl.texi: new files.
86041
86042 2004-01-18  Karl Berry  <karl@gnu.org>
86043
86044         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86045         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86046
86047 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86048
86049         Merge from coreutils.
86050
86051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86052         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86053         (gl_DEFAULT_POSIX2_VERSION): Move
86054         the documentation from 'configure' into 'config.hin',
86055         so that 'configure --help' isn't burdened by it and
86056         we don't have to worry about its formatting there.
86057         Reword the documentation so that it's more succinct
86058         and can be run together into a single paragraph.
86059         * m4/same.m4 (gl_SAME): Check for pathconf.
86060
86061 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86062
86063         Merge from coreutils.
86064
86065         * lib/posixver.c: Include posixver.h.
86066
86067         * lib/same.c: Include <stdbool.h>, <limits.h>.
86068         (_POSIX_NAME_MAX): Define if not defined.
86069         (MIN): New macro.
86070         (same_name): If file names are silently truncated, report
86071         that the file names are the same if they are the same after
86072         the silent truncation.
86073
86074         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86075         conversion function.
86076         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86077         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86078         longer needed.
86079
86080 2004-01-15  Jim Meyering  <jim@meyering.net>
86081
86082         Merge from coreutils.
86083
86084         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86085         if no library is required.
86086         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86087         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86088         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86089         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86090         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86091         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86092         value, $ac_cv_search_crypt, if it's "none required".
86093         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86094         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86095         not gl_FUNC_GETLOADAVG.
86096         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86097         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86098
86099 2004-01-15  Jim Meyering  <jim@meyering.net>
86100
86101         Merge from coreutils.
86102
86103         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86104         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86105         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86106
86107         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86108         optional configure-time default.
86109
86110         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86111
86112         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86113
86114 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86115
86116         Merge from coreutils.
86117
86118         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86119         value, $ac_cv_search_nanosleep, if it's "none required".
86120
86121 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86122
86123         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86124         with like-named macro in fnmatch.c.
86125         (EXT): Use an internal constant instead.
86126
86127         Merge fnmatch patches from glibc.
86128         * lib/fnmatch.c (mbsinit): Remove define.
86129         Add libc_hidden_ver (__fnmatch, fnmatch).
86130         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86131         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86132
86133 2004-01-14  Karl Berry  <karl@gnu.org>
86134
86135         * config/install-sh: update from automake.
86136
86137 2004-01-13  Karl Berry  <karl@gnu.org>
86138
86139         * config/install-sh: update from automake.
86140
86141 2004-01-09  Karl Berry  <karl@gnu.org>
86142
86143         * config/install-sh: update from automake.
86144
86145 2004-01-05  Karl Berry  <karl@gnu.org>
86146
86147         * config/config.{sub,guess}: update from config.
86148
86149 2003-12-31  Karl Berry  <karl@gnu.org>
86150
86151         * config/depcomp: update from automake.
86152
86153 2003-12-14  Karl Berry  <karl@gnu.org>
86154
86155         * lib/config.charset: update from gettext-runtime.
86156
86157 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86158
86159         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86160         Bug reported by Alfred M. Szmidt.
86161
86162 2003-12-03  Bruno Haible  <bruno@clisp.org>
86163
86164         * m4/gettext.m4: Upgrade from gettext-0.13.
86165         * m4/po.m4: Upgrade from gettext-0.13.
86166         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86167         * m4/intmax.m4: New file, from gettext-0.13.
86168         * m4/printf-posix.m4: New file, from gettext-0.13.
86169
86170 2003-11-29  Karl Berry  <karl@gnu.org>
86171
86172         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86173
86174 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86175             Bruno Haible  <bruno@clisp.org>
86176
86177         * lib/printf-parse.h: Don't include sys/types.h.
86178         (ARG_NONE): New macro.
86179         (char_directive): Change type of *arg_index fields to size_t.
86180         * lib/printf-parse.c: Don't include sys/types.h.
86181         (SSIZE_MAX): Remove macro.
86182         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86183         Remove unnecessary overflow check.
86184         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86185         fields.
86186
86187 2003-11-25  Bruno Haible  <bruno@clisp.org>
86188
86189         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86190
86191 2003-11-25  Bruno Haible  <bruno@clisp.org>
86192
86193         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86194         gt_TYPE_SSIZE_T.
86195
86196 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86197
86198         * modules/alloca: Remove dependency on xalloc.
86199
86200 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86201
86202         * lib/alloca.c: Remove dependency on xalloc module.
86203         (xalloc_die): Remove.
86204         (memory_full) [!defined emacs]: New macro.
86205         [!defined emacs]: Don't include xalloc.h.
86206         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86207         address arithmetic overflows.  Change datatypes a bit to avoid
86208         unnecessary casts.
86209
86210 2003-11-22  Jim Meyering  <jim@meyering.net>
86211
86212         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86213         s/size/size_t/.
86214
86215 2003-11-21  Karl Berry  <karl@gnu.org>
86216
86217         * config/config.{sub,guess}: update from config.
86218
86219 2003-11-18  Karl Berry  <karl@gnu.org>
86220
86221         * config/config.{sub,guess}: update from config.
86222
86223         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86224
86225 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86226
86227         * README: Mention that S+T cannot overflow if S is the size of
86228         an existing object and T is sufficiently small.
86229
86230 2003-11-17  Jim Meyering  <jim@meyering.net>
86231
86232         On systems without utime and without a utimes function capable of
86233         dealing with a NULL struct utimbuf* argument, this utime replacement
86234         could -- in unusual circumstances -- leak a file descriptor.
86235         * lib/utime.c: Include <unistd.h> and <errno.h>.
86236         (utime_null): Be sure to close `fd' and to preserve errno.
86237         Reported by Geoff Collyer via Arnold Robbins.
86238
86239 2003-11-17  Bruno Haible  <bruno@clisp.org>
86240
86241         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86242         (Depends-on): Add xsize.
86243
86244 2003-11-17  Bruno Haible  <bruno@clisp.org>
86245
86246         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86247
86248 2003-11-17  Bruno Haible  <bruno@clisp.org>
86249
86250         * lib/vasnprintf.c (alloca): Remove fallback definition.
86251         (freea): Remove definition.
86252         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86253         Reported by Paul Eggert.
86254
86255 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86256             Bruno Haible  <bruno@clisp.org>
86257
86258         Protect against address arithmetic overflow.
86259         * lib/printf-args.h: Include stddef.h.
86260         (arguments): Change type of field 'count' to size_t.
86261         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86262         'unsigned int' where appropriate.
86263         * lib/printf-parse.h: Include sys/types.h.
86264         (char_directive): Change type of *arg_index fields to ssize_t.
86265         (char_directives): Change type of fields 'count', max_*_length to
86266         size_t.
86267         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86268         (SSIZE_MAX): Define fallback value.
86269         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86270         instead of 'int' where appropriate. Check a_allocated, d_allocated
86271         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86272         * lib/vasnprintf.c: Include xsize.h.
86273         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86274         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86275         overflow. Avoid wraparound when converting a width or precision from
86276         decimal to binary.
86277
86278 2003-11-16  Bruno Haible  <bruno@clisp.org>
86279
86280         Update from GNU gettext.
86281         * lib/printf-parse.c: Generalize to it can be compiled for wide
86282         strings.
86283         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86284         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86285         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86286         SNPRINTF): New macros.
86287         Don't include <alloca.h> if the file is used inside libintl.
86288         (local_wcslen): New function, for Solaris 2.5.1.
86289         (VASNPRINTF): Use it instead of wcslen.
86290
86291 2003-11-16  Bruno Haible  <bruno@clisp.org>
86292
86293         * lib/xsize.h (xmax): New function.
86294         (xsum, xsum3, xsum4): Declare as "pure" functions.
86295
86296 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86297
86298         * modules/xalloc (Files): Undo latest change, since xalloc.h
86299         no longer needs SIZE_MAX or PTRDIFF_MAX.
86300
86301 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86302
86303         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86304         gl_PTRDIFF_MAX.
86305
86306 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86307
86308         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86309         "return", to pacify some unknown compiler.  Problem reported
86310         by Joerg Schilling.
86311
86312 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86313
86314         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86315         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86316         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86317         heuristic is just as accurate as far as we know, and it removes a
86318         dependency on size_max.m4 and ptrdiff_max.m4.
86319
86320 2003-11-11  Bruno Haible  <bruno@clisp.org>
86321
86322         * modules/xsize (Files): Add m4/size_max.m4.
86323         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86324
86325 2003-11-11  Bruno Haible  <bruno@clisp.org>
86326
86327         * m4/size_max.m4: New file.
86328         * m4/ptrdiff_max.m4: New file.
86329         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86330         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86331         (gl_XALLOC): Invoke it.
86332
86333 2003-11-11  Bruno Haible  <bruno@clisp.org>
86334
86335         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86336         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86337         defined.
86338
86339 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86340
86341         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86342         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86343         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86344         From Bruno Haible.
86345         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86346         not (size_t) -1, since it's defined here.
86347
86348 2003-11-09  Karl Berry  <karl@gnu.org>
86349
86350         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86351
86352 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86353
86354         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86355         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86356         Reject sizes of exactly SIZE_MAX bytes.
86357         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86358         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86359
86360 2003-11-05  Bruno Haible  <bruno@clisp.org>
86361
86362         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86363         SIZE_MAX defined in <limits.h> on Solaris.
86364
86365 2003-11-04  Jim Meyering  <jim@meyering.net>
86366
86367         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86368         variable names, rather than @VAR@.
86369         * modules/poll: Likewise.
86370
86371 2003-11-04  Bruno Haible  <bruno@clisp.org>
86372
86373         * modules/xsize: New file.
86374         * modules/linebreak: Depend on xsize.
86375         * MODULES.html.sh (func_all_modules): Add xsize.
86376
86377 2003-11-04  Bruno Haible  <bruno@clisp.org>
86378
86379         * m4/xsize.m4: New file.
86380
86381 2003-11-04  Bruno Haible  <bruno@clisp.org>
86382
86383         * lib/xsize.h: New file.
86384         * lib/linebreak.c: Include xsize.h.
86385         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86386         argument for overflow.
86387         Suggested by Paul Eggert.
86388
86389 2003-11-03  Karl Berry  <karl@gnu.org>
86390
86391         * config/config.{guess,sub}: update from config.
86392
86393 2003-11-03  Jim Meyering  <jim@meyering.net>
86394
86395         * modules/userspec (lib_SOURCES): Add userspec.h.
86396         (Include): Add "userspec.h".
86397         Improve description.
86398
86399 2003-11-03  Jim Meyering  <jim@meyering.net>
86400
86401         * lib/userspec.c: Include "userspec.h".
86402         * lib/userspec.h: New file.
86403
86404 2003-11-03  Bruno Haible  <bruno@clisp.org>
86405
86406         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86407
86408 2003-11-03  Bruno Haible  <bruno@clisp.org>
86409
86410         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86411         available, to avoid (extremely rare) race condition.
86412         Suggested by Paul Eggert.
86413
86414 2003-11-02  Karl Berry  <karl@gnu.org>
86415
86416         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86417
86418 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86419
86420         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86421         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86422         (read_filesystem_list): Set and use me_type_malloced.
86423         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86424         whatever the type happens to be), for brevity and consistency.
86425         Check for size calculation overflow on Alphas running OSF/1.
86426
86427 2003-10-31  Jim Meyering  <jim@meyering.net>
86428
86429         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86430
86431         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86432
86433 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86434             Bruno Haible  <bruno@clisp.org>
86435
86436         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86437         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86438
86439 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86442         netbsd*-gnu*.  Suggested by Robert Millan.
86443
86444 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86445
86446         * modules/group-member: Depend on stdbool.
86447
86448 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86449
86450         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86451
86452 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86453
86454         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86455         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86456         after the 'gnu' in these cases.  This fixes some bugs in the
86457         previous change, and is based on suggestions by Robert Millan.
86458
86459 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86460
86461         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86462         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86463         no longer needed.
86464         * lib/quotearg.c (quotearg_n_options): Use it.
86465         * lib/group-member.c: Include <stdbool.h>.
86466         (free_group_info): Arg is now const *; don't free arg.
86467         (get_group_info): Now returns bool and accepts struct group_info *,
86468         rather than returning a malloc'ed struct group_info *.
86469         All uses changed.  Check for overflow in internal size calculation.
86470
86471         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86472         rather than xmalloc/xrealloc.
86473         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86474         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86475         conformance bug: the old code used a pointer after freeing the
86476         storage that it addressed.
86477         * lib/hash.c (hash_initialize): Simplify the code by using
86478         xalloc_oversized rather than doing it by hand.
86479         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86480         the buffer preserved.  Use free and xmalloc instead.
86481         * lib/quotearg.c (quotearg_n_options): Likewise.
86482         Use a simpler test for size overflow.  Don't use xalloc_oversized
86483         because unsigned int might be wider than size_t (!); this suggests
86484         that we should switch from unsigned int to size_t for slot numbers.
86485
86486 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86487
86488         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86489         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86490         NetBSD kernels.  Requested by Richard Stallman.
86491
86492 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86493
86494         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86495         to allocate the returned structure.  Do not allocate a subarray,
86496         as x2nrealloc will do that.
86497         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86498         instead of xnrealloc.
86499         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86500
86501 2003-10-27  Bruno Haible  <bruno@clisp.org>
86502
86503         * lib/stdbool_.h: Better support for BeOS.
86504
86505 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86506
86507         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86508         now uses inline.
86509
86510 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86511
86512         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86513         callers that want to do their own size-overflow checking.  Include
86514         <stdbool.h>, since xalloc_oversized returns bool.
86515         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86516         to use xalloc_oversized.
86517
86518         Add two functions x2realloc, x2nrealloc, for programs that grow
86519         arrays dynamically by doubling their sizes.
86520         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86521         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86522         New functions.
86523
86524         Port to C99 semantics for 'inline' of external functions.
86525         Bug reported by Bruno Haible.
86526         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86527         with the old contents of xnmalloc.
86528         (xnmalloc, xmalloc): Use it.
86529         (xnrealloc_inline): New static inline function,
86530         with the old contents of xnrealloc.
86531         (xnrealloc, xrealloc): Use it.
86532
86533         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86534         that.
86535
86536 2003-10-26  Karl Berry  <karl@gnu.org>
86537
86538         * config/srclist.txt (COPYING.DOC): no longer available from
86539         /gd/gnuorg; don't know where the ultimate source is.
86540
86541 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86542
86543         Fix several address-calculation bugs in the hash modules,
86544         plus some minor code cleanup.
86545
86546         * lib/hash.h: Include <stdbool.h>, for bool.
86547         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86548         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86549         hash_get_n_entries, hash_get_max_bucket_length,
86550         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86551         hash_rehash): Use size_t rather than unsigned.
86552         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86553         hash_get_n_buckets_used, hash_get_n_entries,
86554         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86555         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86556         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86557         Likewise.
86558         (SIZE_MAX): Define if not defined.
86559         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86560         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86561         hash_print):
86562         Use const * when possible.
86563         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86564         (check_tuning): Fix bug: if tuning parameters were very close to
86565         0 or 1, rounding errors could have caused subscript violations.
86566         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86567         (hash_initialize): Add 'fail:' label
86568         to free table and return NULL, and use it to simplify code.
86569         Use calloc rather than clearing the storage ourself.
86570         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86571         buffer size calculations.
86572         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86573         Include <stddef.h>, for size_t.
86574         * lib/hash-pjw.c (hash_pjw): Likewise.
86575         Switch to method described by Bruno Haible.
86576         Include <limits.h>, for CHAR_BIT.
86577         (SIZE_BITS): New macro.
86578
86579 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86580
86581         * m4/getline.m4 (AM_FUNC_GETLINE):
86582         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86583         hosts.  Problem reported by Derek Robert Price in
86584         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86585         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86586         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86587
86588 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86589
86590         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86591         ceiling the allocation at NMAX bytes rather than silently
86592         discarding input bytes before NMAX is reached.  This makes
86593         a difference only if NMAX exceeds SIZE_MAX / 2.
86594
86595         * lib/obstack.c: Merge from glibc.
86596         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86597         Add libc_hidden_def (_obstack_newchunk).
86598         (_obstack_free) [! defined _LIBC]: Remove.
86599         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86600         a clone of the function body.
86601         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86602         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86603
86604         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86605         glibc.
86606         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86607         arg to memcpy.
86608
86609         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86610         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86611         Don't use lvalue casts, as GCC plans to remove support for them
86612         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86613         was also present in the non-GCC version, indicating that this
86614         code had always been buggy and had never been widely used.
86615         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86616         Use the fast variant of each macro, rather than copying the
86617         definiens of the fast variant; that way, we'll be more likely to
86618         catch future bugs in the fast variants.
86619
86620 2003-10-20  Bruno Haible  <bruno@clisp.org>
86621
86622         * modules/wait-process: New file.
86623         * MODULES.html.sh (func_all_modules): Add wait-process.
86624
86625 2003-10-20  Bruno Haible  <bruno@clisp.org>
86626
86627         * m4/wait-process.m4: New file.
86628
86629 2003-10-20  Bruno Haible  <bruno@clisp.org>
86630
86631         * lib/wait-process.h: New file, from GNU gettext.
86632         * lib/wait-process.c: New file, from GNU gettext.
86633
86634 2003-10-19  Jim Meyering  <jim@meyering.net>
86635
86636         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86637         HPUX 10.20.
86638
86639 2003-10-18  Karl Berry  <karl@gnu.org>
86640
86641         * config/config.guess: update from config.
86642
86643 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86644
86645         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86646         (getgroups): First arg is int, not size_t.
86647         Don't let 'free' mangle errno.
86648
86649 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86650
86651         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86652
86653 2003-10-16  Karl Berry  <karl@gnu.org>
86654
86655         * config/config.{guess,sub}: update from config.
86656
86657 2003-10-16  Jim Meyering  <jim@meyering.net>
86658
86659         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86660         memcpy.
86661
86662 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86663
86664         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86665         (SIZE_MAX): Remove.
86666         (new_exclude, add_exclude_file): Initial size no longer needs to
86667         be a power of 2.
86668         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86669         our own address arithmetic overflow checking.
86670
86671         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86672         (fnmatch): Do not alloca more than 2000 wide characters;
86673         instead, use malloc for large buffers.
86674         Check for address arithmetic overflow, and return -1
86675         with errno set to ENOMEM in that case.
86676         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86677         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86678         instead, return -1.  Check for address arithmetic overflow.
86679
86680 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86681
86682         Handle invalid suffixes and overflow independently, so that
86683         callers can treat them independently as needed.  Fix some bugs in
86684         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86685         suffix for a human-readable blocksize.  The major caller-visible
86686         change is the addition of a new
86687         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86688         that both overflow and suffix chars were found.
86689
86690         * lib/human.c (humblock): Don't check separately for invalid suffix
86691         char; that is xstrtoumax's job (now that its bug is fixed).
86692         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86693         INTMAX_MAX]: New macros.
86694         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86695         TYPE_MAXIMUM): New macros.
86696         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86697         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86698         if overflow occurs, as it's what __strtol does and it's more useful
86699         in practice.
86700         (__xstrtol): If __strtol reports some error other than ERANGE,
86701         reflect it to the caller as LONGINT_INVALID.  If it reports
86702         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86703         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86704         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86705         value.
86706         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86707         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86708         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86709         [defined UINTMAX_MAX]: New macros.
86710
86711 2003-10-14  Bruno Haible  <bruno@clisp.org>
86712
86713         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86714
86715 2003-10-14  Bruno Haible  <bruno@clisp.org>
86716
86717         * m4/sig_atomic_t: New file, from GNU gettext.
86718         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86719
86720 2003-10-14  Bruno Haible  <bruno@clisp.org>
86721
86722         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86723         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86724         Also use volatile where needed.
86725
86726 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86727
86728         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86729         Change maintainer from Bruno Haible to 'all'.
86730
86731 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86732
86733         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86734
86735 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86736
86737         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86738         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86739         and define in terms of the other primitives.
86740         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86741         (SIZE_MAX): Define if not already defined.
86742         (array_size_overflow): New function.
86743         (xalloc_die): Abort instead of exiting if 'error' returns.
86744         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86745         (xmalloc, xrealloc): Use them.
86746         (xcalloc): Check for address arithmetic overflow.
86747         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86748         a bit faster than strcpy.
86749
86750 2003-10-10  Simon Josefsson  <jas@extundo.com>
86751
86752         * modules/argp (Depends-on): Add restrict and strcase.
86753
86754 2003-10-10  Simon Josefsson  <jas@extundo.com>
86755
86756         * m4/argp.m4: Add AC_C_INLINE.
86757
86758 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86759
86760         Merge getpass from libc, plus a few fixes.
86761
86762         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86763         Include <stdbool.h>.
86764         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86765         __fsetlocking to empty.
86766         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86767         do include <bits/libc-lock.h>.
86768         Do not include <fcntl.h>; not needed.
86769         [_LIBC]: Include <wchar.h>.
86770         (NOTCANCEL_MODE): New macro.
86771         (flockfile, funlockfile) [_LIBC]: New macros.
86772         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86773         [!_LIBC]: New macros.
86774         (call_fclose): New function.
86775         (getpass): Use it.  Save tty stream separately; this simplifies the
86776         code and makes it more reliable if stdin happens to equal stdout.
86777         Invoke __fsetlocking on tty.
86778         Handle thread cancellation if needed.
86779         Namespace cleanup (use __tcgetattr, __getline).
86780         Use bool for Booleans.
86781         [USE_IN_LIBIO]: Handle wide streams.
86782         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86783         stream might go where.
86784
86785         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86786         doesn't have to include <stdio.h> before us.
86787         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86788         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86789         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86790         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86791         if not declared, so that we can use getpass.c code from libc without
86792         rewriting it.
86793         (flockfile, ftrylockfile, funlockfile): New macros.
86794
86795 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86796
86797         * modules/getpass: Depend on stdbool.
86798
86799 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86800
86801         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86802
86803 2003-10-07  Karl Berry  <karl@gnu.org>
86804
86805         * config/config.{guess,sub}: update from config.
86806
86807 2003-10-06  Jim Meyering  <jim@meyering.net>
86808             Bruno Haible  <bruno@clisp.org>
86809
86810         This lets translators provide better translations for the
86811         "Written by ..." part of --version output.
86812         * lib/version-etc.h: Include stdarg.h.
86813         (version_etc_copyright): Declare as readonly.
86814         (version_etc): Make this function variadic with a NULL-terminated list
86815         of author name strings.
86816         (version_etc_va): New declaration.
86817         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86818         (version_etc_copyright): Declare as readonly.
86819         (version_etc_va): New function. Provide a different translatable string
86820         for each possible number of authors < 10. Abbreviate when there are 10
86821         authors or more.
86822         (version_etc): Make this function variadic. Call version_etc_va.
86823         Suggestion from Gary V. Vaughan.
86824
86825         * lib/long-options.h (parse_long_options): Change prototype: the
86826         authors string is moved to the end and becomes variadic.
86827         * lib/long-options.c: Include stdarg.h.
86828         (parse_long_options): Make this function variadic, too.
86829         Call version_etc_va, not version_etc.
86830
86831 2003-10-06  Bruno Haible  <bruno@clisp.org>
86832
86833         * modules/version-etc-2: Remove file.
86834         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86835
86836 2003-10-06  Bruno Haible  <bruno@clisp.org>
86837
86838         * modules/fatal-signal: New file.
86839         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86840
86841 2003-10-06  Bruno Haible  <bruno@clisp.org>
86842
86843         * m4/fatal-signal.m4: New file.
86844         * m4/signalblocking.m4: New file, from GNU gettext.
86845
86846 2003-10-06  Bruno Haible  <bruno@clisp.org>
86847
86848         * lib/version-etc-2.h: Remove file.
86849         * lib/version-etc-2.c: Remove file.
86850
86851 2003-10-06  Bruno Haible  <bruno@clisp.org>
86852
86853         * lib/fatal-signal.h: New file, from GNU gettext.
86854         * lib/fatal-signal.c: New file, from GNU gettext.
86855
86856 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86857
86858         * README: Rework advice for preventing empty .o files.
86859         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86860         not <sys/types.h>.
86861
86862 2003-10-04  Karl Berry  <karl@gnu.org>
86863
86864         * lib/argp*: update from libc.
86865
86866 2003-10-04  Karl Berry  <karl@gnu.org>
86867
86868         * config/config.{guess,sub}: update from config.
86869
86870 2003-10-02  Bruno Haible  <bruno@clisp.org>
86871
86872         * modules/lchown (Include): Add lchown.h.
86873         * modules/time_r (Include): Use "..." syntax.
86874         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86875
86876 2003-10-01  Simon Josefsson  <jas@extundo.com>
86877
86878         * MODULES.html.sh (func_all_modules): Move gethostname from section
86879         'based on' to section 'lacking' POSIX:2001.
86880
86881 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86882
86883         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86884         to output mode on the same stream.
86885
86886 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86887
86888         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86889         Fix arg typo in previous patch.
86890
86891 2003-09-28  Jim Meyering  <jim@meyering.net>
86892
86893         * lib/error.c: Correct cpp indentation.
86894
86895 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86896
86897         * modules/free: New file.
86898
86899 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86900
86901         * m4/free.m4: New file.
86902
86903 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86904
86905         * lib/minmax.h (MIN, MAX)
86906         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86907         Omit the special code that used __typeof__, since we worry that
86908         it could be more trouble than it's worth.  See:
86909         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86910         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86911
86912         * lib/free.c: New file.
86913
86914 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86915
86916         Trivial fixes to Makefile.am parts of module listings.
86917         * modules/strstr: Append strstr.h to lib_SOURCES.
86918         * modules/strcase: Likewise, for strcase.h.
86919
86920 2003-09-27  Karl Berry  <karl@gnu.org>
86921
86922         * config/mkinstalldirs: update from automake.
86923
86924 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86925
86926         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86927         (error_tail): Do not loop, reallocating temporary buffer, since
86928         the output cannot contain more wide characters than the input
86929         contains bytes, the size must be big enough already.  This avoids
86930         one potential size overflow calculation.  Check for size overflow
86931         when calculating temporary buffer size.  Free temporary buffer
86932         when done, if it was allocated with malloc; this plugs a memory
86933         leak.  Remove casts from void * to pointers, that are no longer
86934         needed now that we're assuming C89 or better.
86935
86936         Merge error changes from glibc.
86937
86938         * lib/error.c, error.h: Update copyright notice header to match glibc.
86939         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86940         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86941         Disable cancellation while printing error.
86942         * lib/error.h: Prepend __ to parameter names.
86943
86944 2003-09-26  Jim Meyering  <jim@meyering.net>
86945
86946         * lib/error.c (error_tail): Move some declarations
86947         into inner scope where the local variables are used.
86948
86949 2003-09-26  Bruno Haible  <bruno@clisp.org>
86950
86951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86952         stpncpy().
86953         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86954
86955 2003-09-26  Bruno Haible  <bruno@clisp.org>
86956
86957         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86958         (stpncpy): Define as alias for gnu_stpncpy.
86959         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86960
86961 2003-09-25  Simon Josefsson  <jas@extundo.com>
86962
86963         * lib/xgetdomainname.h: New file.
86964         * lib/xgetdomainname.c: New file.
86965
86966 2003-09-25  Simon Josefsson  <jas@extundo.com>
86967             Bruno Haible  <bruno@clisp.org>
86968
86969         * modules/getdomainname: New file.
86970         * modules/xgetdomainname: New file.
86971         * MODULES.html.sh (func_all_modules): Add getdomainname,
86972         xgetdomainname.
86973
86974 2003-09-25  Simon Josefsson  <jas@extundo.com>
86975             Bruno Haible  <bruno@clisp.org>
86976
86977         * m4/getdomainname.m4: New file.
86978
86979 2003-09-25  Simon Josefsson  <jas@extundo.com>
86980             Bruno Haible  <bruno@clisp.org>
86981
86982         * lib/getdomainname.h: New file.
86983         * lib/getdomainname.c: New file.
86984
86985 2003-09-25  Karl Berry  <karl@gnu.org>
86986
86987         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86988
86989 2003-09-25  Karl Berry  <karl@gnu.org>
86990
86991         * config/install-sh: update from automake.
86992
86993 2003-09-25  Bruno Haible  <bruno@clisp.org>
86994
86995         * modules/version-etc-2: New file, from modules/version-etc with
86996         modifications.
86997         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86998
86999 2003-09-25  Bruno Haible  <bruno@clisp.org>
87000
87001         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87002         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87003
87004 2003-09-24  Simon Josefsson  <jas@extundo.com>
87005
87006         * modules/xgethostname: Add xgethostname.h.
87007
87008 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87009
87010         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87011         the buffer associated with the argument.  Bug reported by
87012         Simon Josefsson.
87013
87014 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87015
87016         * README: Document assumptions that 'int' is at least 32 bits
87017         wide, that integer arithmetic is 2's complement without overflow,
87018         that there are no holes in integer values, that adding sizes of
87019         two nonoverlapping objects can't overflow, and that all-bits-zero
87020         yields scalar zero.  Fix spelling and capitalization typos.
87021
87022 2003-09-19  Karl Berry  <karl@gnu.org>
87023
87024         * lib/argp.h: update from libc.
87025
87026 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87027
87028         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87029         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87030         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87031
87032 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87033
87034         * gnulib-tool: Use "test -h", not "test -L", for portability
87035         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87036         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87037         (sed_extract_prog): Issue s commands one-by-one, rather than
87038         using \| in one s command.
87039
87040 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87041
87042         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87043         input error, instead of returning NULL the next time we are called
87044         (and therefore losing track of errno).
87045
87046 2003-09-16  Bruno Haible  <bruno@clisp.org>
87047
87048         * gnulib-tool (func_create_testdir): Warn about duplicated
87049         dependencies.
87050
87051 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87052
87053         * modules/argmatch, modules/fatal, modules/obstack,
87054         modules/xalloc, modules/xgethostname: Sort dependencies by
87055         importance, not alphabetically.
87056
87057 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87058
87059         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87060         fails, so that the caller gets the proper errno.
87061
87062         * lib/readutmp.c (read_utmp): Likewise.
87063         Check for fstat error.  Close stream and free storage
87064         when failing.
87065
87066 2003-09-14  Karl Berry  <karl@gnu.org>
87067
87068         * config/srclist.txt (strdup.c): disable for c89 changes.
87069
87070 2003-09-14  Jim Meyering  <jim@meyering.net>
87071
87072         * lib/getloadavg.c: Correct cpp indentation.
87073         * lib/strdup.c: Likewise.
87074         * lib/vasnprintf.c: Likewise.
87075
87076 2003-09-14  Bruno Haible  <bruno@clisp.org>
87077
87078         * modules/fwriteerror: New file.
87079         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87080
87081 2003-09-14  Bruno Haible  <bruno@clisp.org>
87082
87083         * lib/fwriteerror.h: New file.
87084         * lib/fwriteerror.c: New file.
87085
87086 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87087
87088         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87089         modules/xgethostname, modules/xalloc: Depend on exit.
87090
87091 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87092
87093         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87094
87095         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87096         and AC_MINIX, too, so that their extensions are available.
87097
87098         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87099         This macro has been superseded by gl_BACKUPFILE.
87100
87101         More patches to assume C89 or better.
87102
87103         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87104
87105         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87106         unconditionally.
87107         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87108         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87109         Include <string.h>, <stdlib.h> unconditionally.
87110         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87111         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87112         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87113         headers or for string.h.
87114         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87115         or strtoul.
87116
87117         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87118         headers.
87119         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87120         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87121         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87122         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87123         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87124         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87125         memcpy, memset.
87126         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87127         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87128         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87129         strtol.
87130         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87131         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87133         strtoul.
87134
87135 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87136
87137         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87138         * lib/obstack.c [!defined _LIBC]: Likewise.
87139         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87140         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87141         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87142
87143         More changes to assume C89 or better.
87144
87145         * lib/error.c (error_tail): Assume vprintf.
87146
87147         * lib/argmatch.c (getenv): Remove decl.
87148         * lib/progreloc.c (get_full_program_name): Define via prototype.
87149         * lib/setenv.c (clearenv): Likewise.
87150         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87151         needed.
87152         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87153         (malloc, memcpy): Remove decls.
87154         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87155         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87156         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87157         (memcpy): Remove macro.
87158         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87159         (__P): Remove.  All uses removed.
87160         (PTR): Remove.  All uses changed to void *.
87161         (CHAR_BIT, NULL): Remove.
87162         (spaces, zeros, memset_space, memset_zero)
87163         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87164         Remove.
87165         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87166         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87167         Define with prototype.
87168         Remove now-unnecessary prototype decl.
87169         (extra_args_spec): Assume ANSI C.  All uses changed.
87170         (extra_args_spec_iso): Remove.
87171         (my_strftime, emacs_strftimeu): Define via prototype.
87172         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87173         unconditionally.
87174         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87175         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87176         (strtoul, strtol): Remove decls.
87177         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87178         LONG_MAX): Remove.
87179         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87180         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87181         (LOCALE_PARAM_PROTO): New macro.
87182         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87183         (INTERNAL (strtol), strtol): Define with a prototype.
87184         (PARAMS): Remove.  All uses removed.
87185         * lib/tempname.c: Include <string.h> unconditionally.
87186         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87187         * lib/xgethostname.c (main): Define with a prototype.
87188         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87189         Include <stdlib.h> unconditionally.
87190         (calloc, malloc, realloc, free): Remove decls.
87191         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87192         Include <stdlib.h> unconditionally.  Sort include file names.
87193         (strtod): Remove.
87194         (xstrtod): Define with a prototype.
87195         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87196         (strtol, strtoul): Remove decls.
87197
87198 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87199
87200         More patches to assume C89 or better.
87201         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87202         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87203         string.h, memchr, STDC_HEADERS.
87204
87205 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87206
87207         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87208         Include <stdlib.h>, <string.h> unconditionally.
87209         Remove now-unnecessary cast to char *.
87210         * lib/strnlen.c: Include <string.h> unconditionally.
87211         * lib/yesno.c (yesno): Define with a prototype.
87212
87213 2003-09-11  Bruno Haible  <bruno@clisp.org>
87214
87215         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87216
87217 2003-09-10  Jim Meyering  <jim@meyering.net>
87218
87219         * lib/error.c: Correct indentation of cpp directives.
87220
87221 2003-09-10  Bruno Haible  <bruno@clisp.org>
87222
87223         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87224         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87225         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87226         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87227         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87228         <stdlib.h> and <string.h> checks.
87229         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87230         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87231
87232 2003-09-10  Bruno Haible  <bruno@clisp.org>
87233
87234         * lib/strcspn.c: Include <string.h> unconditionally.
87235         * lib/strpbrk.c: Include <string.h> unconditionally.
87236         * lib/strstr.c: Include <string.h> unconditionally.
87237         * lib/unicodeio.c: Include <string.h> unconditionally.
87238         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87239         * lib/unsetenv.c: Likewise.
87240         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87241         * lib/yesno.c: Include <stdlib.h> unconditionally.
87242         (rpmatch): Add prototype.
87243
87244 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87245
87246         More patches to assume C89 or better.
87247         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87248         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87249         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87250         or for string.h.
87251         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87252         stdlib.h.
87253         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87254         C headers.
87255         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87256         string.h.
87257         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87258         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87259         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87260         or for string.h.
87261         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87262         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87263         C headers.
87264         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87265         memcpy.
87266         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87267         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87268         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87269         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87270         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87271         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87272         string.h, free.
87273         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87274         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87275         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87276         C headers, or for string.h.
87277         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87278         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87279         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87280         headers, memory.h, stdlib.h, string.h, strings.h.
87281         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87282         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87283         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87284         strchr.
87285         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87286         headers, memory.h, string.h.
87287         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87288         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87289         free.
87290         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87291         headers.
87292         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87293         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87294         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87295         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87296         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87297
87298 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87299
87300         More K&R removal.
87301
87302         * lib/acosl.c (main): Use a prototype.
87303         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87304         tanl.c: Likewise.
87305
87306         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87307
87308         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87309         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87310         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87311         with a prototype.
87312         * lib/getopt.c (const): Remove macro.
87313         Include <string.h> unconditionally.
87314         (my_index): Remove; all uses changed to strchr.
87315         (strlen): Remove decl.
87316         (exchange): Remove forward decl; no longer needed.
87317         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87318         Define with prototype.
87319         * lib/getopt1.c (const): Remove macro.
87320         (getopt_long, getopt_long_only, main): Define with prototype.
87321
87322         * lib/getugroups.c: Include <string.h> unconditionally.
87323
87324         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87325         (getusershell, setusershell, endusershell, readname, main):
87326         Define with prototypes.
87327
87328         * lib/group-member.c: Include group-member.h first.
87329         Include <stdlib.h> unconditionally.
87330
87331         * lib/hard-locale.c: Include hard-locale.h first.
87332         Include <stdlib.h>, <string.h> unconditionally.
87333
87334         * lib/hash.c (free, malloc): Remove decls.
87335         Include <stdlib.h> unconditionally.
87336
87337         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87338         (getenv): Do not declare.
87339
87340         * lib/idcache.c: Include <string.h> unconditionally.
87341
87342         * lib/long-options.c: Include long-options.h first, to test interface.
87343         Include <stdlib.h> unconditionally.
87344
87345         * lib/makepath.c: Include makepath.h first, to test interface.
87346         Include <stdlib.h> and <string.h> unconditionally.
87347
87348         * lib/linebuffer.c: Include <stdlib.h>.
87349         (free): Remove decl.
87350
87351         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87352         stddef.h. rpl_malloc returns void *, not char *.
87353         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87354         prototype.
87355
87356         * lib/md5.h: Include <limits.h> unconditionally.
87357         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87358         (__P): Remove; all uses removed.
87359         * lib/md5.c: Include "md5.h" first.
87360         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87361         md5_buffer, md5_process_bytes, md5_process_block):
87362         Define with prototypes.
87363         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87364         * lib/sha.c: Include "sha.h" first.
87365         Include <stdlib.h>, <string.h> unconditionally.
87366
87367         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87368         * lib/memcmp.c (__ptr_t): Likewise.
87369         * lib/memrchr.c (__ptr_t): Likewise.
87370         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87371         Include <string.h> unconditionally.
87372         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87373         * lib/memchr.c: Include <stdlib.h> unconditionally.
87374         * lib/memchr.c (LONG_MAX): Remove.
87375         * lib/memrchr.c (LONG_MAX): Likewise.
87376         * lib/memchr.c (__memchr): Define via a prototype.
87377         * lib/memrchr.c (__memrchr): Likewise.
87378         * lib/memcmp.c (__P): Remove, and remove all uses.
87379         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87380         Remove forward decls; no longer needed.
87381         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87382         Use types required by C89 in prototype.
87383
87384         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87385         * lib/savedir.c: Likewise.
87386         * lib/mkdir.c (free): Remove decl.
87387         * lib/rmdir.c (rmdir): Define with a prototype.
87388         * lib/savedir.c: Include savedir.h first, to test interface.
87389
87390         * lib/mktime.c (STDC_HEADERS): Remove.
87391         Include <stdlib.h>, <string.h> unconditionally.
87392
87393         * lib/modechange.c: Include <stdlib.h> unconditionally.
87394         (malloc): Remove decl.
87395
87396         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87397         (free): Remove decl.
87398
87399         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87400         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87401         (This type really should be intptr_t, but that's a C99ism.)
87402         (_obstack_memcpy): Remove: all uses changed to memcpy.
87403         Include <string.h> unconditionally.
87404         (struct obstack): Assume __STDC__ for types of members
87405         chunkfun, freefun, extra_arg.
87406         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87407         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87408         obstack_begin, obstack_specify_allocation,
87409         obstack_specify_allocation_with_arg, obstack_chunkfun,
87410         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87411         Remove unprototyped decls and the macros that use them.
87412         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87413         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87414         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87415         (defined __STDC__ && __STDC__)]:
87416         Remove nonprototyped code.
87417         Include <stdlib.h> unconditionally.
87418         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87419         _obstack_allocated_p, _obstack_free, obstack_free,
87420         _obstack_memory_used, print_and_abort):
87421         Define using prototypes.
87422         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87423         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87424         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87425         obstack_next_free, obstack_object_size, obstack_room) [0]:
87426         Remove unused, unprototyped code.
87427
87428         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87429
87430         * lib/physmem.c (physmem_total, physmem_available, main): Define
87431         with prototypes.
87432
87433         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87434         (main): Define with a prototype.
87435
87436         * lib/posixver.c (getenv): Remove decl.
87437
87438         * lib/putenv.c (malloc): Returns void *, not char *.
87439         Include <string.h> unconditionally.
87440         (strchr, memcpy, NULL): Do not define.
87441
87442         * lib/readtokens.c: Include readtokens.h first, to test interface.
87443         Include <stdlib.h>, <string.h> unconditionally.
87444         (init_tokenbuffer): Define with a prototype.
87445
87446         * lib/regex.c (PARAMS): Remove.  All uses removed.
87447         All uses of _RE_ARGS removed, too.
87448         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87449         unconditionally.
87450         (bzero): Assume memset exists.
87451         (memcmp, memcpy, NULL): Remove.
87452         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87453         char, or assignments to local vars of type signed char.
87454         (init_syntax_once, PREFIX(extract_number_and_incr),
87455         PREFIX(print_partial_compiled_pattern),
87456         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87457         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87458         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87459         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87460         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87461         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87462         wcs_compile_range, byte_compile_range, truncate_wchar,
87463         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87464         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87465         count_mbs_length, wcs_re_match_2_internal,
87466         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87467         PREFIX(alt_match_null_string_p),
87468         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87469         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87470         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87471         now-unnecessary declaration, if any.
87472         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87473         regcomp, regexec):
87474         Remove now-unnecessary casts among pointer types.
87475         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87476
87477         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87478         (free): Remove decl.
87479
87480         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87481
87482         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87483         (free): Remove decl.
87484
87485         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87486         * lib/xgetcwd.c: Likewise.
87487
87488         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87489         (free): Remove decl.
87490
87491         * lib/strchrnul.c (strchrnul): Define with a prototype.
87492         Fix bug: c_in was not converted to char before searching.
87493
87494         The following changes are not K&R related:
87495
87496         * lib/group-member.h: Include <sys/types.h>, so that this file is
87497         self-contained.
87498         * lib/makepath.h: Likewise.
87499
87500         * lib/getusershell.c (readname, default_index, line_size, readname):
87501         Use size_t, not int, for sizes.
87502         (readname): If the size overflows, report an error instead of
87503         looping forever.
87504
87505 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87506
87507         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87508         libc.
87509
87510 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87511
87512         * README: New section: portability guidelines.
87513
87514 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87515
87516         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87517         C89 spec.
87518
87519 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87520
87521         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87522
87523 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87524
87525         Assume C89 or better; remove K&R cruft.
87526         A few of these changes were first proposed by Derek Robert Price
87527         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87528
87529         * lib/addext.c: Include <string.h> unconditionally.
87530         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87531         Don't declare getenv or malloc.
87532
87533         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87534         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87535         (NULL): Remove.
87536         (find_stack_direction, alloca): Use prototypes.
87537
87538         * lib/atexit.c (atexit): Define using a prototype.
87539
87540         * lib/basename.c, dirname.c, stripslash.c:
87541         Include <string.h> unconditionally.
87542
87543         * lib/bcopy.c: Include <stddef.h>.
87544         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87545
87546         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87547
87548         * lib/error.h (error, error_at_line, error_print_progname)
87549         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87550         * lib/error.c: Include error.h first, to check interface.
87551         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87552         (VA_START): Remove; all uses changeed to va_start.
87553         (exit, strerror): Remove decls.
87554         (error_print_progname): Prototype uncondionally.
87555         Don't include <errno.h>; no longer needed.
87556         (private_strerror): Remove.
87557         (error_tail): Always define.
87558         (error, error_at_line): Assume C89 or better; always use prototypes.
87559         * lib/fatal.c: Include "fatal.h" first, to test interface.
87560         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87561         (VA_START): Remove; all uses changed to va_start.
87562         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87563         this case.
87564         (exit): Remove decl.
87565         (fatal): Prototype unconditionally.  Assume va_start works.
87566         Abort at end, to pacify gcc.
87567
87568         * lib/euidaccess.c (main): Define with a prototype.
87569
87570         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87571
87572         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87573
87574         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87575         prototypes.
87576         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87577         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87578         (getenv): Remove decl.
87579         (fnmatch): Define using a prototype.
87580         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87581         (FCT): Define using a prototype.
87582
87583         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87584
87585         * lib/gethostname.c: Include <stddef.h>.
87586         (gethostname): Define with prototype.  Length is size_t, not int.
87587
87588 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87589
87590         Assume C89 or better; remove K&R cruft.
87591         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87592         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87593         string.h, getenv, malloc.
87594         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87595         headers.
87596         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87597         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87598         do not check for strerror.
87599         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87600         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87601         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87602         do not check for doprnt or vprintf.
87603         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87604         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87605
87606 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87607
87608         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87609         getversion.c should have been removed then, but was accidentally
87610         preserved.
87611
87612         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87613         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87614
87615 2003-09-08  Karl Berry  <karl@gnu.org>
87616
87617         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87618                 config, forget about prep.
87619
87620         * config/depcomp, missing: update from automake.
87621
87622 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87623
87624         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87625         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87626
87627 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87628
87629         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87630         copy_tm_result.  Bug reported by Simon Josefsson in
87631         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87632
87633 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87634
87635         * m4/time_r.m4: New file.
87636         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87637         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87638         is. Check for timegm declaration.
87639         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87640         Do not check for gmtime_r.
87641         Replace mktime if __mktime_internal does not exist and if mktime
87642         hasn't been replaced already.
87643
87644 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87645
87646         * lib/time_r.c, lib/time_r.h: New files.
87647
87648         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87649         __localtime_r.
87650         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87651         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87652
87653         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87654         __gmtime_r.
87655         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87656         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87657         Include <time_r.h>.
87658
87659         * lib/timegm.c: Switch to glibc implementation, with the following
87660         changes:
87661         [defined HAVE_CONFIG_H]: Include <config.h>.
87662         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87663         (__mktime_internal) [!defined _LIBC]: New decl.
87664         (__gmtime_r) [!defined _LIBC]: New macro and function.
87665         (timegm): Use a prototype, since gnulib assumes C89.
87666         Do not bother declaring tmp to be const, as it's not really usefu.
87667         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87668         (timegm): Declare only if HAVE_DECL_TIMEGM.
87669
87670 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87671
87672         * MODULES.html.sh (func_all_modules): Add time_r.
87673         * modules/time_r: New file.
87674         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87675         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87676
87677 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87678
87679         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87680         Bug reported by Lute Kamstra in
87681         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87682
87683         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87684         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87685         course with correspondingly smaller numbers for tomorrow and
87686         yesterday.  From Tadayoshi Funaba.  Originally installed into
87687         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87688         coreutils merge?).
87689
87690 2003-08-31  Simon Josefsson  <jas@extundo.com>
87691
87692         * modules/timegm: New file.
87693         * MODULES.html.sh (func_all_modules): Add timegm.
87694
87695 2003-08-31  Simon Josefsson  <jas@extundo.com>
87696
87697         * m4/timegm.m4: New file.
87698
87699 2003-08-31  Simon Josefsson  <jas@extundo.com>
87700
87701         * lib/timegm.h: New file.
87702         * lib/timegm.c: New file.  Based on
87703         wget-1.8.2/src/http.c:mktime_from_utc.
87704
87705 2003-08-31  Karl Berry  <karl@gnu.org>
87706
87707         * lib/argp.h: update from libc.
87708
87709 2003-08-28  Bruno Haible  <bruno@clisp.org>
87710
87711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87712         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87713         followed by '#define fnmatch fnmatch_posix' gives an error.
87714
87715 2003-08-28  Bruno Haible  <bruno@clisp.org>
87716
87717         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87718         warning on QNX, which defines O_BINARY to 000000.
87719
87720 2003-08-27  Jim Meyering  <jim@meyering.net>
87721
87722         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87723         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87724         would fail after 32.  Reported by Danny Levinson.  Details here:
87725         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87726
87727 2003-08-24  Bruno Haible  <bruno@clisp.org>
87728
87729         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87730         MSVC7 <stdio.h> is included later.
87731
87732 2003-08-22  Simon Josefsson  <jas@extundo.com>
87733
87734         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87735
87736 2003-08-20  Karl Berry  <karl@gnu.org>
87737
87738         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87739
87740 2003-08-20  Bruno Haible  <bruno@clisp.org>
87741
87742         * modules/progname: New file.
87743         * MODULES.html.sh (func_all_modules): Add progname.
87744
87745 2003-08-20  Bruno Haible  <bruno@clisp.org>
87746
87747         * lib/progname.h: New file, from GNU gettext.
87748         * lib/progname.c: New file, from GNU gettext.
87749         * lib/progreloc.c: New file, from GNU gettext.
87750
87751 2003-08-19  Jim Meyering  <jim@meyering.net>
87752
87753         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87754         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87755
87756 2003-08-19  Bruno Haible  <bruno@clisp.org>
87757
87758         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87759         more.
87760
87761 2003-08-19  Bruno Haible  <bruno@clisp.org>
87762
87763         * lib/xstrdup.c: Assume <string.h> exists.
87764
87765 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87766
87767         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87768         in makefile rules.
87769
87770 2003-08-18  Jim Meyering  <jim@meyering.net>
87771
87772         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87773         * m4/lib-ld.m4: Likewise.
87774
87775 2003-08-18  Jim Meyering  <jim@meyering.net>
87776
87777         * lib/setenv.h: Indent nested cpp directive.
87778         * lib/vasnprintf.c: Remove trailing blanks.
87779
87780 2003-08-17  Simon Josefsson  <jas@extundo.com>
87781
87782         * modules/xstrndup: New file.
87783         * MODULES.html.sh (func_all_modules): Add xstrndup.
87784
87785 2003-08-17  Simon Josefsson  <jas@extundo.com>
87786
87787         * modules/argp: Fix autoconf macro name. Add more dependencies.
87788
87789 2003-08-17  Simon Josefsson  <jas@extundo.com>
87790
87791         * m4/xstrndup.m4: New file.
87792
87793 2003-08-17  Simon Josefsson  <jas@extundo.com>
87794
87795         * m4/argp.m4: New file.
87796
87797 2003-08-17  Simon Josefsson  <jas@extundo.com>
87798             Bruno Haible  <bruno@clisp.org>
87799
87800         * lib/xstrndup.h: New file.
87801         * lib/xstrndup.c: New file.
87802
87803 2003-08-17  Bruno Haible  <bruno@clisp.org>
87804
87805         * modules/strndup (Files, Include): Add lib/strndup.h.
87806
87807 2003-08-17  Bruno Haible  <bruno@clisp.org>
87808
87809         * modules/euidaccess (Files): Add lib/euidaccess.h.
87810
87811 2003-08-17  Bruno Haible  <bruno@clisp.org>
87812
87813         * lib/strndup.h: New file.
87814
87815 2003-08-17  Bruno Haible  <bruno@clisp.org>
87816
87817         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87818         like AC_GNU_SOURCE.
87819         * modules/extensions (configure.ac): Comment out the invocation of
87820         gl_USE_SYSTEM_EXTENSIONS.
87821
87822 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87823
87824         Merges from coreutils, etc.
87825         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87826         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87827         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87828         fixing a typo.
87829         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87830         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87831
87832 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87833
87834         Document merge from coreutils.
87835         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87836         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87837         * modules/utime: Add m4/utimes-null.m4.
87838
87839 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87840
87841         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87842         space, undoing this 2003-08-12 change:
87843         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87844
87845 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87846
87847         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87848         strtoul.c from libc, undoing this 2003-08-12 change:
87849         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87850
87851 2003-08-16  Jim Meyering  <jim@meyering.net>
87852
87853         Merges from coreutils.
87854         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87855         prefix.  Adjust cache variables similarly.  Create 500 rather than
87856         just 300 files, to exercise bug on Darwin6.5, too.
87857         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87858         $missing_dir.
87859         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87860         AM_SYS_POSIX_TERMIOS.
87861         Reported by mkc@mathdogs.com.
87862         Also change use of $am_cv_sys_posix_termios
87863         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87864         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87865         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87866         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87867         in /proc/mounts until it finds one with matching device number.  This
87868         is unnecessary when the FILE argument *is* a mount point.  No stat call
87869         is necessary in that case.  So, disable the statvfs-testing code on
87870         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87871         as RedHat bug# 84846.
87872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87873         to 1MB, so as not to render systems with no stack size limit (e.g.,
87874         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87875         Include <unistd.h>.  On some systems,
87876         it is required for the definition of _SC_PAGESIZE.
87877
87878 2003-08-16  Jim Meyering  <jim@meyering.net>
87879
87880         Merge from coreutils.
87881         * lib/xstrtoimax.c: #else #if -> #elif.
87882         * lib/xstrtoumax.c: Likewise.
87883
87884 2003-08-16  Jim Meyering  <jim@meyering.net>
87885
87886         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87887         * m4/utimes.m4: Removed.
87888         * m4/utimes-null.m4: Renamed from utimes.m4.
87889
87890         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87891         to 1MB, so as not to render systems with no stack size limit (e.g.,
87892         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87893         Include <unistd.h>.  On some systems,
87894         it is required for the definition of _SC_PAGESIZE.
87895
87896 2003-08-16  Jim Meyering  <jim@meyering.net>
87897         and Paul Eggert  <eggert@cs.ucla.edu>
87898
87899         Merges from coreutils, etc.
87900
87901         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87902         using the latest version from cvs.  This avoids problems with #line
87903         directives using a vendor (Sun) compiler.
87904         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87905         Don't set GETGROUPS_LIB here; now it's
87906         done via getgroups.m4's wrapper function.
87907         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87908         rather than just in sh-util/configure.in, so that the
87909         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87910         same.
87911         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87912         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87913         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87914         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87915         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87916         Remove code that is now done by the newly-required macros.
87917         Append $(EXEEXT) to DF_PROG.
87918         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87919         Do not invoke or require the following here,
87920         since prereq.m4 or some gnulib .m4 now does this for us:
87921         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87922         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87923         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87924         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87925         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87926         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87927         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87928         AC_FUNC_OBSTACK.
87929         Do not replace the following functions, as this is now the job
87930         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87931         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87932         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87933         atexit getpass, strdup, getpagesize.
87934         Replace 'raise'.
87935         Do not check for the following functions, as this is now the job
87936         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87937         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87938         setregid.
87939         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87940         Check for sys/sysctl.h.
87941         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87942         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87943         of checking for ssize_t ourselves.
87944
87945         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87946         Require every macro that gnulib/modules/* suggests for us.
87947         (jm_PREREQ_ADDEXT): New macro.
87948         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87949         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87950
87951         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87952         (gl_PHYSMEM): Use it.
87953         Also check for `table' function.
87954         Check for new headers and functions.
87955         Add check for sys/sysmp.h.
87956         With suggestions from Kaveh Ghazi.
87957         Ignore headers that are present but cannot be compiled.  This
87958         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87959         C 5.4.
87960
87961 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87962
87963         Document merge from coreutils.
87964         * modules/userspec: Depend on posixver.
87965         * modules/strftime: Depend on tzset.
87966
87967 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87968
87969         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87970         rather than tab, after '#' in shell-script copyright notices.
87971         Suggested by Bruno Haible.
87972
87973 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87974
87975         * config/srclist-update: Use three spaces, rather than tab, after '#'
87976         in shell-script copyright notices.  Suggested by Bruno Haible.
87977         Remove unnecessary parenthesization in regular expression.
87978
87979 2003-08-15  Jim Meyering  <jim@meyering.net>
87980
87981         Merge from coreutils.
87982         * lib/xgethostname.c: Include <stdlib.h>.
87983         (xghostname): Don't exit for anything other than memory-related
87984         failure; just return NULL.
87985         * lib/userspec.c: Include "posixver.h".
87986         (parse_user_spec): Accept `.' as a separator only
87987         in pre-POSIX-200112 mode.
87988         * lib/strtoimax.c: Use #elif rather than #else #if.
87989         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87990         Remove function, now that we can rely on a working tzset function.
87991         [!_LIBC]: Ensure that the required autoconf test has been run.
87992         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87993         Use underlying_strftime for %r.
87994         * lib/sha.c: Merge in some clean-up and optimization changes from
87995         glibc.
87996         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87997         Ensure that it is a multiple of 64.
87998         Rearrange loop exit tests so as to avoid performing an
87999         additional fread after encountering an error or EOF.
88000         * lib/realloc.c: Update copyright date.
88001
88002 2003-08-15  Jim Meyering  <jim@meyering.net>
88003         and Paul Eggert  <eggert@twinsun.com>
88004
88005         Merge from coreutils.
88006         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88007         member but strut utmpx does not.  Needed for AIX 4.3.3.
88008         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88009
88010 2003-08-15  Jim Meyering  <jim@meyering.net>
88011         and Paul Eggert  <eggert@cs.ucla.edu>
88012
88013         Merges from coreutils, etc.
88014         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88015         Require gl_FUNC_TZSET_CLOBBER.
88016         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88017         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88018         members.
88019
88020 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88021
88022         Help the merge from coreutils.
88023         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88024         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88025         * m4/tzset.m4: Use it too.
88026
88027 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88028
88029         * modules/tzset: New file.
88030
88031 2003-08-14  Jim Meyering  <jim@meyering.net>
88032
88033         Merges from coreutils.
88034         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88035         variable names, rather than @FNMATCH_H@.
88036         * modules/alloca: Likewise for $(ALLOCA_H).
88037
88038         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88039         the three copies of the literal target, `fnmatch.h'.
88040         * modules/alloca (alloca.h): Likewise.
88041
88042 2003-08-14  Jim Meyering  <jim@meyering.net>
88043
88044         Merge from coreutils.
88045         * m4/tzset.m4: New file.
88046         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88047         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88048         otherwise, AIX 5.1 systems would end up using the latter.
88049         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88050         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88051         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88052         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88053
88054 2003-08-14  Jim Meyering  <jim@meyering.net>
88055
88056         Merge from coreutils.
88057         * lib/obstack.h: Whitespace changes.
88058         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88059         and xcalloc return values.
88060         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88061         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88062         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88063         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88064         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88065         error from mntctl.
88066         Use mntctl's return value to drive the entry-processing loop, since
88067         we can't rely on the value of the vmt_length member in the last
88068         entry.  On some systems doing so could result in exhausting
88069         virtual memory.  Based in part on a patch from Mike Jetzer.
88070
88071 2003-08-14  Jim Meyering  <jim@meyering.net>
88072         and Paul Eggert  <eggert@twinsun.com>
88073
88074         Merges from coreutils, plus other fixes.
88075         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88076         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88077         for credits and details.  Thanks to Kaveh Ghazi for helping
88078         to keep these files in sync.
88079         (ARRAY_SIZE): Define it.
88080         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88081         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88082         (memcasecmp): Don't assume size_t fits in unsigned int.
88083         Remove casts and duplicate code.
88084         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88085         (memcpy): Remove definition.
88086         Merge in some clean-up and optimization changes from glibc.
88087         [BLOCKSIZE]: Move definition to top of file.
88088         Ensure that it is a multiple of 64.
88089         Rearrange loop exit tests so as to avoid performing an
88090         additional fread after encountering an error or EOF.
88091         * lib/md5.h (md5_uintptr): Define.
88092         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88093         return to the initial working directory.  Preserve errno
88094         for caller.
88095         * lib/idcache.c: Include "xalloc.h".
88096         (xmalloc, xrealloc): Remove decls.
88097         (getuser): Remove casts no longer required in C89.
88098         * lib/human.c: Include stdio.h, for sprintf.
88099         * lib/group-member.c: Include "xalloc.h".
88100         (xmalloc, xrealloc): Remove decls.
88101         (get_group_info): Remove casts no longer required in C89.
88102         * lib/getusershell.c (readname): Remove casts no longer required in
88103         C89.
88104         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88105         * lib/getline.c: Whitespace fix, from coreutils.
88106
88107 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88108
88109         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88110         Check for isascii.
88111
88112         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88113         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88114         Undo previous (whitespace-only) change.
88115
88116 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88117
88118         * lib/exclude.c: Include <ctype.h>
88119         (IN_CTYPE_DOMAIN): New macro.
88120         (is_space): New fn.
88121         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88122         and empty lines.
88123
88124         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88125         Undo previous (whitespace-only) change.
88126
88127 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88128
88129         * config/srclist-update: Change update back to the old behavior,
88130         leaving whitespace alone.  Use one 'sed' command rather than a
88131         pipeline.
88132         (fixlicense): Now a variable, not a function.
88133         (remove_trailing_blanks): Remove.
88134         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88135         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88136         Undo previous (whitespace-only) change.
88137
88138 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88139
88140         Merge from coreutils.
88141         * modules/euidaccess: Add lib_SOURCES, include for new
88142         file euidaccess.h
88143
88144 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88145
88146         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88147         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88148         Normalize leading white space and remove trailing white space.
88149
88150         Merge from coreutils
88151         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88152
88153         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88154         0.12.1.  These files are now being upgraded automatically by
88155         ../config/srclist-update.
88156
88157 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88158
88159         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88160         Normalize leading white space and remove trailing white space.
88161         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88162         notice, as per ../config/srclist-update.
88163
88164         Merge from coreutils.
88165         * lib/euidaccess.h: New file.
88166         * lib/euidaccess.c: Include it.
88167         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88168         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88169         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88170
88171 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88172
88173         * config/srclist-update: Add copyright notice.
88174         (remove_id_lines, remove_trailing_blanks): New constants.
88175         (fixfile): Use them to normalize spacing a bit in copied files.
88176         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88177         Normalize leading white space and remove trailing white space.
88178
88179         * config/texinfo.tex: Sync with texinfo.
88180
88181         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88182         strtoul.c from libc, to merge coreutils whitespace changes.
88183
88184         * config/srclist.txt: Get the following m4 files from gettext:
88185         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88186         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88187         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88188         wint_t.m4.
88189
88190 2003-08-12  Karl Berry  <karl@gnu.org>
88191
88192         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88193         been made.
88194
88195 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88196
88197         * modules/gnu-source, m4/gnu-source.m4:
88198         Remove; we're assuming Autoconf 2.54 or later now.
88199         Suggested by Bruno Haible.
88200         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88201
88202 2003-08-11  Bruno Haible  <bruno@clisp.org>
88203
88204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88205
88206 2003-08-11  Bruno Haible  <bruno@clisp.org>
88207
88208         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88209         (vasnprintf): Use it instead of wcslen.
88210
88211 2003-08-11  Bruno Haible  <bruno@clisp.org>
88212
88213         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88214         value to ensure that _Bool promotes to int. Use #define for _Bool when
88215         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88216
88217 2003-08-10  Karl Berry  <karl@gnu.org>
88218
88219         * lib/regex.h: update from libc (whitespace fix).
88220
88221 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88222
88223         Merge some files from coreutils.  These changes were
88224         originally made by Jim Meyering.
88225         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88226         many older Unixes require this.
88227         * lib/alloca.c (alloca): Remove cast to argument of free;
88228         no longer needed in C89.
88229         * lib/alloca_.h, regex.h: Fix white space to match
88230         what GNU indent does.
88231
88232 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88233
88234         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88235         apparently Emacs's Unicode mode got confused before my 2003-08-05
88236         checkin.
88237
88238 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88239
88240         * m4/extensions.m4: New file.
88241         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88242         Require gl_USE_SYSTEM_EXTENSIONS.
88243         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88244         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88245
88246 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88247
88248         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88249         * modules/extensions, modules/gnu-source: New files.
88250         * modules/timespec, modules/unlocked-io: Depend on extensions.
88251
88252 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88253
88254         * modules/restrict: New file.
88255         * MODULES.html.sh (func_all_modules): Add restrict.
88256         * modules/regex: Depend on restrict.
88257
88258 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88259
88260         * m4/restrict.m4: New file.
88261         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88262
88263 2003-08-07  Bruno Haible  <bruno@clisp.org>
88264
88265         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88266         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88267
88268 2003-08-07  Bruno Haible  <bruno@clisp.org>
88269
88270         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88271         makes the module 'getndelim2' compatible with the module 'getline'.
88272
88273 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88274
88275         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88276         byte with "\201" to avoid glitches when editing that source file
88277         with multi-gnome-terminal.
88278
88279 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88280
88281         * lib/bumpalloc.h: Remove.
88282
88283 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88284
88285         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88286         * modules/bumpalloc: Remove.
88287
88288 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88289
88290         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88291         GNU coding style.
88292
88293         Merge from coreutils.
88294         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88295         1. From glibc.
88296         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88297         from Karl Berry, implemented by Jim Meyering.
88298         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88299         from Dmitry V. Levin.
88300         Remove anachronistic cast of xrealloc.
88301         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88302         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88303         type. Otherwise, it wouldn't compile with at least /bin/cc on
88304         ymp-cray-unicos9.0.2.X.
88305         Combine two mostly-identical uses of alloca into one.
88306         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88307
88308 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88309
88310         [From Emacs.]
88311
88312         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88313         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88314         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88315         obsolete NLIST_NAME_UNION.
88316         [__GNU__]: Undef BSD and FSCALE.
88317         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88318
88319 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88320
88321         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88322         an enum type, so that it's guaranteed to promote to int.  See:
88323         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88324
88325 2003-08-03  Karl Berry  <karl@gnu.org>
88326
88327         * config/depcomp: update from automake.
88328
88329 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88330
88331         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88332         (strerror): Don't assume that a printable int fits in 14 bytes.
88333
88334 2003-07-31  Bruno Haible  <bruno@clisp.org>
88335
88336         * modules/getpass-gnu: New file.
88337         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88338
88339 2003-07-31  Bruno Haible  <bruno@clisp.org>
88340
88341         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88342
88343 2003-07-24  Karl Berry  <karl@gnu.org>
88344
88345         * config/missing: update from automake.
88346
88347 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88348             Bruno Haible  <bruno@clisp.org>
88349
88350         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88351         * lib/getline.c (getline, getdelim): Likewise.
88352         Remove _GNU_SOURCE define; now it's defined in config.h through
88353         m4/getline.m4.
88354
88355 2003-07-23  Karl Berry  <karl@gnu.org>
88356
88357         * config/config.sub: update from prep.
88358
88359 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88360
88361         * modules/xalloc (Depends-on): Add exitfail.
88362         * modules/xmemcoll: Likewise.
88363
88364 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88365
88366         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88367         over-parenthesization in macros.
88368
88369         Sync with coreutils.
88370
88371         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88372         required by C99.
88373
88374         Use `exit_failure' for xalloc and xmemcoll instead of their own
88375         private exit-failure variables.
88376         * lib/xalloc.h (xalloc_exit_failure): Remove.
88377         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88378         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88379         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88380         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88381         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88382
88383 2003-07-20  Jim Meyering  <jim@meyering.net>
88384
88385         * modules/closeout (Depends-on): Add exitfail.
88386         Suggestion from Bruno Haible.
88387
88388 2003-07-19  Karl Berry  <karl@gnu.org>
88389
88390         * config/config.sub: update from prep.
88391
88392 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88393
88394         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88395         Remove.
88396         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88397         to test that it can stand by itself.  Include "exitfail.h".
88398         Clients should set exit_failure instead.
88399         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88400
88401 2003-07-18  Bruno Haible  <bruno@clisp.org>
88402
88403         * modules/getndelim2: New file.
88404         * modules/getline: Share files with module getndelim2.
88405         * modules/getnline: Depend on getndelim2 instead of sharing files with
88406         it. Add getnline.c to lib_SOURCES.
88407         * MODULES.html.sh (func_all_modules): Add getndelim2.
88408
88409 2003-07-18  Bruno Haible  <bruno@clisp.org>
88410
88411         * m4/getndelim2.m4: New file.
88412         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88413         invoke gl_PREREQ_GETNDELIM2.
88414         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88415         gl_PREREQ_GETNDELIM2.
88416         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88417         gl_GETNDELIM2.
88418
88419 2003-07-18  Bruno Haible  <bruno@clisp.org>
88420
88421         * lib/getndelim2.h: New file.
88422         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88423         getndelim2.h.
88424         (getndelim2): Make non-static. Change return type to ssize_t.
88425         * lib/getline.h: Change argument names.
88426         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88427         * lib/getnline.c: Include getndelim2.h.
88428
88429 2003-07-18  Andreas Schwab  <schwab@suse.de>
88430
88431         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88432
88433 2003-07-17  Karl Berry  <karl@gnu.org>
88434
88435         * config/config.sub: update from prep.
88436
88437 2003-07-17  Bruno Haible  <bruno@clisp.org>
88438
88439         * modules/getnline: New file.
88440         * modules/getline: Add lib/getndelim2.c to source file list.
88441         * MODULES.html.sh (func_all_modules): Add getnline.
88442
88443 2003-07-17  Bruno Haible  <bruno@clisp.org>
88444
88445         * m4/getnline.m4: New file.
88446
88447 2003-07-17  Bruno Haible  <bruno@clisp.org>
88448
88449         * m4/Makefile.am.in: Remove file.
88450         * m4/Makefile.am: Remove file.
88451         * m4/Makefile.in: Remove file.
88452
88453 2003-07-17  Bruno Haible  <bruno@clisp.org>
88454
88455         * lib/getnline.h: New file.
88456         * lib/getnline.c: New file.
88457         * lib/getndelim2.c: New file, extracted from getline.c.
88458         (getndelim2): Renamed from getdelim2, with added nmax argument.
88459         * lib/getline.c: Include getndelim2.c.
88460         (getdelim2): Moved out to getndelim2.c.
88461         (getline, getdelim): Update.
88462
88463 2003-07-17  Bruno Haible  <bruno@clisp.org>
88464
88465         * lib/Makefile.am: Remove file.
88466         * lib/Makefile.in: Remove file.
88467
88468 2003-07-17  Bruno Haible  <bruno@clisp.org>
88469
88470         * configure.in: Remove file.
88471         * Makefile.in: Remove file.
88472
88473 2003-07-17  Bruno Haible  <bruno@clisp.org>
88474
88475         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88476
88477 2003-07-16  Karl Berry  <karl@gnu.org>
88478
88479         * config/srclist-update: was running fixlicense twice, which caused
88480                 texinfo.tex to be nullified for some reason.  Simplify,
88481                 $gplsrc is no longer needed as far as I can see?
88482
88483 2003-07-16  Jim Meyering  <jim@meyering.net>
88484
88485         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88486
88487 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88488
88489         * config/srclist.txt: Get the following files from gettext-runtime/intl
88490         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88491         ref-del.sin.  From Bruno Haible.
88492         * config/srclist-update (fixfile): Change grep pattern again, since the
88493         previous fix didn't work (there was another trailing $).  Use
88494         '[$]' to escape the $s.
88495
88496 2003-07-15  Karl Berry  <karl@gnu.org>
88497
88498         * lib/vasnprintf.c: update from gettext.
88499
88500 2003-07-15  Karl Berry  <karl@gnu.org>
88501
88502         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88503         gets expanded when surrounded by '$'.
88504
88505 2003-07-15  Jim Meyering  <jim@meyering.net>
88506
88507         * modules/save-cwd: Don't depend on error.  From Derek Price.
88508
88509 2003-07-15  Jim Meyering  <jim@meyering.net>
88510
88511         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88512
88513 2003-07-14  Simon Josefsson  <jas@extundo.com>
88514
88515         * modules/mempcpy: New file.
88516         * MODULES.html.sh (func_all_modules): Add mempcpy.
88517
88518 2003-07-14  Simon Josefsson  <jas@extundo.com>
88519
88520         * m4/mempcpy.m4: New file.
88521
88522 2003-07-14  Simon Josefsson  <jas@extundo.com>
88523
88524         * lib/mempcpy.h: New file.
88525         * lib/mempcpy.c: New file.
88526
88527 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88528
88529         * modules/getdate, modules/posixtm: Depend on mktime.
88530
88531 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88532
88533         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88534         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88535         unicodeio.c, unicodeio.h, unlocked-io.h:
88536         Switch from LGPL to GPL.
88537
88538 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88539
88540         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88541         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88542         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88543         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88544         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88545         updated automatically by ../config/srclist-update.  This changes
88546         their license from LPGL to GPL.
88547
88548 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88549
88550         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88551         assumed to refer to the root of the most recent stable gettext version.
88552         * config/srclistvars.sh: Add defaults for eggert.
88553         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88554         Match "This program" as well as "The program".  This is needed
88555         for gettext.
88556
88557 2003-07-14  Jim Meyering  <jim@meyering.net>
88558
88559         Don't emit diagnostics.  Let callers do that.
88560         * lib/save-cwd.c: Don't include "error.h".
88561         (save_cwd): Don't call error.  Ensure that errno is valid
88562         when returning nonzero.
88563
88564         * lib/save-cwd.h (restore_cwd): Update prototype.
88565         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88566         Simplify.  Don't call error upon failure.  Let callers do that.
88567         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88568         when auditing is enabled.  But don't bother updating the #if.
88569
88570 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88571
88572         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88573         it breaks C++ compilation.
88574         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88575
88576 2003-07-10  Simon Josefsson  <jas@extundo.com>
88577
88578         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88579
88580 2003-07-10  Jim Meyering  <jim@meyering.net>
88581
88582         * m4/clock_time.m4: Remove trailing blank.
88583         * m4/intmax_t.m4: Likewise.
88584
88585 2003-07-10  Jim Meyering  <jim@meyering.net>
88586
88587         * lib/vasnprintf.c: Remove trailing blanks.
88588         Make cpp indentation consistent.
88589
88590 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88591
88592         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88593         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88594         Switch from LGPL to GPL.
88595
88596 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88597
88598         * config/srclist.txt: Sort sublists.  Add
88599         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88600         that differ from gnulib for one reason or another; we'd like this list
88601         to be smaller but for now let's document what we have.
88602
88603 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88604
88605         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88606         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88607         and sweeter "eval x=$x".
88608         * config/srclist.txt: Get lib/argp* from glibc.
88609
88610 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88611
88612         * lib/mktime.c: Fix some boundary cases and remove need for floating
88613         point.
88614
88615         Issue a compile-time diagnostic if time_t is floating point, or if
88616         two's complement arithmetic is not in effect, or if arithmetic
88617         right shift does not propagate the sign.  These assumptions were
88618         all in the original code but they weren't checked.
88619
88620         (TIME_T_MIDPOINT, verify): New macros.
88621         (__isleap): Remove; it has integer overflow problems.
88622         (leapyear): New function, without those problems.
88623         (ydhms_tm_diff): Remove; splitting into two parts.
88624         (ydhms_diff): New function, containing the arithmetic part of
88625         the old ydhms_tm_diff function.  Issue a compile-time
88626         diagnostic if we are not using C99 integer division.
88627         Avoid casts when possible.
88628         (guess_time_tm): New function, containing the checking part of
88629         the old ydhms_tm_diff function.  Return the new value, rather than
88630         the difference between it and the old.  Accept a new argument T
88631         so that *T specifies the old value.  Check for overflow in the result.
88632
88633         (__mktime_internal): Use a time_t offset, not a long int offset.
88634         This undoes the 2003-06-04 change, which is no longer needed now
88635         that we have better overflow checking.
88636         (localtime_offset): Likewise.
88637
88638         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88639         and long are 64-bit but int is only 32-bit.
88640         (ydhms_diff): Use long int to store year1 and yday1.
88641         Issue a compile-time diagnostic if long int is not wide enough.
88642
88643         (__mktime_internal): Use long int to store adjusted year and yday.
88644         Use plain C rather than preprocessor commands, if that doesn't
88645         affect efficiency.
88646         Check for overflow (and try to repair) after each probe
88647         rather than checking only at the very end.  This avoids some bugs
88648         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88649         does not equal GMT offset at maximum time).
88650         Use integer to check for overflow rather than floating point; this
88651         is more portable to non-IEEE hosts, and is a tad faster.
88652         When we detect that we are oscillating between two values,
88653         don't check whether tm_isdst has the requested value, since
88654         we already know the answer.  When tm_isdst has the wrong value,
88655         use a different heuristic to find the right one, based on the
88656         extreme values actually observed in practice in tz2003a,
88657         rather than the (overly optimistic) "previous 3 calendar quarters".
88658
88659         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88660         "T const" to accommodate glibc style.
88661         (check_result): Use less-confusing report format.  "long" -> "long int.
88662         (main): Likewise.
88663         Don't loop if the iteration overflows time_t.
88664         Allow a negative step in the iteration.
88665
88666 2003-07-06  Karl Berry  <karl@gnu.org>
88667
88668         * config/depcomp: update from automake.
88669         * config/config.sub: update from prep.
88670
88671 2003-07-03  Karl Berry  <karl@gnu.org>
88672
88673         * config/config.guess: update from prep.
88674
88675 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88676
88677         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88678         xreadlink.c now includes it unconditionally.
88679
88680 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88681
88682         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88683         having it depend on HAVE_SYS_TYPES_H.
88684
88685 2003-07-01  Bruno Haible  <bruno@clisp.org>
88686
88687         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88688         <sys/types.h> should be sufficient.
88689         Reported by Paul Eggert.
88690
88691 2003-06-26  Karl Berry  <karl@gnu.org>
88692
88693         * config/depcomp: update from automake.
88694
88695 2003-06-26  Bruno Haible  <bruno@clisp.org>
88696
88697         * modules/human: Depend on module stdbool.
88698
88699 2003-06-25  Bruno Haible  <bruno@clisp.org>
88700
88701         * modules/readlink: New file.
88702         * modules/xreadlink: Depend on it.
88703         * MODULES.html.sh (func_all_modules): Add readlink.
88704
88705 2003-06-25  Bruno Haible  <bruno@clisp.org>
88706
88707         * m4/readlink.m4: New file.
88708
88709 2003-06-25  Bruno Haible  <bruno@clisp.org>
88710
88711         * lib/readlink.c: New file.
88712
88713 2003-06-22  Karl Berry  <karl@gnu.org>
88714
88715         * config/srclist.txt: update mkinstalldirs from automake.
88716         * config/mkinstalldirs: update.
88717
88718 2003-06-22  Bruno Haible  <bruno@clisp.org>
88719
88720         Portability to mingw32.
88721         * m4/ssize_t.m4: New file, from GNU gettext.
88722         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88723         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88724
88725 2003-06-22  Bruno Haible  <bruno@clisp.org>
88726
88727         * modules/safe-read: Add m4/ssize_t.m4.
88728         * modules/xreadlink: Add m4/ssize_t.m4.
88729
88730 2003-06-20  Bruno Haible  <bruno@clisp.org>
88731
88732         Assume C89, so PARAMS isn't needed.
88733         * lib/unicodeio.h (PARAMS): Remove.
88734         * lib/unicodeio.c: Don't use PARAMS.
88735
88736 2003-06-18  Karl Berry  <karl@gnu.org>
88737
88738         * config/config.{guess,sub}: update from prep.
88739
88740 2003-06-18  Jim Meyering  <jim@meyering.net>
88741
88742         Merge changes from coreutils.
88743         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88744         Remove explicit declarations of xmalloc and realloc.
88745         Include xalloc.h.
88746         (read_utmp): Remove anachronistic cast of xmalloc.
88747
88748 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88749
88750         Assume C89, so PARAMS isn't needed.
88751         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88752         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88753         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88754         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88755         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88756         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88757         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88758         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88759         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88760         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88761         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88762         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88763         no longer needed. Anyway, config.h should always be included before any
88764         other file.
88765
88766 2003-06-11  Simon Josefsson  <jas@extundo.com>
88767
88768         * modules/sysexits: New file.
88769         * MODULES.html.sh (func_all_modules): Add sysexits.
88770
88771 2003-06-11  Simon Josefsson  <jas@extundo.com>
88772
88773         * lib/sysexit_.h: New file.
88774
88775 2003-06-11  Derek Price  <derek@ximbiot.com>
88776
88777         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88778         necessary.
88779
88780 2003-06-11  Bruno Haible  <bruno@clisp.org>
88781
88782         * m4/sysexits.m4: New file.
88783
88784 2003-06-10  Simon Josefsson  <jas@extundo.com>
88785
88786         * lib/argp.h: New file, from glibc.
88787         * lib/argp-ba.c: New file, from glibc.
88788         * lib/argp-eexst.c: New file, from glibc.
88789         * lib/argp-fmtstream.c: New file, from glibc.
88790         * lib/argp-fmtstream.h: New file, from glibc.
88791         * lib/argp-fs-xinl.c: New file, from glibc.
88792         * lib/argp-help.c: New file, from glibc.
88793         * lib/argp-namefrob.h: New file, from glibc.
88794         * lib/argp-parse.c: New file, from glibc.
88795         * lib/argp-pv.c: New file, from glibc.
88796         * lib/argp-pvh.c: New file, from glibc.
88797         * lib/argp-xinl.c: New file, from glibc.
88798
88799 2003-06-10  Simon Josefsson  <jas@extundo.com>
88800
88801         * modules/strchrnul: New file.
88802
88803 2003-06-10  Simon Josefsson  <jas@extundo.com>
88804
88805         * modules/argp: New file.
88806
88807 2003-06-10  Simon Josefsson  <jas@extundo.com>
88808
88809         * m4/strchrnul.m4: New file.
88810
88811 2003-06-10  Simon Josefsson  <jas@extundo.com>
88812
88813         * lib/strchrnul.h: New file.
88814         * lib/strchrnul.c: New file.
88815
88816 2003-06-10  Bruno Haible  <bruno@clisp.org>
88817
88818         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88819
88820 2003-06-07  Karl Berry  <karl@gnu.org>
88821
88822         * config/config.{guess,sub}: update from prep.
88823
88824 2003-06-07  Jim Meyering  <jim@meyering.net>
88825
88826         * modules/strtod: Use $(...) notation, not @...@ for
88827         AC_REPLACE'd variables.
88828         * modules/localcharset: Likewise.
88829
88830 2003-06-07  Jim Meyering  <jim@meyering.net>
88831
88832         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88833         in place of my name in the copyright comment.
88834         Remove definition and uses of __P.
88835
88836         From coreutils.
88837         * lib/stat.c: Don't declare xmalloc explicitly.
88838         Instead, include "xalloc.h".
88839         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88840         xrealloc, and xcalloc return values.
88841         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88842         Improve comment.
88843         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88844
88845 2003-06-07  Bruno Haible  <bruno@clisp.org>
88846
88847         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88848         avoid AC_CONFIG_LINKS.
88849         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88850         fnmatch.h, to avoid AC_CONFIG_LINKS.
88851         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88852
88853 2003-06-07  Bruno Haible  <bruno@clisp.org>
88854
88855         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88856         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88857         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88858         directory.
88859         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88860         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88861         directory.
88862
88863 2003-06-06  Jim Meyering  <jim@meyering.net>
88864
88865         Merge from coreutils.
88866         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88867         Consolidate declarations and initializations of *_base* locals.
88868
88869         Merge from coreutils.
88870         This avoids a core dump on systems without GNU putenv,
88871         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88872         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88873         (unsetenv): New static function, from GNU libc.
88874         (rpl_putenv): Use it.
88875
88876         * lib/modechange.c: Remove trailing blanks.
88877
88878         Merge from coreutils.
88879         * lib/fsusage.c: Remove declaration of statfs.
88880         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88881
88882         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88883
88884 2003-06-06  Jim Meyering  <jim@meyering.net>
88885
88886         * lib/stdbool_.h: Renamed from stdbool.h.in.
88887
88888 2003-06-06  Jim Meyering  <jim@meyering.net>
88889             Bruno Haible  <bruno@clisp.org>
88890
88891         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88892         Adjust Makefile.am snippet not to redirect directly to target.
88893         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88894
88895 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88896
88897         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88898         mismatch, look in future quarters as well as past.  This fixes a
88899         bug when processing fall-backwards gaps immediately after a long
88900         period of daylight-saving time.
88901
88902         * lib/mktime.c: Assume freestanding C89 or better.
88903         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88904         (__P): Remove; not used.
88905         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88906         (mktime, not_equal_tm, print_tm, check_result,
88907         main): Use prototypes.  Use const * where appropriate.
88908         (main): Fix typo in testing code that uncovered by above changes.
88909         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88910
88911 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88912
88913         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88914         locale.h, localeconv.  This merges changes from coreutils.
88915
88916         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88917         It can be removed after the next Autoconf is released.
88918         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88919         needed.
88920
88921 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88922
88923         * lib/mktime.c: Fix Debian bug 177940
88924         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88925         (localtime_offset): Now long int, not time_t, because we want it
88926         to be guaranteed to be signed.  All uses changed.
88927         (__mktime_internal): If overflow would occur when adding offset,
88928         don't add it.
88929
88930         Merge 'human' changes from coreutils.  Rewrite to support
88931         locale-specific notations like thousands separators.
88932         * lib/human.c: Simplify authorship notice.
88933         Include human.h immediately after config.h.
88934         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88935         <limits.h>: Do not include, since human.h does.
88936         (SIZE_MAX, UINTMAX_MAX): New macros.
88937         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88938         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88939         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88940         (power_letter): Renamed from suffixes.
88941         (generate_suffix_backwards): Remove.
88942         (adjust_value): Now takes int style (because of human.h changes)
88943         and long double value (for greater precision on some platforms).
88944         (group_number): New function.
88945         (human_readable): Use it.  Use integer options, not enum.
88946         Put the options before the sizes in the arg list.
88947         Support all the new options.
88948         The old human_readable function has been removed;
88949         use inttostr.h instead.
88950         (human_readable, default_block_size, humblock):
88951         Use uintmax_t, not int, for block sizes.
88952         (human_readable_inexact, block_size_types): Remove.
88953         (block_size_opts): New constant.
88954         (human_options): Renamed from human_block_size, with new signature
88955         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88956         * lib/human.h: Add copyright and authorship notice.
88957         Include <limits.h> and <stdbool.h> unconditionally.
88958         (PARAMS): Remove.  All uses removed.
88959         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88960         (enum human_inexact_style): Remove tag; now a nameless enum.
88961         (human_floor, human_ceiling, human_round_to_even): Now have
88962         values 2, 0, 1 rather than -1, 1, 0.
88963         (human_group_digits, human_suppress_point_zero, human_autoscale,
88964         human_base_1024, human_SI, human_B): New constants.
88965         (human_readable_inexact, human_block_size): Remove.
88966         (human_readable): Size args are now uintmax_t, not int.
88967         (human_options): New decl.
88968
88969         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88970         unnecessary now that we assume C89 or better.  This change
88971         imported from coreutils.
88972
88973         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88974         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88975         in the 2003-05-30 sync from glibc.
88976
88977         .h files should stand alone, but we shouldn't include <sys/types.h>
88978         if we can get away with just <stddef.h>.
88979
88980         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88981         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88982         rather than <sys/types.h>, as we merely need size_t.
88983         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88984         to get size_t.
88985         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88986         Include <stdio.h>, to get FILE.
88987         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88988         memcasecmp.h has included <stddef.h> and all we need is size_t.
88989         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88990         our interface, instead of including <sys/types.h>
88991
88992 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88993
88994         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88995         now, as glibc mktime is buggy on non-glibc systems.
88996
88997 2003-06-03  Karl Berry  <karl@gnu.org>
88998
88999         * config/config.sub: update from prep.
89000
89001 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89002
89003         [from coreutils]
89004         Fix some minor time-related bugs with POSIX time arguments.
89005         Some valid time stamps were being rejected (notably -1, and
89006         time stamps before 1900 on 64-bit hosts).  And some invalid
89007         time stamps were being accepted, e.g. September 31.
89008
89009         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89010         that we can return (time_t) -1 successfully.
89011         * lib/posixtm.c: Likewise.
89012         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89013         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89014         (t): Remove static var.
89015         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89016         of static var.  All uses changed.
89017         (year): Do not reject years before 1900; they can occur with
89018         64-bit time_t.
89019         (posix_time_parse): Do not check for out-of-range components;
89020         that is now the caller's responsibility, since our checks were
89021         only approximations.
89022         (posixtime): Use mktime to check for out-of-range components,
89023         since it knows them exactly.
89024         If mktime returns (time_t) -1, check whether an error actually occurred
89025         by invoking localtime on -1.
89026         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89027         posixtime failures better.
89028         Improve the test data (in comments only).
89029
89030 2003-06-02  Karl Berry  <karl@gnu.org>
89031
89032         * config/mkinstalldirs (version): new variable.
89033         (--version): new option.
89034         (usage): improve message.
89035
89036 2003-05-30  Karl Berry  <karl@gnu.org>
89037
89038         * lib/mktime.c: update from libc.
89039
89040 2003-05-30  Bruno Haible  <bruno@clisp.org>
89041
89042         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89043         * config/config.rpath: Upgrade to gettext-0.12.1.
89044
89045 2003-05-30  Bruno Haible  <bruno@clisp.org>
89046
89047         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89048         * m4/nls.m4: New file, from gettext-0.12.1.
89049         * m4/po.m4: New file, from gettext-0.12.1.
89050         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89051
89052 2003-05-30  Bruno Haible  <bruno@clisp.org>
89053
89054         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89055         * lib/localcharset.h: Likewise.
89056         * lib/localcharset.c: Likewise.
89057
89058 2003-05-29  Karl Berry  <karl@gnu.org>
89059
89060         * config/config.rpath: update from gettext.
89061
89062 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89063
89064         Assume the headers required for C89 freestanding compilers.
89065         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89066         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89067         * m4/human.m4 (gl_HUMAN): Likewise.
89068         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89069         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89070         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89071         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89072         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89073         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89074
89075 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89076
89077         Assume the headers required for C89 freestanding compilers.
89078         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89079         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89080         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89081         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89082         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89083         define, since <limits.h> is guaranteed to do that.
89084         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89085         * lib/exclude.c: Include <stdbool.h> unconditionally.
89086         * lib/tempname.c: Include <stddef.h> unconditionally.
89087         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89088         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89089         <stddef.h> does that.
89090         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89091         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89092         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89093         needed.
89094         * lib/xstrtol.c: Likewise.
89095         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89096         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89097
89098         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89099         warnings on some platforms.
89100
89101         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89102         arbitrarily.
89103
89104 2003-05-26  Jim Meyering  <jim@meyering.net>
89105
89106         Merge in a change from coreutils:
89107         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89108         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89109         that condition, rather than `-1' which is slightly misleading.
89110         Change the name of the cache variable to have the gl_ prefix.
89111         Prompted by a patch from Richard Dawe for DJGPP.
89112
89113 2003-05-24  Karl Berry  <karl@gnu.org>
89114
89115         * config/config.guess: update from prep.
89116
89117 2003-05-22  Karl Berry  <karl@gnu.org>
89118
89119         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89120
89121 2003-05-20  Karl Berry  <karl@gnu.org>
89122
89123         * config/config.guess: update from prep.
89124
89125 2003-05-18  Karl Berry  <karl@gnu.org>
89126
89127         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89128         might actually be set by the user.
89129
89130         * config/depcomp, install-sh, mdate-sh: update from automake.
89131
89132 2003-05-17  Bruno Haible  <bruno@clisp.org>
89133
89134         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89135         invalid expansion for AC_EGREP_CPP.
89136         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89137         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89138         Suggested by Akim Demaille <akim@epita.fr> in
89139         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89140
89141 2003-05-12  Jim Meyering  <jim@meyering.net>
89142
89143         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89144         the space-padded-by-default conversion specifiers, %e, %k, %l.
89145
89146 2003-05-12  Bruno Haible  <bruno@clisp.org>
89147
89148         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89149         the string is longer than 4 KB.
89150
89151 2003-05-11  Karl Berry  <karl@gnu.org>
89152
89153         * config/config.{guess,sub}: update from prep.
89154
89155 2003-05-09  Bruno Haible  <bruno@clisp.org>
89156
89157         * modules/error: Add m4/strerror_r.m4 to file list.
89158
89159 2003-05-03  Bruno Haible  <bruno@clisp.org>
89160
89161         Upgrade to Unicode-4.0.
89162         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89163         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89164         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89165         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89166         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89167         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89168         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89169         Change width of U+E0100..U+E01EF from 1 to 0.
89170
89171 2003-04-25  Jim Meyering  <jim@meyering.net>
89172
89173         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89174         of type size_t, not int.
89175
89176 2003-04-25  Bruno Haible  <bruno@clisp.org>
89177
89178         * lib/copy-file.c: Include <stddef.h>, for size_t.
89179
89180 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89181
89182         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89183         code which expansion is under static control.  Patch imported from
89184         Akim Demaille's patch to Bison; see
89185         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89186
89187 2003-04-14  Bruno Haible  <bruno@clisp.org>
89188
89189         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89190
89191 2003-04-11  Jim Meyering  <jim@meyering.net>
89192
89193         Merge changes from Coreutils.
89194
89195         2003-03-22  Jim Meyering  <jim@meyering.net>
89196
89197         * lib/strftime.c (widen): Cast alloca return value to proper type.
89198
89199         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89200
89201         From GNU libc.
89202         * lib/strftime.c (my_strftime): Handle very large width
89203         specifications for numeric values correctly.  Improve checks for
89204         overflow.
89205
89206         2003-01-19  Jim Meyering  <jim@meyering.net>
89207
89208         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89209         definitions.
89210         (nl_get_alt_digit) [! defined my_strftime]: Define.
89211         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89212         _nl_get_alt_digit and _nl_get_walt_digit.
89213
89214         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89215         libc. These changes have no effect outside of _LIBC.
89216
89217 2003-04-10  Bruno Haible  <bruno@clisp.org>
89218
89219         * modules/findprog: New file.
89220         * MODULES.html.sh (func_all_modules): Add it.
89221
89222 2003-04-10  Bruno Haible  <bruno@clisp.org>
89223
89224         * m4/findprog.m4: New file.
89225         * m4/eaccess.m4: New file.
89226
89227 2003-04-10  Bruno Haible  <bruno@clisp.org>
89228
89229         * lib/findprog.h: New file, from GNU gettext.
89230         * lib/findprog.c: New file, from GNU gettext.
89231
89232 2003-04-05  Jim Meyering  <jim@meyering.net>
89233
89234         Merge changes from Coreutils.
89235
89236         * lib/exclude.h (PARAMS): Remove definition and uses.
89237         * lib/exclude.c: Remove uses of `PARAMS'.
89238
89239         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89240         Add test-cases for DOS filenames. Declare program_name.
89241         (main): Set up program_name.  Patch by Rich Dawe.
89242
89243         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89244         error from mntctl.
89245         Use mntctl's return value to drive the entry-processing loop, since
89246         we can't rely on the value of the vmt_length member in the last
89247         entry.  On some systems doing so could result in exhausting
89248         virtual memory.  Based in part on a patch from Mike Jetzer.
89249
89250 2003-04-04  Bruno Haible  <bruno@clisp.org>
89251
89252         * modules/linebreak: New file.
89253         * MODULES.html.sh (func_all_modules): Add it.
89254
89255 2003-04-04  Bruno Haible  <bruno@clisp.org>
89256
89257         * m4/linebreak.m4: New file.
89258
89259 2003-04-04  Bruno Haible  <bruno@clisp.org>
89260
89261         * lib/linebreak.h: New file, from GNU gettext.
89262         * lib/linebreak.c: New file, from GNU gettext with slight
89263         modifications.
89264         * lib/lbrkprop.h: New file, from GNU gettext.
89265
89266 2003-04-03  Bruno Haible  <bruno@clisp.org>
89267
89268         * modules/utf8-ucs4: New file.
89269         * modules/utf16-ucs4: New file.
89270         * modules/ucs4-utf8: New file.
89271         * modules/ucs4-utf16: New file.
89272         * MODULES.html.sh (func_all_modules): Add them.
89273
89274 2003-04-03  Bruno Haible  <bruno@clisp.org>
89275
89276         * m4/utf-ucs4.m4: New file.
89277         * m4/ucs4-utf.m4: New file.
89278
89279 2003-04-03  Bruno Haible  <bruno@clisp.org>
89280
89281         * lib/utf8-ucs4.h: New file, from GNU gettext.
89282         * lib/utf16-ucs4.h: New file, from GNU gettext.
89283         * lib/ucs4-utf8.h: New file, from GNU gettext.
89284         * lib/ucs4-utf16.h: New file, from GNU gettext.
89285
89286 2003-04-02  Bruno Haible  <bruno@clisp.org>
89287
89288         * modules/binary-io: New file.
89289         * MODULES.html.sh (func_all_modules): Add it.
89290
89291 2003-04-02  Bruno Haible  <bruno@clisp.org>
89292
89293         * lib/binary-io.h: New file, from GNU gettext.
89294
89295 2003-04-01  Bruno Haible  <bruno@clisp.org>
89296
89297         * modules/pathname: New file.
89298         * MODULES.html.sh (func_all_modules): Add it.
89299
89300 2003-04-01  Bruno Haible  <bruno@clisp.org>
89301
89302         * lib/pathname.h: New file, from GNU gettext.
89303         * lib/concatpath.c: New file, from GNU gettext.
89304
89305 2003-03-30  Bruno Haible  <bruno@clisp.org>
89306
89307         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89308
89309 2003-03-30  Bruno Haible  <bruno@clisp.org>
89310
89311         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89312         function chown() doesn't exist.
89313
89314 2003-03-28  Bruno Haible  <bruno@clisp.org>
89315
89316         * modules/copy-file: New file.
89317         * MODULES.html.sh (func_all_modules): Add it.
89318
89319 2003-03-28  Bruno Haible  <bruno@clisp.org>
89320
89321         * m4/copy-file.m4: New file.
89322
89323 2003-03-28  Bruno Haible  <bruno@clisp.org>
89324
89325         * lib/copy-file.h: New file, from GNU gettext.
89326         * lib/copy-file.c: New file, from GNU gettext.
89327
89328 2003-03-18  Jim Meyering  <jim@meyering.net>
89329
89330         * lib/quote.c (quote_n): Fix typo in comment.
89331
89332 2003-03-18  Bruno Haible  <bruno@clisp.org>
89333
89334         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89335         checking.
89336         * m4/onceonly_2_57.m4: Likewise.
89337
89338 2003-03-17  Bruno Haible  <bruno@clisp.org>
89339
89340         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89341         (m4_quote): Remove macro.
89342         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89343
89344 2003-03-14  Jim Meyering  <jim@meyering.net>
89345
89346         Merge changes from Coreutils.
89347         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89348         to be const, in order to avoid warnings.
89349         (obstack_room): Likewise.
89350         (obstack_empty_p): Likewise.
89351
89352 2003-03-14  Bruno Haible  <bruno@clisp.org>
89353
89354         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89355         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89356
89357 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89358
89359         Merge changes from Bison.
89360         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89361         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89362         when compiling Bison 1.875's `bitset bset = obstack_alloc
89363         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89364         * lib/hash.c: Include <stdbool.h> unconditionally.
89365
89366 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89367
89368         * m4/onceonly.m4 (m4_quote): New macro.
89369         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89370         Quote AC_FOREACH variable-expansions properly.
89371
89372 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89373
89374         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89375
89376 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89377
89378         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89379         Reported by Bruce Becker; see:
89380         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89381
89382 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89383             Bruno Haible  <bruno@clisp.org>
89384
89385         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89386         Reported by John Hughes, see
89387         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89388
89389 2003-02-20  Bruno Haible  <bruno@clisp.org>
89390
89391         * MODULES.html.sh (func_all_modules): Add poll.
89392
89393 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89394
89395         * modules/poll: New file.
89396
89397 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89398
89399         * lib/poll_.h: New file.
89400         * lib/poll.c: New file.
89401
89402 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89403
89404         * m4/poll.m4: New file.
89405
89406 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89407
89408         * modules/mathl: New file.
89409
89410 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89411
89412         * lib/mathl.h: New file.
89413         * lib/acosl.c: New file.
89414         * lib/asinl.c: New file.
89415         * lib/atanl.c: New file.
89416         * lib/ceill.c: New file.
89417         * lib/cosl.c: New file.
89418         * lib/expl.c: New file.
89419         * lib/floorl.c: New file.
89420         * lib/frexpl.c: New file.
89421         * lib/ldexpl.c: New file.
89422         * lib/logl.c: New file.
89423         * lib/sincosl.c: New file.
89424         * lib/sinl.c: New file.
89425         * lib/sqrtl.c: New file.
89426         * lib/tanl.c: New file.
89427         * lib/trigl.c: New file.
89428         * lib/trigl.h: New file.
89429
89430 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89431
89432         * m4/mathl.m4: New file.
89433
89434 2003-02-18  Bruno Haible  <bruno@clisp.org>
89435
89436         * MODULES.html.sh (func_all_modules): Add mathl.
89437
89438 2003-02-17  Bruno Haible  <bruno@clisp.org>
89439
89440         * modules/mkdtemp: New module.
89441         * MODULES.html.sh (func_all_modules): Add it.
89442
89443 2003-02-17  Bruno Haible  <bruno@clisp.org>
89444
89445         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89446
89447 2003-02-17  Bruno Haible  <bruno@clisp.org>
89448
89449         * lib/mkdtemp.h: New file, from GNU gettext.
89450         * lib/mkdtemp.c: New file, from GNU gettext.
89451
89452 2003-02-02  Jim Meyering  <jim@meyering.net>
89453
89454         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89455         e.g. glibc-2.2.93.
89456
89457 2003-01-31  Bruno Haible  <bruno@clisp.org>
89458
89459         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89460         'rpl_rename'.
89461         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89462         'rpl_strnlen'.
89463         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89464         'rpl_strtod'.
89465         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89466         'rpl_utime'.
89467
89468 2003-01-31  Bruno Haible  <bruno@clisp.org>
89469
89470         * lib/rename.c: #undef rename before defining rpl_rename.
89471         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89472
89473 2003-01-30  Bruno Haible  <bruno@clisp.org>
89474
89475         * modules/vasnprintf, modules/vasprintf: New modules.
89476         * MODULES.html.sh (func_all_modules): Add them.
89477
89478 2003-01-30  Bruno Haible  <bruno@clisp.org>
89479
89480         * m4/signed.m4: New file, from GNU gettext.
89481         * m4/longdouble.m4: New file, from GNU gettext.
89482         * m4/wchar_t.m4: New file, from GNU gettext.
89483         * m4/wint_t.m4: New file, from GNU gettext.
89484         * m4/vasnprintf.m4: New file.
89485         * m4/vasprintf.m4: New file.
89486
89487 2003-01-30  Bruno Haible  <bruno@clisp.org>
89488
89489         * lib/printf-args.h: New file, from GNU gettext.
89490         * lib/printf-args.c: New file, from GNU gettext.
89491         * lib/printf-parse.h: New file, from GNU gettext.
89492         * lib/printf-parse.c: New file, from GNU gettext.
89493         * lib/vasnprintf.h: New file, from GNU gettext.
89494         * lib/vasnprintf.c: New file, from GNU gettext.
89495         * lib/asnprintf.c: New file, from GNU gettext.
89496         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89497         * lib/vasprintf.c: New file, from GNU gettext.
89498         * lib/asprintf.c: New file, from GNU gettext.
89499
89500 2003-01-29  Bruno Haible  <bruno@clisp.org>
89501
89502         * modules/stpncpy: New module.
89503         * MODULES.html.sh (func_all_modules): Add it.
89504
89505 2003-01-29  Bruno Haible  <bruno@clisp.org>
89506
89507         * m4/stpncpy.m4: New file.
89508
89509 2003-01-29  Bruno Haible  <bruno@clisp.org>
89510
89511         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89512         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89513
89514 2003-01-28  Bruno Haible  <bruno@clisp.org>
89515
89516         * modules/c-ctype: New module.
89517         * MODULES.html.sh (func_all_modules): Add it.
89518
89519 2003-01-28  Bruno Haible  <bruno@clisp.org>
89520
89521         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89522         Paul Eggert.
89523         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89524         Paul Eggert.
89525
89526 2003-01-27  Bruno Haible  <bruno@clisp.org>
89527
89528         * modules/xsetenv: New module.
89529         * MODULES.html.sh (func_all_modules): Add it.
89530
89531 2003-01-27  Bruno Haible  <bruno@clisp.org>
89532
89533         * lib/xsetenv.h: New file, from GNU gettext.
89534         * lib/xsetenv.c: New file, from GNU gettext.
89535
89536 2003-01-23  Jim Meyering  <jim@meyering.net>
89537
89538         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89539         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89540
89541 2003-01-23  Bruno Haible  <bruno@clisp.org>
89542
89543         * modules/minmax: New module.
89544         * MODULES.html.sh (func_all_modules): Add it.
89545
89546 2003-01-23  Bruno Haible  <bruno@clisp.org>
89547
89548         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89549         Eggert.
89550
89551 2003-01-22  Bruno Haible  <bruno@clisp.org>
89552
89553         * modules/exit: New module.
89554         * MODULES.html.sh (func_all_modules): Add it.
89555
89556 2003-01-22  Bruno Haible  <bruno@clisp.org>
89557
89558         * lib/exit.h: New file, from GNU gettext.
89559
89560 2003-01-19  Bruno Haible  <bruno@clisp.org>
89561
89562         * gnulib-tool: Recognize option --extract-maintainer.
89563         (func_get_maintainer): New function.
89564         * modules/*: Add Maintainer entry.
89565
89566 2003-01-16  Jim Meyering  <jim@meyering.net>
89567
89568         * m4/regex.m4: The `regex' struct is both input and output.
89569         Initialize it before each use.  Patch by Tim Waugh.
89570
89571 2003-01-16  Bruno Haible  <bruno@clisp.org>
89572
89573         * MODULES.html.sh: Add a table of contents. Add the module name as
89574         leftmost column. Add hyperlinks.
89575
89576 2003-01-15  Bruno Haible  <bruno@clisp.org>
89577
89578         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89579
89580 2003-01-15  Bruno Haible  <bruno@clisp.org>
89581
89582         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89583         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89584         suffix.
89585
89586 2003-01-15  Bruno Haible  <bruno@clisp.org>
89587
89588         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89589
89590 2003-01-15  Bruno Haible  <bruno@clisp.org>
89591
89592         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89593         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89594
89595 2003-01-14  Jim Meyering  <jim@meyering.net>
89596
89597         * lib/same.c (same_name): Tweak a comment.
89598
89599 2003-01-14  Bruno Haible  <bruno@clisp.org>
89600
89601         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89602         when a string comparison is sufficient.
89603
89604 2003-01-14  Bruno Haible  <bruno@clisp.org>
89605
89606         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89607         'unsigned int'.
89608
89609 2003-01-14  Bruno Haible  <bruno@clisp.org>
89610
89611         * lib/hash-pjw.c: Add comment about low quality of this function.
89612
89613 2003-01-13  Bruno Haible  <bruno@clisp.org>
89614
89615         * modules/stpcpy: Distribute lib/stpcpy.h.
89616         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89617
89618 2003-01-13  Bruno Haible  <bruno@clisp.org>
89619
89620         * modules/*: Add a description.
89621         * modules/strpbrk: Fix Makefile.am snippet.
89622         * modules/strtoimax: Fix dependencies.
89623         * modules/strtoumax: Likewise.
89624
89625 2003-01-13  Bruno Haible  <bruno@clisp.org>
89626
89627         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89628         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89629         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89630
89631 2003-01-13  Bruno Haible  <bruno@clisp.org>
89632
89633         * gnulib-tool (func_create_testdir): Store config/* files in the main
89634         directory.
89635         * config.rpath: Move to ...
89636         * config/config.rpath: ... here.
89637         * modules/gettext: Contains config/config.rpath, not config.rpath.
89638         * modules/iconv: Likewise.
89639
89640 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89641
89642         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89643         to avoid collisions with libcurses and libreadline.
89644
89645         * m4/getstr.m4: Remove.
89646         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89647
89648 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89649
89650         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89651         to avoid collisions with libcurses and libreadline.
89652
89653         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89654         * lib/getstr.h, getstr.c: Remove.
89655         * lib/getline.c: Include "getline.h", to check interface.
89656         Move body of old getstr.c here: this defines MIN_CHUNK and
89657         declares getdelim2, which is renamed from getstr.
89658         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89659
89660         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89661         All uses changed.
89662         * lib/linebuffer.h: Likewise.
89663         (readline): Remove backward-compatibility macro.
89664
89665 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89666
89667         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89668         to avoid collisions with libcurses and libreadline.
89669         * getstr: Remove.
89670         * MODULES.html.sh: Remove getstr.
89671         * modules/getline: Depend on unlocked-io, not getstr.
89672
89673 2003-01-12  Jim Meyering  <jim@meyering.net>
89674
89675         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89676
89677 2003-01-10  Bruno Haible  <bruno@clisp.org>
89678
89679         * modules/alloca: Change Makefile.am requirements. Simplify Include
89680         requirements. Add lib/alloca_.h to file list.
89681
89682 2003-01-10  Bruno Haible  <bruno@clisp.org>
89683
89684         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89685
89686 2003-01-10  Bruno Haible  <bruno@clisp.org>
89687
89688         * lib/alloca_.h: New file.
89689         * lib/getdate.y: Unconditionally include alloca.h.
89690         * lib/makepath.c: Likewise.
89691         * lib/setenv.c: Likewise.
89692         * lib/userspec.c: Likewise.
89693
89694 2003-01-09  Karl Berry  <karl@gnu.org>
89695
89696         * MODULES.html.sh: include `dirname $0` in PATH, to find
89697         gnulib-tool.
89698
89699 2003-01-09  Bruno Haible  <bruno@clisp.org>
89700
89701         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89702         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89703
89704 2003-01-09  Bruno Haible  <bruno@clisp.org>
89705
89706         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89707
89708 2003-01-09  Bruno Haible  <bruno@clisp.org>
89709
89710         * lib/stdbool.h.in: New file.
89711
89712 2003-01-09  Bruno Haible  <bruno@clisp.org>
89713
89714         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89715         * MODULES.html.sh: Likewise.
89716
89717 2003-01-08  Jim Meyering  <jim@meyering.net>
89718
89719         * lib/full-write.c: Undefine and define-away `const' after inclusion
89720         of errno.h, not before.  Suggestion from Bruno Haible.
89721
89722 2003-01-08  Bruno Haible  <bruno@clisp.org>
89723
89724         * modules/full-read: Depend on full-write.
89725
89726 2003-01-08  Bruno Haible  <bruno@clisp.org>
89727
89728         * lib/safe-read.c: Include specification header first, to ensure its
89729         selfcontainedness.
89730         * lib/full-write.c: Likewise.
89731
89732 2003-01-07  Jim Meyering  <jim@meyering.net>
89733
89734         * lib/full-write.c: Rework so that it may serve to define full_read,
89735         too.
89736         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89737
89738 2003-01-07  Bruno Haible  <bruno@clisp.org>
89739
89740         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89741         <inttypes.h>.
89742         * lib/xstrtol.h: Likewise.
89743         * lib/xstrtoimax.c: Likewise.
89744         * lib/xstrtoumax.c: Likewise.
89745         * lib/human.h: Likewise.
89746
89747         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89748         on systems that have <inttypes.h> but not <stdint.h>.
89749
89750 2003-01-07  Bruno Haible  <bruno@clisp.org>
89751
89752         * MODULES.html.sh: Add copyright notice.
89753         (missed_files): Omit CVS directory entries.
89754         (func_module): Make it work with sed-3.02.
89755         * MODULES.txt: Remove file.
89756
89757 2003-01-06  Jim Meyering  <jim@meyering.net>
89758
89759         * lib/version-etc.c: Update year in translatable copyright string.
89760
89761 2003-01-03  Karl Berry  <karl@gnu.org>
89762
89763         * config/config.{guess,sub}: update from prep.
89764
89765 2003-01-02  Karl Berry  <karl@gnu.org>
89766
89767         * doc/COPYING.DOC: belatedly updated to 1.2.
89768
89769 2003-01-01  Karl Berry  <karl@gnu.org>
89770
89771         * gnulib-tool (func_verify_module): report module name $module in
89772         error message, not $1.
89773         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89774         be created, only if it doesn't exist.
89775         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89776
89777 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89778
89779         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89780
89781 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89782
89783         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89784         memcmp if strcoll doesn't work.
89785
89786 2002-12-31  Bruno Haible  <bruno@clisp.org>
89787
89788         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89789         nonempty.
89790
89791 2002-12-31  Bruno Haible  <bruno@clisp.org>
89792
89793         * lib/memcoll.c (STRCOLL): New macro.
89794         (memcoll): Use it.
89795
89796 2002-12-31  Bruno Haible  <bruno@clisp.org>
89797
89798         * lib/localcharset.h: New file.
89799         * lib/localcharset.c: Include it.
89800         * lib/unicodeio.c: Likewise.
89801
89802 2002-12-31  Bruno Haible  <bruno@clisp.org>
89803
89804         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89805         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89806
89807 2002-12-31  Bruno Haible  <bruno@clisp.org>
89808
89809         * lib/getline.h: Include <stddef.h>, for size_t.
89810
89811         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89812         * lib/unicodeio.c: Don't include <stddef.h>.
89813
89814 2002-12-31  Bruno Haible  <bruno@clisp.org>
89815
89816         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89817         HAVE_TM_ZONE.
89818
89819 2002-12-24  Karl Berry  <karl@gnu.org>
89820
89821         * config/config.guess: update from prep.
89822
89823 2002-12-24  Bruno Haible  <bruno@clisp.org>
89824
89825         General infrasructure.
89826         * m4/README: Rewritten.
89827         * m4/onceonly.m4: New file.
89828         * m4/onceonly_2_57.m4: New file.
89829
89830         Module atexit.
89831         * m4/atexit.m4: New file.
89832
89833         Module strtod.
89834         * m4/strtod.m4: New file.
89835
89836         Module strtol.
89837         * m4/strtol.m4: New file.
89838
89839         Module strtoul.
89840         * m4/strtoul.m4: New file.
89841
89842         Module memchr.
89843         * m4/memchr.m4: New file.
89844
89845         Module memcmp.
89846         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89847         (jm_FUNC_MEMCMP): Invoke it.
89848
89849         Module memcpy.
89850         * m4/memcpy.m4: New file.
89851
89852         Module memmove.
89853         * m4/memmove.m4: New file.
89854
89855         Module memset.
89856         * m4/memset.m4: New file.
89857
89858         Module strcspn.
89859         * m4/strcspn.m4: New file.
89860
89861         Module strpbrk.
89862         * m4/strpbrk.m4: New file.
89863
89864         Module strstr.
89865         * m4/strstr.m4: New file.
89866
89867         Module strerror.
89868         * m4/strerror.m4: New file.
89869
89870         Module mktime.
89871         * m4/mktime.m4: Renamed from jm-mktime.m4.
89872         (gl_PREREQ_MKTIME): New macro.
89873         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89874
89875         Module malloc.
89876         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89877         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89878         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89879
89880         Module realloc.
89881         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89882         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89883         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89884
89885         Module strftime.
89886         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89887         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89888         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89889         gl_TM_GMTOFF.
89890         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89891
89892         Module xalloc.
89893         * m4/xalloc.m4: New file.
89894
89895         Module alloca.
89896         * m4/alloca.m4: New file.
89897
89898         Module putenv.
89899         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89900         (jm_FUNC_PUTENV): Invoke it.
89901
89902         Module setenv.
89903         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89904         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89905         when invoked twice.
89906         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89907         gt_FUNC_SETENV.
89908
89909         Module memrchr.
89910         * m4/memrchr.m4: New file.
89911
89912         Module stpcpy.
89913         * m4/stpcpy.m4: New file.
89914
89915         Module strcase.
89916         * m4/strcase.m4: New file.
89917
89918         Module strdup.
89919         * m4/strdup.m4: New file.
89920
89921         Module strnlen.
89922         * m4/strnlen.m4: New file.
89923
89924         Module strndup.
89925         * m4/strndup.m4: New file.
89926
89927         Module xstrtod.
89928         * m4/xstrtod.m4: New file.
89929
89930         Module xstrtol.
89931         * m4/xstrtol.m4: New file.
89932
89933         Module getdate.
89934         * m4/getdate.m4: New file.
89935
89936         Module unlocked-io.
89937         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89938         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89939         * m4/jm-glibc-io.m4n: Remove file.
89940
89941         Module long-options.
89942         * m4/long-options.m4: New file.
89943
89944         Module md5.
89945         * m4/md5.m4: New file.
89946
89947         Module sha.
89948         * m4/sha.m4: New file.
89949
89950         Module getstr.
89951         * m4/getstr.m4: New file.
89952
89953         Module getline.
89954         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89955         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89956         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89957         simply getline. Infoke gl_PREREQ_GETLINE.
89958
89959         Module obstack.
89960         * m4/obstack.m4: New file.
89961
89962         Module hash.
89963         * m4/hash.m4: New file.
89964
89965         Module readtokens.
89966         * m4/readtokens.m4: New file.
89967
89968         Module strverscmp.
89969         * m4/strverscmp.m4: New file.
89970
89971         Module stdbool.
89972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89973         OSF/1.
89974
89975         Module strtoll.
89976         * m4/strtoll.m4: New file.
89977
89978         Module strtoull.
89979         * m4/strtoull.m4: New file.
89980
89981         Module strtoimax.
89982         * m4/strtoimax.m4: New file.
89983
89984         Module strtoumax.
89985         * m4/strtoumax.m4: New file.
89986
89987         Module xstrtoimax.
89988         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89989         jm_AC_PREREQ_XSTRTOIMAX.
89990         Moved the strtol prerequisites to strtol.m4.
89991         Moved the strtoll prerequisites to strtoll.m4.
89992         Moved the strtoimax prerequisites to strtoimax.m4.
89993
89994         Module xstrtoumax.
89995         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89996         jm_AC_PREREQ_XSTRTOUMAX.
89997         Moved the strtoul prerequisites to strtoul.m4.
89998         Moved the strtoull prerequisites to strtoull.m4.
89999         Moved the strtoumax prerequisites to strtoumax.m4.
90000
90001         Module chown.
90002         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90003         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90004
90005         Module dup2.
90006         * m4/dup2.m4: New file.
90007
90008         Module ftruncate.
90009         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90010         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90011
90012         Module getgroups.
90013         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90014         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90015
90016         Module gettimeofday.
90017         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90018         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90019         gl_PREREQ_GETTIMEOFDAY.
90020
90021         Module mkdir.
90022         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90023         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90024
90025         Module mkstemp.
90026         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90027         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90028         jm_AC_TYPE_UINTMAX_T.
90029         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90030
90031         Module stat.
90032         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90033         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90034
90035         Module lstat.
90036         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90037         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90038
90039         Module timespec.
90040         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90041         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90042         * m4/st_mtim.m4: Indentation.
90043
90044         Module nanosleep.
90045         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90046         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90047         gl_PREREQ_NANOSLEEP.
90048
90049         Module regex.
90050         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90051         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90052         (gl_REGEX): New macro.
90053
90054         Module rename.
90055         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90056         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90057
90058         Module rmdir.
90059         * m4/rmdir.m4: New file.
90060
90061         Module utime.
90062         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90063         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90064         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90065
90066         Module dirname.
90067         * m4/dirname.m4: New file.
90068
90069         Module getopt.
90070         * m4/getopt.m4: New file.
90071
90072         Module unistd-safer.
90073         * m4/unistd-safer.m4: New file.
90074
90075         Module fnmatch.
90076         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90077         declaration.
90078         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90079         (gl_FUNC_FNMATCH_POSIX): New macro.
90080         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90081         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90082         simply fnmatch.
90083
90084         Module exclude.
90085         * m4/exclude.m4: New file.
90086
90087         Module human.
90088         * m4/human.m4: New file.
90089
90090         Module acl.
90091         * m4/acl.m4: Nop.
90092
90093         Module backupfile.
90094         * m4/backupfile.m4: New file.
90095         * m4/d-ino.m4: Indentation.
90096
90097         Module fsusage.
90098         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90099         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90100         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90101
90102         Module dirfd.
90103         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90104         requirements.
90105
90106         Module euidaccess.
90107         * m4/euidaccess.m4: New file.
90108
90109         Module file-type.
90110         * m4/file-type.m4: New file.
90111
90112         Module fileblocks.
90113         * m4/fileblocks.m4: New file.
90114
90115         Module filemode.
90116         * m4/filemode.m4: New file.
90117
90118         Module isdir.
90119         * m4/isdir.m4: New file.
90120
90121         Module lchown.
90122         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90123         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90124
90125         Module makepath.
90126         * m4/makepath.m4: New file.
90127
90128         Module modechange.
90129         * m4/modechange.m4: New file.
90130
90131         Module mountlist.
90132         * m4/mountlist.m4: New file.
90133         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90134         Indentation.
90135
90136         Module path-concat.
90137         * m4/path-concat.m4: New file.
90138
90139         Module pathmax.
90140         * m4/pathmax.m4: New file.
90141
90142         Module same.
90143         * m4/same.m4: New file.
90144
90145         Module save-cwd.
90146         * m4/save-cwd.m4: New file.
90147
90148         Module savedir.
90149         * m4/savedir.m4: New file.
90150
90151         Module xgetcwd.
90152         * m4/xgetcwd.m4: New file.
90153         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90154
90155         Module xreadlink.
90156         * m4/xreadlink.m4: New file.
90157
90158         Module safe-read.
90159         * m4/safe-read.m4: New file.
90160
90161         Module safe-write.
90162         * m4/safe-write.m4: New file.
90163
90164         Module closeout.
90165         * m4/closeout.m4: New file.
90166
90167         Module stdio-safer.
90168         * m4/stdio-safer.m4: New file.
90169
90170         Module getpass.
90171         * m4/getpass.m4: New file.
90172
90173         Module getugroups.
90174         * m4/getugroups.m4: New file.
90175
90176         Module group-member.
90177         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90178         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90179
90180         Module idcache.
90181         * m4/idcache.m4: New file.
90182
90183         Module userspec.
90184         * m4/userspec.m4: New file.
90185
90186         Module gettime.
90187         * m4/clock_time.m4: New file.
90188         * m4/gettime.m4: New file.
90189
90190         Module settime.
90191         * m4/settime.m4: New file.
90192
90193         Module posixtm.
90194         * m4/posixtm.m4: New file.
90195
90196         Module gethostname.
90197         * m4/gethostname.m4: New file.
90198
90199         Module canon-host.
90200         * m4/canon-host.m4: New file.
90201
90202         Module gettext.
90203         * m4/codeset.m4: New file, from gettext-0.11.5.
90204         * m4/gettext.m4: New file, from gettext-0.11.5.
90205         * m4/glibc21.m4: New file, from gettext-0.11.5.
90206         * m4/iconv.m4: New file, from gettext-0.11.5.
90207         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90208         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90209         * m4/inttypes.m4: New file, from gettext-0.11.5.
90210         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90211         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90212         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90213         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90214         * m4/lib-link.m4: New file, from gettext-0.11.5.
90215         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90216         * m4/progtest.m4: New file, from gettext-0.11.5.
90217         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90218         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90219         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90220
90221         Module localcharset.
90222         * m4/localcharset.m4: New file.
90223
90224         Module hard-locale.
90225         * m4/hard-locale.m4: New file.
90226
90227         Module mbswidth.
90228         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90229         onceonly macros.
90230         * m4/mbrtowc.m4: Add comment.
90231
90232         Module memcasecmp.
90233         * m4/memcasecmp.m4: New file.
90234
90235         Module memcoll.
90236         * m4/memcoll.m4: New file.
90237
90238         Module unicodeio.
90239         * m4/unicodeio.m4: New file.
90240
90241         Module rpmatch.
90242         * m4/rpmatch.m4: New file.
90243
90244         Module yesno.
90245         * m4/yesno.m4: New file.
90246
90247         Module exitfail.
90248         * m4/exitfail.m4: New file.
90249
90250         Module c-stack.
90251         * m4/c-stack.m4 (gl_C_STACK): New macro.
90252         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90253
90254         Module error.
90255         * m4/error.m4 (gl_ERROR): New macro.
90256         (jm_PREREQ_ERROR): Use onceonly macros.
90257
90258         Module fatal.
90259         * m4/fatal.m4: New file.
90260
90261         Module getloadavg.
90262         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90263         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90264
90265         Module getpagesize.
90266         * m4/getpagesize.m4: New file.
90267
90268         Module getusershell.
90269         * m4/getusershell.m4: New file.
90270
90271         Module physmem.
90272         * m4/physmem.m4: New file.
90273
90274         Module posixver.
90275         * m4/posixver.m4: New file.
90276
90277         Module quotearg.
90278         * m4/quotearg.m4: New file.
90279
90280         Module quote.
90281         * m4/quote.m4: New file.
90282
90283         Module readutmp.
90284         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90285
90286         Module sig2str.
90287         * m4/sig2str.m4: New file.
90288
90289         Other.
90290         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90291         ulonglong.m4.
90292         * m4/intmax_t.m4: New file.
90293         * m4/d-type.m4: Indentation.
90294         * m4/jm-macros.m4: Update.
90295         * m4/prereq.m4 (jm_PREREQ): Update.
90296         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90297         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90298         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90299         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90300         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90301         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90302         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90303         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90304         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90305         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90306         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90307         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90308         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90309         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90310         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90311         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90312         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90313         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90314         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90315
90316 2002-12-24  Bruno Haible  <bruno@clisp.org>
90317
90318         * MODULES.txt: Update according to m4/ changes.
90319
90320         Module gettext.
90321         * config.rpath: New file, from gettext-0.11.5.
90322
90323         * modules/*: New module descriptions.
90324         * gnulib-tool: New file.
90325         * MODULES.html.sh: New file.
90326
90327 2002-12-21  Karl Berry  <karl@gnu.org>
90328
90329         * doc/fdl.texi: update to version 1.2.
90330
90331 2002-12-19  Karl Berry  <karl@gnu.org>
90332
90333         * config/config.guess: update from prep.
90334
90335 2002-12-18  Bruno Haible  <bruno@clisp.org>
90336
90337         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90338         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90339
90340 2002-12-17  Bruno Haible  <bruno@clisp.org>
90341
90342         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90343         stdlib.h, string.h.
90344
90345 2002-12-17  Bruno Haible  <bruno@clisp.org>
90346
90347         * lib/canon-host.c (strdup): Remove unused declaration.
90348
90349         * lib/fsusage.c: Include full_read.h.
90350         (get_fs_usage): Use full_read instead of safe_read.
90351
90352         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90353
90354 2002-12-12  Karl Berry  <karl@gnu.org>
90355
90356         * config/config.guess: update from prep.
90357
90358 2002-12-11  Bruno Haible  <bruno@clisp.org>
90359
90360         * m4/setenv.m4: New file, from gettext-0.11.5.
90361
90362 2002-12-11  Bruno Haible  <bruno@clisp.org>
90363
90364         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90365         not unsetenv().
90366         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90367         modifications:
90368
90369         2002-12-11  Bruno Haible  <bruno@clisp.org>
90370
90371                 * setenv.c (alloca): Fall back to malloc.
90372                 (freea): New macro.
90373                 (setenv): Use freea() to free memory allocated with alloca().
90374
90375         2002-11-13  Bruno Haible  <bruno@clisp.org>
90376
90377                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90378                 function declarations.
90379                 * unsetenv.c (unsetenv): Likewise.
90380
90381         2002-03-04  Bruno Haible  <bruno@clisp.org>
90382
90383                 Portability to AIX 4.3.3.
90384                 * unsetenv.c: New file, extracted from setenv.c.
90385                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90386
90387         2001-12-20  Bruno Haible  <bruno@clisp.org>
90388
90389                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90390                 use malloc instead. For SunOS 4.
90391
90392         2001-12-11  Bruno Haible  <bruno@clisp.org>
90393
90394                 * setenv.c: Declare alloca.
90395                 (compar_fn_t): New typedef.
90396                 (KNOWN_VALUE, STORE_VALUE): Use it.
90397
90398         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90399         setenv.h.
90400
90401 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90402
90403         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90404         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90405         Choose values that are less likely to collide with system fnmatch
90406         options.
90407         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90408         defined (e.g., a pure POSIX system).
90409         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90410         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90411
90412 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90413
90414         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90415         a pain in practice to deal with generated m4 files.  This change
90416         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90417
90418         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90419         and jm-glibc-io.m4, as they are no longer a special case.
90420         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90421         kludge and the auto-generation stuff.  Check only whether the
90422         functions are declared, not whether they exist, since older hosts
90423         that don't declare the functions can't use the optimization anyway.
90424
90425 2002-12-06  Jim Meyering  <jim@meyering.net>
90426
90427         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90428
90429         Merge in changes from libc's misc/error.c, in preparation
90430         for the merge of gnulib's changes back into libc.
90431
90432         * lib/error.c (_): Define only if not already defined.
90433         Move definition to follow all #include directives.
90434         Include unlocked-io.h only if !_LIBC.
90435         [_LIBC]: Include <libio/libioP.h>.
90436         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90437         (fflush): Tweak definition to use INTUSE.
90438         (putc): Define.
90439
90440 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90441
90442         * lib/alloca.c [defined emacs]: Include "lisp.h".
90443         (xalloc_die) [defined emacs]: New macro.
90444         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90445         [! defined emacs]: Include <xalloc.h>.
90446         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90447         (pointer): Typedef to POINTER_TYPE *.
90448         (malloc): Remove decl; we now always use xmalloc.
90449         (alloca): Use old-style definition, since Emacs needs this.
90450         Check for arithmetic overflow when computing combined size.
90451
90452 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90453
90454         Do not generate unlocked-io.h automatically, since it's easier to
90455         maintain it by hand.
90456
90457         * lib/unlocked-io.h: New file, from GNU diffutils,
90458         but with proper copyright notice and attribution.
90459         * lib/gen-uio: Remove.
90460         * lib/Makefile.am: Add copyright notice.
90461         (libfetish_a_SOURCES): Add unlocked-io.h.
90462         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90463         (DISTCLEANFILES, io_functions): Remove macros.
90464         (EXTRA_DIST): Remove gen_uio.
90465         (unlocked-io.h): Remove rule.
90466
90467 2002-12-04  Jim Meyering  <jim@meyering.net>
90468
90469         Reflect the fact that stat.c and lstat.c are no longer generated.
90470         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90471         (DISTCLEANFILES): Likewise.
90472         (EXTRA_DIST): Likewise.
90473         (all_local): Don't depend on stat.c or lstat.c.
90474         (stat.c, lstat.c): Remove rules.
90475         (EXTRA_DIST): Remove xstat.in.
90476
90477         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90478         * lib/stat.c: New file.  Contents mostly from xstat.in.
90479         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90480         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90481
90482         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90483         too.
90484         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90485
90486 2002-12-03  Jim Meyering  <jim@meyering.net>
90487
90488         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90489         but not semantics, to minimize the differences between these two files.
90490         (safe_read): Change comment to mention SAFE_READ_ERROR.
90491
90492         * lib/safe-read.c (IS_EINTR): Define.
90493         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90494
90495 2002-12-02  Jim Meyering  <jim@meyering.net>
90496
90497         * lib/safe-read.c (EINTR): Define.
90498         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90499         (INT_MAX): Provide fallback.
90500         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90501
90502         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90503
90504 2002-12-02  Bruno Haible  <bruno@clisp.org>
90505
90506         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90507         Define, taken from safe-read.c.
90508         (INT_MAX): Provide fallback.
90509         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90510         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90511
90512         * lib/safe-read.c (EINTR): Remove definition.
90513         (safe_read): Don't use EINTR if it is absent.
90514
90515 2002-12-01  Jim Meyering  <jim@meyering.net>
90516
90517         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90518         zero.
90519         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90520
90521 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90522
90523         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90524         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90525         with `if (! (value < limit)) abort ();', for readability.
90526
90527 2002-11-26  Karl Berry  <karl@gnu.org>
90528
90529         * lib/strdup.c: copy from libc again, with jim's ok.
90530         * lib/.cppi-disable: re-add strdup.c
90531
90532 2002-11-25  Karl Berry  <karl@gnu.org>
90533
90534         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90535         instead of "strtol.c".
90536
90537 2002-11-25  Karl Berry  <karl@gnu.org>
90538
90539         * config/install-sh: update from automake for variable quoting, $0 in
90540         error msgs, etc.
90541
90542         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90543         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90544         entry.
90545
90546 2002-11-25  Jim Meyering  <jim@meyering.net>
90547
90548         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90549
90550 2002-11-24  Karl Berry  <karl@gnu.org>
90551
90552         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90553         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90554
90555 2002-11-24  Jim Meyering  <jim@meyering.net>
90556
90557         Update from coreutils:
90558
90559         * lib/mktime.c: Merge in changes from libc.
90560
90561         Avoid a link-time failure on some Linux systems.
90562         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90563         (otherwise).
90564         (__mon_yday): Declare with the STATIC attribute.
90565         (__mktime_internal): Likewise.
90566         Based on a report from Greg Schafer.
90567
90568 2002-11-23  Jim Meyering  <jim@meyering.net>
90569
90570         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90571         Use `unsigned', not `int', as type of index.
90572
90573         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90574
90575         * lib/fsusage.c: Remove unneeded parentheses around operands of
90576         `defined'.
90577
90578 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90579
90580         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90581         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90582         so that we can be included first.
90583         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90584         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90585         No need to include stddef.h or sys/types.h any more.
90586         Surround local include files with "", not "<>".
90587         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90588         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90589         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90590         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90591         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90592         (ISPRINT): Remove; no longer needed now that we assume C89.
90593
90594         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90595         Preserve errno.
90596
90597         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90598         quotearg_char): Use SIZE_MAX rather than
90599         (size_t) -1 when we are talking about "infinity".
90600
90601         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90602
90603 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90604
90605         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90606         hint that one should use `if (! x) abort ();' rather than `assert
90607         (x);', and anyway it's one less thing to worry about configuring.
90608         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90609         hash_rehash, hash_insert): Use abort rather than assert.
90610
90611 2002-11-22  Bruno Haible  <bruno@clisp.org>
90612
90613         * lib/safe-read.h: Assume C89. Add comments.
90614         (safe_read): Change return type to size_t.
90615         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90616         byte counts > SSIZE_MAX correctly.
90617         * lib/safe-write.h: New file.
90618         * lib/safe-write.c: New file.
90619         * lib/full-read.h: New file.
90620         * lib/full-read.c: New file.
90621         * lib/full-write.h: Assume C89. Add comments.
90622         * lib/full-write.c: Include safe-write.h.
90623         (full_write): Rewritten to use safe_write.
90624         Suggested by Jim Meyering and Paul Eggert.
90625
90626 2002-11-21  Jim Meyering  <jim@meyering.net>
90627
90628         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90629
90630         Merge in changes from the coreutils.
90631
90632         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90633         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90634         <stdint.h>.
90635         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90636         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90637         int.  Work more efficiently if X is the same width as uintmax_t.
90638         Do not compare X to -1, to avoid bogus compiler warning.
90639         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90640         Don't assume that f_frsize and f_bsize are the same type.
90641
90642         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90643         warning on FreeBSD.
90644
90645         * lib/makepath.c (make_path): Restore umask *before* creating the final
90646         component.
90647         (make_path): Minor reformatting.
90648
90649         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90650         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90651         HAVE_MALLOC/HAVE_REALLOC.
90652
90653         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90654         dummy ones.  At least on GNU/Linux systems, `auto' means something
90655         else.
90656         From Michael Stone.
90657
90658 2002-11-21  Bruno Haible  <bruno@clisp.org>
90659
90660         Remove case insensitive option matching.
90661         * lib/argmatch.h (argcasematch): Remove declaration.
90662         (ARGCASEMATCH): Remove macro.
90663         (__xargmatch_internal): Remove case_sensitive argument.
90664         (XARGMATCH): Update.
90665         (XARGCASEMATCH): Remove macro.
90666         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90667         case_sensitive argument.
90668         (argcasematch): Remove function.
90669         (__xargmatch_internal): Remove case_sensitive argument.
90670         (main): Use XARGMATCH instead of XARGCASEMATCH.
90671
90672         * lib/xmalloc.c: Change compile-time error message. Add comment about
90673         required autoconf version.
90674
90675 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90676
90677         Merge argmatch cleanups from Bison.  Assume C89.
90678
90679         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90680         Include stdlib.h, for EXIT_FAILURE.
90681         Always include <string.h>, since we assume C89.
90682         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90683         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90684         Include <stddef.h> instead, since it's all we need for size_t.
90685         (PARAMS): Remove.  All uses removed.
90686         (ARRAY_CARDINALITY): Do not bother to #undef.
90687         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90688         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90689         Remove unnecessary parentheses.
90690         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90691         Insert necessary parentheses.
90692         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90693         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90694
90695 2002-11-19  Bruno Haible  <bruno@clisp.org>
90696
90697         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90698         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90699
90700         * lib/mbswidth.h (PARAMS): Remove macro.
90701         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90702         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90703
90704         * lib/gcd.h (PARAMS): Remove macro.
90705         (gcd): Use ANSI C function declarations.
90706         * lib/gcd.c (gcd): Likewise.
90707
90708 2002-11-15  Bruno Haible  <bruno@clisp.org>
90709
90710         * lib/strcspn.c: Include <stddef.h>.
90711         (strcspn): Use ANSI C function declaration. Change return type to
90712         size_t. Use NULL.
90713         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90714         (strpbrk): Use NULL.
90715         * lib/strpbrk.h (PARAMS): Remove macro.
90716         (strpbrk): Use ANSI C function declaration.
90717         * lib/strstr.c: Don't include <sys/types.h>.
90718         * lib/strstr.h (PARAMS): Remove macro.
90719         (strstr): Use ANSI C function declarations.
90720
90721 2002-11-14  Karl Berry  <karl@gnu.org>
90722
90723         * config/mkinstalldirs: `do' on separate line, instead of
90724         `for var; do'.
90725
90726 2002-11-06  Bruno Haible  <bruno@clisp.org>
90727
90728         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90729         * lib/gcd.c (gcd): Likewise.
90730
90731 2002-11-05  Bruno Haible  <bruno@clisp.org>
90732
90733         * lib/gcd.h: New file, from gettext-0.11.5.
90734         * lib/gcd.c: New file, from gettext-0.11.5.
90735
90736 2002-11-05  Bruno Haible  <bruno@clisp.org>
90737
90738         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90739         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90740         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90741         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90742
90743         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90744         <libintl.h>.
90745         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90746         <libintl.h>.
90747
90748         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90749         * lib/human.c: Include gettext.h instead of <libintl.h>.
90750         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90751         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90752         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90753         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90754         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90755         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90756         (textdomain): Remove definition.
90757         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90758
90759         * lib/long-options.c: Remove include of <libintl.h> and definition of
90760         _.
90761         * lib/same.c: Remove include of <libintl.h> and definition of _.
90762
90763 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90764
90765         * lib/config.charset: A few additions for Solaris.
90766
90767 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90768
90769         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90770         * lib/localcharset.c (locale_charset): Declare as extern "C".
90771
90772 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90773
90774         * lib/config.charset: msdos in uk_UA uses CP1125.
90775
90776 2002-11-04  Bruno Haible  <bruno@clisp.org>
90777
90778         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90779         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90780         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90781         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90782         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90783
90784 2002-11-04  Bruno Haible  <bruno@clisp.org>
90785
90786         * lib/localcharset.c (locale_charset): Don't return an empty string.
90787
90788 2002-11-04  Bruno Haible  <bruno@clisp.org>
90789
90790         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90791         aliases.
90792
90793 2002-11-04  Bruno Haible  <bruno@clisp.org>
90794
90795         * lib/config.charset: Update for newest glibc. Add canonical names
90796         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90797
90798 2002-11-04  Bruno Haible  <bruno@clisp.org>
90799
90800         * lib/config.charset: Add support for NetBSD.
90801
90802 2002-11-04  Bruno Haible  <bruno@clisp.org>
90803
90804         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90805
90806 2002-11-01  Bruno Haible  <bruno@clisp.org>
90807
90808         * configure.in: Add AC_CONFIG_AUX_DIR call.
90809         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90810         test/Makefile.
90811         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90812
90813 2002-09-28  Karl Berry  <karl@gnu.org>
90814
90815         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90816         installed automake until the next release, since changes have been
90817         made.
90818
90819 2002-09-25  Karl Berry  <karl@gnu.org>
90820
90821         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90822         * lib/getopt*: copy from libc/posix.
90823         * lib/gettext.h: copy from gettext.
90824         * lib/.cppi-disable: add strdup.c, gettext.h.
90825
90826 2002-09-25  Karl Berry  <karl@gnu.org>
90827
90828         * config/srclist.txt: enable gettext.h check.
90829         * config/config.{guess,sub}: update from prep.
90830         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90831                 from automake 1.6.3.
90832         See srclist*.
90833
90834 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90835
90836         * regex.c (PATFETCH): Remove the translating fetch.
90837         (PATFETCH_RAW): Rename to PATFETCH.
90838         (set_image_of_range): New fun.
90839         (SET_RANGE_TABLE_WORK_AREA): Use it.
90840         (regex_compile): Don't translate the pattern chars so eagerly.
90841         Only do it when inserting an `exactn' bytecode or when handling
90842         a char-range.
90843         (mutually_exclusive_p): Avoid empty statement.
90844
90845 2002-07-06  Jim Meyering  <meyering@lucent.com>
90846
90847         * m4/README: Don't mention Makefile.am.in.
90848         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90849
90850 2002-07-01  Jim Meyering  <meyering@lucent.com>
90851
90852         * lib/c-stack.c: Include sys/time.h.
90853         From Volker Borchert.
90854
90855 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90856
90857         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90858
90859 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90860
90861         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90862         New macro.  Use it uniformly instead of
90863         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90864         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90865         reported by Vin Shelton.
90866
90867 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90868
90869         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90870         Do not assume SA_SIGINFO behavior.
90871         Bug reported by Jim Meyering on NetBSD 1.5.2.
90872
90873 2002-06-22  Jim Meyering  <meyering@lucent.com>
90874
90875         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90876         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90877
90878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90879         now that configure.ac uses AC_GNU_SOURCE.
90880         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90881         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90882
90883         Update to latest tools.  Suggestions from Paul Eggert.
90884         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90885         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90886         * m4/fnmatch.m4: Likewise.
90887         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90888         to AC_HEADER_STDBOOL
90889
90890 2002-06-22  Jim Meyering  <meyering@lucent.com>
90891
90892         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90893         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90894
90895 2002-06-22  Jim Meyering  <meyering@lucent.com>
90896
90897         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90898
90899         * lib/exitfail.c, exitfail.h: Likewise.
90900         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90901
90902         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90903         of fnmatch.h.
90904         (EXTRA_DIST): Add fnmatch_loop.c.
90905         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90906
90907         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90908         * lib/fnmatch.c: Update from diffutils-2.8.2.
90909         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90910         * lib/fnmatch.h: Remove file.
90911
90912 2002-06-21  Jim Meyering  <meyering@lucent.com>
90913
90914         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90915         * m4/mbrtowc.m4: Likewise.
90916
90917         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90918         * m4/mbswidth.m4: Reflect name change:
90919         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90920         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90921
90922         * m4/lib-link.m4: Update from gettext-0.11.2.
90923         * m4/gettext.m4: Likewise.
90924
90925         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90926         From Alfred M. Szmidt.
90927
90928 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90929
90930         * lib/file-type.h: Report an error if neither S_ISREG nor
90931         S_IFREG is defined, instead of using a test specific to glibc
90932         2.2.  This should be safe, since POSIX requires S_ISREG and
90933         Unix Version 7 had S_IFREG.  We don't need to check for
90934         <sys/types.h> since we don't use any symbols that it defines.
90935
90936 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90937
90938         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90939         $@-t, so that each temporary file name is unique and valid in the first
90940         8 characters, for operation under DOS.
90941
90942 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90943
90944         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90945
90946 2002-06-15  Jim Meyering  <meyering@lucent.com>
90947
90948         Work even with DJGPP 2.03, which lacks support for symlinks.
90949         From Richard Dawe.
90950         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90951         is defined.
90952         * lib/lchown.c (S_ISLNK): Likewise.
90953
90954 2002-06-15  Jim Meyering  <meyering@lucent.com>
90955
90956         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90957         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90958         have been included before this file.
90959
90960 2002-06-14  Jim Meyering  <meyering@lucent.com>
90961
90962         * lib/file-type.h: Use the version from diffutils-2.8.2.
90963         * lib/file-type.c: Likewise.
90964
90965 2002-06-07  Jim Meyering  <meyering@lucent.com>
90966
90967         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90968         They're needed at least for NetBSD 1.5.2.
90969         ($statxfs_includes): Include those same headers.
90970         ($statxfs_includes): Include sys/vfs.h if available.
90971         ($statxfs_includes): Likewise for sys/statvfs.h.
90972         Check for the following members in both structs statfs and statvfs:
90973         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90974
90975 2002-06-01  Jim Meyering  <meyering@lucent.com>
90976
90977         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90978         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90979
90980 2002-05-28  Jim Meyering  <meyering@lucent.com>
90981
90982         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90983         Reported by Volker Borchert.
90984
90985 2002-05-27  Jim Meyering  <meyering@lucent.com>
90986
90987         Fix a problem seen only on nonconforming systems whereby ls.c's
90988         use of localtime, and then of gettimeofday would cause trouble:
90989         the localtime call used to initialize rpl_gettimeofday's save
90990         mechanism would clobber ls's current local time information so
90991         that in any long listing the first file would always be listed
90992         with date 1970-01-01.  Analysis by Volker Borchert.
90993
90994         * lib/gettimeofday.c (localtime): Undefine.
90995         (rpl_localtime): New function.
90996
90997 2002-05-27  Jim Meyering  <meyering@lucent.com>
90998
90999         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91000         localtime.
91001
91002         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91003         use the replacement function; it wouldn't resolve at link time.
91004         Reported by Volker Borchert.
91005
91006 2002-05-22  Jim Meyering  <meyering@lucent.com>
91007
91008         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91009         file-type.h.
91010         * lib/file-type.h: New file.
91011         * lib/file-type.c (file_type): New file/function.  Extracted from
91012         diffutils.
91013
91014 2002-04-30  Jim Meyering  <meyering@lucent.com>
91015
91016         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91017
91018 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91019
91020         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91021
91022 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91023
91024         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91025         Do not check for alloca.h (no longer used) or stdbool.h (was never
91026         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91027
91028 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91029
91030         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91031
91032 2002-04-29  Jim Meyering  <meyering@lucent.com>
91033
91034         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91035         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91036         Use AC_FUNC_STRNLEN here instead.
91037
91038         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91039         With autoconf-2.53a, it's part of AC_PROG_CC.
91040
91041 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91042
91043         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91044         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91045
91046 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91047
91048         * lib/sig2str.h, lib/sig2str.c: New files.
91049         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91050
91051 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91052
91053         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91054         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91055         of 127, since 64 is the largest conceivable number for ancient
91056         nonstandard hosts.
91057         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91058
91059 2002-04-28  Jim Meyering  <meyering@lucent.com>
91060
91061         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91062
91063 2002-04-24  Jim Meyering  <meyering@lucent.com>
91064
91065         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91066         (jm_PREREQ): Use it.
91067
91068         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91069         mach/mach.h fcntl.h.
91070         Check for this function: setlocale.
91071
91072 2002-04-24  Jim Meyering  <meyering@lucent.com>
91073
91074         * lib/gettext.h: New file, from Gettext.
91075         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91076         (libfetish_a_SOURCES): Add gettext.h.
91077
91078 2002-04-16  Jim Meyering  <meyering@lucent.com>
91079
91080         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91081         ut_pid, ut_id, ut_exit.
91082
91083 2002-04-16  Jim Meyering  <meyering@lucent.com>
91084
91085         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91086         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91087         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91088
91089 2002-04-12  Jim Meyering  <meyering@lucent.com>
91090
91091         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91092         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91093         existence of the getmntinfo function.  Needed for Darwin 5.3.
91094
91095         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91096         This is necessary at least on Darwin 5.3.
91097
91098         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91099         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91100         strnlen.o in the library, and that makes some versions of ranlib
91101         object.
91102
91103 2002-04-12  Jim Meyering  <meyering@lucent.com>
91104
91105         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91106
91107 2002-04-09  Jim Meyering  <meyering@lucent.com>
91108
91109         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91110         to be more precise.  Rather than saying we're checking whether the
91111         function `works', say what we're testing.
91112         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91113         Reported by Bruno Haible.
91114
91115 2002-03-10  Jim Meyering  <meyering@lucent.com>
91116
91117         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91118         Suggestion from Santiago Vila.
91119
91120 2002-03-08  Jim Meyering  <meyering@lucent.com>
91121
91122         * lib/rename.c: Mention that this wrapper is needed also on
91123         mips-dec-ultrix4.4 systems.
91124
91125 2002-03-02  Jim Meyering  <meyering@lucent.com>
91126
91127         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91128         not HAVE_CLOCK_SETTIME.
91129
91130 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91131
91132         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91133         Check for clock_settime.
91134
91135 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91136
91137         * lib/nanosleep.h: Rename to....
91138         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91139
91140         * lib/gettime.c: New file.
91141         * lib/settime.c: New file.
91142         * lib/stime.c: Remove.
91143
91144         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91145         timespec.h.  Remove nanosleep.h.
91146
91147 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91148
91149         * m4/acl.m4: New file.
91150         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91151         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91152
91153 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91154
91155         * lib/acl.c, lib/acl.h: New files.
91156         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91157
91158 2002-02-24  Jim Meyering  <meyering@lucent.com>
91159
91160         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91161         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91162         cause trouble.  Reported by Nelson Beebe.
91163
91164 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91165
91166         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91167         compilers that don't know that xalloc_die never returns.
91168
91169 2002-02-20  Jim Meyering  <meyering@lucent.com>
91170
91171         * lib/getdate.c: Regenerate using bison-1.33.
91172
91173 2002-02-17  Jim Meyering  <meyering@lucent.com>
91174
91175         * config/config.guess (main): Don't use `head -1'; it's no longer
91176         portable. Use `sed 1q' instead.
91177
91178 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91179
91180         * m4/codeset.m4: Upgrade to gettext-0.11.
91181         * m4/gettext.m4: Upgrade to gettext-0.11.
91182         * m4/glibc21.m4: Upgrade to gettext-0.11.
91183         * m4/iconv.m4: Upgrade to gettext-0.11.
91184         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91185         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91186         * m4/lib-ld.m4: New file, from gettext-0.11.
91187         * m4/lib-link.m4: New file, from gettext-0.11.
91188         * m4/lib-prefix.m4: New file, from gettext-0.11.
91189         * m4/progtest.m4: Upgrade to gettext-0.11.
91190
91191 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91192
91193         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91194         (jm_PREREQ): Use it.
91195
91196 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91197
91198         * lib/posixver.c, lib/posixver.h: New files.
91199         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91200
91201 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91202             Bruno Haible  <bruno@clisp.org>
91203
91204         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91205         (fwrite_success_callback): New declaration.
91206         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91207         print_unicode_char. Call failure callback instead of error.
91208         (fwrite_success_callback): New function.
91209         (exit_failure_callback): New function.
91210         (fallback_failure_callback): New function.
91211         (print_unicode_char): Call unicode_to_mb.
91212
91213 2002-01-26  Jim Meyering  <meyering@lucent.com>
91214
91215         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91216         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91217
91218 2002-01-26  Jim Meyering  <meyering@lucent.com>
91219
91220         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91221
91222 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91223
91224         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91225
91226 2002-01-22  Jim Meyering  <meyering@lucent.com>
91227
91228         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91229         Otherwise, some versions of automake would omit the rule that makes
91230         Makefile from Makefile.in.
91231
91232 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91233
91234         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91235         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91236         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91237         (memcoll): Set errno to zero if there is no error.
91238
91239         * lib/quotearg.c (quotearg_buffer_restyled):
91240         Fix bug with quoting buffers containing NUL when backslashing escapes.
91241         This bug was exposed by the other changes in this patch.
91242         (quotearg_n_options): New arg ARGSIZE.
91243         All callers changed.
91244         (quoting_options_from_style): New function.
91245         (quotearg_n_style): Use it.
91246         (quotearg_n_style_mem): New function.
91247
91248         * lib/quotearg.h (quotearg_n_style_mem): New function.
91249
91250 2002-01-19  Jim Meyering  <meyering@lucent.com>
91251
91252         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91253         Remove useless quotes: DF_PROG="df".
91254         * m4/strnlen.m4: New file.
91255
91256 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91257
91258         * lib/backupfile.c (ISDIGIT): Comment fix.
91259         * lib/getdate.y (ISDIGIT): Likewise.
91260         * lib/posixtm.c (ISDIGIT, year): Likewise.
91261         * lib/strverscmp.c (ISDIGIT): Likewise.
91262         * lib/userspec.c (ISDIGIT): Likewise.
91263
91264 2002-01-16  Jim Meyering  <meyering@lucent.com>
91265
91266         * lib/getdate.y: Add three semicolons, each just before a closing
91267         brace. Bison (as of version 1.31) no longer papers over that mistake.
91268
91269 2002-01-05  Jim Meyering  <meyering@lucent.com>
91270
91271         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91272
91273 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91274
91275         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91276         not silently exit merely because the output buffer happens to
91277         have nothing pending.
91278
91279 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91280
91281         See the big note in ../ChangeLog.
91282         * lib/human.c (suffixes): Prefer K to k for 1024.
91283         (generate_suffix_backwards): New function.
91284         (human_readable_inexact): Use it.
91285         * lib/xstrtol.c (__xstrtol): If there is no number but there
91286         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91287         Accept 'K' as well as 'k'.
91288
91289 2001-12-15  Jim Meyering  <meyering@lucent.com>
91290
91291         * lib/regex.h (__restrict_arr): Update from libc.
91292
91293         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91294         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91295         (STREQ): Define.
91296
91297 2001-12-14  Jim Meyering  <meyering@lucent.com>
91298
91299         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91300         Suggestion from Bruno Haible.
91301
91302 2001-12-10  Jim Meyering  <meyering@lucent.com>
91303
91304         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91305         xrealloc, Instead, include "xalloc.h".
91306         (initbuffer): Don't cast xmalloc return value to char*.
91307         (readline): Reword comment.
91308         Don't cast xrealloc return value to char*
91309         Return NULL, not 0.
91310
91311 2001-12-09  Jim Meyering  <meyering@lucent.com>
91312
91313         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91314         about `signed and unsigned type in conditional expression'.
91315         * lib/posixtm.c (posix_time_parse): Likewise.
91316
91317         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91318
91319         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91320         to avoid a pedantic warning.
91321
91322         * lib/getstr.c: Don't include assert.h.
91323         (getstr): Remove warning-evoking assertions.
91324         Return -1 if offset parameter is out of bounds.
91325         Change the type of a local from int to size_t.
91326
91327         * lib/strftime.c (my_strftime_localtime_r): Include this function
91328         definition in the `#if ! HAVE_TM_GMTOFF' block.
91329
91330         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91331         Include xalloc.h instead.
91332
91333 2001-12-02  Jim Meyering  <meyering@lucent.com>
91334
91335         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91336         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91337         included.
91338
91339         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91340         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91341
91342 2001-11-30  Akim Demaille  <akim@epita.fr>
91343
91344         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91345         before being defined.
91346
91347 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91348
91349         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91350         First arg is int, not unsigned.
91351         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91352         (SIZE_MAX, UINT_MAX): New macros.
91353         (quotearg_n_options): Abort if N is negative.
91354         Avoid overflow check on hosts where size_t is 64 bits and int
91355         is 32 bits, as overflow is impossible there.
91356         Fix off-by-one typo that caused unnecessary reallocation.
91357
91358 2001-11-27  Jim Meyering  <meyering@lucent.com>
91359
91360         * lib/tempname.c: Merge with version from libc.
91361         * lib/regex.c: Likewise.
91362
91363         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91364         systems for which STDC_HEADERS is 0, it was not included, resulting in
91365         a warning about an integer-to-pointer conversion problem with getenv.
91366         Reported by Volker Borchert.
91367
91368 2001-11-26  Jim Meyering  <meyering@lucent.com>
91369
91370         * lib/gtod.h: Remove file.
91371         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91372         * lib/gettimeofday.c: Don't include gtod.h.
91373         (GTOD_init): Remove function.
91374         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91375         Suggestion from Volker Borchert.
91376
91377 2001-11-23  Jim Meyering  <meyering@lucent.com>
91378
91379         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91380         it.
91381         * lib/hash.c (struct hash_table): Define it here instead.
91382
91383 2001-11-22  Jim Meyering  <meyering@lucent.com>
91384
91385         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91386
91387 2001-11-20  Jim Meyering  <meyering@lucent.com>
91388
91389         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91390         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91391
91392 2001-11-19  Jim Meyering  <meyering@lucent.com>
91393
91394         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91395         directory.  Use "conftestXXXXXX" as the template.
91396         Suggestion from Paul Eggert.
91397
91398         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91399         immediately, so the test doesn't mistakenly hit the max-open-files
91400         limit.
91401
91402 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91403
91404         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91405         (TEMPORARIES): New macro.
91406         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91407         removes an artificial limitation (e.g. HP-UX 10.20, where
91408         TMP_MAX is 17576).
91409
91410 2001-11-18  Jim Meyering  <meyering@lucent.com>
91411
91412         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91413
91414 2001-11-18  Jim Meyering  <meyering@lucent.com>
91415
91416         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91417         on SunOS 4.
91418
91419         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91420         files will be created before anything else.
91421
91422 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91423
91424         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91425         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91426
91427 2001-11-17  Jim Meyering  <meyering@lucent.com>
91428
91429         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91430         Prompted by a report from Bob Proulx.
91431
91432         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91433         Instead, require UTILS_FUNC_MKSTEMP.
91434
91435 2001-11-17  Jim Meyering  <meyering@lucent.com>
91436
91437         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91438         Now, that's done as part of AC_FUNC_STRTOD.
91439
91440 2001-11-17  Jim Meyering  <meyering@lucent.com>
91441
91442         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91443         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91444         rather than group writable.  Patch by Juan F. Codagnone.
91445
91446         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91447         xrealloc, Instead, include "xalloc.h".
91448
91449         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91450         Remove explicit declarations of xmalloc, xrealloc,
91451         and xstrdup.  Instead, include "xalloc.h".
91452
91453         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91454         unlocked-io.h.
91455         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91456         Likewise.
91457         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91458
91459         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91460         Reported by Padraig Brady.
91461
91462         * lib/mkstemp.c: #undef mkstemp.
91463         Include config.h.
91464         (rpl_mkstemp): Rename from mkstemp.
91465         Protoize.
91466
91467 2001-11-16  Jim Meyering  <meyering@lucent.com>
91468
91469         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91470         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91471         determine the amount of total physical memory, use pstat_getstatic.
91472         HPUX-11 doesn't define _SC_PHYS_PAGES.
91473         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91474         If sysconf couldn't be used to determine the amount of available
91475         physical memory, use both pstat_getstatic and pstat_getdynamic.
91476         Based on a patch from Bob Proulx.
91477
91478 2001-11-10  Jim Meyering  <meyering@lucent.com>
91479
91480         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91481         (jm_PREREQ): Use it.
91482
91483 2001-11-09  Jim Meyering  <meyering@lucent.com>
91484
91485         * m4/jm-macros.m4: Require autoconf-2.52f.
91486         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91487         Use these AC_-prefixed names, not the AM_-prefixed ones.
91488
91489         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91490
91491 2001-11-05  Jim Meyering  <meyering@lucent.com>
91492
91493         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91494
91495 2001-11-04  Jim Meyering  <meyering@lucent.com>
91496
91497         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91498         $DEFS.
91499
91500 2001-11-03  Jim Meyering  <meyering@lucent.com>
91501
91502         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91503         of AC_DEFUN.
91504
91505         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91506         know the name of the variable in the macro definition.
91507
91508 2001-11-03  Jim Meyering  <meyering@lucent.com>
91509
91510         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91511         in argmatch_to_argument call.
91512
91513         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91514         argument.
91515
91516         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91517         e.g., a fault due to an attempt to free a NULL pointer.
91518
91519 2001-11-01  Jim Meyering  <meyering@lucent.com>
91520
91521         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91522         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91523
91524 2001-11-01  Jim Meyering  <meyering@lucent.com>
91525
91526         * lib/dirfd.c, lib/dirfd.h: New files.
91527         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91528
91529         * lib/hash.c (hash_print) [TESTING]: Clean up.
91530
91531 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91532
91533         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91534         to avoid a warning if -Wall.
91535
91536 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91537
91538         * README: New file
91539         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91540         (per RMS's instructions, this is now the canonical source)
91541         * lgpl/, gpl/: New directories.
91542
91543 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91544
91545         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91546
91547 2001-10-21  Jim Meyering  <meyering@lucent.com>
91548
91549         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91550         this code would end up calling gettext even in packages built
91551         with --disable-nls.
91552         * lib/getopt.c (_): Likewise.
91553         * lib/regex.c (_): Likewise.
91554
91555 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91556
91557         * m4/error.m4 (jm_PREREQ_ERROR):
91558         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91559         AC_FUNC_STRERROR_R does that.
91560         Check for strerror declaration.
91561
91562         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91563         are supposed to have them these days.
91564         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91565         Merge changes from latest Autoconf CVS.
91566         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91567         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91568         POSIX decided to standardize on the int flavor of strerror_r.
91569
91570 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91571
91572         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91573         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91574         Use strerror_r that is only a macro, even if it is not a function.
91575         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91576         (private_strerror): Use prototypes, not old-style function definition.
91577         (print_errno_message): New function.
91578         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91579         char*-flavored one.
91580         (error_tail, error, error_at_line): Use it.
91581
91582 2001-10-11  Jim Meyering  <meyering@lucent.com>
91583
91584         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91585         and quote_n (1, ... to avoid clobbering a buffer.
91586
91587 2001-10-05  Jim Meyering  <meyering@lucent.com>
91588
91589         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91590         hash-pjw.h.
91591         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91592         * lib/hash-pjw.h: New file.
91593
91594 2001-09-30  Jim Meyering  <meyering@lucent.com>
91595
91596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91597         `struct fsstat' has the `f_fstypename' member.
91598         Use that to define FS_TYPE, which is now used to make
91599         the getfsstat link test tighter.
91600
91601 2001-09-30  Jim Meyering  <meyering@lucent.com>
91602
91603         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91604         Include <sys/ucred.h>, for Apple Darwin.
91605         Include sys/mount.h and sys/fs_types.h only if available.
91606         (FS_TYPE): Define.
91607         (read_filesystem_list): Use FS_TYPE.
91608
91609 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91610
91611         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91612         a boolean context.
91613
91614 2001-09-29  Jim Meyering  <meyering@lucent.com>
91615
91616         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91617         [one-argument getmntent function]): Include stdio.h before mntent.h.
91618         SunOS 4.1.x needs it for the declaration of `FILE'.
91619         Patch by Volker Borchert.
91620
91621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91622         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91623         sys/fs_types.h, and make the link-test for getfsstat guard #include
91624         directives with appropriate #if HAVE_*_H tests so that we can
91625         detect getfsstat on Apple Darwin1.3.7 systems.
91626         Reported by Nelson Beebe.
91627         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91628
91629 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91630
91631         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91632         #defines strtoimax.  Also treat the other strto* functions
91633         like strtoimax.
91634
91635         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91636         Check for strtoul and strtoumax,
91637         as those declarations are made even in the signed case.
91638         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91639         Likewise, for strtol and strtoimax.
91640
91641 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91642
91643         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91644         #defines strtoimax.  Also treat the other strto* functions
91645         like strtoimax.
91646
91647         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91648         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91649         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91650
91651 2001-09-26  Jim Meyering  <meyering@lucent.com>
91652
91653         Most macros in unlocked-io.h had the wrong number of arguments.
91654         * lib/gen-uio: New script.
91655         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91656         * lib/unlocked-io.hin: Remove file.
91657         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91658         rather than trying to embed it here.
91659         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91660         Reported by Padraig Brady.
91661
91662 2001-09-25  Volker Borchert  <bt@teknon.de>
91663
91664         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91665         `result'.
91666
91667 2001-09-24  Jim Meyering  <meyering@lucent.com>
91668
91669         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91670
91671 2001-09-23  Jim Meyering  <meyering@lucent.com>
91672
91673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91674         instead of the mere test for existence of mntent.h.  The latter
91675         would get a false-positive on AIX 3.4 systems.
91676         In the outer getmntent if-block, don't die if neither of the getmntent
91677         tests succeeds.  Instead, just fall through and continue with the
91678         remaining tests.
91679
91680 2001-09-23  Jim Meyering  <meyering@lucent.com>
91681
91682         * lib/mountlist.c: Remove useless parentheses in #if directives.
91683         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91684         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91685
91686 2001-09-22  Jim Meyering  <meyering@lucent.com>
91687
91688         * m4/gettext.m4: New file.  From gettext.
91689         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91690         * m4/progtest.m4: Likewise
91691         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91692         * m4/glibc21.m4: Likewise.
91693
91694         * m4/libintl.m4: Remove.  No longer used.
91695
91696 2001-09-22  Jim Meyering  <meyering@lucent.com>
91697
91698         * lib/localcharset.c: Update from latest gettext.
91699         * lib/config.charset: Likewise.
91700
91701 2001-09-20  Jim Meyering  <meyering@lucent.com>
91702
91703         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91704         strtoimax.
91705         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91706         strtoumax.
91707
91708 2001-09-20  Jim Meyering  <meyering@lucent.com>
91709
91710         * lib/xstrtol.c (strtoimax): Guard declaration with
91711         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91712         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91713         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91714         (strtoumax): Likewise, for completeness (it wasn't necessary).
91715
91716 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91717
91718         * lib/strtoimax.c (HAVE_LONG_LONG):
91719         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91720         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91721         to work around bug in IBM C compiler.
91722
91723 2001-09-17  Jim Meyering  <meyering@lucent.com>
91724
91725         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91726         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91727         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91728         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91729         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91730         whenever the right hand side need not be expanded by the shell.
91731
91732 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91733
91734         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91735         library.  It's not correct, as some older glibcs are buggy.
91736         fnmatch wasn't fixed until glibc 2.2.
91737
91738         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91739         special shell magic here.
91740
91741 2001-09-16  Jim Meyering  <meyering@lucent.com>
91742
91743         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91744         * m4/jm-macros.m4: Require it.
91745
91746 2001-09-16  Jim Meyering  <meyering@lucent.com>
91747
91748         * lib/mkdir.c: New file.
91749
91750 2001-09-15  Jim Meyering  <meyering@lucent.com>
91751
91752         * m4/jm-macros.m4: Check for help2man.
91753
91754 2001-09-11  Jim Meyering  <meyering@lucent.com>
91755
91756         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91757         The body, by Paul Eggert, was moved here from configure.in.
91758         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91759
91760 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91761
91762         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91763         (jm_PREREQ): Use it.
91764
91765 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91766
91767         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91768         Use ssize_t, not int, to store result of readlink.
91769         Check for ssize_t overflow as well as size_t overflow,
91770         as POSIX says the result of readlink is implementation-defined
91771         when ssize_t overflows.
91772         Remove unnecessary cast to char*.
91773         Use free+malloc instead of realloc, as the storage doesn't need
91774         to be preserved and it's clearer and can be more efficient that way.
91775         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91776         * lib/xreadlink.h (xreadlink): Update prototype.
91777
91778 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91779
91780         * lib/xgetcwd.c: Revert some of the previous change; intead,
91781         fix the HAVE_GETCWD_NULL code to behave more like the
91782         !HAVE_GETCWD_NULL code used to.
91783
91784         Include "xalloc.h".
91785         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91786         invoke xalloc_die.
91787
91788 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91789
91790         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91791         sys/param.h, as pathmax.h includes them.
91792
91793 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91794
91795         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91796         (jm_PREREQ_XGETCWD): New macro.
91797
91798         * m4/getcwd.m4: New file.
91799
91800 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91801
91802         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91803         like the HAVE_GETCWD_NULL code.
91804         Include pathmax.h if not HAVE_GETCWD.
91805         Do not include xalloc.h.
91806         (INITIAL_BUFFER_SIZE): New symbol.
91807         Do not use xmalloc / xrealloc, since the caller is responsible for
91808         handling errors.  Preserve errno around `free' during failure.
91809         Do not overrun buffer when using getwd.
91810
91811 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91812
91813         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91814         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91815         getcwd (NULL, 0).
91816
91817 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91818
91819         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91820         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91821         spotted by Jim Meyering.
91822
91823 2001-09-03  Jim Meyering  <meyering@lucent.com>
91824
91825         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91826         failure.
91827
91828 2001-09-02  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/error.c: Update from GNU libc.
91831
91832 2001-09-01  Jim Meyering  <meyering@lucent.com>
91833
91834         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91835         Used by df.
91836
91837 2001-09-01  Jim Meyering  <meyering@lucent.com>
91838
91839         * lib/xreadlink.c: New file.
91840         * lib/xreadlink.h: New file.
91841         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91842         xreadlink.h.
91843
91844         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91845         doesn't conflict with sparc Solaris 7's definition in
91846         /usr/include/sys/int_types.h.
91847
91848         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91849         files.
91850         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91851         and strncasecmp as r-values.  Unixware didn't have declarations.
91852
91853 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91854
91855         * lib/xstrtol.h: Add copyright notice.
91856         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91857         LONGINT_INVALID_SUFFIX_CHAR.
91858
91859 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91860
91861         * lib/xstrtol.c (strtoimax): New decl.
91862
91863 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91864
91865         * lib/xgetcwd.c: Don't include pathmax.h.
91866         Include stdlib.h and unistd.h if available.
91867         Include xalloc.h.
91868         (xmalloc, xstrdup, free): Remove decls.
91869         (xgetcwd): Don't assume sizes fit in unsigned.
91870         Check for overflow when computing sizes.
91871         Simplify reallocation code.
91872
91873 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91874
91875         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91876         a directory's st_size can have an arbitrary value, so the old
91877         usage could waste an arbitrary amount of memory.  All uses
91878         changed.
91879         * lib/savedir.h: Update prototype.
91880
91881 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91882
91883         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91884
91885         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91886         old strtoimax.c.
91887
91888         Also, make the following further changes to make this file's
91889         configuration more similar to that of strtol.c:
91890         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91891         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91892         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91893         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91894         changed to signed values.
91895
91896         And make the following changes as well:
91897         Fix copyright notice, as 1999 was missing.
91898         (verify): New macro.
91899         (strtoimax): Check sizes at compile-time, not run-time.
91900         Prefer strtol to strtoll if both work.
91901         (main): Remove; it was not that useful and was a pain to maintain.
91902
91903         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91904
91905 2001-08-31  Jim Meyering  <meyering@lucent.com>
91906
91907         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91908         Use an initial, malloc'd, buffer of length 128 rather than
91909         a statically allocated one of length 1024.
91910
91911 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91912
91913         Simplify code, partly by assuming autoconf 2.52 semantics.
91914
91915         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91916
91917         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91918         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91919         All uses removed.
91920         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91921         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91922         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91923         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91924         jm_AC_HEADER_INTTYPES_H.
91925         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91926
91927         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91928
91929         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91930         Quote first arg of AC_DEFUN.
91931         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91932         since they are needed to parse the include file even if we need
91933         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91934         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91935         but with opposite signedness.
91936
91937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91938
91939         Merge 'exclude' changes from tar 1.13.22.
91940         This fixes one or two unlikely storage allocation overflow bugs,
91941         but doesn't change user-visible behavior otherwise.
91942
91943 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91944
91945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91946         (jm_PREREQ_EXCLUDE): New macro.
91947
91948 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91949
91950         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91951         tm to be declared.
91952
91953 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91954
91955         * lib/hash.c: Remove '2001' from copyright notice.
91956
91957 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91958
91959         * lib/full-write.h: New file.
91960         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91961         * lib/full-write.c: Correct credits, as cccp.c no longer
91962         exists and anyway it was so heavily changed from the old cccp
91963         code as to be unrecognizable.  Include full-write.h.
91964         (full_write): Return size_t, with short writes meaning failure.
91965         All callers changed.  This fixes a bug with large buffers
91966         on 64-bit hosts.
91967         * lib/utime.c: Include full-write.h.
91968
91969 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91970
91971         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91972         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91973         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91974         Include if available.
91975         (<xalloc.h>): Include
91976         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91977         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91978         collide with FNM macros.
91979         (struct patopts): New struct.
91980         (struct exclude): Use it, as exclude patterns now come with options.
91981         (new_exclude): Support above changes.
91982         (new_exclude, add_exclude_file):
91983         Initial size must now be a power of two to simplify overflow checking.
91984         (free_exclude, fnmatch_no_wildcards): New function.
91985         (excluded_filename): No longer requires options arg, as the options
91986         are determined by add_exclude.  Now returns bool, not int.
91987         (excluded_filename, add_exclude):
91988         Add support for the fancy new exclusion options.
91989         (add_exclude, add_exclude_file): Now takes int options arg.
91990         Check for arithmetic overflow when computing sizes.
91991         (add_exclude_file): xrealloc might modify errno, so don't
91992         realloc until after errno might be used.
91993
91994         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91995         New macros.
91996         (free_exclude): New decl.
91997         (add_exclude, add_exclude_file): Now takes int options arg.
91998         (excluded_filename): No longer requires options arg, as the options
91999         are determined by add_exclude.  Now returns bool, not int.
92000
92001 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92002
92003         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92004
92005 2001-08-27  Jim Meyering  <meyering@lucent.com>
92006
92007         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92008
92009         * lib/version-etc.c (N_): Remove definition.
92010         Revert most of last change.
92011         Instead, simply don't mark the `Copyright...' string for translation.
92012         Based on advice from Paul Eggert.
92013
92014         * lib/strtoxmax.c: Tweak comment.
92015
92016 2001-08-26  Jim Meyering  <meyering@lucent.com>
92017
92018         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92019
92020         * m4/xstrtoimax.m4: New file.
92021         * m4/xstrtoumax.m4: Add comments explaining why we
92022         AC_REPLACE_FUNCS(strtol).
92023
92024 2001-08-26  Jim Meyering  <meyering@lucent.com>
92025
92026         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92027         of copyright with `%s' so translators don't get an untranslated
92028         message in 2002.
92029         (COPYRIGHT_YEAR): Define.
92030         (version_etc): Use fprintf rather than fputs.
92031         Suggestion from Ulrich Drepper.
92032
92033         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92034
92035         * lib/strtoll.c: New file, from GNU libc.
92036         * lib/xstrtoimax.c: New file.
92037
92038         * lib/xstrtol.h: Add xstrtoimax.
92039         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92040         * lib/strtoimax.c: New file.  Likewise, but first define
92041         STRTOUXMAX_SIGNED.
92042
92043         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92044         ...
92045         * lib/strtoxmax.c: ... then renamed to this.
92046
92047 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92048
92049         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92050         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92051         (jm_AC_TYPE_INTMAX_T): New macro.
92052         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92053
92054         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92055
92056         * m4/longlong.m4: Renamed from ulonglong.m4.
92057         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92058         * m4/uintmax_t.m4: Removed.
92059
92060 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92061
92062         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92063         Port to Solaris 8, where 'sed' requires a space after the 'r'
92064         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92065         Redirect output to $tmp just once.
92066
92067 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92068
92069         * lib/addext.c (<errno.h>): Include.
92070         (errno): Declare if not defined.
92071         (addext): Work correctly when pathconf returns -1 and leaves
92072         errno alone because there is no limit.  Also, work even if
92073         pathconf returns a value greater than SIZE_MAX.
92074
92075 2001-08-12  Jim Meyering  <meyering@lucent.com>
92076
92077         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92078         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92079         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92080         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92081         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92082         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92083         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92084         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92085         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92086         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92087         utime.m4, utimes.m4, xstrtoumax.m4:
92088         Quote the first argument in each use of AC_DEFUN.
92089
92090 2001-08-12  Jim Meyering  <meyering@lucent.com>
92091
92092         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92093         Simply `return getcwd (NULL, 0);'.
92094         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92095         Use 1300 as initial value for length, not PATH_MAX.
92096
92097         * lib/pathmax.h: Clean up cpp syntax.
92098
92099 2001-08-12  Jim Meyering  <meyering@lucent.com>
92100
92101         * lib/gettimeofday.c: New file.
92102         * lib/gtod.h: New file.
92103         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92104
92105 2001-08-05  Jim Meyering  <meyering@lucent.com>
92106
92107         * m4/jm-macros.m4: Require autoconf-2.52.
92108
92109 2001-08-04  Jim Meyering  <meyering@lucent.com>
92110
92111         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92112         stmt, to get in sync with glibc.
92113
92114 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92115
92116         The following changes are from gettext 0.10.39 as maintained by
92117         Bruno Haible.
92118
92119         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92120         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92121         with inverted sense.  All uses changed.
92122
92123         * lib/mbswidth.c: Don't include <limits.h>.
92124         Include <stdlib.h> and <string.h> unconditionally.
92125         (iswcntrl, mbsinit, ISCNTRL): New macros.
92126         (mbsnwidth): Use K&R style function declarations.
92127         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92128         can optimize it when MB_CUR_MAX == 1.
92129         The width of control characters is zero, not 1.
92130
92131 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92132
92133         The following changes are from gettext 0.10.39 as maintained by
92134         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92135
92136         * m4/codeset.m4: Upgrade to serial AM1.
92137         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92138         all uses changed.  Quote first arg of AC_DEFUN.
92139         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92140
92141         * m4/iconv.m4: Upgrade to serial AM2.
92142         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92143         Add --with-libconv-prefix.
92144         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92145         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92146         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92147         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92148         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92149
92150         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92151         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92152         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92153         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92154         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92155         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92156         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92157         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92158         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92159
92160         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92161         string.h any more.
92162
92163         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92164         not the default value.
92165
92166         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92167         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92168         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92169         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92170         Also check for iswcntrl, used for wcwidth fallback.
92171         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92172         to Autoconf 2.13.
92173
92174 2001-08-03  Jim Meyering  <meyering@lucent.com>
92175
92176         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92177         as it was in the original.  Reported by Paul Eggert.
92178
92179 2001-07-16  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/gettimeofday.m4: New file.
92182         Prompted by a report from Bernhard Baehr.
92183
92184 2001-07-15  Jim Meyering  <meyering@lucent.com>
92185
92186         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92187         stuff. Now it's in ../Makefile.cfg.
92188
92189 2001-07-15  Jim Meyering  <meyering@lucent.com>
92190
92191         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92192         (BUILT_SOURCES): Add unlocked-io.h.
92193         (io_functions): Define.
92194         (unlocked-io.h): New rule.
92195         (DISTCLEANFILES): Add unlocked-io.h.
92196         (all-local): Depend on unlocked-io.h, to ensure it is created.
92197
92198         * lib/unlocked-io.hin: New file
92199
92200         * lib/regex.c: Update from glibc.
92201
92202 2001-07-05  Jim Meyering  <meyering@lucent.com>
92203
92204         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92205         recommendation.
92206         (libfetish_a_SOURCES): Put all .h files here instead.
92207         Remove a thus-exposed (better checks in automake) duplicate and
92208         two unnecessary .h files.
92209
92210 2001-07-04  Jim Meyering  <meyering@lucent.com>
92211
92212         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92213         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92214         distcheck failure.
92215
92216 2001-07-02  Jim Meyering  <meyering@lucent.com>
92217
92218         The following changes were prompted by suggestions from Bruno Haible.
92219
92220         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92221         is now generated.
92222         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92223         definition of EXTRA_DIST.
92224         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92225         ensure that the generated file is created/updated whenever the list
92226         of $(unlocked_functions) is changed.
92227         (jm-glibc-io.m4): New rule.
92228         (unlocked-io.h): New rule -- currently unused.
92229
92230 2001-06-24  Jim Meyering  <meyering@lucent.com>
92231
92232         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92233         unmatched right bracket, rather than kludging it with an extra,
92234         falsely-matching quote in a comment.  Patch by Akim Demaille.
92235
92236 2001-06-11  Jim Meyering  <meyering@lucent.com>
92237
92238         * lib/regex.c: Update from GNU libc.
92239
92240 2001-05-27  Jim Meyering  <meyering@lucent.com>
92241
92242         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92243         Check for ut_type in struct utmp.
92244
92245 2001-05-27  Jim Meyering  <meyering@lucent.com>
92246
92247         * lib/readutmp.h (UT_TYPE): Define.
92248
92249 2001-05-24  Jim Meyering  <meyering@lucent.com>
92250
92251         * lib/argmatch.c: Include "quote.h".
92252         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92253         quote function.  Reported by Göran Uddeborg.
92254
92255 2001-05-22  Jim Meyering  <meyering@lucent.com>
92256
92257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92258         now that we use the package-supplied version unconditionally.
92259         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92260
92261 2001-05-21  Jim Meyering  <meyering@lucent.com>
92262
92263         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92264         shell syntax errors.
92265
92266 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92267
92268         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92269
92270 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92271
92272         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92273         Don't bother to check library strftime, since
92274         we'll be using our own my_strftime function anyway.
92275         Define my_strftime instead of strftime.
92276
92277 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92278
92279         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92280         which is not yet declared.
92281
92282 2001-05-15  Jim Meyering  <meyering@lucent.com>
92283
92284         * m4/regex.m4: Use proper quoting so brackets appear in the test
92285         program.
92286         Reported by, and with help from, Bruno Haible.
92287
92288 2001-05-13  Jim Meyering  <meyering@lucent.com>
92289
92290         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92291         undefined.
92292
92293 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92294
92295         dirname code cleanup.  base_name now behaves more compatibly
92296         with POSIX basename when given file names that have trailing
92297         slashes, and similarly for dir_name.  Add new primitives
92298         base_len and dir_len.  Put the directory-name-related decls
92299         into dirname.h.
92300
92301         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92302         * lib/backupfile.c (base_name): Likewise.
92303         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92304         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92305         * lib/makepath.c (strip_trailing_slashes): Likewise.
92306         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92307         ISSLASH): Likewise.
92308         * lib/rename.c (strip_trailing_slashes): Likewise.
92309         * lib/same.c (base_name): Likewise.
92310         * lib/stripslash.c (ISSLASH): Likewise.
92311
92312         * lib/addext.c: Include <dirname.h> after size_t is defined.
92313         * lib/backupfile.c: Likewise.
92314
92315         * lib/addext.c (addext): Use base_len to trim redundant
92316         trailing slashes instead of doing it ourselves.
92317         But do not trim the last slash if it is not redundant.
92318
92319         * lib/backupfile.c (find_backup_file_name,
92320         max_backup_version): Use base_len instead of rolling it ourselves.
92321         Handle the case of "" and (on DOS) "C:" correctly.
92322
92323         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92324         needed. Include <string.h>, <dirname.h>.
92325         (base_name): Allow file names ending in slashes, other than names
92326         that are all slashes.  In this case, return the basename followed
92327         by the slashes.  This is more general, and can be used in places
92328         where the original base_name purposely had an assertion failure.
92329         (base_len): New function.
92330
92331         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92332         Do not include <assert.h>; no longer needed.
92333         Include xalloc.h.
92334         (memrchr): Remove decl.
92335         (dir_name_r): Remove.
92336         (dir_len): Renamed from dirlen.  All callers changed.
92337         Rewrite in terms of base_name, for simplicity and consistency.
92338         (dir_name): Never return NULL.  All callers changed.
92339         Do not include <stdlib.h> in test program; no longer needed.
92340         return 0; is fine for test program.
92341
92342         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92343         New macros.
92344         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92345
92346         * lib/path-concat.c (path_concat): Use base_len to compute
92347         base length, not strlen; this means we cannot rely on memcpy
92348         to null-terminate.
92349
92350         * lib/same.c (STREQ): Remove.
92351         (same_name): Handle the case where the basename ends in trailing '/'.
92352
92353         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92354         a slash was stripped.  Do not strip the last slash after a
92355         file system prefix.
92356
92357 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92358
92359         * lib/Makefile.am (libfetish_a_SOURCES):
92360         Add strftime.c, since we now compile it on all hosts.
92361
92362         * lib/strftime.c (my_strftime):
92363         Define to nstrftime if emacs, but only if my_strftime is not defined.
92364         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92365         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92366         Add one more extra argument: a nanoseconds value.
92367         All uses changed.
92368         (ns): New macro.
92369         (my_strftime function): Add %N format.
92370         (emacs_strftimeu): Renamed from emacs_strftime,
92371         with extra ut argument.
92372
92373 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92374
92375         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92376
92377 2001-04-21  Jim Meyering  <meyering@lucent.com>
92378
92379         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92380         doesn't interfere.
92381
92382 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92383
92384         * m4/ftruncate.m4: Check for chsize.
92385         Link with ftruncate.o unconditionally if ftruncate is missing.
92386         This was required when cross-compiling to i586-mingw32msvc.
92387
92388 2001-04-08  Jim Meyering  <meyering@lucent.com>
92389
92390         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92391         recomputed; that's necessary when the offset spans a DST transition.
92392         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92393
92394 2001-04-02  Jim Meyering  <meyering@lucent.com>
92395
92396         * lib/regex.h, regex.c: Update from GNU libc.
92397
92398 2001-03-24  Jim Meyering  <meyering@lucent.com>
92399
92400         * m4/jm-macros.m4: Require autoconf-2.49d.
92401
92402 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92403
92404         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92405
92406 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92407
92408         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92409
92410 2001-03-17  Jim Meyering  <meyering@lucent.com>
92411
92412         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92413         now that the version in autoconf is equivalent.
92414         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92415
92416         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92417         Suggestion from Akim Demaille.
92418
92419         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92420         (jm_PREREQ_TEMPNAME): New function.
92421
92422 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92423
92424         * lib/tempname.c (uint64_t): Define to uintmax_t if
92425         not defined, and if UINT64_MAX is not defined.
92426         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92427         Reported by John David Anglin.
92428
92429 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92430
92431         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92432         resolve alias if codeset is empty.
92433         * lib/config.charset (BeOS): Use wildcard syntax.
92434
92435 2001-03-13  Jim Meyering  <meyering@lucent.com>
92436
92437         * lib/path-concat.c (path_concat)
92438         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92439         concatenating e.g., `C:' and `foo'.
92440         From Bruno Haible.
92441
92442 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92443
92444         * lib/localcharset.c (locale_charset): Don't use
92445         setlocale(LC_CTYPE,NULL). Don't return NULL.
92446         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92447
92448 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92449
92450         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92451         support for DOS/DJGPP.
92452
92453 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92454
92455         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92456         lacks mkstemp.  Compile our own tempname.c if we compile our own
92457         mkstemp.c, as mkstemp relies on tempname.
92458
92459 2001-03-01  Jim Meyering  <meyering@lucent.com>
92460
92461         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92462         AH_VERBATIM really does output its argument verbatim.
92463
92464 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92465
92466         * lib/Makefile.am (libfetish_a_SOURCES):
92467         Add dup-safer.c, fopen-safer.c.
92468         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92469
92470         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92471         * lib/unistd-safer.h: New files.
92472
92473 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92474
92475         The mkstemp replacement is taken from glibc 2.2.2, with some
92476         portability fixes for use outside glibc, as follows:
92477
92478         * lib/tempname.c (struct_stat64): New macro.
92479         (direxists, __gen_tempname): Use it.
92480         This avoids a portability problem with Solaris 8.
92481
92482         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92483         (<stddef.h>, <stdint.h>, <string.h>):
92484         Include only if STDC_HEADERS || _LIBC.
92485         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92486         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92487         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92488         (__set_errno): Define this macro if <errno.h> doesn't.
92489         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92490         Define these macros if <stdio.h> doesn't.
92491         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92492         Define these macros if <sys/stat.h>
92493         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92494         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92495         __xstat64): Define if not _LIBC.
92496         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92497         (__gen_tempname): Invoke gettimeofday only if
92498         HAVE_GETTIMEOFDAY || _LIBC;
92499         otherwise, fall back on plain "time".
92500         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92501
92502         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92503
92504         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92505
92506 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92507
92508         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92509
92510 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92511
92512         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92513         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92514         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92515         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92516
92517 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92518
92519         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92520         Remove workaround macros for hosts that have mbrtowc but not
92521         mbstate_t, as we now insist on proper declarations for both
92522         before using mbrtowc.
92523
92524 2001-02-17  Jim Meyering  <meyering@lucent.com>
92525
92526         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92527         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92528         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92529         UnixWare 7.1.1.
92530
92531         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92532         rather than AC_CACHE_VAL.
92533
92534 2001-02-17  Jim Meyering  <meyering@lucent.com>
92535
92536         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92537         around included file name.
92538
92539         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92540
92541         * lib/strftime.c: Update from GNU libc (the only changes were to
92542         comments).
92543
92544 2001-02-17  Jim Meyering  <meyering@lucent.com>
92545
92546         * lib/regex.c: Update from libc.
92547
92548 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92549
92550         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92551         clash.
92552
92553 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92554
92555         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92556         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92557         Reported by Mark Hounschell via Paul Eggert.
92558
92559 2001-02-07  Jim Meyering  <meyering@lucent.com>
92560
92561         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92562
92563 2001-02-05  Jim Meyering  <meyering@lucent.com>
92564
92565         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92566         it includes the patch required for `large file' support with at least
92567         HP-UX's 10.20 /bin/cc.
92568
92569 2001-02-03  Jim Meyering  <meyering@lucent.com>
92570
92571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92572         AS_IF, now that it works once again (mysteriously).
92573         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92574
92575 2001-01-30  Jim Meyering  <meyering@lucent.com>
92576
92577         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92578         * m4/chown.m4: Rename conftestchown to conftest.chown.
92579         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92580         s/conftestdir2/conftest.d2/.
92581         * m4/utimes.m4: s/conftestdata/conftest.data/
92582         Inspired by Pavel Roskin's change in autoconf.
92583
92584 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92585
92586         * lib/config.charset: Update for FreeBSD 4.2.
92587
92588 2001-01-27  Jim Meyering  <meyering@lucent.com>
92589
92590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92591         a use of AS_IF.
92592         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92593
92594 2001-01-26  Jim Meyering  <meyering@lucent.com>
92595
92596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92597         quotearg.c includes it.
92598
92599 2001-01-26  Jim Meyering  <meyering@lucent.com>
92600
92601         * lib/quotearg.c: Include stddef.h.
92602         * lib/quote.c: Include stddef.h.
92603         Reported by Axel Kittenberger.
92604
92605         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92606         line in double quotes so that it evokes a better diagnostic.
92607         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92608         Reported by Axel Kittenberger.
92609
92610 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92611
92612         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92613         as if it was a `charset'.
92614
92615 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92616
92617         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92618         has const.
92619
92620 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92621
92622         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92623         to avoid a warning.  Add back 'const' to inptr.
92624
92625 2001-01-20  Jim Meyering  <meyering@lucent.com>
92626
92627         Be sure that headers are checked before used in code compiled
92628         for the type checks.
92629         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92630         In place of that, invoke jm_CHECK_ALL_TYPES.
92631         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92632         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92633         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92634         The check for ssize_t was mistakenly run before the test for unistd.h.
92635
92636         The configure-time check for stdbool.h was missing.
92637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92638         (jm_PREREQ_HASH): New function.
92639
92640 2001-01-17  Jim Meyering  <meyering@lucent.com>
92641
92642         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92643         for autoconf-2.49c.
92644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92645
92646 2001-01-16  Jim Meyering  <meyering@lucent.com>
92647
92648         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92649         From Bruno Haible.
92650
92651 2001-01-14  Jim Meyering  <meyering@lucent.com>
92652
92653         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92654         foo and bar.  Create conftestdir/ in the script, not in the C code.
92655         Remove directories in the script, not in the C code.
92656         Remove conftestdir{,2} before trying to create the directory.
92657         Make the entire configure script fail if the mkdir fails.
92658
92659 2001-01-14  Jim Meyering  <meyering@lucent.com>
92660
92661         * lib/rename.c: New file.  From Volker Borchert.
92662         Include stdlib.h, string.h or strings.h, and xalloc.h.
92663         Use strip_trailing_slashes rather than open-coding it.
92664
92665 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92666
92667         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92668
92669 2001-01-03  Jim Meyering  <meyering@lucent.com>
92670
92671         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92672         of local `inptr' to avoid warning with some system declarations of
92673         iconv.
92674
92675 2001-01-02  Volker Borchert  <bt@teknon.de>
92676
92677         * m4/rename.m4: New file.
92678         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92679
92680 2001-01-01  Jim Meyering  <meyering@lucent.com>
92681
92682         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92683         even on systems with utmpx.h.  It's necessary for the declaration of
92684         utmp's ut_user member.  Reported by Andreas Jaeger.
92685
92686         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92687         available. They are required for the declarations of getgrgid and
92688         getpwuid resp.
92689         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92690         Reported by Andreas Jaeger.
92691
92692 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92693
92694         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92695         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92696         so `make install' also works in VPATH builds.
92697
92698 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92699
92700         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92701         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92702         can be used in subdirectories.
92703
92704 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92705
92706         * lib/modechange.c: Do not assume that mode_t uses the
92707         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92708         the other-execute bit of FOO even if S_IXOTH != 1.
92709
92710         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92711         WOTH, XOTH, ALLM): New macros.
92712         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92713          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92714         Use them.
92715         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92716         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92717         (mode_compile):
92718         No need to use uintmax_t; unsigned long is long enough.
92719         Don't bother to get suffix since we don't use it.
92720
92721 2000-12-26  Jim Meyering  <meyering@lucent.com>
92722
92723         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92724         better with autoheader.
92725
92726 2000-12-24  Jim Meyering  <meyering@lucent.com>
92727
92728         * lib/hash.c (is_prime): Return explicit boolean values.
92729         (hash_get_first): Return NULL to appease Irix5.6's 89.
92730         Reported by Nelson Beebe.
92731
92732 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92733
92734         * lib/localcharset.c (locale_charset): Add support for Win32.
92735
92736 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92737
92738         * lib/physmem.h, lib/physmem.c: New files.
92739
92740         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92741         (noinst_HEADERS): Add physmem.h.
92742
92743         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92744         't' for compatibility with Solaris 8 sort.
92745
92746 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92747
92748         * lib/config.charset: Add support for BeOS.
92749
92750 2000-12-17  Jim Meyering  <meyering@lucent.com>
92751
92752         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92753         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92754
92755 2000-12-16  Jim Meyering  <meyering@lucent.com>
92756
92757         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92758         N and M) would have treated it like `chown N:N FILE'.
92759
92760         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92761
92762 2000-12-16  Jim Meyering  <meyering@lucent.com>
92763
92764         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92765         SHELLS_FILE to a file name that's useful on djgpp systems.
92766         Include stdlib.h.
92767         (ADDITIONAL_DEFAULT_SHELLS): Define.
92768         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92769         Based mostly on a patch from Prashant TR.
92770
92771 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92772
92773         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92774         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92775         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92776
92777 2000-12-08  Andreas Schwab  <schwab@suse.de>
92778
92779         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92780         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92781
92782 2000-12-07  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/stripslash.c (ISSLASH): Define.
92785         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92786         `/'.
92787         From Prashant TR.
92788
92789         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92790         (dir_name_r): Declare this function as static.
92791         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92792         manifest itself on a name containing a mix of slashes and
92793         backslashes.
92794         Make this function work with names starting with a DOS-style
92795         drive letter and colon prefix.
92796         (dir_name): Append `.' if necessary.
92797         Based mostly on patches from Prashant TR and Eli Zaretskii.
92798
92799         * lib/dirname.h (dir_name_r): Remove prototype.
92800
92801 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92802
92803         * m4/off_t-format.m4: Remove this file.
92804         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92805
92806 2000-12-06  Jim Meyering  <meyering@lucent.com>
92807
92808         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92809         replacement strtoull, we may well need the replacement strtoul, too.
92810         Check for declarations of strtoul and strtoull.
92811         Check for strtol.  Mainly as a cue to cause automake to include
92812         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92813         Check for limits.h -- strtol.c needs it.
92814
92815 2000-12-05  Jim Meyering  <meyering@lucent.com>
92816
92817         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92818
92819 2000-12-04  Jim Meyering  <meyering@lucent.com>
92820
92821         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92822         Also include memory.h, stdlib.h, unistd.h if appropriate.
92823         Reported by Andreas Jaeger (conflicting declaration of malloc).
92824
92825 2000-12-02  Jim Meyering  <meyering@lucent.com>
92826
92827         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92828         * m4/jm-macros.m4 (jm_MACROS): require it.
92829
92830 2000-12-02  Jim Meyering  <meyering@lucent.com>
92831
92832         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92833
92834 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92835
92836         * lib/memrchr.c: Include <config.h> before any system include file.
92837
92838 2000-11-30  Jim Meyering  <meyering@lucent.com>
92839
92840         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92841
92842 2000-11-30  Jim Meyering  <meyering@lucent.com>
92843
92844         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92845
92846 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92847
92848         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92849
92850 2000-11-26  Jim Meyering  <meyering@lucent.com>
92851
92852         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92853
92854 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92855
92856         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92857         size of (size_t) -1; it's not portable.
92858
92859 2000-11-17  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/strstr.c: Update from GNU libc.
92862
92863 2000-11-17  Akim Demaille  <akim@epita.fr>
92864
92865         * lib/obstack.h: Formatting changes.
92866         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92867         prevent type checking.
92868         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92869         cast the value to (void *): assigning a `foo *' to a `void *'
92870         variable is valid.
92871         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92872
92873 2000-11-16  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92876
92877 2000-11-11  Jim Meyering  <meyering@lucent.com>
92878
92879         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92880
92881 2000-11-10  Jim Meyering  <meyering@lucent.com>
92882
92883         * lib/obstack.h: Update from GNU libc.
92884         * lib/obstack.c: Likewise.
92885
92886 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92887
92888         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92889
92890 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92891
92892         * lib/getusershell.c (setusershell): Use rewind rather than
92893         fseek/fseeko, to avoid configuration hassles with fseeko.
92894         Don't bother opening SHELLS_FILE if shellstream is NULL;
92895         it's not necessary.
92896
92897 2000-11-05  Jim Meyering  <meyering@lucent.com>
92898
92899         * lib/makepath.h (make_dir): Declare.
92900         * lib/makepath.c (make_dir): Remove `static' attribute.
92901         Tweak a comment.
92902
92903 2000-11-04  Jim Meyering  <meyering@lucent.com>
92904
92905         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92906
92907 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92908
92909         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92910         last one in a bucket, advance to the next bucket.
92911
92912 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92913
92914         * lib/fnmatch.c: Do not comment out all the code if we are using
92915         the GNU C library, because in some cases we are replacing buggy
92916         code in the GNU C library itself.
92917
92918 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92919
92920         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92921         (regex_compile): Catch bogus \(\1\).
92922
92923 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92924
92925         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92926         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92927         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92928
92929 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92930
92931         * lib/error.h, getline.h, modechange.h:
92932         Remove "2000" from Copyright line, as the file hasn't been
92933         changed this year other than in the copyright notice.
92934
92935         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92936         was changed this year.
92937
92938 2000-10-29  Jim Meyering  <meyering@lucent.com>
92939
92940         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92941         renaming.
92942         * m4/ls-mntd-fs.m4: Likewise
92943
92944 2000-10-29  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/xstat.in: Fix grammar in comment.
92947
92948 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92949
92950         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92951         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92952         doesn't define __restrict_arr.
92953
92954 2000-10-28  Jim Meyering  <meyering@lucent.com>
92955
92956         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92957         (jm_PREREQ_MEMCHR): New function.
92958
92959 2000-10-28  Jim Meyering  <meyering@lucent.com>
92960
92961         * lib/memchr.c: Update from libc.
92962         Adjust for portability:
92963         [HAVE_STDLIB_H]: Include stdlib.h.
92964         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92965         Undef __memchr, too.
92966         [!weak_alias]: Define __memchr to memchr.
92967
92968         * lib/regex.c: Update from libc.
92969         * lib/regex.h: Likewise.
92970         * lib/getopt1.c: Likewise.
92971         * lib/memcmp.c: Likewise.
92972
92973         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92974         Avoid using fseek, when possible -- it's broken by design.
92975         Patch by Ulrich Drepper.
92976
92977 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92978
92979         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92980         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92981         Giving in to popular pressure to shut up the compiler with casts.
92982
92983 2000-10-26  Jim Meyering  <meyering@lucent.com>
92984
92985         * lib/strftime.c: Update from libc.
92986
92987 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92988
92989         * regex.c: More `unsigned char' -> `re_char' changes.
92990         Also change several `int' into `re_wchar_t'.
92991         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92992         (PUSH_FAILURE_POINTER): Don't cast any more.
92993         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92994         We want GCC to complain, since this piece of code makes
92995         re_match non-reentrant, which *should* be fixed.
92996         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92997         (EXTEND_BUFFER): Use RETALLOC.
92998         (SET_LIST_BIT): Don't cast.
92999         (re_wchar_t): New type.
93000         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93001         that those two functions will always properly return.
93002         (IMMEDIATE_QUIT_CHECK): Cast to void.
93003         (analyse_first): Use recursion rather than an explicit stack.
93004         (re_compile_fastmap): Can't fail anymore.
93005         (re_search_2): Don't check re_compile_fastmap for failure.
93006         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93007         Now also sets the new value (passed in a new argument).
93008         (re_match_2_internal): Use it.
93009         Also, use a new var `reg' of type size_t when looping through regs
93010         rather than reuse the inappropriate `mcnt'.
93011
93012 2000-10-25  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/obstack.c: Update from libc.
93015
93016 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93017
93018         * regex.c (regex_compile): Change the way of handling a range from
93019         a char less than 256 to a char not less than 256.
93020
93021 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93022
93023         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93024         NT-Emacs only.
93025         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93026         so that re_search functions only quit when callers expect them to.
93027
93028 2000-10-23  Jim Meyering  <meyering@lucent.com>
93029
93030         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93031         wrong.  That set_locale call must not have any side effects.
93032         From Paul Eggert.
93033
93034 2000-10-22  Jim Meyering  <meyering@lucent.com>
93035
93036         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93037         [CYCLIC]: Remove now-unused definition.
93038
93039         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93040         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93041         Suggestion from Ulrich Drepper.
93042
93043 2000-10-21  Jim Meyering  <meyering@lucent.com>
93044
93045         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93046         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93047         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93048
93049 2000-10-21  Jim Meyering  <meyering@lucent.com>
93050
93051         * lib/dirname.c (memrchr): Declare if necessary.
93052         (dir_name): Remove the restriction that there be no
93053         trailing slashes.  Now, this code skips past them, effectively
93054         ignoring them.
93055         [TEST_DIRNAME] (main): New unit tests.
93056
93057         * lib/memrchr.c: New file from GNU libc.
93058         Undef __memrchr, too.
93059         [!weak_alias]: Define __memrchr to memrchr.
93060         Guard weak_alias use with `#ifdef weak_alias'.
93061
93062 2000-10-21  Jim Meyering  <meyering@lucent.com>
93063
93064         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93065         (dir_name): Use dir_name_r.
93066         * lib/dirname.h (dir_name_r): Declare it.
93067
93068 2000-10-17  Jim Meyering  <meyering@lucent.com>
93069
93070         * lib/quote.h (PARAMS): Define and use.
93071         Reported by Akim Demaille.
93072
93073         * lib/getopt.c: Update from libc.
93074
93075 2000-10-16  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93078         setlocale.
93079         From Jan Fedak.
93080
93081 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93082
93083         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93084
93085 2000-09-25  Jim Meyering  <meyering@lucent.com>
93086
93087         * lib/md5.h (rol): Define (from GnuPG).
93088
93089         * lib/sha.c: Give credit (GnuPG) where due.
93090         (M): Use rol rather than open-coding it.
93091         Add a FIXME comment.
93092
93093 2000-09-21  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93096         Reported by Michael Stone.
93097
93098 2000-09-20  Jim Meyering  <meyering@lucent.com>
93099
93100         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93101         (noinst_HEADERS): Add sha.h.
93102         Based on code from Scott G. Miller and from GnuPG.
93103
93104 2000-09-18  Jim Meyering  <meyering@lucent.com>
93105
93106         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93107         LIBS. Otherwise, everyone ends up linking with -lelf for some
93108         configurations.
93109         Reported by Mike Stone.
93110
93111 2000-09-15  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/regex.c: Update from libc.
93114
93115 2000-09-10  Jim Meyering  <meyering@lucent.com>
93116
93117         * lib/getopt.c (_getopt_internal): Update from glibc.
93118
93119 2000-09-09  Jim Meyering  <meyering@lucent.com>
93120
93121         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93122         think it should be used as a general replacement for isascii.
93123         * lib/fnmatch.c: Likewise.
93124         * lib/mbswidth.c: Likewise
93125         * lib/regex.c: Likewise.
93126
93127         Don't use atoi.
93128         * lib/userspec.c: Include sys/param.h and limits.h.
93129         Include xstrtol.h.
93130         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93131         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93132         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93133         UID, GID.  Check range.
93134
93135 2000-09-06  Jim Meyering  <meyering@lucent.com>
93136
93137         * lib/getopt.c (_getopt_internal): Update from glibc.
93138
93139 2000-08-30  Jim Meyering  <meyering@lucent.com>
93140
93141         * lib/strftime.c: Merge in changes from GNU libc.
93142
93143 2000-08-26  Jim Meyering  <meyering@lucent.com>
93144
93145         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93146         * m4/fpending.m4: New file.
93147
93148 2000-08-26  Jim Meyering  <meyering@lucent.com>
93149
93150         * lib/closeout.c: Include "__fpending.h".
93151         (close_stdout_status): Return right away if there's nothing to flush.
93152
93153         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93154         * lib/__fpending.c: New file.
93155         * lib/__fpending.h: New file.
93156
93157 2000-08-20  Jim Meyering  <meyering@lucent.com>
93158
93159         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93160         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93161         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93162
93163 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93164
93165         Improve fileutils installation on systems where running
93166         programs (like install) can't be unlinked.
93167         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93168         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93169
93170 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93171
93172         Standardize on "memory exhausted" instead of "Memory exhausted"
93173         or "virtual memory exhausted".
93174         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93175         "virtual memory exhausted".
93176         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93177         our own message.
93178         * lib/userspec.c (parse_user_spec): Likewise.
93179         * lib/bumpalloc.h: comment fix
93180         * lib/same.c, userspec.c: Include xalloc.h.
93181
93182         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93183         not char *const and pointing to a constant array.
93184         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93185         (xrealloc): Comment fix.
93186
93187         * lib/userspec.c (parse_user_spec):
93188         Don't translate a message until just before returning,
93189         to avoid unnecessary translation.
93190
93191 2000-08-07  Jim Meyering  <meyering@lucent.com>
93192
93193         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93194         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93195         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93196         getgroups.c, gethostname.c, getopt.h, group-member.c,
93197         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93198         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93199         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93200         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93201         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93202         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93203         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93204         yesno.c: Back out Copyright date changes for each file with no change
93205         this year.  This eases coordination with other programs using the same
93206         source code modules.  From Paul Eggert.
93207
93208 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93209
93210         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93211         not char, for compatibility with glibc 2.1.3 strftime.c.
93212
93213 2000-08-03  Greg McGary  <greg@mcgary.org>
93214
93215         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93216         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93217         (EXTEND_BUFFER): Use them.
93218
93219 2000-08-01  Jim Meyering  <meyering@lucent.com>
93220
93221         * lib/dirname.c (ISSLASH): Define.
93222         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93223         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93224         both `\' and `/' may be use as path separators.
93225         Based on a patch from Prashant TR.
93226
93227 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93228
93229         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93230         slot vector a constant, since it might get modified.
93231
93232 2000-07-31  Jim Meyering  <meyering@lucent.com>
93233
93234         * lib/xmalloc.c: Use `virtual memory exhausted', not
93235         `Memory exhausted'.
93236         * lib/obstack.c (print_and_abort): Likewise.
93237
93238 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93239
93240         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93241         buffer, so that the caller can always quote one small
93242         component of a "memory exhausted" message in slot 0.
93243         From a suggestion by Jim Meyering.
93244
93245 2000-07-30  Jim Meyering  <meyering@lucent.com>
93246
93247         * lib/makepath.c (make_path): Quote the other instance, too.
93248
93249         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93250         (STATIC_BUF_SIZE): Define.
93251         (quotearg_n_options): Use only statically allocated storage when
93252         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93253         than STATIC_BUF_SIZE.
93254
93255 2000-07-29  Jim Meyering  <meyering@lucent.com>
93256
93257         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93258         * lib/dirname.c (dir_name): Likewise.
93259
93260         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93261         `/'.
93262
93263         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93264         (dir_name): Assert that there are no trailing slashes.
93265
93266 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93267
93268         * lib/mbswidth.h (mbswidth): Add a flags argument.
93269         (mbswidth): New declaration.
93270         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93271         * lib/mbswidth.c (mbswidth): Add a flags argument.
93272         (mbsnwidth): New function.
93273
93274 2000-07-24  Jim Meyering  <meyering@lucent.com>
93275
93276         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93277
93278 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93279
93280         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93281
93282 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93283
93284         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93285         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93286         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93287         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93288         invoke multibyte primitives.
93289
93290 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93291
93292         * lib/quotearg.c:
93293         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93294         so that mbstate_t is always defined.
93295
93296         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93297         be 1 in at least one GCC installation, and this configuration
93298         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93299         performance on hosts that have mbrtowc but have only unibyte
93300         locales, but I assume these hosts are rare.
93301
93302 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93303
93304         * lib/mbswidth.c (_XOPEN_SOURCE):
93305         Don't define; this causes problems on Solaris 7.
93306         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93307
93308 2000-07-23  Jim Meyering  <meyering@lucent.com>
93309
93310         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93311         too: getgrgid, getpwuid, getuid.
93312
93313 2000-07-23  Jim Meyering  <meyering@lucent.com>
93314
93315         * lib/basename.c (base_name): Add an assertion.
93316
93317 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93318
93319         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93320         shadow its mbsinit function.
93321
93322 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93323
93324         * lib/mbswidth.h: New file.
93325         * lib/mbswidth.c: New file.
93326         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93327         (noinst_HEADERS): Add mbswidth.h.
93328
93329 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93330
93331         * lib/config.charset: Add support for FreeBSD. Improve support for
93332         HP-UX and IRIX 6.
93333
93334 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93335
93336         * m4/mbswidth.m4: New file.
93337         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93338
93339 2000-07-15  Jim Meyering  <meyering@lucent.com>
93340
93341         * lib/makepath.c: Include quote.h.
93342         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93343         corresponding argument in a `quote (...)' call.
93344         Give better diagnostics.
93345
93346         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93347         (noinst_HEADERS): Add quote.h.
93348
93349         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93350         from tar's src/misc.c.
93351         * lib/quote.h: New file.  Prototypes for same.
93352
93353 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93354
93355         From a suggestion by Bruno Haible.
93356         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93357         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93358         to decide whether to define the BeOS workaround macro;
93359         this adjusts to the change to AC_MBSTATE_T.
93360
93361 2000-07-14  Jim Meyering  <meyering@lucent.com>
93362
93363         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93364         jm_AC_TYPE_UINTMAX_T.
93365
93366 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93367
93368         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93369
93370         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93371         quotearg_buffer_restyled): Add support for
93372         clocale_quoting_style.  Undo previous change to
93373         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93374         and "{RIGHT QUOTATION MARK}" msgids.
93375
93376 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93377
93378         From a suggestion by Bruno Haible.
93379         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93380         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93381         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93382         and mbstate_t, to a single-part test that simply defines mbstate_t.
93383         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93384         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93385
93386 2000-07-10  Jim Meyering  <meyering@lucent.com>
93387
93388         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93389
93390         * m4/gnu-source.m4: Output to confdefs.h directly.
93391         Suggestion from Akim Demaille.
93392
93393 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93394
93395         The old behavior of quoting `like this' doesn't look good with
93396         newer, ISO-style fonts.  See:
93397         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93398
93399         Instead, quote "like this" by default.  Let the translator
93400         tailor the locale-specific quoting behavior by providing
93401         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93402
93403         * lib/quotearg.c (N_): New macro.
93404         (gettext_default): New function.
93405         (quotearg_buffer_restyled): Use
93406         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93407         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93408
93409 2000-07-09  Jim Meyering  <meyering@lucent.com>
93410
93411         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93412         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93413
93414         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93416
93417 2000-07-09  Jim Meyering  <meyering@lucent.com>
93418
93419         * lib/Most files: Update copyright dates to include 2000.
93420
93421 2000-07-08  Jim Meyering  <meyering@lucent.com>
93422
93423         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93424         if not defined.
93425         (xgethostname): Remove now-unnecessary #ifdef.
93426         Move declaration of `err' into loop where it's used.
93427
93428 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93429         and Bruno Haible  <haible@clisp.cons.org>
93430
93431         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93432         only if the test for an object-type mbstate_t fails.  This
93433         prevents us from mistakenly reporting that mbstate_t is a
93434         system object type after we "#define mbstate_t int" to work
93435         around its lack.
93436
93437 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93438         and Bruno Haible  <haible@clisp.cons.org>
93439
93440         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93441
93442 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93443
93444         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93445         to strerror_r.
93446         Include <ctype.h> for use of isalpha.
93447
93448 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93449
93450         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93451         by allocating a larger buffer. Test the gethostname return value for
93452         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93453         returns an error and ENAMETOOLONG isn't defined.
93454
93455 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93456
93457         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93458         dimension.
93459
93460 2000-07-04  Jim Meyering  <meyering@lucent.com>
93461
93462         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93463         of the deprecated AC_CHECKING.
93464
93465 2000-07-04  Jim Meyering  <meyering@lucent.com>
93466
93467         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93468         Reported by Bruno Haible.
93469
93470 2000-07-04  Jim Meyering  <meyering@lucent.com>
93471
93472         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93473         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93474         lacks mbrtowc.
93475
93476 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93477
93478         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93479         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93480
93481 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93482         and Bruno Haible  <haible@clisp.cons.org>
93483
93484         * lib/quotearg.c (mbrtowc):
93485         Assign to *pwc, and return 1 only if result is nonzero.
93486         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93487
93488 2000-07-03  Jim Meyering  <meyering@lucent.com>
93489
93490         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93491
93492 2000-07-03  Jim Meyering  <meyering@lucent.com>
93493
93494         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93495         This is necessary to get a definition of e.g., UTMP_FILE on
93496         HP-UX 10.20.
93497         From Bob Proulx.
93498
93499 2000-07-02  Jim Meyering  <meyering@lucent.com>
93500
93501         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93502
93503         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93504         AC_LIBOBJ(function_name).
93505         * m4/chown.m4: Likewise.
93506         * m4/fnmatch.m4: Likewise.
93507         * m4/ftruncate.m4: Likewise.
93508         * m4/getgroups.m4: Likewise.
93509         * m4/getline.m4: Likewise.
93510         * m4/group-member.m4: Likewise.
93511         * m4/jm-macros.m4: Likewise.
93512         * m4/lstat.m4: Likewise.
93513         * m4/malloc.m4: Likewise.
93514         * m4/memcmp.m4: Likewise.
93515         * m4/nanosleep.m4: Likewise.
93516         * m4/putenv.m4: Likewise.
93517         * m4/realloc.m4: Likewise.
93518         * m4/regex.m4: Likewise.
93519         * m4/stat.m4: Likewise.
93520         * m4/strftime.m4: Likewise.
93521
93522 2000-07-02  Jim Meyering  <meyering@lucent.com>
93523
93524         * lib/quotearg.c (mbstate_t): Don't define here.
93525
93526 2000-07-02  Jim Meyering  <meyering@lucent.com>
93527
93528         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93529
93530 2000-07-01  Jim Meyering  <meyering@lucent.com>
93531
93532         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93533
93534 2000-07-01  Jim Meyering  <meyering@lucent.com>
93535
93536         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93537         problem.
93538
93539 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93540
93541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93542         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93543
93544 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93545
93546         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93547         per change in ../m4/ls-mntd-fs.m4.
93548         (read_filesystem_list): Ignore symbolic links.
93549
93550 2000-06-29  Jim Meyering  <meyering@lucent.com>
93551
93552         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93553         for declaration of strcmp.
93554
93555         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93556
93557         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93558         Avoid warning by casting result to `char *' to remove `const'.
93559
93560 2000-06-28  Jim Meyering  <meyering@lucent.com>
93561
93562         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93563         included by quotearg.c, for which we perform this test.  From
93564         Bruno Haible.
93565
93566 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93567
93568         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93569         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93570         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93571
93572 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93573
93574         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93575
93576 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93577
93578         savedir now sets errno on failure and invokes xmalloc to get memory.
93579         Fix a couple of other minor bugs while we're at it.
93580
93581         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93582         (NAMLEN): Remove macro.
93583         (malloc, realloc): Remove decls.
93584         (stpcpy): Likewise.
93585         ("xalloc.h"): Include.
93586         (NAME_SIZE_DEFAULT): New macro.
93587         (savedir): Use xmalloc / xrealloc to allocate memory.
93588         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93589         Skip "" directory entries.
93590         Use strlen to calculate directory entry length, since the old method
93591         is rarely used these days and isn't worth supporting.
93592         Don't use a pointer after freeing it.
93593         Check for integer overflow when calculating allocation size.
93594         Use memcpy to copy entries, instead of stpcpy.
93595         Set errno properly when returning NULL.
93596         Check for readdir error.
93597
93598 2000-06-26  Jim Meyering  <meyering@lucent.com>
93599
93600         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93601
93602 2000-06-25  Jim Meyering  <meyering@lucent.com>
93603
93604         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93605         Linux header bug when _XOPEN_SOURCE is defined to 500.
93606
93607 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93608
93609         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93610         deficiency.
93611
93612 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93613
93614         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93615         Include xalloc.h.
93616         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93617
93618 2000-06-24  Jim Meyering  <meyering@lucent.com>
93619
93620         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93621         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93622         for which strerror does return char*, but which lacks a conveniently
93623         accessible declaration of the function.  If the compile-test says
93624         strerror_r doesn't work, then resort to a `run'-test that works on
93625         BeOS and segfaults on DEC Unix.
93626
93627 2000-06-24  Jim Meyering  <meyering@lucent.com>
93628
93629         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93630
93631 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93632
93633         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93634         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93635
93636 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93637
93638         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93639         (mbrtowc, mbstate_t): Define substitutes if
93640         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93641         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93642         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93643
93644 2000-06-23  Jim Meyering  <meyering@lucent.com>
93645
93646         * m4/afs.m4: Add missing AC_MSG_RESULT.
93647         Reported by Bruno Haible.
93648
93649         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93650         Suggestion from Bruno Haible.
93651
93652 2000-06-23  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93655
93656 2000-06-21  Jim Meyering  <meyering@lucent.com>
93657
93658         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93659
93660 2000-06-21  Jim Meyering  <meyering@lucent.com>
93661
93662         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93663         (noinst_HEADERS): Add getstr.h.
93664
93665         * lib/getline.c (getstr): Move into a separate file.
93666         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93667         the following changes: new parameter, delim2; both delim[12]
93668         parameters have type `int', not `char'.  The latter would lose
93669         with 8-bit delimiters.
93670         * lib/getstr.h: New file.
93671
93672 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93673
93674         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93675         than 1024, return a memory chunk of least possible size, instead
93676         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93677         Use free/xmalloc instead of xrealloc to avoid copying for very long
93678         paths.
93679
93680 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93681
93682         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93683         the empty string.
93684
93685 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93686
93687         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93688         address, not strdup.  Include <stdlib.h> and don't declare free().
93689
93690 2000-06-19  Jim Meyering  <meyering@lucent.com>
93691
93692         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93693
93694 2000-06-18  Jim Meyering  <meyering@lucent.com>
93695
93696         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93697
93698         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93699         `checking whether...' message to be consistent with that of the
93700         lstat test.
93701
93702 2000-06-18  Jim Meyering  <meyering@lucent.com>
93703
93704         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93705         Besides, these days every porting target provides a mkdir function.
93706
93707         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93708         needed. (this snippet comes from src/system.h).
93709
93710 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93711
93712         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93713
93714 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93715
93716         * lib/human.c (adjust_value): New function.
93717         (human_readable_inexact): Apply rounding style even when
93718         printing approximate values.
93719
93720 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93721
93722         * lib/human.c (human_readable_inexact): Allow an input block
93723         size that is not a multiple of the output block size, and vice versa.
93724         Reported by Piergiorgio Sartor.
93725
93726 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93727
93728         * lib/getdate.y (get_date): Apply relative times after time
93729         zone indicator, not before.  Reported by Todd A. Jacobs.
93730
93731 2000-06-13  Jim Meyering  <meyering@lucent.com>
93732
93733         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93734
93735         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93736
93737 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93738
93739         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93740
93741 2000-06-12  Jim Meyering  <meyering@lucent.com>
93742
93743         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93744         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93745         optional argument.
93746         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93747         the optional argument, `lib'.
93748
93749 2000-06-08  Jim Meyering  <meyering@lucent.com>
93750
93751         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93752
93753 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93754
93755         Rewrite largefile configuration so that we don't need to run
93756         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93757         AC_CANONICAL_HOST in configure.in -- jmm]
93758
93759         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93760         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93761         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93762         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93763         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93764         All uses changed.
93765         Instead of inspecting the output of getconf, try to compile the
93766         test program without and with the macro definition.
93767         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93768         for getconf.  Instead, check for the needed flags by compiling
93769         test programs.
93770
93771 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93772
93773         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93774
93775 2000-06-04  Jim Meyering  <meyering@lucent.com>
93776
93777         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93778         SunOS 4.1.4 for which gid_t is an unsigned type.
93779
93780 2000-06-03  Jim Meyering  <meyering@lucent.com>
93781
93782         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93783         now that autoconf requires that.
93784
93785         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93786         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93787         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93788
93789 2000-06-03  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93792
93793 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93794
93795         * m4/glibc21.m4: New file.
93796         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93797
93798 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93799
93800         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93801         newer, don't install charset.alias.
93802         * lib/config.charset: Change the Linux/glibc rules so they become empty
93803         on glibc-2.1 or newer.
93804
93805 2000-06-02  Jim Meyering  <meyering@lucent.com>
93806
93807         * lib/mountlist.c: Back out last change.  Instead, do this...
93808         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93809         me_dummy member using the same `ignore'-testing code.
93810         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93811         fs_type strings.
93812         From Mark D. Roth.
93813
93814 2000-05-29  Jim Meyering  <meyering@lucent.com>
93815
93816         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93817         mounts with the `ignore' attribute.  Based on a patch from
93818         Mark D. Roth.
93819
93820 2000-05-28  Jim Meyering  <meyering@lucent.com>
93821
93822         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93823         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93824         * m4/stat.m4: Likewise.
93825         * m4/lstat.m4: Likewise.
93826         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93827
93828         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93829         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93830
93831 2000-05-26  Jim Meyering  <meyering@lucent.com>
93832
93833         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93834
93835 2000-05-24  Jim Meyering  <meyering@lucent.com>
93836
93837         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93838         autoconf requires that.
93839         * m4/lib-check.m4: Likewise.
93840         * m4/jm-macros.m4: Likewise.
93841         * m4/strftime.m4: Likewise.
93842
93843         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93844         AC_CHECK_DECLS, now that autoconf requires that.
93845
93846 2000-05-22  Jim Meyering  <meyering@lucent.com>
93847
93848         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93849         * m4/lstat.m4: Likewise.
93850
93851 2000-05-22  Jim Meyering  <meyering@lucent.com>
93852
93853         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93854
93855 2000-05-20  Jim Meyering  <meyering@lucent.com>
93856
93857         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93858         (jm_PREREQ): Use it.
93859
93860 2000-05-18  Jim Meyering  <meyering@lucent.com>
93861
93862         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93863         back, too, since it may have been modified by allocate_entry.
93864         (hash_delete): Rewrite to use neither the assignment operator
93865         nor the comma operator in an if-expression.
93866
93867 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93868
93869         * lib/closeout.c:
93870         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93871         Remove; no longer needed.
93872         "quotearg.h": Add include.
93873         (file_name): Do not bother to explicitly initialize to NULL; it's less
93874         efficient on some hosts.
93875         (close_stdout_status): Remove test as to whether stdout was already
93876         closed; it breaks for the case "echo x | sort >&-".
93877         Quote file name colons.
93878         Do not assume that _("write error") lacks format strings.
93879
93880 2000-05-15  Jim Meyering  <meyering@lucent.com>
93881
93882         * lib/version-etc.c (version_etc_copyright): Update the copyright
93883         string used in all --version output.
93884
93885 2000-05-14  Jim Meyering  <meyering@lucent.com>
93886
93887         * lib/closeout.c (close_stdout_set_file_name): New function.
93888         (close_stdout_status): Use new file-scoped global.
93889         Return right away if fstat says the stdout file descriptor is invalid.
93890         * lib/closeout.h (close_stdout_set_file_name): Declare.
93891
93892 2000-05-10  Jim Meyering  <meyering@lucent.com>
93893
93894         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93895         (close_stdout_set_status): New function.
93896         * lib/closeout.h (close_stdout_set_status): Declare.
93897
93898 2000-05-09  Jim Meyering  <meyering@lucent.com>
93899
93900         * m4/gettext.m4: Rename this...
93901         * m4/libintl.m4: ...to this.
93902
93903 2000-05-08  Jim Meyering  <meyering@lucent.com>
93904
93905         * lib/long-options.c: Don't include closeout.h.
93906         (parse_long_options): Don't call close_stdout for --version.
93907
93908 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93909
93910         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93911         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93912         2.1.3 bug.  This avoids a clash when files like regex.c define
93913         _GNU_SOURCE.
93914
93915 2000-05-06  Jim Meyering  <meyering@lucent.com>
93916
93917         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93918         (AC_REPLACE_FUNCS): Add strnlen.
93919
93920         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93921         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93922
93923         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93924         AC_SEARCH_LIBS call for nanosleep.
93925         (LIB_NANOSLEEP): Set and AC_SUBST.
93926
93927 2000-05-06  Jim Meyering  <meyering@lucent.com>
93928
93929         * lib/strnlen.c: Undefine __strnlen and strnlen.
93930         [!weak_alias]: Define __strnlen to strnlen.
93931
93932         * lib/atexit.c: New file, from libiberty.
93933
93934 2000-05-06  Jim Meyering  <meyering@lucent.com>
93935
93936         * lib/closeout.c (close_stdout_status): Also check for errors on the
93937         stderr stream.
93938
93939 2000-05-05  Jim Meyering  <meyering@lucent.com>
93940
93941         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93942         AC_SEARCH_LIBS call for clock_gettime.
93943         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93944
93945         * m4/search-libs.m4: Update from autoconf.
93946
93947         su doesn't work on Solaris 2.6.
93948         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93949         <shadow.h>.  Reported by Dragos Harabor.
93950
93951 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93952
93953         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93954         memcpy instead of xmalloc, xrealloc, path_concat.
93955         (locale_charset): Treat empty environment variables as absent.
93956         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93957
93958 2000-05-04  Jim Meyering  <meyering@lucent.com>
93959
93960         * lib/getopt.c: Update from glibc.
93961         * lib/obstack.c: Likewise.
93962         * lib/obstack.h: Likewise.
93963         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93964         file
93965
93966         * lib/regex.h: Likewise.
93967         * lib/strndup.c: Likewise.
93968         * lib/strnlen.c: New file, from glibc.
93969
93970 2000-05-03  Jim Meyering  <meyering@lucent.com>
93971
93972         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93973
93974 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93975
93976         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93977         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93978         compile-time test, rather than inspecting host and OS, to
93979         decide whether to define _LARGEFILE_SOURCE.
93980
93981 2000-05-01  Jim Meyering  <meyering@lucent.com>
93982
93983         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93984
93985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93986         Based on a patch from Bruno Haible.
93987
93988 2000-05-01  Jim Meyering  <meyering@lucent.com>
93989
93990         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93991
93992 2000-04-29  Jim Meyering  <meyering@lucent.com>
93993
93994         * lib/path-concat.c: Declare strdup only if it's not defined.
93995         * lib/canon-host.c: Likewise.
93996
93997 2000-04-28  Jim Meyering  <meyering@lucent.com>
93998
93999         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94000         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94001         is included first, then limits.h is included by locale.h by libintl.h.
94002         From John David Anglin.
94003
94004 2000-04-25  Jim Meyering  <meyering@lucent.com>
94005
94006         * lib/makepath.c (S_IRWXUGO): Define.
94007         (make_path): Always perform explicit chmod if MODE specifies any
94008         of the `special' permission bits.  Prompted by a bug report against
94009         install from Mate Wierdl and Joost van Baal.
94010
94011 2000-04-18  Jim Meyering  <meyering@lucent.com>
94012
94013         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94014         (jm_PREREQ): Use it.
94015
94016 2000-04-18  Jim Meyering  <meyering@lucent.com>
94017
94018         * lib/README: New file.
94019
94020         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94021         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94022
94023 2000-04-17  Jim Meyering  <meyering@lucent.com>
94024
94025         Get it right :-)
94026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94027         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94028         Suggestion from Akim Demaille.
94029
94030 2000-04-17  Jim Meyering  <meyering@lucent.com>
94031
94032         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94033         the definition of it to rpl_strftime also defined-away the system's
94034         declaration.
94035
94036 2000-04-15  Jim Meyering  <meyering@lucent.com>
94037
94038         Use `C' to denote so-called `contiguous' files, the same way
94039         that tar does.
94040         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94041         (ftypelet): Use S_ISCTG.
94042         From Michael Deutschmann.
94043
94044 2000-04-14  Jim Meyering  <meyering@lucent.com>
94045
94046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94047         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94048         clobbered.
94049
94050 2000-04-14  Jim Meyering  <meyering@lucent.com>
94051
94052         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94053
94054 2000-04-13  Jim Meyering  <meyering@lucent.com>
94055
94056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94057         AH_VERBATIM to insert required #ifndef into config.h.in.
94058         Suggestion from Akim Demaille.
94059
94060 2000-04-12  Jim Meyering  <meyering@lucent.com>
94061
94062         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94063         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94064         Christian Krackowizer.
94065
94066         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94067         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94068         (AC_SYS_LARGEFILE): Require.
94069         (AM_C_PROTOTYPES): Require.
94070
94071 2000-04-08  Jim Meyering  <meyering@lucent.com>
94072
94073         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94074         names don't conflict.  Reported by Eli Zaretskii.
94075
94076 2000-04-07  Jim Meyering  <meyering@lucent.com>
94077
94078         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94079         sys/types.h, to work around system header problems on AIX 3.2.5.
94080         From Bruno Haible.
94081
94082 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94083
94084         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94085         bug.  Deal with the different error behavior of Irix iconv.
94086
94087 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94088
94089         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94090         IRIX if the installer said otherwise.
94091
94092 2000-04-05  Jim Meyering  <meyering@lucent.com>
94093
94094         Portability tweaks required for ultrix4.3.
94095         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94096         (jm_CHECK_DECLS): Add getutent to the list of functions.
94097         (_jm_DECL_HEADERS): Add utmpx.h.
94098         From John David Anglin.
94099
94100         * m4/strftime.m4: Back out the 2000-04-02 change.
94101         Instead of that change, simply undefine putenv in the test program.
94102
94103 2000-04-05  Jim Meyering  <meyering@lucent.com>
94104
94105         Portability tweaks required for ultrix4.3.
94106         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94107         getutent.
94108         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94109         * lib/canon-host.c: Declare strdup.
94110         * lib/path-concat.c: Likewise.
94111         From John David Anglin.
94112
94113 2000-04-04  Jim Meyering  <meyering@lucent.com>
94114
94115         Be more DOS 8.3-friendly.
94116         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94117         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94118         * lib/Makefile.am: Reflect renaming.
94119         Reported by Eli Zaretskii.
94120
94121         Use a temporary file name that won't clash with `charset.alias'
94122         in the DOS 8.3 name space.
94123         * lib/Makefile.am (charset_tmp): Define.
94124         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94125         (uninstall-local): Likewise.
94126         Reported by Eli Zaretskii.
94127
94128 2000-04-03  Jim Meyering  <meyering@lucent.com>
94129
94130         * m4/gettext.m4: Fix typo in comment.
94131
94132         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94133         textutils/configure.in).  Suggestion from Paul Eggert.
94134         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94135
94136 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94137
94138         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94139         variable in the shell rather than using putenv, which isn't
94140         portable.  This avoids the configure-time inter-test dependency
94141         on the potentially-renamed putenv function.
94142
94143 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94144
94145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94146         before checking struct stat.st_blksize, so that
94147         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94148
94149 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94150
94151         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94152         since strftime.c uses HAVE_STRFTIME to decide whether to use
94153         the underlying strftime.
94154
94155 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94156
94157         * lib/time/strftime.c (my_strftime): Make sure we call the system
94158         strftime, not ourselves, when invoking the underlying strftime.
94159
94160 2000-03-24  Jim Meyering  <meyering@lucent.com>
94161
94162         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94163         (charset_alias): Define.
94164         (install-exec-local): Factor out common code.
94165         (uninstall-local): Split lines longer than 80.
94166         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94167         (SUFFIXES): Define.
94168         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94169         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94170
94171 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94172
94173         * lib/config.charset: Output a line containing "Packages using this
94174         file".
94175         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94176         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94177         ref-del.sed): New rules.
94178
94179 2000-03-17  Jim Meyering  <meyering@lucent.com>
94180
94181         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94182         Otherwise, include <strings.h>
94183
94184 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94185
94186         * lib/unicodeio.c (utf8_wctomb): New function.
94187         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94188         format instead of in UCS-4 with platform dependent endianness.
94189
94190 2000-03-10  Jim Meyering  <meyering@lucent.com>
94191
94192         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94193         From Marco Franzen.
94194
94195 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94196
94197         * lib/savedir.c (savedir): Work even if directory size is
94198         negative; this can happen with some screwy NFS configurations.
94199
94200 2000-03-06  Jim Meyering  <meyering@lucent.com>
94201
94202         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94203         if it's NULL (because we ran out of memory).  From Bruno Haible.
94204
94205 2000-03-05  Jim Meyering  <meyering@lucent.com>
94206
94207         * lib/localcharset.c ("path-concat.h"): Include.
94208         (get_charset_aliases): Use path_concat instead of ANSI string
94209         concatenation.
94210
94211         * lib/unicodeio.h (PARAMS): Define.
94212         Use it to guard prototype.
94213
94214 2000-03-04  Jim Meyering  <meyering@lucent.com>
94215
94216         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94217         for lib/localcharset.c.
94218
94219 2000-03-04  Jim Meyering  <meyering@lucent.com>
94220
94221         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94222         installing into it.
94223         (uninstall-local): Uncomment this rule so `make distcheck' works
94224         once again.
94225
94226         * lib/unicodeio.c (<errno.h>): Include it.
94227         (errno): Declare if not defined.
94228
94229         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94230
94231         * lib/config.charset: New version, incorporating remarks from a linux
94232         i18n mailing list.  From Bruno Haible.
94233
94234 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94235
94236         * m4/codeset.m4: New file.
94237         * m4/iconv.m4: New file.
94238         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94239
94240 2000-03-03  Jim Meyering  <meyering@lucent.com>
94241
94242         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94243
94244 2000-03-02  Jim Meyering  <meyering@lucent.com>
94245
94246         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94247         the messages come out on separate lines.
94248
94249         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94250         rather than jm_CHECK_DECLARATIONS.
94251         * m4/decl.m4: Remove now-unused file.
94252
94253         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94254         geteuid.
94255
94256 2000-03-02  Jim Meyering  <meyering@lucent.com>
94257
94258         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94259
94260 2000-03-01  Jim Meyering  <meyering@lucent.com>
94261
94262         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94263         * lib/unicodeio.c: Likewise.
94264
94265 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94266
94267         * lib/config.charset: New file.
94268         * lib/localcharset.c: New file.
94269         * lib/unicodeio.h, lib/unicodeio.c: New files.
94270         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94271         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94272         (noinst_HEADERS): Add unicodeio.h.
94273         (all-local, install-exec-local, charset.alias): New targets.
94274
94275 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94276
94277         * lib/quotearg.c (ALERT_CHAR): New macro.
94278         (quotearg_buffer_restyled): Use it.
94279
94280 2000-02-27  Jim Meyering  <meyering@lucent.com>
94281
94282         * m4/check-decl.m4: Add getenv to the list.
94283
94284 2000-02-27  Jim Meyering  <meyering@lucent.com>
94285
94286         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94287         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94288
94289         * lib/backupfile.c: Guard inclusion of stdlib.h with
94290         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94291         Declare malloc if needed.
94292
94293         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94294         `#ifndef HAVE_DECL..'
94295         now that autoconf always defines the HAVE_DECL_ symbols.
94296         * lib/human.c: Likewise.
94297         * lib/same.c: Likewise.
94298         * lib/strtoumax.c: Likewise.
94299
94300         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94301         declaration check was not run.
94302         * lib/hash.c: Likewise.
94303         * lib/human.c: Likewise.
94304         * lib/same.c: Likewise.
94305         * lib/strtoumax.c: Likewise.
94306
94307         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94308         `.', then first look up the entire `.'-containing string as a login
94309         name.
94310
94311 2000-02-23  Jim Meyering  <meyering@lucent.com>
94312
94313         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94314         in place of my hack.
94315
94316 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94317
94318         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94319         (textint): New typedef.
94320         (parser_control): Member year changed from int to textint.
94321         All uses changed.
94322         (YYSTYPE): Removed; replaced by %union with int and textint members.
94323         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94324         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94325         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94326         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94327         (date, number, to_year): Use width of number in digits, not its value,
94328         to determine whether it's a 2-digit year, or a 2-digit time.
94329         (yylex): Store number of digits of numeric tokens.
94330         Reported by John Kendall.
94331
94332         (parser_control): Changed from struct parser_control to typedef (for
94333         consistency).  All uses changed.
94334
94335         (tID): Removed; not used.
94336         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94337
94338 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94339
94340         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94341         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94342
94343 2000-02-12  Jim Meyering  <meyering@lucent.com>
94344
94345         * lib/userspec.c (ISDIGIT): Define it.
94346         (isdigit): Remove definition.
94347         (is_number): Use ISDIGIT, not isdigit.
94348         <libintl.h>: Include.
94349         (_ and N_): Define.
94350         (parse_user_spec): Mark translatable strings.
94351
94352 2000-02-10  Jim Meyering  <meyering@lucent.com>
94353
94354         With these changes, nanosleep.[ch] are finally enough like the other
94355         lib/* replacement files to compile on a few more losing systems.
94356
94357         * lib/nanosleep.h: Don't include config.h.
94358         Remove prototype from declaration of nanosleep.
94359         (PARAMS): Remove now-unneeded definition.
94360         * lib/nanosleep.c: #undef nanosleep.
94361         (rpl_nanosleep): Rename from nanosleep.
94362
94363 2000-02-10  Jim Meyering  <meyering@lucent.com>
94364
94365         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94366         gnu_nanosleep to rpl_nanosleep.
94367
94368 2000-02-09  Jim Meyering  <meyering@lucent.com>
94369
94370         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94371         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94372
94373 2000-02-08  Akim Demaille  <akim@epita.fr>
94374
94375         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94376         `[' and `]' and remove uses of `changequote'.
94377         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94378         (AC_SYS_LARGEFILE): Likewise.
94379         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94380         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94381         of changequote.
94382         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94383         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94384         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94385         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94386
94387 2000-02-05  Jim Meyering  <meyering@lucent.com>
94388
94389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94390         Remove explicit use of AC_HEADER_TIME.  It is required by
94391         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94392         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94393         in autoconf whereby the expansion of the latter ended up preceding
94394         the expansion of its prerequisite, AC_HEADER_TIME.
94395         Reported by Volker Borchert.
94396
94397 2000-02-03  Jim Meyering  <meyering@lucent.com>
94398
94399         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94400
94401 2000-02-03  Jim Meyering  <meyering@lucent.com>
94402
94403         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94404         rather than with `#if HAVE_UTMPNAME'.
94405
94406 2000-02-02  Jim Meyering  <meyering@lucent.com>
94407
94408         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94409         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94410         Reported by Eli Zaretskii.
94411
94412 2000-02-01  Jim Meyering  <meyering@lucent.com>
94413
94414         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94415
94416 2000-01-31  Jim Meyering  <meyering@lucent.com>
94417
94418         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94419         functions.  Add the time.h and sys/time.h headers along with the
94420         AC_REQUIRE'ment of AC_HEADER_TIME.
94421
94422 2000-01-31  Jim Meyering  <meyering@lucent.com>
94423
94424         * lib/nanosleep.h (nanosleep): Guard declaration with
94425         `#if ! HAVE_DECL_NANOSLEEP'.
94426         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94427         the declaration in that vendor's sys/timers.h.
94428         Reported by Christian Krackowizer.
94429
94430         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94431         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94432         (ISPRINT): Likewise.
94433         Reported by Tom Tromey.
94434
94435 2000-01-30  Jim Meyering  <meyering@lucent.com>
94436
94437         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94438
94439         * m4/prereq.m4 (utmp_includes): Define.
94440         Check for ut_user and ut_name members in both struct utmpx
94441         and struct utmp.
94442
94443 2000-01-30  Jim Meyering  <meyering@lucent.com>
94444
94445         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94446         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94447         header files where only utmpx.ut_user is declared.
94448
94449         * lib/readutmp.h (UT_USER): Define.
94450
94451 2000-01-29  Jim Meyering  <meyering@lucent.com>
94452
94453         * m4/lib-check.m4: New file containing library-related checks from
94454         fileutils and sh-utils (textutils had none).
94455
94456 2000-01-28  Jim Meyering  <meyering@lucent.com>
94457
94458         * m4/perl.m4: Change format of warning message to look more like that
94459         from the missing script.  Suggestion from François Pinard.
94460
94461 2000-01-25  Jim Meyering  <meyering@lucent.com>
94462
94463         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94464         well as time.h in the compile check.
94465         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94466         Fix typo in cross-compiling case: s/yes/no/.
94467
94468 2000-01-23  Jim Meyering  <meyering@lucent.com>
94469
94470         * m4/jm-macros.m4: Move df-related tests here from
94471         fileutils/configure.in
94472
94473         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94474         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94475
94476         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94477         s/space/ac_fsusage_space/.
94478         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94479
94480         * m4/ftruncate.m4: New file (derived from part of
94481         fileutils/configure.in).
94482         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94483         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94484
94485         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94486         AC_SUBST these here, rather than just in sh-util/configure.in, so
94487         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94488         all the same.
94489         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94490         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94491         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94492         (AC_SUBST(POW_LIBM)): Likewise.
94493         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94494
94495 2000-01-23  Jim Meyering  <meyering@lucent.com>
94496
94497         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94498         obstack.c.
94499
94500 2000-01-22  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94503
94504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94505
94506         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94507         configure.in
94508         (AC_CHECK_HEADERS): Likewise for sh-utils.
94509         (AC_CHECK_HEADERS): Likewise for textutils.
94510         Merge the three lists of headers.
94511
94512         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94513         from fileutils' configure.in.
94514
94515         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94516         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94517         check-decl.m4.
94518
94519         * m4/check-decl.m4: Use #if rather than #ifdef.
94520         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94521         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94522         (_jm_DECL_HEADERS): Define new function.
94523         (jm_CHECK_DECLARATIONS): Require it.
94524
94525 2000-01-22  Jim Meyering  <meyering@lucent.com>
94526
94527         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94528         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94529         Required for some AIX systems.  Reported by Christian Krackowizer.
94530         [TESTING] (main): New function.
94531
94532         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94533         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94534         letters.
94535
94536         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94537         iswprint.
94538
94539         * lib/strverscmp.c (ISDIGIT): Define.
94540         (strverscmp): Use ISDIGIT, not isdigit.
94541
94542 2000-01-19  Jim Meyering  <meyering@lucent.com>
94543
94544         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94545         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94546         defines `struct timespec' in <sys/time.h>
94547
94548         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94549         Thanks to Akim for explaining.
94550
94551 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94552
94553         * lib/nanosleep.c (nanosleep):
94554         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94555         POSIX.1 doesn't require SA_INTERRUPT and some systems
94556         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94557         it's been part of POSIX.1 since day 1 (in 1988).
94558
94559 2000-01-17  Jim Meyering  <meyering@lucent.com>
94560
94561         * lib/interlock: Remove unused file.  Reported by François Pinard.
94562
94563 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94564
94565         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94566         alert, backslash, formfeed, and vertical tab unnecessarily in
94567         shell quoting style.
94568
94569 2000-01-16  Jim Meyering  <meyering@lucent.com>
94570
94571         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94572         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94573         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94574         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94575
94576 2000-01-16  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94579         because the latter didn't work.
94580
94581 2000-01-15  Jim Meyering  <meyering@lucent.com>
94582
94583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94584         (AC_REPLACE_FUNCS): Add memcpy and memset.
94585         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94586         Add strpbrk.
94587         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94588
94589 2000-01-12  Jim Meyering  <meyering@lucent.com>
94590
94591         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94592         (jm_PREREQ): Use it.
94593         (jm_PREREQ_READUTMP): New macro.
94594         (jm_PREREQ): Use it.
94595
94596 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94597
94598         Quote multibyte characters correctly.
94599         * m4/c-bs-a.m4: New file.
94600         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94601         (jm_PREREQ): Use it.
94602
94603 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94604
94605         * m4/uintmax_t.m4: Port to autoconf 2.13.
94606
94607 2000-01-08  Jim Meyering  <meyering@ascend.com>
94608
94609         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94610         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94611
94612 2000-01-04  Jim Meyering  <meyering@ascend.com>
94613
94614         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94615         jm_STRUCT_DIRENT_D_TYPE.
94616         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94617         jm_STRUCT_DIRENT_D_INO.
94618         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94619         jm_STRUCT_UTIMBUF.
94620         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94621         renamings.
94622         * m4/utime.m4: Likewise.
94623
94624         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94625         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94626
94627 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94628
94629         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94630         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94631
94632 2000-01-02  Jim Meyering  <meyering@ascend.com>
94633
94634         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94635         remember if this is necessary.
94636
94637 1999-12-26  Jim Meyering  <meyering@ascend.com>
94638
94639         * m4/jm-macros.m4: Use it here.
94640         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94641
94642 1999-12-23  Jim Meyering  <meyering@ascend.com>
94643
94644         * m4/jm-macros.m4: Check for clock_gettime (moved from
94645         fileutils/configure.in)
94646         Check for gettimeofday.
94647
94648 1999-12-20  Jim Meyering  <meyering@ascend.com>
94649
94650         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94651         autoconf-2.14a-1999-12-20.
94652
94653 1999-12-19  Jim Meyering  <meyering@ascend.com>
94654
94655         * m4/lstat-slash.m4: New file.
94656         * m4/jm-macros.m4: Use the new macro:
94657         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94658
94659 1999-12-07  Jim Meyering  <meyering@ascend.com>
94660
94661         * m4/perl.m4: Require that File::Compare be available, too.
94662         Too many systems seem to lack it.
94663
94664         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94665         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94666
94667 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94668
94669         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94670         problem with the QNX 4.25 shell, which doesn't propagate exit
94671         status of failed commands inside shell assignments.
94672
94673 1999-11-17  Jim Meyering  <meyering@ascend.com>
94674
94675         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94676
94677 1999-11-07  Jim Meyering  <meyering@ascend.com>
94678
94679         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94680
94681 1999-11-06  Jim Meyering  <meyering@ascend.com>
94682
94683         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94684         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94685
94686 1999-11-05  Jim Meyering  <meyering@ascend.com>
94687
94688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94689         configure.in of textutils, fileutils, and sh-utils into this one
94690         (shared between those packages) file.
94691         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94692         AC_STRUCT_ST_BLKSIZE.
94693
94694 1999-11-03  Jim Meyering  <meyering@ascend.com>
94695
94696         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94697         of AC_CHECK_TYPE checks includes unistd.h.
94698         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94699         Suggestion from Akim Demaille.
94700
94701 1999-10-30  Jim Meyering  <meyering@ascend.com>
94702
94703         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94704         m4-quoted string.
94705         * m4/ls-mntd-fs.m4: Likewise.
94706         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94707         * m4/jm-winsz1.m4: Likewise.
94708
94709         * m4/const.m4: Remove file, since the fix made it into the experimental
94710         version of autoconf.
94711         * m4/mktime.m4: Likewise.
94712
94713         * m4/check-type.m4: Remove file, now that the latest version of
94714         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94715
94716         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94717         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94718         AC_CHECK_TYPE.
94719
94720 1999-10-04  Jim Meyering  <meyering@ascend.com>
94721
94722         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94723
94724 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94725
94726         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94727         2.95.1 bug with HP-UX 10.20.
94728
94729 1999-09-17  Jim Meyering  <meyering@ascend.com>
94730
94731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94732         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94733         due to missing strdup (against sh-utils-2.0).
94734
94735 1999-08-29  Jim Meyering  <meyering@ascend.com>
94736
94737         * m4/jm-macros.m4: Require jm_BISON.
94738         * m4/bison.m4: New file.
94739
94740 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94741
94742         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94743         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94744
94745 1999-08-05  Jim Meyering  <meyering@ascend.com>
94746
94747         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94748         to avoid conflicts with `conftest' on 8+3 filesystems.
94749         Suggestion from Eli Zaretskii.
94750
94751 1999-08-04  Jim Meyering  <meyering@ascend.com>
94752
94753         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94754         fileutils and sh-utils (textutils's getline test was inadequate).
94755         (AM_FUNC_GETLINE): Run this test.
94756         (AC_CHECK_FUNCS): Check for getdelim.
94757         Reported by Bob Proulx.
94758
94759 1999-08-02  Jim Meyering  <meyering@ascend.com>
94760
94761         * m4/jm-macros.m4: Add a comment.
94762
94763 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94764
94765         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94766         <inttypes.h> defines strtoumax as a macro (and not as a
94767         function).
94768
94769 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94770
94771         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94772         that we can shift, multiply and divide unsigned long long
94773         values; Ultrix cc can't do it.
94774
94775 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94776
94777         * m4/mktime.m4: New file, which is a preview of what should appear
94778         in the next public autoconf release.
94779
94780 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94781
94782         * m4/lfs.m4: Remove this file.
94783         * m4/largefile.m4: New file.  It contains the old contents of
94784         lfs.m4, except that all names with prefix AC_LFS have been
94785         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94786         compatible with future autoconf versions.  Also, some minor m4
94787         quoting problems have been fixed.
94788
94789 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94790
94791         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94792         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94793         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94794         and simplify the shell code.
94795
94796 1999-08-01  Jim Meyering  <meyering@ascend.com>
94797
94798         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94799         m4.
94800
94801 1999-07-20  Jim Meyering  <meyering@ascend.com>
94802
94803         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94804
94805 1999-07-15  Jim Meyering  <meyering@ascend.com>
94806
94807         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94808
94809 1999-05-22  Jim Meyering  <meyering@ascend.com>
94810
94811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94812
94813 1999-05-20  Jim Meyering  <meyering@ascend.com>
94814
94815         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94816         Add a colon after each `then' in case $4 is empty.
94817
94818 1999-05-16  Jim Meyering  <meyering@ascend.com>
94819
94820         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94821
94822 1999-05-10  Jim Meyering  <meyering@ascend.com>
94823
94824         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94825
94826         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94827         AC_FUNC_MKTIME.
94828
94829 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94830
94831         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94832
94833 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94834
94835         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94836         not CPPFLAGS, so that linking works correctly in IRIX.
94837
94838 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94839
94840         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94841
94842 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94843
94844         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94845         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94847         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94848         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94849
94850         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94851
94852 1999-04-20  Jim Meyering  <meyering@ascend.com>
94853
94854         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94855         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94856         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94857
94858 1999-04-18  Jim Meyering  <meyering@ascend.com>
94859
94860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94861         * m4/jm-macros.m4: Use it.
94862
94863 1999-04-06  Jim Meyering  <meyering@ascend.com>
94864
94865         * m4/strftime.m4: Remove test for %f.
94866
94867 1999-03-29  Jim Meyering  <meyering@ascend.com>
94868
94869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94870         superset of the AC_TYPE_* checks in the textutils, fileutils,
94871         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94872         AC_TYPE_PID_T.
94873
94874 1999-03-28  Jim Meyering  <meyering@ascend.com>
94875
94876         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94877         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94878         replaced e.g., in the *.sh files of the sh-utils.
94879
94880 1999-03-20  Jim Meyering  <meyering@ascend.com>
94881
94882         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94883         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94884         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94885
94886 1999-03-19  Jim Meyering  <meyering@ascend.com>
94887
94888         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94889
94890 1999-03-12  Jim Meyering  <meyering@ascend.com>
94891
94892         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94893
94894 1999-03-07  Jim Meyering  <meyering@ascend.com>
94895
94896         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94897         declared.
94898
94899 1999-02-17  Jim Meyering  <meyering@ascend.com>
94900
94901         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94902         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94903
94904 1999-02-07  Jim Meyering  <meyering@ascend.com>
94905
94906         * m4/group-member.m4: New file -- extracted from sh-utils'
94907         configure.in.
94908
94909         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94910         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94911
94912 1999-02-06  Jim Meyering  <meyering@ascend.com>
94913
94914         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94915         * m4/fnmatch.m4: Likewise.
94916         * m4/getgroups.m4: Likewise.
94917         * m4/lstat.m4: Likewise.
94918         * m4/malloc.m4: Likewise.
94919         * m4/putenv.m4: Likewise.
94920         * m4/realloc.m4: Likewise.
94921         * m4/regex.m4: Likewise.
94922         * m4/stat.m4: Likewise.
94923         * m4/strftime.m4: Likewise.
94924         Suggestion from Alain Magloire.
94925
94926         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94927         * m4/fnmatch.m4: Likewise.
94928         * m4/getgroups.m4: Likewise.
94929         * m4/getline.m4: Likewise.
94930         * m4/lstat.m4: Likewise.
94931         * m4/malloc.m4: Likewise.
94932         * m4/memcmp.m4: Likewise.
94933         * m4/putenv.m4: Likewise.
94934         * m4/realloc.m4: Likewise.
94935         * m4/regex.m4: Likewise.
94936         * m4/stat.m4: Likewise.
94937         * m4/strftime.m4: Likewise.
94938         Suggestion from Alain Magloire.
94939
94940         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94941         an argument.
94942
94943         * m4/regex.m4: Add a run-time Test for proper operation of
94944         re_compile_pattern.
94945
94946 1999-01-31  Jim Meyering  <meyering@ascend.com>
94947
94948         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94949
94950 1999-01-30  Jim Meyering  <meyering@ascend.com>
94951
94952         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94953
94954         * m4/jm-mktime.m4: Make this a wrapper around the official
94955         AM_FUNC_MKTIME rather than my private copy, now that the official one
94956         is up to date.
94957         * m4/mktime.m4: Remove file.
94958
94959         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94960         * m4/uptime.m4: Likewise.
94961         * m4/uintmax_t.m4: Likewise.
94962
94963 1999-01-28  Jim Meyering  <meyering@ascend.com>
94964
94965         * m4/jm-macros.m4: Use jm_AFS.
94966         * m4/afs.m4: New file (from fileutils' configure.in).
94967
94968         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94969         * m4/chown.m4: Likewise.
94970         * m4/d-ino.m4: Likewise.
94971         * m4/d-type.m4: Likewise.
94972         * m4/fnmatch.m4: Likewise.
94973         * m4/getgroups.m4: Likewise.
94974         * m4/gettext.m4: Likewise.
94975         * m4/jm-mktime.m4: Likewise.
94976         * m4/jm-winsz2.m4: Likewise.
94977         * m4/lcmessage.m4: Likewise.
94978         * m4/ls-mntd-fs.m4: Likewise.
94979         * m4/malloc.m4: Likewise.
94980         * m4/memcmp.m4: Likewise.
94981         * m4/putenv.m4: Likewise.
94982         * m4/realloc.m4: Likewise.
94983         * m4/st_mtim.m4: Likewise.
94984         * m4/strftime.m4: Likewise.
94985
94986 1999-01-16  Jim Meyering  <meyering@ascend.com>
94987
94988         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94989         (ARGMATCH_DIE_DECL): Define.
94990
94991 1999-01-12  Jim Meyering  <meyering@ascend.com>
94992
94993         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94994         Reported by Lars Hecking.
94995
94996 1999-01-10  Jim Meyering  <meyering@ascend.com>
94997
94998         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94999         gross kludge.
95000         * m4/inttypes_h.m4: Likewise.
95001         * m4/lstat.m4: Likewise.
95002         * m4/malloc.m4: Likewise.
95003         * m4/readdir.m4: Likewise.
95004         * m4/realloc.m4: Likewise.
95005         * m4/st_dm_mode.m4: Likewise.
95006         * m4/stat.m4: Likewise.
95007         * m4/utimbuf.m4: Likewise.
95008         * m4/utimes.m4: Likewise.
95009
95010         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95011         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95012         comments in config.h.in are meaningful.
95013
95014         * m4/jm-macros.m4: Require autoconf-2.13 here.
95015
95016         * m4/regex.m4: By default, don't use the included regex.c on systems
95017         with glibc 2.  Suggestion from Uli Drepper.
95018
95019 1999-01-02  Jim Meyering  <meyering@ascend.com>
95020
95021         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95022
95023 1998-12-18  Jim Meyering  <meyering@ascend.com>
95024
95025         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95026         Based on a suggestion from Lars Hecking.
95027
95028 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95029
95030         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95031
95032 1998-11-16  Jim Meyering  <meyering@ascend.com>
95033
95034         * m4/lfs.m4: Double-quote the `uname...` expression.
95035
95036 1998-11-14  Jim Meyering  <meyering@ascend.com>
95037
95038         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95039         * m4/stat.m4: Likewise.
95040
95041 1998-11-03  Jim Meyering  <meyering@ascend.com>
95042
95043         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95044         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95045
95046 1998-10-18  Jim Meyering  <meyering@ascend.com>
95047
95048         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95049
95050 1998-10-17  Jim Meyering  <meyering@ascend.com>
95051
95052         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95053         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95054         calls for those previously hard-coded headers.  Instead, take a new
95055         parameter.
95056         (jm_CHECK_DECLARATIONS): Reflect interface change.
95057         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95058         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95059
95060         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95061
95062 1998-10-14  Jim Meyering  <meyering@ascend.com>
95063
95064         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95065         instead of "TZ=America/Vancouver".  From Paul Eggert.
95066
95067 1998-10-11  Jim Meyering  <meyering@ascend.com>
95068
95069         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95070         This adds a test for a recently added compatibility fix for mktime.c.
95071         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95072
95073 1998-09-27  Jim Meyering  <meyering@ascend.com>
95074
95075         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95076
95077         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95078         ../configure.in, including a change from Gordon Matzigkeit to allow
95079         cross-compiling for the Hurd.
95080
95081         * m4/glibc.m4: New file/macro to test for the GNU C Library
95082         versions 1 and 2.  From Gordon Matzigkeit.
95083         Indent.
95084
95085 1998-09-21  Jim Meyering  <meyering@ascend.com>
95086
95087         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95088
95089 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95090
95091         Port nanosecond-resolution times to UnixWare 2.1.2 and
95092         pedantic Solaris 2.6.
95093
95094         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95095         AC_STRUCT_ST_MTIM.
95096         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95097         Generate name of ns member, instead of just 1 or undef.
95098         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95099
95100 1998-08-15  Jim Meyering  <meyering@ascend.com>
95101
95102         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95103         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95104         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95105         instead of jm_TYPE_SSIZE_T.
95106
95107 1998-08-12  Jim Meyering  <meyering@ascend.com>
95108
95109         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95110
95111 1998-08-02  Jim Meyering  <meyering@ascend.com>
95112
95113         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95114         in acconfig.h manually.
95115
95116 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95117
95118         * m4/st_mtim.m4: New file.
95119
95120 1998-07-28  Jim Meyering  <meyering@ascend.com>
95121
95122         * m4/utimes.m4: Undef stat.
95123
95124 1998-07-25  Jim Meyering  <meyering@ascend.com>
95125
95126         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95127         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95128
95129 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95130
95131         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95132         uid and gid actually remain unchanged.
95133
95134 1998-07-07  Jim Meyering  <meyering@ascend.com>
95135
95136         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95137
95138 1998-07-04  Jim Meyering  <meyering@ascend.com>
95139
95140         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95141         to prove that this macro can be used in packages without regex.c.
95142
95143 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95144
95145         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95146         is to be used.
95147
95148 1998-07-03  Jim Meyering  <meyering@ascend.com>
95149
95150         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95151
95152         * m4/gettext.m4: New file -- from gettext-0.10.35.
95153         * m4/lcmessage.m4: Likewise.
95154         * m4/progtest.m4: Likewise.
95155
95156         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95157         * m4/jm-macros.m4: Require the new macro.
95158
95159 1998-06-29  Jim Meyering  <meyering@ascend.com>
95160
95161         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95162         for the definition of NGROUPS (used in a system header included
95163         by sys/mount.h).
95164
95165 1998-06-28  Jim Meyering  <meyering@ascend.com>
95166
95167         * m4/ls-mntd-fs.m4: New file.
95168         * m4/fstypename.m4: New file.
95169
95170         * m4/jm-macros.m4: Require the new macro.
95171         * m4/jm-glibc-io.m4: New file.
95172
95173 1998-05-19  Jim Meyering  <meyering@ascend.com>
95174
95175         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95176         * m4/lchown.m4: New file.
95177
95178         * m4/Makefile.am.in: New file.
95179         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95180
95181 1998-05-14  Jim Meyering  <meyering@ascend.com>
95182
95183         * m4/Makefile.am (EXTRA_DIST): Add them.
95184         * m4/jm-macros.m4: New file.
95185         * m4/utimbuf.m4: New file.
95186
95187 1998-05-12  Jim Meyering  <meyering@ascend.com>
95188
95189         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95190
95191 1998-05-11  Jim Meyering  <meyering@ascend.com>
95192
95193         * m4/isc-posix.m4: New file.
95194
95195 1998-05-10  Jim Meyering  <meyering@ascend.com>
95196
95197         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95198
95199 1998-05-09  Jim Meyering  <meyering@ascend.com>
95200
95201         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95202         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95203         with automake.
95204
95205         * m4/ssize_t.m4: New file.
95206         * m4/mktime.m4: Remove file -- the new automake has this now.
95207
95208 1998-04-26  Jim Meyering  <meyering@ascend.com>
95209
95210         * m4/assert.m4: New file.
95211         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95212
95213 1998-04-05  Jim Meyering  <meyering@ascend.com>
95214
95215         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95216         (jm_PREREQ): Use it here.
95217
95218 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95219
95220         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95221         in acconfig.h.
95222
95223 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95224
95225         * m4/prereq.m4: New file.
95226         * m4/error.m4: New file.
95227         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95228
95229 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95230
95231         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95232         cache-check for the same variable -- that defeated the purpose of
95233         the test; the test program was never run.  This was a problem only
95234         on systems with losing getline functions -- HP-UX 10.20 is one.
95235         Reported by Bjorn Helgaas.
95236
95237 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95238
95239         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95240
95241 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95242
95243         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95244
95245         * m4/const.m4: New file.  Use an initializer in this declaration
95246         typedef int charset[2]; const charset x;
95247         Reported by Bob Glickstein.
95248
95249 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95250
95251         * m4/chown.m4: Fix reversed types on -1 args to chown.
95252         From Kaveh Ghazi.
95253
95254 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95255
95256         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95257         Add lseek and memchr.
95258
95259         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95260         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95261         have a 20-character limit on names.
95262
95263 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95264
95265         * m4/inttypes_h.m4: New file.
95266         * m4/uintmax_t.m4: New file.
95267         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95268
95269
95270         -----
95271
95272         Local Variables:
95273         coding: utf-8
95274         End:
95275
95276         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95277
95278         Copying and distribution of this file, with or without
95279         modification, are permitted provided the copyright notice
95280         and this notice are preserved.