ebc9b45b711a6a5b65b819fcc69a7fc14df918d0
[gnulib.git] / ChangeLog
1 2012-04-16  Jim Meyering  <meyering@redhat.com>
2
3         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5         the one from gettext.  Reported by Akim Demaille.
6
7 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
8
9         Fix recursion of install-* into po directories.
10         Bison's install-pdf bug reported by Hans Aberg at
11         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
12         * build-aux/po/Makefile.in.in (install-dvi, install-html)
13         (install-info, install-pdf, install-ps): New targets.
14
15 2012-04-16  Jim Meyering  <meyering@redhat.com>
16
17         maint: avoid spurious "make sc_maint" failure
18         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
19         exempt all *.class file names, for lib/javaversion.class.
20
21 2012-04-15  Bruno Haible  <bruno@clisp.org>
22
23         lseek: Make configure test independent of environment.
24         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
25         Windows, we know that lseek() on pipes is broken; skip the runtime
26         test.
27
28 2012-04-14  Bruno Haible  <bruno@clisp.org>
29
30         stat: Bypass buggy override in mingw64.
31         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
32         * lib/stat.c (stat) [mingw64]: Define to _stat.
33         * doc/posix-functions/stat.texi: Mention mingw64 bug.
34
35 2012-04-14  Bruno Haible  <bruno@clisp.org>
36
37         pathmax: Fix compilation error on MSVC 9.
38         * modules/pathmax (Depends-on): Add unistd.
39
40 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
41
42         README: document pointer comparison assumption
43         * README (Portability guidelines): Document assumption about
44         pointer comparisons, in response to a recent bug-gnulib comment by
45         Jeffrey Kegler.
46
47 2012-04-12  Bruno Haible  <bruno@clisp.org>
48
49         Tests for module 'getrusage'.
50         * modules/getrusage-tests: New file.
51         * tests/test-getrusage.c: New file.
52
53         New module 'getrusage'.
54         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
55         warn-on-use.h.
56         (getrusage): New declaration.
57         * lib/getrusage.c: New file.
58         * m4/getrusage.m4: New file.
59         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
60         is declared.
61         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
62         HAVE_GETRUSAGE.
63         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
64         snippet/c++defs, snippet/warn-on-use.
65         (Makefile.am): Update generation of sys/resource.h. Substitute
66         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
67         * modules/getrusage: New file.
68         * doc/posix-functions/getrusage.texi: Mention the new module.
69
70 2012-04-12  Bruno Haible  <bruno@clisp.org>
71
72         Tests for module 'sys_resource'.
73         * modules/sys_resource-tests: New file.
74         * tests/test-sys_resource.c: New file.
75
76         New module 'sys_resource'.
77         * lib/sys_resource.in.h: New file.
78         * m4/sys_resource_h.m4: New file.
79         * modules/sys_resource: New file.
80         * doc/posix-headers/sys_resource.texi: Mention the new module.
81
82 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
83
84         ioctl: Fix compilation error on mingw.
85         * lib/ioctl.c: Include <windows.h>.
86         Also reported by Ray Satiro <raysatiro@yahoo.com>.
87
88 2012-04-04  Jim Meyering  <meyering@redhat.com>
89
90         regex: correct #pragma guard expression
91         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
92         not 4.3.  Correct its cpp guard expression.
93
94 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
95
96         regex: remove unnecessary type punning
97         Problem reported by Vladimir Serbinenko in
98         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
99         * lib/regex.h (struct re_pattern_buffer): Change the type of
100         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
101         Fix comment to match code.
102         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
103         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
104         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
105         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
106         (set_regs):
107         Omit no-longer-necessary casts.
108
109 2012-04-03  Bruno Haible  <bruno@clisp.org>
110
111         Tests for module 'ilogbl'.
112         * modules/ilogbl-tests: New file.
113         * tests/test-ilogbl.c: New file.
114
115         New module 'ilogbl'.
116         * lib/math.in.h (ilogbl): New declaration.
117         * lib/ilogbl.c: New file.
118         * m4/ilogbl.m4: New file.
119         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
121         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
122         Split sed invocation, to avoid the limit of 100 substitutions of
123         HP-UX 'sed'.
124         * modules/ilogbl: New file.
125         * tests/test-math-c++.cc: Check the declaration of ilogbl.
126         * doc/posix-functions/ilogbl.texi: Mention the new module.
127
128 2012-04-03  Bruno Haible  <bruno@clisp.org>
129
130         Tests for module 'ilogbf'.
131         * modules/ilogbf-tests: New file.
132         * tests/test-ilogbf.c: New file.
133
134         New module 'ilogbf'.
135         * lib/math.in.h (ilogbf): New declaration.
136         * lib/ilogbf.c: New file.
137         * m4/ilogbf.m4: New file.
138         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
140         REPLACE_ILOGBF.
141         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
142         REPLACE_ILOGBF.
143         * modules/ilogbf: New file.
144         * tests/test-math-c++.cc: Check the declaration of ilogbf.
145         * doc/posix-functions/ilogbf.texi: Mention the new module.
146
147 2012-04-03  Bruno Haible  <bruno@clisp.org>
148
149         Tests for module 'ilogb'.
150         * modules/ilogb-tests: New file.
151         * tests/test-ilogb.c: New file.
152         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
153         tests/test-logb-ieee.h.
154
155         New module 'ilogb'.
156         * lib/math.in.h (ilogb): New declaration.
157         * lib/ilogb.c: New file.
158         * m4/ilogb.m4: New file.
159         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
161         REPLACE_ILOGB.
162         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
163         REPLACE_ILOGB.
164         * modules/ilogb: New file.
165         * tests/test-math-c++.cc: Check the declaration of ilogb.
166         * doc/posix-functions/ilogb.texi: Mention the new module.
167
168 2012-04-03  Bruno Haible  <bruno@clisp.org>
169
170         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
171         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
172         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
173         (main): Check their values.
174         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
175         problem.
176
177 2012-04-03  Bruno Haible  <bruno@clisp.org>
178
179         Tests for module 'logbl-ieee'.
180         * modules/logbl-ieee-tests: New file.
181         * tests/test-logbl-ieee.c: New file.
182
183         New module 'logbl-ieee'.
184         * modules/logbl-ieee: New file.
185
186         Tests for module 'logb-ieee'.
187         * modules/logb-ieee-tests: New file.
188         * tests/test-logb-ieee.c: New file.
189
190         New module 'logb-ieee'.
191         * modules/logb-ieee: New file.
192
193         Tests for module 'logbf-ieee'.
194         * modules/logbf-ieee-tests: New file.
195         * tests/test-logbf-ieee.c: New file.
196         * tests/test-logb-ieee.h: New file.
197
198         New module 'logbf-ieee'.
199         * modules/logbf-ieee: New file.
200
201 2012-04-03  Bruno Haible  <bruno@clisp.org>
202
203         Tests for module 'logbl'.
204         * modules/logbl-tests: New file.
205         * tests/test-logbl.c: New file.
206
207         New module 'logbl'.
208         * lib/math.in.h (logbl): New declaration.
209         * lib/logbl.c: New file.
210         * m4/logbl.m4: New file.
211         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
213         REPLACE_LOGBL.
214         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
215         REPLACE_LOGBL.
216         * modules/logbl: New file.
217         * tests/test-math-c++.cc: Check the declaration of logbl.
218         * doc/posix-functions/logbl.texi: Mention the new module.
219
220 2012-04-02  Bruno Haible  <bruno@clisp.org>
221
222         Tests for module 'logbf'.
223         * modules/logbf-tests: New file.
224         * tests/test-logbf.c: New file.
225
226         New module 'logbf'.
227         * lib/math.in.h (logbf): New declaration.
228         * lib/logbf.c: New file.
229         * m4/logbf.m4: New file.
230         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
232         REPLACE_LOGBF.
233         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
234         REPLACE_LOGBF.
235         * modules/logbf: New file.
236         * tests/test-math-c++.cc: Check the declaration of logbf.
237         * doc/posix-functions/logbf.texi: Mention the new module.
238
239 2012-04-02  Bruno Haible  <bruno@clisp.org>
240
241         logb tests: More tests.
242         * tests/test-logb.h: New file, based on tests/test-logb.c and
243         tests/test-frexp.h.
244         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
245         (main): Just invoke test_function.
246         * modules/logb-tests (Files): Add tests/test-logb.h,
247         tests/minus-zero.h, tests/randomd.c.
248         (Makefile.am): Add randomd.c to test_logb_SOURCES.
249
250         logb: Provide replacement and workarounds.
251         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
252         is 1.
253         * lib/logb.c: New file.
254         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
255         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
257         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
258         * modules/logb (Files): Add lib/logb.c.
259         (Depends-on): Add isfinite, frexp, isnand.
260         (configure.ac): Compile the replacement code logb.c if needed.
261         * tests/test-math-c++.cc: Check the declaration of logb.
262         * doc/posix-functions/logb.texi: Mention the replacement and the bug
263         with subnormal numbers.
264
265 2012-04-02  Bruno Haible  <bruno@clisp.org>
266
267         log10* tests: Speed up.
268         * tests/test-log10.h (test_function): Reduce amount of random numbers
269         to test.
270
271 2012-04-01  Bruno Haible  <bruno@clisp.org>
272
273         logf-ieee: Fix test whether logf works.
274         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
275
276 2012-04-01  Bruno Haible  <bruno@clisp.org>
277
278         log10l: Work around log10l-ieee test failure on IRIX 6.5.
279         * lib/log10l.c: Include <float.h>
280         (log10l): On IRIX, normalize the +Infinity value.
281         * modules/log10l (Depends-on): Add 'float'.
282         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
283         +Infinity.
284
285         log10f-ieee: Work around test failure on NetBSD 5.1.
286         * m4/log10f-ieee.m4: New file.
287         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
288         test whether log10f works with a negative argument. Replace it if not.
289         * lib/log10f.c (log10f): For negative arguments, return NaN.
290         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
291         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
292         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
293
294         log10f-ieee: Work around test failure on Solaris 9.
295         * modules/log10f-ieee (Depends-on): Add log10-ieee.
296         (configure.ac): Require gl_FUNC_LOG10F.
297
298         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
299         * m4/log10-ieee.m4: New file.
300         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
301         whether log10 works with a negative argument. Replace it if not.
302         * lib/log10.c (log10): For negative arguments, return NaN.
303         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
304         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
305         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
306
307         Tests for module 'log10l-ieee'.
308         * modules/log10l-ieee-tests: New file.
309         * tests/test-log10l-ieee.c: New file.
310
311         New module 'log10l-ieee'.
312         * modules/log10l-ieee: New file.
313
314         Tests for module 'log10-ieee'.
315         * modules/log10-ieee-tests: New file.
316         * tests/test-log10-ieee.c: New file.
317
318         New module 'log10-ieee'.
319         * modules/log10-ieee: New file.
320
321         Tests for module 'log10f-ieee'.
322         * modules/log10f-ieee-tests: New file.
323         * tests/test-log10f-ieee.c: New file.
324         * tests/test-log10-ieee.h: New file.
325
326         New module 'log10f-ieee'.
327         * modules/log10f-ieee: New file.
328
329 2012-04-01  Bruno Haible  <bruno@clisp.org>
330
331         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
332         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
333         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
334         workaround.
335         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
336         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
338         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
339         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
340         (Depends-on): Update conditions.
341         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
342         IRIX 6.5, OSF/1 5.1 problems.
343
344 2012-04-01  Bruno Haible  <bruno@clisp.org>
345
346         log10f: Work around OSF/1 5.1 bug.
347         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
348         * lib/log10f.c (log10f): If logf exists, use it and provide just the
349         workaround.
350         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
351         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
353         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
354         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
355         (Depends-on): Update conditions.
356         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
357
358 2012-04-01  Bruno Haible  <bruno@clisp.org>
359
360         log10: Work around OSF/1 5.1 bug.
361         * lib/math.in.h (log10): New declaration.
362         * lib/log10.c: New file.
363         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
364         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
365         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
367         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
368         * modules/log10 (Files): Add lib/log10.c.
369         (Depends-on): Add math.
370         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
371         * tests/test-math-c++.cc: Check the declaration of log10.
372         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
373
374 2012-03-31  Bruno Haible  <bruno@clisp.org>
375
376         log10l tests: More tests.
377         * modules/log10l-tests (Files): Add tests/test-log10l.h,
378         tests/minus-zero.h, tests/randoml.c.
379         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
380         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
381         (main): Invoke test_function.
382
383         log10f tests: More tests.
384         * modules/log10f-tests (Files): Add tests/test-log10.h,
385         tests/minus-zero.h, tests/randomf.c.
386         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
387         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
388         (main): Invoke test_function.
389
390         log10 tests: More tests.
391         * tests/test-log10.h: New file.
392         * modules/log10-tests (Files): Add tests/test-log10.h,
393         tests/minus-zero.h, tests/randomd.c.
394         (Makefile.am): Add randomd.c to test_log10_SOURCES.
395         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
396         (main): Invoke test_function.
397
398 2012-03-31  Simon Josefsson  <simon@josefsson.org>
399
400         fflush: Fix syntax error.
401         * lib/fflush.c: Include unused-parameter.h, needed for
402         _GL_UNUSED_PARAMETER.
403         * modules/fflush (Depends-on): Add snippet/unused-parameter.
404
405 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
406
407         regex: pacify GCC when compiling GRUB
408         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
409         a diagnostic.  Reported by Vladimir Serbinenko in
410         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
411
412 2012-03-29  Eric Blake  <eblake@redhat.com>
413
414         stdio: don't assume gets any more
415         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
416         support.
417         * modules/stdio (Makefile.am): Likewise.
418         * lib/stdio-read.c (gets): Likewise.
419         * tests/test-stdio-c++.cc: Likewise.
420         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
421         * lib/stdio.in.h (gets): Make warning occur in more places.
422         * doc/posix-functions/gets.texi (gets): Update documentation.
423         Reported by Christer Solskogen.
424
425         maint.mk: fix syntax checks without exclusions
426         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
427         Reported by Daniel P. Berrange.
428
429         strerror_r: avoid compiler warning
430         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
431         level.
432
433         fflush: avoid compiler warning
434         * lib/fflush.c (update_fpos_cache): Mark variables that are
435         potentially unused.
436
437 2012-03-25  Bruno Haible  <bruno@clisp.org>
438
439         Tests for module 'localeconv'.
440         * modules/localeconv-tests: New file.
441         * tests/test-localeconv.c: New file.
442
443         New module 'localeconv'.
444         * lib/locale.in.h (localeconv): New declaration.
445         * lib/localeconv.c: New file.
446         * m4/localeconv.m4: New file.
447         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
448         REPLACE_LOCALECONV.
449         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
450         REPLACE_LOCALECONV.
451         * modules/localeconv: New file.
452         * modules/nl_langinfo (Depends-on): Add localeconv.
453         * modules/human (Depends-on): Likewise.
454         * doc/posix-functions/localeconv.texi: Mention the new module.
455
456 2012-03-25  Bruno Haible  <bruno@clisp.org>
457
458         locale: Provide a complete 'struct lconv'.
459         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
460         'struct lconv' does not contain int_p_cs_precedes.
461         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
462         * doc/posix-headers/locale.texi: Update.
463
464         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
465         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
466         * doc/posix-headers/locale.texi: Update.
467
468         locale: Provide a working 'struct lconv'.
469         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
470         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
471         'struct lconv' does not even contain decimal_point.
472         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
473         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
474         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
475         * doc/posix-headers/locale.texi: Mention the problems with
476         'struct lconv'.
477         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
478
479 2012-03-24  Bruno Haible  <bruno@clisp.org>
480
481         Enable common subexpression optimization in GCC.
482         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
483         macros.
484         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
485         GCC attribute 'const'.
486         (uc_locale_language): Declare with GCC attribute 'pure'.
487         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
488         with GCC attribute 'const'.
489         * lib/unictype.in.h (uc_is_general_category_withtable,
490         uc_combining_class, uc_combining_class_name,
491         uc_combining_class_long_name, uc_bidi_class_name,
492         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
493         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
494         uc_decimal_value, uc_digit_value, uc_numeric_value,
495         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
496         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
497         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
498         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
499         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
500         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
501         Declare with GCC attribute 'const'.
502         (uc_general_category_name, uc_general_category_long_name,
503         uc_general_category_byname, uc_general_category,
504         uc_is_general_category, uc_combining_class_byname,
505         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
506         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
507         Declare with GCC attribute 'pure'.
508         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
509         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
510         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
511         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
512         with GCC attribute 'pure'.
513         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
514         'const'.
515         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
516         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
517         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
518         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
519         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
520         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
521         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
522         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
523         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
524         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
525         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
526         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
527         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
528         GCC attribute 'pure'.
529         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
530         'const'.
531         * lib/uniwidth.in.h (uc_width): Simplify declaration.
532         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
533         u32_strwidth): Declare with GCC attribute 'pure'.
534
535         Enable common subexpression optimization in GCC.
536         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
537         (alphasort): Declare with GCC attribute 'pure'.
538         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
539         (atoll): Declare with GCC attribute 'pure'.
540         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
541         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
542         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
543         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
544         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
545         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
546         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
547
548 2012-03-24  Bruno Haible  <bruno@clisp.org>
549
550         gnulib-tool: Avoid unintended error output from 'cmp'.
551         * gnulib-tool (func_add_file, func_update_file, func_import): Use
552         "cmp -s", not "cmp > /dev/null".
553
554 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
555
556         gnulib-tool: fix imprecise comments w.r.t. an automake bug
557
558         It's not just Automake versions < 1.9b that creates an empty
559         pkgdatadir at installation time if pkgdata_DATA is specified
560         to empty; modern automake versions do this as well, at least
561         until automake 1.11.4 (not yet released at the moment of writing,
562         but soon to appear).  That behaviour was generally considered a
563         feature rather than a bug, at least until this discussion:
564         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
565
566         See also automake bugs #10997 and #11030.
567
568         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
569         reference to relevant automake bug numbers.
570         (func_emit_tests_Makefile_am): Likewise.
571
572 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
573
574         announce-gen: use Digest::SHA when possible
575         * build-aux/announce-gen: Use Digest::SHA when possible, falling
576         back to Digest::SHA1 if necessary.
577
578 2012-03-20  Jim Meyering  <meyering@redhat.com>
579
580         tests: avoid gcc warnings about argv vs. const initializers
581         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
582         warnings about discarding 'const' qualifier from pointer target type.
583         * tests/test-posix_spawn2.c (main): Likewise.
584
585 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
586
587         README-release: simplify slightly
588         * top/README-release: Run "git checkout master" only once.
589
590 2012-03-15  Mark Wielaard  <mark@klomp.org>
591
592         git-merge-changelog: add specific example on how to use with hg.
593         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
594
595 2012-03-18  Mark Wielaard  <mark@klomp.org>
596
597         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
598
599 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
600
601         git-version-gen: don't let "prefix" envvar cause trouble
602         * build-aux/git-version-gen (prefix): Initialize properly,
603         so as not to use a value specified via the environment.
604         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
605
606 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
607
608         regex: diagnose too-large repeat counts in EREs
609         Previously, the code did not diagnose the too-large repeat count
610         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
611         as if it were 'b\{1000000000}', which is unexpected.
612         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
613         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
614         is a reasonable one for this problem.  Another option would be to
615         create a new REG_OVERFLOW error for repeat counts that are too large.
616         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
617         count is too large, so that the caller can distinguish the two cases.
618         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
619         "Too large" return code, and that repeat counts are one example of this.
620
621 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
622
623         doc: some glibc x32 integer width issues
624         * doc/posix-headers/sys_types.texi (sys/types.h):
625         * doc/posix-headers/time.texi (time.h):
626         Mention that glibc x32 does not conform to POSIX in a couple of
627         areas related to integer widths.
628
629 2012-03-15  Bruno Haible  <bruno@clisp.org>
630
631         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
632         * lib/fma.c (VOLATILE): New macro.
633         (FUNC): Use it to work around a GCC compiler bug.
634
635 2012-03-13  Bruno Haible  <bruno@clisp.org>
636
637         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
638         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
639         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
640         REPLACE_HYPOTL to 1.
641         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
642
643 2012-03-13  Bruno Haible  <bruno@clisp.org>
644
645         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
646         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
647         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
648         REPLACE_REMAINDERL to 1.
649         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
650         bug.
651
652 2012-03-13  Bruno Haible  <bruno@clisp.org>
653
654         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
655         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
656         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
657         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
658         too big rounding errors.
659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
660         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
661         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
662         (Depends-on): Update conditions.
663         * tests/test-sqrtl.c (my_ldexpl): New function.
664         (main): Add test of a particular value.
665         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
666
667 2012-03-13  Pádraig Brady  <P@draigBrady.com>
668
669         doc: Update timer_* platform portability notes.
670         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
671         that always return ENOSYS.
672         * doc/posix-functions/timer_delete.texi: Likewise.
673         * doc/posix-functions/timer_gettime.texi: Likewise.
674         * doc/posix-functions/timer_settime.texi: Likewise.
675
676 2012-03-13  Bruno Haible  <bruno@clisp.org>
677
678         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
679         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
680         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
681         REPLACE_CBRTL to 1.
682         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
683
684 2012-03-13  Bruno Haible  <bruno@clisp.org>
685
686         remainderl: Avoid compilation error on AIX >= 5.2.
687         * lib/math.in.h (remainderl): Undefine macro from the system header.
688
689 2012-03-13  Bruno Haible  <bruno@clisp.org>
690
691         Avoid compilation errors with MSVC option -fp:strict.
692         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
693         * lib/cbrtf.c: Likewise.
694         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
695
696 2012-03-12  Bruno Haible  <bruno@clisp.org>
697
698         uninorm: Don't crash in out-of-memory conditions.
699         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
700         gracefully.
701         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
702         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
703
704 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
705
706         quote: fix syntax-check
707         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
708         also exports quote_quoting_options.
709
710 2012-03-12  Simon Josefsson  <simon@josefsson.org>
711
712         Collapse list of copyright years to ranges.  See
713         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
714         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
715         build-aux/csharpexec.sh.in, build-aux/gnupload,
716         build-aux/install-reloc, build-aux/javacomp.sh.in,
717         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
718         build-aux/move-if-change, build-aux/reloc-ldflags,
719         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
720
721 2012-03-11  Bruno Haible  <bruno@clisp.org>
722
723         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
724         * m4/log2f-ieee.m4: New file.
725         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
726         whether log2f works with a minus zero argument. Replace it if not.
727         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
728         (Depends-on): Add log2-ieee.
729         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
730         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
731
732         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
733         * m4/log2-ieee.m4: New file.
734         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
735         whether log2 works with a minus zero argument. Replace it if not.
736         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
737         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
738         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
739
740         Tests for module 'log2l-ieee'.
741         * modules/log2l-ieee-tests: New file.
742         * tests/test-log2l-ieee.c: New file.
743
744         New module 'log2l-ieee'.
745         * modules/log2l-ieee: New file.
746
747         Tests for module 'log2-ieee'.
748         * modules/log2-ieee-tests: New file.
749         * tests/test-log2-ieee.c: New file.
750
751         New module 'log2-ieee'.
752         * modules/log2-ieee: New file.
753
754         Tests for module 'log2f-ieee'.
755         * modules/log2f-ieee-tests: New file.
756         * tests/test-log2f-ieee.c: New file.
757         * tests/test-log2-ieee.h: New file.
758
759         New module 'log2f-ieee'.
760         * modules/log2f-ieee: New file.
761
762 2012-03-11  Bruno Haible  <bruno@clisp.org>
763
764         Tests for module 'log2l'.
765         * modules/log2l-tests: New file.
766         * tests/test-log2l.c: New file.
767
768         New module 'log2l'.
769         * lib/math.in.h (log2l): New declaration.
770         * lib/log2l.c: New file.
771         * m4/log2l.m4: New file.
772         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
774         REPLACE_LOG2L.
775         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
776         REPLACE_LOG2L.
777         * modules/log2l: New file.
778         * tests/test-math-c++.cc: Check the declaration of log2l.
779         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
780         and OSF/1 problems.
781
782 2012-03-11  Bruno Haible  <bruno@clisp.org>
783
784         Tests for module 'log2f'.
785         * modules/log2f-tests: New file.
786         * tests/test-log2f.c: New file.
787
788         New module 'log2f'.
789         * lib/math.in.h (log2f): New declaration.
790         * lib/log2f.c: New file.
791         * m4/log2f.m4: New file.
792         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
794         REPLACE_LOG2F.
795         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
796         REPLACE_LOG2F.
797         * modules/log2f: New file.
798         * tests/test-math-c++.cc: Check the declaration of log2f.
799         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
800         and OSF/1 and Cygwin problems.
801
802 2012-03-11  Bruno Haible  <bruno@clisp.org>
803
804         Tests for module 'log2'.
805         * modules/log2-tests: New file.
806         * tests/test-log2.c: New file.
807         * tests/test-log2.h: New file.
808
809         New module 'log2'.
810         * lib/math.in.h (log2): New declaration.
811         * lib/log2.c: New file.
812         * m4/log2.m4: New file.
813         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
815         REPLACE_LOG2.
816         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
817         REPLACE_LOG2.
818         * modules/log2: New file.
819         * tests/test-math-c++.cc: Check the declaration of log2.
820         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
821         and OSF/1 and Cygwin problems.
822
823 2012-03-11  Bruno Haible  <bruno@clisp.org>
824
825         exp2* tests: More tests.
826         * tests/test-exp2.h (test_function): Test all integral arguments that
827         don't need to overflow or denormalized numbers.
828         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
829         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
830         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
831
832 2012-03-10  Bruno Haible  <bruno@clisp.org>
833
834         log1pl-ieee: Work around test failure on AIX 7.1.
835         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
836
837         log1pl-ieee: Work around test failure on IRIX 6.5.
838         * m4/log1pl-ieee.m4: New file.
839         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
840         test whether log1pl works with a minus zero argument. Replace it if
841         not.
842         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
844         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
845         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
846         (Depends-on): Update conditions.
847         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
848         m4/signbit.m4.
849         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
850         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
851
852         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
853         * m4/log1pf-ieee.m4: New file.
854         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
855         test whether log1pf works with a minus zero argument. Replace it if
856         not.
857         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
858         m4/signbit.m4.
859         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
860         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
861
862         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
863         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
864         (configure.ac): Require gl_FUNC_LOG1PF.
865
866         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
867         * m4/log1p-ieee.m4: New file.
868         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
869         whether log1p works with a minus zero argument. Replace it if not.
870         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
872         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
873         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
874         (Depends-on): Update conditions.
875         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
876         m4/signbit.m4.
877         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
878         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
879
880         Tests for module 'log1pl-ieee'.
881         * modules/log1pl-ieee-tests: New file.
882         * tests/test-log1pl-ieee.c: New file.
883
884         New module 'log1pl-ieee'.
885         * modules/log1pl-ieee: New file.
886
887         Tests for module 'log1p-ieee'.
888         * modules/log1p-ieee-tests: New file.
889         * tests/test-log1p-ieee.c: New file.
890
891         New module 'log1p-ieee'.
892         * modules/log1p-ieee: New file.
893
894         Tests for module 'log1pf-ieee'.
895         * modules/log1pf-ieee-tests: New file.
896         * tests/test-log1pf-ieee.c: New file.
897         * tests/test-log1p-ieee.h: New file.
898
899         New module 'log1pf-ieee'.
900         * modules/log1pf-ieee: New file.
901
902 2012-03-10  Bruno Haible  <bruno@clisp.org>
903
904         Tests for module 'log1pl'.
905         * modules/log1pl-tests: New file.
906         * tests/test-log1pl.c: New file.
907
908         New module 'log1pl'.
909         * lib/math.in.h (log1pl): New declaration.
910         * lib/log1pl.c: New file.
911         * m4/log1pl.m4: New file.
912         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
914         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
915         * modules/log1pl: New file.
916         * tests/test-math-c++.cc: Check the declaration of log1pl.
917         * doc/posix-functions/log1pl.texi: Mention the new module.
918
919 2012-03-10  Bruno Haible  <bruno@clisp.org>
920
921         Tests for module 'log1pf'.
922         * modules/log1pf-tests: New file.
923         * tests/test-log1pf.c: New file.
924
925         New module 'log1pf'.
926         * lib/math.in.h (log1pf): New declaration.
927         * lib/log1pf.c: New file.
928         * m4/log1pf.m4: New file.
929         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
931         REPLACE_LOG1PF.
932         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
933         REPLACE_LOG1PF.
934         * modules/log1pf: New file.
935         * tests/test-math-c++.cc: Check the declaration of log1pf.
936         * doc/posix-functions/log1pf.texi: Mention the new module.
937
938 2012-03-10  Bruno Haible  <bruno@clisp.org>
939
940         log1p tests: More tests.
941         * tests/test-log1p.h: New file.
942         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
943         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
944         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
945         (main): Invoke test_function.
946
947         log1p: Provide replacement for Minix and MSVC.
948         * lib/math.in.h (log1p): New declaration.
949         * lib/log1p.c: New file.
950         * m4/log1p.m4: New file.
951         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
953         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
954         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
955         (Depends-on): Add math, isnand, log, round.
956         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
957         HAVE_LOG1P is 0.
958         * tests/test-math-c++.cc: Check the declaration of log1p.
959         * doc/posix-functions/log1p.texi: Mention the replacement.
960
961 2012-03-10  Bruno Haible  <bruno@clisp.org>
962
963         math tests: Small simplification.
964         * tests/test-exp.h (test_function): Use the same err_bound for
965         'double' on platforms with sizeof (long double) == sizeof (double)
966         than on platforms with sizeof (long double) > sizeof (double).
967         * tests/test-exp2.h (test_function): Likewise.
968         * tests/test-expm1.h (test_function): Likewise.
969         * tests/test-log.h (test_function): Likewise.
970
971 2012-03-10  Bruno Haible  <bruno@clisp.org>
972
973         Fix some comments.
974         * lib/expl.c: Fix an ambiguous comment.
975         * lib/expm1.c: Likewise.
976         * lib/expm1l.c: Likewise.
977         * lib/exp2.c: Likewise.
978         * lib/exp2l.c: Likewise.
979
980 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
981
982         regex: allow inclusion of <regex.h> before <limits.h>
983         Without this patch, portable programs had to include <limits.h> before
984         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
985         I ran into this problem with a test version of GNU grep on Solaris 8.
986         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
987         This is done conditionally so that this change can be merged
988         back to glibc.
989         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
990         using the included regex.
991
992         fts: depend on fdopendir
993         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
994         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
995         problem was introduced when fdopendir was split out.
996
997 2012-03-10  Bruno Haible  <bruno@clisp.org>
998
999         Remove unused variables.
1000         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1001         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1002
1003 2012-03-10  Bruno Haible  <bruno@clisp.org>
1004
1005         isnanf-nolibm: Fix last commit.
1006         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1007
1008         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1009         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1010
1011 2012-03-10  Bruno Haible  <bruno@clisp.org>
1012
1013         logf-ieee: Work around test failure on NetBSD 5.1.
1014         * m4/logf-ieee.m4: New file.
1015         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1016         whether logf works with a negative argument. Replace it if not.
1017         * lib/logf.c (logf): For negative arguments, return NaN.
1018         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1019         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1020         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1021
1022         logf-ieee: Work around test failure on Solaris 9.
1023         * modules/logf-ieee (Depends-on): Add log-ieee.
1024         (configure.ac): Require gl_FUNC_LOGF.
1025
1026         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1027         * m4/log-ieee.m4: New file.
1028         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1029         log works with a negative argument. Replace it if not.
1030         * lib/log.c (log): For negative arguments, return NaN.
1031         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1032         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1033         * doc/posix-functions/log.texi: Mention the log-ieee module.
1034
1035         Tests for module 'logl-ieee'.
1036         * modules/logl-ieee-tests: New file.
1037         * tests/test-logl-ieee.c: New file.
1038
1039         New module 'logl-ieee'.
1040         * modules/logl-ieee: New file.
1041
1042         Tests for module 'log-ieee'.
1043         * modules/log-ieee-tests: New file.
1044         * tests/test-log-ieee.c: New file.
1045
1046         New module 'log-ieee'.
1047         * modules/log-ieee: New file.
1048
1049         Tests for module 'logf-ieee'.
1050         * modules/logf-ieee-tests: New file.
1051         * tests/test-logf-ieee.c: New file.
1052         * tests/test-log-ieee.h: New file.
1053
1054         New module 'logf-ieee'.
1055         * modules/logf-ieee: New file.
1056
1057 2012-03-10  Bruno Haible  <bruno@clisp.org>
1058
1059         log: Fix bug introduced on 2012-03-09.
1060         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1061
1062 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1063
1064         timer-time: link explicitly with pthreads on glibc
1065         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1066         to support static linking, when newer glibc is
1067         detected, as that contains pthread emulation of
1068         POSIX timer functions where required.
1069         * modules/timer-time: Depend on threadlib to
1070         pull in the appropriate library to link.
1071
1072 2012-03-10  Bruno Haible  <bruno@clisp.org>
1073
1074         log* tests: More tests.
1075         * tests/test-log.h: New file.
1076         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1077         (main): Invoke test_function.
1078         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1079         (main): Invoke test_function.
1080         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1081         (main): Invoke test_function.
1082         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1083         tests/randomd.c.
1084         (Makefile.am): Add randomd.c to test_log_SOURCES.
1085         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1086         tests/randomf.c.
1087         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1088         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1089         tests/randoml.c.
1090         (Depends-on): Add 'float'.
1091         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1092
1093 2012-03-09  Bruno Haible  <bruno@clisp.org>
1094
1095         logl: Work around OSF/1 5.1 bug.
1096         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1097         * lib/logl.c (logl): If logl exists, use it and provide just the
1098         workaround.
1099         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1100         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1102         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1103         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1104         (Depends-on): Update conditions.
1105         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1106
1107 2012-03-09  Bruno Haible  <bruno@clisp.org>
1108
1109         logf: Work around OSF/1 5.1 bug.
1110         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1111         * lib/logf.c (logf): If logf exists, use it and provide just the
1112         workaround.
1113         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1114         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1116         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1117         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1118         (Depends-on): Update conditions.
1119         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1120
1121 2012-03-09  Bruno Haible  <bruno@clisp.org>
1122
1123         log: Work around OSF/1 5.1 bug.
1124         * lib/math.in.h (log): New declaration.
1125         * lib/log.c: New file.
1126         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1127         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1128         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1130         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1131         * modules/log (Files): Add lib/log.c.
1132         (Depends-on): Add math.
1133         (configure.ac): If REPLACE_LOG is 1, compile an override.
1134         * tests/test-math-c++.cc: Check the declaration of log.
1135         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1136
1137 2012-03-09  Jim Meyering  <meyering@redhat.com>
1138
1139         readtokens.c: adjust wording in a comment
1140         * lib/readtokens.c: Insert omitted "that" in a comment.
1141
1142 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1143
1144         modechange: add notations +40, 00440, etc.
1145         * lib/modechange.c (mode_compile): Support new notations
1146         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1147
1148 2012-03-08  Bruno Haible  <bruno@clisp.org>
1149
1150         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1151         * m4/exp2l-ieee.m4: New file.
1152         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1153         test whether exp2l works with a NaN argument and with a negative
1154         infinity argument. Replace it if not.
1155         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1157         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1158         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1159         (Depends-on): Update conditions.
1160         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1161         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1162         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1163
1164         Tests for module 'exp2l-ieee'.
1165         * modules/exp2l-ieee-tests: New file.
1166         * tests/test-exp2l-ieee.c: New file.
1167
1168         New module 'exp2l-ieee'.
1169         * modules/exp2l-ieee: New file.
1170
1171         Tests for module 'exp2-ieee'.
1172         * modules/exp2-ieee-tests: New file.
1173         * tests/test-exp2-ieee.c: New file.
1174
1175         New module 'exp2-ieee'.
1176         * modules/exp2-ieee: New file.
1177
1178         Tests for module 'exp2f-ieee'.
1179         * modules/exp2f-ieee-tests: New file.
1180         * tests/test-exp2f-ieee.c: New file.
1181         * tests/test-exp2-ieee.h: New file.
1182
1183         New module 'exp2f-ieee'.
1184         * modules/exp2f-ieee: New file.
1185
1186 2012-03-08  Bruno Haible  <bruno@clisp.org>
1187
1188         Tests for module 'exp2l'.
1189         * modules/exp2l-tests: New file.
1190         * tests/test-exp2l.c: New file.
1191
1192         New module 'exp2l'.
1193         * lib/math.in.h (exp2l): New declaration.
1194         * lib/exp2l.c: New file.
1195         * lib/expl-table.c: New file, extracted from lib/expl.c.
1196         * lib/expl.c (gl_expl_table): New declaration.
1197         (expl): Remove expl_table. Update reference.
1198         * m4/exp2l.m4: New file.
1199         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1201         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1202         * modules/exp2l: New file.
1203         * modules/expl (Files): Add lib/expl-table.c.
1204         (configure.ac): Compile also expl-table.c.
1205         * tests/test-math-c++.cc: Check the declaration of exp2l.
1206         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1207         problem.
1208
1209 2012-03-08  Bruno Haible  <bruno@clisp.org>
1210
1211         Tests for module 'exp2f'.
1212         * modules/exp2f-tests: New file.
1213         * tests/test-exp2f.c: New file.
1214
1215         New module 'exp2f'.
1216         * lib/math.in.h (exp2f): New declaration.
1217         * lib/exp2f.c: New file.
1218         * m4/exp2f.m4: New file.
1219         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1221         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1222         * modules/exp2f: New file.
1223         * tests/test-math-c++.cc: Check the declaration of exp2f.
1224         * doc/posix-functions/exp2f.texi: Mention the new module and the
1225         IRIX problem.
1226
1227 2012-03-08  Bruno Haible  <bruno@clisp.org>
1228
1229         Tests for module 'exp2'.
1230         * modules/exp2-tests: New file.
1231         * tests/test-exp2.c: New file.
1232         * tests/test-exp2.h: New file.
1233
1234         New module 'exp2'.
1235         * lib/math.in.h (exp2): New declaration.
1236         * lib/exp2.c: New file.
1237         * m4/exp2.m4: New file.
1238         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1240         REPLACE_EXP2.
1241         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1242         REPLACE_EXP2.
1243         * modules/exp2: New file.
1244         * tests/test-math-c++.cc: Check the declaration of exp2.
1245         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1246         and OpenBSD problems.
1247
1248 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1249
1250         savedir: fix comment typo
1251         * lib/savedir.c (savedirstream): Fix typo in comment.
1252
1253 2012-03-08  Bruno Haible  <bruno@clisp.org>
1254
1255         test-readtokens.c: use const; remove unwarranted cast
1256         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1257
1258 2012-03-08  Bruno Haible  <bruno@clisp.org>
1259
1260         fmal: Avoid compilation error on AIX.
1261         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1262         AIX 5.2..7.1.
1263
1264 2012-03-08  Bruno Haible  <bruno@clisp.org>
1265
1266         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1267         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1268         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1269         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1270         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1271         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1272         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1273
1274 2012-03-08  Bruno Haible  <bruno@clisp.org>
1275
1276         remainderf: Override buggy system function on IRIX 6.5.
1277         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1278         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1279         when it exists.
1280         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1281
1282 2012-03-08  Jim Meyering  <meyering@redhat.com>
1283
1284         test-readtokens.c: avoid const-related compilation warnings
1285         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1286
1287 2012-03-07  Jim Meyering  <meyering@redhat.com>
1288             Bruno Haible  <bruno@clisp.org>
1289
1290         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1291         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1292         tests/randomd.c.
1293         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1294         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1295         tests/randoml.c.
1296         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1297
1298 2012-03-07  Bruno Haible  <bruno@clisp.org>
1299
1300         expm1l: Avoid compilation error on AIX.
1301         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1302         AIX 5.2..7.1.
1303
1304 2012-03-07  Bruno Haible  <bruno@clisp.org>
1305
1306         expm1l: Don't override undeclared system function on IRIX 6.5.
1307         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1308         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1309         it exists. Set HAVE_DECL_EXPM1L.
1310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1311         HAVE_EXPM1L.
1312         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1313         HAVE_EXPM1L.
1314         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1315
1316 2012-03-07  Bruno Haible  <bruno@clisp.org>
1317
1318         remainderl: Don't override undeclared system function on IRIX 6.5.
1319         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1320         HAVE_REMAINDERL.
1321         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1322         declared when it exists. Set HAVE_DECL_REMAINDERL.
1323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1324         not HAVE_REMAINDERL.
1325         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1326         HAVE_REMAINDERL.
1327         * doc/posix-functions/remainderl.texi: Mention missing declaration
1328         problem.
1329
1330 2012-03-07  Bruno Haible  <bruno@clisp.org>
1331
1332         rintf: Don't override undeclared system function on IRIX 6.5.
1333         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1334         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1335         exists. Set HAVE_DECL_RINTF.
1336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1337         HAVE_RINTF.
1338         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1339         HAVE_RINTF.
1340         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1341
1342 2012-03-07  Bruno Haible  <bruno@clisp.org>
1343
1344         roundl: Avoid compilation error on AIX.
1345         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1346         AIX 5.2..7.1.
1347
1348 2012-03-07  Bruno Haible  <bruno@clisp.org>
1349
1350         roundl: Don't override undeclared system function on IRIX 6.5.
1351         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1352         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1353         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1354         * modules/roundl (configure.ac): For replacement code, test
1355         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1356         (Depends-on): Update conditions.
1357         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1358
1359 2012-03-07  Bruno Haible  <bruno@clisp.org>
1360
1361         roundf: Don't override undeclared system function on IRIX 6.5.
1362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1363         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1364         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1365         * modules/roundf (configure.ac): For replacement code, test
1366         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1367         (Depends-on): Update conditions.
1368         * modules/roundf-ieee (Depends-on): Update conditions.
1369         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1370
1371 2012-03-07  Bruno Haible  <bruno@clisp.org>
1372
1373         round: Don't override undeclared system function on IRIX 6.5.
1374         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1375         argument.
1376         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1377         also when it is not declared. Set HAVE_ROUND. For replacement code,
1378         test HAVE_ROUND, not HAVE_DECL_ROUND.
1379         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1380         not HAVE_DECL_ROUND.
1381         (Depends-on): Update conditions.
1382         * modules/round-ieee (Depends-on): Update conditions.
1383         * doc/posix-functions/round.texi: Mention the IRIX problem.
1384
1385 2012-03-07  Bruno Haible  <bruno@clisp.org>
1386
1387         copysignf: Don't override undeclared system function on IRIX 6.5.
1388         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1389         HAVE_COPYSIGNF.
1390         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1391         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1393         not HAVE_COPYSIGNF.
1394         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1395         HAVE_COPYSIGNF.
1396         * doc/posix-functions/copysignf.texi: Mention missing declaration
1397         problem.
1398
1399 2012-03-07  Jim Meyering  <meyering@redhat.com>
1400
1401         readtokens: add tests
1402         * modules/readtokens-tests: New file.
1403         * tests/test-readtokens.c: New file.
1404
1405 2012-03-07  Jim Meyering  <meyering@redhat.com>
1406
1407         quotearg: the module must now include quote.h
1408         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1409         So must the module.
1410         * modules/quotearg (Files): Add quote.h.
1411
1412 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1413
1414         readtokens: avoid core dumps with unusual calling patterns
1415         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1416         * lib/readtokens.c: Include limits.h.
1417         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1418         (readtoken): Don't cache the delimiters; the cache code was buggy
1419         if !delim && saved_delim, or if the new n_delim differs from the old.
1420         Also, it wasn't thread-safe.
1421
1422 2012-03-07  Bruno Haible  <bruno@clisp.org>
1423
1424         quote: Adhere to common module description layout.
1425         * modules/quote (Makefile.am): Add back empty section.
1426
1427 2012-03-06  Akim Demaille  <demaille@gostai.com>
1428
1429         quote: fuse into quotearg
1430         This patch is made for the benefit of Bison.
1431         quote does not leave the choice of the quoting style to the user.
1432         quoting_style provides poor customizability, yet quoting_options,
1433         which is very rich, is hidden inside quotearg.c.  So in order to
1434         allow quote customization, move its implementation to quotearg.c.
1435         * lib/quote.c: Remove.
1436         * modules/quote: Adjust.
1437         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1438         warning: provide all the members of literal structs.
1439         (quote_quoting_options): New.
1440         (quote, quote_n): Import implementation from quote.c.
1441         * lib/quote.h: Import the comments from quote.c.
1442         (quote_quoting_options): New.
1443
1444 2012-03-06  Bruno Haible  <bruno@clisp.org>
1445
1446         Tests for module 'expm1l-ieee'.
1447         * modules/expm1l-ieee-tests: New file.
1448         * tests/test-expm1l-ieee.c: New file.
1449
1450         New module 'expm1l-ieee'.
1451         * modules/expm1l-ieee: New file.
1452
1453         Tests for module 'expm1f-ieee'.
1454         * modules/expm1f-ieee-tests: New file.
1455         * tests/test-expm1f-ieee.c: New file.
1456
1457         New module 'expm1f-ieee'.
1458         * modules/expm1f-ieee: New file.
1459
1460         Tests for module 'expm1-ieee'.
1461         * modules/expm1-ieee-tests: New file.
1462         * tests/test-expm1-ieee.c: New file.
1463         * tests/test-expm1-ieee.h: New file.
1464
1465         New module 'expm1-ieee'.
1466         * modules/expm1-ieee: New file.
1467         * m4/expm1-ieee.m4: New file.
1468         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1469         whether expm1 works with a minus zero argument. Replace it if not.
1470         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1472         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1473         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1474         (Depends-on): Update conditions.
1475         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1476         AIX problem.
1477
1478 2012-03-06  Bruno Haible  <bruno@clisp.org>
1479
1480         Work around expm1f bug on IRIX 6.5.
1481         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1482         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1483         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1484         not work.
1485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1486         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1487         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1488         (Depends-on): Update conditions.
1489         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1490
1491 2012-03-06  Bruno Haible  <bruno@clisp.org>
1492
1493         Tests for module 'expm1l'.
1494         * modules/expm1l-tests: New file.
1495         * tests/test-expm1l.c: New file.
1496
1497         New module 'expm1l'.
1498         * lib/math.in.h (expm1l): New declaration.
1499         * lib/expm1l.c: New file.
1500         * m4/expm1l.m4: New file.
1501         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1503         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1504         * modules/expm1l: New file.
1505         * tests/test-math-c++.cc: Check the declaration of expm1l.
1506         * doc/posix-functions/expm1l.texi: Mention the new module.
1507
1508 2012-03-06  Bruno Haible  <bruno@clisp.org>
1509
1510         Tests for module 'expm1f'.
1511         * modules/expm1f-tests: New file.
1512         * tests/test-expm1f.c: New file.
1513
1514         New module 'expm1f'.
1515         * lib/math.in.h (expm1f): New declaration.
1516         * lib/expm1f.c: New file.
1517         * m4/expm1f.m4: New file.
1518         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1520         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1521         * modules/expm1f: New file.
1522         * tests/test-math-c++.cc: Check the declaration of expm1f.
1523         * doc/posix-functions/expm1f.texi: Mention the new module.
1524
1525 2012-03-06  Bruno Haible  <bruno@clisp.org>
1526
1527         Tests for module 'expm1'.
1528         * modules/expm1-tests: New file.
1529         * tests/test-expm1.c: New file.
1530         * tests/test-expm1.h: New file.
1531
1532         New module 'expm1'.
1533         * lib/math.in.h (expm1): New declaration.
1534         * lib/expm1.c: New file.
1535         * m4/expm1.m4: New file.
1536         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1538         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1539         * modules/expm1: New file.
1540         * tests/test-math-c++.cc: Check the declaration of expm1.
1541         * doc/posix-functions/expm1.texi: Mention the new module.
1542
1543 2012-03-06  Bruno Haible  <bruno@clisp.org>
1544
1545         math: Ensure declarations of math functions.
1546         * modules/acosf (Depends-on): Add 'extensions'.
1547         * modules/asinf (Depends-on): Likewise.
1548         * modules/atan2f (Depends-on): Likewise.
1549         * modules/atanf (Depends-on): Likewise.
1550         * modules/cbrt (Depends-on): Likewise.
1551         * modules/cbrtf (Depends-on): Likewise.
1552         * modules/cbrtl (Depends-on): Likewise.
1553         * modules/copysignf (Depends-on): Likewise.
1554         * modules/copysignl (Depends-on): Likewise.
1555         * modules/cosf (Depends-on): Likewise.
1556         * modules/coshf (Depends-on): Likewise.
1557         * modules/expf (Depends-on): Likewise.
1558         * modules/fabsf (Depends-on): Likewise.
1559         * modules/fabsl (Depends-on): Likewise.
1560         * modules/fmaf (Depends-on): Likewise.
1561         * modules/fmal (Depends-on): Likewise.
1562         * modules/fmodf (Depends-on): Likewise.
1563         * modules/fmodl (Depends-on): Likewise.
1564         * modules/frexpf (Depends-on): Likewise.
1565         * modules/frexpl (Depends-on): Likewise.
1566         * modules/hypot (Depends-on): Likewise.
1567         * modules/hypotf (Depends-on): Likewise.
1568         * modules/hypotl (Depends-on): Likewise.
1569         * modules/ldexpf (Depends-on): Likewise.
1570         * modules/ldexpl (Depends-on): Likewise.
1571         * modules/log10f (Depends-on): Likewise.
1572         * modules/log10l (Depends-on): Likewise.
1573         * modules/log1p (Depends-on): Likewise.
1574         * modules/logb (Depends-on): Likewise.
1575         * modules/logf (Depends-on): Likewise.
1576         * modules/modff (Depends-on): Likewise.
1577         * modules/modfl (Depends-on): Likewise.
1578         * modules/powf (Depends-on): Likewise.
1579         * modules/remainderf (Depends-on): Likewise.
1580         * modules/remainderl (Depends-on): Likewise.
1581         * modules/rintf (Depends-on): Likewise.
1582         * modules/rintl (Depends-on): Likewise.
1583         * modules/sinf (Depends-on): Likewise.
1584         * modules/sinhf (Depends-on): Likewise.
1585         * modules/sqrtf (Depends-on): Likewise.
1586         * modules/tanf (Depends-on): Likewise.
1587         * modules/tanhf (Depends-on): Likewise.
1588         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1589         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1590         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1591         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1592         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1593         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1594         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1595         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1596         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1597         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1598         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1599         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1600         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1601         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1602         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1603         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1604         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1605         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1606         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1607         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1608         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1609         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1610         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1611         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1613         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1614         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1615         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1616         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1617         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1618         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1619         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1620         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1621         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1622         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1623         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1624         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1625         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1626         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1627         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1628         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1629
1630 2012-03-06  Bruno Haible  <bruno@clisp.org>
1631
1632         math: Update module names in warnings.
1633         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1634         tanl): Use specific module name in warn-on-use warning.
1635
1636 2012-03-06  Bruno Haible  <bruno@clisp.org>
1637
1638         expl: Simplify computation.
1639         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1640
1641 2012-03-05  Bruno Haible  <bruno@clisp.org>
1642
1643         exp* tests: More tests.
1644         * tests/test-exp.h: New file.
1645         * tests/test-exp.c: Include <float.h> and test-exp.h.
1646         (main): Invoke test_function.
1647         * tests/test-expf.c: Include <float.h> and test-exp.h.
1648         (main): Invoke test_function.
1649         * tests/test-expl.c: Include <float.h> and test-exp.h.
1650         (main): Invoke test_function.
1651         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1652         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1653         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1654         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1655         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1656         (Depends-on): Add 'float'.
1657         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1658
1659         expl: Fix precision of computed result.
1660         * lib/expl.c: Completely rewritten.
1661         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1662         (Maintainer): Add me.
1663         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1664
1665 2012-03-05  Bruno Haible  <bruno@clisp.org>
1666
1667         cbrt* tests: More tests.
1668         * tests/test-cbrt.h: New file.
1669         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1670         (main): Invoke test_function.
1671         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1672         (main): Invoke test_function.
1673         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1674         (main): Invoke test_function.
1675         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1676         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1677         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1678         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1679         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1680         (Depends-on): Add 'float'.
1681         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1682
1683 2012-03-05  Bruno Haible  <bruno@clisp.org>
1684
1685         hypot* tests: More tests.
1686         * tests/test-hypot.h: New file, partially extracted from
1687         tests/test-hypotl.c.
1688         * tests/test-hypot.c: Include test-hypot.h.
1689         (main): Invoke test_function.
1690         * tests/test-hypotf.c: Include test-hypot.h.
1691         (main): Invoke test_function.
1692         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1693         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1694         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1695         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1696         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1697         tests/randomf.c.
1698         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1699         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1700         tests/randoml.c.
1701         (Depends-on): Add 'fpucw', 'float'.
1702         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1703
1704 2012-03-05  Bruno Haible  <bruno@clisp.org>
1705
1706         fpucw: Doc about FreeBSD.
1707         * lib/fpucw.h: Mention FreeBSD in comments.
1708
1709 2012-03-04  Bruno Haible  <bruno@clisp.org>
1710
1711         sqrt* tests: More tests.
1712         * tests/test-sqrt.h: New file.
1713         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1714         (main): Invoke test_function.
1715         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1716         (main): Invoke test_function.
1717         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1718         (main): Invoke test_function.
1719         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1720         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1721         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1722         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1723         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1724         (Depends-on): Add 'float'.
1725         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1726
1727 2012-03-04  Bruno Haible  <bruno@clisp.org>
1728
1729         remainder* tests: More tests.
1730         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1731         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1732         (main): Invoke test_function.
1733         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1734         (main): Invoke test_function.
1735         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1736         (main): Invoke test_function.
1737         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1738         tests/randomd.c.
1739         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1740         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1741         tests/randomf.c.
1742         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1743         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1744         tests/randoml.c.
1745         (Depends-on): Add 'float'.
1746         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1747
1748 2012-03-04  Bruno Haible  <bruno@clisp.org>
1749
1750         remainder, remainderf, remainderl: Fix computation for large quotients.
1751         * lib/remainder.c: Completely rewritten.
1752         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1753         USE_FLOAT.
1754         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1755         USE_LONG_DOUBLE.
1756         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1757         isnand, isinf. Remove round, fma.
1758         * modules/remainderf (Files): Add lib/remainder.c.
1759         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1760         Remove roundf, fmaf.
1761         * modules/remainderl (Files): Add lib/remainder.c.
1762         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1763         isinf. Remove roundl, fmal.
1764         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1765         REMAINDER_LIBM.
1766         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1767         REMAINDERF_LIBM.
1768         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1769         REMAINDERL_LIBM.
1770
1771 2012-03-04  Bruno Haible  <bruno@clisp.org>
1772
1773         fmod* tests: More tests.
1774         * tests/test-fmod.h (my_ldexp): New function.
1775         (test_function): Reduce amount of random numbers to test. Add tests
1776         of very large quotients x / y.
1777         * tests/test-fmod.c (MAX_EXP): New macro.
1778         * tests/test-fmodf.c (MAX_EXP): Likewise.
1779         * tests/test-fmodl.c (MAX_EXP): Likewise.
1780
1781 2012-03-04  Bruno Haible  <bruno@clisp.org>
1782
1783         fmod, fmodl: Fix computation for large quotients x / y.
1784         * lib/fmod.c: Completely rewritten.
1785         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1786         USE_LONG_DOUBLE.
1787         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1788         isnand. Remove fma.
1789         * modules/fmodl (Files): Add lib/fmod.c.
1790         (Depends-on): Add float, isfinite, signbit, fabsl,
1791         frexpl, ldexpl, isnanl. Remove fma.
1792         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1793         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1794
1795 2012-03-03  Bruno Haible  <bruno@clisp.org>
1796
1797         fmod* tests: More tests.
1798         * tests/test-fmod.h: New file.
1799         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1800         (main): Invoke test_function.
1801         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1802         (main): Invoke test_function.
1803         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1804         (main): Invoke test_function.
1805         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1806         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1807         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1808         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1809         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1810         (Depends-on): Add 'float'.
1811         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1812
1813 2012-03-03  Bruno Haible  <bruno@clisp.org>
1814
1815         rint* tests: More tests.
1816         * tests/test-rint.h: New file, partially extracted from
1817         tests/test-rintl.c.
1818         * tests/test-rint.c: Include test-rint.h.
1819         (main): Invoke test_function.
1820         * tests/test-rintf.c: Include test-rint.h.
1821         (main): Invoke test_function.
1822         * tests/test-rintl.c: Include test-rint.h.
1823         (main): Invoke test_function.
1824         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1825         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1826         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1827         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1828         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1829         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1830
1831 2012-03-03  Bruno Haible  <bruno@clisp.org>
1832
1833         modf* tests: More tests.
1834         * tests/test-modf.h: New file.
1835         * tests/test-modf.c: Include <float.h> and test-modf.h.
1836         (main): Invoke test_function.
1837         * tests/test-modff.c: Include <float.h> and test-modf.h.
1838         (main): Invoke test_function.
1839         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1840         (main): Invoke test_function.
1841         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1842         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1843         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1844         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1845         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1846         (Depends-on): Add 'float'.
1847         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1848
1849 2012-03-03  Bruno Haible  <bruno@clisp.org>
1850
1851         fabs* tests: More tests.
1852         * tests/test-fabs.h: New file, partially extracted from
1853         tests/test-fabsl.c.
1854         * tests/test-fabs.c (RANDOM): New macro.
1855         * tests/test-fabsf.c (RANDOM): New macro.
1856         * tests/test-fabsl.c (RANDOM): New macro.
1857         * modules/fabs-tests (Files): Add tests/randomd.c.
1858         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1859         * modules/fabsf-tests (Files): Add tests/randomf.c.
1860         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1861         * modules/fabsl-tests (Files): Add tests/randoml.c.
1862         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1863
1864 2012-03-03  Bruno Haible  <bruno@clisp.org>
1865
1866         ldexp* tests: More tests.
1867         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1868         * tests/test-ldexp.c (RANDOM): New macro.
1869         * tests/test-ldexpf.c (RANDOM): New macro.
1870         * tests/test-ldexpl.c (RANDOM): New macro.
1871         * modules/ldexp-tests (Files): Add tests/randomd.c.
1872         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1873         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1874         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1875         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1876         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1877
1878 2012-03-03  Bruno Haible  <bruno@clisp.org>
1879
1880         frexp* tests: More tests.
1881         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1882         * tests/test-frexp.c (RANDOM): New macro.
1883         * tests/test-frexpf.c (RANDOM): New macro.
1884         * tests/test-frexpl.c (RANDOM): New macro.
1885         * modules/frexp-tests (Files): Add tests/randomd.c.
1886         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1887         * modules/frexpf-tests (Files): Add tests/randomf.c.
1888         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1889         * modules/frexpl-tests (Files): Add tests/randoml.c.
1890         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1891
1892 2012-03-03  Bruno Haible  <bruno@clisp.org>
1893
1894         Support for pseudo-random numbers in tests.
1895         * tests/randomf.c: New file.
1896         * tests/randomd.c: New file.
1897         * tests/randoml.c: New file.
1898         * tests/macros.h (randomf, randomd, randoml): New declarations.
1899
1900 2012-03-03  Bruno Haible  <bruno@clisp.org>
1901
1902         frexp* tests: Refactor.
1903         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1904         * tests/test-frexp.c: Include and use it.
1905         * tests/test-frexpf.c: Likewise.
1906         * tests/test-frexpl.c: Likewise.
1907         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1908         * modules/frexpf-tests (Files): Likewise.
1909         * modules/frexpl-tests (Files): Likewise.
1910
1911 2012-03-02  Jim Meyering  <meyering@redhat.com>
1912
1913         maint: don't specify XZ_OPT=-9ev in dist-related rule
1914         Using xz's -9 option is warranted only if you have a very large
1915         tarball (see xz's documentation for the sizes vs. presets), and
1916         requires 64MiB of memory at decompression time.
1917         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1918         Automake's default of just "-e" is fine.  Override on a
1919         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1920
1921 2012-03-01  Eric Blake  <eblake@redhat.com>
1922
1923         maint.mk: allow announcement for non-gnulib project
1924         * maint.mk (announcement): Skip gnulib version if not used.
1925
1926 2012-03-01  Jim Meyering  <meyering@redhat.com>
1927
1928         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1929         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1930         envvar settings cannot interfere.  Otherwise, setting envvars like
1931         prohibit=foo require=bar, etc. would cause spurious test failures.
1932
1933 2012-03-01  Eric Blake  <eblake@redhat.com>
1934
1935         maint.mk: add per-line exclusions to prohibitions
1936         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1937         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1938         (sc_const_long_option): Use it.
1939
1940 2012-03-01  Bruno Haible  <bruno@clisp.org>
1941
1942         Tests for module 'expl-ieee'.
1943         * modules/expl-ieee-tests: New file.
1944         * tests/test-expl-ieee.c: New file.
1945
1946         New module 'expl-ieee'.
1947         * modules/expl-ieee: New file.
1948
1949         Tests for module 'exp-ieee'.
1950         * modules/exp-ieee-tests: New file.
1951         * tests/test-exp-ieee.c: New file.
1952
1953         New module 'exp-ieee'.
1954         * modules/exp-ieee: New file.
1955
1956         Tests for module 'expf-ieee'.
1957         * modules/expf-ieee-tests: New file.
1958         * tests/test-expf-ieee.c: New file.
1959         * tests/test-exp-ieee.h: New file.
1960
1961         New module 'expf-ieee'.
1962         * modules/expf-ieee: New file.
1963
1964 2012-02-29  Bruno Haible  <bruno@clisp.org>
1965
1966         cbrtl-ieee: Work around test failure on IRIX 6.5.
1967         * m4/cbrtl-ieee.m4: New file.
1968         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1969         test whether cbrtl works with a minus zero argument. Replace it if not.
1970         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1972         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1973         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1974         (Depends-on): Update conditions.
1975         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1976         m4/signbit.m4.
1977         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1978         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1979         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1980
1981         Tests for module 'cbrtl-ieee'.
1982         * modules/cbrtl-ieee-tests: New file.
1983         * tests/test-cbrtl-ieee.c: New file.
1984
1985         New module 'cbrtl-ieee'.
1986         * modules/cbrtl-ieee: New file.
1987
1988         Tests for module 'cbrt-ieee'.
1989         * modules/cbrt-ieee-tests: New file.
1990         * tests/test-cbrt-ieee.c: New file.
1991
1992         New module 'cbrt-ieee'.
1993         * modules/cbrt-ieee: New file.
1994
1995         Tests for module 'cbrtf-ieee'.
1996         * modules/cbrtf-ieee-tests: New file.
1997         * tests/test-cbrtf-ieee.c: New file.
1998         * tests/test-cbrt-ieee.h: New file.
1999
2000         New module 'cbrtf-ieee'.
2001         * modules/cbrtf-ieee: New file.
2002
2003 2012-02-29  Bruno Haible  <bruno@clisp.org>
2004
2005         cbrtf: Work around bug in IRIX 6.5 system function.
2006         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2007         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2008         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2009         work.
2010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2011         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2012         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2013         (Depends-on): Update conditions.
2014         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2015
2016 2012-02-29  Bruno Haible  <bruno@clisp.org>
2017
2018         Tests for module 'cbrtl'.
2019         * modules/cbrtl-tests: New file.
2020         * tests/test-cbrtl.c: New file.
2021
2022         New module 'cbrtl'.
2023         * lib/math.in.h (cbrtl): New declaration.
2024         * lib/cbrtl.c: New file.
2025         * m4/cbrtl.m4: New file.
2026         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2028         HAVE_DECL_CBRTL.
2029         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2030         HAVE_DECL_CBRTL.
2031         * modules/cbrtl: New file.
2032         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2033         * doc/posix-functions/cbrtl.texi: Mention the new module.
2034
2035 2012-02-29  Bruno Haible  <bruno@clisp.org>
2036
2037         Tests for module 'cbrtf'.
2038         * modules/cbrtf-tests: New file.
2039         * tests/test-cbrtf.c: New file.
2040
2041         New module 'cbrtf'.
2042         * lib/math.in.h (cbrtf): New declaration.
2043         * lib/cbrtf.c: New file.
2044         * m4/cbrtf.m4: New file.
2045         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2047         HAVE_DECL_CBRTF.
2048         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2049         HAVE_DECL_CBRTF.
2050         * modules/cbrtf: New file.
2051         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2052         * doc/posix-functions/cbrtf.texi: Mention the new module.
2053
2054 2012-02-29  Bruno Haible  <bruno@clisp.org>
2055
2056         cbrt: Provide replacement on MSVC and Minix.
2057         * lib/math.in.h (cbrt): New declaration.
2058         * lib/cbrt.c: New file.
2059         * m4/cbrt.m4: New file.
2060         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2062         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2063         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2064         (Depends-on): Add dependencies.
2065         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2066         * tests/test-math-c++.cc: Check the declaration of cbrt.
2067         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2068         replacement.
2069
2070 2012-02-29  Bruno Haible  <bruno@clisp.org>
2071
2072         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2073         * m4/hypotl-ieee.m4: New file.
2074         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2075         test whether hypotl works with mixed NaN and Infinity arguments.
2076         Replace it if not.
2077         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2079         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2080         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2081         (Depends-on): Update conditions.
2082         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2083         (Depends-on): Add hypot-ieee.
2084         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2085         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2086
2087         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2088         * m4/hypotf-ieee.m4: New file.
2089         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2090         test whether hypotf works with mixed NaN and Infinity arguments.
2091         Replace it if not.
2092         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2093         (Depends-on): Add hypot-ieee.
2094         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2095         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2096
2097         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2098         * lib/math.in.h (hypot): New declaration.
2099         * lib/hypot.c: New file.
2100         * m4/hypot-ieee.m4: New file.
2101         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2102         whether hypot works with mixed NaN and Infinity arguments. Replace it
2103         if not.
2104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2105         REPLACE_HYPOT.
2106         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2107         * modules/hypot (Files): Add lib/hypot.c.
2108         (Depends-on): Add dependencies.
2109         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2110         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2111         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2112         * tests/test-math-c++.cc: Check the declaration of hypot.
2113         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2114
2115         Tests for module 'hypotl-ieee'.
2116         * modules/hypotl-ieee-tests: New file.
2117         * tests/test-hypotl-ieee.c: New file.
2118
2119         New module 'hypotl-ieee'.
2120         * modules/hypotl-ieee: New file.
2121
2122         Tests for module 'hypot-ieee'.
2123         * modules/hypot-ieee-tests: New file.
2124         * tests/test-hypot-ieee.c: New file.
2125
2126         New module 'hypot-ieee'.
2127         * modules/hypot-ieee: New file.
2128
2129         Tests for module 'hypotf-ieee'.
2130         * modules/hypotf-ieee-tests: New file.
2131         * tests/test-hypotf-ieee.c: New file.
2132         * tests/test-hypot-ieee.h: New file.
2133
2134         New module 'hypotf-ieee'.
2135         * modules/hypotf-ieee: New file.
2136
2137 2012-02-29  Bruno Haible  <bruno@clisp.org>
2138
2139         Remove unused variables.
2140         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2141         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2142         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2143         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2144
2145 2012-02-29  Eric Blake  <eblake@redhat.com>
2146
2147         termios: fix pid_t always, not just for tcgetsid
2148         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2149         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2150         just when building tcgetsid.
2151
2152 2012-02-29  Bruno Haible  <bruno@clisp.org>
2153
2154         Tests for module 'hypotl'.
2155         * modules/hypotl-tests: New file.
2156         * tests/test-hypotl.c: New file.
2157
2158         New module 'hypotl'.
2159         * lib/math.in.h (hypotl): New declaration.
2160         * lib/hypotl.c: New file.
2161         * m4/hypotl.m4: New file.
2162         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2164         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2165         * modules/hypotl: New file.
2166         * tests/test-math-c++.cc: Check the hypotl declaration.
2167         * doc/posix-functions/hypotl.texi: Mention the new module.
2168
2169 2012-02-29  Eric Blake  <eblake@redhat.com>
2170
2171         tcgetsid: fix cygwin header bug
2172         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2173
2174         docs: update cygwin progress
2175         * doc/posix-functions/llround.texi (llround): Added in cygwin
2176         1.7.8.
2177         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2178         * doc/glibc-functions/program_invocation_name.texi
2179         (program_invocation_name): Likewise.
2180         * doc/glibc-functions/program_invocation_short_name.texi
2181         (program_invocation_short_name): Likewise.
2182         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2183         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2184         Likewise.
2185         * doc/posix-functions/pthread_spin_destroy.texi
2186         (pthread_spin_destroy): Added in cygwin 1.7.10.
2187         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2188         Likewise.
2189         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2190         Likewise.
2191         * doc/posix-functions/pthread_spin_trylock.texi
2192         (pthread_spin_trylock): Likewise.
2193         * doc/posix-functions/pthread_spin_unlock.texi
2194         (pthread_spin_unlock): Likewise.
2195         * doc/posix-functions/pthread_setschedprio.texi
2196         (pthread_setschedprio): Likewise.
2197         * doc/posix-functions/pthread_attr_getstack.texi
2198         (pthread_attr_getstack): Likewise.
2199         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2200         (pthread_attr_getstackaddr): Likewise.
2201         * doc/glibc-functions/pthread_getattr_np.texi
2202         (pthread_getattr_np): Likewise.
2203         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2204         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2205         * doc/posix-functions/clock_settime.texi (clock_settime):
2206         Likewise.
2207         * doc/posix-functions/pthread_attr_getguardsize.texi
2208         (pthread_attr_getguardsize): Likewise.
2209         * doc/posix-functions/pthread_attr_setguardsize.texi
2210         (pthread_attr_setguardsize): Likewise.
2211         * doc/posix-functions/pthread_attr_setstack.texi
2212         (pthread_attr_setstack): Likewise.
2213         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2214         (pthread_attr_setstackaddr): Likewise.
2215         * doc/posix-functions/clock_getcpuclockid.texi
2216         (clock_getcpuclockid): Likewise.
2217         * doc/posix-functions/pthread_getcpuclockid.texi
2218         (pthread_getcpuclockid): Likewise.
2219         * doc/glibc-functions/error.texi (error): Likewise.
2220         * doc/glibc-functions/error_at_line.texi (error_at_line):
2221         Likewise.
2222         * doc/glibc-functions/error_message_count.texi
2223         (error_message_count): Likewise.
2224         * doc/glibc-functions/error_one_per_line.texi
2225         (error_one_per_line): Likewise.
2226         * doc/glibc-functions/error_print_progname.texi
2227         (error_print_progname): Likewise.
2228         * doc/posix-functions/pthread_condattr_getclock.texi
2229         (pthread_condattr_getclock): Likewise.
2230         * doc/posix-functions/pthread_condattr_setclock.texi
2231         (pthread_condattr_setclock): Likewise.
2232         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2233         Likewise.
2234         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2235         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2236         * doc/glibc-functions/get_current_dir_name.texi
2237         (get_current_dir_name): Likewise.
2238         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2239         Likewise.
2240         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2241         wrong return type.
2242         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2243         1.7.11.
2244
2245 2012-02-29  Bruno Haible  <bruno@clisp.org>
2246
2247         Tests for module 'hypotf'.
2248         * modules/hypotf-tests: New file.
2249         * tests/test-hypotf.c: New file.
2250
2251         New module 'hypotf'.
2252         * lib/math.in.h (hypotf): New declaration.
2253         * lib/hypotf.c: New file.
2254         * m4/hypotf.m4: New file.
2255         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2257         REPLACE_HYPOTF.
2258         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2259         REPLACE_HYPOTF.
2260         * modules/hypotf: New file.
2261         * tests/test-math-c++.cc: Check the hypotf declaration.
2262         * doc/posix-functions/hypotf.texi: Mention the new module.
2263
2264         hypot: Prepare for hypotf module.
2265         * m4/hypot.m4: New file.
2266         * modules/hypot (Files): Add m4/hypot.m4.
2267         (configure.ac): Invoke gl_FUNC_HYPOT.
2268
2269 2012-02-29  Bruno Haible  <bruno@clisp.org>
2270
2271         hypot tests: More tests.
2272         * tests/test-hypot.c: Include <float.h>.
2273         (main): Add tests about overflow and underflow.
2274
2275 2012-02-29  Bruno Haible  <bruno@clisp.org>
2276
2277         math code: Add comments.
2278         * lib/acosl.c: Add comment about related glibc source files.
2279         * lib/asinl.c: Likewise.
2280         * lib/atanl.c: Likewise.
2281         * lib/expl.c: Likewise.
2282         * lib/logl.c: Likewise.
2283         * lib/sincosl.c: Likewise.
2284         * lib/sinl.c: Likewise.
2285         * lib/tanl.c: Likewise.
2286         * lib/trigl.c: Likewise.
2287         * lib/cosl.c: Likewise. Fix comments.
2288
2289 2012-02-28  Bruno Haible  <bruno@clisp.org>
2290
2291         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2292         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2293         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2294         HUGE_VALL are defined.
2295         (numeric_equald): Renamed from numeric_equal.
2296         (numeric_equalf, numeric_equall): New functions.
2297         (main): Check also HUGE_VALF, HUGE_VALL.
2298         * modules/math-tests (Files): Add tests/macros.h.
2299         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2300         HUGE_VALL.
2301
2302 2012-02-28  Bruno Haible  <bruno@clisp.org>
2303
2304         doc: Move ISO C11 feature notes into POSIX chapters.
2305         * doc/posix-functions/aligned_alloc.texi: Renamed from
2306         doc/glibc-functions/aligned_alloc.texi.
2307         * doc/posix-functions/quick_exit.texi: Renamed from
2308         doc/glibc-functions/quick_exit.texi.
2309         * doc/posix-headers/uchar.texi: Renamed from
2310         doc/glibc-headers/uchar.texi.
2311         * doc/posix-functions/c16rtomb.texi: Renamed from
2312         doc/glibc-functions/c16rtomb.texi.
2313         * doc/posix-functions/c32rtomb.texi: Renamed from
2314         doc/glibc-functions/c32rtomb.texi.
2315         * doc/posix-functions/mbrtoc16.texi: Renamed from
2316         doc/glibc-functions/mbrtoc16.texi.
2317         * doc/posix-functions/mbrtoc32.texi: Renamed from
2318         doc/glibc-functions/mbrtoc32.texi.
2319         * doc/gnulib.texi: Update.
2320         (Glibc uchar.h): Remove section.
2321         Suggested by Eric Blake.
2322
2323 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2324
2325         stdnoreturn: port to MSVC better
2326         MSVC standard headers use __declspec(noreturn), so #define noreturn
2327         to empty on that platform.  Reported by Bruno Haible in
2328         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2329         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2330         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2331
2332 2012-02-28  Bruno Haible  <bruno@clisp.org>
2333
2334         doc: Mention new glibc headers and functions.
2335         * doc/glibc-headers/uchar.texi: New file.
2336         * doc/glibc-functions/aligned_alloc.texi: New file.
2337         * doc/glibc-functions/c16rtomb.texi: New file.
2338         * doc/glibc-functions/c32rtomb.texi: New file.
2339         * doc/glibc-functions/clock_adjtime.texi: New file.
2340         * doc/glibc-functions/fanotify_init.texi: New file.
2341         * doc/glibc-functions/fanotify_mark.texi: New file.
2342         * doc/glibc-functions/inet6_opt_append.texi: New file.
2343         * doc/glibc-functions/inet6_opt_find.texi: New file.
2344         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2345         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2346         * doc/glibc-functions/inet6_opt_init.texi: New file.
2347         * doc/glibc-functions/inet6_opt_next.texi: New file.
2348         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2349         * doc/glibc-functions/inet6_rth_add.texi: New file.
2350         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2351         * doc/glibc-functions/inet6_rth_init.texi: New file.
2352         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2353         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2354         * doc/glibc-functions/inet6_rth_space.texi: New file.
2355         * doc/glibc-functions/login.texi: New file.
2356         * doc/glibc-functions/mbrtoc16.texi: New file.
2357         * doc/glibc-functions/mbrtoc32.texi: New file.
2358         * doc/glibc-functions/name_to_handle_at.texi: New file.
2359         * doc/glibc-functions/ntp_gettimex.texi: New file.
2360         * doc/glibc-functions/open_by_handle_at.texi: New file.
2361         * doc/glibc-functions/prlimit.texi: New file.
2362         * doc/glibc-functions/process_vm_readv.texi: New file.
2363         * doc/glibc-functions/process_vm_writev.texi: New file.
2364         * doc/glibc-functions/recvmmsg.texi: New file.
2365         * doc/glibc-functions/scandirat.texi: New file.
2366         * doc/glibc-functions/sendmmsg.texi: New file.
2367         * doc/glibc-functions/setns.texi: New file.
2368         * doc/glibc-functions/timespec_get.texi: New file.
2369         * doc/gnulib.texi: Include them.
2370         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2371         sections.
2372         Reported by Eric Blake.
2373
2374 2012-02-28  Bruno Haible  <bruno@clisp.org>
2375
2376         Avoid compilation errors with MSVC option -fp:strict.
2377         * lib/floor.c: Use MSVC specific pragma fenv_access.
2378         * lib/ceil.c: Likewise.
2379         * lib/trunc.c: Likewise.
2380         * lib/round.c: Likewise.
2381         * lib/rint.c: Likewise.
2382         * lib/fma.c: Likewise.
2383         * lib/integer_length.c: Likewise.
2384         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2385         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2386         * tests/test-floor2.c: Likewise.
2387         * tests/test-floorf2.c: Likewise.
2388         * tests/test-ceil2.c: Likewise.
2389         * tests/test-ceilf2.c: Likewise.
2390         * tests/test-trunc2.c: Likewise.
2391         * tests/test-truncf2.c: Likewise.
2392         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2393
2394 2012-02-27  Bruno Haible  <bruno@clisp.org>
2395
2396         Tests for module 'sqrtl-ieee'.
2397         * modules/sqrtl-ieee-tests: New file.
2398         * tests/test-sqrtl-ieee.c: New file.
2399
2400         New module 'sqrtl-ieee'.
2401         * modules/sqrtl-ieee: New file.
2402
2403         Tests for module 'sqrt-ieee'.
2404         * modules/sqrt-ieee-tests: New file.
2405         * tests/test-sqrt-ieee.c: New file.
2406
2407         New module 'sqrt-ieee'.
2408         * modules/sqrt-ieee: New file.
2409
2410         Tests for module 'sqrtf-ieee'.
2411         * modules/sqrtf-ieee-tests: New file.
2412         * tests/test-sqrtf-ieee.c: New file.
2413         * tests/test-sqrt-ieee.h: New file.
2414
2415         New module 'sqrtf-ieee'.
2416         * modules/sqrtf-ieee: New file.
2417
2418 2012-02-27  Bruno Haible  <bruno@clisp.org>
2419
2420         remainderl-ieee: Work around test failure on OSF/1.
2421         * m4/remainderl-ieee.m4: New file.
2422         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2423         present, test whether remainderl works with a zero second argument.
2424         Replace it if not.
2425         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2427         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2428         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2429         (Depends-on): Update conditions.
2430         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2431         (Depends-on): Add remainder-ieee.
2432         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2433         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2434         module.
2435
2436         remainderf-ieee: Work around test failure on OSF/1.
2437         * m4/remainderf-ieee.m4: New file.
2438         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2439         present, test whether remainderf works with a zero second argument.
2440         Replace it if not.
2441         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2443         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2444         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2445         (Depends-on): Update conditions.
2446         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2447         (Depends-on): Add remainder-ieee.
2448         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2449         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2450         module.
2451
2452         remainder-ieee: Work around test failure on OSF/1.
2453         * m4/remainder-ieee.m4: New file.
2454         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2455         present, test whether remainder works with a zero second argument.
2456         Replace it if not.
2457         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2459         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2460         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2461         (Depends-on): Update dependencies.
2462         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2463         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2464         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2465
2466         Tests for module 'remainderl-ieee'.
2467         * modules/remainderl-ieee-tests: New file.
2468         * tests/test-remainderl-ieee.c: New file.
2469
2470         New module 'remainderl-ieee'.
2471         * modules/remainderl-ieee: New file.
2472
2473         Tests for module 'remainder-ieee'.
2474         * modules/remainder-ieee-tests: New file.
2475         * tests/test-remainder-ieee.c: New file.
2476
2477         New module 'remainder-ieee'.
2478         * modules/remainder-ieee: New file.
2479
2480         Tests for module 'remainderf-ieee'.
2481         * modules/remainderf-ieee-tests: New file.
2482         * tests/test-remainderf-ieee.c: New file.
2483         * tests/test-remainder-ieee.h: New file.
2484
2485         New module 'remainderf-ieee'.
2486         * modules/remainderf-ieee: New file.
2487
2488 2012-02-27  Bruno Haible  <bruno@clisp.org>
2489
2490         modff, modfl: Fix configure syntax error.
2491         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2492         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2493
2494 2012-02-27  Bruno Haible  <bruno@clisp.org>
2495
2496         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2497         * m4/fmodl-ieee.m4: New file.
2498         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2499         whether fmodl works with zero arguments. Replace it if not.
2500         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2501         (Depends-on): Add fmod-ieee.
2502         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2503         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2504
2505         fmodf-ieee: Work around test failure on OSF/1.
2506         * m4/fmodf-ieee.m4: New file.
2507         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2508         whether fmodf works with zero arguments. Replace it if not.
2509         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2511         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2512         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2513         (Depends-on): Update dependencies.
2514         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2515         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2516         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2517
2518         fmodf-ieee: Work around test failure on MSVC 9.
2519         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2520         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2521
2522         fmod-ieee: Work around test failures on OSF/1, mingw.
2523         * m4/fmod-ieee.m4: New file.
2524         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2525         whether fmod works with zero arguments. Replace it if not.
2526         * lib/math.in.h (fmod): New declaration.
2527         * lib/fmod.c: New file.
2528         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2530         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2531         * modules/fmod (Files): Add lib/fmod.c.
2532         (Depends-on): Add math, isinf, trunc, fma.
2533         (configure.ac): Arrange to compile lib/fmod.c if needed.
2534         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2535         m4/signbit.m4.
2536         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2537         * tests/test-math-c++.cc: Check the declaration of fmod.
2538         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2539
2540         fmodl-ieee: Fix test failures.
2541         * lib/fmodl.c (fmodl): Treat Inf specially.
2542         * modules/fmodl (Depends-on): Add isinf.
2543
2544         Tests for module 'fmodl-ieee'.
2545         * modules/fmodl-ieee-tests: New file.
2546         * tests/test-fmodl-ieee.c: New file.
2547
2548         New module 'fmodl-ieee'.
2549         * modules/fmodl-ieee: New file.
2550
2551         Tests for module 'fmod-ieee'.
2552         * modules/fmod-ieee-tests: New file.
2553         * tests/test-fmod-ieee.c: New file.
2554
2555         New module 'fmod-ieee'.
2556         * modules/fmod-ieee: New file.
2557
2558         Tests for module 'fmodf-ieee'.
2559         * modules/fmodf-ieee-tests: New file.
2560         * tests/test-fmodf-ieee.c: New file.
2561         * tests/test-fmod-ieee.h: New file.
2562
2563         New module 'fmodf-ieee'.
2564         * modules/fmodf-ieee: New file.
2565
2566 2012-02-27  Bruno Haible  <bruno@clisp.org>
2567
2568         Tests for module 'rintl-ieee'.
2569         * modules/rintl-ieee-tests: New file.
2570         * tests/test-rintl-ieee.c: New file.
2571
2572         New module 'rintl-ieee'.
2573         * modules/rintl-ieee: New file.
2574
2575         Tests for module 'rint-ieee'.
2576         * modules/rint-ieee-tests: New file.
2577         * tests/test-rint-ieee.c: New file.
2578
2579         New module 'rint-ieee'.
2580         * modules/rint-ieee: New file.
2581
2582         Tests for module 'rintf-ieee'.
2583         * modules/rintf-ieee-tests: New file.
2584         * tests/test-rintf-ieee.c: New file.
2585         * tests/test-rint-ieee.h: New file.
2586
2587         New module 'rintf-ieee'.
2588         * modules/rintf-ieee: New file.
2589
2590 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2591
2592         regex: re_search etc. should return -2 when memory exhausted
2593         This bug was uncovered when testing 'grep'.  Without the fix,
2594         re_search and friends return -1 when memory is exhausted, but -1
2595         means no match, and this causes grep to falsely report no-match
2596         instead of memory-exhaustion.  See
2597         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2598         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2599         trouble; this can occur if re_search_internal ran out of memory.
2600
2601 2012-02-26  Bruno Haible  <bruno@clisp.org>
2602
2603         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2604         * m4/modfl-ieee.m4: New file.
2605         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2606         whether modfl works with Inf. Replace it if not.
2607         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2609         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2610         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2611         (Depends-on): Update dependencies.
2612         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2613         m4/signbit.m4.
2614         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2615         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2616
2617         modfl-ieee: Fix dependencies.
2618         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2619
2620         modfl-ieee: Fix test failures.
2621         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2622         * modules/modfl (Depends-on): Add isfinite, isinf.
2623
2624         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2625         * m4/modff-ieee.m4: New file.
2626         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2627         whether modff works with NaN and Inf. Replace it if not.
2628         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2630         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2631         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2632         (Depends-on): Update dependencies.
2633         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2634         m4/signbit.m4.
2635         (Depends-on): Add modf-ieee.
2636         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2637         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2638
2639         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2640         * m4/modf-ieee.m4: New file.
2641         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2642         whether modf works with NaN and Inf. Replace it if not.
2643         * lib/math.in.h (modf): New declaration.
2644         * lib/modf.c: New file.
2645         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2647         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2648         * modules/modf (Files): Add lib/modf.c.
2649         (Depends-on): Add math, isfinite, trunc, isinf.
2650         (configure.ac): Addrange to compile lib/modf.c if needed.
2651         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2652         m4/signbit.m4.
2653         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2654         * tests/test-math-c++.cc: Check the declaration of modf.
2655         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2656
2657         Tests for module 'modfl-ieee'.
2658         * modules/modfl-ieee-tests: New file.
2659         * tests/test-modfl-ieee.c: New file.
2660
2661         New module 'modfl-ieee'.
2662         * modules/modfl-ieee: New file.
2663
2664         Tests for module 'modf-ieee'.
2665         * modules/modf-ieee-tests: New file.
2666         * tests/test-modf-ieee.c: New file.
2667
2668         New module 'modf-ieee'.
2669         * modules/modf-ieee: New file.
2670
2671         Tests for module 'modff-ieee'.
2672         * modules/modff-ieee-tests: New file.
2673         * tests/test-modff-ieee.c: New file.
2674         * tests/test-modf-ieee.h: New file.
2675
2676         New module 'modff-ieee'.
2677         * modules/modff-ieee: New file.
2678
2679 2012-02-26  Bruno Haible  <bruno@clisp.org>
2680
2681         Tests for module 'fabsl-ieee'.
2682         * modules/fabsl-ieee-tests: New file.
2683         * tests/test-fabsl-ieee.c: New file.
2684
2685         New module 'fabsl-ieee'.
2686         * modules/fabsl-ieee: New file.
2687
2688         Tests for module 'fabs-ieee'.
2689         * modules/fabs-ieee-tests: New file.
2690         * tests/test-fabs-ieee.c: New file.
2691
2692         New module 'fabs-ieee'.
2693         * modules/fabs-ieee: New file.
2694
2695         Tests for module 'fabsf-ieee'.
2696         * modules/fabsf-ieee-tests: New file.
2697         * tests/test-fabsf-ieee.c: New file.
2698         * tests/test-fabs-ieee.h: New file.
2699
2700         New module 'fabsf-ieee'.
2701         * modules/fabsf-ieee: New file.
2702
2703 2012-02-26  Bruno Haible  <bruno@clisp.org>
2704
2705         Tests for module 'fmal-ieee'.
2706         * modules/fmal-ieee-tests: New file.
2707         * tests/test-fmal-ieee.c: New file.
2708
2709         New module 'fmal-ieee'.
2710         * modules/fmal-ieee: New file.
2711
2712         Tests for module 'fma-ieee'.
2713         * modules/fma-ieee-tests: New file.
2714         * tests/test-fma-ieee.c: New file.
2715
2716         New module 'fma-ieee'.
2717         * modules/fma-ieee: New file.
2718
2719         Tests for module 'fmaf-ieee'.
2720         * modules/fmaf-ieee-tests: New file.
2721         * tests/test-fmaf-ieee.c: New file.
2722         * tests/test-fma-ieee.h: New file.
2723
2724         New module 'fmaf-ieee'.
2725         * modules/fmaf-ieee: New file.
2726
2727 2012-02-26  Bruno Haible  <bruno@clisp.org>
2728
2729         Tests for module 'ldexpl-ieee'.
2730         * modules/ldexpl-ieee-tests: New file.
2731         * tests/test-ldexpl-ieee.c: New file.
2732
2733         New module 'ldexpl-ieee'.
2734         * modules/ldexpl-ieee: New file.
2735
2736         Tests for module 'ldexp-ieee'.
2737         * modules/ldexp-ieee-tests: New file.
2738         * tests/test-ldexp-ieee.c: New file.
2739
2740         New module 'ldexp-ieee'.
2741         * modules/ldexp-ieee: New file.
2742
2743         Tests for module 'ldexpf-ieee'.
2744         * modules/ldexpf-ieee-tests: New file.
2745         * tests/test-ldexpf-ieee.c: New file.
2746         * tests/test-ldexp-ieee.h: New file.
2747
2748         New module 'ldexpf-ieee'.
2749         * modules/ldexpf-ieee: New file.
2750
2751 2012-02-26  Bruno Haible  <bruno@clisp.org>
2752
2753         Refactor frexp*-ieee tests.
2754         * tests/test-frexp-ieee.h: New file.
2755         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2756         (main): Just call test_function.
2757         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2758         (main): Just call test_function.
2759         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2760         (main): Just call test_function.
2761         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2762         * modules/frexp-ieee-tests (Files): Likewise.
2763         * modules/frexpl-ieee-tests (Files): Likewise.
2764
2765         Tests for module 'frexpl-ieee'.
2766         * modules/frexpl-ieee-tests: New file.
2767         * tests/test-frexpl-ieee.c: New file.
2768
2769         New module 'frexpl-ieee'.
2770         * modules/frexpl-ieee: New file.
2771
2772         Tests for module 'frexp-ieee'.
2773         * modules/frexp-ieee-tests: New file.
2774         * tests/test-frexp-ieee.c: New file.
2775
2776         New module 'frexp-ieee'.
2777         * modules/frexp-ieee: New file.
2778
2779         Tests for module 'frexpf-ieee'.
2780         * modules/frexpf-ieee-tests: New file.
2781         * tests/test-frexpf-ieee.c: New file.
2782
2783         New module 'frexpf-ieee'.
2784         * modules/frexpf-ieee: New file.
2785
2786 2012-02-26  Bruno Haible  <bruno@clisp.org>
2787
2788         roundl-ieee tests: More tests.
2789         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2790         (main): Add tests for [MX] shaded specification in POSIX.
2791         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2792         (Depends-on): Add isnanl-nolibm.
2793
2794         round-ieee tests: More tests.
2795         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2796         (main): Add tests for [MX] shaded specification in POSIX.
2797         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2798         (Depends-on): Add isnand-nolibm.
2799
2800         roundf-ieee tests: More tests.
2801         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2802         (main): Add tests for [MX] shaded specification in POSIX.
2803         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2804         (Depends-on): Add isnanf-nolibm.
2805
2806         truncl-ieee tests: More tests.
2807         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2808         (main): Add tests for [MX] shaded specification in POSIX.
2809         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2810         (Depends-on): Add isnanl-nolibm.
2811
2812         trunc-ieee tests: More tests.
2813         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2814         (main): Add tests for [MX] shaded specification in POSIX.
2815         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2816         (Depends-on): Add isnand-nolibm.
2817
2818         truncf-ieee tests: More tests.
2819         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2820         (main): Add tests for [MX] shaded specification in POSIX.
2821         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2822         (Depends-on): Add isnanf-nolibm.
2823
2824         ceill-ieee tests: More tests.
2825         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2826         (main): Add tests for [MX] shaded specification in POSIX.
2827         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2828         (Depends-on): Add isnanl-nolibm.
2829
2830         ceil-ieee tests: More tests.
2831         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2832         (main): Add tests for [MX] shaded specification in POSIX.
2833         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2834         (Depends-on): Add isnand-nolibm.
2835
2836         ceilf-ieee tests: More tests.
2837         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2838         (main): Add tests for [MX] shaded specification in POSIX.
2839         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2840         (Depends-on): Add isnanf-nolibm.
2841
2842         floorl-ieee tests: More tests.
2843         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2844         (main): Add tests for [MX] shaded specification in POSIX.
2845         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2846         (Depends-on): Add isnanl-nolibm.
2847
2848         floor-ieee tests: More tests.
2849         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2850         (main): Add tests for [MX] shaded specification in POSIX.
2851         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2852         (Depends-on): Add isnand-nolibm.
2853
2854         floorf-ieee tests: More tests.
2855         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2856         (main): Add tests for [MX] shaded specification in POSIX.
2857         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2858         (Depends-on): Add isnanf-nolibm.
2859
2860 2012-02-26  Bruno Haible  <bruno@clisp.org>
2861
2862         fpieee: More comments.
2863         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2864
2865 2012-02-25  Bruno Haible  <bruno@clisp.org>
2866
2867         Tests for module 'log10l'.
2868         * modules/log10l-tests: New file.
2869         * tests/test-log10l.c: New file.
2870         * tests/test-math-c++.cc: Check the declaration of log10l.
2871
2872         New module 'log10l'.
2873         * lib/math.in.h (log10l): New declaration.
2874         * lib/log10l.c: New file.
2875         * m4/log10l.m4: New file.
2876         * modules/log10l: New file.
2877         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2879         HAVE_DECL_LOG10L.
2880         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2881         HAVE_DECL_LOG10L.
2882         * doc/posix-functions/log10l.texi: Mention the new module.
2883
2884 2012-02-25  Bruno Haible  <bruno@clisp.org>
2885
2886         fmodl, remainder*: Avoid wrong results due to rounding errors.
2887         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2888         expected bounds.
2889         * lib/remainderf.c (remainderf): Likewise.
2890         * lib/remainder.c (remainder): Likewise.
2891         * lib/remainderl.c (remainderl): Likewise.
2892
2893 2012-02-25  Bruno Haible  <bruno@clisp.org>
2894
2895         Tests for module 'remainderl'.
2896         * modules/remainderl-tests: New file.
2897         * tests/test-remainderl.c: New file.
2898         * tests/test-math-c++.cc: Check the declaration of remainderl.
2899
2900         New module 'remainderl'.
2901         * lib/math.in.h (remainderl): New declaration.
2902         * lib/remainderl.c: New file.
2903         * m4/remainderl.m4: New file.
2904         * modules/remainderl: New file.
2905         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2907         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2908         HAVE_REMAINDERL.
2909         * doc/posix-functions/remainderl.texi: Mention the new module.
2910
2911 2012-02-25  Bruno Haible  <bruno@clisp.org>
2912
2913         Tests for module 'remainderf'.
2914         * modules/remainderf-tests: New file.
2915         * tests/test-remainderf.c: New file.
2916         * tests/test-math-c++.cc: Check the declaration of remainderf.
2917
2918         New module 'remainderf'.
2919         * lib/math.in.h (remainderf): New declaration.
2920         * lib/remainderf.c: New file.
2921         * m4/remainderf.m4: New file.
2922         * modules/remainderf: New file.
2923         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2925         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2926         HAVE_REMAINDERF.
2927         * doc/posix-functions/remainderf.texi: Mention the new module.
2928
2929 2012-02-25  Bruno Haible  <bruno@clisp.org>
2930
2931         remainder: Support for MSVC.
2932         * lib/math.in.h (remainder): New declaration.
2933         * lib/remainder.c: New file.
2934         * m4/remainder.m4: New file.
2935         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2936         (Depends-on): Add math, round, fma.
2937         (configure.ac): Use results of gl_FUNC_REMAINDER.
2938         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2940         HAVE_DECL_REMAINDER.
2941         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2942         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2943         * tests/test-math-c++.cc: Check the declaration of remainder.
2944         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2945         problems are fixed.
2946
2947 2012-02-25  Bruno Haible  <bruno@clisp.org>
2948
2949         Tests for module 'fmodl'.
2950         * modules/fmodl-tests: New file.
2951         * tests/test-fmodl.c: New file.
2952         * tests/test-math-c++.cc: Check the declaration of fmodl.
2953
2954         New module 'fmodl'.
2955         * lib/math.in.h (fmodl): New declaration.
2956         * lib/fmodl.c: New file.
2957         * m4/fmodl.m4: New file.
2958         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2960         REPLACE_FMODL.
2961         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2962         REPLACE_FMODL.
2963         * modules/fmodl: New file.
2964         * doc/posix-functions/fmodl.texi: Mention the new module.
2965
2966 2012-02-25  Bruno Haible  <bruno@clisp.org>
2967
2968         Tests for module 'modfl'.
2969         * modules/modfl-tests: New file.
2970         * tests/test-modfl.c: New file.
2971         * tests/test-math-c++.cc: Check the declaration of modfl.
2972
2973         New module 'modfl'.
2974         * lib/math.in.h (modfl): New declaration.
2975         * lib/modfl.c: New file.
2976         * m4/modfl.m4: New file.
2977         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2979         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2980         * modules/modfl: New file.
2981         * doc/posix-functions/modfl.texi: Mention the new module.
2982
2983 2012-02-25  Bruno Haible  <bruno@clisp.org>
2984
2985         Tests for module 'fabsl'.
2986         * modules/fabsl-tests: New file.
2987         * tests/test-fabsl.c: New file.
2988         * tests/test-math-c++.cc: Check the declaration of fabsl.
2989
2990         New module 'fabsl'.
2991         * lib/math.in.h (fabsl): New declaration.
2992         * lib/fabsl.c: New file.
2993         * m4/fabsl.m4: New file.
2994         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2996         REPLACE_FABSL.
2997         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2998         REPLACE_FABSL.
2999         * modules/fabsl: New file.
3000         * doc/posix-functions/fabsl.texi: Mention the new module.
3001
3002 2012-02-25  Bruno Haible  <bruno@clisp.org>
3003
3004         fabs tests: More tests.
3005         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3006         (zero): New variable.
3007         (main): Add tests for signed zero.
3008         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3009
3010         fabsf tests: More tests.
3011         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3012         (zero): New variable.
3013         (main): Add tests for signed zero.
3014         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3015
3016 2012-02-24  Bruno Haible  <bruno@clisp.org>
3017
3018         atanl: Provide function definition on MSVC.
3019         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3020         function pointer.
3021         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3022
3023 2012-02-24  Bruno Haible  <bruno@clisp.org>
3024
3025         acosl: Provide function definition on MSVC.
3026         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3027         function pointer.
3028         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3029
3030 2012-02-24  Bruno Haible  <bruno@clisp.org>
3031
3032         asinl: Provide function definition on MSVC.
3033         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3034         function pointer.
3035         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3036
3037 2012-02-24  Bruno Haible  <bruno@clisp.org>
3038
3039         tanl: Provide function definition on MSVC.
3040         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3041         function pointer.
3042         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3043
3044 2012-02-24  Bruno Haible  <bruno@clisp.org>
3045
3046         cosl: Provide function definition on MSVC.
3047         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3048         function pointer.
3049         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3050
3051 2012-02-24  Bruno Haible  <bruno@clisp.org>
3052
3053         sinl: Provide function definition on MSVC.
3054         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3055         function pointer.
3056         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3057
3058 2012-02-24  Bruno Haible  <bruno@clisp.org>
3059
3060         logl: Provide function definition on MSVC.
3061         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3062         function pointer.
3063         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3064
3065 2012-02-24  Bruno Haible  <bruno@clisp.org>
3066
3067         expl: Provide function definition on MSVC.
3068         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3069         function pointer.
3070         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3071
3072 2012-02-24  Bruno Haible  <bruno@clisp.org>
3073
3074         sqrtl: Provide function definition on MSVC.
3075         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3076         a function pointer.
3077         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3078
3079 2012-02-24  Bruno Haible  <bruno@clisp.org>
3080
3081         ceill: Provide function definition on MSVC.
3082         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3083         used as a function pointer.
3084         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3085
3086 2012-02-24  Bruno Haible  <bruno@clisp.org>
3087
3088         floorl: Provide function definition on MSVC.
3089         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3090         used as a function pointer.
3091         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3092
3093 2012-02-24  Bruno Haible  <bruno@clisp.org>
3094
3095         ceilf: Provide function definition on MSVC.
3096         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3097         used as a function pointer.
3098         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3099
3100 2012-02-24  Bruno Haible  <bruno@clisp.org>
3101
3102         floorf: Provide function definition on MSVC.
3103         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3104         used as a function pointer.
3105         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3106
3107 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3108
3109         stdnoreturn: new module
3110         This implements a replacement for C11's <stdnoreturn.h>.
3111         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3112         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3113         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3114         * tests/test-stdnoreturn.c: New files.
3115
3116 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3117
3118         regex: fix false multibyte matches in some regular expressions
3119         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3120         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3121         * lib/regex_internal.c (re_string_skip_chars):
3122         Fix miscomputation of remain_len that may cause incomplete
3123         multi-byte character and false match.
3124
3125 2012-02-24  Jim Meyering  <meyering@redhat.com>
3126
3127         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3128         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3129         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3130         Remove now-unnecessary str''cmp obfuscation.
3131         Suggested by Akim Demaille.
3132
3133 2012-02-24  Bruno Haible  <bruno@clisp.org>
3134
3135         streq: Rename macro.
3136         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3137         * NEWS: Mention the change.
3138         * lib/mbrtowc.c (mbrtowc): Update.
3139         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3140         * lib/wcwidth.c (wcwidth): Update.
3141         Suggested by Akim Demaille and Jim Meyering.
3142
3143 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3144
3145         regex: fix typo in definition of MIN
3146         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3147         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3148
3149 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3150             Bruno Haible  <bruno@clisp.org>
3151
3152         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3153         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3154         entries into a stack-allocated buffer directly.
3155         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3156
3157 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3158             Bruno Haible  <bruno@clisp.org>
3159
3160         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3161
3162          - There were several instances of this pattern:
3163
3164              for (;;) {
3165                n = acl (f, GETACLCNT, 0, NULL);
3166                [ allocate an array A of size N ]
3167                if (acl (f, GETACL, n, a) == n)
3168                  break;
3169              }
3170
3171            This loop might never terminate if some other process is constantly
3172            manipulating the file's ACL.  The loop should be rewritten to
3173            terminate.
3174
3175          - The acl (... GETACLNT ...) call is merely an optimization; its value
3176            is merely a hint as to how big to make the array.  A better
3177            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3178            and just guess a reasonably-big size, growing the size and trying
3179            again if it's not large enough.  This guarantees termination, and
3180            saves a system call.
3181
3182         * lib/acl-internal.h: Include <limits.h>.
3183         (MIN, SIZE_MAX): New macros.
3184         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3185         a stack-allocated buffer, and use malloc if it does not fit. Don't
3186         use GETACLCNT.
3187         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3188
3189 2012-02-19  Bruno Haible  <bruno@clisp.org>
3190
3191         acl: Fix endless loop on Solaris with vxfs.
3192         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3193         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3194         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3195         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3196         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3197         Reported by Bill Jones in
3198         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3199
3200 2012-02-19  Bruno Haible  <bruno@clisp.org>
3201
3202         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3203         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3204         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3205         that this function returns 0 in some more cases.
3206
3207 2012-02-19  Bruno Haible  <bruno@clisp.org>
3208
3209         acl: Update doc references.
3210         * doc/acl-resources.txt: Update links to Solaris documentation.
3211
3212 2012-02-19  Bruno Haible  <bruno@clisp.org>
3213
3214         Fix test failure in many locales on Solaris 11.
3215         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3216         'tr' arguments.
3217         * tests/test-pipe-filter-ii1.c (main): Likewise.
3218         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3219         expressions in the C locale.
3220         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3221         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3222
3223 2012-02-19  Bruno Haible  <bruno@clisp.org>
3224
3225         gnulib-tool: Improve usage message.
3226         * gnulib-tool (func_usage): Move doc of --help and --version to the
3227         section "Operation modes".
3228
3229 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3230
3231         README-release: make it easier to execute commands
3232         * top/README-release: break commands out on to separate lines.
3233
3234 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3235
3236         GNUmakefile: simplify detection of unconfigured trees
3237         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3238         whether the tree make is being run from is already configured or
3239         not.  Related simplifications.
3240
3241 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3242
3243         * gnulib-tool (func_usage): Document --help and --version.
3244
3245 2012-02-11  Jim Meyering  <meyering@redhat.com>
3246
3247         bootstrap: don't exit 0 upon gnulib-tool failure
3248         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3249         its exit status, not 0.
3250
3251 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3252
3253         README-release: various improvements
3254         * top/README-release: Give a command to push changes for the
3255         release.  Add "distcheck" to list of other pre-release checks.
3256         Fix instance of "make stable" which should be "make TYPE".
3257
3258 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3259
3260         maint: replace FSF snail-mail addresses with URLs
3261         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3262         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3263         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3264         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3265         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3266         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3267         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3268         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3269         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3270         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3271         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3272         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3273         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3274         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3275         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3276         * lib/glthread/thread.c, lib/glthread/thread.h:
3277         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3278         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3279         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3280         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3281         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3282         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3283         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3284         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3285         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3286         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3287         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3288         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3289         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3290         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3291         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3292         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3293         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3294         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3295         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3296         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3297         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3298         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3299         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3300         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3301         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3302         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3303         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3304         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3305         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3306         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3307         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3308         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3309         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3310         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3311         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3312         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3313         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3314         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3315         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3316         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3317         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3318         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3319         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3320         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3321         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3322         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3323         * tests/test-poll.c, tests/test-quotearg-simple.c:
3324         * tests/test-quotearg.c, tests/test-quotearg.h:
3325         * tests/test-round-ieee.c, tests/test-round1.c:
3326         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3327         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3328         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3329         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3330         * tests/test-strerror.c, tests/test-strerror_r.c:
3331         * tests/test-strsignal.c, tests/test-strverscmp.c:
3332         * tests/test-xmemdup0.c:
3333         Replace FSF snail mail addresses with URLs, as per GNU coding
3334         standards.  See glibc bug
3335         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3336
3337 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3338
3339         README-release: capitalize a word and split a line
3340         * top/README-release: Fix punctuation and spacing.
3341
3342 2012-02-08  Akim Demaille  <demaille@gostai.com>
3343
3344         fatal-signal: use C prototypes (with explicit void).
3345         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3346         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3347
3348 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3349
3350         regex: spelling fix
3351         * lib/regexec.c: spelling fix
3352
3353         regex: rely on stdint.h for SIZE_MAX
3354         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3355
3356 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3357
3358         regex: merge glibc changes
3359
3360         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3361         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3362         (init_word_char): Work even if bitset words are not exactly 32 or
3363         64 bits wide.  Don't assume there are no padding bits.
3364         * lib/regex.c [_LIBC]: Do not include <config.h>.
3365         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3366         and -Wtype-limits.
3367         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3368         needless disagreement with glibc.  All uses changed.  Define it to
3369         1 only if _GNU_SOURCE, to match glibc.
3370         (_REG_RM_NAME): Remove; no longer needed, since the names in
3371         question are now all protected by __USE_GNU.
3372         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3373         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3374         * lib/regex_internal.h (MIN): New macro.
3375
3376         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3377         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3378
3379         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3380         * lib/regex_internal.c (re_string_fetch_byte_case):
3381         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3382         is miscompiled, and it turns out it is because of an incorrect
3383         attribute on re_string_fetch_byte_case.  Unlike
3384         re_string_peek_byte_case, this one is really not pure, it modifies
3385         memory (increments pstr->cur_idx), and with the pure attribute GCC
3386         assumed it doesn't and it cached the presumed value of
3387         regexp->cur_idx in a variable across the
3388          for (;; ++i)
3389            {
3390              if (i >= BRACKET_NAME_BUF_SIZE)
3391                return REG_EBRACK;
3392              if (token->type == OP_OPEN_CHAR_CLASS)
3393                ch = re_string_fetch_byte_case (regexp);
3394              else
3395                ch = re_string_fetch_byte (regexp);
3396              if (re_string_eoi(regexp))
3397                return REG_EBRACK;
3398              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3399                break;
3400              elem->opr.name[i] = ch;
3401            }
3402
3403         2011-11-29 Andreas Schwab <schwab@redhat.com>
3404         * lib/regcomp.c (build_equiv_class):
3405         Fix access after end of search string in regex matcher.
3406
3407         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3408         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3409
3410         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3411         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3412
3413         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3414         * lib/regcomp.c (parse_branch, parse_sub_exp):
3415         More regex memory leak fixes and tests.
3416         (parse_sub_exp, parse_bracket_exp):
3417         Fix memory leak for some invalid regular expressions.
3418
3419         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3420         * lib/regex_internal.c, lib/regexec.c:
3421         Fix unnecessary overallocation due to incomplete character.  When
3422         incomplete characters are found at the end of a string the code
3423         ran amok and allocated lots of memory.  Stricter limits are now in
3424         place.
3425
3426         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3427         * lib/regex.h: Update documentation.
3428
3429         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3430         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3431
3432         2010-05-05 Andreas Schwab <schwab@redhat.com>
3433         * lib/regexec.c (find_collation_sequence_value):
3434         Fix lookup of collation sequence value during regexp matching.
3435
3436         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3437         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3438
3439         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3440         * lib/regex.h: Cleanup namespace.
3441
3442         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3443         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3444
3445         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3446         * lib/regex_internal.h: Prevent some declarations and definitions
3447         to be seen when used in tests.
3448
3449         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3450         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3451         __libc_lock_* macros if not _LIBC.
3452         (struct re_dfa_t): Add lock.
3453
3454 2012-02-07  Eric Blake  <eblake@redhat.com>
3455
3456         maint.mk: also prohibit lower-case @var@
3457         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3458         lower case, like @top_srcdir@.
3459
3460 2012-02-04  Eric Blake  <eblake@redhat.com>
3461
3462         canonicalize: avoid uninitialized memory use
3463         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3464         random '/' left in dest.
3465         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3466
3467 2012-02-04  Bruno Haible  <bruno@clisp.org>
3468
3469         isatty: Fix test failure of ptsname_r on native Windows.
3470         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3471         and don't set errno.
3472         (isatty): Test first whether fd is valid. Set errno when returning 0.
3473
3474 2012-02-04  Bruno Haible  <bruno@clisp.org>
3475
3476         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3477         * tests/test-spawn-pipe-main.c: Include progname.h.
3478         (main): Invoke set_program_name.
3479         * modules/spawn-pipe-tests (Depends-on): Add progname.
3480
3481         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3482         * tests/test-nonblocking-socket-main.c: Include progname.h.
3483         (main): Invoke set_program_name.
3484         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3485
3486         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3487         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3488         (main): Invoke set_program_name.
3489         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3490
3491 2012-02-04  Eric Blake  <eblake@redhat.com>
3492
3493         canonicalize-lgpl: fix // handling
3494         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3495
3496         canonicalize: fix // handling
3497         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3498         /// to //, since only // is special.
3499
3500 2012-02-04  Bruno Haible  <bruno@clisp.org>
3501
3502         ioctl: Fix test failure on native Windows.
3503         * lib/ioctl.c: Include msvc-nothrow.h.
3504         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3505
3506 2012-02-04  Bruno Haible  <bruno@clisp.org>
3507
3508         fsync: Avoid test failure on native Windows.
3509         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3510         read-only.
3511
3512 2012-02-04  Bruno Haible  <bruno@clisp.org>
3513
3514         sys_select: Avoid syntax error on OpenBSD 5.0.
3515         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3516         currently being included, just include the system's <sys/select.h>.
3517
3518 2012-02-04  Bruno Haible  <bruno@clisp.org>
3519
3520         sys_select: Avoid syntax error on OpenBSD 5.0.
3521         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3522         <sys/select.h>, not before.
3523         Reported by Jiri B <jirib@devio.us>.
3524
3525 2012-02-04  Bruno Haible  <bruno@clisp.org>
3526
3527         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3528         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3529         global variables.
3530         * tests/test-get-rusage-data.c (main): Likewise.
3531         Reported by Jim Meyering.
3532
3533 2012-02-04  Bruno Haible  <bruno@clisp.org>
3534
3535         stdioext: Fix last commit.
3536         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3537
3538 2012-02-03  Bruno Haible  <bruno@clisp.org>
3539
3540         stdioext: Add tentative support for Plan9.
3541         * lib/stdio-impl.h: Include <errno.h>.
3542         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3543         * lib/freadable.c (freadable): Likewise.
3544         * lib/fwritable.c (fwritable): Likewise.
3545         * lib/fbufmode.c (fbufmode): Likewise.
3546         * lib/freading.c (freading): Likewise.
3547         * lib/fwriting.c (fwriting): Likewise.
3548         * lib/freadptr.c (freadptr): Likewise.
3549         * lib/freadseek.c (freadptrinc): Likewise.
3550         * lib/freadahead.c (freadahead): Likewise.
3551         * lib/fpurge.c (fpurge): Likewise.
3552         * lib/fseeko.c (rpl_fseeko): Likewise.
3553         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3554         Reported by Jens Staal <staal1978@gmail.com>.
3555
3556 2012-02-02  Jim Meyering  <meyering@redhat.com>
3557
3558         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3559         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3560         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3561         not even to try to add the attribute.  Instead, add a pragma to suppress
3562         the suggestion/warning.
3563
3564 2012-01-31  Karl Berry  <karl@gnu.org>
3565
3566         setstate doc: typo.
3567         * doc/posix-functions/setstate.texi (setstate): { not (.
3568
3569 2012-01-31  Bruno Haible  <bruno@clisp.org>
3570
3571         popen: Make more robust on Windows.
3572         * lib/popen.c: On native Windows, use the _popen based code even if
3573         HAVE_POPEN is set.
3574         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3575         environment variable on native Windows.
3576
3577 2012-01-30  Bruno Haible  <bruno@clisp.org>
3578
3579         pclose: Fix typo.
3580         * lib/stdio.in.h (pclose): Fix typo in warning message.
3581
3582 2012-01-30  Bruno Haible  <bruno@clisp.org>
3583
3584         doc about getlogin_r, setstate.
3585         * doc/posix-functions/getlogin_r.texi: List the incompatible
3586         declaration problem under "not fixed by gnulib".
3587         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3588         problem on Solaris 11 and other platforms.
3589
3590 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3591             Bruno Haible  <bruno@clisp.org>
3592
3593         poll tests: Make test more robust.
3594         * tests/test-poll.c: Include macros.h.
3595         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3596         return value of various I/O operations.
3597         * modules/poll-tests (Files): Add tests/macros.h.
3598
3599 2012-01-30  Bruno Haible  <bruno@clisp.org>
3600
3601         sys_stat: Fix support for mingw64 and MSVC.
3602         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3603         header files already do it.
3604         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3605         stat itself.
3606         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3607
3608 2012-01-30  Bruno Haible  <bruno@clisp.org>
3609
3610         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3611         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3612         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3613
3614 2012-01-29  Bruno Haible  <bruno@clisp.org>
3615
3616         quotearg: Fix test failure on MacOS X 10.5.
3617         * tests/test-quotearg-simple.c: Include localcharset.h.
3618         (main): If the locale encoding is not ASCII, bypass the tests of
3619         locale_quoting_style and clocale_quoting_style.
3620         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3621
3622 2012-01-29  Jim Meyering  <meyering@redhat.com>
3623
3624         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3625         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3626         detect uses of canonicalize_file_name.
3627
3628 2012-01-28  Bruno Haible  <bruno@clisp.org>
3629
3630         test-framework-sh: Fix test failure with AIX 7.1 diff.
3631         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3632         in column 1, like 'diff -c' does.
3633         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3634         whether 'diff -u' is used. Instead, test whether the output contains
3635         some '@' character.
3636
3637 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3638
3639         strtoimax: eliminate need for stdint.h, inttypes.h checks
3640         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3641         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3642         the prerequisites for a recently-introduced strtoimax test.
3643         I guess this might cause strtoimax to be replaced when not
3644         strictly necessary on older hosts, but this shouldn't introduce
3645         any bugs and it should make Emacs 'configure' faster on typical
3646         modern hosts.  Problem discovered when importing the latest gnulib
3647         to an Emacs test version.
3648         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3649
3650 2012-01-28  Bruno Haible  <bruno@clisp.org>
3651
3652         sys_time: Override 'struct timeval' on some native Windows platforms.
3653         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3654         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3655         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3656         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3657         needs to be overridden.
3658         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3659         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3660         * tests/test-sys_select.c: Check that the tv_sec member has the same
3661         size as a 'time_t'.
3662         * tests/test-sys_time.c: Likewise.
3663         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3664         is set, set also REPLACE_GETTIMEOFDAY.
3665         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3666         convert the resulting 'struct timeval' before returning.
3667         * lib/select.c: Include <sys/time.h>.
3668         (select, timeval): Undefine at the right place.
3669         * modules/select (Depends-on): Add sys_time.
3670         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3671         some Windows platforms.
3672         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3673
3674 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3675
3676         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3677         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3678         an integer.
3679         * lib/fcntl.c (dupfd): Likewise.
3680         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3681
3682 2012-01-28  Bruno Haible  <bruno@clisp.org>
3683
3684         fcntl: Avoid compilation error on native Windows.
3685         * modules/fcntl (Depends-on): Add 'close'.
3686
3687 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3688
3689         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3690         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3691         pointer to an integer.
3692         * lib/poll.c (IsConsoleHandle): Likewise.
3693         * lib/isatty.c (IsConsoleHandle): Likewise.
3694
3695 2012-01-28  Jim Meyering  <meyering@redhat.com>
3696
3697         doc: clarify README-release
3698         * top/README-release: Clarify: you should make a point to have
3699         the latest stable versions of build tools in your PATH, and the
3700         reference to buildreq is solely for its list of tool names, not
3701         for its minimal-functional version numbers.
3702         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3703
3704         maint.mk: use more readable (yet functionally equivalent) quoting
3705         It is common to quote a single quote in a single quoted string like
3706         this:  '...'\''...'.  Unless you know the idiom, that looks like
3707         gibberish, so prefer to double-quote the string when possible.
3708         Then you can use a more readable, lone single quote: "...'..."
3709         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3710         "don't" is more readable than the equivalent 'don'\''t'.
3711         (sc_cast_of_x_alloc_return_value): Likewise.
3712         (sc_cast_of_alloca_return_value): Likewise.
3713         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3714         rather than '\'':'\''.
3715
3716 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3717
3718         stdalign: relax _Alignof and tighten _Alignas test
3719         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3720         as it was too strict: alignof must divide offsetof, but it need
3721         not equal offsetof.  Inspired by Joseph S. Myers's comment
3722         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3723         Conversely, tighten the _Alignas test a bit, as the resulting
3724         alignment must be exactly 8.
3725
3726 2012-01-27  Bruno Haible  <bruno@clisp.org>
3727
3728         stdalign: Document the last change.
3729         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3730
3731 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3732
3733         stdalign: check that alignof and offsetof are consistent
3734         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3735         Problem reported for gnulib by Richard W.M. Jones in
3736         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3737
3738 2012-01-27  Jim Meyering  <meyering@redhat.com>
3739
3740         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3741         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3742         convert a sequence with gaps to the minimal containing range.
3743         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3744         * tests/test-update-copyright.sh: Test for this.
3745         The FSF confirmed it is ok to do this, assuming there is at
3746         least one significant change per year in the affected range:
3747         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3748
3749 2012-01-26  Bruno Haible  <bruno@clisp.org>
3750
3751         pipe2: refine doc about thread-safety
3752         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3753         multithread-safety problem.
3754         * doc/glibc-functions/accept4.texi: Likewise.
3755
3756 2012-01-26  Bruno Haible  <bruno@clisp.org>
3757
3758         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3759         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3760         In the test program, include <fcntl.h>, for O_RDONLY.
3761
3762 2012-01-26  Eric Blake  <eblake@redhat.com>
3763
3764         pipe2: document lack of thread-safety in replacement
3765         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3766         issue in replacement.
3767         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3768         Based on a report by Eric Wong.
3769
3770 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3771             Bruno Haible  <bruno@clisp.org>
3772
3773         malloca: Avoid warnings on x86_64 mingw64.
3774         * lib/malloca.c: Include <stdint.h>.
3775         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3776         * modules/malloca (Depends-on): Add stdint.
3777         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3778
3779 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3780
3781         obstack: remove __STDC__ conditionals
3782         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3783         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3784         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3785         m4/include_next.m4 as the only gnulib-maintained places that still
3786         refer to __STDC__.
3787
3788 2012-01-24  Bruno Haible  <bruno@clisp.org>
3789
3790         havelib: Modern quoting.
3791         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3792         the recent change to the GNU coding standards.
3793
3794 2012-01-24  Bruno Haible  <bruno@clisp.org>
3795
3796         stdint: Improve support for Android.
3797         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3798         Reported by Simon Josefsson <simon@josefsson.org>.
3799
3800 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3801
3802         doc: omit trailing empty lines from INSTALL etc.
3803         * doc/Makefile (INSTALL): Omit trailing empty lines.
3804         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3805         omit trailing empty lines.  This simplifies the build procedure.
3806
3807 2012-01-23  Jim Meyering  <meyering@redhat.com>
3808
3809         tests: avoid spurious warnings about gl_sockets_startup
3810         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3811         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3812         reporting a "statement with no effect".
3813         * tests/test-accept.c (main): Mark as "(void)".
3814         * tests/test-accept4.c (main): Likewise.
3815         * tests/test-bind.c (main): Likewise.
3816         * tests/test-connect.c (main): Likewise.
3817         * tests/test-getpeername.c (main): Likewise.
3818         * tests/test-getsockname.c (main): Likewise.
3819         * tests/test-getsockopt.c (main): Likewise.
3820         * tests/test-listen.c (main): Likewise.
3821         * tests/test-recv.c (main): Likewise.
3822         * tests/test-recvfrom.c (main): Likewise.
3823         * tests/test-send.c (main): Likewise.
3824         * tests/test-sendto.c (main): Likewise.
3825         * tests/test-setsockopt.c (main): Likewise.
3826         * tests/test-shutdown.c (main): Likewise.
3827
3828 2012-01-21  Bruno Haible  <bruno@clisp.org>
3829
3830         locale-fr.m4: Fix for Android.
3831         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3832         failure of the test program on Bionic libc.
3833
3834 2012-01-21  Jim Meyering  <meyering@redhat.com>
3835
3836         bootstrap: fail when bootstrap_post_import_hook fails
3837         Otherwise, it's far too easy to miss diagnostics emitted
3838         between gnulib-tool's output and that of running configure.
3839         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3840
3841 2012-01-17  Jim Meyering  <meyering@redhat.com>
3842
3843         maint: enable sc_trailing_blank
3844         * build-aux/pmccabe.css: Remove trailing blanks.
3845         * doc/acl-cygwin.txt: Likewise.
3846         * doc/gnu-oids.texi: Likewise
3847         * cfg.mk: Enable sc_trailing_blank.
3848         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3849
3850 2012-01-17  Jim Meyering  <meyering@redhat.com>
3851
3852         maint: enable sc_prohibit_openat_without_use
3853         * cfg.mk: Enable sc_prohibit_openat_without_use.
3854         Exempt lib/selinux-at.c.
3855
3856 2012-01-17  Jim Meyering  <meyering@redhat.com>
3857
3858         maint: enable sc_prohibit_cloexec_without_use
3859         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3860         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3861
3862 2012-01-17  Jim Meyering  <meyering@redhat.com>
3863
3864         maint: enable sc_prohibit_intprops_without_use
3865         * cfg.mk: Enable sc_prohibit_intprops_without_use
3866         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3867
3868 2012-01-17  Jim Meyering  <meyering@redhat.com>
3869
3870         maint: enable sc_prohibit_hash_pjw_without_use
3871         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3872         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3873         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3874         following " (".
3875
3876 2012-01-17  Jim Meyering  <meyering@redhat.com>
3877
3878         maint: enable double-word-prohibiting rule
3879         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3880         Exempt three files.
3881
3882 2012-01-17  Jim Meyering  <meyering@redhat.com>
3883
3884         maint: remove empty lines at EOF, but excluding modules/*
3885         Apply syntax rules at home as well as abroad.  Most changes
3886         were induced by running this:
3887           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3888             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3889             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3890         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3891         Exempt modules/* and two binary files.
3892         Also exempt doc/INSTALL*, per request from Bruno Haible.
3893         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3894         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3895         * doc/Copyright/request-assign.future: Likewise.
3896         * doc/Copyright/request-disclaim.changes: Likewise.
3897         * doc/INSTALL: Likewise.
3898         * doc/INSTALL.ISO: Likewise.
3899         * doc/INSTALL.UTF-8: Likewise.
3900         * doc/acl-cygwin.txt: Likewise.
3901         * doc/acl-resources.txt: Likewise.
3902         * doc/fdl-1.2.texi: Likewise.
3903         * doc/fdl-1.3.texi: Likewise.
3904         * doc/fdl.texi: Likewise.
3905         * lib/argp-pin.c: Likewise.
3906         * lib/round.c: Likewise.
3907         * lib/unicase/u16-totitle.c: Likewise.
3908         * lib/unictype/block_test.c: Likewise.
3909         * lib/uninorm/canonical-decomposition.c: Likewise.
3910         * m4/README: Likewise.
3911         * m4/relocatable-lib.m4: Likewise.
3912         * tests/test-isnand-nolibm.c: Likewise.
3913         * tests/test-isnand.c: Likewise.
3914         * tests/uninorm/NormalizationTest.txt: Likewise.
3915
3916 2012-01-17  Jim Meyering  <meyering@redhat.com>
3917
3918         maint: add framework to run syntax-check rules against gnulib sources
3919         * cfg.mk: New file, to disable all currently-failing tests.
3920         We'll enable them one by one, as they are made to pass.
3921         * Makefile (sc_maint): New rule.
3922
3923 2012-01-21  Bruno Haible  <bruno@clisp.org>
3924
3925         stdint: Add support for Android.
3926         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3927         include the system's <stdint.h>.
3928         Reported by Simon Josefsson <simon@josefsson.org>.
3929
3930 2012-01-19  Jim Meyering  <meyering@redhat.com>
3931
3932         bootstrap: add bootstrap_post_import_hook
3933         Bison does still need something like the gnulib_mk_hook whose
3934         invocation I had to remove along with slurp in commit 767ccd40.
3935         Technically, we could get along without it, but doing so would
3936         have required living with a warning and a mandatory post-bootstrap
3937         automake rerun.
3938         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3939         (bootstrap_post_import_hook): New function.
3940         Invoke it after gnulib-tool --import and before autoreconf.
3941
3942 2012-01-18  Jim Meyering  <meyering@redhat.com>
3943
3944         gitlog-to-changelog: don't use "no_"-prefixed variable name
3945         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3946         to enable both --cluster and --no-cluster.  Change variable name,
3947         s/\$no_cluster/$cluster/, and reverse usage to match.
3948
3949         gitlog-to-changelog: use "||", not "or" in expressions
3950         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3951         expressions.
3952
3953 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3954
3955         gitlog-to-changelog: new option --no-cluster
3956         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3957         clustering of adjacent commit messages.
3958
3959 2012-01-17  Jim Meyering  <meyering@redhat.com>
3960
3961         maint: spell file systems with two words, not one
3962         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3963         two words, not one.
3964
3965 2012-01-16  Jim Meyering  <meyering@redhat.com>
3966
3967         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3968         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3969
3970 2012-01-16  Eric Blake  <eblake@redhat.com>
3971
3972         bootstrap: cater to autoconf 2.59
3973         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3974         is not available.
3975
3976         bootstrap: properly check for libtool
3977         * build-aux/bootstrap (libtoolize): Also run libtool when older
3978         usage is detected.
3979
3980 2012-01-15  Bruno Haible  <bruno@clisp.org>
3981
3982         Improve support for MSVC 9.
3983         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3984         clashes on MSVC.
3985         * lib/fcntl.in.h: Likewise.
3986         * lib/stdlib.in.h: Likewise.
3987         * lib/sys_stat.in.h: Likewise.
3988
3989 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3990
3991         gnupload: we hold the master copy of this script now
3992         For motivation and more information, see:
3993         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3994         * build-aux/gnupload: Make it clear in the heading comments that the
3995         master copy of this file is maintained by gnulib.  Since we are at
3996         it, bump its copyright year and ...
3997         ($scriptversion): ... the date in its version.
3998         ($usage): Patches and bug reports should be sent to the gnulib list,
3999         not the automake one.
4000         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4001         anymore.
4002
4003 2012-01-15  Bruno Haible  <bruno@clisp.org>
4004
4005         Fix module 'random'.
4006         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4007         initstate, setstate are declared.
4008
4009 2012-01-14  Bruno Haible  <bruno@clisp.org>
4010
4011         Tests for module 'random'.
4012         * modules/random-tests: New file.
4013         * tests/test-random.c: New file, based on tests/test-random_r.c.
4014
4015         New module 'random'.
4016         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4017         declarations.
4018         * lib/random.c: New file, based on glibc/stdlib/random.c.
4019         * m4/random.m4: New file.
4020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4021         HAVE_RANDOM.
4022         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4023         * modules/random: New file.
4024         * config/srclist.txt: Add an entry for random.c.
4025         * doc/posix-functions/random.texi: Mention the 'random' module.
4026         * doc/posix-functions/initstate.texi: Likewise.
4027         * doc/posix-functions/setstate.texi: Likewise.
4028         * doc/posix-functions/srandom.texi: Likewise.
4029
4030 2012-01-12  Bruno Haible  <bruno@clisp.org>
4031
4032         random_r: Use common idioms.
4033         * lib/random_r.c: Include <stdlib.h> first.
4034
4035         random_r: Override incompatible API on AIX, OSF/1.
4036         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4037         Override the system function if REPLACE_RANDOM_R is 1.
4038         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4039         and OSF/1, set REPLACE_RANDOM_R.
4040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4041         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4042         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4043         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4044         * doc/glibc-functions/random_r.texi: Likewise.
4045         * doc/glibc-functions/setstate_r.texi: Likewise.
4046
4047         random_r: Support for MSVC 9.
4048         * lib/random_r.c: Include stdint.h, not inttypes.h.
4049
4050 2012-01-12  Eric Blake  <eblake@redhat.com>
4051
4052         inet_ntop: guard extra work by IF_LINT
4053         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4054         better code generation when not checking for warnings.
4055         Suggested by Paul Eggert and Jim Meyering.
4056
4057         strptime: fix regression on mingw
4058         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4059         Fix regression.  Reported by Bruno Haible.
4060
4061 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4062             Bruno Haible  <bruno@clisp.org>
4063
4064         copy-file: add error-code-returning variant.
4065         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4066         (qcopy_file_preserving): New declaration.
4067         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4068         copy_file_preserving. Change return type to 'int'. Don't emit an error
4069         message here.
4070         (copy_file_preserving): New function.
4071         * tests/test-copy-file.c: Include <stdlib.h>.
4072         (main): Test qcopy_file_preserving if the environment variable
4073         NO_STDERR_OUTPUT is set.
4074         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4075         with NO_STDERR_OUTPUT
4076         * tests/test-copy-file-2.sh: Likewise.
4077
4078 2012-01-10  Bruno Haible  <bruno@clisp.org>
4079
4080         copy-file: Use 'quote' module consistently.
4081         * lib/copy-file.c (copy_file_preserving): Use quote().
4082
4083         copy-file: Refactor.
4084         * lib/copy-file.c: Include quote.h.
4085         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4086         message here.
4087         * modules/copy-file (Depends-on): Add quote.
4088
4089         acl: Export qcopy_acl.
4090         * lib/acl.h (qcopy_acl): New declaration.
4091         * lib/copy-acl.c (qcopy_acl): Make non-static.
4092
4093         acl: Rename a local variable.
4094         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4095
4096         acl: Align return values of copy_acl and qcopy_acl.
4097         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4098         maybe < -1.
4099
4100 2012-01-11  Eric Blake  <eblake@redhat.com>
4101
4102         strptime: silence gcc warnings
4103         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4104         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4105         Reported by Daniel P. Berrange.
4106
4107         inet_ntop: silence gcc warning
4108         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4109         Reported by Daniel P. Berrange.
4110
4111 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4112
4113         getloadavg test: skip the test on GNU/Linux without /proc mounted
4114         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4115         file.  When /proc is not mounted, it always fails with ENOENT.
4116         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4117         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4118
4119 2012-01-10  Bruno Haible  <bruno@clisp.org>
4120
4121         regex: Avoid link error on MSVC 9.
4122         * modules/regex (Depends-on): Add wctype.
4123
4124 2012-01-10  Bruno Haible  <bruno@clisp.org>
4125
4126         doc: Mention --with-tests option.
4127         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4128         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4129         --with-tests.
4130         Reported by Reuben Thomas.
4131
4132 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4133
4134         users.txt: order package names lexicographically.
4135         * users.txt: Order package names lexicographically.
4136
4137 2012-01-10  Jim Meyering  <meyering@redhat.com>
4138
4139         maint.mk: fix description in comment
4140         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4141
4142         ignore-value: remove deprecated ignore_ptr function
4143         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4144         * NEWS: Note this.
4145
4146 2012-01-09  Jim Meyering  <meyering@redhat.com>
4147
4148         test-init.sh: avoid a subshell
4149         * tests/test-init.sh: Remove protective subshell.
4150         Suggested by Bernhard Voelker.  While a subshell is normally
4151         required to protect against older shells (Solaris, FreeBSD) that
4152         warn about a missing program before performing redirection, the
4153         shell-selection tests performed by init.sh probably exclude any
4154         offending shell.
4155
4156 2012-01-08  Bruno Haible  <bruno@clisp.org>
4157
4158         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4159         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4160         variable.
4161
4162 2012-01-08  Bruno Haible  <bruno@clisp.org>
4163
4164         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4165         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4166         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4167         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4168         macro.
4169         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4170         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4171         * lib/spawn_faction_addopen.c: Add workaround implementation if
4172         HAVE_WORKING_POSIX_SPAWN.
4173         * modules/spawn (Makefile): Substitute
4174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4175         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4176         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4177         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4178         (Depends-on): Update conditions.
4179         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4180         the Solaris 11 bug.
4181
4182 2012-01-08  Bruno Haible  <bruno@clisp.org>
4183
4184         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4185         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4186         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4187         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4188         macro.
4189         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4190         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4191         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4192         HAVE_WORKING_POSIX_SPAWN.
4193         * modules/spawn (Makefile): Substitute
4194         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4195         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4196         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4197         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4198         (Depends-on): Update conditions.
4199         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4200         the Solaris 11 bug.
4201
4202 2012-01-08  Bruno Haible  <bruno@clisp.org>
4203
4204         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4205         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4206         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4208         HAVE_WORKING_POSIX_SPAWN.
4209         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4210         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4211         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4212         * lib/spawn_faction_addclose.c: Add workaround implementation if
4213         HAVE_WORKING_POSIX_SPAWN.
4214         * modules/spawn (Makefile): Substitute
4215         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4216         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4217         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4218         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4219         (Depends-on): Update conditions.
4220         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4221         the Solaris 11 bug.
4222
4223 2012-01-08  Bruno Haible  <bruno@clisp.org>
4224
4225         doc: Update for Solaris 11 2011-11.
4226         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4227         * m4/printf.m4: Update comments.
4228
4229 2012-01-08  Bruno Haible  <bruno@clisp.org>
4230
4231         mktime: Avoid compilation error on Solaris 11.
4232         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4233
4234 2012-01-08  Bruno Haible  <bruno@clisp.org>
4235
4236         doc: Small fix.
4237         * doc/posix-headers/nl_types.texi: Correct platforms list.
4238
4239 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4240
4241         Add lgpl-3.0 module.
4242         * MODULES.html.sh (Support for building documentation): Add
4243         lgpl-3.0.
4244         * modules/lgpl-3.0: New file.
4245
4246 2012-01-08  Jim Meyering  <meyering@redhat.com>
4247
4248         select.c: indent with spaces, not TABs
4249         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4250
4251 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4252
4253         quotearg: do not use grave accent for left quote
4254         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4255         locale_quoting_style.
4256         (quotearg_buffer_restyled): Fix example.
4257         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4258
4259 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4260
4261         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4262         Most programs do not have translation catalogs for English and much
4263         less separate catalogs for British and American English.  Drop the
4264         suggestion to translators about these two, and provide it
4265         automatically for Unicode locales.  Like most programs, even those
4266         using American English, we use single quotation marks.  This conflicts
4267         with the American typographic convention, but works better when you
4268         cite the entire error message within double quotes.  It also tries not
4269         to clash with established practice and with what non-gnulib programs
4270         will usually do.
4271         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4272         using an UTF-8 or GB-18030 locale.  The list of other locales with
4273         quotes was provided by Bruno Haible.
4274         (quotearg_buffer_restyled): Adjust instructions to translators.
4275         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4276         text, since this would be wrong when using Unicode.
4277         * modules/quotearg: Depend on c-strcaseeq.
4278
4279 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4280
4281         quotearg: fix Wikipedia link
4282         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4283
4284 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4285
4286         Fix for mingw with MSVC9.
4287         * m4/ld-version-script.m4: Check that compiler rejects version
4288         scripts with syntax errors.  Reported by Bruno Haible
4289         <bruno@clisp.org>.
4290
4291 2012-01-06  Bruno Haible  <bruno@clisp.org>
4292
4293         Talk about "native Windows API", not "Woe32".
4294         * lib/accept4.c: Update comments to mention native Windows.
4295         * lib/execute.c: Likewise.
4296         * lib/fatal-signal.c: Likewise.
4297         * lib/localcharset.c: Likewise.
4298         * lib/nanosleep.c: Likewise.
4299         * lib/nl_langinfo.c: Likewise.
4300         * lib/pclose.c: Likewise.
4301         * lib/pipe-filter-gi.c: Likewise.
4302         * lib/pipe-filter-ii.c: Likewise.
4303         * lib/pipe.c: Likewise.
4304         * lib/pipe2.c: Likewise.
4305         * lib/popen.c: Likewise.
4306         * lib/progreloc.c: Likewise.
4307         * lib/relocatable.c: Likewise.
4308         * lib/sigaction.c: Likewise.
4309         * lib/sigprocmask.c: Likewise.
4310         * lib/spawn-pipe.h: Likewise.
4311         * lib/spawn-pipe.c: Likewise.
4312         * lib/spawni.c: Likewise.
4313         * lib/stat-time.h: Likewise.
4314         * lib/w32spawn.h: Likewise.
4315         * tests/test-isatty.c: Likewise.
4316         * lib/config.charset: More comments.
4317         * doc/gnulib-intro.texi: Mention native Windows.
4318         * doc/posix-functions/_Exit_C99.texi: Likewise.
4319         * doc/posix-headers/fcntl.texi: Likewise.
4320
4321 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4322
4323         argp: Avoid crash if translator uses % characters in a translation.
4324         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4325         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4326
4327 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4328
4329         doc: C11 and C++11 are now official
4330         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4331         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4332         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4333         * modules/stdalign:
4334         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4335
4336 2012-01-06  Bruno Haible  <bruno@clisp.org>
4337
4338         uc-is-grapheme-break tests: Tweak.
4339         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4340         message.
4341
4342 2012-01-06  Bruno Haible  <bruno@clisp.org>
4343
4344         test-init.sh: correct the test for diff -u
4345         * tests/test-init.sh: Also redirect stdout to /dev/null.
4346
4347 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4348
4349         Use ', not `, for quoting output.
4350         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4351         (print_changelog_deltas, get_tool_versions, main program):
4352         * build-aux/git-version-gen:
4353         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4354         * build-aux/move-if-change (help):
4355         * build-aux/useless-if-before-free (usage, main program):
4356         * check-module (parse_module_file, usage)
4357         (find_included_lib_files, check_module):
4358         * lib/argmatch.c (main) [TEST]:
4359         * lib/argp-help.c (_help):
4360         * lib/getopt1.c (main) [TEST]:
4361         * lib/git-merge-changelog.c (usage):
4362         * lib/xstrtol-error.c (xstrtol_error):
4363         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4364         * m4/argz.m4 (gl_FUNC_ARGZ):
4365         * m4/bison.m4 (gl_BISON):
4366         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4367         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4368         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4369         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4370         * m4/gc-random.m4 (gl_GC_RANDOM):
4371         * m4/intl.m4 (gt_CHECK_DECL):
4372         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4373         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4374         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4375         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4376         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4377         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4378         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4379         * tests/test-dirname.c (main):
4380         * tests/test-getpass.c (main):
4381         * tests/test-iconvme.c (main):
4382         * tests/test-parse-datetime.c (LOG):
4383         * tests/test-xstrtoimax.sh:
4384         * tests/test-xstrtol.sh:
4385         * tests/test-xstrtoll.sh:
4386         * tests/test-xstrtoumax.sh:
4387         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4388         * top/GNUmakefile (abort-due-to-no-makefile):
4389         Quote 'like this', not `like this', as per the recent change to
4390         the GNU coding standards.
4391
4392 2012-01-05  Bruno Haible  <bruno@clisp.org>
4393
4394         strtoimax: Don't force a replacement on systems where intmax_t is int.
4395         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4396         'intmax_t' is not larger than 'int'.
4397         Reported by Pádraig Brady <P@draigBrady.com>.
4398
4399 2012-01-05  Bruno Haible  <bruno@clisp.org>
4400
4401         doc: Mention NetBSD bugs.
4402         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4403         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4404
4405 2012-01-05  Bruno Haible  <bruno@clisp.org>
4406
4407         strtoumax tests: Enhance tests.
4408         * tests/test-strtoumax.c (main): Add tests for large values.
4409
4410 2012-01-05  Bruno Haible  <bruno@clisp.org>
4411
4412         strtoimax: Work around AIX 5.1 bug.
4413         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4414         definition.
4415         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4416         Set HAVE_STRTOIMAX.
4417         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4418         REPLACE_STRTOIMAX.
4419         * modules/inttypes-incomplete (Makefile.am): Substitute
4420         REPLACE_STRTOIMAX.
4421         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4422         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4423         (Depends-on): Update conditions.
4424         * tests/test-strtoimax.c (main): Add tests for large values.
4425         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4426
4427 2012-01-05  Bruno Haible  <bruno@clisp.org>
4428
4429         inttypes: Modernize.
4430         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4431         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4432         (Makefile.am): Update inttypes.h rule.
4433
4434 2012-01-05  Jim Meyering  <meyering@redhat.com>
4435
4436         init.sh: don't waste a subshell just to redirect stderr
4437         * tests/init.sh: In testing for diff -u and diff -c, use a
4438         stderr-redirecting exec inside `...` rather than a subshell.
4439
4440         test-init.sh: avoid failure on HP-UX 11.00
4441         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4442         resolves to diff -c or cmp.  Reported by Bruno Haible.
4443
4444 2012-01-05  Bruno Haible  <bruno@clisp.org>
4445
4446         Tests for module 'strtoull'.
4447         * modules/strtoull-tests: New file.
4448         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4449
4450 2012-01-05  Bruno Haible  <bruno@clisp.org>
4451
4452         Tests for module 'strtoll'.
4453         * modules/strtoll-tests: New file.
4454         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4455
4456 2012-01-05  Bruno Haible  <bruno@clisp.org>
4457
4458         Tests for module 'strtoul'.
4459         * modules/strtoul-tests: New file.
4460         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4461
4462 2012-01-05  Bruno Haible  <bruno@clisp.org>
4463
4464         Tests for module 'strtol'.
4465         * modules/strtol-tests: New file.
4466         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4467
4468 2012-01-04  Jim Meyering  <meyering@redhat.com>
4469
4470         test-init.sh: accommodate Solaris 5.10's different diff -u output
4471         * tests/test-init.sh: Also exempt @@ lines from the comparison
4472         of diff output, since Solaris 5.10 and GNU diff formats differ.
4473         Reported by Stefano Lattarini.
4474
4475 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4476
4477         test-posixtm: don't assume signed integer wraparound
4478         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4479         after signed integer overflow.  Inspired by (though it may not
4480         fix) Bruno Haible's bug report in
4481         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4482
4483         Spell out "Windows 9x" and "Windows XP".
4484         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4485         "Windows 9x" and "WinXP" with "Windows XP".
4486
4487 2012-01-04  Jim Meyering  <meyering@redhat.com>
4488
4489         test-vc-list-files-cvs.sh: remove obsolete comment
4490         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4491         double exit.  Now that's all encapsulated via skip_ and Exit.
4492
4493 2012-01-04  Bruno Haible  <bruno@clisp.org>
4494
4495         Talk about "native Windows API", not "Win32".
4496         * lib/classpath.c: Update comments to mention native Windows.
4497         * lib/csharpexec.c: Likewise.
4498         * lib/dup2.c: Likewise.
4499         * lib/error.c: Likewise.
4500         * lib/fcntl.c: Likewise.
4501         * lib/filename.h: Likewise.
4502         * lib/findprog.c: Likewise.
4503         * lib/get-rusage-as.c: Likewise.
4504         * lib/get-rusage-data.c: Likewise.
4505         * lib/getpagesize.c: Likewise.
4506         * lib/javaexec.c: Likewise.
4507         * lib/msvc-inval.c: Likewise.
4508         * lib/msvc-nothrow.c: Likewise.
4509         * lib/nanosleep.c: Likewise.
4510         * lib/nonblocking.c: Likewise.
4511         * lib/printf-parse.c: Likewise.
4512         * lib/setlocale.c: Likewise.
4513         * lib/sigaction.c: Likewise.
4514         * lib/strerror_r.c: Likewise.
4515         * lib/tmpdir.c: Likewise.
4516         * lib/vasnprintf.c: Likewise.
4517         * lib/w32spawn.h: Likewise.
4518         * lib/waitpid.c: Likewise.
4519         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4520         * m4/locale-ar.m4: Likewise.
4521         * m4/locale-fr.m4: Likewise.
4522         * m4/locale-ja.m4: Likewise.
4523         * m4/locale-tr.m4: Likewise.
4524         * m4/locale-zh.m4: Likewise.
4525         * m4/printf.m4: Likewise.
4526         * tests/test-cloexec.c: Likewise.
4527         * tests/test-copy-acl.sh: Likewise.
4528         * tests/test-copy-file.sh: Likewise.
4529         * tests/test-file-has-acl.sh: Likewise.
4530         * tests/test-set-mode-acl.sh: Likewise.
4531         * tests/test-dup-safer.c: Likewise.
4532         * tests/test-dup2.c: Likewise.
4533         * tests/test-dup3.c: Likewise.
4534         * tests/test-fcntl.c: Likewise.
4535         * tests/test-nonblocking-pipe.h: Likewise.
4536         * tests/test-nonblocking-socket.h: Likewise.
4537         * tests/test-pipe.c: Likewise.
4538         * tests/test-pipe2.c: Likewise.
4539         * tests/test-spawn-pipe-child.c: Likewise.
4540         * doc/acl-resources.txt: Likewise.
4541         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4542         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4543         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4544         * lib/localcharset.c: Update comments to mention native Windows.
4545         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4546         * lib/localename.c: Likewise.
4547         * lib/progreloc.c: Likewise.
4548         * lib/relocatable.c: Likewise.
4549         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4550         (windows_compute_revents): Renamed from win32_compute_revents.
4551         (windows_compute_revents_socket): Renamed from
4552         win32_compute_revents_socket.
4553         * lib/select.c: Update comments to mention native Windows.
4554         (windows_poll_handle): Renamed from win32_poll_handle.
4555         * m4/threadlib.m4: Update comments to mention native Windows.
4556         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4557         --enable-threads=windows instead of --enable-threads=win32. Set
4558         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4559         * lib/glthread/lock.h: Update comments to mention native Windows.
4560         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4561         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4562         USE_WIN32_THREADS.
4563         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4564         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4565         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4566         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4567         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4568         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4569         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4570         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4571         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4572         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4573         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4574         * tests/test-tls.c: Likewise.
4575         Rationale:
4576         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4577         on both 32-bit and 64-bit Windows systems.
4578         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4579         line of distinction is between "native Windows" on one side and Unix/
4580         POSIX systems on the other side. More details in
4581         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4582         Suggested by Paul Eggert.
4583
4584 2012-01-03  Bruno Haible  <bruno@clisp.org>
4585
4586         isatty: Support for MSVC 9.
4587         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4588         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4589         (_isatty_nothrow): New function.
4590         (isatty): Use it instead of _isatty.
4591         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4592         * lib/poll.c (IsConsoleHandle): Likewise.
4593         * lib/select.c (IsConsoleHandle): Likewise.
4594         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4595         (gl_PREREQ_ISATTY): New macro.
4596         * modules/isatty (Depends-on): Add msvc-inval.
4597         (configure.ac): Invoke gl_PREREQ_ISATTY.
4598
4599 2012-01-03  Jim Meyering  <meyering@redhat.com>
4600
4601         maint.mk: remove temporary transition aid from over 1.5 years ago
4602         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4603         purpose was to aid in the transition (avoiding silent malfunction)
4604         from that old name to the new _sc_search_regexp.  This shim was
4605         added by commit 219c504b.
4606
4607         init.sh: do not try to accommodate compare arguments starting with "-"
4608         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4609         compare arguments that start with "-".  Besides, we do not worry
4610         about this when invoking diff or cmp; why start now with sed?
4611         Using "--" to separate options from argument would trigger sed
4612         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4613         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4614
4615 2012-01-02  Bruno Haible  <bruno@clisp.org>
4616
4617         Enhance tests for module 'isatty'.
4618         * modules/isatty-tests (Depends-on): Add pipe-posix.
4619         * tests/test-isatty.c: Include <fcntl.h>.
4620         (DEV_NULL): New macro.
4621         (main): Test the resut of isatty() also on regular files, pipes, and
4622         /dev/null.
4623
4624         New module 'isatty'.
4625         * lib/unistd.in.h (isatty): New declaration.
4626         * lib/isatty.c: New file, based on an idea of
4627         Bastien Roucariès <roucaries.bastien@gmail.com>.
4628         * m4/isatty.m4: New file.
4629         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4630         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4631         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4632         REPLACE_ISATTY.
4633         * modules/isatty: New file.
4634         * doc/posix-functions/isatty.texi: Mention the new module.
4635         Suggested by Paolo Bonzini.
4636
4637 2012-01-02  Bruno Haible  <bruno@clisp.org>
4638
4639         canonicalize: Tweak 2011-12-29 commit.
4640         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4641         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4642
4643 2012-01-02  Jim Meyering  <meyering@redhat.com>
4644
4645         gitlog-to-changelog: describe input syntax in --help output
4646         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4647
4648         gitlog-to-changelog: fix typo in --help: show backslash before email @
4649         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4650         in sources, but not in actual output.
4651
4652 2011-12-30  Jim Meyering  <meyering@redhat.com>
4653
4654         gitlog-to-changelog: don't malfunction when name contains %-directive
4655         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4656         in a name string cause trouble.  E.g., with a user name of "%s",
4657         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4658
4659 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4660
4661         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4662         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4663         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4664         the "  (tiny change)" notation that is appended to the standard
4665         ChangeLog "date  name  email" header line.
4666
4667 2012-01-01  Jim Meyering  <meyering@redhat.com>
4668
4669         test-framework-sh: init.sh: fix "make dist" failure
4670         When using gnulib-tool's --with-tests option and any module that
4671         depends on test-framework-sh, "make dist" would fail due to the
4672         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4673         in the gltests directory, and not in the gllib/ directory.
4674         One way to work around that is to move the EXTRA_DIST += init.sh
4675         from the primary module to the -tests one:
4676         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4677         * modules/test-framework-sh (Makefile.am): ...not here.
4678         Reported by Tom G. Christensen in
4679         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4680
4681         version-etc: update copyright year reported by --version
4682         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4683
4684 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4685
4686         canonicalize: only stat() if required
4687         * lib/canonicalize.c (canonicalize_filename_mode):
4688         Avoid calling l?stat() when both CAN_MISSING,
4689         and CAN_NOLINKS are set, as we neither need
4690         to resolve symlinks or test component existence.
4691
4692 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4693
4694         doc: cover st_ino issues once; add OpenVMS etc.
4695         * doc/posix-functions/stat.texi (stat):
4696         * doc/posix-functions/lstat.texi (lstat):
4697         * doc/posix-functions/fstatat.texi (fstatat):
4698         * doc/posix-functions/fstat.texi (fstat):
4699         Move general 'struct stat' stuff to sys_stat.texi,
4700         leaving behind a pointer.
4701         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4702         Merge duplicate info about 'struct stat' problems into here.
4703         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4704         and suggest partial workarounds.
4705
4706         same-inode: port to OpenVMS
4707         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4708         three st_ino values.
4709
4710 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4711
4712         canonicalize: fix references to stat() and lstat()
4713         * lib/canonicalize.c (canonicalize_filename_mode):
4714         Ensure references always resolve to a replacement
4715         function if required (even via a macro).
4716
4717 2011-12-30  Jim Meyering  <meyering@redhat.com>
4718
4719         gitlog-to-changelog: remove a little duplication
4720         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4721         rather than twice.
4722
4723 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4724
4725         canonicalize: add support for not resolving symlinks
4726         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4727         indicate we don't want to follow symlinks.  Also
4728         provide CAN_MODE_MASK to aid setting these existing
4729         mutually exclusive values.
4730         * lib/canonicalize.c (canonicalize_filename_mode):
4731         Extract the flags from can_mode parameter, which
4732         are currently just used to select between stat()
4733         and lstat().  Also ensure that mutually exclusive
4734         values are flagged immediately as invalid.
4735         * tests/test-canonicalize.c: Verify symlinks are
4736         not followed, and that invalid flag combinations
4737         are diagnosed.
4738
4739 2011-12-25  Jim Meyering  <meyering@redhat.com>
4740
4741         gitlog-to-changelog: do not clump multi-paragraph entries
4742         Identical header lines (date,name,email+coauthors) are suppressed,
4743         thus putting all entries with those same characteristics under
4744         a single header.  However, when a log entry consists of two or
4745         more paragraphs, it may not be clear where it starts and ends.
4746         This change makes it so that such an entry is always separated
4747         from others by a header line, even when that header would
4748         otherwise be suppressed.
4749         * build-aux/gitlog-to-changelog: Implement the above.
4750         Inspired by a related request from Stefano Lattarini in
4751         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4752
4753 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4754
4755         announce-gen: fix `cmd' typo in diagnostic
4756         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4757         diagnostic: a missing '$' meant that the command was not output.
4758
4759 2011-12-23  Jim Meyering  <meyering@redhat.com>
4760
4761         test-framework-sh: distribute init.sh
4762         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4763         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4764         fail due to the lack of init.sh.
4765
4766         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4767         * modules/atexit-tests: Rather than listing tests/init.sh,
4768         now that there's a module for it, simply depend on that new module.
4769         * modules/closein-tests: Likewise.
4770         * modules/exclude-tests: Likewise.
4771         * modules/getcwd-tests: Likewise.
4772         * modules/perror-tests: Likewise.
4773         * modules/pread-tests: Likewise.
4774         * modules/pwrite-tests: Likewise.
4775         * modules/vc-list-files-tests: Likewise.
4776         * modules/verify-tests: Likewise.
4777         * modules/xalloc-die-tests: Likewise.
4778         * modules/xstrtoimax-tests: Likewise.
4779         * modules/xstrtol-tests: Likewise.
4780         * modules/xstrtoll-tests: Likewise.
4781         * modules/xstrtoumax-tests: Likewise.
4782         * modules/yesno-tests: Likewise.
4783
4784 2011-12-22  Jim Meyering  <meyering@redhat.com>
4785
4786         test-framework-sh: add minimal tests of init.sh's compare function
4787         * modules/test-framework-sh-tests: New file.
4788         * tests/test-init.sh: New file.
4789
4790         test-framework-sh: new module
4791         * modules/test-framework-sh: New file.
4792         * MODULES.html.sh (Support for maintaining and releasing projects):
4793         List it.
4794
4795         init.sh: do not emit simulated diff output to stderr
4796         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4797
4798 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4799
4800         .gitignore: ignore gnulib.dvi and regex.info
4801         * doc/.gitignore:add gnulib.dvi and regex.info
4802
4803 2011-12-22  Jim Meyering  <meyering@redhat.com>
4804
4805         init.sh: correct previous change
4806         * tests/init.sh (compare): My previous change was wrong.
4807         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4808
4809         init.sh: avoid unwarranted test failure when using "set -e"
4810         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4811         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4812         a use like "compare exp out" would get evoke an unconditional failure.
4813
4814 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4815
4816         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4817         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4818         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4819         autoreconf that did not.
4820         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4821         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4822
4823 2011-12-17  Jim Meyering  <meyering@redhat.com>
4824
4825         bootstrap: remove some now-unneeded code
4826         This script arose back when gnulib-tool was young.
4827         Since then, it has seen improvements that render much of this
4828         script unnecessary.  In particular, it can now make symlinks
4829         to the files it uses.  Also, I no longer see as much value in
4830         marking files as read-only via comments.
4831         If you relied on the symlink-creation feature of the preceding
4832         version of this script, you can get most of that functionality
4833         by adding the --symlink option to the definition of
4834         gnulib_tool_option_extras in your bootstrap.conf file.
4835         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4836         Run autopoint and libtoolize *before* gnulib-tool.
4837         After it, run an abbreviated autoreconf, rather than a loop around
4838         all tools.
4839         (slirp, bt_mark_as_generated): Remove functions.
4840
4841 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4842
4843         ftoastr: fix typo
4844         * lib/ftoastr.h: Fix misspelling in comment.
4845
4846 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4847
4848         * top/README-release: fix punctuation.
4849
4850 2011-12-17  Jim Meyering  <meyering@redhat.com>
4851
4852         bootstrap: correct the recent buildreq change
4853         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4854         had no effect.
4855         * build-aux/bootstrap (buildreq): Bracket each search term with
4856         "*...*", so that the shell "case" statement works as intended.
4857         Add comments.
4858
4859 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4860
4861         build: let bootstrap resort to wget when downloading .po files
4862         * build-aux/bootstrap (download_po_files): Fallback to wget when
4863         downloading the .po files via rsync fails.  This is necessary to
4864         bootstrap from behind a strict firewall.
4865
4866 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4867
4868         stdint: don't assume C++11 when compiling with g++
4869         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4871         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4872         work also in C++ before C++11, as that improperly inhibits
4873         generating a substitute stdint.h for that case.
4874
4875 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4876
4877         alloca: protect comment from gnulib-tool
4878         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4879         that gnulib-tool doesn't think it's a license, and munge it to
4880         say "GCC version 3".
4881
4882 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4883
4884         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4885         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4886         $(abs_top_builddir) instead of $(top_builddir).
4887
4888 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4889
4890         strftime-tests: also test nanoseconds
4891         * tests/test-strftime.c (T): Add a test of %N.
4892
4893 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4894
4895         inttypes, stdint: add C++11 support
4896         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4897         when including inttypes.h and stdint.h.  Support this change to
4898         the standard.
4899         * doc/posix-headers/inttypes.texi (inttypes.h):
4900         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4901         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4902         Define if not defined already, for the benefit of pre-C++11 hosts.
4903         Define the standard format macros (e.g., PRId8) always.
4904         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4905         Likewise, if __cpluspus.  Define the standard constant and limit
4906         macros (e.g., INT8_C, INT8_MAX) always.
4907         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4908         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4909         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4910         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4911         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4912         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4913         Likewise.
4914
4915 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4916
4917         nonblocking tests: Fix test failure on Linux/PPC.
4918         Suggested by Prerna Saxena in
4919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4920         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4921         Set to 1100000.
4922
4923 2011-12-12  Jim Meyering  <meyering@redhat.com>
4924
4925         argmatch: don't hard-code `' when listing valid option arguments
4926         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4927         use the quote function to add quotes.  Use fputs rather than
4928         fprintf for the format string with no format directive.
4929
4930 2011-12-07  Eric Blake  <eblake@redhat.com>
4931
4932         bootstrap: detect tools required by gnulib-tool
4933         * build-aux/bootstrap (buildreq): Provide minimum implicit
4934         dependencies.
4935         * DEPENDENCIES: Mention patch as a prereq.
4936
4937 2011-12-04  Bruno Haible  <bruno@clisp.org>
4938
4939         sethostname: Port to Windows platforms.
4940         * lib/sethostname.c: Provide an alternate implementation for Windows
4941         platforms.
4942         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4943         (main): Skip the test if sethostname() fails with EPERM. On Windows
4944         platforms, don't check the result of gethostname().
4945
4946 2011-12-04  Bruno Haible  <bruno@clisp.org>
4947             Jim Meyering  <meyering@redhat.com>
4948
4949         tests: Avoid spurious error message on platforms without mktemp program.
4950         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4951
4952 2011-12-04  Bruno Haible  <bruno@clisp.org>
4953
4954         sethostname: Fix documentation.
4955         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4956         "not fixed" section.
4957
4958 2011-12-03  Bruno Haible  <bruno@clisp.org>
4959
4960         gnulib-tool: Verify that the License field is present and non-empty.
4961         * gnulib-tool (func_get_license_raw): New function, extracted from
4962         func_get_license.
4963         (func_get_license): Use it. Warn if the module is not a test module and
4964         has no license.
4965         Suggested by Jim Meyering.
4966
4967 2011-12-03  Bruno Haible  <bruno@clisp.org>
4968
4969         sethostname tests: Fix link error on mingw.
4970         * tests/test-sethostname1.c: New file, extracted from
4971         tests/test-sethostname.c.
4972         * tests/test-sethostname2.c: New file, extracted from
4973         tests/test-sethostname.c.
4974         * tests/test-sethostname.c: Remove file.
4975         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4976         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4977         (Depends-on): Add gethostname.
4978         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4979         Link the latter with $(GETHOSTNAME_LIB).
4980
4981         sethostname tests: Fix compilation error on mingw.
4982         * tests/test-sethostname.c: Don't include <sys/types.h>.
4983         (geteuid): Use a dummy value without uid_t.
4984         * modules/sethostname-tests (Depends-on): Remove sys_types.
4985
4986         sethostname tests: Avoid a gcc warning.
4987         * tests/test-sethostname.c (main): Remove an unused variable.
4988
4989         Tweak last commit.
4990         * modules/sethostname-tests (Files): Sort by decreasing importance.
4991         (configure.ac): Check for geteuid.
4992         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4993         the test when there's nothing to test. Drop an unnecessary cast.
4994         Improve an error message. Verify that the final sethostname() call
4995         succeeds.
4996
4997 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4998
4999         Add a test suite for the sethostname module.
5000         * modules/sethostname-tests: New file.  A test program
5001         for the sethostname module.
5002         * tests/test-sethostname.c: Likewise.
5003
5004 2011-12-03  Bruno Haible  <bruno@clisp.org>
5005
5006         Tweak last commit.
5007         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5008         Fix preprocessor directives indentation. Fix typos.
5009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5010         * modules/unistd (Makefile): Likewise.
5011
5012 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5013
5014         Integrate the sethostname module into unistd.
5015         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5016         into the unistd.h header.
5017         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5018         preprocessor directives.
5019         * modules/unistd: Setup the Makefile substitutions of the
5020         SETHOSTNAME preprocessor directives.
5021
5022 2011-12-03  Bruno Haible  <bruno@clisp.org>
5023
5024         Tweak last commit.
5025         * lib/sethostname.c: Don't include <string.h>.
5026         (sethostname): No need to copy the argument string to the stack. Don't
5027         call clearerr. Preserve errno when fprintf failed.
5028         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5029         Don't invoke AC_REPLACE_FUNCS.
5030         * modules/sethostname (Link): Remove empty section.
5031         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5032         failure problem.
5033
5034 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5035
5036         New module 'sethostname'.
5037         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5038         for systems that lack it.
5039         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5040         sethostname declaration and function.
5041         * modules/sethostname: New file.  Define the sethostname module.
5042
5043 2011-12-03  Bruno Haible  <bruno@clisp.org>
5044
5045         Tweak last commit.
5046         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5047
5048 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5049
5050         Split the HOST_NAME_MAX detection into a separate m4 macro.
5051         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5052         macro so it can be used by the pending sethostname module.
5053
5054 2011-12-03  Bruno Haible  <bruno@clisp.org>
5055
5056         Fix module descriptions syntax.
5057         * modules/argv-iter (License): Fix syntax.
5058         * modules/di-set (License): Likewise.
5059         * modules/ino-map (License): Likewise.
5060         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5061
5062 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5063
5064         stdalign: port to Clang 3.0
5065         Problem reported by Simon Josefsson in
5066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5067         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5068         which has <stdalign.h> but which does not define alignof.
5069         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5070
5071 2011-12-01  Eric Blake  <eblake@redhat.com>
5072
5073         mktempd: silence dd usage
5074         * build-aux/mktempd (rand_bytes): Silence dd.
5075
5076 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5077
5078         manywarnings: Don't mention gcc version in docstring.
5079         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5080         Jim Meyering <meyering@redhat.com>.
5081
5082 2011-11-30  Jim Meyering  <meyering@redhat.com>
5083
5084         hash: mark a few floating point constants with "f" suffix
5085         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5086         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5087         floating point constants with "f", since they're destined to be
5088         saved/used as "float"s.
5089
5090 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5091
5092         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5093         * tests/test-float.c (test_long_double): Correct and re-enable the
5094         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5095
5096 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5097
5098         Avoid subtracting two pointers that don't point into the same block.
5099         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5100         only pointers into the same memory block are subtracted. We cannot
5101         assume that sizeof (ptrdiff_t) == sizeof (void *).
5102
5103 2011-11-29  Eric Blake  <eblake@redhat.com>
5104
5105         maint.mk: add syntax check for use of compare from init.sh
5106         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5107         moved here from coreutils.
5108
5109         manywarnings: drop -Wunsuffixed-float-constants
5110         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5111         '1.0D', which is the only way to silence this warning for 'double'.
5112
5113 2011-11-29  Jim Meyering  <meyering@redhat.com>
5114
5115         hash: mark compute_bucket_size with the pure attribute
5116         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5117
5118         quotearg, propername: correct pragma guard expression
5119         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5120         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5121
5122 2011-11-28  Jim Meyering  <meyering@redhat.com>
5123
5124         propername: do not mark proper_name with the const attribute
5125         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5126         since it examines data pointed to by its parameter.
5127         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5128         the suggestion from -Wsuggest-attribute=const.
5129
5130         propername: mark one more function as const
5131         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5132
5133 2011-11-27  Jim Meyering  <meyering@redhat.com>
5134
5135         mark functions with const and pure attributes
5136
5137         Mark functions per suggestions from gcc-4.6 when using these options:
5138         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5139         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5140         Follow these guidelines: when possible, apply the attribute to
5141         an extern declaration, not to its definition.  Apply it to the
5142         definition only when the definition is static.
5143         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5144         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5145         * lib/base64.h (isbase64): Likewise.
5146         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5147         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5148         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5149         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5150         (c_tolower, c_toupper): Likewise.
5151         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5152         * lib/chdir-long.c (find_non_slash): Likewise.
5153         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5154         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5155         * lib/file-type.h (file_type): Likewise.
5156         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5157         * lib/filevercmp.c (verrevcmp): Likewise.
5158         * lib/freadahead.h (freadahead): Likewise.
5159         * lib/fts.c (fts_maxarglen): Likewise.
5160         * lib/hash-pjw.h (hash_pjw): Likewise.
5161         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5162         * lib/hash.c (is_prime, next_prime): Likewise.
5163         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5164         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5165         (hash_table_ok, hash_get_first, hash_string): Likewise.
5166         (compute_bucket_size): Likewise.
5167         * lib/i-ring.h (i_ring_empty): Likewise.
5168         * lib/isnan.c (isnanl): Likewise.
5169         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5170         * lib/memcasecmp.h (memcasecmp): Likewise.
5171         * lib/memchr2.h (memchr2): Likewise.
5172         * lib/memcmp2.h (memcmp2): Likewise.
5173         * lib/parse-datetime.y (lookup_zone): Likewise.
5174         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5175         [!WINDOWS_SOCKETS]: Likewise.
5176         * lib/strnlen1.h (strnlen1): Likewise.
5177         * lib/uniwidth.in.h (uc_width): Likewise.
5178         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5179         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5180         (quoting_options_from_style): Add a comment.
5181         * lib/propername.h (proper_name): Add a comment.
5182
5183 2011-11-27  Bruno Haible  <bruno@clisp.org>
5184
5185         Remove unused macros from !_LIBC code in glibc-borrowed files.
5186         * lib/fnmatch.c (STRCOLL): Remove macro.
5187         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5188         * lib/glob.c (__stat, __readdir64): Remove macros.
5189         * lib/tempname.c (__open64, __xstat64): Remove macros.
5190         Suggested by Paul Eggert.
5191
5192 2011-11-27  Bruno Haible  <bruno@clisp.org>
5193
5194         getcwd: Fix link error on MSVC 9.
5195         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5196
5197 2011-11-27  Bruno Haible  <bruno@clisp.org>
5198
5199         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5200         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5201         HAVE_OPENDIR is 0.
5202         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5203         HAVE_CLOSEDIR is 0.
5204         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5205         is 0.
5206         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5207
5208 2011-11-27  Bruno Haible  <bruno@clisp.org>
5209
5210         getcwd: Fix bug from 2011-08-17.
5211         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5212         platforms that need it.
5213         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5214         code of 4 to be a failure, not a success. This ensures that
5215         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5216
5217 2011-11-27  Bruno Haible  <bruno@clisp.org>
5218
5219         binary-io tests: Avoid test failure on mingw when libtool is used.
5220         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5221         Don't verify the size of t-bin-out1.tmp here.
5222         * tests/test-binary-io.sh: Verify it here.
5223         Reported by Simon Josefsson.
5224
5225 2011-11-26  Bruno Haible  <bruno@clisp.org>
5226
5227         Fix conflict between two instantiations of module 'unistd'.
5228         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5229         ${include_guard_prefix} also in the autoconf snippet.
5230         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5232         GNULIB_UNISTD_H_GETOPT.
5233         * modules/getopt-posix (configure.ac): Set the
5234         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5235         * modules/getopt-gnu (configure.ac): Likewise.
5236         * modules/unistd (Makefile.am): Change the substitution value of
5237         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5238         Reported by Simon Josefsson.
5239
5240 2011-11-25  Bruno Haible  <bruno@clisp.org>
5241
5242         pagealign_alloc: Doc and comments.
5243         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5244         module.
5245         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5246
5247 2011-11-25  Jim Meyering  <meyering@redhat.com>
5248
5249         test-update-copyright.sh: avoid false-positive failure
5250         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5251         around false positive failure on Cygwin/Windows.  The latter was
5252         matching erroneously-created files with names like
5253         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5254
5255 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5256
5257         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5258         * m4/valgrind-tests.m4: Check that the parameters that will be
5259         used works, not just a subset of them.  Reported by Bruno Haible
5260         <bruno@clisp.org>.
5261
5262 2011-11-24  Jim Meyering  <meyering@redhat.com>
5263
5264         test-stdalign.c: comment out long double tests
5265         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5266         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5267         error: '_Alignas' specifiers cannot reduce alignment of \
5268         'static_longdouble_alignas'.
5269
5270 2011-11-22  Jim Meyering  <meyering@redhat.com>
5271
5272         init.sh: make "compare /dev/null FILE" output more readable
5273         * tests/init.sh (compare_): Document the preferred order of arguments.
5274         (emit_diff_u_header_): New function.
5275         (compare_dev_null_): Emit a simulated diff, rather than just the
5276         contents of the unexpected file.  Suggestion from Bruno Haible.
5277
5278 2011-11-21  Jim Meyering  <meyering@redhat.com>
5279             Eric Blake  <eblake@redhat.com>
5280
5281         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5282         * tests/init.sh: Make our compare function slightly more portable.
5283         Reported by Bruno Haible in
5284         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5285
5286 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5287
5288         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5289         before using it, in code that ends up in config.h.
5290
5291 2011-11-20  Bruno Haible  <bruno@clisp.org>
5292
5293         getcwd: Work around getcwd bug on AIX 5..7.
5294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5295         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5296         Use a different value for gl_cv_func_getcwd_path_max. Move the
5297         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5298         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5299         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5300         Define HAVE_MINIMALLY_WORKING_GETCWD.
5301         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5302         where it is not even minimally working, that is, on AIX.
5303         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5304         m4/getcwd-path-max.m4.
5305         (main): Update exit code computation.
5306         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5307         getcwd does not handle long file names.
5308
5309 2011-11-20  Bruno Haible  <bruno@clisp.org>
5310
5311         getcwd: Fix bug from 2009-09-10.
5312         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5313         like "no".
5314
5315 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5316
5317         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5318
5319 2011-11-20  Bruno Haible  <bruno@clisp.org>
5320
5321         fma tests: Avoid shadowing local variables.
5322         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5323         expected.
5324
5325 2011-11-20  Bruno Haible  <bruno@clisp.org>
5326
5327         copysignf tests: Fix.
5328         * tests/test-copysignf.c: Fix signature check.
5329
5330 2011-11-20  Bruno Haible  <bruno@clisp.org>
5331
5332         fma: Remove unused code.
5333         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5334         unused macros.
5335
5336 2011-11-20  Bruno Haible  <bruno@clisp.org>
5337
5338         sethostname: Fix doc about AIX.
5339         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5340         sethostname; it has it.
5341
5342         sethostname: Mention more portability problems.
5343         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5344         problem.
5345         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5346
5347 2011-11-19  Bruno Haible  <bruno@clisp.org>
5348
5349         Depend on module fcntl-h when AT_FDCWD is used.
5350         * modules/utimens (Depends-on): Add fcntl-h.
5351         * modules/areadlinkat (Depends-on): Likewise.
5352         * modules/areadlinkat-with-size (Depends-on): Likewise.
5353         * modules/faccessat (Depends-on): Likewise.
5354         * modules/fchmodat (Depends-on): Likewise.
5355         * modules/fchownat (Depends-on): Likewise.
5356         * modules/getcwd (Depends-on): Likewise.
5357         * modules/mkdirat (Depends-on): Likewise.
5358         * modules/mkfifoat (Depends-on): Likewise.
5359         * modules/readlinkat (Depends-on): Likewise.
5360         * modules/symlinkat (Depends-on): Likewise.
5361         * modules/dup2-tests (Depends-on): Likewise.
5362         * modules/fdutimensat-tests (Depends-on): Likewise.
5363         * modules/futimens-tests (Depends-on): Likewise.
5364
5365 2011-11-19  Bruno Haible  <bruno@clisp.org>
5366
5367         euidaccess: Update a comment.
5368         * lib/euidaccess.c: Update comment about platforms with faccessat.
5369
5370 2011-11-19  Bruno Haible  <bruno@clisp.org>
5371
5372         openat: Fix file list.
5373         * modules/openat (Files): Remove lib/at-func.c.
5374
5375 2011-11-19  Bruno Haible  <bruno@clisp.org>
5376
5377         fstatat: Simplify.
5378         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5379         gnulib should define rpl_fstatat, there is a
5380         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5381
5382 2011-11-19  Bruno Haible  <bruno@clisp.org>
5383
5384         Ensure 'inline' can be used in tests/test-utimens-common.h.
5385         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5386         * modules/futimens-tests (configure.ac): Likewise.
5387         * modules/utimens-tests (configure.ac): Likewise.
5388         * modules/utimensat-tests (configure.ac): Likewise.
5389
5390 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5391
5392         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5393         not hash_insert0.
5394         (hash_insert_if_absent): Doc fix.
5395
5396 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5397
5398         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5399
5400 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5401
5402         test-getcwd: disambiguate exit status
5403         * tests/test-getcwd.c (test_long_name): Return 0..7.
5404         (main): Exit with an unambiguous exit status.  The old
5405         code yielded a mysterious mixture of two failure codes.
5406
5407         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5408         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5409         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5410         rpl_fstatat or fstatat.  This should fix the other problem
5411         reported by Kai Habel in
5412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5413         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5415         and I reproduced it on a Solaris 8 host we still have in production.
5416
5417 2011-11-18  Jim Meyering  <meyering@redhat.com>
5418
5419         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5420         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5421         Add a sentence to the comment.
5422         (hash_insert0): New function that simply calls hash_insert_if_absent.
5423         * lib/hash.h (hash_insert_if_absent): Declare it.
5424         (hash_insert0): Add deprecation attribute.
5425         (_GL_ATTRIBUTE_DEPRECATED): Define.
5426         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5427         not hash_insert0.
5428         * NEWS: Mention it, even though it's not really an incompatible change.
5429
5430 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5431
5432         openat: avoid compilation failure due to lack of <errno.h> inclusion
5433         * lib/openat.c: Include <errno.h>.
5434
5435 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5436
5437         * modules/getcwd (Depends-on): Add fdopendir.
5438         This fixes one of the two problems reported by Kai Habel in
5439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5440
5441         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5442         stdalign problem reported by Ian Beckwith in
5443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5444         * modules/crypto/gc-arcfour (Depends-on):
5445         Depend conditionally on crypto/arcfour.
5446         * modules/crypto/gc-arctwo (Depends-on):
5447         Depend conditionally on crypto/arctwo.
5448         * modules/crypto/gc-des (Depends-on):
5449         Depend conditionally on crypto/des.
5450         * modules/crypto/gc-hmac-md5 (Depends-on):
5451         Depend conditionally on crypto/hmac-md5.
5452         * modules/crypto/gc-hmac-sha1 (Depends-on):
5453         Depend conditionally on crypto/hmac-sha1.
5454         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5455         * modules/crypto/gc-md4 (Depends-on):
5456         Depend conditionally on crypto/md4.
5457         * modules/crypto/gc-md5 (Depends-on):
5458         Depend conditionally on crypto/md5.
5459         * modules/crypto/gc-rijndael (Depends-on):
5460         Depend conditionally on crypto/rijndael.
5461         * modules/crypto/gc-sha1 (Depends-on):
5462         Depend conditionally on crypto/sha1.
5463         * modules/crypto/gc-arcfour:
5464         * modules/crypto/gc-arctwo:
5465         * modules/crypto/gc-des:
5466         * modules/crypto/gc-hmac-md5:
5467         * modules/crypto/gc-hmac-sha1:
5468         * modules/crypto/gc-md2:
5469         * modules/crypto/gc-md4:
5470         * modules/crypto/gc-md5:
5471         * modules/crypto/gc-rijndael:
5472         * modules/crypto/gc-sha1:
5473         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5474         now that the conditional dependencies do the work for us.
5475
5476 2011-11-17  Jim Meyering  <meyering@redhat.com>
5477
5478         tests: factor st_ctime-comparison out of two headers
5479         * tests/test-utimens-common.h (ctime_compare): Define.
5480         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5481         * tests/test-lutimens.h (test_lutimens): Likewise.
5482         * tests/test-utimens.h (test_utimens): Likewise.
5483
5484         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5485         Invoke the test program via an init.sh-using wrapper.
5486         * tests/test-getcwd.sh: New file.
5487         * modules/getcwd-tests (Files): Add it.
5488         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5489
5490 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5491
5492         gitlog-to-changelog: support multi-author commits.
5493         The FSF cares about keeping track of all authors of patches to its
5494         projects, but Git doesn't provide obvious support for multi-author
5495         changesets. Consensus seems to be forming around the use of extra
5496         Signed-off-by inspired lines in the log message formatted as
5497         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5498         multi-author commits between version control systems.
5499         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5500         log message and output in standard ChangeLog multi-author format.
5501         Reported by Peter Rosin <peda@lysator.liu.se>
5502
5503 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5504             Bruno Haible  <bruno@clisp.org>
5505
5506         Fix some modules' file list.
5507         * modules/fstatat (Files): Add m4/lstat.m4.
5508         * modules/openat (Files): Likewise.
5509         * modules/unlinkat (Files): Likewise.
5510
5511 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5512
5513         maint.mk: fix tight-scope.mk generation in VPATH builds.
5514         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5515         reference with $(srcdir) so that the file is found correctly even
5516         when running `make syntax-check' in a VPATH build.
5517
5518 2011-11-13  Bruno Haible  <bruno@clisp.org>
5519             Jim Meyering  <meyering@redhat.com>
5520
5521         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5522         * tests/init.sh (compare): Remove "No differences encountered" or
5523         synonymous output from the 'diff' program.
5524
5525 2011-11-13  Bruno Haible  <bruno@clisp.org>
5526
5527         Makefile: Tweak indentation.
5528         * Makefile: Use tab as first character in every line that contains rule
5529         commands.
5530
5531 2011-11-13  Bruno Haible  <bruno@clisp.org>
5532
5533         Syntax check for copyright statements.
5534         * check-copyright: New file.
5535         * Makefile (sc_check_copyright): New rule.
5536
5537 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5538
5539         * build-aux/git-version-gen: Add --prefix to configure the tag
5540         match string.
5541
5542 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5543
5544         * build-aux/git-version-gen: Add --help and --version.
5545
5546 2011-11-12  Jim Meyering  <meyering@redhat.com>
5547
5548         revamp the other test-exclude?.sh scripts to use init.sh, too
5549         * tests/test-exclude1.sh: Use init.sh.
5550         * tests/test-exclude2.sh: Likewise.
5551         * tests/test-exclude3.sh: Likewise.
5552         * tests/test-exclude4.sh: Likewise.
5553         * tests/test-exclude5.sh: Likewise.
5554         * tests/test-exclude6.sh: Likewise.
5555         * tests/test-exclude7.sh: Likewise.
5556         * tests/test-exclude8.sh: Likewise.
5557         * modules/exclude-tests (Files): List init.sh.
5558
5559         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5560         These shell scripts ignored failure of the binary test-exclude,
5561         so making the latter return 77 didn't cause them to be skipped.
5562         * tests/test-exclude5.sh: Exit with test-exclude's error status
5563         when that program fails.  Revamp to use init.sh.
5564         * tests/test-exclude2.sh: Likewise.
5565
5566         test-exclude: fix a typo
5567         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5568
5569 2011-11-11  Bruno Haible  <bruno@clisp.org>
5570
5571         obstack: Fix compilation error on MSVC 9.
5572         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5573
5574 2011-11-11  Jim Meyering  <meyering@redhat.com>
5575
5576         test-exclude: skip tests rather than failing on deficient systems
5577         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5578         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5579         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5580         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5581
5582 2011-11-10  Bruno Haible  <bruno@clisp.org>
5583
5584         ptsname_r test: Avoid gcc warning on glibc systems.
5585         * tests/test-ptsname_r.c (null_ptr): New function.
5586         (test_errors): Use it.
5587
5588 2011-11-10  Bruno Haible  <bruno@clisp.org>
5589
5590         ptsname_r: Avoid compilation error on OSF/1 5.1.
5591         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5593         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5594         function is not declared or incompatibly declared.
5595         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5596         * modules/ptsname_r (Depends-on, configure.ac): Update.
5597         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5598
5599 2011-11-10  Bruno Haible  <bruno@clisp.org>
5600
5601         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5602         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5603         When cross-compiling, guess yes on all platforms except AIX.
5604         Reported by Ludovic Courtès <ludo@gnu.org>.
5605
5606 2011-11-09  Bruno Haible  <bruno@clisp.org>
5607
5608         ptsname_r tests: Fix bugs.
5609         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5610         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5611
5612 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5613
5614         fstatat: work with cross-compilation
5615         Problem reported by Ludovic Courtès in
5616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5617         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5618         "cross-compiling" and assume the bug is present.  Replace
5619         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5620         an inverted sense, to be more conservative about our assumptions.
5621         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5622
5623 2011-11-09  Bruno Haible  <bruno@clisp.org>
5624
5625         Improve MODULES.html output.
5626         * modules/mkfifoat (Description): Use the word "function".
5627         * modules/readlinkat (Description): Likewise.
5628         * modules/symlinkat (Description): Likewise.
5629
5630 2011-11-09  Eric Blake  <eblake@redhat.com>
5631
5632         ptsname_r-tests: new test module
5633         * modules/ptsname_r-tests: New module.
5634         * tests/test-ptsname_r.c: New file.
5635
5636         ptsname_r: new module
5637         * modules/ptsname_r: New module.
5638         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5639         * lib/ptsname.c (__ptsname_r): Split...
5640         * lib/ptsname_r.c: ...into new file.
5641         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5642         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5643         * modules/stdlib (Makefile.am): Substitute witnesses.
5644         * lib/stdlib.in.h (ptsname_r): Declare it.
5645         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5646         * MODULES.html.sh (Misc): Likewise.
5647         * modules/ptsname (Depends-on): Alter dependency.
5648         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5649
5650 2011-11-09  Jim Meyering  <meyering@redhat.com>
5651
5652         announce-gen: be more concise when there's only one URL+tarball
5653         * build-aux/announce-gen (get_tool_versions): When you distribute
5654         only one type of tarball, combine the first two "Here are..."
5655         sections and make the key-checking grammar independent of
5656         how many tarballs there are.
5657
5658 2011-11-09  Eric Blake  <eblake@redhat.com>
5659
5660         openpty: provide a stub on mingw
5661         * lib/pty.in.h (includes): Provide forward declarations.
5662         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5663
5664         raise: fix mingw handling of SIGPIPE
5665         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5666
5667 2011-11-08  Bruno Haible  <bruno@clisp.org>
5668
5669         More conditional dependencies.
5670         * modules/faccessat (Depends-on): Add conditions.
5671         * modules/fchmodat (Depends-on): Likewise.
5672         * modules/fchownat (Depends-on): Likewise.
5673         * modules/fstatat (Depends-on): Likewise.
5674         * modules/mkfifoat (Depends-on): Likewise.
5675         * modules/readlinkat (Depends-on): Likewise.
5676         * modules/symlinkat (Depends-on): Likewise.
5677         * modules/unlinkat (Depends-on): Likewise.
5678         * modules/utimensat (Depends-on): Likewise.
5679         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5680         * modules/linkat (Depends-on): Refine the conditions.
5681         * modules/renameat (Depends-on): Likewise.
5682
5683 2011-11-08  Bruno Haible  <bruno@clisp.org>
5684
5685         faccessat: Move AC_LIBOBJ invocation to module description.
5686         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5687         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5688         invocation from here...
5689         * modules/faccessat (configure.ac): ... to here. Invoke
5690         gl_PREREQ_FACCESSAT.
5691
5692 2011-11-08  Bruno Haible  <bruno@clisp.org>
5693
5694         faccessat: Simplify autoconf macro.
5695         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5696         gl_FUNC_EUIDACCESS.
5697
5698 2011-11-08  Bruno Haible  <bruno@clisp.org>
5699
5700         renameat: Fix dependencies.
5701         * modules/renameat (Depends-on): Add stdbool.
5702
5703 2011-11-08  Bruno Haible  <bruno@clisp.org>
5704
5705         mkfifoat: Fix module description.
5706         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5707         not gl_UNISTD_MODULE_INDICATOR.
5708
5709 2011-11-08  Bruno Haible  <bruno@clisp.org>
5710
5711         fstatat: Remove unused dependency.
5712         * modules/fstatat (Depends-on): Remove fstat.
5713
5714 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5715
5716         GNUmakefile: behave when Makefile is missing.
5717         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5718
5719 2011-11-08  Bruno Haible  <bruno@clisp.org>
5720
5721         openat: Conditionalize dependencies.
5722         * lib/openat.c: Reduce the scope of some #includes.
5723         * modules/openat (Depends-on): Add conditions.
5724
5725 2011-11-07  Jim Meyering  <meyering@redhat.com>
5726
5727         maint.mk: extract GPG key ID without using a temporary file
5728         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5729         without using a temporary file.  Based on a suggestion from Werner Koch
5730         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5731
5732 2011-11-07  Eric Blake  <eblake@redhat.com>
5733
5734         grantpt: fix typo
5735         * lib/stdlib.in.h (grantpt): Check correct function.
5736
5737         maint.mk: silence new syntax check
5738         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5739
5740 2011-11-06  Bruno Haible  <bruno@clisp.org>
5741
5742         Doc about floating-point and math API.
5743         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5744         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5745
5746 2011-11-06  Bruno Haible  <bruno@clisp.org>
5747
5748         stdalign tests: Skip the test when compiled by Sun C.
5749         * tests/test-stdalign.c (main): Skip the test on Sun C.
5750
5751 2011-11-06  Bruno Haible  <bruno@clisp.org>
5752
5753         ansi-c++-opt: Complete the 2011-06-05 change.
5754         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5755         does not support namespaces, set the variable to "no", not to ":".
5756
5757 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5758
5759         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5760
5761 2011-11-06  Bruno Haible  <bruno@clisp.org>
5762
5763         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5764         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5765         (minus_zerol) [HP-UX]: New macro.
5766         (unary_minus) [HP-UX]: New function.
5767         (copysignl) [HP-UX]: Use unary_minus function.
5768
5769 2011-11-06  Bruno Haible  <bruno@clisp.org>
5770
5771         ldexp, ldexpf, ldexpl: Enhance tests.
5772         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5773         and tests/test-ldexpl.c.
5774         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5775         LDEXP, MIN_EXP, MAX_EXP): New macros.
5776         Include test-ldexp.h.
5777         (main): Just call test_function.
5778         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5779         infinity.h, nan.h.
5780         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5781         MAX_EXP): New macros.
5782         Include test-ldexp.h.
5783         (x, y): Remove variables.
5784         (main): Just call test_function.
5785         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5786         infinity.h, nan.h.
5787         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5788         MAX_EXP): New macros.
5789         Include test-ldexp.h.
5790         (x, y): Remove variables.
5791         (main): Just call test_function.
5792         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5793         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5794         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5795         (Depends-on): Add isnand-nolibm, signbit, float.
5796         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5797         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5798         (Depends-on): Add isnanf-nolibm, signbit, float.
5799
5800 2011-11-06  Bruno Haible  <bruno@clisp.org>
5801
5802         math tests: Cosmetics.
5803         * tests/test-math-c++.cc: Reorder declarations.
5804
5805 2011-11-05  Bruno Haible  <bruno@clisp.org>
5806
5807         fma*: Simplify test.
5808         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5809         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5810
5811         Tests for module 'fmal'.
5812         * modules/fmal-tests: New file.
5813         * tests/test-fmal1.c: New file.
5814         * tests/test-fmal2.c: New file.
5815
5816         New module 'fmal'.
5817         * lib/math.in.h (fmal): New declaration.
5818         * lib/fmal.c: New file.
5819         * m4/fmal.m4: New file.
5820         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5822         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5823         REPLACE_FMAL.
5824         * modules/fmal: New file.
5825         * doc/posix-functions/fmal.texi: Mention the new module and the various
5826         bugs.
5827
5828         Tests for module 'fmaf'.
5829         * modules/fmaf-tests: New file.
5830         * tests/test-fmaf1.c: New file.
5831         * tests/test-fmaf2.c: New file.
5832
5833         New module 'fmaf'.
5834         * lib/math.in.h (fmaf): New declaration.
5835         * lib/fmaf.c: New file.
5836         * m4/fmaf.m4: New file.
5837         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5839         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5840         REPLACE_FMAF.
5841         * modules/fmaf: New file.
5842         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5843         bugs.
5844
5845         Tests for module 'fma'.
5846         * modules/fma-tests: New file.
5847         * tests/test-fma1.c: New file.
5848         * tests/test-fma1.h: New file.
5849         * tests/test-fma2.c: New file.
5850         * tests/test-fma2.h: New file.
5851
5852         New module 'fma'.
5853         * lib/math.in.h (fma): New declaration.
5854         * lib/fma.c: New file.
5855         * m4/fma.m4: New file.
5856         * m4/fegetround.m4: New file.
5857         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5859         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5860         REPLACE_FMA.
5861         * modules/fma: New file.
5862         * doc/posix-functions/fma.texi: Mention the new module and the various
5863         bugs.
5864
5865         Extend gl_MATHFUNC.
5866         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5867         Support 'void' as argument type.
5868         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5869
5870 2011-11-05  Jim Meyering  <meyering@redhat.com>
5871
5872         maint.mk: also prohibit inclusion of dirent.h without use
5873         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5874
5875 2011-11-05  Bruno Haible  <bruno@clisp.org>
5876
5877         ldexpl tests: Avoid test failure on MSVC 9.
5878         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5879         value. Needed in order to enforce the conversion from a value greater
5880         than LDBL_MAX to Infinity.
5881
5882 2011-11-05  Bruno Haible  <bruno@clisp.org>
5883
5884         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5885         * modules/at-internal: New file, extracted from modules/openat.
5886         * modules/openat-h: New file.
5887         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5888         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5889         * modules/openat (Description): Add reference to POSIX function.
5890         (Files): Remove lib/openat.h, lib/openat-proc.c.
5891         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5892         intprops, unistd.
5893         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5894         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5895         gl_FCNTL_MODULE_INDICATOR.
5896         (Include): Remove unistd.h, openat.h.
5897         * modules/areadlinkat (Files): Add lib/at-func.c.
5898         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5899         openat-die, openat-h, save-cwd.
5900         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5901         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5902         openat-die, openat-h, save-cwd, unistd.
5903         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5904         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5905         openat-h, save-cwd. Remove fcntl-h, openat.
5906         * modules/fchmodat (Files): Remove lib/openat.h.
5907         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5908         openat, stdbool, unistd.
5909         * modules/fchownat (Files): Remove lib/openat.h.
5910         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5911         openat, stdbool, sys_stat.
5912         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5913         lib/openat-proc.c.
5914         (Depends-on): Add at-internal.
5915         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5916         * modules/fstatat (Files): Remove lib/openat.h.
5917         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5918         stdbool, unistd.
5919         * modules/fts (Depends-on): Add openat-h.
5920         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5921         openat.
5922         * modules/mkdirat (Files): Remove lib/openat.h.
5923         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5924         openat, stdbool, sys_stat.
5925         * modules/mkfifoat (Files): Add lib/at-func.c.
5926         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5927         openat-h, save-cwd. Remove fcntl-h, openat.
5928         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5929         * modules/readlinkat (Files): Add lib/at-func.c.
5930         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5931         openat-h, save-cwd. Remove fcntl-h, openat.
5932         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5933         openat.
5934         * modules/selinux-at (Files): Add lib/at-func.c.
5935         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5936         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5937         * modules/symlinkat (Files): Add lib/at-func.c.
5938         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5939         openat-h, save-cwd. Remove fcntl-h, openat.
5940         * modules/unlinkat (Files): Remove lib/openat.h.
5941         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5942         stdbool.
5943         * modules/utimensat (Files): Add lib/at-func.c.
5944         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5945         openat-die, openat-h, save-cwd.
5946         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5947         * modules/fdutimensat-tests (Depends-on): Add openat.
5948         * modules/fstatat-tests (Depends-on): Add openat-h.
5949         * modules/readlinkat-tests (Depends-on): Add openat.
5950         * modules/symlinkat-tests (Depends-on): Add openat.
5951
5952 2011-11-05  Bruno Haible  <bruno@clisp.org>
5953
5954         openat: Include <stdbool.h>.
5955         * lib/openat.c: Include <stdbool.h>.
5956
5957 2011-11-04  Bruno Haible  <bruno@clisp.org>
5958
5959         fchownat, renameat, unlinkat: Fix dependencies.
5960         * modules/fchownat (Depends-on): Add fstatat.
5961         * modules/renameat (Depends-on): Likewise.
5962         * modules/unlinkat (Depends-on): Likewise.
5963
5964 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5965
5966         openat: remove direct dependency on dirent
5967         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5968         and hasn't been needed ever since fdopendir was split into its own
5969         module on 2009-08-31.
5970         * modules/openat (Depends-on): Remove dirent.
5971
5972 2011-11-04  Bruno Haible  <bruno@clisp.org>
5973
5974         renameat: Optimize code size.
5975         * modules/renameat (configure.ac): Don't compile at-func2.c if
5976         REPLACE_RENAMEAT is 1.
5977
5978 2011-11-04  Bruno Haible  <bruno@clisp.org>
5979
5980         openat tests: Fix file list.
5981         * modules/openat-tests (Files): Add tests/test-open.h.
5982
5983 2011-11-04  Bruno Haible  <bruno@clisp.org>
5984
5985         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5986         * modules/fchmodat (Depends-on): Add openat-die.
5987         * modules/fchownat (Depends-on): Likewise.
5988         * modules/linkat (Depends-on): Likewise.
5989         * modules/renameat (Depends-on): Likewise.
5990         * modules/openat (Depends-on): Add dirent.
5991
5992 2011-11-04  Jim Meyering  <meyering@redhat.com>
5993
5994         at-func*.c: fix comments
5995         * lib/at-func2.c: Correct/improve first-line comment.
5996         * lib/at-func.c: Correct grammar in first-line comment.
5997
5998 2011-11-04  Bruno Haible  <bruno@clisp.org>
5999
6000         New module 'mkdirat', split off from module 'openat'.
6001         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6002         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6003         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6004         * modules/mkdirat: New file, extracted from modules/openat.
6005         * modules/openat (Files): Remove lib/mkdirat.c.
6006         (Depends-on): Remove mkdir.
6007         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6008         (Include): Remove <sys/stat.h>.
6009         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6010         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6011         tests/test-mkdir.h.
6012         (Depends-on): Remove ignore-value.
6013         (Makefile.am): Remove rules for test-mkdirat.
6014         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6015         of module 'openat'.
6016         * NEWS: Mention the change.
6017
6018 2011-11-04  Bruno Haible  <bruno@clisp.org>
6019
6020         closedir: Avoid warning on mingw.
6021         * lib/closedir.c: Include <unistd.h>.
6022
6023 2011-11-04  Bruno Haible  <bruno@clisp.org>
6024
6025         New module 'fstatat', split off from module 'openat'.
6026         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6027         defined.
6028         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6029         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6030         gl_FUNC_FSTATAT.
6031         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6032         * modules/fstatat: New file, extracted from modules/openat.
6033         * modules/openat (Files): Remove lib/fstatat.c.
6034         (Depends-on): Remove lstat.
6035         (configure.ac): Remove AC_LIBOBJ of fstatat.
6036         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6037         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6038         tests/test-lstat.h, tests/test-stat.h.
6039         (Depends-on): Remove getcwd-lgpl.
6040         (Makefile.am): Remove rules for test-fstatat.
6041         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6042         of module 'openat'.
6043         * NEWS: Mention the change.
6044         * modules/getcwd (Depends-on): Add fstatat.
6045         * modules/linkat (Depends-on): Likewise.
6046         * modules/mkfifoat-tests (Depends-on): Likewise.
6047         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6048
6049 2011-11-03  Bruno Haible  <bruno@clisp.org>
6050
6051         New module 'unlinkat', split off from module 'openat'.
6052         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6053         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6054         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6055         * modules/unlinkat: New file, extracted from modules/openat. Correct
6056         the dependency conditions.
6057         * modules/openat (Files): Remove lib/unlinkat.c.
6058         (Depends-on): Remove rmdir, unlink.
6059         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6060         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6061         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6062         tests/test-rmdir.h, tests/test-unlink.h.
6063         (Depends-on): Remove unlinkdir.
6064         (Makefile.am): Remove rules for test-unlinkat.
6065         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6066         of module 'openat'.
6067         * NEWS: Mention the change.
6068         * modules/linkat-tests (Depends-on): Add unlinkat.
6069         * modules/mkfifoat-tests (Depends-on): Likewise.
6070         * modules/readlinkat-tests (Depends-on): Likewise.
6071
6072 2011-11-02  Bruno Haible  <bruno@clisp.org>
6073
6074         New module 'fchmodat', split off from module 'openat'.
6075         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6076         defined.
6077         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6078         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6079         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6080         * modules/fchmodat: New file, extracted from modules/openat.
6081         * modules/openat (Files): Remove lib/fchmodat.c.
6082         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6083         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6084         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6085         (Makefile.am): Remove rules for test-fchmodat.
6086         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6087         of module 'openat'.
6088         * NEWS: Mention the change.
6089
6090 2011-11-02  Jim Meyering  <meyering@redhat.com>
6091
6092         putenv: indent #definition of "environ" to placate cppi
6093         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6094
6095         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6096         Git logs are often treated as immutable, because editing them
6097         changes the SHA1 checksums of all descendants.  Thus, errors in
6098         git logs tend to stay there forever.  However, when we generate
6099         a ChangeLog file -- typically for distribution -- from that git log,
6100         we can actually make corrections in the generated file.  The key
6101         lies in recording in machine-readable/applicable form the desired
6102         corrections.  See --help for description and an example.
6103         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6104         (usage): Describe it; alphabetize option descriptions.
6105         (main): Honor the new option, carefully.
6106
6107 2011-11-01  Jim Meyering  <meyering@redhat.com>
6108
6109         gitlog-to-changelog: avoid an infloop
6110         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6111         that ends up being empty.
6112
6113 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6114
6115         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6116         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6117         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6118         contains (possibly-quoted) backslashes.  This should avoid
6119         all-too-common shell bugs if COMPLICATED contains backslashes in
6120         the "wrong" places.  Reported by David Evans in
6121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6122         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6123         because we want ASCII ranges.  Is there some reason we don't use
6124         the C locale everywhere in this script?
6125         (func_module, top level): Avoid unwanted pathname expansion when
6126         $repo_url_prefix or $repo_url_suffix_repl contain shell
6127         metacharacters like '?' and '*'.
6128
6129 2011-11-01  Bruno Haible  <bruno@clisp.org>
6130
6131         fchownat: Improve description.
6132         * modules/fchownat (Description): Add link to function.
6133
6134 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6135
6136         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6137         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6139         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6140
6141 2011-11-01  Bruno Haible  <bruno@clisp.org>
6142
6143         alignof: Avoid collision with stdalign module.
6144         * lib/alignof.h (alignof): Remove macro.
6145         * NEWS: Mention the change.
6146         Reported by Paul Eggert.
6147
6148 2011-11-01  Bruno Haible  <bruno@clisp.org>
6149
6150         New module 'fchownat', split off from module 'openat'.
6151         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6152         defined.
6153         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6154         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6155         invoke gl_FUNC_FCHOWNAT.
6156         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6157         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6158         * modules/fchownat: New file, extracted from modules/openat.
6159         * modules/openat (Files): Remove lib/fchownat.c.
6160         (Depends-on): Remove lchown.
6161         (configure.ac): Remove AC_LIBOBJ of fchownat.
6162         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6163         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6164         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6165         (Depends-on): Remove mgetgroups, usleep, stat-time.
6166         (configure.ac): Remove test for getegid.
6167         (Makefile.am): Remove rules for test-fchownat.
6168         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6169         of module 'openat'.
6170         * NEWS: Mention the change.
6171
6172 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6173
6174         stdalign: port better to MSVC and to Sun C 5.11
6175         This fixes some of the problems reported by Bruno Haible in
6176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6177         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6178         shortcomings of MSVC and of Sun C 5.11.
6179         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6180         around __declspec arg.
6181         * modules/stdalign-tests (Files): Add tests/macros.h.
6182         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6183         Include macros.h, for ASSERT.
6184         (DECLARE_ALIGNED): Remove.
6185         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6186         to catch bug), and to 1 if not (simplifies the rest of the code).
6187         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6188         (CHECK_AUTO): Remove.
6189         (CHECK_ALIGNED): Check only the alignment of the static vars,
6190         since auto var alignment isn't supported by Sun C 5.11.
6191         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6192         ASSERT failures are easier to diagnose.
6193
6194 2011-10-31  Bruno Haible  <bruno@clisp.org>
6195
6196         doc about some IRIX 5.3 problems.
6197         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6198         on IRIX 5.3.
6199         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6200         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6201         5.3.
6202         * doc/posix-functions/grantpt.texi: Likewise.
6203         * doc/posix-functions/unlockpt.texi: Likewise.
6204         * doc/posix-functions/lgamma.texi: Likewise.
6205         * doc/posix-functions/nextafter.texi: Likewise.
6206         * doc/posix-functions/remainder.texi: Likewise.
6207         * doc/posix-functions/select.texi: Mention misplaced declaration on
6208         IRIX 5.3.
6209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6210
6211 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6212
6213         gitlog-to-changelog: fix git-log invocation.
6214         git-log mishandles date strings before 1970-01-01 UTC, and there is
6215         no use to specify --since=1970-01-01 by default anyway.
6216         * build-aux/gitlog-to-changelog: By default, when no --since option
6217         was given, do not specify explicit --since option to git-log.
6218
6219 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6220
6221         gitlog-to-changelog: new option --append-dot.
6222         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6223         first non-blank line of each commit message terminated with a dot.
6224
6225 2011-10-30  Bruno Haible  <bruno@clisp.org>
6226
6227         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6228         * lib/ffsl.h: Include <config.h>.
6229         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6230
6231 2011-10-30  Jim Meyering  <meyering@redhat.com>
6232
6233         GNUmakefile: reenable "make syntax-check" for most projects
6234         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6235         build-aux variable", "syntax-check" would do nothing but succeed with
6236         the "No version control files detected..." diagnostic (unless you
6237         happened to override _build-aux via cfg.mk).
6238         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6239         to precede inclusion of maint.mk.  Otherwise, these variables would
6240         be used undefined in any project that does not override the default.
6241
6242 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6243
6244         gitlog-to-changelog: treat a message with only blank lines as empty.
6245         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6246         trailing blank lines before the code that issues a warning about an
6247         empty commit message.
6248
6249 2011-10-30  Jim Meyering  <meyering@redhat.com>
6250
6251         test-parse-datetime.c: avoid new DST-related false positive test failure
6252         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6253         based on the time/date we'll convert, not the current time.
6254         Otherwise, the moment we cross a DST boundary like today's in
6255         Europe, (CEST to CET), that offset ends up being one hour off.
6256
6257 2011-10-27  Bruno Haible  <bruno@clisp.org>
6258
6259         fstat: Tweak documentation.
6260         * modules/fstat (Description): More precise description.
6261
6262 2011-10-27  Bruno Haible  <bruno@clisp.org>
6263
6264         Update documentation regarding 'largefile' module.
6265         * doc/posix-functions/fstat.texi: Tweak wording.
6266         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6267         problems with huge directories and/or small ino_t types.
6268         * doc/posix-functions/readdir.texi: Likewise.
6269         * doc/posix-functions/rewinddir.texi: Likewise.
6270
6271 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6272
6273         maint.mk: don't maintain a second build-aux variable.
6274         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6275         depends on GNUmakefile, which already maintains a cfg.mk
6276         overridable $(_build-aux) for projects with a non-standard
6277         build-aux directory location, although without the $(srcdir)
6278         prefix.  Use that variable consistently instead of introducing a
6279         second one.  Adjust all call sites.
6280
6281 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6282
6283         Add stdalign module and use it in other modules.
6284         This is based on a previous proposal by Bruno Haible
6285         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6286
6287         stdalign: new module
6288         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6289         * modules/stdalign: New files.
6290         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6291         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6292
6293         stdalign-tests: new module
6294         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6295
6296         argp: use stdalign
6297         * lib/argp-parse.c: Include <stdalign.h>.
6298         (alignof): Remove.
6299         * modules/argp (Depends-on): Add stdalign.
6300
6301         crypto libraries: use stdalign
6302         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6303         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6304         Do not include <stdlib.h> twice, in md4.c.
6305         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6306         because we are accessing a pointer's bit-pattern, not a size.
6307         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6308         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6309         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6310         * modules/crypto/sha512: Likewise.
6311
6312         sys_socket: use stdalign, not alignof
6313         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6314         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6315
6316 2011-10-27  Bruno Haible  <bruno@clisp.org>
6317
6318         raise test: Avoid a test failure on Linux/MIPS.
6319         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6320         because 99 is a valid signal on Linux/MIPS.
6321
6322 2011-10-27  Bruno Haible  <bruno@clisp.org>
6323
6324         nonblocking tests: Fix test failure on Linux/MIPS.
6325         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6326         Set to 270000.
6327
6328 2011-10-27  Bruno Haible  <bruno@clisp.org>
6329
6330         utimensat: Work around problem on Linux/hppa.
6331         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6332         values.
6333         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6334
6335 2011-10-25  Jim Meyering  <meyering@redhat.com>
6336
6337         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6338         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6339         after symbols like NULL, size_t, etc.
6340         Reported by Alfred M. Szmidt.
6341
6342         maint.mk: exempt ENODATA from a syntax-check rule
6343         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6344         from the sc_prohibit_always-defined_macros syntax-check rule.
6345         Add a comment.  See this for more details:
6346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6347
6348 2011-10-23  Jim Meyering  <meyering@redhat.com>
6349
6350         fts: close parent dir FD before returning from post-traversal fts_read
6351         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6352         unlink A, even though an FD open on A remained.  This is suboptimal
6353         (holding a file descriptor open longer than needed), but otherwise not
6354         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6355         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6356         that represents a real problem: it causes the removal of A to fail
6357         with e.g., "rm: cannot remove `A': Device or resource busy"
6358
6359         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6360         directory file descriptors.  After completing the final, FTS_DP,
6361         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6362         cache, but then proceeded to add a new FD to it via the subsequent
6363         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6364         final file descriptor would be closed only via fts_close's call to
6365         fd_ring_clear.  Now, it is usually closed earlier, via the final
6366         FTS_DP-returning fts_read call.
6367         * lib/fts.c (restore_initial_cwd): New function, converted from
6368         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6369         Update callers.
6370         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6371         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6372
6373 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6374             Bruno Haible  <bruno@clisp.org>
6375             Jim Meyering  <jim@meyering.net>
6376
6377         readme-release: improve safety of release prep instructions.
6378         * README-release: Don't git pull all branches when only master
6379         is needed for the release process.
6380         Run make maintainer-clean before changing trees and merging.
6381         Don't try to run ./configure right after git pull in case files
6382         that influence the bootstrap process have changed, move the
6383         ./configure step to after running ./bootstrap.
6384         Don't bootstrap "one last time"... it's the first time!
6385
6386 2011-10-22  Bruno Haible  <bruno@clisp.org>
6387
6388         errno, strerror-override: Support for MSVC 10.
6389         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6390         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6391         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6392         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6393         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6394         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6395         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6396         Assign values compatible with MSVC 10.
6397         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6398         New macros.
6399         (GNULIB_defined_EWINSOCK): New macro.
6400         * lib/strerror-override.c (strerror_override): Update accordingly.
6401         * lib/strerror-override.h: Likewise.
6402         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6403         longer equal to the corresponding errno value.
6404         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6405
6406 2011-10-22  Bruno Haible  <bruno@clisp.org>
6407
6408         perror: Recognize when test program crashes.
6409         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6410         strerror, set gl_cv_func_perror_works to no.
6411         Reported by Daniel Richard G. <skunk@iskunk.org>.
6412
6413         perror: Fix indentation.
6414         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6415
6416 2011-10-22  Bruno Haible  <bruno@clisp.org>
6417
6418         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6419         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6420         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6421         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6422         functions, not as a macro.
6423         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6424         macros.
6425         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6426         absence of macro.
6427         Suggested by Eric Blake.
6428         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6429
6430 2011-10-21  Bruno Haible  <bruno@clisp.org>
6431
6432         relocatable-prog-wrapper: Don't leave object files behind.
6433         * build-aux/install-reloc: Re-synchronize list of .o files to be
6434         removed with list of compilation units.
6435
6436 2011-10-20  Bruno Haible  <bruno@clisp.org>
6437
6438         openpty, posix_openpt: Remove code duplication.
6439         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6440         * lib/openpty.c: Include <stdlib.h>.
6441         (openpty): Use posix_openpt on all platforms except IRIX.
6442         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6443
6444 2011-10-20  Bruno Haible  <bruno@clisp.org>
6445
6446         unlockpt: Detect invalid argument.
6447         * lib/unlockpt.c: Include <fcntl.h>.
6448         (unlockpt): Check whether fd is valid, using fcntl().
6449         * modules/unlockpt (Depends-on): Add fcntl-h.
6450
6451 2011-10-20  Bruno Haible  <bruno@clisp.org>
6452
6453         openpty: Avoid compilation error on AIX 6.1.
6454         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6455
6456 2011-10-20  Bruno Haible  <bruno@clisp.org>
6457
6458         posix_openpt: Support for OpenBSD.
6459         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6460         (posix_openpt) [OpenBSD]: New code.
6461         * lib/grantpt.c: Include <fcntl.h>.
6462         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6463         * modules/grantpt (Depends-on): Add fcntl-h.
6464
6465 2011-10-20  Bruno Haible  <bruno@clisp.org>
6466
6467         posix_openpt test: Coding style.
6468         * tests/test-posix_openpt.c: Use GNU coding style.
6469
6470 2011-10-20  Bruno Haible  <bruno@clisp.org>
6471
6472         grantpt: Support --avoid=pt_chown.
6473         * modules/grantpt (Files): Add lib/pty-private.h.
6474
6475 2011-10-20  Bruno Haible  <bruno@clisp.org>
6476
6477         posix_openpt: Fix autoconf macro.
6478         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6479         unneeded check for _getpty.
6480
6481 2011-10-20  Bruno Haible  <bruno@clisp.org>
6482
6483         openpty: Update comments.
6484         * lib/openpty.c: Add comments about Minix.
6485
6486 2011-10-19  Eric Blake  <eblake@redhat.com>
6487
6488         openpty: relax license
6489         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6490
6491         pt_chown: use configmake to simplify build
6492         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6493
6494         ptsname and others: relax license
6495         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6496         * modules/unlockpt (License): Likewise.
6497         * modules/pt_chown (License): Likewise.
6498         * modules/ptsname (License): Likewise.
6499         * modules/ttyname_r (License): Likewise.
6500
6501 2011-10-19  Jim Meyering  <meyering@redhat.com>
6502
6503         posix_openpt: remove spurious #endif
6504         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6505
6506 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6507
6508         maint.mk: Respect $(build_aux) in web-manual rule.
6509         * top/maint.mk (web-manual): Find gen-announce script in user's
6510         $(build_aux) directory instead of hard-coding 'build-aux'.
6511
6512 2011-10-19  Bruno Haible  <bruno@clisp.org>
6513
6514         posix_openpt: Fix compilation error.
6515         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6516         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6517         Mention the openpty module as an alternative.
6518
6519 2011-10-19  Bruno Haible  <bruno@clisp.org>
6520
6521         Support for old NeXTstep 3.3 frexp().
6522         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6523         execution time of the test to 5 seconds.
6524         Reported by Daniel Richard G. <skunk@iskunk.org>.
6525
6526 2011-10-19  Bruno Haible  <bruno@clisp.org>
6527
6528         Support for old NeXTstep 3.3 sed.
6529         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6530         part, use /.../, not \|...|. Escape periods in the header file name.
6531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6532         Reported by Daniel Richard G. <skunk@iskunk.org>.
6533
6534 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6535
6536         Support for old NeXTstep 3.3 gcc.
6537         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6538         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6539         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6540         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6541         * lib/regex.h (_Restrict_arr_): Likewise.
6542         * lib/regex_internal.h (re_token_t): Likewise.
6543         * lib/regexec.c (check_node_accept_bytes): Likewise.
6544         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6545
6546 2011-10-18  Eric Blake  <eblake@redhat.com>
6547
6548         posix_openpt: new module
6549         * modules/posix_openpt: New module.
6550         * m4/posix_openpt.m4: New file.
6551         * lib/posix_openpt.c: Likewise.
6552         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6553         (gl_STDLIB_H_DEFAULTS): Set defaults.
6554         * modules/stdlib (Makefile.am): Substitute macros.
6555         * lib/stdlib.in.h (posix_openpt): Declare.
6556         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6557         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6558         * modules/posix_openpt-tests: New test module.
6559         * tests/test-posix_openpt.c: New test.
6560
6561 2011-10-15  Bruno Haible  <bruno@clisp.org>
6562
6563         xstrtoll: Fix compilation failure.
6564         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6565         from lib/strtol.c.
6566         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6567         some platforms.
6568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6569
6570 2011-10-15  Bruno Haible  <bruno@clisp.org>
6571
6572         vasnprintf: Optimize bit search operation.
6573         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6575         gl_DOUBLE_EXPONENT_LOCATION.
6576         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6577         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6578         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6579         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6580         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6581         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6582         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6583         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6584         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6585
6586 2011-10-15  Bruno Haible  <bruno@clisp.org>
6587
6588         vasnprintf: Fix comments.
6589         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6590
6591 2011-10-14  Bruno Haible  <bruno@clisp.org>
6592
6593         Tests for module 'integer_length_ll'.
6594         * modules/integer_length_ll-tests: New file.
6595         * tests/test-integer_length_ll.c: New file.
6596
6597         New module 'integer_length_ll'.
6598         * lib/integer_length_ll.c: New file.
6599         * modules/integer_length_ll: New file.
6600
6601 2011-10-14  Bruno Haible  <bruno@clisp.org>
6602
6603         Tests for module 'integer_length_l'.
6604         * modules/integer_length_l-tests: New file.
6605         * tests/test-integer_length_l.c: New file.
6606
6607         New module 'integer_length_l'.
6608         * lib/integer_length_l.c: New file.
6609         * modules/integer_length_l: New file.
6610
6611 2011-10-14  Bruno Haible  <bruno@clisp.org>
6612
6613         Tests for module 'integer_length'.
6614         * modules/integer_length-tests: New file.
6615         * tests/test-integer_length.c: New file.
6616
6617         New module 'integer_length'.
6618         * lib/integer_length.h: New file.
6619         * lib/integer_length.c: New file.
6620         * modules/integer_length: New file.
6621
6622 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6623
6624         popen: Fix dependency conditions.
6625         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6626
6627 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6628
6629         perror: Fix autoconf test.
6630         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6631         <stdlib.h> and <string.h>.
6632
6633 2011-10-14  Bruno Haible  <bruno@clisp.org>
6634
6635         ffsl: Optimize on 64-bit platforms.
6636         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6637         unrolling.
6638
6639 2011-10-13  Bruno Haible  <bruno@clisp.org>
6640
6641         ffsl: Optimize on 32-bit platforms.
6642         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6643         use ffs() without a loop.
6644
6645         ffsl, ffsll: Optimize for GCC.
6646         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6647         * lib/ffsl.c (GCC_BUILTIN): New macro.
6648         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6649
6650 2011-10-13  Bruno Haible  <bruno@clisp.org>
6651
6652         ffs, bcopy, memset: Support symbol renaming via config.h.
6653         * lib/ffs.c: Include <config.h>.
6654         * lib/bcopy.c: Likewise.
6655         * lib/memset.c: Likewise.
6656
6657 2011-10-10  Bruno Haible  <bruno@clisp.org>
6658
6659         atanl: Simplify for platforms where 'long double' == 'double'.
6660         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6661         alternative implementation.
6662         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6663         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6664         * modules/atanl (Depends-on): Add atan. Update conditions.
6665
6666 2011-10-10  Bruno Haible  <bruno@clisp.org>
6667
6668         acosl: Simplify for platforms where 'long double' == 'double'.
6669         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6670         alternative implementation.
6671         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6672         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6673         * modules/acosl (Depends-on): Add acos. Update conditions.
6674
6675 2011-10-10  Bruno Haible  <bruno@clisp.org>
6676
6677         asinl: Simplify for platforms where 'long double' == 'double'.
6678         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6679         alternative implementation.
6680         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6681         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6682         * modules/asinl (Depends-on): Add asin. Update conditions.
6683
6684 2011-10-10  Bruno Haible  <bruno@clisp.org>
6685
6686         tanl: Simplify for platforms where 'long double' == 'double'.
6687         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6688         implementation.
6689         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6690         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6691         * modules/tanl (Depends-on): Add tan. Update conditions.
6692         (configure.ac): Don't compile trigl.c if
6693         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6694
6695 2011-10-10  Bruno Haible  <bruno@clisp.org>
6696
6697         cosl: Simplify for platforms where 'long double' == 'double'.
6698         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6699         implementation.
6700         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6701         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6702         * modules/cosl (Depends-on): Add cos. Update conditions.
6703         (configure.ac): Don't compile sincosl.c and trigl.c if
6704         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6705
6706 2011-10-10  Bruno Haible  <bruno@clisp.org>
6707
6708         sinl: Simplify for platforms where 'long double' == 'double'.
6709         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6710         implementation.
6711         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6712         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6713         * modules/sinl (Depends-on): Add sin. Update conditions.
6714         (configure.ac): Don't compile sincosl.c and trigl.c if
6715         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6716
6717 2011-10-10  Bruno Haible  <bruno@clisp.org>
6718
6719         logl: Simplify for platforms where 'long double' == 'double'.
6720         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6721         implementation.
6722         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6723         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6724         * modules/logl (Depends-on): Add log. Update conditions.
6725
6726 2011-10-10  Bruno Haible  <bruno@clisp.org>
6727
6728         expl: Simplify for platforms where 'long double' == 'double'.
6729         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6730         implementation.
6731         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6732         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6733         * modules/expl (Depends-on): Add exp. Update conditions.
6734
6735 2011-10-10  Bruno Haible  <bruno@clisp.org>
6736
6737         sqrtl: Simplify for platforms where 'long double' == 'double'.
6738         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6739         alternative implementation.
6740         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6741         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6742         * modules/sqrtl (Depends-on): Update conditions.
6743
6744 2011-10-10  Bruno Haible  <bruno@clisp.org>
6745
6746         ldexpl: Simplify for platforms where 'long double' == 'double'.
6747         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6748         alternative implementation.
6749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6750         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6751         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6752
6753 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6754
6755         ffsll: set correct witness
6756         * modules/ffsll (configure.ac): Fix typo.
6757
6758 2011-10-10  Bruno Haible  <bruno@clisp.org>
6759
6760         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6761         * lib/printf-frexpl.c: Include <config.h>.
6762         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6763         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6764         second time.
6765         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6766         gl_LONG_DOUBLE_VS_DOUBLE.
6767         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6768         conditions.
6769
6770 2011-10-10  Bruno Haible  <bruno@clisp.org>
6771
6772         frexpl: Simplify for platforms where 'long double' == 'double'.
6773         * lib/frexpl.c: Include <config.h>.
6774         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6775         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6776         time.
6777         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6778         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6779         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6780         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6781         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6782         conditions.
6783
6784 2011-10-10  Jim Meyering  <meyering@redhat.com>
6785
6786         test-renameat: don't leave behind a temporary file
6787         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6788           ERROR: files left in build directory after distclean:
6789           ./gltests/test-renameat.too
6790           make[1]: *** [distcleancheck] Error 1
6791         Reported by Tom G. Christensen.
6792
6793 2011-10-09  Bruno Haible  <bruno@clisp.org>
6794
6795         rint: Determine RINT_LIBM correctly on AIX 7.
6796         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6797         directly, not only through a function pointer. Also accept an optional
6798         4th argument with extra code.
6799         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6800         rintf() call by gcc when optimizing.
6801
6802         mathfunc.m4: Refactor.
6803         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6804         m4 variable.
6805
6806 2011-10-09  Bruno Haible  <bruno@clisp.org>
6807
6808         rintl: Simplify for platforms where 'long double' == 'double'.
6809         * lib/rintl.c: Include <config.h>.
6810         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6811         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6812         time.
6813         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6814         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6815         * modules/rintl (Depends-on): Add rint. Update conditions.
6816
6817 2011-10-09  Bruno Haible  <bruno@clisp.org>
6818
6819         roundl: Simplify for platforms where 'long double' == 'double'.
6820         * lib/roundl.c: Include <config.h>.
6821         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6822         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6823         time.
6824         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6825         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6826         * modules/roundl (Depends-on): Add round. Update conditions.
6827
6828 2011-10-09  Bruno Haible  <bruno@clisp.org>
6829
6830         truncl: Simplify for platforms where 'long double' == 'double'.
6831         * lib/truncl.c: Include <config.h>.
6832         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6833         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6834         time.
6835         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6836         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6837         * modules/truncl (Depends-on): Add trunc. Update conditions.
6838
6839 2011-10-09  Bruno Haible  <bruno@clisp.org>
6840
6841         ceill: Simplify for platforms where 'long double' == 'double'.
6842         * lib/ceill.c: Include <config.h>.
6843         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6844         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6845         time.
6846         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6847         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6848         * modules/ceill (Depends-on): Add ceil. Update conditions.
6849
6850 2011-10-09  Bruno Haible  <bruno@clisp.org>
6851
6852         floorl: Simplify for platforms where 'long double' == 'double'.
6853         * lib/floorl.c: Include <config.h>.
6854         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6855         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6856         time.
6857         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6858         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6859         * modules/floorl (Depends-on): Add floor. Update conditions.
6860
6861 2011-10-09  Bruno Haible  <bruno@clisp.org>
6862
6863         rint: Fix ordering constraints.
6864         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6865         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6866         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6867
6868 2011-10-09  Bruno Haible  <bruno@clisp.org>
6869
6870         copysignl: Simplify for platforms where 'long double' == 'double'.
6871         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6872         alternative.
6873         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6874         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6875         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6876
6877 2011-10-09  Bruno Haible  <bruno@clisp.org>
6878
6879         Tests for module 'rintl'.
6880         * modules/rintl-tests: New file.
6881         * tests/test-rintl.c: New file.
6882
6883         New module 'rintl'.
6884         * lib/math.in.h (rintl): New declaration.
6885         * lib/rintl.c: New file.
6886         * m4/rintl.m4: New file.
6887         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6889         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6890         * modules/rintl: New file.
6891         * tests/test-math-c++.cc: Check the declaration of rintl.
6892         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6893         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6894         * doc/posix-functions/rintl.texi: Mention the new module.
6895
6896 2011-10-09  Bruno Haible  <bruno@clisp.org>
6897
6898         Tests for module 'rintf'.
6899         * modules/rintf-tests: New file.
6900         * tests/test-rintf.c: New file.
6901
6902         New module 'rintf'.
6903         * lib/math.in.h (rintf): New declaration.
6904         * lib/rintf.c: New file.
6905         * m4/rintf.m4: New file.
6906         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6908         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6909         * modules/rintf: New file.
6910         * tests/test-math-c++.cc: Check the declaration of rintf.
6911         * doc/posix-functions/rintf.texi: Mention the new module.
6912
6913 2011-10-09  Bruno Haible  <bruno@clisp.org>
6914
6915         rint: Support for MSVC.
6916         * lib/math.in.h (rint): New declaration.
6917         * lib/rint.c: New file.
6918         * m4/rint.m4: New file.
6919         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6921         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6922         * modules/rint (Description): Fix.
6923         (Files): Add lib/rint.c, m4/rint.m4.
6924         (Depends-on): Add math.
6925         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6926         gl_MATH_MODULE_INDICATOR.
6927         * tests/test-math-c++.cc: Check the declaration of rint.
6928         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6929         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6930         * doc/posix-functions/rint.texi: Mention the replacement provided by
6931         the module.
6932
6933         rint tests: More tests.
6934         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6935         minus-zero.h, infinity.h, nan.h.
6936         (main): Skip the test if the current rounding mode is not standard. Add
6937         tests for negative numbers, minus zero, infinity, NaN.
6938         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6939         tests/nan.h.
6940         (Depends-on): Add isnand-nolibm.
6941
6942 2011-10-09  Bruno Haible  <bruno@clisp.org>
6943
6944         Tests for module 'copysignl'.
6945         * modules/copysignl-tests: New file.
6946         * tests/test-copysignl.c: New file.
6947
6948         New module 'copysignl'.
6949         * lib/math.in.h (copysignl): New declaration.
6950         * lib/copysignl.c: New file.
6951         * m4/copysignl.m4: New file.
6952         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6954         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6955         HAVE_COPYSIGNL.
6956         * modules/copysignl: New file.
6957         * tests/test-math-c++.cc: Check the declaration of copysignl.
6958         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6959         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6960         * doc/posix-functions/copysignl.texi: Mention the new module.
6961
6962 2011-10-09  Bruno Haible  <bruno@clisp.org>
6963
6964         Tests for module 'copysignf'.
6965         * modules/copysignf-tests: New file.
6966         * tests/test-copysignf.c: New file.
6967
6968         New module 'copysignf'.
6969         * lib/math.in.h (copysignf): New declaration.
6970         * lib/copysignf.c: New file.
6971         * m4/copysignf.m4: New file.
6972         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6974         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6975         HAVE_COPYSIGNF.
6976         * modules/copysignf: New file.
6977         * tests/test-math-c++.cc: Check the declaration of copysignf.
6978         * doc/posix-functions/copysignf.texi: Mention the new module.
6979
6980 2011-10-09  Bruno Haible  <bruno@clisp.org>
6981
6982         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6983         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6984         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6985         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6986         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6987         gl_SIGNAL_H_DEFAULTS.
6988
6989 2011-10-09  Bruno Haible  <bruno@clisp.org>
6990
6991         poll: Make macro safer.
6992         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6993         ac_cv_header_poll_h is not set.
6994
6995 2011-10-09  Bruno Haible  <bruno@clisp.org>
6996
6997         copysign: Provide replacement.
6998         * lib/math.in.h (copysign): New declaration.
6999         * lib/copysign.c: New file.
7000         * m4/copysign.m4: New file.
7001         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7003         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7004         HAVE_COPYSIGN.
7005         * modules/copysign (Description): Clarify.
7006         (Files): Add lib/copysign.c, m4/copysign.m4.
7007         (Depends-on): Add math, signbit.
7008         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7009         gl_MATH_MODULE_INDICATOR.
7010         * tests/test-math-c++.cc: Check the declaration of copysign.
7011         * doc/posix-functions/copysign.texi: Mention the effects of the module
7012         on Minix and MSVC.
7013
7014 2011-10-09  Bruno Haible  <bruno@clisp.org>
7015
7016         isinf: Ensure macro on AIX 5.1.
7017         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7018         macro.
7019         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7020
7021 2011-10-09  Bruno Haible  <bruno@clisp.org>
7022
7023         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7024         * modules/snprintf-posix-tests (configure.ac): Require
7025         gl_LONG_DOUBLE_VS_DOUBLE.
7026         * modules/sprintf-posix-tests (configure.ac): Likewise.
7027         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7028         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7029         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7030         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7031         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7032         tests on platforms where 'long double' is the same as 'double'.
7033         * tests/test-sprintf-posix.h (test_function): Likewise.
7034         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7035         * tests/test-vasprintf-posix.c (test_function): Likewise.
7036
7037         *printf: Fix for platforms where 'long double' == 'double'.
7038         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7039         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7040         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7041         * modules/fprintf-posix (Files): Likewise.
7042         * modules/obstack-printf-posix (Files): Likewise.
7043         * modules/snprintf-posix (Files): Likewise.
7044         * modules/sprintf-posix (Files): Likewise.
7045         * modules/vasnprintf (Files): Likewise.
7046         * modules/vasnprintf-posix (Files): Likewise.
7047         * modules/vasprintf-posix (Files): Likewise.
7048         * modules/vdprintf-posix (Files): Likewise.
7049         * modules/vfprintf-posix (Files): Likewise.
7050         * modules/vsnprintf-posix (Files): Likewise.
7051         * modules/vsprintf-posix (Files): Likewise.
7052         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7053         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7054         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7055         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7056         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7057         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7058         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7059
7060         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7061         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7062         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7063         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7064         'long double'.
7065         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7066
7067         isinf: Fix for platforms where 'long double' == 'double'.
7068         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7069         Don't blindly assume 80-bit 'long double'.
7070
7071         isfinite: Fix for platforms where 'long double' == 'double'.
7072         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7073         Don't blindly assume 80-bit 'long double'.
7074
7075         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7076         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7077         * modules/isfinite-tests (configure.ac): Require
7078         gl_LONG_DOUBLE_VS_DOUBLE.
7079         * modules/isinf-tests (configure.ac): Likewise.
7080         * modules/isnan-tests (configure.ac): Likewise.
7081         * modules/isnanl-tests (configure.ac): Likewise.
7082         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7083         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7084         tests on platforms where 'long double' is the same as 'double'.
7085         * tests/test-isinf.c (test_isinfl): Likewise.
7086         * tests/test-isnan.c (test_long_double): Likewise.
7087         * tests/test-isnanl.h (main): Likewise.
7088
7089 2011-10-08  Bruno Haible  <bruno@clisp.org>
7090
7091         Tests for module 'tanhf'.
7092         * modules/tanhf-tests: New file.
7093         * tests/test-tanhf.c: New file.
7094
7095         New module 'tanhf'.
7096         * lib/math.in.h (tanhf): New declaration.
7097         * lib/tanhf.c: New file.
7098         * m4/tanhf.m4: New file.
7099         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7101         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7102         * modules/tanhf: New file.
7103         * tests/test-math-c++.cc: Check the declaration of tanhf.
7104         * doc/posix-functions/tanhf.texi: Mention the new module.
7105
7106         tanh: Use a .m4 file.
7107         * m4/tanh.m4: New file.
7108         * modules/tanh (Files): Add it.
7109         (configure.ac): Just invoke gl_FUNC_TANH.
7110
7111 2011-10-08  Bruno Haible  <bruno@clisp.org>
7112
7113         Tests for module 'coshf'.
7114         * modules/coshf-tests: New file.
7115         * tests/test-coshf.c: New file.
7116
7117         New module 'coshf'.
7118         * lib/math.in.h (coshf): New declaration.
7119         * lib/coshf.c: New file.
7120         * m4/coshf.m4: New file.
7121         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7123         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7124         * modules/coshf: New file.
7125         * tests/test-math-c++.cc: Check the declaration of coshf.
7126         * doc/posix-functions/coshf.texi: Mention the new module.
7127
7128         cosh: Use a .m4 file.
7129         * m4/cosh.m4: New file.
7130         * modules/cosh (Files): Add it.
7131         (configure.ac): Just invoke gl_FUNC_COSH.
7132
7133 2011-10-08  Bruno Haible  <bruno@clisp.org>
7134
7135         Tests for module 'sinhf'.
7136         * modules/sinhf-tests: New file.
7137         * tests/test-sinhf.c: New file.
7138
7139         New module 'sinhf'.
7140         * lib/math.in.h (sinhf): New declaration.
7141         * lib/sinhf.c: New file.
7142         * m4/sinhf.m4: New file.
7143         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7145         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7146         * modules/sinhf: New file.
7147         * tests/test-math-c++.cc: Check the declaration of sinhf.
7148         * doc/posix-functions/sinhf.texi: Mention the new module.
7149
7150         sinh: Use a .m4 file.
7151         * m4/sinh.m4: New file.
7152         * modules/sinh (Files): Add it.
7153         (configure.ac): Just invoke gl_FUNC_SINH.
7154
7155 2011-10-08  Bruno Haible  <bruno@clisp.org>
7156
7157         Tests for module 'atan2f'.
7158         * modules/atan2f-tests: New file.
7159         * tests/test-atan2f.c: New file.
7160
7161         New module 'atan2f'.
7162         * lib/math.in.h (atan2f): New declaration.
7163         * lib/atan2f.c: New file.
7164         * m4/atan2f.m4: New file.
7165         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7167         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7168         * modules/atan2f: New file.
7169         * tests/test-math-c++.cc: Check the declaration of atan2f.
7170         * doc/posix-functions/atan2f.texi: Mention the new module.
7171
7172         atan2: Use a .m4 file.
7173         * m4/atan2.m4: New file.
7174         * modules/atan2 (Files): Add it.
7175         (configure.ac): Just invoke gl_FUNC_ATAN2.
7176
7177 2011-10-08  Bruno Haible  <bruno@clisp.org>
7178
7179         Tests for module 'atanf'.
7180         * modules/atanf-tests: New file.
7181         * tests/test-atanf.c: New file.
7182
7183         New module 'atanf'.
7184         * lib/math.in.h (atanf): New declaration.
7185         * lib/atanf.c: New file.
7186         * m4/atanf.m4: New file.
7187         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7189         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7190         * modules/atanf: New file.
7191         * tests/test-math-c++.cc: Check the declaration of atanf.
7192         * doc/posix-functions/atanf.texi: Mention the new module.
7193
7194         atan: Use a .m4 file.
7195         * m4/atan.m4: New file.
7196         * modules/atan (Files): Add it.
7197         (configure.ac): Just invoke gl_FUNC_ATAN.
7198
7199 2011-10-08  Bruno Haible  <bruno@clisp.org>
7200
7201         Tests for module 'acosf'.
7202         * modules/acosf-tests: New file.
7203         * tests/test-acosf.c: New file.
7204
7205         New module 'acosf'.
7206         * lib/math.in.h (acosf): New declaration.
7207         * lib/acosf.c: New file.
7208         * m4/acosf.m4: New file.
7209         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7211         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7212         * modules/acosf: New file.
7213         * tests/test-math-c++.cc: Check the declaration of acosf.
7214         * doc/posix-functions/acosf.texi: Mention the new module.
7215
7216         acos: Use a .m4 file.
7217         * m4/acos.m4: New file.
7218         * modules/acos (Files): Add it.
7219         (configure.ac): Just invoke gl_FUNC_ACOS.
7220
7221 2011-10-08  Bruno Haible  <bruno@clisp.org>
7222
7223         Tests for module 'asinf'.
7224         * modules/asinf-tests: New file.
7225         * tests/test-asinf.c: New file.
7226
7227         New module 'asinf'.
7228         * lib/math.in.h (asinf): New declaration.
7229         * lib/asinf.c: New file.
7230         * m4/asinf.m4: New file.
7231         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7233         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7234         * modules/asinf: New file.
7235         * tests/test-math-c++.cc: Check the declaration of asinf.
7236         * doc/posix-functions/asinf.texi: Mention the new module.
7237
7238         asin: Use a .m4 file.
7239         * m4/asin.m4: New file.
7240         * modules/asin (Files): Add it.
7241         (configure.ac): Just invoke gl_FUNC_ASIN.
7242
7243 2011-10-08  Bruno Haible  <bruno@clisp.org>
7244
7245         Tests for module 'tanf'.
7246         * modules/tanf-tests: New file.
7247         * tests/test-tanf.c: New file.
7248
7249         New module 'tanf'.
7250         * lib/math.in.h (tanf): New declaration.
7251         * lib/tanf.c: New file.
7252         * m4/tanf.m4: New file.
7253         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7255         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7256         * modules/tanf: New file.
7257         * tests/test-math-c++.cc: Check the declaration of tanf.
7258         * doc/posix-functions/tanf.texi: Mention the new module.
7259
7260         tan: Use a .m4 file.
7261         * m4/tan.m4: New file.
7262         * modules/tan (Files): Add it.
7263         (configure.ac): Just invoke gl_FUNC_TAN.
7264
7265 2011-10-08  Bruno Haible  <bruno@clisp.org>
7266
7267         Tests for module 'cosf'.
7268         * modules/cosf-tests: New file.
7269         * tests/test-cosf.c: New file.
7270
7271         New module 'cosf'.
7272         * lib/math.in.h (cosf): New declaration.
7273         * lib/cosf.c: New file.
7274         * m4/cosf.m4: New file.
7275         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7277         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7278         * modules/cosf: New file.
7279         * tests/test-math-c++.cc: Check the declaration of cosf.
7280         * doc/posix-functions/cosf.texi: Mention the new module.
7281
7282         cos: Use a .m4 file.
7283         * m4/cos.m4: New file.
7284         * modules/cos (Files): Add it.
7285         (configure.ac): Just invoke gl_FUNC_COS.
7286
7287 2011-10-08  Bruno Haible  <bruno@clisp.org>
7288
7289         Tests for module 'sinf'.
7290         * modules/sinf-tests: New file.
7291         * tests/test-sinf.c: New file.
7292
7293         New module 'sinf'.
7294         * lib/math.in.h (sinf): New declaration.
7295         * lib/sinf.c: New file.
7296         * m4/sinf.m4: New file.
7297         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7299         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7300         * modules/sinf: New file.
7301         * tests/test-math-c++.cc: Check the declaration of sinf.
7302         * doc/posix-functions/sinf.texi: Mention the new module.
7303
7304         sin: Use a .m4 file.
7305         * m4/sin.m4: New file.
7306         * modules/sin (Files): Add it.
7307         (configure.ac): Just invoke gl_FUNC_SIN.
7308
7309 2011-10-08  Bruno Haible  <bruno@clisp.org>
7310
7311         Tests for module 'powf'.
7312         * modules/powf-tests: New file.
7313         * tests/test-powf.c: New file.
7314
7315         New module 'powf'.
7316         * lib/math.in.h (powf): New declaration.
7317         * lib/powf.c: New file.
7318         * m4/powf.m4: New file.
7319         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7321         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7322         * modules/powf: New file.
7323         * tests/test-math-c++.cc: Check the declaration of powf.
7324         * doc/posix-functions/powf.texi: Mention the new module.
7325
7326         pow: Use a .m4 file.
7327         * m4/pow.m4: New file.
7328         * modules/pow (Files): Add it.
7329         (configure.ac): Just invoke gl_FUNC_POW.
7330
7331 2011-10-08  Bruno Haible  <bruno@clisp.org>
7332
7333         Tests for module 'log10f'.
7334         * modules/log10f-tests: New file.
7335         * tests/test-log10f.c: New file.
7336
7337         New module 'log10f'.
7338         * lib/math.in.h (log10f): New declaration.
7339         * lib/log10f.c: New file.
7340         * m4/log10f.m4: New file.
7341         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7343         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7344         * modules/log10f: New file.
7345         * tests/test-math-c++.cc: Check the declaration of log10f.
7346         * doc/posix-functions/log10f.texi: Mention the new module.
7347
7348         log10: Use a .m4 file.
7349         * m4/log10.m4: New file.
7350         * modules/log10 (Files): Add it.
7351         (configure.ac): Just invoke gl_FUNC_LOG10.
7352
7353 2011-10-08  Bruno Haible  <bruno@clisp.org>
7354
7355         Tests for module 'logf'.
7356         * modules/logf-tests: New file.
7357         * tests/test-logf.c: New file.
7358
7359         New module 'logf'.
7360         * lib/math.in.h (logf): New declaration.
7361         * lib/logf.c: New file.
7362         * m4/logf.m4: New file.
7363         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7365         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7366         * modules/logf: New file.
7367         * tests/test-math-c++.cc: Check the declaration of logf.
7368         * doc/posix-functions/logf.texi: Mention the new module.
7369
7370         log: Use a .m4 file.
7371         * m4/log.m4: New file.
7372         * modules/log (Files): Add it.
7373         (configure.ac): Just invoke gl_FUNC_LOG.
7374
7375 2011-10-08  Bruno Haible  <bruno@clisp.org>
7376
7377         Tests for module 'expf'.
7378         * modules/expf-tests: New file.
7379         * tests/test-expf.c: New file.
7380
7381         New module 'expf'.
7382         * lib/math.in.h (expf): New declaration.
7383         * lib/expf.c: New file.
7384         * m4/expf.m4: New file.
7385         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7387         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7388         * modules/expf: New file.
7389         * tests/test-math-c++.cc: Check the declaration of expf.
7390         * doc/posix-functions/expf.texi: Mention the new module.
7391
7392         exp: Use a .m4 file.
7393         * m4/exp.m4: New file.
7394         * modules/exp (Files): Add it.
7395         (configure.ac): Just invoke gl_FUNC_EXP.
7396
7397 2011-10-08  Bruno Haible  <bruno@clisp.org>
7398
7399         Tests for module 'sqrtf'.
7400         * modules/sqrtf-tests: New file.
7401         * tests/test-sqrtf.c: New file.
7402
7403         New module 'sqrtf'.
7404         * lib/math.in.h (sqrtf): New declaration.
7405         * lib/sqrtf.c: New file.
7406         * m4/sqrtf.m4: New file.
7407         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7409         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7410         * modules/sqrtf: New file.
7411         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7412         * doc/posix-functions/sqrtf.texi: Mention the new module.
7413
7414 2011-10-08  Bruno Haible  <bruno@clisp.org>
7415
7416         Tests: Avoid link failures w.r.t. libintl.
7417         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7418         $(LIBINTL).
7419         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7420         $(LIBINTL).
7421         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7422         against $(LIBINTL).
7423         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7424         $(LIBINTL).
7425         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7426         $(LIBINTL).
7427         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7428
7429 2011-10-08  Bruno Haible  <bruno@clisp.org>
7430
7431         pow tests: Defeat compiler optimizations.
7432         * tests/test-pow.c (main): Assign arguments to x and y before use.
7433
7434 2011-10-08  Bruno Haible  <bruno@clisp.org>
7435
7436         gnulib-tool: Improve last commit.
7437         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7438         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7439         ignore dependencies that are not among the modules list.
7440
7441 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7442
7443         gnulib-tool: don't follow dependencies to avoided modules
7444         This fixes a bug that is related to the previous one.
7445         * gnulib-tool (func_modules_transitive_closure)
7446         (func_emit_autoconf_snippets):
7447         Check whether a dependency is acceptable before using it.
7448         (--extract-dependencies): Report an error if --avoid is also used,
7449         since this combination of options is not yet supported.
7450
7451         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7452         Problem reported by Peter Dyballa in
7453         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7454         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7455         when echoing "$condition".
7456
7457 2011-10-07  Bruno Haible  <bruno@clisp.org>
7458
7459         Fix documentation about math functions on MacOS X.
7460         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7461         MacOS X 10.5.
7462         * doc/posix-functions/fdim.texi: Likewise.
7463         * doc/posix-functions/feclearexcept.texi: Likewise.
7464         * doc/posix-functions/fegetenv.texi: Likewise.
7465         * doc/posix-functions/fegetround.texi: Likewise.
7466         * doc/posix-functions/feholdexcept.texi: Likewise.
7467         * doc/posix-functions/feraiseexcept.texi: Likewise.
7468         * doc/posix-functions/fesetenv.texi: Likewise.
7469         * doc/posix-functions/fesetround.texi: Likewise.
7470         * doc/posix-functions/fetestexcept.texi: Likewise.
7471         * doc/posix-functions/feupdateenv.texi: Likewise.
7472         * doc/posix-functions/fmax.texi: Likewise.
7473         * doc/posix-functions/fmin.texi: Likewise.
7474         * doc/posix-functions/log2.texi: Likewise.
7475         * doc/posix-functions/modff.texi: Likewise.
7476         * doc/posix-functions/nan.texi: Likewise.
7477         * doc/posix-functions/nanf.texi: Likewise.
7478         * doc/posix-functions/nextafterf.texi: Likewise.
7479         * doc/posix-functions/remquo.texi: Likewise.
7480
7481 2011-10-07  Bruno Haible  <bruno@clisp.org>
7482
7483         modff: Drop assumption about library that defines modff.
7484         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7485         AC_CHECK_FUNCS.
7486         * modules/modff (Files): Add m4/mathfunc.m4.
7487
7488 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7489
7490         raise tests: Avoid a GCC warning.
7491         * tests/test-raise.c (handler): Use _Noreturn.
7492
7493 2011-10-07  Bruno Haible  <bruno@clisp.org>
7494
7495         Tests for module 'ldexpf'.
7496         * modules/ldexpf-tests: New file.
7497         * tests/test-ldexpf.c: New file.
7498
7499         New module 'ldexpf'.
7500         * lib/math.in.h (ldexpf): New declaration.
7501         * lib/ldexpf.c: New file.
7502         * m4/ldexpf.m4: New file.
7503         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7505         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7506         * modules/ldexpf: New file.
7507         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7508         * doc/posix-functions/ldexpf.texi: Mention the new module.
7509
7510 2011-10-06  Bruno Haible  <bruno@clisp.org>
7511
7512         frexpf: Work around problems on IRIX and mingw.
7513         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7515         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7516         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7517         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7518         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7519         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7520
7521 2011-10-06  Bruno Haible  <bruno@clisp.org>
7522
7523         fabsf: Drop assumption about library that defines fabsf.
7524         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7525         AC_CHECK_FUNCS.
7526         * modules/fabsf (Files): Add m4/mathfunc.m4.
7527
7528 2011-10-06  Bruno Haible  <bruno@clisp.org>
7529
7530         frexpf: Drop assumption about library that defines frexpf.
7531         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7532         'int *', 'float *', 'long double *', 'float', 'long double'.
7533         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7534         AC_CHECK_FUNCS.
7535         * modules/frexpf (Files): Add m4/mathfunc.m4.
7536
7537         Tests for module 'frexpf'.
7538         * modules/frexpf-tests: New file.
7539         * tests/test-frexpf.c: New file.
7540
7541         New module 'frexpf'.
7542         * lib/math.in.h (frexpf): New declaration.
7543         * lib/frexpf.c: New file.
7544         * m4/frexpf.m4: New file.
7545         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7547         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7548         * modules/frexpf: New file.
7549         * tests/test-math-c++.cc: Check the declaration of frexpf.
7550         * doc/posix-functions/frexpf.texi: Mention the new module.
7551
7552 2011-10-06  Bruno Haible  <bruno@clisp.org>
7553
7554         math: Sort function declarations of math.in.h.
7555         * lib/math.in.h (frexp, logb): Move declarations.
7556
7557 2011-10-05  Bruno Haible  <bruno@clisp.org>
7558
7559         Tests for module 'modff'.
7560         * modules/modff-tests: New file.
7561         * tests/test-modff.c: New file.
7562
7563         New module 'modff'.
7564         * lib/math.in.h (modff): New declaration.
7565         * lib/modff.c: New file.
7566         * m4/modff.m4: New file.
7567         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7569         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7570         * modules/modff: New file.
7571         * tests/test-math-c++.cc: Check the declaration of modff.
7572         * doc/posix-functions/modff.texi: Mention the new module.
7573
7574         modf tests: Make test sharper.
7575         * tests/test-modf.c (main): Strengthen upper bound.
7576
7577         modf: Use a .m4 file.
7578         * m4/modf.m4: New file.
7579         * modules/modf (Files): Add it.
7580         (configure.ac): Just invoke gl_FUNC_MODF.
7581
7582 2011-10-05  Bruno Haible  <bruno@clisp.org>
7583
7584         Tests for module 'fmodf'.
7585         * modules/fmodf-tests: New file.
7586         * tests/test-fmodf.c: New file.
7587
7588         New module 'fmodf'.
7589         * lib/math.in.h (fmodf): New declaration.
7590         * lib/fmodf.c: New file.
7591         * m4/fmodf.m4: New file.
7592         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7594         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7595         * modules/fmodf: New file.
7596         * tests/test-math-c++.cc: Check the declaration of fmodf.
7597         * doc/posix-functions/fmodf.texi: Mention the new module.
7598
7599         fmod: Use a .m4 file.
7600         * m4/fmod.m4: New file.
7601         * modules/fmod (Files): Add it.
7602         (configure.ac): Just invoke gl_FUNC_FMOD.
7603
7604 2011-10-05  Bruno Haible  <bruno@clisp.org>
7605
7606         Tests for module 'fabsf'.
7607         * modules/fabsf-tests: New file.
7608         * tests/test-fabsf.c: New file.
7609
7610         New module 'fabsf'.
7611         * lib/math.in.h (fabsf): New declaration.
7612         * lib/fabsf.c: New file.
7613         * m4/fabsf.m4: New file.
7614         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7616         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7617         * modules/fabsf: New file.
7618         * tests/test-math-c++.cc: Check the declaration of fabsf.
7619         * doc/posix-functions/fabsf.texi: Mention the new module.
7620
7621         fabs: Use a .m4 file.
7622         * m4/fabs.m4: New file.
7623         * modules/fabs (Files): Add it.
7624         (configure.ac): Just invoke gl_FUNC_FABS.
7625
7626 2011-10-05  Jim Meyering  <meyering@redhat.com>
7627
7628         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7629         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7630         ls -lL regression introduced in coreutils-8.12, it does so at the
7631         cost of an additional stat call in the common case.  Besides, now
7632         that the kernel change that prompted commit 95f7c57f has been reverted
7633         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7634         we have no use for commit 95f7c57f, "file-has-acl: use
7635         acl_extended_file_nofollow if available".
7636
7637 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7638
7639         file-has-acl: revert unintended change in behavior of ls -L
7640         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7641         derived from...
7642         (file_has_acl): ...code here.  Call it.
7643         This problem was introduced with 2011-07-22 commit 95f7c57f,
7644         "file-has-acl: use acl_extended_file_nofollow if available".
7645         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7646
7647 2011-10-03  Bruno Haible  <bruno@clisp.org>
7648
7649         poll: Avoid link errors on MSVC.
7650         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7651         * modules/poll (Depends-on): Add sockets.
7652         (Link): New section.
7653         * NEWS: Mention the change.
7654         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7655         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7656         $(LIB_POLL) instead of $(LIBSOCKET).
7657
7658 2011-10-03  Bruno Haible  <bruno@clisp.org>
7659
7660         sys_select tests: Fix link error on MSVC 9.
7661         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7662         with $(LIB_SELECT) instead of $(LIBSOCKET).
7663
7664 2011-10-03  Bruno Haible  <bruno@clisp.org>
7665
7666         sys_select: Fix compilation error on mingw.
7667         * lib/sys_select.in.h: On native Windows, include <io.h>.
7668
7669 2011-10-03  Bruno Haible  <bruno@clisp.org>
7670
7671         wmemset: Support for MSVC.
7672         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7673         whether wmemset() exists.
7674
7675 2011-10-03  Bruno Haible  <bruno@clisp.org>
7676
7677         wmemmove: Support for MSVC.
7678         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7679         whether wmemmove() exists.
7680
7681 2011-10-03  Bruno Haible  <bruno@clisp.org>
7682
7683         wmemcpy: Support for MSVC.
7684         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7685         whether wmemcpy() exists.
7686
7687 2011-10-03  Bruno Haible  <bruno@clisp.org>
7688
7689         wmemcmp: Support for MSVC.
7690         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7691         whether wmemcmp() exists.
7692
7693 2011-10-03  Bruno Haible  <bruno@clisp.org>
7694
7695         wmemchr: Support for MSVC.
7696         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7697         whether wmemchr() exists.
7698
7699 2011-10-03  Bruno Haible  <bruno@clisp.org>
7700
7701         glthread/*, strsignal: Support for MSVC.
7702         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7703         including <winsock.h> on MSVC 9.
7704         * lib/glthread/lock.h: Likewise.
7705         * lib/glthread/thread.h: Likewise.
7706         * lib/glthread/tls.h: Likewise.
7707         * lib/glthread/yield.h: Likewise.
7708         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7709         if HAVE_UNISTD_H is false.
7710         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7711
7712 2011-10-03  Bruno Haible  <bruno@clisp.org>
7713
7714         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7715         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7716         Set to 100000.
7717
7718 2011-10-03  Bruno Haible  <bruno@clisp.org>
7719
7720         acl: Fix specification.
7721         * lib/file-has-acl.c (file_has_acl): Fix specification.
7722
7723 2011-10-03  Bruno Haible  <bruno@clisp.org>
7724
7725         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7726         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7727         (compute_curr_prefix, shared_library_fullname,
7728         find_shared_library_fullname, get_shared_library_fullname, relocate):
7729         Use it together with PIC && INSTALLDIR.
7730         Reported by <jojelino@gmail.com>
7731         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7732
7733 2011-10-01  Jim Meyering  <meyering@redhat.com>
7734
7735         maint.mk: adjust a release-related rule not to require use of gzip
7736         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7737         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7738         projects that build only .tar.xz files.  Also fix an erroneous test.
7739
7740         test-linkat: don't leave behind a temporary file
7741         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7742         Otherwise, coreutils' "make distcheck" would fail with this:
7743           Only in /c/cu/tests/torture/coreutils/test/\
7744             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7745           make[2]: *** [my-distcheck] Error 1
7746
7747         float, math: add omitted file
7748         * lib/itold.c: Add file, required for yesterday's float change.
7749
7750 2011-10-01  Bruno Haible  <bruno@clisp.org>
7751
7752         isinf: Fix for OpenBSD/x86.
7753         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7754         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7755         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7756
7757 2011-10-01  Bruno Haible  <bruno@clisp.org>
7758
7759         isfinite: Fix syntax error in configure test.
7760         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7761
7762         isfinite: Fix typo.
7763         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7764         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7765
7766 2011-10-01  Bruno Haible  <bruno@clisp.org>
7767
7768         nonblocking tests: Fix test failure on Linux/IA-64.
7769         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7770         Set to 270000.
7771
7772 2011-10-01  Bruno Haible  <bruno@clisp.org>
7773
7774         mkfifoat tests: Fix a test failure on mingw.
7775         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7776         with error ENOSYS.
7777
7778 2011-09-30  Bruno Haible  <bruno@clisp.org>
7779
7780         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7781         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7782         'long double'. Set REPLACE_ITOLD.
7783         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7784         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7785         * lib/itold.c: New file.
7786         * modules/float (Files): Add lib/itold.c.
7787         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7788         (Makefile.am): Substitute REPLACE_ITOLD.
7789         * modules/math (Depends-on): Add float.
7790         (Makefile.am): Substitute REPLACE_ITOLD.
7791         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7792         * doc/posix-headers/math.texi: Likewise.
7793         * doc/posix-functions/logl.texi: Likewise.
7794
7795 2011-09-30  Bruno Haible  <bruno@clisp.org>
7796
7797         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7798         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7799         Set to 140000.
7800
7801 2011-09-30  Bruno Haible  <bruno@clisp.org>
7802
7803         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7804         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7805         invocation, say "right after AC_PROG_CC_STDC", not "right after
7806         AC_PROG_CC".
7807         Reported by Gary V. Vaughan <gary@gnu.org>.
7808
7809 2011-09-30  Bruno Haible  <bruno@clisp.org>
7810
7811         Centralize C99 requirement.
7812         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7813         * modules/stdarg (configure.ac-early): Invoke it instead of
7814         AC_PROG_CC_STDC.
7815         Reported by Gary V. Vaughan and Paul Eggert.
7816
7817 2011-09-29  Bruno Haible  <bruno@clisp.org>
7818
7819         float: Fix LDBL_MAX value on Linux/PowerPC.
7820         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7821         on Linux/PowerPC.
7822         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7823         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7824         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7825         platform.
7826         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7827
7828 2011-09-29  Bruno Haible  <bruno@clisp.org>
7829
7830         doc: Improve doc about gl_EARLY.
7831         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7832         AC_PROG_CC_STDC invocation.
7833         Reported by Gary V. Vaughan <gary@gnu.org>.
7834
7835 2011-09-28  Bruno Haible  <bruno@clisp.org>
7836
7837         fgetc, fputc, fread, fwrite tests: Fix link error.
7838         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7839         on non-MSVC platforms.
7840         * tests/test-fputc.c (main): Likewise.
7841         * tests/test-fread.c (main): Likewise.
7842         * tests/test-fwrite.c (main): Likewise.
7843         Reported by Jim Meyering.
7844
7845 2011-09-27  Bruno Haible  <bruno@clisp.org>
7846
7847         fputc, fwrite tests: Avoid test failure on MSVC.
7848         * tests/test-fgetc.c: Include msvc-inval.h.
7849         (main): Invoke gl_msvc_inval_ensure_handler.
7850         * tests/test-fputc.c: Include msvc-inval.h.
7851         (main): Invoke gl_msvc_inval_ensure_handler.
7852         * tests/test-fread.c: Include msvc-inval.h.
7853         (main): Invoke gl_msvc_inval_ensure_handler.
7854         * tests/test-fwrite.c: Include msvc-inval.h.
7855         (main): Invoke gl_msvc_inval_ensure_handler.
7856         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7857         * modules/fputc-tests (Depends-on): Likewise.
7858         * modules/fread-tests (Depends-on): Likewise.
7859         * modules/fwrite-tests (Depends-on): Likewise.
7860
7861 2011-09-27  Bruno Haible  <bruno@clisp.org>
7862
7863         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7864         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7865         (raise): Remove older, duplicated declaration.
7866         (_gl_raise_SIGPIPE): New declaration.
7867         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7868         (rpl_raise): Remove function.
7869         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7870         a gnulib-defined SIGPIPE here.
7871         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7872         'sigprocmask' has detected missing signal-blocking and the module
7873         'sigpipe' is enabled.
7874         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7875
7876 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7877
7878         base64-tests: avoid memory leak
7879         * tests/test-base64.c (main): Plug memory leak.
7880
7881         base32: new module
7882         * modules/base32: New module.
7883         * lib/base32.c: New file.
7884         * lib/base32.h: Likewise.
7885         * m4/base32.m4: Likewise.
7886         * modules/base32-tests: New test.
7887         * tests/test-base32.c: Likewise.
7888         * MODULES.html.sh (Misc): Mention it.
7889
7890 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7891
7892         gnulib: use more-standard license notice wording
7893         * gnulib-tool (func_emit_copyright_notice): When emitting a
7894         license notice into a file, use the standard wording as suggested
7895         by the current information for GNU maintainers, except say "file"
7896         rather than "program".  The new wording gives a license version
7897         number, which addresses an issue raised by Glenn Morris in
7898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7899         * m4/onceonly.m4: Use that same wording here, too.
7900
7901         dup2: minor simplification
7902         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7903         as lib/dup2.c no longer uses 'inline'.
7904
7905 2011-09-25  Bruno Haible  <bruno@clisp.org>
7906
7907         strings: Fix compilation error on MSVC.
7908         * lib/strings.in.h: Include <stddef.h> for size_t.
7909
7910 2011-09-25  Bruno Haible  <bruno@clisp.org>
7911
7912         fflush et al.: Document limitation on MSVC.
7913         * doc/posix-functions/fflush.texi: Document possible crash in handling
7914         mode other than DEFAULT_HANDLING.
7915         * doc/posix-functions/fgetc.texi: Likewise.
7916         * doc/posix-functions/fputc.texi: Likewise.
7917         * doc/posix-functions/fread.texi: Likewise.
7918         * doc/posix-functions/fwrite.texi: Likewise.
7919
7920 2011-09-25  Bruno Haible  <bruno@clisp.org>
7921
7922         msvc-inval: Allow three invalid parameter handling modes.
7923         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7924         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7925         macros.
7926         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7927         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7928         SANE_LIBRARY_HANDLING as a no-op.
7929         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7930         <stdlib.h>.
7931         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7932
7933 2011-09-25  Bruno Haible  <bruno@clisp.org>
7934
7935         msvc-inval: Make handler multithread-safe.
7936         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7937         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7938         declarations.
7939         (gl_msvc_inval_current): New declaration.
7940         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7941         Operate on the structure returned by gl_msvc_inval_current().
7942         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7943         Remove varaiables.
7944         (tls_index, tls_initialized): New variables.
7945         (not_per_thread): New variable.
7946         (gl_msvc_inval_current): New function.
7947         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7948         returned by gl_msvc_inval_current().
7949
7950 2011-09-25  Bruno Haible  <bruno@clisp.org>
7951
7952         msvc-inval: Install handler globally.
7953         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7954         !_MSC_VER.
7955         (gl_msvc_invalid_parameter_handler): Remove declaration.
7956         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7957         declarations.
7958         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7959         Install the handler globally, don't uninstall it.
7960         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7961         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7962         currently valid, call RaiseException instead.
7963         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7964         for !_MSC_VER.
7965
7966 2011-09-25  Bruno Haible  <bruno@clisp.org>
7967
7968         strerror_r-posix: Fix for MSVC 9.
7969         * lib/strerror_r.c (local_snprintf): New function.
7970         (snprintf): Define to local_snprintf, not to _snprintf.
7971
7972 2011-09-25  Bruno Haible  <bruno@clisp.org>
7973
7974         ftruncate: Support for MSVC 9.
7975         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7976         (chsize_nothrow): New function.
7977         (chsize): Redefine as a macro.
7978         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7979         * modules/ftruncate (Depends-on): Add msvc-inval.
7980
7981 2011-09-25  Bruno Haible  <bruno@clisp.org>
7982
7983         New module 'fstat'.
7984         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7985         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7986         * lib/fchdir.c (rpl_fstat): Remove function.
7987         * m4/fstat.m4: New file.
7988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7989         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7990         declared.
7991         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7992         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7993         * modules/fstat: New file.
7994         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7995         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7996         is set.
7997         * doc/posix-functions/fstat.texi: Mention the new module and the
7998         problem on MSVC.
7999         * NEWS: Mention the change.
8000         * modules/acl (Depends-on): Add fstat.
8001         * modules/chdir-safer (Depends-on): Likewise.
8002         * modules/chown (Depends-on): Likewise.
8003         * modules/copy-file (Depends-on): Likewise.
8004         * modules/fchdir (Depends-on): Likewise.
8005         * modules/fdopendir (Depends-on): Likewise.
8006         * modules/fopen (Depends-on): Likewise.
8007         * modules/fts (Depends-on): Likewise.
8008         * modules/getcwd (Depends-on): Likewise.
8009         * modules/isapipe (Depends-on): Likewise.
8010         * modules/linkat (Depends-on): Likewise.
8011         * modules/lseek (Depends-on): Likewise.
8012         * modules/mkdir-p (Depends-on): Likewise.
8013         * modules/open (Depends-on): Likewise.
8014         * modules/openat (Depends-on): Likewise.
8015         * modules/read-file (Depends-on): Likewise.
8016         * modules/renameat (Depends-on): Likewise.
8017         * modules/utimens (Depends-on): Likewise.
8018
8019 2011-09-25  Bruno Haible  <bruno@clisp.org>
8020
8021         linkat: Fix compilation on MSVC 9.
8022         * lib/linkat.c: Don't include <stdint.h>.
8023
8024 2011-09-25  Bruno Haible  <bruno@clisp.org>
8025
8026         fclose: Support for MSVC 9.
8027         * lib/fclose.c: Include msvc-inval.h.
8028         (fclose_nothrow): New function.
8029         (rpl_fclose): Use it.
8030         * modules/fclose (Depends-on): Add msvc-inval.
8031         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8032
8033 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8034
8035         dup2: minor simplifications
8036         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8037         that it's a performance win.
8038         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8039         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8040
8041 2011-09-24  Jim Meyering  <meyering@redhat.com>
8042
8043         test-futimens: avoid a warning from gcc -Wshadow
8044         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8045         to avoid a shadowing warning.
8046
8047 2011-09-24  Bruno Haible  <bruno@clisp.org>
8048
8049         fdopen: Support for MSVC 9.
8050         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8051         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8052         * lib/fdopen.c: Include msvc-inval.h.
8053         (fdopen_nothrow): New function.
8054         (rpl_fdopen): Use it.
8055         * modules/fdopen (Depends-on): Add msvc-inval.
8056         * modules/fclose-tests (Depends-on): Add fdopen.
8057         * modules/fflush-tests (Depends-on): Likewise.
8058         * modules/fgetc-tests (Depends-on): Likewise.
8059         * modules/fputc-tests (Depends-on): Likewise.
8060         * modules/fread-tests (Depends-on): Likewise.
8061         * modules/freopen-tests (Depends-on): Likewise.
8062         * modules/fseeko-tests (Depends-on): Likewise.
8063         * modules/ftello-tests (Depends-on): Likewise.
8064         * modules/fwrite-tests  (Depends-on): Likewise.
8065         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8066
8067 2011-09-24  Bruno Haible  <bruno@clisp.org>
8068
8069         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8070         * modules/fgetc-tests (Depends-on): Add unistd.
8071         * modules/fputc-tests (Depends-on): Likewise.
8072         * modules/fread-tests (Depends-on): Likewise.
8073         * modules/fwrite-tests (Depends-on): Likewise.
8074
8075 2011-09-24  Bruno Haible  <bruno@clisp.org>
8076
8077         dup: Simplify autoconf test.
8078         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8079         on gl_MSVC_INVAL's result.
8080
8081 2011-09-24  Bruno Haible  <bruno@clisp.org>
8082
8083         Tests for function fwrite().
8084         * modules/fwrite-tests: New file.
8085         * tests/test-fwrite.c: New file.
8086         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8087
8088         Tests for function fread().
8089         * modules/fread-tests: New file.
8090         * tests/test-fread.c: New file.
8091         * modules/stdio-tests (Depends-on): Add fread-tests.
8092
8093         Activate fputc tests.
8094         * modules/stdio-tests (Depends-on): Add fputc-tests.
8095
8096         Enhance fgetc, fputc tests.
8097         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8098         * tests/test-fputc.c (main): Likewise.
8099
8100 2011-09-24  Bruno Haible  <bruno@clisp.org>
8101
8102         write: Support for MSVC 9.
8103         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8104         is not 1.
8105         * lib/write.c (write_nothrow): New function.
8106         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8107         not 1. Use write_nothrow.
8108         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8109         invalid parameter handler.
8110         (gl_PREREQ_WRITE): New macro.
8111         * modules/write (Depends-on): Add msvc-inval.
8112         (configure.ac): Invoke gl_PREREQ_WRITE.
8113         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8114
8115 2011-09-24  Bruno Haible  <bruno@clisp.org>
8116
8117         read: Fix last commit.
8118         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8119
8120 2011-09-24  Bruno Haible  <bruno@clisp.org>
8121
8122         dup2: Fix last commit.
8123         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8124         (rpl_dup2): Disable fcntl workaround on native Windows.
8125
8126         sigprocmask: Make code safer.
8127         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8128         section that changes macro definitions for this compilation unit.
8129
8130 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8131
8132         dup2: clarify by coalescing Windows-specific material
8133         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8134         "msvc-nothrow.h"' to the Windows-specific section, so that the
8135         Emacs source need not contain these include files.
8136         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8137         Windows-specific fixes into this function rather than just the
8138         nothrow fix, as this shortens and clarifies the code.  Always
8139         define as a function, as that's a bit cleaner than having it be
8140         sometimes a function and sometimes a macro.
8141         (rpl_dup2): Move the Windows-specific stuff out of here and into
8142         ms_windows_dup2.  Don't protect the Haiku-related fix with
8143         "#if !defined __linux__", as the same code also works around
8144         a Linux kernel bug, and it doesn't add any system calls on any
8145         platform.  Add comment about FreeBSD 6.1.
8146
8147         sigprocmask: move #include directive
8148         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8149         Windows-specific section, so that the Emacs source need not
8150         contain msvc-inval.h.
8151
8152 2011-09-23  Bruno Haible  <bruno@clisp.org>
8153
8154         read: Support for MSVC 9.
8155         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8156         is not 1.
8157         * lib/read.c (read_nothrow): New function.
8158         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8159         read_nothrow.
8160         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8161         invalid parameter handler.
8162         (gl_PREREQ_READ): New macro.
8163         * modules/read (Depends-on): Add msvc-inval.
8164         (configure.ac): Invoke gl_PREREQ_READ.
8165         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8166
8167 2011-09-23  Bruno Haible  <bruno@clisp.org>
8168
8169         close: Support for MSVC 9.
8170         * lib/close.c: Include <errno.h>, msvc-inval.h.
8171         (close_nothrow): New function.
8172         (rpl_close): Use it.
8173         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8174         invalid parameter handler.
8175         * modules/close (Depends-on): Add msvc-inval.
8176         * modules/dup2-tests (Depends-on): Add close.
8177         * modules/dup3-tests (Depends-on): Likewise.
8178         * modules/fcntl-tests (Depends-on): Likewise.
8179         * modules/spawn-pipe-tests (Depends-on): Likewise.
8180         * modules/unistd-safer-tests (Depends-on): Likewise.
8181         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8182
8183 2011-09-23  Bruno Haible  <bruno@clisp.org>
8184
8185         New module 'dup'.
8186         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8187         Allow replacement.
8188         * lib/dup.c: New file.
8189         * lib/fchdir.c (rpl_dup): Remove function.
8190         * m4/dup.m4: New file.
8191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8192         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8193         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8194         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8195         * modules/dup: New file.
8196         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8197         'dup' module is in use.
8198         * modules/fdopendir (Depends-on): Add dup.
8199         * modules/fdutimensat-tests (Depends-on): Likewise.
8200         * modules/fts (Depends-on): Likewise.
8201         * modules/futimens-tests (Depends-on): Likewise.
8202         * modules/posix_spawnp-tests (Depends-on): Likewise.
8203         * modules/unistd-safer-tests (Depends-on): Likewise.
8204         * modules/utimens-tests (Depends-on): Likewise.
8205         * doc/posix-functions/dup.texi: Mention the new module and the problem
8206         on MSVC.
8207
8208 2011-09-23  Bruno Haible  <bruno@clisp.org>
8209
8210         getdtablesize: Support for MSVC 9.
8211         * lib/getdtablesize.c: Include msvc-inval.h.
8212         (_setmaxstdio_nothrow): New function.
8213         (_setmaxstdio): Redefine it.
8214         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8215         * modules/getdtablesize (Depends-on): Add msvc-inval.
8216         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8217
8218 2011-09-23  Bruno Haible  <bruno@clisp.org>
8219
8220         signal-h: Rename from signal.
8221         * modules/signal-h: Renamed from modules/signal.
8222         * modules/pthread_sigmask (Depends-on): Update.
8223         * modules/raise (Depends-on): Likewise.
8224         * modules/sigaction (Depends-on): Likewise.
8225         * modules/sigpipe (Depends-on): Likewise.
8226         * modules/sigprocmask (Depends-on): Likewise.
8227         * modules/sys_select (Depends-on): Likewise.
8228         * modules/signal-h-tests: Renamed from modules/signal-tests.
8229         (Files, Depends-on, Makefile.am): Update.
8230         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8231         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8232         (Files, Makefile.am): Update.
8233         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8234         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8235         * modules/signal: New placeholder file.
8236         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8237         * doc/posix-headers/signal.texi: Update.
8238         * NEWS: Mention the change.
8239
8240 2011-09-23  Bruno Haible  <bruno@clisp.org>
8241
8242         sigprocmask: Avoid crashes through signal() on MSVC 9.
8243         * lib/sigprocmask.c: Include msvc-inval.h.
8244         (signal_nothrow): New function.
8245         (signal): Redefine it.
8246         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8247         * modules/sigprocmask (Depends-on): Add msvc-inval.
8248         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8249
8250 2011-09-23  Bruno Haible  <bruno@clisp.org>
8251
8252         Tests for module 'raise'.
8253         * modules/raise-tests: New file.
8254         * tests/test-raise.c: New file.
8255
8256         raise: Support for MSVC.
8257         * lib/signal.in.h (raise): New declaration.
8258         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8259         for native Windows platforms.
8260         * m4/raise.m4: New file.
8261         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8262         HAVE_RAISE, REPLACE_RAISE.
8263         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8264         REPLACE_RAISE.
8265         * modules/raise (Status, Notice): Remove fields.
8266         (Files): Add m4/raise.m4.
8267         (Depends-on): Add signal, msvc-inval.
8268         (configure.ac): Use the common idioms.
8269         (Maintainer): Add me.
8270         * tests/test-signal-c++.cc: Check the signature of raise.
8271         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8272
8273 2011-09-23  Bruno Haible  <bruno@clisp.org>
8274
8275         pipe2: Fix compilation on pre-C99 compilers.
8276         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8277
8278 2011-09-23  Bruno Haible  <bruno@clisp.org>
8279
8280         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8281         * lib/msvc-nothrow.h: New file.
8282         * lib/msvc-nothrow.c: New file.
8283         * m4/msvc-nothrow.m4: New file.
8284         * modules/msvc-nothrow: New file.
8285         * lib/dup2.c: Include msvc-nothrow.h.
8286         (rpl_dup2): No need to protect _get_osfhandle call here.
8287         * lib/accept4.c: Include msvc-nothrow.h.
8288         * lib/error.c: Likewise.
8289         * lib/fcntl.c: Likewise.
8290         * lib/lseek.c: Likewise.
8291         * lib/nonblocking.c: Likewise.
8292         * lib/poll.c: Likewise.
8293         * lib/read.c: Likewise.
8294         * lib/select.c: Likewise.
8295         * lib/sockets.h: Likewise.
8296         * lib/sockets.c: Likewise.
8297         * lib/stdio-read.c: Likewise.
8298         * lib/stdio-write.c: Likewise.
8299         * lib/write.c: Likewise.
8300         * lib/w32sock.h: Likewise.
8301         * lib/w32spawn.h: Likewise.
8302         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8303         * lib/fsync.c: Likewise.
8304         * lib/isapipe.c: Likewise.
8305         * modules/dup2 (Depends-on): Add msvc-nothrow.
8306         * modules/accept4 (Depends-on): Likewise.
8307         * modules/error (Depends-on): Likewise.
8308         * modules/fcntl (Depends-on): Likewise.
8309         * modules/lseek (Depends-on): Likewise.
8310         * modules/nonblocking (Depends-on): Likewise.
8311         * modules/poll (Depends-on): Likewise.
8312         * modules/read (Depends-on): Likewise.
8313         * modules/select (Depends-on): Likewise.
8314         * modules/sockets (Depends-on): Likewise.
8315         * modules/sigpipe (Depends-on): Likewise.
8316         * modules/write (Depends-on): Likewise.
8317         * modules/accept (Depends-on): Likewise.
8318         * modules/bind (Depends-on): Likewise.
8319         * modules/connect (Depends-on): Likewise.
8320         * modules/gethostname (Depends-on): Likewise.
8321         * modules/getpeername (Depends-on): Likewise.
8322         * modules/getsockname (Depends-on): Likewise.
8323         * modules/getsockopt (Depends-on): Likewise.
8324         * modules/ioctl (Depends-on): Likewise.
8325         * modules/listen (Depends-on): Likewise.
8326         * modules/recv (Depends-on): Likewise.
8327         * modules/recvfrom (Depends-on): Likewise.
8328         * modules/send (Depends-on): Likewise.
8329         * modules/sendto (Depends-on): Likewise.
8330         * modules/setsockopt (Depends-on): Likewise.
8331         * modules/shutdown (Depends-on): Likewise.
8332         * modules/socket (Depends-on): Likewise.
8333         * modules/execute (Depends-on): Likewise.
8334         * modules/spawn-pipe (Depends-on): Likewise.
8335         * modules/flock (Depends-on): Likewise.
8336         * modules/fsync (Depends-on): Likewise.
8337         * modules/isapipe (Depends-on): Likewise.
8338         * tests/test-cloexec.c: Include msvc-nothrow.h.
8339         * tests/test-dup-safer.c: Likewise.
8340         * tests/test-dup2.c: Likewise.
8341         * tests/test-dup3.c: Likewise.
8342         * tests/test-fcntl.c: Likewise.
8343         * tests/test-pipe.c: Likewise.
8344         * tests/test-pipe2.c: Likewise.
8345         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8346         * modules/unistd-safer-tests (Depends-on): Likewise.
8347         * modules/dup2-tests (Depends-on): Likewise.
8348         * modules/dup3-tests (Depends-on): Likewise.
8349         * modules/fcntl-tests (Depends-on): Likewise.
8350         * modules/pipe-posix-tests (Depends-on): Likewise.
8351         * modules/pipe2-tests (Depends-on): Likewise.
8352
8353 2011-09-23  Bruno Haible  <bruno@clisp.org>
8354
8355         dup2: Make code more maintainable.
8356         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8357         (rpl_dup2): Use it.
8358         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8359         * modules/dup2 (configure.ac): Invoke it.
8360         Reported by Paul Eggert.
8361
8362 2011-09-23  Bruno Haible  <bruno@clisp.org>
8363
8364         msvc-inval: Fix compilation error.
8365         * lib/msvc-inval.h: Include <excpt.h>.
8366
8367 2011-09-23  Bruno Haible  <bruno@clisp.org>
8368
8369         mkdir: Tweak for MSVC 9.
8370         * lib/sys_stat.in.h: Update comments.
8371         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8372
8373         Tests for module 'chdir'.
8374         * modules/chdir-tests: New file.
8375         * tests/test-chdir.c: New file.
8376
8377         New module 'chdir'.
8378         * modules/chdir: New file.
8379         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8380         (chdir): New declaration.
8381         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8382         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8383         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8384         * tests/test-unistd-c++.cc: Check signature of chdir.
8385         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8386         * modules/chdir-long (Depends-on): Add chdir.
8387         * modules/fchdir (Depends-on): Likewise.
8388         * modules/rename (Depends-on): Likewise.
8389         * modules/savewd (Depends-on): Likewise.
8390
8391         rmdir: Support for mingw, MSVC 9.
8392         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8393         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8394
8395         getcwd: Tweak for MSVC 9.
8396         * lib/unistd.in.h: Update comments.
8397         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8398
8399 2011-09-22  Bruno Haible  <bruno@clisp.org>
8400
8401         strerror_r-posix: Avoid a link error on MSVC.
8402         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8403         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8404
8405 2011-09-22  Bruno Haible  <bruno@clisp.org>
8406
8407         select: Avoid link errors on MSVC.
8408         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8409         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8410         * modules/pselect (Link): Likewise.
8411         * NEWS: Mention the change.
8412         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8413         test-select-stdin against $(LIB_SELECT).
8414         * modules/pselect-tests (Makefile.am): Link test-pselect against
8415         $(LIB_SELECT).
8416
8417 2011-09-22  Bruno Haible  <bruno@clisp.org>
8418
8419         select: Avoid compilation error on MSVC.
8420         * lib/select.c: Don't include <stdbool.h>.
8421
8422 2011-09-21  Bruno Haible  <bruno@clisp.org>
8423
8424         Consolidate all uses of PATH_MAX in *.m4 files.
8425         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8426         macros.
8427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8428         and gl_PATHMAX_SNIPPET.
8429         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8430         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8431         * modules/chdir-long (Files): Add m4/pathmax.m4.
8432         * modules/getcwd (Files): Likewise.
8433
8434 2011-09-21  Bruno Haible  <bruno@clisp.org>
8435
8436         ftruncate: Un-deprecate, concentrate on Win32 support.
8437         * modules/ftruncate (Status, Notice): Remove sections.
8438         (Depends-on): Add largefile.
8439         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8440         non-mingw platforms.
8441         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8442         include <io.h>.
8443         * modules/perror-tests (Depends-on): Add ftruncate.
8444         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8445         'ftruncate' module.
8446
8447 2011-09-21  Bruno Haible  <bruno@clisp.org>
8448
8449         Add dependencies to new dirent related modules.
8450         * modules/opendir (Depends-on): Add closedir.
8451         * modules/getcwd (Depends-on): Add opendir, closedir.
8452         * modules/dirent-safer-tests (Depends-on): Likewise.
8453         * modules/fdopendir-tests (Depends-on): Likewise.
8454         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8455         * modules/renameat-tests (Depends-on): Likewise.
8456
8457 2011-09-21  Bruno Haible  <bruno@clisp.org>
8458
8459         opendir: Avoid compilation error on mingw.
8460         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8461         * modules/opendir (Depends-on): Add unistd.
8462
8463 2011-09-21  Bruno Haible  <bruno@clisp.org>
8464
8465         ftruncate tests: Avoid a test failure on mingw.
8466         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8467
8468 2011-09-21  Bruno Haible  <bruno@clisp.org>
8469
8470         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8471         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8472         native Windows.
8473
8474 2011-09-21  Bruno Haible  <bruno@clisp.org>
8475
8476         New module 'fdopen'.
8477         * lib/stdio.in.h (fdopen): New declaration.
8478         * lib/fdopen.c: New file.
8479         * m4/fdopen.m4: New file.
8480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8481         REPLACE_FDOPEN.
8482         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8483         REPLACE_FDOPEN.
8484         * modules/fdopen: New file.
8485         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8486         * tests/test-stdio-c++.cc: Check signature of fdopen.
8487         * doc/posix-functions/fdopen.texi: Mention the new module.
8488
8489 2011-09-21  Bruno Haible  <bruno@clisp.org>
8490
8491         unlockpt tests: Avoid test failure on NetBSD 5.1.
8492         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8493         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8494
8495 2011-09-21  Bruno Haible  <bruno@clisp.org>
8496
8497         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8498         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8499         * tests/test-getlogin_r.c (main): Likewise.
8500
8501 2011-09-20  Bruno Haible  <bruno@clisp.org>
8502
8503         time tests: Don't require pid_t.
8504         * doc/posix-headers/time.texi: Revert last change.
8505         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8506         * tests/test-time.c: Comment out the check for pid_t.
8507
8508 2011-09-20  Bruno Haible  <bruno@clisp.org>
8509
8510         fsync tests: Avoid a test failure on mingw.
8511         * tests/test-fsync.c (main): Allow a failure with EIO.
8512
8513 2011-09-20  Bruno Haible  <bruno@clisp.org>
8514
8515         euidaccess: Update comments.
8516         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8517
8518 2011-09-20  Bruno Haible  <bruno@clisp.org>
8519
8520         Ensure EBADF returns for socket functions on mingw.
8521         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8522         descriptor is invalid.
8523         * lib/bind.c (rpl_bind): Likewise.
8524         * lib/connect.c (rpl_connect): Likewise.
8525         * lib/getpeername.c (rpl_getpeername): Likewise.
8526         * lib/getsockname.c (rpl_getsockname): Likewise.
8527         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8528         * lib/listen.c (rpl_listen): Likewise.
8529         * lib/recv.c (rpl_recv): Likewise.
8530         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8531         * lib/send.c (rpl_send): Likewise.
8532         * lib/sendto.c (rpl_sendto): Likewise.
8533         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8534         * lib/shutdown.c (rpl_shutdown): Likewise.
8535
8536 2011-09-20  Bruno Haible  <bruno@clisp.org>
8537
8538         select tests: EBADF tests.
8539         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8540         test_bad_fd): New functions.
8541         (test_function): Invoke also test_bad_fd.
8542
8543 2011-09-20  Bruno Haible  <bruno@clisp.org>
8544
8545         Tests for module 'posix_spawn_file_actions_addopen.
8546         * modules/posix_spawn_file_actions_addopen-tests: New file.
8547         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8548
8549         Tests for module 'posix_spawn_file_actions_adddup2'.
8550         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8551         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8552
8553         Tests for module 'posix_spawn_file_actions_addclose'.
8554         * modules/posix_spawn_file_actions_addclose-tests: New file.
8555         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8556
8557 2011-09-20  Bruno Haible  <bruno@clisp.org>
8558
8559         Tests for module 'unlockpt'.
8560         * modules/unlockpt-tests: New file.
8561         * tests/test-unlockpt.c: New file.
8562         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8563
8564         Tests for module 'grantpt'.
8565         * modules/grantpt-tests: New file.
8566         * tests/test-grantpt.c: New file.
8567         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8568
8569 2011-09-20  Bruno Haible  <bruno@clisp.org>
8570
8571         freopen tests: EBADF tests.
8572         * tests/test-freopen.c: Include errno.h, unistd.h.
8573         (main): Add tests for EBADF, commented out for the moment.
8574
8575         fclose tests: EBADF tests.
8576         * tests/test-fclose.c (main): Add tests for EBADF.
8577
8578         fflush tests: EBADF tests.
8579         * tests/test-fflush.c: Include errno.h, macros.h.
8580         (main): Add tests for EBADF.
8581
8582         ftello tests: EBADF tests.
8583         * tests/test-ftello4.sh: New file.
8584         * tests/test-ftello4.c: New file.
8585         * modules/ftello-tests (Files): Add them.
8586         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8587
8588         fseeko tests: EBADF tests.
8589         * tests/test-fseeko4.sh: New file.
8590         * tests/test-fseeko4.c: New file.
8591         * modules/fseeko-tests (Files): Add them.
8592         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8593
8594         Tests for function fputc().
8595         * modules/fputc-tests: New file.
8596         * tests/test-fputc.c: New file.
8597         * modules/stdio-tests (Depends-on): Add fputc-tests.
8598
8599         Tests for function fgetc().
8600         * modules/fgetc-tests: New file.
8601         * tests/test-fgetc.c: New file.
8602         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8603
8604         Tests for function fdopen().
8605         * modules/fdopen-tests: New file.
8606         * tests/test-fdopen.c: New file.
8607         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8608
8609         Tests for module 'vdprintf'.
8610         * modules/vdprintf-tests: New file.
8611         * tests/test-vdprintf.c: New file.
8612
8613         Tests for module 'dprintf'.
8614         * modules/dprintf-tests: New file.
8615         * tests/test-dprintf.c: New file.
8616
8617 2011-09-20  Bruno Haible  <bruno@clisp.org>
8618
8619         Tests for module 'ioctl'.
8620         * modules/ioctl-tests: New file.
8621         * tests/test-ioctl.c: New file.
8622
8623 2011-09-20  Bruno Haible  <bruno@clisp.org>
8624
8625         fcntl tests: EBADF tests.
8626         * tests/test-fcntl.c (main): Add more tests for EBADF.
8627
8628 2011-09-20  Bruno Haible  <bruno@clisp.org>
8629
8630         utimensat tests: EBADF tests.
8631         * tests/test-utimensat.c (main): Add tests for EBADF.
8632
8633         renameat tests: EBADF tests.
8634         * tests/test-renameat.c (main): Add tests for EBADF.
8635
8636         mkfifoat tests: EBADF tests.
8637         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8638
8639         readlinkat tests: EBADF tests.
8640         * tests/test-readlinkat.c (main): Add tests for EBADF.
8641
8642         symlinkat tests: EBADF tests.
8643         * tests/test-symlinkat.c (main): Add tests for EBADF.
8644
8645         linkat tests: EBADF tests.
8646         * tests/test-linkat.c (main): Add tests for EBADF.
8647
8648         Tests for module 'faccessat'.
8649         * modules/faccessat-tests: New file.
8650         * tests/test-faccessat.c: New file.
8651
8652         fdopendir tests: EBADF tests.
8653         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8654
8655         openat tests: EBADF tests.
8656         * tests/test-fchownat.c (main): Add tests for EBADF.
8657         * tests/test-fstatat.c (main): Likewise.
8658         * tests/test-mkdirat.c (main): Likewise.
8659         * tests/test-openat.c (main): Likewise.
8660         * tests/test-unlinkat.c (main): Likewise.
8661         * tests/test-fchmodat.c: New file.
8662         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8663         (Makefile.am): Also run 'test-fchmodat'.
8664
8665 2011-09-20  Bruno Haible  <bruno@clisp.org>
8666
8667         utimens, futimens, fdutimensat tests: EBADF tests.
8668         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8669
8670         Tests for function fstat().
8671         * modules/fstat-tests: New file.
8672         * tests/test-fstat.c: New file.
8673         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8674
8675 2011-09-20  Bruno Haible  <bruno@clisp.org>
8676
8677         test-ttyname_r tests: EBADF tests.
8678         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8679
8680         Tests for module 'isatty'.
8681         * modules/isatty-tests: New file.
8682         * tests/test-isatty.c: New file.
8683
8684         Tests for module 'write'.
8685         * modules/write-tests: New file.
8686         * tests/test-write.c: New file.
8687
8688         Tests for module 'read'.
8689         * modules/read-tests: New file.
8690         * tests/test-read.c: New file.
8691
8692         pwrite tests: EBADF tests.
8693         * tests/test-pwrite.c (main): Add tests for EBADF.
8694
8695         pread tests: EBADF tests.
8696         * tests/test-pread.c (main): Add tests for EBADF.
8697
8698         lseek tests: EBADF tests.
8699         * tests/test-lseek.c (main): Add more tests for EBADF.
8700
8701         Tests for module 'ftruncate'.
8702         * modules/ftruncate-tests: New file.
8703         * tests/test-ftruncate.sh: New file.
8704         * tests/test-ftruncate.c: New file.
8705
8706         fsync tests: EBADF tests.
8707         * tests/test-fsync.c (main): Add more tests for EBADF.
8708
8709         fdatasync tests: EBADF tests.
8710         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8711
8712         Tests for module 'fchown'.
8713         * modules/fchown-tests: New file.
8714         * tests/test-fchown.c: New file.
8715
8716         Tests for module 'fchmod'.
8717         * modules/fchmod-tests: New file.
8718         * tests/test-fchmod.c: New file.
8719
8720         fchdir tests: EBADF tests.
8721         * tests/test-fchdir.c (main): Add more tests for EBADF.
8722
8723         dup2 tests: EBADF tests.
8724         * tests/test-dup2.c (main): Add more tests for EBADF.
8725
8726         Tests for module 'dup'.
8727         * modules/dup-tests: New file.
8728         * tests/test-dup.c: New file.
8729
8730         Tests for module 'close'.
8731         * modules/close-tests: New file.
8732         * tests/test-close.c: New file.
8733
8734 2011-09-20  Bruno Haible  <bruno@clisp.org>
8735
8736         Tests for module 'shutdown'.
8737         * modules/shutdown-tests: New file.
8738         * tests/test-shutdown.c: New file.
8739
8740         Tests for module 'setsockopt'.
8741         * modules/setsockopt-tests: New file.
8742         * tests/test-setsockopt.c: New file.
8743
8744         Tests for module 'sendto'.
8745         * modules/sendto-tests: New file.
8746         * tests/test-sendto.c: New file.
8747
8748         Tests for module 'send'.
8749         * modules/send-tests: New file.
8750         * tests/test-send.c: New file.
8751
8752         Tests for module 'recvfrom'.
8753         * modules/recvfrom-tests: New file.
8754         * tests/test-recvfrom.c: New file.
8755
8756         Tests for module 'recv'.
8757         * modules/recv-tests: New file.
8758         * tests/test-recv.c: New file.
8759
8760         Tests for module 'listen'.
8761         * modules/listen-tests: New file.
8762         * tests/test-listen.c: New file.
8763
8764         Tests for module 'getsockopt'.
8765         * modules/getsockopt-tests: New file.
8766         * tests/test-getsockopt.c: New file.
8767
8768         Tests for module 'getsockname'.
8769         * modules/getsockname-tests: New file.
8770         * tests/test-getsockname.c: New file.
8771
8772         Tests for module 'getpeername'.
8773         * modules/getpeername-tests: New file.
8774         * tests/test-getpeername.c: New file.
8775
8776         Tests for module 'connect'.
8777         * modules/connect-tests: New file.
8778         * tests/test-connect.c: New file.
8779
8780         Tests for module 'bind'.
8781         * modules/bind-tests: New file.
8782         * tests/test-bind.c: New file.
8783
8784         accept4 tests: Fix for native Windows.
8785         * tests/test-accept4.c: Include sockets.h.
8786         (main): Invoke gl_sockets_startup.
8787         * modules/accept4-tests (Depends-on): Add sockets.
8788
8789         accept tests: Fix for native Windows.
8790         * tests/test-accept.c: Include sockets.h.
8791         (main): Invoke gl_sockets_startup.
8792         * modules/accept-tests (Depends-on): Add sockets.
8793
8794 2011-09-19  Bruno Haible  <bruno@clisp.org>
8795
8796         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8797         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8798         do...while(0).
8799         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8800         Suggested by Paul Eggert.
8801
8802 2011-09-19  Bruno Haible  <bruno@clisp.org>
8803
8804         sched: Ensure pid_t is defined.
8805         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8806         not define pid_t.
8807         * lib/sched.in.h: Include <sys/types.h>.
8808         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8810
8811 2011-09-19  Bruno Haible  <bruno@clisp.org>
8812
8813         msvc-inval: Ensure the entire expansion is a single statement.
8814         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8815         of braces.
8816
8817 2011-09-19  Jim Meyering  <meyering@redhat.com>
8818
8819         tests: use printf, not echo in init.sh's warn_ function
8820         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8821         misbehave when given strings containing a backslash or starting
8822         with e.g., -n.  James Youngman suggested setting IFS.
8823
8824 2011-09-19  Eric Blake  <eblake@redhat.com>
8825
8826         futimens: enhance test
8827         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8828         closed non-negative fd.
8829
8830         date: accept 'hence' as opposite of 'ago'
8831         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8832         * tests/test-parse-datetime.c (main): Enhance test.
8833         Suggested by Jesse Wilson.
8834
8835 2011-09-19  Jim Meyering  <meyering@redhat.com>
8836
8837         getcwd: don't fail in a deep directory on a system without openat
8838         Before this change, getcwd would fail when called from a directory
8839         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8840         the non-openat implementation used "..", "../..", "../../..", etc.
8841         to access ancestor directories.  With too many, that string would
8842         be longer than PATH_MAX.
8843         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8844         using gnulib's openat replacement.
8845         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8846         we're using the replacement function.
8847
8848 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8849
8850         maint.mk: avoid warnings from perl about missing files
8851         * top/maint.mk (def_sym_regex): Ignore files listed in
8852         $(gl_other_headers_) that do not exist, say because a project
8853         does not use a corresponding module.
8854
8855 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8856
8857         stat: use pathmax.h only if needed
8858         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8859         This is better for Emacs, which does not have a mingw port and
8860         therefore can avoid the pathmax module.
8861
8862         utimens: remove dependency on dup2
8863         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8864         to work around the Linux kernel bug.
8865         * modules/utimens (Depends-on): Remove dup2.
8866
8867 2011-09-18  Bruno Haible  <bruno@clisp.org>
8868
8869         inet_ntop, inet_pton: Look for it also in libresolv.
8870         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8871         libnsl, search for it in libresolv.
8872         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8873         Needed on Solaris 7.
8874
8875 2011-09-18  Bruno Haible  <bruno@clisp.org>
8876
8877         accept, accept4 tests: Avoid link error on Solaris.
8878         * modules/accept-tests (Makefile.am): Link test-accept against
8879         $(LIBSOCKET).
8880         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8881         $(LIBSOCKET).
8882
8883         accept4: Avoid link error on Solaris.
8884         * modules/accept4 (Link): New section.
8885
8886         socket functions: Avoid link errors on Solaris.
8887         * modules/accept (Depends-on): Add socketlib.
8888         (Link): New section.
8889         * modules/bind (Depends-on): Add socketlib.
8890         (Link): New section.
8891         * modules/connect (Depends-on): Add socketlib.
8892         (Link): New section.
8893         * modules/getpeername (Depends-on): Add socketlib.
8894         (Link): New section.
8895         * modules/getsockname (Depends-on): Add socketlib.
8896         (Link): New section.
8897         * modules/getsockopt (Depends-on): Add socketlib.
8898         (Link): New section.
8899         * modules/listen (Depends-on): Add socketlib.
8900         (Link): New section.
8901         * modules/recv (Depends-on): Add socketlib.
8902         (Link): New section.
8903         * modules/recvfrom (Depends-on): Add socketlib.
8904         (Link): New section.
8905         * modules/send (Depends-on): Add socketlib.
8906         (Link): New section.
8907         * modules/sendto (Depends-on): Add socketlib.
8908         (Link): New section.
8909         * modules/setsockopt (Depends-on): Add socketlib.
8910         (Link): New section.
8911         * modules/shutdown (Depends-on): Add socketlib.
8912         (Link): New section.
8913         * modules/socket (Depends-on): Add socketlib.
8914         (Link): New section.
8915
8916 2011-09-18  Bruno Haible  <bruno@clisp.org>
8917
8918         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8919         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8920         than 5 seconds.
8921         * modules/ptsname-tests (configure.ac): Test for alarm.
8922
8923 2011-09-18  Bruno Haible  <bruno@clisp.org>
8924
8925         posix_spawn_file_actions_add*: Fix module dependencies.
8926         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8927         posix_spawn_file_actions_init.
8928         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8929         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8930
8931 2011-09-18  Bruno Haible  <bruno@clisp.org>
8932
8933         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8934         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8935         * tests/test-renameat.c (main): Likewise.
8936
8937 2011-09-18  Bruno Haible  <bruno@clisp.org>
8938
8939         Tests for module 'accept4'.
8940         * modules/accept4-tests: New file.
8941         * tests/test-accept4.c: New file.
8942
8943 2011-09-18  Bruno Haible  <bruno@clisp.org>
8944
8945         Tests for module 'accept'.
8946         * modules/accept-tests: New file.
8947         * tests/test-accept.c: New file.
8948
8949 2011-09-18  Bruno Haible  <bruno@clisp.org>
8950
8951         dup2: Support for MSVC.
8952         * lib/dup2.c: Include msvc-inval.h.
8953         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8954         _get_osfhandle calls.
8955         * modules/dup2 (Depends-on): Add msvc-inval.
8956         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8957
8958         New module 'msvc-inval'.
8959         * lib/msvc-inval.h: New file.
8960         * lib/msvc-inval.c: New file.
8961         * m4/msvc-inval.m4: New file.
8962         * modules/msvc-inval: New file.
8963
8964 2011-09-17  Bruno Haible  <bruno@clisp.org>
8965
8966         Tests for module 'pclose'.
8967         * modules/pclose-tests: New file.
8968
8969         New module 'pclose'.
8970         * lib/stdio.in.h (pclose): New declaration.
8971         * lib/pclose.c: New file.
8972         * m4/pclose.m4: New file.
8973         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8974         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8975         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8976         * modules/pclose: New file.
8977         * modules/popen-tests (Depends-on): Add pclose.
8978         * modules/popen-safer-tests (Depends-on): Likewise.
8979         * doc/posix-functions/pclose.texi: Mention the new module.
8980
8981 2011-09-17  Bruno Haible  <bruno@clisp.org>
8982
8983         popen: Support for MSVC.
8984         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8985         * lib/popen.c (popen): Provide alternate definition for native Windows.
8986         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8988         * modules/popen (Depends-on, configure.ac): Update condition.
8989         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8990         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8991         fixed.
8992
8993 2011-09-17  Bruno Haible  <bruno@clisp.org>
8994
8995         isnanl, isnand, isnanf: Work around MSVC bug.
8996         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8997
8998 2011-09-17  Bruno Haible  <bruno@clisp.org>
8999
9000         sys_socket tests: Fix recent mistake.
9001         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9002
9003 2011-09-17  Bruno Haible  <bruno@clisp.org>
9004
9005         putenv: Support for MSVC.
9006         * modules/putenv (Depends-on): Add environ.
9007         * lib/putenv.c (environ): Disable declaration.
9008         * lib/unistd.in.h: Update comment.
9009
9010 2011-09-17  Bruno Haible  <bruno@clisp.org>
9011
9012         math: Avoid macro redefinition warnings on MSVC.
9013         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9014         Undefine before redefining.
9015
9016 2011-09-17  Bruno Haible  <bruno@clisp.org>
9017
9018         doc: Mention functions which are declared as macros.
9019         * doc/posix-functions/*[fl].texi: Mention that some functions are
9020         defined as macros with arguments only.
9021
9022 2011-09-17  Bruno Haible  <bruno@clisp.org>
9023
9024         Add dependencies to new dirent related modules.
9025         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9026         * modules/fts (Depends-on): Likewise.
9027         * modules/glob (Depends-on): Likewise.
9028         * modules/savedir (Depends-on): Likewise.
9029         * modules/scandir (Depends-on): Likewise.
9030         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9031         * modules/fdopendir (Depends-on): Add opendir.
9032
9033 2011-09-17  Bruno Haible  <bruno@clisp.org>
9034
9035         inet_pton: Support for MSVC on Windows Vista or newer.
9036         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9037         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9038         HAVE_DECL_INET_PTON is defined.
9039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9040         On platforms with <winsock2.h>, test whether inet_pton is declared in
9041         <ws2tcpip.h>. If so, arrange to replace it.
9042         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9043         REPLACE_INET_PTON.
9044         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9045         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9046         (Depends-on, configure.ac): Update condition.
9047         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9048
9049 2011-09-17  Bruno Haible  <bruno@clisp.org>
9050
9051         inet_ntop: Support for MSVC on Windows Vista or newer.
9052         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9053         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9054         HAVE_DECL_INET_NTOP is defined.
9055         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9056         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9057         <ws2tcpip.h>. If so, arrange to replace it.
9058         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9059         REPLACE_INET_NTOP.
9060         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9061         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9062         (Depends-on, configure.ac): Update condition.
9063         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9064
9065 2011-09-16  Eric Blake  <eblake@redhat.com>
9066
9067         test-fsync: yet another enhancement
9068         * tests/test-fsync.c (main): Also test behavior on read-only text
9069         file.
9070
9071 2011-09-16  Bruno Haible  <bruno@clisp.org>
9072
9073         Enhance fsync, fdatasync tests.
9074         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9075         * tests/test-fdatasync.c (main): Likewise.
9076
9077 2011-09-16  Bruno Haible  <bruno@clisp.org>
9078
9079         Support for MSVC compiler: Ensure mode_t gets defined.
9080         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9081         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9083         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9084         * tests/test-fcntl-h.c: Check that mode_t is defined.
9085         * tests/test-sys_stat.c: Likewise.
9086         * tests/test-sys_types.c: Likewise.
9087         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9088         * doc/posix-headers/sys_stat.texi: Likewise.
9089         * doc/posix-headers/sys_types.texi: Likewise.
9090
9091 2011-09-16  Bruno Haible  <bruno@clisp.org>
9092
9093         sys_stat: Support for MSVC.
9094         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9095         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9096         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9097         MSVC.
9098
9099 2011-09-16  Bruno Haible  <bruno@clisp.org>
9100
9101         Support for MSVC compiler: Ensure off_t gets defined.
9102         * lib/unistd.in.h: Include <sys/types.h>.
9103         * tests/test-fcntl-h.c: Check that off_t is defined.
9104         * tests/test-sys_stat.c: Likewise.
9105         * tests/test-sys_types.c: Likewise.
9106
9107 2011-09-16  Eric Blake  <eblake@redhat.com>
9108
9109         fdatasync: port to Solaris
9110         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9111         * modules/fdatasync (Link): Document it.
9112         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9113
9114         fdatasync: port to MacOS X 10.7
9115         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9116         declared.
9117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9118         * modules/unistd (Makefile.am): Substitute it.
9119         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9120         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9121
9122         fdatasync: minor improvements
9123         * modules/fdatasync (Depends-on): Add condition for fsync.
9124         * lib/fdatasync.c (fdatasync): Add comment.
9125         * tests/test-unistd-c++.cc: Test fdatasync.
9126
9127         unistd: update refs to newer POSIX
9128         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9129         Suggested by Bruno Haible.
9130
9131         fdatasync: new module
9132         * modules/fsync (Description): Document difference to fdatasync.
9133         * modules/fdatasync: New module.
9134         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9135         * lib/fdatasync.c (fdatasync): Likewise.
9136         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9137         defaults.
9138         * modules/unistd (Makefile.am): Set witnesses.
9139         * lib/unistd.in.h (fdatasync): Declare.
9140         * MODULES.html.sh: Document it.
9141         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9142         * modules/fdatasync-tests: New test.
9143         * tests/test-fdatasync.c: Likewise.
9144
9145 2011-09-16  Eric Blake  <eblake@redhat.com>
9146
9147         test-fsync: enhance tests
9148         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9149         * tests/test-fsync.c (main): Enhance test.
9150
9151 2011-09-15  Bruno Haible  <bruno@clisp.org>
9152
9153         Support for MSVC compiler: Ensure ssize_t gets defined.
9154         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9155         * doc/posix-headers/stdio.texi: Likewise.
9156         * modules/stdio (Depends-on): Add ssize_t.
9157         * modules/sys_socket (Depends-on): Likewise.
9158         * modules/sys_types (Depends-on): Likewise.
9159         * modules/sys_uio (Depends-on): Likewise.
9160         * modules/unistd (Depends-on): Likewise.
9161         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9162         * tests/test-sys_types.c: Check that ssize_t is defined.
9163
9164 2011-09-14  Bruno Haible  <bruno@clisp.org>
9165
9166         Avoid using #, the m4 comment starter character, near brackets.
9167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9168         delimiter character in sed expressions.
9169         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9170         Suggested by Eric Blake.
9171
9172         Properly quote AC_CHECK_DECLS' 4th argument.
9173         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9174         argument.
9175         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9176         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9178         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9179         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9180         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9182         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9183         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9184         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9185         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9186         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9187         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9188         * m4/isinf.m4 (gl_ISINF): Likewise.
9189         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9190         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9191         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9192         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9193         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9194         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9195         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9196         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9197         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9198         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9199         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9200         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9202         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9204         Reported by Eric Blake.
9205
9206         Properly quote AC_CHECK_DECL's 4th argument.
9207         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9208         argument.
9209         * m4/argp.m4 (gl_ARGP): Likewise.
9210         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9211         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9212         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9213         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9214         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9215         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9217         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9218         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9219         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9220         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9221         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9222         Reported by Eric Blake.
9223
9224 2011-09-14  Eric Blake  <eblake@redhat.com>
9225
9226         opendir: avoid compile warning
9227         * lib/opendir.c (includes): Always include errno.h.
9228         Reported by Tatsuro MATSUOKA.
9229
9230 2011-09-14  Jim Meyering  <meyering@redhat.com>
9231
9232         maint.mk: sc_tight_scope: propagate failure from sub-make
9233         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9234         Reported by Martin von Gagern.
9235
9236 2011-09-13  Bruno Haible  <bruno@clisp.org>
9237
9238         tempname: Support for MSVC.
9239         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9240         MSVC.
9241         * modules/tempname (Depends-on): Add fcntl-h.
9242
9243 2011-09-13  Bruno Haible  <bruno@clisp.org>
9244
9245         sys_time: Support for MSVC.
9246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9247         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9248         include <winsock2.h>.
9249         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9250         function declarations that collide with POSIX.
9251         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9252         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9253
9254 2011-09-13  Bruno Haible  <bruno@clisp.org>
9255
9256         stat: Support for MSVC.
9257         * lib/stat.c: Include pathmax.h.
9258         * modules/stat (Depends-on): Add pathmax.
9259
9260         pathmax: Support for native Windows.
9261         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9262
9263 2011-09-12  Bruno Haible  <bruno@clisp.org>
9264
9265         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9266         * lib/dirent.in.h (struct dirent): New type.
9267         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9268         DT_WHT): New macros.
9269         (DIR): New type.
9270         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9271         (readdir, rewinddir): New declarations.
9272         * lib/dirent-private.h: New file.
9273         * lib/opendir.c: New file.
9274         * lib/readdir.c: New file.
9275         * lib/rewinddir.c: New file.
9276         * lib/closedir.c: New file.
9277         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9278         * m4/opendir.m4: New file.
9279         * m4/readdir.m4: New file.
9280         * m4/rewinddir.m4: New file.
9281         * m4/closedir.m4: New file.
9282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9283         REPLACE_CLOSEDIR here.
9284         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9285         readdir, rewinddir are declared.
9286         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9287         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9288         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9289         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9290         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9291         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9292         * modules/opendir: New file.
9293         * modules/readdir: New file.
9294         * modules/rewinddir: New file.
9295         * modules/closedir: New file.
9296         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9297         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9298         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9299         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9300         * NEWS: Mention the 'fchdir' change.
9301
9302 2011-09-11  Bruno Haible  <bruno@clisp.org>
9303
9304         asm-underscore.m4: Support for MSVC.
9305         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9306         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9307
9308 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9309
9310         Doc about crypt functions.
9311         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9312         needing for _GNU_SOURCE to get crypt.
9313         * doc/posix-functions/encrypt.texi: Likewise.
9314         * doc/posix-functions/setkey.texi: Likewise.
9315
9316 2011-09-11  Bruno Haible  <bruno@clisp.org>
9317
9318         doc: Update regarding MSVC 9.
9319         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9320         tested".
9321         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9322         * doc/posix-headers/*.texi: Likewise.
9323         * doc/pastposix-functions/*.texi: Likewise.
9324         * doc/glibc-functions/*.texi: Likewise.
9325         * doc/glibc-headers/*.texi: Likewise.
9326
9327 2011-09-11  Bruno Haible  <bruno@clisp.org>
9328
9329         unistd et al.: Don't assume <unistd.h> exists.
9330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9331         does not exist.
9332         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9333         exist. But include <stdlib.h>.
9334         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9335         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9336         symlink() does not exist.
9337         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9338         include <io.h> instead.
9339         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9341         include <direct.h> instead.
9342         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9343         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9344         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9345         <io.h> instead.
9346         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9347         correctly if the system does not have hard links.
9348         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9349         <direct.h> instead.
9350         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9351         it when looking for function declarations.
9352         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9353         <direct.h> and <io.h> instead.
9354         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9355
9356 2011-09-11  Bruno Haible  <bruno@clisp.org>
9357
9358         strcase: Support for MSVC.
9359         * modules/strcase (Status, Notice): Remove obsoletion mark.
9360         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9361         * doc/posix-functions/strncasecmp.texi: Likewise.
9362
9363         strings: Don't assume <strings.h> exists.
9364         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9365         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9366         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9367         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9368
9369 2011-09-11  Bruno Haible  <bruno@clisp.org>
9370
9371         dirent: Don't assume <dirent.h> exists.
9372         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9373         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9374         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9375         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9376
9377 2011-09-11  Bruno Haible  <bruno@clisp.org>
9378
9379         Fix wint_t on MSVC.
9380         * lib/wchar.in.h (wint_t): On MSVC, override it.
9381         * lib/wctype.in.h (wint_t): Likewise.
9382         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9383         MSVC.
9384         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9385         * doc/posix-headers/wctype.texi: Likewise.
9386
9387 2011-09-11  Bruno Haible  <bruno@clisp.org>
9388
9389         sys_types: Fix typo.
9390         * lib/sys_types.in.h: Fix typo in comment.
9391         Reported by Paul Eggert.
9392
9393         Support for MSVC compiler: Ensure size_t gets defined.
9394         * modules/strings (Depends-on): Add 'sys_types'.
9395         * modules/sys_uio (Depends-on): Likewise.
9396         * lib/sys_uio.in.h: Update comment.
9397
9398         C++ tests for module 'sys_types'.
9399         * modules/sys_types-c++-tests: New file.
9400         * tests/test-sys_types-c++.cc: New file.
9401
9402         Tests for module 'sys_types'.
9403         * modules/sys_types-tests: New file.
9404         * tests/test-sys_types.c: New file.
9405
9406         New module 'sys_types'.
9407         * lib/sys_types.in.h: New file.
9408         * m4/sys_types_h.m4: New file.
9409         * modules/sys_types: New file.
9410         * doc/posix-headers/sys_types.texi: Mention the new module and the
9411         size_t problem on MSVC 9.
9412
9413 2011-09-11  Bruno Haible  <bruno@clisp.org>
9414
9415         Support for MSVC compiler: Avoid division by a literal 0.
9416         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9417         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9418         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9419         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9420         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9421         * tests/infinity.h: New file.
9422         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9423         on MSVC.
9424         * tests/test-ceilf1.c: Include infinity.h.
9425         (main): Use Infinityf.
9426         * tests/test-ceil1.c: Include infinity.h.
9427         (main): Use Infinityd.
9428         * tests/test-ceill.c: Include infinity.h.
9429         (main): Use Infinityl.
9430         * tests/test-dprintf-posix.c: Include infinity.h.
9431         (test_function): Use Infinityd.
9432         * tests/test-floorf1.c: Include infinity.h.
9433         (main): Use Infinityf.
9434         * tests/test-floor1.c: Include infinity.h.
9435         (main): Use Infinityd.
9436         * tests/test-floorl.c: Include infinity.h.
9437         (main): Use Infinityl.
9438         * tests/test-fprintf-posix.c: Include infinity.h.
9439         (test_function): Use Infinityd.
9440         * tests/test-frexp.c: Include infinity.h.
9441         (main): Use Infinityd.
9442         * tests/test-frexpl.c: Include infinity.h.
9443         (main): Use Infinityl.
9444         * tests/test-isfinite.c: Include infinity.h.
9445         (test_isfinitef): Use Infinityf.
9446         (test_isfinited): Use Infinityd.
9447         (test_isfinitel): Use Infinityl.
9448         * tests/test-isinf.c: Include infinity.h.
9449         (test_isinff): Use Infinityf.
9450         (test_isinfd): Use Infinityd.
9451         (test_isinfl): Use Infinityl.
9452         * tests/test-isnan.c: Include infinity.h.
9453         (test_float): Use Infinityf.
9454         (test_double): Use Infinityd.
9455         (test_long_double): Use Infinityl.
9456         * tests/test-isnanf.h: Include infinity.h.
9457         (main): Use Infinityf.
9458         * tests/test-isnand.h: Include infinity.h.
9459         (main): Use Infinityd.
9460         * tests/test-isnanl.h: Include infinity.h.
9461         (main): Use Infinityl.
9462         * tests/test-ldexpl.c: Include infinity.h.
9463         (main): Use Infinityl.
9464         * tests/test-printf-posix.h: Include infinity.h.
9465         (test_function): Use Infinityd.
9466         * tests/test-roundf1.c: Include infinity.h.
9467         (main): Use Infinityf.
9468         * tests/test-round1.c: Include infinity.h.
9469         (main): Use Infinityd.
9470         * tests/test-roundl.c: Include infinity.h.
9471         (main): Use Infinityl.
9472         * tests/test-signbit.c: Include infinity.h.
9473         (test_signbitf): Use Infinityf.
9474         (test_signbitd): Use Infinityd.
9475         (test_signbitl): Use Infinityl.
9476         * tests/test-snprintf-posix.h: Include infinity.h.
9477         (test_function): Use Infinityd, Infinityl.
9478         * tests/test-sprintf-posix.h: Include infinity.h.
9479         (test_function): Use Infinityd, Infinityl.
9480         * tests/test-truncf1.c: Include infinity.h.
9481         (main): Use Infinityf.
9482         * tests/test-trunc1.c: Include infinity.h.
9483         (main): Use Infinityd.
9484         * tests/test-truncl.c: Include infinity.h.
9485         (main): Use Infinityl.
9486         * tests/test-vasnprintf-posix.c: Include infinity.h.
9487         (test_function): Use Infinityd, Infinityl.
9488         * tests/test-vasprintf-posix.c: Include infinity.h.
9489         (test_function): Use Infinityd, Infinityl.
9490         * modules/ceilf-tests (Files): Add tests/infinity.h.
9491         * modules/ceil-tests (Files): Likewise.
9492         * modules/ceill-tests (Files): Likewise.
9493         * modules/dprintf-posix-tests (Files): Likewise.
9494         * modules/floorf-tests (Files): Likewise.
9495         * modules/floor-tests (Files): Likewise.
9496         * modules/floorl-tests (Files): Likewise.
9497         * modules/fprintf-posix-tests (Files): Likewise.
9498         * modules/frexp-tests (Files): Likewise.
9499         * modules/frexp-nolibm-tests (Files): Likewise.
9500         * modules/frexpl-tests (Files): Likewise.
9501         * modules/frexpl-nolibm-tests (Files): Likewise.
9502         * modules/isfinite-tests (Files): Likewise.
9503         * modules/isinf-tests (Files): Likewise.
9504         * modules/isnan-tests (Files): Likewise.
9505         * modules/isnanf-tests (Files): Likewise.
9506         * modules/isnanf-nolibm-tests (Files): Likewise.
9507         * modules/isnand-tests (Files): Likewise.
9508         * modules/isnand-nolibm-tests (Files): Likewise.
9509         * modules/isnanl-tests (Files): Likewise.
9510         * modules/isnanl-nolibm-tests (Files): Likewise.
9511         * modules/ldexpl-tests (Files): Likewise.
9512         * modules/printf-posix-tests (Files): Likewise.
9513         * modules/roundf-tests (Files): Likewise.
9514         * modules/round-tests (Files): Likewise.
9515         * modules/roundl-tests (Files): Likewise.
9516         * modules/signbit-tests (Files): Likewise.
9517         * modules/snprintf-posix-tests (Files): Likewise.
9518         * modules/sprintf-posix-tests (Files): Likewise.
9519         * modules/truncf-tests (Files): Likewise.
9520         * modules/trunc-tests (Files): Likewise.
9521         * modules/truncl-tests (Files): Likewise.
9522         * modules/vasnprintf-posix-tests (Files): Likewise.
9523         * modules/vasprintf-posix-tests (Files): Likewise.
9524         * modules/vdprintf-posix-tests (Files): Likewise.
9525         * modules/vfprintf-posix-tests (Files): Likewise.
9526         * modules/vprintf-posix-tests (Files): Likewise.
9527         * modules/vsnprintf-posix-tests (Files): Likewise.
9528         * modules/vsprintf-posix-tests (Files): Likewise.
9529         * modules/xprintf-posix-tests (Files): Likewise.
9530
9531 2011-09-11  Bruno Haible  <bruno@clisp.org>
9532
9533         Ensure pid_t gets defined.
9534         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9535         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9536         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9537         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9538         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9539         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9540         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9541         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9542         * tests/test-fcntl-h.c: Check that pid_t is defined.
9543         * tests/test-sched.c: Likewise.
9544         * tests/test-termios.c: Likewise.
9545         * tests/test-time.c: Likewise.
9546         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9547         * doc/posix-headers/signal.texi: Likewise.
9548         * doc/posix-headers/sys_types.texi: Likewise.
9549         * doc/posix-headers/time.texi: Likewise.
9550
9551 2011-09-11  Bruno Haible  <bruno@clisp.org>
9552
9553         acl: Fix compilation on Solaris 10 (older version).
9554         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9555         of ACE_EVERYONE.
9556         * lib/set-mode-acl.c (qset_acl): Likewise.
9557         Reported by Christian Jullien <eligis@orange.fr>.
9558
9559 2011-09-10  Bruno Haible  <bruno@clisp.org>
9560
9561         iconv, unsetenv: Add support for MSVC compiler.
9562         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9563         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9564
9565 2011-09-10  Bruno Haible  <bruno@clisp.org>
9566
9567         *printf: Add support for MSVC compiler.
9568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9569         handles the exception caused by the %n directive. When cross-compiling,
9570         guess no on native Windows.
9571         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9572         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9573         emulate it through vsnprintf.
9574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9575         * doc/posix-functions/dprintf.texi: Update documentation regarding
9576         MSVC 9.
9577         * doc/posix-functions/fprintf.texi: Likewise.
9578         * doc/posix-functions/printf.texi: Likewise.
9579         * doc/posix-functions/snprintf.texi: Likewise.
9580         * doc/posix-functions/sprintf.texi: Likewise.
9581         * doc/posix-functions/swprintf.texi: Likewise.
9582         * doc/posix-functions/vdprintf.texi: Likewise.
9583         * doc/posix-functions/vfprintf.texi: Likewise.
9584         * doc/posix-functions/vprintf.texi: Likewise.
9585         * doc/posix-functions/vsnprintf.texi: Likewise.
9586         * doc/posix-functions/vsprintf.texi: Likewise.
9587         * doc/glibc-functions/asprintf.texi: Likewise.
9588         * doc/glibc-functions/obstack_printf.texi: Likewise.
9589         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9590         * doc/glibc-functions/vasprintf.texi: Likewise.
9591
9592 2011-09-10  Bruno Haible  <bruno@clisp.org>
9593
9594         nocrash: Add support for native Windows.
9595         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9596
9597 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9598             Bruno Haible  <bruno@clisp.org>
9599
9600         absolute-header, include-next: Add support for MSVC compiler.
9601         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9602         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9603         directory separator in #line directives.
9604         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9605         recognize also backslash as directory separator in #line directives.
9606
9607 2011-09-08  Jim Meyering  <meyering@redhat.com>
9608
9609         maint.mk: mark the post-release commit log with "maint: " prefix
9610         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9611         one-line commit-log summary.
9612
9613 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9614             Bruno Haible  <bruno@clisp.org>
9615
9616         Doc about crypt functions.
9617         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9618         systems.
9619         * doc/posix-functions/encrypt.texi: Likewise.
9620         * doc/posix-functions/setkey.texi: Likewise.
9621
9622 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9623
9624         * lib/gc.h: Fix copyright header.
9625
9626 2011-09-07  Bruno Haible  <bruno@clisp.org>
9627
9628         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9629         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9630         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9631
9632 2011-09-07  Bruno Haible  <bruno@clisp.org>
9633
9634         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9635         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9636         * lib/freopen.c: Likewise.
9637         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9638         * lib/lstat.c: Likewise.
9639         * lib/stat.c: Likewise.
9640         * lib/open.c: Use different syntax for include of <fcntl.h>.
9641         * lib/openat.c: Include fcntl.h again, explicitly.
9642
9643 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9644
9645         parse-datetime: document the newly accepted format
9646         * doc/parse-datetime.texi (Combined date and time of day items):
9647         New section.
9648
9649 2011-09-06  Bruno Haible  <bruno@clisp.org>
9650
9651         acl: Fix a test failure on newer Solaris 10 with ZFS.
9652         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9653         ENOSYS as no ACL.
9654         Reported by Jim Meyering.
9655
9656 2011-09-06  Bruno Haible  <bruno@clisp.org>
9657
9658         acl: Update for AIX >= 5.3 with NFS.
9659         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9660         ENOSYS as no ACL.
9661
9662         acl: Fix a test failure on AIX >= 5.3 with NFS.
9663         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9664         as no ACL.
9665
9666 2011-09-06  Bruno Haible  <bruno@clisp.org>
9667
9668         acl: Fix a test failure on IRIX 6.5 with NFS.
9669         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9670         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9671         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9672         * lib/copy-acl.c (qcopy_acl): Likewise.
9673
9674 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9675
9676         openat: port to AIX 7.1 with large files
9677         AIX 7.1 does a "#define openat open64at" if large files are in use,
9678         so we can't simply #undef openat.  Use the orig_openat trick (similar
9679         to orig_open in lib/open.c) to work around the problem.  Problem
9680         reported by Kevin Brott for GNU tar, in the thread containing
9681         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9682         * lib/openat.c (__need_system_fcntl_h): Define first.
9683         Include <fcntl.h> and <sys/types.h> before undefining.
9684         (orig_openat) [HAVE_OPENAT]: New inline function.
9685         (openat) [HAVE_OPENAT]: Do not undef.
9686         (rpl_openat): Use orig_openat, not openat.
9687
9688 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9689             Bruno Haible  <bruno@clisp.org>
9690
9691         acl: Avoid errors on NonStop Kernel.
9692         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9693         ENOTSUP errors.
9694
9695 2011-09-05  Bruno Haible  <bruno@clisp.org>
9696
9697         acl: Clean up Solaris code.
9698         * lib/acl-internal.h: Remove no-op #if.
9699         * lib/file-has-acl.c: Likewise.
9700         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9701         * lib/copy-acl.c (qcopy_acl): Likewise.
9702
9703 2011-09-05  Bruno Haible  <bruno@clisp.org>
9704
9705         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9706         binaries built on the original Solaris 10.
9707         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9708         trivial.
9709
9710 2011-09-05  Bruno Haible  <bruno@clisp.org>
9711
9712         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9713         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9714         10.
9715         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9716         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9717         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9718         instead of acl_get, facl_get, acl_set, facl_set.
9719
9720 2011-09-05  Bruno Haible  <bruno@clisp.org>
9721
9722         copy-file: Try unit tests on more file systems.
9723         * tests/test-copy-file-1.sh: New file.
9724         * tests/test-copy-file-2.sh: New file.
9725         * modules/copy-file-tests (Files): Add them.
9726         (Makefile.am): Add them to TESTS.
9727
9728         acl: Try unit tests on more file systems.
9729         * tests/test-file-has-acl-1.sh: New file.
9730         * tests/test-file-has-acl-2.sh: New file.
9731         * tests/test-set-mode-acl-1.sh: New file.
9732         * tests/test-set-mode-acl-2.sh: New file.
9733         * tests/test-copy-acl-1.sh: New file.
9734         * tests/test-copy-acl-2.sh: New file.
9735         * modules/acl-tests (Files): Add them.
9736         (Makefile.am): Add them to TESTS.
9737
9738 2011-09-04  Bruno Haible  <bruno@clisp.org>
9739
9740         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9741         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9742         10.
9743         (OLD_ALLOW, OLD_DENY): New macros.
9744         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9745         ACE_ACCESS_ALLOWED_ACE_TYPE.
9746         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9747         ACE_ACCESS_DENIED_ACE_TYPE.
9748         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9749         (NEW_ACE_EXECUTE): Fix value.
9750         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9751         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9752         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9753         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9754         NEW_ACE_SYNCHRONIZE): New macros.
9755         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9756         instead of acl_fromtext, acl_set, facl_set.
9757         Fixes a coreutils/tests/cp/perm failure.
9758
9759 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9760
9761         openat: test for fstatat (..., 0) bug
9762         Further testing with tar suggests that fstatat (..., 0)
9763         does not work in general, on AIX 7.1; see
9764         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9765         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9766         replacement fstatat (which is what older AIX releases were using
9767         anyway).
9768         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9769         use is now changed to orig_fstatat.  This was probably the right
9770         thing to do anyway.
9771         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9772         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9773         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9774         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9775         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9776         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9777         if the bug is found.
9778
9779         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9780         This tests for another fstatat bug on AIX 7.1:
9781         fstatat (AT_FDCWD, ..., 0) does not work.  See
9782         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9783         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9784         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9785         (rpl_fstatat): Adjust so that it works around either (or both)
9786         bugs if present.
9787         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9788
9789 2011-09-03  Karl Berry  <karl@gnu.org>
9790
9791         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9792         in index entries.
9793
9794 2011-09-02  Bruno Haible  <bruno@clisp.org>
9795
9796         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9797         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9798         values of AR, ARFLAGS, RANLIB.
9799         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9800
9801 2011-09-02  Bruno Haible  <bruno@clisp.org>
9802
9803         Find 'ar' program that fits with --host argument.
9804         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9805
9806 2011-09-02  Bruno Haible  <bruno@clisp.org>
9807
9808         tests: init.sh: Support any non-GNU diff.
9809         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9810         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9811         Solaris 8.
9812
9813 2011-09-02  Bruno Haible  <bruno@clisp.org>
9814
9815         tests: init.sh: work also with any non-GNU diff that supports -u
9816         * tests/init.sh: Relax check for diff -u support.
9817         Rather than checking for GNU diff via --version, simply check
9818         for support for -u itself.  Useful at least on OpenBSD 4.9,
9819         AIX 7.1, IRIX 6.5, and Solaris 10.
9820
9821 2011-09-01  Bruno Haible  <bruno@clisp.org>
9822
9823         strtoimax, strtoumax: Document problem on HP-UX 11.
9824         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9825         * doc/posix-functions/strtoumax.texi: Likewise.
9826
9827 2011-09-01  Bruno Haible  <bruno@clisp.org>
9828
9829         strtoumax: Avoid link error on OSF/1 with DTK cc.
9830         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9831         defined as a function.
9832         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9833         strtoumax is defined, not whether it is declared.
9834
9835 2011-09-01  Bruno Haible  <bruno@clisp.org>
9836
9837         strtoimax: Avoid link error on OSF/1 with DTK cc.
9838         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9839         defined as a function.
9840         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9841         strtoimax is defined, not whether it is declared.
9842
9843 2011-09-01  Bruno Haible  <bruno@clisp.org>
9844
9845         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9846         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9847         as a function.
9848         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9849         whether it is declared.
9850
9851 2011-09-01  Bruno Haible  <bruno@clisp.org>
9852
9853         imaxabs: Avoid link error on OSF/1 with DTK cc.
9854         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9855         as a function.
9856         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9857         whether it is declared.
9858
9859 2011-09-01  Bruno Haible  <bruno@clisp.org>
9860
9861         Tests for module 'strtoumax'.
9862         * modules/strtoumax-tests: New file.
9863         * tests/test-strtoumax.c: New file.
9864
9865         Tests for module 'strtoimax'.
9866         * modules/strtoimax-tests: New file.
9867         * tests/test-strtoimax.c: New file.
9868
9869         Tests for module 'imaxdiv'.
9870         * modules/imaxdiv-tests: New file.
9871         * tests/test-imaxdiv.c: New file.
9872
9873         Tests for module 'imaxabs'.
9874         * modules/imaxabs-tests: New file.
9875         * tests/test-imaxabs.c: New file.
9876
9877 2011-09-01  Bruno Haible  <bruno@clisp.org>
9878
9879         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9880         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9881         pthread_create.
9882
9883 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9884
9885         openat: work around AIX 7.1 fstatat issue
9886         This should fix the problem that was not properly fixed
9887         in the previous change, dated 2011-08-30.
9888         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9889         __need_system_stat_h defined.
9890         (orig_fstatat) [HAVE_FSTATAT]: New function.
9891         (rpl_fstatat): Go back to the old way of doing things,
9892         except call orig_fstatat instead of fstatat.
9893         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9894         Remove unnecessary check whether fstatat fills in st_size etc.
9895
9896 2011-09-01  Bruno Haible  <bruno@clisp.org>
9897
9898         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9899         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9900         just include the system's header.
9901
9902 2011-08-31  Jim Meyering  <meyering@redhat.com>
9903
9904         tests: avoid spurious assertion failure in test-float.c on ppc64
9905         * tests/test-float.c (test_long_double): Comment out an assertion,
9906         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9907         with gcc-4.4.4.
9908
9909         maint: indent with spaces, not TABs
9910         I need to get in the habit of running gnulib's "make check".
9911         Both of these would have been caught.
9912         * m4/largefile.m4: Indent with spaces, not TABs.
9913         * lib/parse-datetime.y (iso_8601_time): Likewise.
9914         Spotted by Pádraig Brady.
9915
9916         test-parse-datetime.c: accommodate a relatively strict gcc warning
9917         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9918         to avoid a warning from gcc's -Werror=missing-declarations.
9919         Insert a few spaces-before-funcall-parenthesis.
9920
9921 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9922
9923         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9924         The parser now accepts ISO 8601 date-time strings with "T" as the
9925         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9926         with a space between the date and time strings.  Now it also parses
9927         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9928         variants like "2004-02-29T16:21:42.333-07:00"
9929         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9930         of day representation using the 'T' separator character.
9931         * doc/parse-datetime.texi (General date syntax): replace use of
9932         deprecated --iso-8601 option with --rfc-3339 in example of date
9933         command output formats that can be parsed.
9934         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9935         lib/parse-datetime.y.
9936         (gmt_offset): New function.
9937         (main): Add additional test cases to validate ISO8601 extended
9938         date and time of day parsing.
9939
9940 2011-08-31  Bruno Haible  <bruno@clisp.org>
9941
9942         freopen: Documentation.
9943         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9944         name.
9945         Reported by Claudio Bley <claudio.bley@gmail.com>.
9946
9947 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9948
9949         freopen: Don't crash if the filename argument is NULL.
9950         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9951         NULL.
9952
9953 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9954
9955         openat: work around AIX 7.1 fstatat bug
9956         Problem reported by Kevin Brott for GNU tar, in the thread containing
9957         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9958         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9959         FSTATAT_ST_SIZE_ETC_BROKEN.
9960         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9961         rpl_fstatat.
9962         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9963         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9964         AC_CHECK_FUNCS_ONCE for fstatat.
9965         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9966         fchmodat, mkdirat, openat and unlinkat.
9967
9968 2011-08-30  Bruno Haible  <bruno@clisp.org>
9969
9970         Avoid endless recursions if config.h includes some header files.
9971         * lib/fopen.c (__need_FILE): Define already before including config.h.
9972         * lib/freopen.c (__need_FILE): Likewise.
9973         * lib/open.c (__need_system_fcntl_h): Likewise.
9974         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9975         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9976         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9977
9978 2011-08-25  Karl Berry  <karl@gnu.org>
9979
9980         * config/srclist.txt (ylwrap): new try.
9981         * build-aux/ylwrap: new file.
9982
9983 2011-08-23  Bruno Haible  <bruno@clisp.org>
9984
9985         tmpdir: Use a good default directory on native Windows.
9986         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9987         (P_tmpdir): Default to _P_tmpdir on native Windows.
9988         (path_search): On native Windows, try the value returned by GetTempPath
9989         before trying P_tmpdir.
9990         * modules/tmpdir (Depends-on): Add pathmax.
9991         Suggested by John Darrington <john@darrington.wattle.id.au>.
9992
9993 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9994
9995         doc: fix typo in README-release
9996         * top/README-release: Capitalize first word of a sentence.
9997
9998 2011-08-19  Jim Meyering  <meyering@redhat.com>
9999
10000         fts: do not exhaust memory when processing million-entry directories
10001         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10002         directory would require about 256*N bytes of memory.  Thus, it was
10003         easy to construct a directory too large to be processed by any of
10004         those tools.  With this change, fts' maximum memory utilization is
10005         now limited to around 30MB.
10006         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10007         (fts_read): When we've processed the final entry (i.e., when
10008         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10009         using the parent entry to read any remaining entries.  Dispatch
10010         depending on what fts_build returns:
10011         - NULL+stop, aka failure: stop
10012         - NULL otherwise: move up in the dir hierarchy
10013         - non-NULL: handle this new entry
10014         (fts_build): Declare and use new local, continue_readdir.
10015         Prepare to be called from fts_read, when the entries
10016         from a partially-read directory have just been exhausted.
10017         In that case, we'll skip the opendir and instead use the parent's
10018         fts_dirp and derive dir_fd from that.
10019         Finally, in the readdir loop, if we read max_entries entries,
10020         exit the loop ensuring *not* to call closedir.  This is required
10021         so that fts_dirp can be reused on a subsequent call.
10022         Prompted by Ben England's report of memory exhaustion in find
10023         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10024
10025         maint: fts: move decl of `dp' down into while loop; split a long line
10026         * lib/fts.c (fts_build): No semantic change.
10027
10028         fts: add/use new struct member, fts_dirp
10029         We are about to use this to manage any directory with
10030         too many entries to read all of them into memory at once.
10031         To do that, we'll need to save the DIR* pointer in each
10032         affected FTSENT struct.
10033         * lib/fts_.h: Include <dirent.h>.
10034         (struct FTSENT) [fts_dirp]: New member.
10035         * lib/fts.c (closedir_and_clear): Define.
10036         Use it in place of closedir so that we are sure to
10037         clear the new fts_dirp member when done with it.
10038         (fts_alloc): Initialize the new member.
10039         (fts_lfree): Free, if needed.
10040
10041         maint: fts: give __opendir2 a new parameter and rename
10042         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10043         than surreptitiously using sole caller's "dir_fd".
10044         (fts_opendir): Rename from __opendir2.
10045
10046         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10047         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10048
10049         maint: fts.c: correct off-by-one indentation
10050         * lib/fts.c (fts_build): Correct indentation, change style
10051         of a couple of block comments, and bracing style.
10052
10053         maint: fts.c: move __opendir2 #define "up" out of function body
10054         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10055
10056         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10057         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10058         out for a long time and besides was useful only on BSD systems.
10059
10060 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10061
10062         regex: port to Stratus OpenVOS
10063         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10064         define to empty, rather than attempting nonportable optimizations.
10065         Problem reported by Paul Green in:
10066         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10067         and fix suggested by Eric Blake in:
10068         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10069
10070 2011-08-17  Eric Blake  <eblake@redhat.com>
10071
10072         getcwd: fix test failures on mingw
10073         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10074         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10075         test if long directory cannot be created, and allow mingw errno.
10076
10077         getcwd-lgpl: fix m4 to match relaxed test for BSD
10078         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10079         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10080         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10081         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10082         signature problem.
10083
10084         getcwd: fix compilation on mingw64
10085         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10086         getcwd.
10087         Reported by Marc-André Lureau.
10088
10089         pipe2: silence compiler warning
10090         * lib/pipe2.c (pipe2): Hide label if it is not used.
10091
10092 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10093
10094         relocatable-prog: fix link error
10095         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10096         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10097         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10098         into modules/relocatable-lib without noticing that
10099         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10100         also needs to build relocatable.c.
10101
10102 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10103
10104         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10106         shell code: it contained a 'break' that was not in a loop.
10107         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10108         via a shell-language loop; this may have been true in old Autoconf
10109         versions, but it's not true in Autoconf 2.68.  I found this bug
10110         when testing coreutils git on Solaris 8, whose shell complains
10111         about the syntax error.
10112
10113 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10114
10115         * lib/base64.c: Fix comment to reference RFC 4648.
10116         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10117         <gvtulder@gmail.com>.
10118
10119 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10120
10121         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10122
10123         po/Makefile.in.in: fix make -q problem
10124         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10125         rule, since there's no file named 'check-macro-version' and its
10126         use as a file breaks make -q.
10127         (all): Don't depend on check-macro-version.
10128         (CHECK_MACRO_VERSION): New macro.
10129         (stamp-po): Use it.
10130
10131         configmake: fix make -q problem
10132         * modules/configmake (configmake.h): Update configmake.h's time stamp
10133         even if the file does not change.  Otherwise, 'make -q' fails.
10134         Problem reported by Simon Josefsson in
10135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10136
10137 2011-08-11  Jim Meyering  <meyering@redhat.com>
10138
10139         git-version-gen: correct the advice in a comment
10140         * build-aux/git-version-gen: Correct comment.
10141         Don't recommend to list .tarball-version in .gitignore.
10142
10143 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         base64: fix off-by-one buffer size bug
10146         Problem and (trivial) fix reported by Gijs van Tulder in
10147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10148         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10149         * tests/test-base64.c (main): Catch the bug.
10150
10151 2011-08-10  Eric Blake  <eblake@redhat.com>
10152
10153         closein: correct comments
10154         * lib/closein.c (close_stdin): Improve comments.
10155
10156 2011-08-09  Bruno Haible  <bruno@clisp.org>
10157
10158         More tests for 'fseeko'.
10159         * tests/test-fseeko3.c: New file, from Eric Blake.
10160         * tests/test-fseeko3.sh: New file.
10161         * modules/fseeko-tests (Files): Add them.
10162         (TESTS): Add test-fseeko3.sh.
10163         (check_PROGRAMS): Add test-fseeko3.
10164
10165 2011-08-09  Eric Blake  <eblake@redhat.com>
10166
10167         fseeko: remove unneeded hack
10168         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10169
10170         fseeko: fix bug on glibc
10171         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10172         Reported by John W. Eaton.
10173
10174 2011-08-08  Bruno Haible  <bruno@clisp.org>
10175
10176         unictype/base: Fix interoperability with preinstalled libunistring.
10177         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10178         Reported by Simon Josefsson.
10179
10180 2011-08-08  Bruno Haible  <bruno@clisp.org>
10181
10182         iswblank: Detect declaration correctly.
10183         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10184         AC_CHECK_DECLS invocation.
10185
10186 2011-08-08  Bruno Haible  <bruno@clisp.org>
10187
10188         tcgetsid: Detect declaration correctly.
10189         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10190         AC_CHECK_DECLS invocation.
10191         Reported by Simon Josefsson.
10192
10193 2011-08-08  Eric Blake  <eblake@redhat.com>
10194
10195         largefile: fix typo that regressed large file support
10196         * modules/largefile (configure.ac-early): Fix section name.
10197
10198 2011-08-06  Karl Berry  <karl@gnu.org>
10199
10200         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10201         a separate module.
10202
10203 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10204
10205         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10206         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10207         get prototype for free.
10208
10209 2011-08-04  Bruno Haible  <bruno@clisp.org>
10210
10211         Tests for module 'pathmax'.
10212         * modules/pathmax-tests: New file.
10213         * tests/test-pathmax.c: New file.
10214
10215         canonicalize-lgpl: Support larger filenames on the Hurd.
10216         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10217         Reported by Paul Eggert.
10218
10219         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10220         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10221         * lib/chdir-long.h: Include pathmax.h.
10222         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10223         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10224         (PATH_MAX): Remove code that is done by pathmax.h.
10225         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10226         * lib/tmpfile.c: Add a comment.
10227         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10228         * modules/chdir-long (Depends-on): Add pathmax.
10229         * modules/getcwd (Depends-on): Add pathmax.
10230         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10231         is not defined.
10232         * doc/posix-headers/limits.texi: Mention the pathmax module.
10233         * NEWS: Mention the change.
10234
10235 2011-08-02  Bruno Haible  <bruno@clisp.org>
10236
10237         pthread_sigmask: Actually use results of gl_THREADLIB.
10238         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10239         gl_THREADLIB, not gl_[]THREADLIB.
10240         Reported by Eric Blake.
10241
10242 2011-08-02  Jim Meyering  <meyering@redhat.com>
10243
10244         maint.mk: relax the default _gl_TS_function_match regexp
10245         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10246         space between function name and "(" in an "extern" declaration.
10247         That would fail to match a decl with no space there: extern void foo();
10248
10249 2011-07-31  Iain Nicol  <iain@thenicols.net>
10250
10251         git-version-gen: document that EXTRA_DIST must include .version
10252         * build-aux/git-version-gen: In the how-to-use comment, document
10253         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10254         will fail when run from an unpacked distribution tarball.
10255
10256 2011-08-01  Bruno Haible  <bruno@clisp.org>
10257
10258         wctype-h: Fix last change.
10259         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10260         REPLACE_TOWLOWER to 0.
10261         Reported by Sam Steingold <sds@gnu.org>.
10262
10263 2011-07-31  Bruno Haible  <bruno@clisp.org>
10264
10265         frexpl: Update autoconf test.
10266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10267         according to changes of 2011-06-20.
10268
10269 2011-07-31  Bruno Haible  <bruno@clisp.org>
10270
10271         sys_utsname: Add support for Minix.
10272         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10273         <sys/utsname.h>.
10274         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10275         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10276
10277 2011-07-31  Bruno Haible  <bruno@clisp.org>
10278
10279         strings: Add support for Minix.
10280         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10281         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10282         * doc/posix-headers/strings.texi: Document the Minix problem.
10283
10284 2011-07-31  Bruno Haible  <bruno@clisp.org>
10285
10286         wctype-h: Add support for Minix.
10287         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10288         REPLACE_TOWLOWER.
10289         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10290         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10291         REPLACE_ISWCNTRL.
10292
10293 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10294
10295         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10296         This is a performance improvement for 64-bit hosts: it causes the
10297         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10298
10299 2011-07-31  Bruno Haible  <bruno@clisp.org>
10300
10301         stdioext: Add support for Minix.
10302         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10303         * lib/fpurge.c (fpurge): Likewise.
10304         * lib/freadahead.c (freadahead): Likewise.
10305         * lib/freadable.c (freadable): Likewise.
10306         * lib/freading.c (freading): Likewise.
10307         * lib/freadptr.c (freadptr): Likewise.
10308         * lib/freadseek.c (freadptrinc): Likewise.
10309         * lib/fseeko.c (rpl_fseeko): Likewise.
10310         * lib/fseterr.c (fseterr): Likewise.
10311         * lib/fwritable.c (fwritable): Likewise.
10312         * lib/fwriting.c (fwriting): Likewise.
10313         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10314         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10315
10316 2011-07-31  Bruno Haible  <bruno@clisp.org>
10317
10318         errno: Port to Minix.
10319         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10320         ECONNABORTED are defined.
10321         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10322         GNULIB_defined_ECONNABORTED): New macros.
10323         * lib/strerror-override.h (strerror_override): Test also
10324         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10325         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10326         ECONNABORTED.
10327         * doc/posix-headers/errno.texi: Mention the Minix problem.
10328
10329 2011-07-31  Bruno Haible  <bruno@clisp.org>
10330
10331         Work around declaration collisions on Minix.
10332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10333         defined, set REPLACE_MBSINIT.
10334         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10335         defined, set REPLACE_MBRTOWC.
10336         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10337         set REPLACE_MBRLEN.
10338         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10339         defined, set REPLACE_MBSRTOWCS.
10340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10341         defined, set REPLACE_WCRTOMB.
10342         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10343         defined, set REPLACE_WCSRTOMBS.
10344
10345 2011-07-31  Bruno Haible  <bruno@clisp.org>
10346
10347         Add support for Minix with ACK compiler.
10348         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10349         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10350         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10351
10352 2011-07-31  Bruno Haible  <bruno@clisp.org>
10353
10354         Documentation about Minix.
10355         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10356         * doc/glibc-headers/*.texi: Likewise.
10357         * doc/posix-functions/*.texi: Likewise.
10358         * doc/glibc-functions/*.texi: Likewise.
10359
10360 2011-07-31  Bruno Haible  <bruno@clisp.org>
10361
10362         snippet/warn-on-use: Fix indentation.
10363         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10364
10365 2011-07-25  Jim Meyering  <meyering@redhat.com>
10366
10367         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10368         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10369         commands.
10370
10371 2011-07-27  Jim Meyering  <meyering@redhat.com>
10372
10373         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10374         * top/maint.mk (gl_extract_significant_defines_): Now that
10375         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10376         gnulib/lib/signal.in.h, and now that we recommend to
10377         define-if-undefined those two symbols in application code,
10378         we must filter them out of the "significant" list.
10379         This avoids a "make syntax-check" failure in coreutils.
10380
10381 2011-07-26  Eric Blake  <eblake@redhat.com>
10382
10383         warnings: add comments about previous patch
10384         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10385         * m4/include_next.m4: Likewise.
10386         * m4/warn-on-use.m4: Likewise.
10387         * m4/warnings.m4: Likewise, and simplify use.
10388         Suggested by Stefano Lattarini.
10389
10390         include-next, warnings: support older autoconf
10391         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10392         AS_VAR_PUSHDEF in a way that works with older autoconf.
10393         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10394         Reported by Daniel P. Berrange.
10395
10396 2011-07-25  Bruno Haible  <bruno@clisp.org>
10397
10398         fseek, ftell: Fix doc.
10399         * doc/posix-functions/fseek.texi: Reword statement about
10400         AC_SYS_LARGEFILE.
10401         * doc/posix-functions/ftell.texi: Likewise.
10402
10403 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10404             Bruno Haible  <bruno@clisp.org>
10405
10406         Add dependencies to the 'largefile' module.
10407         * modules/fopen (Depends-on): Add 'largefile'.
10408         * modules/freopen (Depends-on): Likewise.
10409         * modules/fseeko (Depends-on): Likewise.
10410         * modules/ftello (Depends-on): Likewise.
10411         * modules/glob (Depends-on): Likewise.
10412         * modules/lseek (Depends-on): Likewise.
10413         * modules/lstat (Depends-on): Likewise.
10414         * modules/mkostemp (Depends-on): Likewise.
10415         * modules/mkostemps (Depends-on): Likewise.
10416         * modules/mkstemp (Depends-on): Likewise.
10417         * modules/mkstemps (Depends-on): Likewise.
10418         * modules/open (Depends-on): Likewise.
10419         * modules/openat (Depends-on): Likewise.
10420         * modules/pread (Depends-on): Likewise.
10421         * modules/pwrite (Depends-on): Likewise.
10422         * modules/scandir (Depends-on): Likewise.
10423         * modules/stat (Depends-on): Likewise.
10424         * modules/tmpfile (Depends-on): Likewise.
10425         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10426         since the containing module now depends on the largefile module.
10427         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10428         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10429         off_t is fixed by gnulib.
10430         * doc/posix-functions/freopen.texi: Likewise.
10431         * doc/posix-functions/fseeko.texi: Likewise.
10432         * doc/posix-functions/fstatat.texi: Likewise.
10433         * doc/posix-functions/ftello.texi: Likewise.
10434         * doc/posix-functions/glob.texi: Likewise.
10435         * doc/posix-functions/lseek.texi: Likewise.
10436         * doc/posix-functions/lstat.texi: Likewise.
10437         * doc/posix-functions/mkstemp.texi: Likewise.
10438         * doc/posix-functions/open.texi: Likewise.
10439         * doc/posix-functions/openat.texi: Likewise.
10440         * doc/posix-functions/pread.texi: Likewise.
10441         * doc/posix-functions/pwrite.texi: Likewise.
10442         * doc/posix-functions/scandir.texi: Likewise.
10443         * doc/posix-functions/stat.texi: Likewise.
10444         * doc/posix-functions/tmpfile.texi: Likewise.
10445         * doc/glibc-functions/mkostemp.texi: Likewise.
10446         * doc/glibc-functions/mkostemps.texi: Likewise.
10447         * doc/glibc-functions/mkstemps.texi: Likewise.
10448
10449 2011-07-25  Bruno Haible  <bruno@clisp.org>
10450
10451         fcntl: Move AC_LIBOBJ invocation to module description.
10452         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10453         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10454
10455         fcntl: Remove call-in from fchdir.m4.
10456         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10458
10459         dup3: Remove potential call-in from fchdir.m4.
10460         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10462
10463         dup2: Move AC_LIBOBJ invocation to module description.
10464         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10465         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10466         Don't invoke AC_LIBOBJ.
10467         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10468
10469         dup2: Remove call-in from fchdir.m4.
10470         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10472
10473         fclose: Move AC_LIBOBJ invocation to module description.
10474         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10475         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10476         to 1.
10477         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10478
10479         fclose: Remove call-in from close.m4.
10480         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10481         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10482
10483         close: Move AC_LIBOBJ invocation to module description.
10484         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10485         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10486         1.
10487         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10488
10489         close: Remove call-in from fchdir.m4.
10490         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10491         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10492
10493         open: Move AC_LIBOBJ invocation to module description.
10494         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10495         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10496         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10497
10498         open: Remove call-in from fchdir.m4.
10499         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10501
10502         fchdir: Start to remove gl_REPLACE_* idiom.
10503         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10504         (gl_FUNC_FCHDIR): Invoke it.
10505
10506 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10507
10508         * lib/ftell.c (ftell): Comment out cast.
10509
10510         close: use gl_REPLACE_FCLOSE only if defined
10511         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10512         is defined.  The close module doesn't depend on the fclose module
10513         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10515         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10516
10517 2011-07-24  Jim Meyering  <meyering@redhat.com>
10518
10519         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10520         * tests/test-select.h (test_function): Declare as "static".
10521
10522 2011-07-24  Bruno Haible  <bruno@clisp.org>
10523
10524         doc: Mention the effects of AC_SYS_LARGEFILE.
10525         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10526         on this function.
10527         * doc/posix-functions/aio_error.texi: Likewise.
10528         * doc/posix-functions/aio_fsync.texi: Likewise.
10529         * doc/posix-functions/aio_read.texi: Likewise.
10530         * doc/posix-functions/aio_return.texi: Likewise.
10531         * doc/posix-functions/aio_suspend.texi: Likewise.
10532         * doc/posix-functions/aio_write.texi: Likewise.
10533         * doc/posix-functions/fgetpos.texi: Likewise.
10534         * doc/posix-functions/fopen.texi: Likewise.
10535         * doc/posix-functions/freopen.texi: Likewise.
10536         * doc/posix-functions/fsetpos.texi: Likewise.
10537         * doc/posix-functions/fstatvfs.texi: Likewise.
10538         * doc/posix-functions/ftruncate.texi: Likewise.
10539         * doc/posix-functions/ftw.texi: Likewise.
10540         * doc/posix-functions/getrlimit.texi: Likewise.
10541         * doc/posix-functions/glob.texi: Likewise.
10542         * doc/posix-functions/lio_listio.texi: Likewise.
10543         * doc/posix-functions/lockf.texi: Likewise.
10544         * doc/posix-functions/mkstemp.texi: Likewise.
10545         * doc/posix-functions/mmap.texi: Likewise.
10546         * doc/posix-functions/nftw.texi: Likewise.
10547         * doc/posix-functions/openat.texi: Likewise.
10548         * doc/posix-functions/opendir.texi: Likewise.
10549         * doc/posix-functions/posix_fadvise.texi: Likewise.
10550         * doc/posix-functions/posix_fallocate.texi: Likewise.
10551         * doc/posix-functions/pread.texi: Likewise.
10552         * doc/posix-functions/pwrite.texi: Likewise.
10553         * doc/posix-functions/readdir.texi: Likewise.
10554         * doc/posix-functions/readdir_r.texi: Likewise.
10555         * doc/posix-functions/rewinddir.texi: Likewise.
10556         * doc/posix-functions/scandir.texi: Likewise.
10557         * doc/posix-functions/seekdir.texi: Likewise.
10558         * doc/posix-functions/setrlimit.texi: Likewise.
10559         * doc/posix-functions/statvfs.texi: Likewise.
10560         * doc/posix-functions/telldir.texi: Likewise.
10561         * doc/posix-functions/tmpfile.texi: Likewise.
10562         * doc/posix-functions/truncate.texi: Likewise.
10563         * doc/glibc-functions/fallocate.texi: Likewise.
10564         * doc/glibc-functions/fstatfs.texi: Likewise.
10565         * doc/glibc-functions/fts_children.texi: Likewise.
10566         * doc/glibc-functions/fts_read.texi: Likewise.
10567         * doc/glibc-functions/getdirentries.texi: Likewise.
10568         * doc/glibc-functions/mkostemp.texi: Likewise.
10569         * doc/glibc-functions/mkostemps.texi: Likewise.
10570         * doc/glibc-functions/mkstemps.texi: Likewise.
10571         * doc/glibc-functions/preadv.texi: Likewise.
10572         * doc/glibc-functions/pwritev.texi: Likewise.
10573         * doc/glibc-functions/sendfile.texi: Likewise.
10574         * doc/glibc-functions/statfs.texi: Likewise.
10575
10576 2011-07-24  Bruno Haible  <bruno@clisp.org>
10577
10578         doc: Fix typo.
10579         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10580
10581 2011-07-24  Bruno Haible  <bruno@clisp.org>
10582
10583         doc: Mention fsusage.
10584         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10585
10586 2011-07-24  Bruno Haible  <bruno@clisp.org>
10587
10588         doc: Mention new glibc headers and functions.
10589         * doc/glibc-headers/gshadow.texi: New file.
10590         * doc/glibc-functions/endsgent.texi: New file.
10591         * doc/glibc-functions/fgetsgent.texi: New file.
10592         * doc/glibc-functions/fgetsgent_r.texi: New file.
10593         * doc/glibc-functions/getsgent.texi: New file.
10594         * doc/glibc-functions/getsgent_r.texi: New file.
10595         * doc/glibc-functions/getsgnam.texi: New file.
10596         * doc/glibc-functions/getsgnam_r.texi: New file.
10597         * doc/glibc-functions/putsgent.texi: New file.
10598         * doc/glibc-functions/setsgent.texi: New file.
10599         * doc/glibc-functions/sgetsgent.texi: New file.
10600         * doc/glibc-functions/sgetsgent_r.texi: New file.
10601         * doc/glibc-functions/malloc_info.texi: New file.
10602         * doc/glibc-functions/preadv.texi: New file.
10603         * doc/glibc-functions/pwritev.texi: New file.
10604         * doc/glibc-functions/register_printf_modifier.texi: New file.
10605         * doc/glibc-functions/register_printf_specifier.texi: New file.
10606         * doc/glibc-functions/register_printf_type.texi: New file.
10607         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10608         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10609         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10610         * doc/glibc-functions/pthread_getname_np.texi: New file.
10611         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10612         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10613         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10614         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10615         * doc/glibc-functions/pthread_setname_np.texi: New file.
10616         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10617         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10618         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10619         * doc/glibc-functions/qsort_r.texi: New file.
10620         * doc/glibc-functions/quick_exit.texi: New file.
10621         * doc/glibc-functions/syncfs.texi: New file.
10622         * doc/gnulib.texi: Include them.
10623         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10624         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10625         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10626         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10627         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10628         * doc/glibc-functions/execvpe.texi: Likewise.
10629
10630 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10631
10632         ftell: don't include <unistd.h>
10633         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10634         guaranteed to define off_t, and the ftell module depends on the
10635         stdio module.
10636
10637         ftell: do not assume wraparound signed arithmetic
10638         * lib/ftell.c: Include <limits.h>.
10639         (ftell): Don't assume wraparound signed arithmetic.
10640
10641 2011-07-24  Bruno Haible  <bruno@clisp.org>
10642
10643         close: No longer depend on module 'fclose'.
10644         * modules/close (Depends-on): Remove fclose.
10645         * NEWS: Mention the change.
10646         Suggested by Sam Steingold <sds@gnu.org>.
10647
10648 2011-07-24  Bruno Haible  <bruno@clisp.org>
10649
10650         fsusage: Enable large volume support on AIX >= 5.2.
10651         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10652         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10653         instead of STAT_STATVFS.
10654         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10655
10656         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10657         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10658         f_blocks field only on MacOS X.
10659
10660         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10662         * modules/fsusage (Depends-on): Add largefile.
10663
10664 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10665
10666         * README: Modernize discussion of signed integers.
10667         Assuming overflow wraparound is no longer safe.
10668         Mention ones' complement and signed magnitude.
10669
10670 2011-07-22  Bruno Haible  <bruno@clisp.org>
10671
10672         select tests, pselect tests: Refactor.
10673         * tests/test-select.h: New file, extracted from tests/test-select.c.
10674         (select_fn): New type.
10675         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10676         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10677         test_pipe): Add my_select argument.
10678         (test_function): Renamed from main. Add my_select argument.
10679         * tests/test-select.c: Move most code to tests/test-select.h. Include
10680         test-select.h.
10681         * modules/select-tests (Files): Add tests/test-select.h.
10682         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10683         (my_select, main): New functions.
10684         * modules/pselect-tests (Files): Add tests/test-select.h,
10685         tests/macros.h, tests/signature.h.
10686         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10687         (configure.ac): Check for <sys/wait.h>.
10688
10689 2011-07-22  Bruno Haible  <bruno@clisp.org>
10690
10691         sys_select tests: Check the signature of FD_*.
10692         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10693         signature tests from here...
10694         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10695         here.
10696         * modules/sys_select-tests (Files): Add tests/signature.h.
10697
10698 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         largefile: new module, replacing large-inode
10701         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10702         * MODULES.html.sh: Add largefile, remove large-inode.
10703         * modules/largefile, m4/largefile.m4: New files.
10704         * modules/large-inode, m4/large-inode.m4: Remove.
10705
10706         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10708         implementations that use only 32 bits to count blocks.
10709         On typical hosts with 1024-byte blocks, this fails with file
10710         systems as small as 4 TiB.  Problem reported by Herb Wartens
10711         <http://debbugs.gnu.org/9140> and this should also fix a similar
10712         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10713
10714         large-inode: New module
10715         * MODULES.html.sh: Add it.
10716         * modules/large-inode, m4/large-inode.m4: New files.
10717
10718         extensions: Enable extensions on MacOS X 10.5 and later.
10719         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10720
10721 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10722
10723         file-has-acl: use acl_extended_file_nofollow if available
10724         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10725         (acl_extended_file): New macro.
10726         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10727         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10728
10729 2011-07-21  Bruno Haible  <bruno@clisp.org>
10730
10731         Declare system functions in a way that works with C++.
10732         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10733         declare fdopendir as extern "C".
10734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10735         declare frexpl as extern "C".
10736         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10737         declare gai_strerror as extern "C".
10738         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10739         programs, declare gai_strerror as extern "C".
10740         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10741         declare getlogin_r as extern "C".
10742         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10743         as extern "C".
10744         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10745         declare ldexpl as extern "C".
10746         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10747         as extern "C".
10748         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10749         program, declare getmntinfo as extern "C".
10750         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10751         stpncpy as extern "C".
10752         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10753         program, declare __xpg_strerror_r as extern "C".
10754         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10755         strndup as extern "C".
10756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10757         declare memset and bzero as extern "C".
10758         Reported by Sam Steingold <sds@gnu.org>.
10759
10760 2011-07-12  Jim Meyering  <meyering@redhat.com>
10761
10762         maint.mk: prohibit inclusion of "verify.h" without use
10763         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10764
10765 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10766
10767         timer-time: A new module to check for timer_settime()
10768         * m4/timer_time.m4: Check for the posix function.
10769         * modules/timer-time: Add the new module.
10770         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10771         Mention it.
10772
10773 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10774             Bruno Haible  <bruno@clisp.org>
10775
10776         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10777         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10778         not defined, assume POSIX threads and look for pthread_sigmask in
10779         $LIBS, without changing $CPPFLAGS.
10780
10781 2011-07-19  Bruno Haible  <bruno@clisp.org>
10782
10783         strstr: Update cross-compilation guess.
10784         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10785         CPUs, guess no, in view of glibc
10786         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10787         Suggested by Eric Blake. Reported by Reuben Thomas.
10788
10789 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10790
10791         getopt-gnu: suppress core dumps from detection code
10792         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10793         to suppress core dumps that may well occur on glibc systems.
10794         * modules/getopt-gnu: Depend on nocrash.
10795
10796 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10797
10798         pthread_sigmask: ensure usleep is declared
10799         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10800         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10801
10802 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         doc: Document NonStop portability issues.
10805         * doc/posix-functions/sigaction.texi (sigaction):
10806         * doc/posix-headers/signal.texi (signal.h):
10807         Document NonStop.  See Joachim Schmitz in
10808         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10809
10810 2011-07-15  Bruno Haible  <bruno@clisp.org>
10811
10812         ffsl, ffsll: Avoid unportable behaviour.
10813         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10814
10815 2011-07-15  Bruno Haible  <bruno@clisp.org>
10816
10817         ffs: More tests.
10818         * tests/test-ffs.c (NBITS): New macro.
10819         (main): Add more tests.
10820         * tests/test-ffsl.c (NBITS): New macro.
10821         (main): Add more tests.
10822         * tests/test-ffsll.c (NBITS): New macro.
10823         (main): Add more tests.
10824
10825 2011-07-15  Eric Blake  <eblake@redhat.com>
10826
10827         ffsl, ffsll: new modules
10828         * modules/ffsl: New file.
10829         * modules/ffsll: Likewise.
10830         * m4/ffsl.m4: Likewise.
10831         * m4/ffsll.m4: Likewise.
10832         * lib/ffsl.c: Likewise.
10833         * lib/ffsl.h: Likewise.
10834         * lib/ffsll.c: Likewise.
10835         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10836         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10837         * modules/string (Makefile.am): Substitute witnesses.
10838         * lib/strings.in.h (ffsl, ffsll): Declare.
10839         * modules/ffsl-tests: New test file.
10840         * modules/ffsll-tests: Likewise.
10841         * tests/test-ffsl.c: Likewise.
10842         * tests/test-ffsll.c: Likewise.
10843         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10844         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10845         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10846
10847         ffs: fix m4 prerequisite
10848         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10849
10850         ffs: avoid undefined behavior
10851         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10852         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10853         Reported by Bruno Haible.
10854
10855 2011-07-12  Bruno Haible  <bruno@clisp.org>
10856
10857         pthread_sigmask: Rely on module 'threadlib'.
10858         * modules/pthread_sigmask (Depends-on): Add threadlib.
10859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10860         is defined.
10861
10862 2011-07-12  Bruno Haible  <bruno@clisp.org>
10863
10864         regex: Depend on module 'strcase'.
10865         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10866
10867 2011-07-12  Jim Meyering  <meyering@redhat.com>
10868
10869         warn-on-use: fix typo in file name
10870         * modules/snippet/warn-on-use (Files): Correct file name:
10871         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10872
10873 2011-07-12  Bruno Haible  <bruno@clisp.org>
10874
10875         strings: Document module.
10876         * doc/posix-headers/strings.texi: Mention module 'strings'.
10877
10878 2011-07-12  Bruno Haible  <bruno@clisp.org>
10879
10880         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10881         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10882         (Files, Makefile.am): Update.
10883         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10884         * modules/stdlib (Depends-on): Update.
10885
10886 2011-07-12  Bruno Haible  <bruno@clisp.org>
10887
10888         * NEWS: Mention the changes.
10889
10890         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10891         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10892         (Files, Makefile.am): Update.
10893         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10894         * modules/arpa_inet (Depends-on): Update.
10895         * modules/ctype (Depends-on): Update.
10896         * modules/dirent (Depends-on): Update.
10897         * modules/fcntl-h (Depends-on): Update.
10898         * modules/glob (Depends-on): Update.
10899         * modules/iconv-h (Depends-on): Update.
10900         * modules/inttypes-incomplete (Depends-on): Update.
10901         * modules/langinfo (Depends-on): Update.
10902         * modules/locale (Depends-on): Update.
10903         * modules/math (Depends-on): Update.
10904         * modules/netdb (Depends-on): Update.
10905         * modules/poll-h (Depends-on): Update.
10906         * modules/pty (Depends-on): Update.
10907         * modules/search (Depends-on): Update.
10908         * modules/signal (Depends-on): Update.
10909         * modules/spawn (Depends-on): Update.
10910         * modules/stdio (Depends-on): Update.
10911         * modules/stdlib (Depends-on): Update.
10912         * modules/string (Depends-on): Update.
10913         * modules/strings (Depends-on): Update.
10914         * modules/sys_file (Depends-on): Update.
10915         * modules/sys_ioctl (Depends-on): Update.
10916         * modules/sys_select (Depends-on): Update.
10917         * modules/sys_socket (Depends-on): Update.
10918         * modules/sys_stat (Depends-on): Update.
10919         * modules/sys_time (Depends-on): Update.
10920         * modules/sys_times (Depends-on): Update.
10921         * modules/sys_utsname (Depends-on): Update.
10922         * modules/sys_wait (Depends-on): Update.
10923         * modules/termios (Depends-on): Update.
10924         * modules/time (Depends-on): Update.
10925         * modules/unistd (Depends-on): Update.
10926         * modules/wchar (Depends-on): Update.
10927         * modules/wctype-h (Depends-on): Update.
10928         * MODULES.html.sh (Support for building libraries and executables):
10929         Update.
10930
10931         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10932         * modules/snippet/unused-parameter: Renamed from
10933         modules/unused-parameter.
10934         (Files, Makefile.am): Update.
10935         * build-aux/snippet/unused-parameter.h: Renamed from
10936         build-aux/unused-parameter.h.
10937         * modules/selinux-h (Depends-on): Update.
10938         * modules/unistr/base (Depends-on): Update.
10939         * MODULES.html.sh (Core language properties): Update.
10940
10941         Rename module 'link-warning' to 'snippet/link-warning'.
10942         * modules/snippet/link-warning: Renamed from modules/link-warning.
10943         (Files, Makefile.am): Update.
10944         * build-aux/snippet/link-warning.h: Renamed from
10945         build-aux/link-warning.h.
10946         * MODULES.html.sh (Support for building libraries and executables):
10947         Update.
10948
10949         Rename module 'c++defs' to 'snippet/c++defs'.
10950         * modules/snippet/c++defs: Renamed from modules/c++defs.
10951         (Files, Makefile.am): Update.
10952         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10953         * modules/arpa_inet (Depends-on): Update.
10954         * modules/ctype (Depends-on): Update.
10955         * modules/dirent (Depends-on): Update.
10956         * modules/fcntl-h (Depends-on): Update.
10957         * modules/glob (Depends-on): Update.
10958         * modules/iconv-h (Depends-on): Update.
10959         * modules/langinfo (Depends-on): Update.
10960         * modules/locale (Depends-on): Update.
10961         * modules/math (Depends-on): Update.
10962         * modules/netdb (Depends-on): Update.
10963         * modules/poll-h (Depends-on): Update.
10964         * modules/pty (Depends-on): Update.
10965         * modules/search (Depends-on): Update.
10966         * modules/signal (Depends-on): Update.
10967         * modules/spawn (Depends-on): Update.
10968         * modules/stdio (Depends-on): Update.
10969         * modules/stdlib (Depends-on): Update.
10970         * modules/string (Depends-on): Update.
10971         * modules/strings (Depends-on): Update.
10972         * modules/sys_ioctl (Depends-on): Update.
10973         * modules/sys_select (Depends-on): Update.
10974         * modules/sys_socket (Depends-on): Update.
10975         * modules/sys_stat (Depends-on): Update.
10976         * modules/sys_time (Depends-on): Update.
10977         * modules/sys_wait (Depends-on): Update.
10978         * modules/termios (Depends-on): Update.
10979         * modules/time (Depends-on): Update.
10980         * modules/unistd (Depends-on): Update.
10981         * modules/wchar (Depends-on): Update.
10982         * modules/wctype-h (Depends-on): Update.
10983
10984         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10985         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10986         (Files, Makefile.am): Update.
10987         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10988         * modules/argv-iter (Depends-on): Update.
10989         * modules/arpa_inet (Depends-on): Update.
10990         * modules/dirent (Depends-on): Update.
10991         * modules/fcntl-h (Depends-on): Update.
10992         * modules/fnmatch (Depends-on): Update.
10993         * modules/getopt-posix (Depends-on): Update.
10994         * modules/glob (Depends-on): Update.
10995         * modules/iconv-h (Depends-on): Update.
10996         * modules/inttypes-incomplete (Depends-on): Update.
10997         * modules/locale (Depends-on): Update.
10998         * modules/math (Depends-on): Update.
10999         * modules/netdb (Depends-on): Update.
11000         * modules/search (Depends-on): Update.
11001         * modules/signal (Depends-on): Update.
11002         * modules/spawn (Depends-on): Update.
11003         * modules/stdio (Depends-on): Update.
11004         * modules/stdlib (Depends-on): Update.
11005         * modules/string (Depends-on): Update.
11006         * modules/strings (Depends-on): Update.
11007         * modules/sys_socket (Depends-on): Update.
11008         * modules/sys_stat (Depends-on): Update.
11009         * modules/sys_time (Depends-on): Update.
11010         * modules/sys_times (Depends-on): Update.
11011         * modules/sys_utsname (Depends-on): Update.
11012         * modules/time (Depends-on): Update.
11013         * modules/unistd (Depends-on): Update.
11014         * modules/wchar (Depends-on): Update.
11015         * MODULES.html.sh (Support for building libraries and executables):
11016         Update.
11017
11018 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11019
11020         Improvements on _Noreturn and related modules.
11021
11022         modules/_Exit-tests: test _Noreturn too
11023         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11024         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11025         (main): Use them.
11026
11027         stdnoreturn, stdnoreturn-tests: remove modules
11028         They're not needed here and a bit premature for use elsewhere.  See
11029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11030         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11031         * tests/test-stdnoreturn.c: Remove files.
11032         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11033         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11034         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11035         and using noreturn.
11036         * modules/openat, modules/sigpipe-die, modules/xalloc:
11037         * modules/xmemdup0, modules/xstrtol:
11038         Remove dependency on stdnoreturn.
11039
11040         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11041         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11042         Reparenthesize to avoid GCC warning.
11043         Support Microsoft's syntax.
11044         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11045
11046         _Noreturn-tests: remove module
11047         * modules/_Noreturn-tests: Remove.
11048         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11049         * tests/test-_Noreturn.c: Remove.
11050         * tests/test-stdnoreturn.c: Merge from the old
11051         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11052
11053 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11054
11055         _Noreturn, stdnoreturn, and related modules.
11056
11057         * top/maint.mk: Adjust to new noreturn support.
11058         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11059         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11060
11061         xalloc: use stdnoreturn.h
11062         * lib/xalloc.h: Include <stdnoreturn.h>.
11063         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11064         * modules/xalloc (Depends-on): Add stdnoreturn.
11065
11066         xstrtol: use stdnoreturn.h
11067         * lib/xstrtol.h: Include <stdnoreturn.h>.
11068         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11069         * modules/xstrtol (Depends-on): Add stdnoreturn.
11070
11071         xmemdup0: use stdnoreturn.h
11072         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11073         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11074         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11075
11076         sigpipe-die: use stdnoreturn.h
11077         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11078         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11079         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11080
11081         openat: use stdnoreturn.h
11082         * lib/openat.h: Include <stdnoreturn.h>.
11083         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11084         * modules/openat (Depends-on): Add stdnoreturn.
11085
11086         * lib/openat-die.c (openat_save_fail): Modernize comment.
11087
11088         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11089
11090         * lib/glthread/thread.h: Modernize comment.
11091
11092         obstack: use _Noreturn
11093         * lib/obstack.c (__attribute__): Remove macro.
11094         (print_and_abort): Use _Noreturn.
11095
11096         c-stack: use _Noreturn
11097         * lib/c-stack.c (die, overflow_handler, segv_handler):
11098         Use _Noreturn rather than __attribute__((noreturn)).
11099
11100         argmatch-tests, exclude_tests: use _Noreturn
11101         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11102         Remove.
11103         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11104
11105         stdlib: use _Noreturn
11106         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11107         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11108         * modules/stdlib (Depends-on): Add _Noreturn.
11109         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11110
11111         stdnoreturn-tests: new module
11112         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11113
11114         stdnoreturn: new module
11115         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11116         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11117
11118         _Noreturn-tests: new module
11119         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11120
11121         _Noreturn: new module
11122         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11123         New section, mentioning it.
11124         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11125
11126         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11127
11128 2011-07-11  Eric Blake  <eblake@redhat.com>
11129
11130         ffs: new module
11131         * modules/ffs: New file.
11132         * m4/ffs.m4: Likewise.
11133         * lib/ffs.c: Likewise.
11134         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11135         * modules/strings (Makefile.am): Substitute witness.
11136         (Depends-on): Add c++defs.
11137         * lib/strings.in.h (ffs): Declare.
11138         * modules/ffs-tests: New test file.
11139         * tests/test-ffs.c: Test new module.
11140         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11141         * doc/posix-functions/ffs.texi (ffs): Likewise.
11142
11143         regex: avoid compiler warning
11144         * lib/regex.c (includes): Include <strings.h>, for use of
11145         strcasecmp in regcomp.c.
11146         Reported by Joachim Schmitz.
11147
11148 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11149
11150         stdint: respect system's intmax_t if INTMAX_MAX
11151         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11152         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11153         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11154         long but int64_t is long long, and where we will clash with the
11155         system intmax_t if we override it.  See
11156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11157         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11158         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11159         similarly for UINTMAX_C.
11160
11161 2011-07-08  Bruno Haible  <bruno@clisp.org>
11162
11163         pthread_sigmask tests: Avoid a compiler warning.
11164         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11165         non-zero.
11166
11167         sigprocmask tests: A better way to avoid a compiler warning.
11168         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11169         (main): Complain if system() returns non-zero.
11170         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11171
11172 2011-07-08  Bruno Haible  <bruno@clisp.org>
11173
11174         pthread_sigmask: Work around IRIX bug.
11175         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11176         bug.
11177         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11178         there may be unblocked pending signals.
11179         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11180
11181 2011-07-08  Bruno Haible  <bruno@clisp.org>
11182
11183         pthread_sigmask: Work around Cygwin bug.
11184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11185         bug.
11186         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11187         the system's pthread_sigmask function.
11188         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11189
11190 2011-07-08  Bruno Haible  <bruno@clisp.org>
11191
11192         pthread_sigmask: Work around bug in single-threaded implementation.
11193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11194         FreeBSD, HP-UX, Solaris bug.
11195         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11196         * lib/pthread_sigmask.c: Include <stddef.h>.
11197         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11198         the system's pthread_sigmask function.
11199         * modules/pthread_sigmask (configure.ac): Invoke
11200         gl_PREREQ_PTHREAD_SIGMASK.
11201         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11202         HP-UX, Solaris.
11203
11204 2011-07-08  Eric Blake  <eblake@redhat.com>
11205
11206         test-sigprocmask: avoid compiler warning
11207         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11208         * tests/test-sigprocmask.c (main): Use it to silence warning.
11209         Reported by Jim Meyering.
11210
11211         test-snprintf: avoid compiler warning
11212         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11213         * tests/test-vsnprintf.c (main): Likewise.
11214         Reported by Jim Meyering.
11215
11216 2011-07-08  Bruno Haible  <bruno@clisp.org>
11217
11218         Tests for module 'pthread_sigmask'.
11219         * modules/pthread_sigmask-tests: New file.
11220         * tests/test-pthread_sigmask1.c: New file, based on
11221         tests/test-sigprocmask.c.
11222         * tests/test-pthread_sigmask2.c: New file.
11223
11224 2011-07-08  Jim Meyering  <meyering@redhat.com>
11225
11226         test-getopt.h: avoid warning about an unused variable
11227         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11228
11229 2011-07-07  Jim Meyering  <meyering@redhat.com>
11230
11231         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11232         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11233         now that it no longer contains leading TABs.
11234         Remove unused "url=FIXME" statement.
11235
11236 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11237
11238         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11240         When gl_THREADLIB is not in use, assume that the POSIX sematics
11241         are desired.  This is better for Emacs, which uses POSIX semantics
11242         on GNUish and/or POSIXish platforms, and does not use threads at
11243         all otherwise.
11244
11245         pthread_sigmask: fix typo when testing for libraries
11246         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11247         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11248
11249 2011-07-08  Eric Blake  <eblake@redhat.com>
11250
11251         fts: introduce FTS_NOATIME
11252         * lib/fts_.h (FTS_NOATIME): New bit flag.
11253         (FTS_OPTIONMASK): Adjust.
11254         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11255         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11256
11257 2011-07-08  Bruno Haible  <bruno@clisp.org>
11258
11259         Tests for module 'thread'.
11260         * modules/thread-tests: New file.
11261         * tests/test-thread_self.c: New file.
11262         * tests/test-thread_create.cc: New file.
11263
11264 2011-07-08  Bruno Haible  <bruno@clisp.org>
11265
11266         thread: Avoid gcc warnings when using gl_thread_self().
11267         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11268         'void *'.
11269         (gl_thread_self_pointer): Update.
11270
11271 2011-07-07  Bruno Haible  <bruno@clisp.org>
11272
11273         signal-c++-tests: Check declaration of pthread_sigmask.
11274         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11275         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11276         $(LIB_PTHREAD_SIGMASK).
11277
11278 2011-07-07  Bruno Haible  <bruno@clisp.org>
11279
11280         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11281         * lib/signal.in.h (pthread_sigmask): Override if
11282         REPLACE_PTHREAD_SIGMASK is 1.
11283         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11284         REPLACE_PTHREAD_SIGMASK.
11285         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11286         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11287         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11288         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11289         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11290
11291 2011-07-07  Bruno Haible  <bruno@clisp.org>
11292
11293         pthread_sigmask: Ensure declaration in <signal.h>.
11294         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11295         include <pthread.h>.
11296         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11297         problem.
11298
11299 2011-07-07  Bruno Haible  <bruno@clisp.org>
11300
11301         pthread_sigmask: Document the module.
11302         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11303
11304 2011-07-07  Bruno Haible  <bruno@clisp.org>
11305
11306         pthread_sigmask: Follow gnulib conventions.
11307         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11308         gl_PTHREAD_SIGMASK.
11309         * modules/pthread_sigmask (configure.ac): Update.
11310
11311 2011-07-07  Bruno Haible  <bruno@clisp.org>
11312
11313         pthread_sigmask: Make declaration C++ safe.
11314         * lib/signal.in.h: In two special conditions, just do an #include_next.
11315         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11316         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11317         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11318         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11319         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11320         not REPLACE_PTHREAD_MASK.
11321         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11322         not REPLACE_PTHREAD_MASK.
11323         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11324
11325 2011-07-07  Bruno Haible  <bruno@clisp.org>
11326
11327         pthread_sigmask: Fix return value.
11328         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11329         * lib/pthread_sigmask.c: New file.
11330         * modules/pthread_sigmask (Files): Add it.
11331         (configure.ac): Invoke AC_LIBOBJ.
11332
11333 2011-07-07  Eric Blake  <eblake@redhat.com>
11334
11335         getopt: more portable argv creation
11336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11337         const, use char arrays rather than strings.
11338         Suggested by Paul Eggert.
11339
11340 2011-07-07  Bruno Haible  <bruno@clisp.org>
11341
11342         Tests for module 'sigprocmask'.
11343         * modules/sigprocmask-tests: New file.
11344         * tests/test-sigprocmask.c: New file.
11345
11346 2011-07-07  Bruno Haible  <bruno@clisp.org>
11347
11348         float tests: Tweak.
11349         * tests/test-float.c (main): Tweak skip message.
11350
11351 2011-07-07  Eric Blake  <eblake@redhat.com>
11352
11353         getopt: avoid compiler warning during configure
11354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11355         assigning string literals to non-const pointer.
11356
11357         getopt-gnu: avoid crash in glibc getopt
11358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11359         * tests/test-getopt.h (test_getopt): Enhance test.
11360         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11361         * doc/posix-functions/getopt.texi (getopt): Document it.
11362         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11363         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11364         Likewise.
11365
11366 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11367
11368         getopt: handle W; without long options in getopt [BZ #12922]
11369         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11370         but no long options are defined, just return 'W'.
11371
11372 2011-07-07  Bruno Haible  <bruno@clisp.org>
11373
11374         Avoid literal tabs.
11375         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11376         variable containing a tab instead of a literal tab.
11377         Reported by Jim Meyering.
11378
11379 2011-07-07  Bruno Haible  <bruno@clisp.org>
11380
11381         Comments.
11382         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11383
11384 2011-07-06  Bruno Haible  <bruno@clisp.org>
11385
11386         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11387         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11388         <winsock2.h>.
11389         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11390         lib/sys_socket.in.h.
11391         (close, gethostname): Hide declarations from <winsock2.h>.
11392         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11393         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11394         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11395         (select): Don't override if gnulib's <sys/select.h> was already
11396         included.
11397         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11398         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11399         setsockopt, shutdown, select): Tweak indentation.
11400
11401 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11404         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11405         in an application that does not use the sys_select module.
11406
11407 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11408
11409         poll: do not return 0 on timeout=-1
11410         * lib/poll.c: Loop with yield if no events occured
11411
11412 2011-07-06  Eric Blake  <eblake@redhat.com>
11413
11414         pthread_sigmask: always replace when not using pthread
11415         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11416         replacement when using some threading other than pthread.  Fix
11417         logic bug.
11418
11419 2011-07-06  Bruno Haible  <bruno@clisp.org>
11420
11421         Comments.
11422         * m4/printf.m4: Update comments about mingw.
11423
11424 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         sys_select: define sigset_t more portably
11427         * lib/sys_select.in.h: Always include <sys/types.h>, since
11428         we now need sigset_t and mingw defines it there.
11429         Include <signal.h> before split inclusion guard, to avoid
11430         mishaps on Solaris, whose <signal.h> eventually includes us.
11431         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11432         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11433         which come from ...
11434         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11435         gl_CHECK_TYPE_SIGSET_T.
11436         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11437         does the real work.
11438         * modules/sys_select (Depends-on): Add 'signal'.
11439
11440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11441         Suggested by Bruno Haible.
11442
11443         pselect: Use pthread_sigmask, not sigprocmask.
11444         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11445         multithreaded apps better than sigprocmask does.
11446         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11447         sigprocmask directly.
11448
11449 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11450
11451         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11452         Don't #undef,  since we don't need any underlying pselect.
11453         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11454         (Depends-on): Add select.
11455         (Link): Add $(LIBSOCKET).
11456         These changes suggested by Bruno Haible.
11457
11458         pselect: document better
11459         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11460         * doc/posix-functions/pselect.texi (pselect): Document new module.
11461
11462         pthread_sigmask: new module
11463         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11464         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11465         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11466         This is done only as a macro; I don't know how well that'll
11467         work for C++.  Move <sys/types.h> include before the include_next,
11468         to avoid mishap on Solaris.
11469         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11470         * modules/signal (Makefile.am): Substitute the check's results.
11471         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11472
11473         test-pselect: new module
11474         * modules/pselect-tests, tests/test-pselect.c: New files.
11475         * tests/test-select.c, tests/test-sys_select-c++.cc:
11476         If TEST_PSELECT is defined, test pselect instead of testing select.
11477
11478         * tests/test-sys_select.c (sigset_t): Test for it, too.
11479         Suggested by Bruno Haible.
11480
11481 2011-07-05  Eric Blake  <eblake@redhat.com>
11482
11483         snprintf: guarantee %1$d, for libintl
11484         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11485         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11486         * doc/posix-functions/snprintf.texi (snprintf): Update.
11487         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11488         * tests/test-snprintf.c (main): Enhance test.
11489         * tests/test-vsnprintf.c (main): Likewise.
11490
11491 2011-07-05  Jim Meyering  <meyering@redhat.com>
11492
11493         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11494         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11495         per Bruno's request, to accommodate this idiom (no space after "#")
11496         even when the function is inside an #if block:
11497         char *
11498         gets (char *s)
11499         #undef gets
11500         {
11501           ...
11502         }
11503
11504 2011-07-04  Jim Meyering  <meyering@redhat.com>
11505
11506         maint: indent with spaces, not TABs, and add a rule to check this
11507         * tests/test-userspec.c: Indent with spaces, not TABs.
11508         * tests/test-argp.c: Likewise.
11509         * tests/test-c-stack2.sh: Likewise.
11510         * tests/test-parse-duration.sh: Likewise
11511         * m4/strtod.m4: Likewise.
11512         * m4/alloca.m4: Likewise.
11513         * m4/pselect.m4: Likewise.
11514         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11515
11516 2011-07-03  Jim Meyering  <meyering@redhat.com>
11517
11518         maint.mk: correct omissions in prohibit_argmatch_without_use check
11519         This rule would mistakenly report that argmatch.h is included without
11520         use even when both the argmatch and invalid_arg macro were used.
11521         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11522         of argmatch and invalid_arg.
11523
11524 2011-07-03  Bruno Haible  <bruno@clisp.org>
11525
11526         Comments about EINTR.
11527         * lib/safe-read.h: Explain the purpose of this module.
11528         * lib/safe-write.h: Likewise.
11529         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11530         module.
11531         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11532         module.
11533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11534
11535 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11536
11537         xnanosleep: Rewrite to use new dtotimespec module.
11538         It has the conversion code that used to be in xnanosleep.
11539         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11540         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11541         (TIME_T_MAX): Remove.
11542         (xnanosleep): Rewrite in terms of dtotimespec.
11543         * modules/xnanosleep (Depends-on): Add dtotimespec.
11544         Remove intprops, stdbool.
11545
11546         timespec-add, timespec-sub: new modules
11547         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11548         * lib/timespec-add.c, lib/timespec-sub.c:
11549         * modules/timespec-add, modules/timespec-sub: New files.
11550
11551         dtotimespec: new module
11552         * lib/timespec.h (dtotimespec): New decl.
11553         * lib/dtotimespec.c, modules/dtotimespec: New files.
11554
11555         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11556
11557         pselect: new module
11558         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11559         (pselect): New decls.
11560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11561         since the standard pselect decl uses 'restrict'.
11562         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11563         HAVE_PSELECT, REPLACE_PSELECT.
11564         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11565         HAVE_PSELECT, REPLACE_PSELECT.
11566         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11567
11568         sys_select: don't depend on sys_socket
11569         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11571         This fix works on GNU and GNU-like platforms, but has not been tested
11572         on native Windows.
11573         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11575         gl_HEADER_SYS_SOCKET.
11576         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11577         gl_PREREQ_SYS_H_WINSOCK2.
11578
11579 2011-06-29  Eric Blake  <eblake@redhat.com>
11580
11581         pipe2: fix C89 compile problem
11582         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11583         Reported by Bruno Haible.
11584
11585         pipe, pipe2: don't corrupt fd on error
11586         * lib/pipe.c (pipe): Leave fd unchanged on error.
11587         * lib/pipe2.c (pipe2): Likewise.
11588         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11589         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11590
11591 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11592
11593         mmap-anon: do not use regular expressions inadvertently
11594         * m4/mmap-anon.m4: Remove trailing period from strings sought
11595         in the output.
11596
11597 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11598
11599         nanosleep: fix integer overflow problem
11600         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11601         arithmetic wraps around on overflow.
11602
11603         nanosleep: simplify carrying
11604         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11605         first call to the underyling nanosleep, not for the last one.
11606         This doesn't fix any bugs, but it simplifies the computation of
11607         the remaining delay.  Found while auditing integer overflow issues.
11608
11609         dup2: remove test for existence of fcntl
11610         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11611         "#if HAVE_FCNTL", in the configure-time test program.
11612         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11613         and therefore speeds up "configure" a bit.  Found while
11614         adding the dup2 module to Emacs.
11615
11616 2011-06-24  Eric Blake  <eblake@redhat.com>
11617
11618         maint.mk: enhance useless header checks
11619         * top/maint.mk (_sc_header_without_use): Check both include
11620         styles.
11621         (sc_prohibit_assert_without_use)
11622         (sc_prohibit_close_stream_without_use)
11623         (sc_prohibit_getopt_without_use)
11624         (sc_prohibit_quotearg_without_use)
11625         (sc_prohibit_quote_without_use)
11626         (sc_prohibit_long_options_without_use)
11627         (sc_prohibit_inttostr_without_use)
11628         (sc_prohibit_ignore_value_without_use)
11629         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11630         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11631         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11632         (sc_prohibit_hash_pjw_without_use)
11633         (sc_prohibit_safe_read_without_use)
11634         (sc_prohibit_argmatch_without_use)
11635         (sc_prohibit_canonicalize_without_use)
11636         (sc_prohibit_root_dev_ino_without_use)
11637         (sc_prohibit_openat_without_use)
11638         (sc_prohibit_c_ctype_without_use)
11639         (sc_prohibit_signal_without_use)
11640         (sc_prohibit_stdio--_without_use)
11641         (sc_prohibit_stdio-safer_without_use)
11642         (sc_prohibit_strings_without_use)
11643         (sc_prohibit_intprops_without_use)
11644         (sc_prohibit_stddef_without_use)
11645         (sc_prohibit_xfreopen_without_use): Update clients.
11646
11647 2011-06-24  Jim Meyering  <meyering@redhat.com>
11648
11649         syntax-check: keep one maint.mk rule in sync with its header
11650         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11651         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11652         I prefer to avoid temporary files here, so use <(...), but that
11653         is not supported by /bin/sh, so...
11654         (SHELL): Define to /bin/bash.
11655
11656 2011-06-24  Eric Blake  <eblake@redhat.com>
11657
11658         maint.mk: update sc_prohibit_intprops_without_use
11659         * top/maint.mk (_intprops_names): Match recent changes.
11660
11661 2011-06-24  Bruno Haible  <bruno@clisp.org>
11662
11663         strerror-override: No-op tweak.
11664         * lib/strerror-override.h (strerror_override): Reorder conditions,
11665         for consistency with lib/strerror-override.c.
11666
11667 2011-06-23  Eric Blake  <eblake@redhat.com>
11668
11669         maint.mk: test further PATH_MAX issues
11670         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11671         (sc_prohibit_path_max_allocation): ...and also test alloca.
11672         Suggested by Jim Meyering.
11673
11674 2011-06-22  Eric Blake  <eblake@redhat.com>
11675
11676         maint.mk: add syntax-check to avoid char[PATH_MAX]
11677         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11678
11679         stat: be robust to PATH_MAX definition
11680         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11681         * modules/stat (Depends-on): Add verify.
11682
11683         link: work around IRIX bug
11684         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11685         * lib/link.c (rpl_link): Work around it.
11686         * tests/test-link.h (test_link): Enhance test.
11687         * doc/posix-functions/link.texi (link): Document the bug.
11688
11689         getopt: silence clang warning
11690         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11691         dereference.
11692         Reported by Gustavo Martin Domato.
11693
11694 2011-06-22  Jim Meyering  <meyering@redhat.com>
11695
11696         bootstrap: do not insert a blank line into each .gitignore file
11697         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11698
11699 2011-06-21  Eric Blake  <eblake@redhat.com>
11700
11701         perror: test for output mismatch
11702         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11703         perror on IRIX.
11704
11705         strerror_r: fix OpenBSD behavior on out-of-range
11706         * lib/strerror_r.c (strerror_r): Always use maximal string.
11707         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11708
11709         strerror_r: fix OpenBSD behavior on 0
11710         * lib/strerror-override.c (strerror_override): Also override 0
11711         when needed.
11712         * lib/strerror-override.h (strerror_override): Likewise.
11713         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11714         earlier.
11715         * lib/strerror_r.c (strerror_r): Likewise.
11716         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11717         behavior...
11718         (gl_FUNC_STRERROR_0): ...into new macro.
11719         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11720         is overridden.
11721         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11722         * modules/strerror-override (Files): Add strerror.m4.
11723         (configure.ac): Also provide override for 0 when needed.
11724         * doc/posix-functions/strerror.texi (strerror): Document this.
11725         * doc/posix-functions/perror.texi (perror): Likewise.
11726
11727         perror: adjust array size
11728         * modules/perror (Depends-on): Add strerror-override.
11729         * lib/perror.c (perror): Use it to avoid magic number.
11730
11731         strerror-override: reduce size
11732         * lib/strerror-override.c (strerror_override): Use fewer lines.
11733
11734 2011-06-20  Bruno Haible  <bruno@clisp.org>
11735
11736         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11737         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11738
11739 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11740
11741         alloca: port to compilers that can optimize like GCC 4.6.0
11742         * lib/alloca.c (find_stack_direction): New signature, taken from
11743         Autoconf git.  This works with GCC 4.6.0.  This code should never
11744         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11745         be used with other compilers that optimize as well as GCC 4.6.0 does.
11746         (alloca): Adjust to new signature.
11747         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11748         New macro, which patches Autoconf in a similar way.
11749
11750         c-stack: stop worrying about stack direction
11751         * lib/c-stack.c (find_stack_direction): Remove.
11752         (segv_handler): Don't worry about stack direction growth, as it's
11753         too much of a pain to configure this correctly, given how compilers
11754         are optimizing-away our stack-growth detection code.  Instead, assume
11755         that any access to just before or just after the stack is OK.
11756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11757         Don't require AC_FUNC_ALLOCA; no longer needed.
11758
11759 2011-06-20  Eric Blake  <eblake@redhat.com>
11760
11761         test-stat: don't allocate PATH_MAX bytes
11762         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11763         PATH_MAX-sized buffer.
11764         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11765         * modules/stat-tests (Depends-on): Likewise.
11766         * tests/test-fstatat.c (includes): Drop pathmax.h.
11767         * tests/test-stat.c (includes): Likewise.
11768         Reported by Bruno Haible.
11769
11770 2011-06-20  Bruno Haible  <bruno@clisp.org>
11771
11772         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11773         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11774         * lib/float.c: New file.
11775         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11776         REPLACE_FLOAT_LDBL.
11777         * modules/float (Files): Add lib/float.c.
11778         (configure.ac): Invoke AC_LIBOBJ.
11779         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11780
11781 2011-06-20  Bruno Haible  <bruno@clisp.org>
11782
11783         Tests for module 'float'.
11784         * modules/float-tests: New file.
11785         * tests/test-float.c: New file.
11786
11787 2011-06-19  Bruno Haible  <bruno@clisp.org>
11788
11789         isinf: Coding style.
11790         * lib/isinf.c: Use GNU coding style.
11791
11792 2011-06-19  Bruno Haible  <bruno@clisp.org>
11793
11794         linkat test: Avoid test failure on AIX 7.1.
11795         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11796         * tests/test-link.h (test_link): Likewise.
11797
11798 2011-06-19  Bruno Haible  <bruno@clisp.org>
11799
11800         pread test: Avoid test failure on OpenBSD 4.9.
11801         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11802
11803 2011-06-19  Bruno Haible  <bruno@clisp.org>
11804
11805         sprintf-posix: Fix test failure on AIX 7.1.
11806         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11807         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11808         on AIX.
11809         * doc/posix-functions/fprintf.texi: Likewise.
11810         * doc/posix-functions/printf.texi: Likewise.
11811         * doc/posix-functions/snprintf.texi: Likewise.
11812         * doc/posix-functions/sprintf.texi: Likewise.
11813         * doc/posix-functions/vdprintf.texi: Likewise.
11814         * doc/posix-functions/vfprintf.texi: Likewise.
11815         * doc/posix-functions/vprintf.texi: Likewise.
11816         * doc/posix-functions/vsnprintf.texi: Likewise.
11817         * doc/posix-functions/vsprintf.texi: Likewise.
11818
11819 2011-06-19  Bruno Haible  <bruno@clisp.org>
11820
11821         roundl-ieee: Fix test failure on AIX 7.1.
11822         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11823         * doc/posix-functions/roundl.texi: Mention problem with negative
11824         arguments.
11825
11826 2011-06-19  Bruno Haible  <bruno@clisp.org>
11827
11828         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11829         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11830         * doc/posix-functions/round.texi: Mention problem with negative
11831         arguments.
11832         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11833
11834 2011-06-19  Bruno Haible  <bruno@clisp.org>
11835
11836         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11837         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11838         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11839         * doc/posix-functions/roundf.texi: Mention problem with negative
11840         arguments.
11841         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11842
11843 2011-06-19  Bruno Haible  <bruno@clisp.org>
11844
11845         ceilf-ieee: Work around bug on MacOS X 10.5.
11846         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11847
11848         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11849         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11850         IEEE compliant, avoid compiler optimizations.
11851         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11852         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11853         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11854         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11855         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11856         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11858         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11859         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11860         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11861
11862 2011-06-19  Bruno Haible  <bruno@clisp.org>
11863
11864         ceilf-ieee: Work around bug on AIX 7.1.
11865         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11866         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11867
11868 2011-06-19  Bruno Haible  <bruno@clisp.org>
11869
11870         ceil-ieee: Work around bug on AIX 7.1.
11871         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11872         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11873
11874 2011-06-18  Bruno Haible  <bruno@clisp.org>
11875
11876         fsync test: Avoid test failure on MacOS X and AIX.
11877         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11878         EINVAL.
11879
11880 2011-06-18  Bruno Haible  <bruno@clisp.org>
11881
11882         openat, fdopendir tests: Fix link errors.
11883         * modules/openat-tests (Depends-on): Add progname.
11884         * modules/fdopendir-tests (Depends-on): Likewise.
11885         * tests/test-fchownat.c: Include progname.h.
11886         (main): Call set_program_name.
11887         * tests/test-fstatat.c: Include progname.h.
11888         (main): Call set_program_name.
11889         * tests/test-mkdirat.c: Include progname.h.
11890         (main): Call set_program_name.
11891         * tests/test-openat.c: Include progname.h.
11892         (main): Call set_program_name.
11893         * tests/test-unlinkat.c: Include progname.h.
11894         (main): Call set_program_name.
11895         * tests/test-fdopendir.c: Include progname.h.
11896         (main): Call set_program_name.
11897
11898 2011-06-18  Bruno Haible  <bruno@clisp.org>
11899
11900         Doc update.
11901         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11902         HP-UX.
11903         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11904
11905 2011-06-18  Bruno Haible  <bruno@clisp.org>
11906
11907         getcwd tests: Avoid compilation error on HP-UX 11.31.
11908         * modules/getcwd-tests (Depends-on): Add pathmax.
11909         * tests/test-getcwd.c: Include pathmax.h.
11910
11911 2011-06-18  Bruno Haible  <bruno@clisp.org>
11912
11913         isfinite, isinf: Fix link error on AIX 6 and 7.
11914         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11915         needed, also test the macro with a 'float' argument.
11916         * m4/isinf.m4 (gl_ISINF): Likewise.
11917
11918 2011-06-18  Bruno Haible  <bruno@clisp.org>
11919
11920         getloadavg: Don't clobber LIBS. Regression from previous commit.
11921         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11922         AC_CHECK_LIB from here...
11923         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11924         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11925         gl_func_getloadavg_done.
11926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11927
11928 2011-06-18  Bruno Haible  <bruno@clisp.org>
11929
11930         clean-temp: Improve documentation.
11931         * lib/clean-temp.h: Explain better how to use this module.
11932         Reported by John Darrington <john@darrington.wattle.id.au>.
11933
11934 2011-06-17  Bruno Haible  <bruno@clisp.org>
11935
11936         pread, pwrite: Avoid cc warning on AIX.
11937         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11938         (pwrite): Likewise.
11939
11940 2011-06-17  Bruno Haible  <bruno@clisp.org>
11941
11942         spawn-pipe tests: Fix link error.
11943         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11945
11946 2011-06-17  Bruno Haible  <bruno@clisp.org>
11947
11948         Tests: Remove unnecessary dependency.
11949         * modules/canonicalize-tests (Depends-on): Remove progname.
11950         * modules/chown-tests (Depends-on): Likewise.
11951         * modules/dirname-tests (Depends-on): Likewise.
11952         * modules/fdopendir-tests (Depends-on): Likewise.
11953         * modules/fdutimensat-tests (Depends-on): Likewise.
11954         * modules/hash-tests (Depends-on): Likewise.
11955         * modules/lchown-tests (Depends-on): Likewise.
11956         * modules/linkat-tests (Depends-on): Likewise.
11957         * modules/renameat-tests (Depends-on): Likewise.
11958         * modules/spawn-pipe-tests (Depends-on): Likewise.
11959         * modules/utimensat-tests (Depends-on): Likewise.
11960
11961 2011-06-17  Bruno Haible  <bruno@clisp.org>
11962
11963         spawn-pipe tests: Fix link error.
11964         * tests/test-spawn-pipe-child.c: Undefine fflush.
11965
11966 2011-06-17  Bruno Haible  <bruno@clisp.org>
11967
11968         Fix tests link errors.
11969         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11970         * modules/chown-tests (Makefile.am): Don't link test-chown with
11971         LIBINTL.
11972         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11973         LIBINTL.
11974         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11975         LIBINTL.
11976         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11977         LIBINTL.
11978
11979 2011-06-16  Bruno Haible  <bruno@clisp.org>
11980
11981         crypto/gc-sha1: Fix recent regression.
11982         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11983         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11984
11985         crypto/gc-md5: Fix recent regression.
11986         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11987
11988         crypto/gc-md4: Fix recent regression.
11989         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11990         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11991
11992         crypto/gc-arctwo: Fix recent regression.
11993         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11994         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11995
11996         crypto/gc-rijndael: Fix recent regression.
11997         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11998         (configure.ac): Invoke AC_LIBOBJ here.
11999         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12001
12002         crypto/gc-hmac-sha1: Fix recent regression.
12003         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12004         (configure.ac): Invoke AC_LIBOBJ here.
12005         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12007
12008         crypto/gc-hmac-md5: Fix recent regression.
12009         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12010         (configure.ac): Invoke AC_LIBOBJ here.
12011         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12013
12014         crypto/gc-des: Fix recent regression.
12015         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12016         (configure.ac): Invoke AC_LIBOBJ here.
12017         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12019
12020         crypto/gc-arcfour: Fix recent regression.
12021         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12022         (configure.ac): Invoke AC_LIBOBJ here.
12023         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12025
12026 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12027
12028         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12029         After the 2011-05-21 change, this macro requires
12030         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12031         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12032
12033 2011-06-16  Bruno Haible  <bruno@clisp.org>
12034
12035         fprintftime: Move AC_LIBOBJ invocations to module description.
12036         * m4/fprintftime.m4: Remove file.
12037         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12038         (configure.ac): Remove gl_FPRINTFTIME call.
12039         (Makefile.am): Augment lib_SOURCES.
12040         Reported by Jim Meyering.
12041
12042 2011-06-16  Bruno Haible  <bruno@clisp.org>
12043
12044         tmpfile-safer: Finish 2011-05-23 commit.
12045         * m4/stdio-safer.m4: Really remove file.
12046         Reported by Jim Meyering.
12047
12048 2011-06-16  Bruno Haible  <bruno@clisp.org>
12049
12050         syntax-check: Fix typo.
12051         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12052         printf-posix.m4.
12053         Reported by Jim Meyering.
12054
12055 2011-06-13  Jim Meyering  <meyering@redhat.com>
12056
12057         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12058         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12059
12060 2011-05-23  Bruno Haible  <bruno@clisp.org>
12061
12062         yesno: Move AC_LIBOBJ invocations to module description.
12063         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12064         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12065
12066 2011-05-23  Bruno Haible  <bruno@clisp.org>
12067
12068         xstrtol: Move AC_LIBOBJ invocations to module description.
12069         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12070         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12071
12072 2011-05-23  Bruno Haible  <bruno@clisp.org>
12073
12074         xstrtold: Move AC_LIBOBJ invocations to module description.
12075         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12076         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12077
12078 2011-05-23  Bruno Haible  <bruno@clisp.org>
12079
12080         xstrtod: Move AC_LIBOBJ invocations to module description.
12081         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12082         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12083
12084 2011-05-23  Bruno Haible  <bruno@clisp.org>
12085
12086         xnanosleep: Move AC_LIBOBJ invocations to module description.
12087         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12088         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12089
12090 2011-05-23  Bruno Haible  <bruno@clisp.org>
12091
12092         xgetcwd: Move AC_LIBOBJ invocations to module description.
12093         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12094         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12095
12096 2011-05-23  Bruno Haible  <bruno@clisp.org>
12097
12098         xalloc: Move AC_LIBOBJ invocations to module description.
12099         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12100         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12101
12102 2011-05-23  Bruno Haible  <bruno@clisp.org>
12103
12104         write-any-file: Move AC_LIBOBJ invocations to module description.
12105         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12106         invocation.
12107         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12108
12109 2011-05-23  Bruno Haible  <bruno@clisp.org>
12110
12111         utimens: Move AC_LIBOBJ invocations to module description.
12112         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12113         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12114
12115 2011-05-23  Bruno Haible  <bruno@clisp.org>
12116
12117         utimecmp: Move AC_LIBOBJ invocations to module description.
12118         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12119         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12120
12121 2011-05-23  Bruno Haible  <bruno@clisp.org>
12122
12123         userspec: Move AC_LIBOBJ invocations to module description.
12124         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12125         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12126
12127 2011-05-23  Bruno Haible  <bruno@clisp.org>
12128
12129         unlinkdir: Move AC_LIBOBJ invocations to module description.
12130         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12131         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12132
12133 2011-05-23  Bruno Haible  <bruno@clisp.org>
12134
12135         unistd-safer: Move AC_LIBOBJ invocations to module description.
12136         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12137         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12138
12139 2011-05-23  Bruno Haible  <bruno@clisp.org>
12140
12141         tempname: Move AC_LIBOBJ invocations to module description.
12142         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12143         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12144
12145 2011-05-23  Bruno Haible  <bruno@clisp.org>
12146
12147         strftime: Move AC_LIBOBJ invocations to module description.
12148         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12149         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12150
12151 2011-05-23  Bruno Haible  <bruno@clisp.org>
12152
12153         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12154         * m4/stdlib-safer.m4: Remove file.
12155         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12156         (configure.ac): Remove gl_STDLIB_SAFER call.
12157         (Makefile.am): Augment lib_SOURCES.
12158
12159 2011-05-23  Bruno Haible  <bruno@clisp.org>
12160
12161         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12162         * m4/stdio-safer.m4: Remove file.
12163         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12164         (configure.ac): Remove gl_TMPFILE_SAFER call.
12165         (Makefile.am): Augment lib_SOURCES.
12166
12167 2011-05-23  Bruno Haible  <bruno@clisp.org>
12168
12169         popen-safer: Move AC_LIBOBJ invocations to module description.
12170         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12171         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12172         (configure.ac): Remove gl_POPEN_SAFER call.
12173         (Makefile.am): Augment lib_SOURCES.
12174
12175 2011-05-23  Bruno Haible  <bruno@clisp.org>
12176
12177         freopen-safer: Move AC_LIBOBJ invocations to module description.
12178         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12179         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12180         (configure.ac): Remove gl_FREOPEN_SAFER call.
12181         (Makefile.am): Augment lib_SOURCES.
12182
12183 2011-05-23  Bruno Haible  <bruno@clisp.org>
12184
12185         fopen-safer: Move AC_LIBOBJ invocations to module description.
12186         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12187         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12188         (configure.ac): Remove gl_FOPEN_SAFER call.
12189         (Makefile.am): Augment lib_SOURCES.
12190
12191 2011-05-23  Bruno Haible  <bruno@clisp.org>
12192
12193         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12194         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12195         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12196
12197 2011-05-23  Bruno Haible  <bruno@clisp.org>
12198
12199         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12200         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12201         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12202
12203 2011-05-23  Bruno Haible  <bruno@clisp.org>
12204
12205         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12206         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12207         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12208
12209 2011-05-23  Bruno Haible  <bruno@clisp.org>
12210
12211         settime: Move AC_LIBOBJ invocations to module description.
12212         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12213         * modules/settime (Makefile.am): Augment lib_SOURCES.
12214
12215 2011-05-23  Bruno Haible  <bruno@clisp.org>
12216
12217         savedir: Move AC_LIBOBJ invocations to module description.
12218         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12219         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12220
12221 2011-05-23  Bruno Haible  <bruno@clisp.org>
12222
12223         save-cwd: Move AC_LIBOBJ invocations to module description.
12224         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12225         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12226
12227 2011-05-23  Bruno Haible  <bruno@clisp.org>
12228
12229         same: Move AC_LIBOBJ invocations to module description.
12230         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12231         * modules/same (Makefile.am): Augment lib_SOURCES.
12232
12233 2011-05-23  Bruno Haible  <bruno@clisp.org>
12234
12235         safe-write: Move AC_LIBOBJ invocations to module description.
12236         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12237         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12238         instead of gl_SAFE_WRITE.
12239         (Makefile.am): Augment lib_SOURCES.
12240
12241 2011-05-23  Bruno Haible  <bruno@clisp.org>
12242
12243         safe-read: Move AC_LIBOBJ invocations to module description.
12244         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12245         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12246         of gl_SAFE_READ.
12247         (Makefile.am): Augment lib_SOURCES.
12248
12249 2011-05-23  Bruno Haible  <bruno@clisp.org>
12250
12251         safe-alloc: Move AC_LIBOBJ invocations to module description.
12252         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12253         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12254
12255 2011-05-23  Bruno Haible  <bruno@clisp.org>
12256
12257         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12258         * m4/rijndael.m4: Remove file.
12259         * modules/crypto/rijndael (Files): Remove it.
12260         (configure.ac): Remove gl_RIJNDAEL call.
12261         (Makefile.am): Augment lib_SOURCES.
12262
12263 2011-05-23  Bruno Haible  <bruno@clisp.org>
12264
12265         readtokens: Move AC_LIBOBJ invocations to module description.
12266         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12267         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12268
12269 2011-05-23  Bruno Haible  <bruno@clisp.org>
12270
12271         read-file: Move AC_LIBOBJ invocations to module description.
12272         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12273         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12274         of gl_FUNC_READ_FILE.
12275         (Makefile.am): Augment lib_SOURCES.
12276
12277 2011-05-23  Bruno Haible  <bruno@clisp.org>
12278
12279         quotearg: Move AC_LIBOBJ invocations to module description.
12280         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12281         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12282
12283 2011-05-23  Bruno Haible  <bruno@clisp.org>
12284
12285         quote: Move AC_LIBOBJ invocations to module description.
12286         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12287         * modules/quote (Makefile.am): Augment lib_SOURCES.
12288
12289 2011-05-23  Bruno Haible  <bruno@clisp.org>
12290
12291         posixver: Move AC_LIBOBJ invocations to module description.
12292         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12293         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12294
12295 2011-05-23  Bruno Haible  <bruno@clisp.org>
12296
12297         posixtm: Move AC_LIBOBJ invocations to module description.
12298         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12299         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12300
12301 2011-05-23  Bruno Haible  <bruno@clisp.org>
12302
12303         physmem: Move AC_LIBOBJ invocations to module description.
12304         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12305         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12306
12307 2011-05-23  Bruno Haible  <bruno@clisp.org>
12308
12309         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12310         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12311         invocation.
12312         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12313
12314 2011-05-23  Bruno Haible  <bruno@clisp.org>
12315
12316         mpsort: Move AC_LIBOBJ invocations to module description.
12317         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12318         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12319
12320 2011-05-23  Bruno Haible  <bruno@clisp.org>
12321
12322         modechange: Move AC_LIBOBJ invocations to module description.
12323         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12324         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12325
12326 2011-05-23  Bruno Haible  <bruno@clisp.org>
12327
12328         mkdir-p: Move AC_LIBOBJ invocations to module description.
12329         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12330         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12331
12332 2011-05-23  Bruno Haible  <bruno@clisp.org>
12333
12334         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12335         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12336         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12337
12338 2011-05-23  Bruno Haible  <bruno@clisp.org>
12339
12340         mgetgroups: Move AC_LIBOBJ invocations to module description.
12341         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12342         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12343
12344 2011-05-23  Bruno Haible  <bruno@clisp.org>
12345
12346         memxor: Move AC_LIBOBJ invocations to module description.
12347         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12348         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12349
12350 2011-05-23  Bruno Haible  <bruno@clisp.org>
12351
12352         memcoll: Move AC_LIBOBJ invocations to module description.
12353         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12354         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12355
12356 2011-05-23  Bruno Haible  <bruno@clisp.org>
12357
12358         memcasecmp: Move AC_LIBOBJ invocations to module description.
12359         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12360         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         crypto/md5: Move AC_LIBOBJ invocations to module description.
12365         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12366         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12367
12368 2011-05-23  Bruno Haible  <bruno@clisp.org>
12369
12370         crypto/md4: Move AC_LIBOBJ invocations to module description.
12371         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12372         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12373
12374 2011-05-23  Bruno Haible  <bruno@clisp.org>
12375
12376         crypto/md2: Move AC_LIBOBJ invocations to module description.
12377         * m4/md2.m4: Remove file.
12378         * modules/crypto/md2 (Files): Remove it.
12379         (configure.ac): Remove gl_MD2 call.
12380         (Makefile.am): Augment lib_SOURCES.
12381
12382 2011-05-23  Bruno Haible  <bruno@clisp.org>
12383
12384         long-options: Move AC_LIBOBJ invocations to module description.
12385         * m4/long-options.m4: Remove file.
12386         * modules/long-options (Files): Remove it.
12387         (configure.ac): Remove gl_LONG_OPTIONS call.
12388         (Makefile.am): Augment lib_SOURCES.
12389
12390 2011-05-23  Bruno Haible  <bruno@clisp.org>
12391
12392         i-ring: Move AC_LIBOBJ invocations to module description.
12393         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12394         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12395
12396 2011-05-23  Bruno Haible  <bruno@clisp.org>
12397
12398         idcache: Move AC_LIBOBJ invocations to module description.
12399         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12400         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12401
12402 2011-05-23  Bruno Haible  <bruno@clisp.org>
12403
12404         human: Move AC_LIBOBJ invocations to module description.
12405         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12406         * modules/human (Makefile.am): Augment lib_SOURCES.
12407
12408 2011-05-23  Bruno Haible  <bruno@clisp.org>
12409
12410         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12411         * m4/hmac-sha1.m4: Remove file.
12412         * modules/crypto/hmac-sha1 (Files): Remove it.
12413         (configure.ac): Remove gl_HMAC_SHA1 call.
12414         (Makefile.am): Augment lib_SOURCES.
12415
12416 2011-05-23  Bruno Haible  <bruno@clisp.org>
12417
12418         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12419         * m4/hmac-md5.m4: Remove file.
12420         * modules/crypto/hmac-md5 (Files): Remove it.
12421         (configure.ac): Remove gl_HMAC_MD5 call.
12422         (Makefile.am): Augment lib_SOURCES.
12423
12424 2011-05-23  Bruno Haible  <bruno@clisp.org>
12425
12426         hash: Move AC_LIBOBJ invocations to module description.
12427         * m4/hash.m4: Remove file.
12428         * modules/hash (Files): Remove it.
12429         (configure.ac): Remove gl_HASH call.
12430         (Makefile.am): Augment lib_SOURCES.
12431
12432 2011-05-23  Bruno Haible  <bruno@clisp.org>
12433
12434         hard-locale: Move AC_LIBOBJ invocations to module description.
12435         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12436         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12437
12438 2011-05-23  Bruno Haible  <bruno@clisp.org>
12439
12440         getugroups: Move AC_LIBOBJ invocations to module description.
12441         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12442         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12443
12444 2011-05-23  Bruno Haible  <bruno@clisp.org>
12445
12446         gettime: Move AC_LIBOBJ invocations to module description.
12447         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12448         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12449
12450 2011-05-23  Bruno Haible  <bruno@clisp.org>
12451
12452         getndelim2: Move AC_LIBOBJ invocations to module description.
12453         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12454         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12455
12456 2011-05-23  Bruno Haible  <bruno@clisp.org>
12457
12458         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12459         * m4/gc-pbkdf2-sha1.m4: Remove file.
12460         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12461         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12462         (Makefile.am): Augment lib_SOURCES.
12463
12464 2011-05-23  Bruno Haible  <bruno@clisp.org>
12465
12466         fts: Move AC_LIBOBJ invocations to module description.
12467         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12468         * modules/fts (configure.ac): ... to here.
12469
12470 2011-05-23  Bruno Haible  <bruno@clisp.org>
12471
12472         file-type: Move AC_LIBOBJ invocations to module description.
12473         * m4/file-type.m4: Remove file.
12474         * modules/file-type (Files): Remove it.
12475         (configure.ac): Remove gl_FILE_TYPE call.
12476         (Makefile.am): Augment lib_SOURCES.
12477
12478 2011-05-23  Bruno Haible  <bruno@clisp.org>
12479
12480         filenamecat*: Respect rules for use of AC_LIBOBJ.
12481         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12482         Remove AC_LIBOBJ invocation.
12483         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12484         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12485
12486 2011-05-23  Bruno Haible  <bruno@clisp.org>
12487
12488         filemode: Move AC_LIBOBJ invocations to module description.
12489         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12490         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12491
12492 2011-05-23  Bruno Haible  <bruno@clisp.org>
12493
12494         openat-safer: Move AC_LIBOBJ invocations to module description.
12495         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12496         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12497
12498 2011-05-23  Bruno Haible  <bruno@clisp.org>
12499
12500         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12501         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12502         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12503
12504 2011-05-23  Bruno Haible  <bruno@clisp.org>
12505
12506         exclude: Move AC_LIBOBJ invocations to module description.
12507         * m4/exclude.m4: Remove file.
12508         * modules/exclude (Files): Remove it.
12509         (configure.ac): Remove gl_EXCLUDE call.
12510         (Makefile.am): Augment lib_SOURCES.
12511
12512 2011-05-23  Bruno Haible  <bruno@clisp.org>
12513
12514         dirname*: Respect rules for use of AC_LIBOBJ.
12515         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12516         invocations.
12517         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12518         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12519
12520 2011-05-23  Bruno Haible  <bruno@clisp.org>
12521
12522         dirent-safer: Move AC_LIBOBJ invocations to module description.
12523         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12524         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12525
12526 2011-05-23  Bruno Haible  <bruno@clisp.org>
12527
12528         crypto/des: Move AC_LIBOBJ invocations to module description.
12529         * m4/des.m4: Remove file.
12530         * modules/crypto/des (Files): Remove it.
12531         (configure.ac): Remove gl_DES call.
12532         (Makefile.am): Augment lib_SOURCES.
12533
12534 2011-05-23  Bruno Haible  <bruno@clisp.org>
12535
12536         cycle-check: Move AC_LIBOBJ invocations to module description.
12537         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12538         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12539
12540 2011-05-23  Bruno Haible  <bruno@clisp.org>
12541
12542         c-strtold: Move AC_LIBOBJ invocations to module description.
12543         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12544         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12545
12546 2011-05-23  Bruno Haible  <bruno@clisp.org>
12547
12548         c-strtod: Move AC_LIBOBJ invocations to module description.
12549         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12550         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12551
12552 2011-05-23  Bruno Haible  <bruno@clisp.org>
12553
12554         crc: Move AC_LIBOBJ invocations to module description.
12555         * m4/crc.m4: Remove file.
12556         * modules/crc (Files): Remove it.
12557         (configure.ac): Remove gl_CRC call.
12558         (Makefile.am): Augment lib_SOURCES.
12559
12560 2011-05-23  Bruno Haible  <bruno@clisp.org>
12561
12562         close-stream: Move AC_LIBOBJ invocations to module description.
12563         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12564         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12565
12566 2011-05-23  Bruno Haible  <bruno@clisp.org>
12567
12568         closeout: Move AC_LIBOBJ invocations to module description.
12569         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12570         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12571
12572 2011-05-23  Bruno Haible  <bruno@clisp.org>
12573
12574         closein: Move AC_LIBOBJ invocations to module description.
12575         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12576         * modules/closein (Makefile.am): Augment lib_SOURCES.
12577
12578 2011-05-23  Bruno Haible  <bruno@clisp.org>
12579
12580         cloexec: Move AC_LIBOBJ invocations to module description.
12581         * m4/cloexec.m4: Remove file.
12582         * modules/cloexec (Files): Remove it.
12583         (configure.ac): Remove gl_CLOEXEC call.
12584         (Makefile.am): Augment lib_SOURCES.
12585
12586 2011-05-23  Bruno Haible  <bruno@clisp.org>
12587
12588         check-version: Move AC_LIBOBJ invocations to module description.
12589         * m4/check-version.m4: Remove file.
12590         * modules/check-version (Files): Remove it.
12591         (configure.ac): Remove gl_CHECK_VERSION call.
12592         (Makefile.am): Augment lib_SOURCES.
12593
12594 2011-05-23  Bruno Haible  <bruno@clisp.org>
12595
12596         chdir-safer: Move AC_LIBOBJ invocations to module description.
12597         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12598         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12599
12600 2011-05-23  Bruno Haible  <bruno@clisp.org>
12601
12602         canonicalize: Move AC_LIBOBJ invocations to module description.
12603         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12604         AC_LIBOBJ invocation.
12605         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12606
12607 2011-05-23  Bruno Haible  <bruno@clisp.org>
12608
12609         canon-host: Move AC_LIBOBJ invocations to module description.
12610         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12611         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12612         instead of gl_CANON_HOST.
12613         (Makefile.am): Augment lib_SOURCES.
12614
12615 2011-05-23  Bruno Haible  <bruno@clisp.org>
12616
12617         backupfile: Move AC_LIBOBJ invocations to module description.
12618         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12619         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12620
12621 2011-05-23  Bruno Haible  <bruno@clisp.org>
12622
12623         argmatch: Move AC_LIBOBJ invocations to module description.
12624         * m4/argmatch.m4: Remove file.
12625         * modules/argmatch (Files): Remove it.
12626         (configure.ac): Remove gl_ARGMATCH call.
12627         (Makefile.am): Augment lib_SOURCES.
12628
12629 2011-05-23  Bruno Haible  <bruno@clisp.org>
12630
12631         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12632         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12633         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12634
12635 2011-05-23  Bruno Haible  <bruno@clisp.org>
12636
12637         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12638         * m4/arcfour.m4: Remove file.
12639         * modules/crypto/arcfour (Files): Remove it.
12640         (configure.ac): Remove gl_ARCFOUR call.
12641         (Makefile.am): Augment lib_SOURCES.
12642
12643 2011-05-22  Bruno Haible  <bruno@clisp.org>
12644
12645         write: Move AC_LIBOBJ invocations to module description.
12646         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12647         * modules/write (configure.ac): ... to here.
12648
12649 2011-05-22  Bruno Haible  <bruno@clisp.org>
12650
12651         wmemset: Move AC_LIBOBJ invocations to module description.
12652         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12653         here...
12654         * modules/wmemset (configure.ac): ... to here.
12655
12656 2011-05-22  Bruno Haible  <bruno@clisp.org>
12657
12658         wmemmove: Move AC_LIBOBJ invocations to module description.
12659         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12660         here...
12661         * modules/wmemmove (configure.ac): ... to here.
12662
12663 2011-05-22  Bruno Haible  <bruno@clisp.org>
12664
12665         wmemcpy: Move AC_LIBOBJ invocations to module description.
12666         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12667         here...
12668         * modules/wmemcpy (configure.ac): ... to here.
12669
12670 2011-05-22  Bruno Haible  <bruno@clisp.org>
12671
12672         wmemcmp: Move AC_LIBOBJ invocations to module description.
12673         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12674         here...
12675         * modules/wmemcmp (configure.ac): ... to here.
12676
12677 2011-05-22  Bruno Haible  <bruno@clisp.org>
12678
12679         wmemchr: Move AC_LIBOBJ invocations to module description.
12680         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12681         here...
12682         * modules/wmemchr (configure.ac): ... to here.
12683
12684 2011-05-22  Bruno Haible  <bruno@clisp.org>
12685
12686         wcswidth: Move AC_LIBOBJ invocations to module description.
12687         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12688         here...
12689         * modules/wcswidth (configure.ac): ... to here.
12690
12691 2011-05-22  Bruno Haible  <bruno@clisp.org>
12692
12693         wcwidth: Respect rules for use of AC_LIBOBJ.
12694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12695         invocation from here...
12696         * modules/wcwidth (configure.ac): ... to here.
12697         (Depends-on): Update conditions.
12698
12699 2011-05-22  Bruno Haible  <bruno@clisp.org>
12700
12701         wctype: Move AC_LIBOBJ invocations to module description.
12702         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12703         invocation from here...
12704         * modules/wctype (configure.ac): ... to here.
12705         (Depends-on): Update conditions.
12706
12707 2011-05-22  Bruno Haible  <bruno@clisp.org>
12708
12709         wctrans: Move AC_LIBOBJ invocations to module description.
12710         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12711         invocation from here...
12712         * modules/wctrans (configure.ac): ... to here.
12713
12714 2011-05-22  Bruno Haible  <bruno@clisp.org>
12715
12716         wctomb: Move AC_LIBOBJ invocations to module description.
12717         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12718         invocations from here...
12719         * modules/wctomb (configure.ac): ... to here.
12720
12721 2011-05-22  Bruno Haible  <bruno@clisp.org>
12722
12723         wctob: Move AC_LIBOBJ invocations to module description.
12724         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12725         gl_PREREQ_WCTOB invocations from here...
12726         * modules/wctob (configure.ac): ... to here.
12727         (Depends-on): Update conditions.
12728
12729 2011-05-22  Bruno Haible  <bruno@clisp.org>
12730
12731         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12732         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12733         here...
12734         * modules/wcsxfrm (configure.ac): ... to here.
12735
12736 2011-05-22  Bruno Haible  <bruno@clisp.org>
12737
12738         wcstok: Move AC_LIBOBJ invocations to module description.
12739         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12740         * modules/wcstok (configure.ac): ... to here.
12741
12742 2011-05-22  Bruno Haible  <bruno@clisp.org>
12743
12744         wcsstr: Move AC_LIBOBJ invocations to module description.
12745         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12746         * modules/wcsstr (configure.ac): ... to here.
12747
12748 2011-05-22  Bruno Haible  <bruno@clisp.org>
12749
12750         wcsspn: Move AC_LIBOBJ invocations to module description.
12751         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12752         * modules/wcsspn (configure.ac): ... to here.
12753
12754 2011-05-22  Bruno Haible  <bruno@clisp.org>
12755
12756         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12757         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12758         gl_PREREQ_WCSRTOMBS invocations from here...
12759         * modules/wcsrtombs (configure.ac): ... to here.
12760
12761 2011-05-22  Bruno Haible  <bruno@clisp.org>
12762
12763         wcsrchr: Move AC_LIBOBJ invocations to module description.
12764         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12765         here...
12766         * modules/wcsrchr (configure.ac): ... to here.
12767
12768 2011-05-22  Bruno Haible  <bruno@clisp.org>
12769
12770         wcspbrk: Move AC_LIBOBJ invocations to module description.
12771         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12772         here...
12773         * modules/wcspbrk (configure.ac): ... to here.
12774
12775 2011-05-22  Bruno Haible  <bruno@clisp.org>
12776
12777         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12778         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12779         gl_PREREQ_WCSNRTOMBS invocations from here...
12780         * modules/wcsnrtombs (configure.ac): ... to here.
12781
12782 2011-05-22  Bruno Haible  <bruno@clisp.org>
12783
12784         wcsnlen: Move AC_LIBOBJ invocations to module description.
12785         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12786         here...
12787         * modules/wcsnlen (configure.ac): ... to here.
12788
12789 2011-05-22  Bruno Haible  <bruno@clisp.org>
12790
12791         wcsncpy: Move AC_LIBOBJ invocations to module description.
12792         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12793         here...
12794         * modules/wcsncpy (configure.ac): ... to here.
12795
12796 2011-05-22  Bruno Haible  <bruno@clisp.org>
12797
12798         wcsncmp: Move AC_LIBOBJ invocations to module description.
12799         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12800         here...
12801         * modules/wcsncmp (configure.ac): ... to here.
12802
12803 2011-05-22  Bruno Haible  <bruno@clisp.org>
12804
12805         wcsncat: Move AC_LIBOBJ invocations to module description.
12806         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12807         here...
12808         * modules/wcsncat (configure.ac): ... to here.
12809
12810 2011-05-22  Bruno Haible  <bruno@clisp.org>
12811
12812         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12813         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12814         from here...
12815         * modules/wcsncasecmp (configure.ac): ... to here.
12816
12817 2011-05-22  Bruno Haible  <bruno@clisp.org>
12818
12819         wcslen: Move AC_LIBOBJ invocations to module description.
12820         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12821         * modules/wcslen (configure.ac): ... to here.
12822
12823 2011-05-22  Bruno Haible  <bruno@clisp.org>
12824
12825         wcsdup: Move AC_LIBOBJ invocations to module description.
12826         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12827         * modules/wcsdup (configure.ac): ... to here.
12828
12829 2011-05-22  Bruno Haible  <bruno@clisp.org>
12830
12831         wcscspn: Move AC_LIBOBJ invocations to module description.
12832         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12833         here...
12834         * modules/wcscspn (configure.ac): ... to here.
12835
12836 2011-05-22  Bruno Haible  <bruno@clisp.org>
12837
12838         wcscpy: Move AC_LIBOBJ invocations to module description.
12839         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12840         * modules/wcscpy (configure.ac): ... to here.
12841
12842 2011-05-22  Bruno Haible  <bruno@clisp.org>
12843
12844         wcscoll: Move AC_LIBOBJ invocations to module description.
12845         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12846         here...
12847         * modules/wcscoll (configure.ac): ... to here.
12848
12849 2011-05-22  Bruno Haible  <bruno@clisp.org>
12850
12851         wcscmp: Move AC_LIBOBJ invocations to module description.
12852         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12853         * modules/wcscmp (configure.ac): ... to here.
12854
12855 2011-05-22  Bruno Haible  <bruno@clisp.org>
12856
12857         wcschr: Move AC_LIBOBJ invocations to module description.
12858         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12859         * modules/wcschr (configure.ac): ... to here.
12860
12861 2011-05-22  Bruno Haible  <bruno@clisp.org>
12862
12863         wcscat: Move AC_LIBOBJ invocations to module description.
12864         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12865         * modules/wcscat (configure.ac): ... to here.
12866
12867 2011-05-22  Bruno Haible  <bruno@clisp.org>
12868
12869         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12870         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12871         here...
12872         * modules/wcscasecmp (configure.ac): ... to here.
12873
12874 2011-05-22  Bruno Haible  <bruno@clisp.org>
12875
12876         wcrtomb: Move AC_LIBOBJ invocations to module description.
12877         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12878         invocations from here...
12879         * modules/wcrtomb (configure.ac): ... to here.
12880
12881 2011-05-22  Bruno Haible  <bruno@clisp.org>
12882
12883         wcpncpy: Move AC_LIBOBJ invocations to module description.
12884         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12885         here...
12886         * modules/wcpncpy (configure.ac): ... to here.
12887
12888 2011-05-22  Bruno Haible  <bruno@clisp.org>
12889
12890         wcpcpy: Move AC_LIBOBJ invocations to module description.
12891         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12892         * modules/wcpcpy (configure.ac): ... to here.
12893
12894 2011-05-22  Bruno Haible  <bruno@clisp.org>
12895
12896         waitpid: Move AC_LIBOBJ invocations to module description.
12897         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12898         invocation from here...
12899         * modules/waitpid (configure.ac): ... to here.
12900
12901 2011-05-22  Bruno Haible  <bruno@clisp.org>
12902
12903         utimensat: Move AC_LIBOBJ invocations to module description.
12904         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12905         here...
12906         * modules/utimensat (configure.ac): ... to here.
12907
12908 2011-05-22  Bruno Haible  <bruno@clisp.org>
12909
12910         usleep: Move AC_LIBOBJ invocations to module description.
12911         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12912         here...
12913         * modules/usleep (configure.ac): ... to here.
12914
12915 2011-05-22  Bruno Haible  <bruno@clisp.org>
12916
12917         unlockpt: Move AC_LIBOBJ invocations to module description.
12918         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12919         gl_PREREQ_UNLOCKPT invocations from here...
12920         * modules/unlockpt (configure.ac): ... to here.
12921
12922 2011-05-22  Bruno Haible  <bruno@clisp.org>
12923
12924         unlink: Respect rules for use of AC_LIBOBJ.
12925         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12926         * modules/unlink (configure.ac): ... to here.
12927
12928 2011-05-22  Bruno Haible  <bruno@clisp.org>
12929
12930         uname: Move AC_LIBOBJ invocations to module description.
12931         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12933         here...
12934         * modules/uname (configure.ac): ... to here.
12935
12936 2011-05-22  Bruno Haible  <bruno@clisp.org>
12937
12938         ttyname_r: Move AC_LIBOBJ invocations to module description.
12939         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12940         gl_PREREQ_TTYNAME_R invocations from here...
12941         * modules/ttyname_r (configure.ac): ... to here.
12942
12943 2011-05-22  Bruno Haible  <bruno@clisp.org>
12944
12945         tsearch: Move AC_LIBOBJ invocations to module description.
12946         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12947         invocations from here...
12948         * modules/tsearch (configure.ac): ... to here.
12949
12950 2011-05-22  Bruno Haible  <bruno@clisp.org>
12951
12952         towctrans: Move AC_LIBOBJ invocations to module description.
12953         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12954         AC_LIBOBJ invocation from here...
12955         * modules/towctrans (configure.ac): ... to here.
12956
12957 2011-05-22  Bruno Haible  <bruno@clisp.org>
12958
12959         tmpfile: Move AC_LIBOBJ invocations to module description.
12960         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12961         invocations from here...
12962         * modules/tmpfile (configure.ac): ... to here.
12963
12964 2011-05-22  Bruno Haible  <bruno@clisp.org>
12965
12966         times: Move AC_LIBOBJ invocations to module description.
12967         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12968         * modules/times (configure.ac): ... to here.
12969
12970 2011-05-22  Bruno Haible  <bruno@clisp.org>
12971
12972         time_r: Move AC_LIBOBJ invocations to module description.
12973         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12974         invocations from here...
12975         * modules/time_r (configure.ac): ... to here.
12976
12977 2011-05-22  Bruno Haible  <bruno@clisp.org>
12978
12979         timegm: Move AC_LIBOBJ invocations to module description.
12980         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12981         invocations from here...
12982         * modules/timegm (configure.ac): ... to here.
12983
12984 2011-05-22  Bruno Haible  <bruno@clisp.org>
12985
12986         tcgetsid: Move AC_LIBOBJ invocations to module description.
12987         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12988         and gl_PREREQ_TCGETSID invocations from here...
12989         * modules/tcgetsid (configure.ac): ... to here.
12990         (Depends-on): Update conditions.
12991
12992 2011-05-22  Bruno Haible  <bruno@clisp.org>
12993
12994         symlinkat: Move AC_LIBOBJ invocations to module description.
12995         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12996         here...
12997         * modules/symlinkat (configure.ac): ... to here.
12998
12999 2011-05-22  Bruno Haible  <bruno@clisp.org>
13000
13001         symlink: Move AC_LIBOBJ invocations to module description.
13002         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13003         here...
13004         * modules/symlink (configure.ac): ... to here.
13005
13006 2011-05-22  Bruno Haible  <bruno@clisp.org>
13007
13008         strverscmp: Move AC_LIBOBJ invocations to module description.
13009         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13011         from here...
13012         * modules/strverscmp (configure.ac): ... to here.
13013
13014 2011-05-22  Bruno Haible  <bruno@clisp.org>
13015
13016         strtok_r: Move AC_LIBOBJ invocations to module description.
13017         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13018         and gl_PREREQ_STRTOK_R invocations from here...
13019         * modules/strtok_r (configure.ac): ... to here.
13020         (Depends-on): Update conditions.
13021
13022 2011-05-22  Bruno Haible  <bruno@clisp.org>
13023
13024         strtoumax: Move AC_LIBOBJ invocations to module description.
13025         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13026         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13027         from here...
13028         * modules/strtoumax (configure.ac): ... to here.
13029
13030 2011-05-22  Bruno Haible  <bruno@clisp.org>
13031
13032         strtoimax: Move AC_LIBOBJ invocations to module description.
13033         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13035         from here...
13036         * modules/strtoimax (configure.ac): ... to here.
13037
13038 2011-05-22  Bruno Haible  <bruno@clisp.org>
13039
13040         strtoull: Move AC_LIBOBJ invocations to module description.
13041         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13043         from here...
13044         * modules/strtoull (configure.ac): ... to here.
13045
13046 2011-05-22  Bruno Haible  <bruno@clisp.org>
13047
13048         strtoll: Move AC_LIBOBJ invocations to module description.
13049         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13051         here...
13052         * modules/strtoll (configure.ac): ... to here.
13053
13054 2011-05-22  Bruno Haible  <bruno@clisp.org>
13055
13056         strtoul: Move AC_LIBOBJ invocations to module description.
13057         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13058         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13059         * modules/strtoul (configure.ac): ... to here.
13060
13061 2011-05-22  Bruno Haible  <bruno@clisp.org>
13062
13063         strtol: Move AC_LIBOBJ invocations to module description.
13064         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13065         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13066         * modules/strtol (configure.ac): ... to here.
13067
13068 2011-05-22  Bruno Haible  <bruno@clisp.org>
13069
13070         strtod: Move AC_LIBOBJ invocations to module description.
13071         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13072         invocations from here...
13073         * modules/strtod (configure.ac): ... to here.
13074
13075 2011-05-22  Bruno Haible  <bruno@clisp.org>
13076
13077         strstr*: Move AC_LIBOBJ invocations to module description.
13078         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13079         invocations from here...
13080         * modules/strstr-simple (configure.ac): ... to here.
13081         * modules/strstr (configure.ac): ... and here.
13082
13083 2011-05-22  Bruno Haible  <bruno@clisp.org>
13084
13085         strsignal: Move AC_LIBOBJ invocations to module description.
13086         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13087         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13088         * modules/strsignal (configure.ac): ... to here.
13089         (Depends-on): Update conditions.
13090
13091 2011-05-22  Bruno Haible  <bruno@clisp.org>
13092
13093         strsep: Move AC_LIBOBJ invocations to module description.
13094         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13096         here...
13097         * modules/strsep (configure.ac): ... to here.
13098
13099 2011-05-22  Bruno Haible  <bruno@clisp.org>
13100
13101         strptime: Move AC_LIBOBJ invocations to module description.
13102         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13103         gl_PREREQ_STRPTIME invocations from here...
13104         * modules/strptime (configure.ac): ... to here.
13105
13106 2011-05-22  Bruno Haible  <bruno@clisp.org>
13107
13108         strpbrk: Move AC_LIBOBJ invocations to module description.
13109         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13110         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13111         here...
13112         * modules/strpbrk (configure.ac): ... to here.
13113
13114 2011-05-22  Bruno Haible  <bruno@clisp.org>
13115
13116         strnlen: Move AC_LIBOBJ invocations to module description.
13117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13118         invocations from here...
13119         * modules/strnlen (configure.ac): ... to here.
13120
13121 2011-05-22  Bruno Haible  <bruno@clisp.org>
13122
13123         strndup: Move AC_LIBOBJ invocations to module description.
13124         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13125         invocations from here...
13126         * modules/strndup (configure.ac): ... to here.
13127         (Depends-on): Update conditions.
13128
13129 2011-05-22  Bruno Haible  <bruno@clisp.org>
13130
13131         strncat: Move AC_LIBOBJ invocations to module description.
13132         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13133         invocations from here...
13134         * modules/strncat (configure.ac): ... to here.
13135
13136 2011-05-22  Bruno Haible  <bruno@clisp.org>
13137
13138         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13139         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13140         invocations from here...
13141         * modules/strdup (configure.ac): ... to here.
13142         * modules/strdup-posix (configure.ac): ... and here.
13143
13144 2011-05-22  Bruno Haible  <bruno@clisp.org>
13145
13146         strcspn: Move AC_LIBOBJ invocations to module description.
13147         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13148         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13149         here...
13150         * modules/strcspn (configure.ac): ... to here.
13151
13152 2011-05-22  Bruno Haible  <bruno@clisp.org>
13153
13154         strchrnul: Move AC_LIBOBJ invocations to module description.
13155         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13156         gl_PREREQ_STRCHRNUL invocations from here...
13157         * modules/strchrnul (configure.ac): ... to here.
13158
13159 2011-05-22  Bruno Haible  <bruno@clisp.org>
13160
13161         strcasestr*: Move AC_LIBOBJ invocations to module description.
13162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13163         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13164         * modules/strcasestr-simple (configure.ac): ... to here.
13165         * modules/strcasestr (configure.ac): ... and here.
13166
13167 2011-05-22  Bruno Haible  <bruno@clisp.org>
13168
13169         strcase: Move AC_LIBOBJ invocations to module description.
13170         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13171         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13172         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13173         gl_PREREQ_STRNCASECMP invocations from here...
13174         * modules/strcase (configure.ac): ... to here.
13175
13176 2011-05-22  Bruno Haible  <bruno@clisp.org>
13177
13178         stpncpy: Move AC_LIBOBJ invocations to module description.
13179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13180         here...
13181         * modules/stpncpy (configure.ac): ... to here.
13182
13183 2011-05-22  Bruno Haible  <bruno@clisp.org>
13184
13185         stpcpy: Move AC_LIBOBJ invocations to module description.
13186         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13187         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13188         here...
13189         * modules/stpcpy (configure.ac): ... to here.
13190
13191 2011-05-21  Bruno Haible  <bruno@clisp.org>
13192
13193         stat: Move AC_LIBOBJ invocations to module description.
13194         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13195         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13196         here...
13197         * modules/stat (configure.ac): ... to here.
13198
13199 2011-05-21  Bruno Haible  <bruno@clisp.org>
13200
13201         sleep: Move AC_LIBOBJ invocations to module description.
13202         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13203         * modules/sleep (configure.ac): ... to here.
13204
13205 2011-05-21  Bruno Haible  <bruno@clisp.org>
13206
13207         signbit: Move AC_LIBOBJ invocations to module description.
13208         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13209         * modules/signbit (configure.ac): ... to here.
13210
13211 2011-05-21  Bruno Haible  <bruno@clisp.org>
13212
13213         sigprocmask: Move AC_LIBOBJ invocations to module description.
13214         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13215         gl_PREREQ_SIGPROMASK invocations from here...
13216         * modules/sigprocmask (configure.ac): ... to here.
13217
13218 2011-05-21  Bruno Haible  <bruno@clisp.org>
13219
13220         sigaction: Move AC_LIBOBJ invocations to module description.
13221         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13222         gl_PREREQ_SIGACTION invocations from here...
13223         * modules/sigaction (configure.ac): ... to here.
13224
13225 2011-05-21  Bruno Haible  <bruno@clisp.org>
13226
13227         sig2str: Move AC_LIBOBJ invocations to module description.
13228         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13230         here...
13231         * modules/sig2str (configure.ac): ... to here.
13232
13233 2011-05-21  Bruno Haible  <bruno@clisp.org>
13234
13235         setlocale: Move AC_LIBOBJ invocations to module description.
13236         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13237         gl_PREREQ_SETLOCALE invocations from here...
13238         * modules/setlocale (configure.ac): ... to here.
13239
13240 2011-05-21  Bruno Haible  <bruno@clisp.org>
13241
13242         unsetenv: Move AC_LIBOBJ invocations to module description.
13243         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13244         and gl_PREREQ_UNSETENV invocations from here...
13245         * modules/unsetenv (configure.ac): ... to here.
13246         (Depends-on): Update.
13247
13248 2011-05-21  Bruno Haible  <bruno@clisp.org>
13249
13250         setenv: Move AC_LIBOBJ invocations to module description.
13251         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13252         here...
13253         * modules/setenv (configure.ac): ... to here.
13254
13255 2011-05-21  Bruno Haible  <bruno@clisp.org>
13256
13257         selinux-h: Move AC_LIBOBJ invocations to module description.
13258         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13259         AC_LIBOBJ invocation from here...
13260         * modules/selinux-h (configure.ac): ... to here.
13261
13262 2011-05-21  Bruno Haible  <bruno@clisp.org>
13263
13264         select: Respect rules for use of AC_LIBOBJ.
13265         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13266         here...
13267         * modules/select (configure.ac): ... to here.
13268
13269 2011-05-21  Bruno Haible  <bruno@clisp.org>
13270
13271         scandir: Move AC_LIBOBJ invocations to module description.
13272         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13273         invocations from here...
13274         * modules/scandir (configure.ac): ... to here.
13275
13276 2011-05-21  Bruno Haible  <bruno@clisp.org>
13277
13278         rpmatch: Move AC_LIBOBJ invocations to module description.
13279         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13280         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13281         here...
13282         * modules/rpmatch (configure.ac): ... to here.
13283
13284 2011-05-21  Bruno Haible  <bruno@clisp.org>
13285
13286         rmdir: Respect rules for use of AC_LIBOBJ.
13287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13288         * modules/rmdir (configure.ac): ... to here.
13289
13290 2011-05-21  Bruno Haible  <bruno@clisp.org>
13291
13292         renameat: Move AC_LIBOBJ invocations to module description.
13293         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13294         here...
13295         * modules/renameat (configure.ac): ... to here.
13296
13297 2011-05-21  Bruno Haible  <bruno@clisp.org>
13298
13299         rename: Respect rules for use of AC_LIBOBJ.
13300         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13301         here...
13302         * modules/rename (configure.ac): ... to here.
13303
13304 2011-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         remove: Move AC_LIBOBJ invocations to module description.
13307         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13308         here...
13309         * modules/remove (configure.ac): ... to here.
13310
13311 2011-05-21  Bruno Haible  <bruno@clisp.org>
13312
13313         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13314         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13315         macro.
13316         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13317         * modules/relocatable-lib (configure.ac): ... to here.
13318         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13319         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13320
13321 2011-05-21  Bruno Haible  <bruno@clisp.org>
13322
13323         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13324         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13325         here...
13326         * modules/relocatable-prog (configure.ac): ... to here.
13327
13328 2011-05-21  Bruno Haible  <bruno@clisp.org>
13329
13330         regex: Move AC_LIBOBJ invocations to module description.
13331         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13332         invocations from here...
13333         * modules/regex (configure.ac): ... to here.
13334
13335 2011-05-21  Bruno Haible  <bruno@clisp.org>
13336
13337         realloc-*: Move AC_LIBOBJ invocations to module description.
13338         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13339         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13340         AC_LIBOBJ invocations from here...
13341         * modules/realloc-gnu (configure.ac): ... to here.
13342         * modules/realloc-posix (configure.ac): ... and here.
13343
13344 2011-05-21  Bruno Haible  <bruno@clisp.org>
13345
13346         readutmp: Move AC_LIBOBJ invocations to module description.
13347         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13348         * modules/readutmp (configure.ac): ... to here.
13349
13350 2011-05-21  Bruno Haible  <bruno@clisp.org>
13351
13352         readlinkat: Move AC_LIBOBJ invocations to module description.
13353         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13354         here...
13355         * modules/readlinkat (configure.ac): ... to here.
13356
13357 2011-05-21  Bruno Haible  <bruno@clisp.org>
13358
13359         readlink: Move AC_LIBOBJ invocations to module description.
13360         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13361         gl_PREREQ_READLINK invocations from here...
13362         * modules/readlink (configure.ac): ... to here.
13363
13364 2011-05-21  Bruno Haible  <bruno@clisp.org>
13365
13366         readline: Move AC_LIBOBJ invocations to module description.
13367         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13368         gl_PREREQ_READLINE invocations from here...
13369         * modules/readline (configure.ac): ... to here.
13370
13371 2011-05-21  Bruno Haible  <bruno@clisp.org>
13372
13373         read: Move AC_LIBOBJ invocations to module description.
13374         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13375         * modules/read (configure.ac): ... to here.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         rawmemchr: Move AC_LIBOBJ invocations to module description.
13380         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13382         from here...
13383         * modules/rawmemchr (configure.ac): ... to here.
13384
13385 2011-05-21  Bruno Haible  <bruno@clisp.org>
13386
13387         random_r: Move AC_LIBOBJ invocations to module description.
13388         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13389         gl_PREREQ_RANDOM_R invocations from here...
13390         * modules/random_r (configure.ac): ... to here.
13391
13392 2011-05-21  Bruno Haible  <bruno@clisp.org>
13393
13394         pwrite: Move AC_LIBOBJ invocations to module description.
13395         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13396         * modules/pwrite (configure.ac): ... to here.
13397
13398 2011-05-21  Bruno Haible  <bruno@clisp.org>
13399
13400         putenv: Move AC_LIBOBJ invocations to module description.
13401         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13402         * modules/putenv (configure.ac): ... to here.
13403
13404 2011-05-21  Bruno Haible  <bruno@clisp.org>
13405
13406         login_tty: Move AC_LIBOBJ invocations to module description.
13407         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13408         * modules/login_tty (configure.ac): ... to here.
13409
13410 2011-05-21  Bruno Haible  <bruno@clisp.org>
13411
13412         openpty: Move AC_LIBOBJ invocations to module description.
13413         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13414         * modules/openpty (configure.ac): ... to here.
13415
13416 2011-05-21  Bruno Haible  <bruno@clisp.org>
13417
13418         forkpty: Move AC_LIBOBJ invocations to module description.
13419         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13420         * modules/forkpty (configure.ac): ... to here.
13421
13422 2011-05-21  Bruno Haible  <bruno@clisp.org>
13423
13424         ptsname: Move AC_LIBOBJ invocations to module description.
13425         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13426         invocations from here...
13427         * modules/ptsname (configure.ac): ... to here.
13428
13429 2011-05-21  Bruno Haible  <bruno@clisp.org>
13430
13431         pread: Move AC_LIBOBJ invocations to module description.
13432         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13433         * modules/pread (configure.ac): ... to here.
13434
13435 2011-05-21  Bruno Haible  <bruno@clisp.org>
13436
13437         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13438         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13439         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13440         * modules/posix_spawn (configure.ac): ... to here.
13441         * modules/posix_spawnp (configure.ac): ... and here.
13442
13443 2011-05-21  Bruno Haible  <bruno@clisp.org>
13444
13445         popen: Move AC_LIBOBJ invocations to module description.
13446         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13447         invocations from here...
13448         * modules/popen (configure.ac): ... to here.
13449
13450 2011-05-21  Bruno Haible  <bruno@clisp.org>
13451
13452         poll: Move AC_LIBOBJ invocations to module description.
13453         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13454         invocations from here...
13455         * modules/poll (configure.ac): ... to here.
13456
13457 2011-05-21  Bruno Haible  <bruno@clisp.org>
13458
13459         pipe-posix: Move AC_LIBOBJ invocations to module description.
13460         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13461         * modules/pipe-posix (configure.ac): ... to here.
13462
13463 2011-05-21  Bruno Haible  <bruno@clisp.org>
13464
13465         openat: Respect rules for use of AC_LIBOBJ.
13466         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13467         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13468         * modules/openat (configure.ac): ... to here.
13469
13470 2011-05-21  Bruno Haible  <bruno@clisp.org>
13471
13472         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13473         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13474         invocation from here...
13475         * modules/obstack-printf (configure.ac): ... to here.
13476         * modules/obstack-printf-posix (configure.ac): ... and here.
13477
13478 2011-05-21  Bruno Haible  <bruno@clisp.org>
13479
13480         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13481         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13482         from here...
13483         * modules/nl_langinfo (configure.ac): ... to here.
13484
13485 2011-05-21  Bruno Haible  <bruno@clisp.org>
13486
13487         nanosleep: Move AC_LIBOBJ invocations to module description.
13488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13489         gl_PREREQ_NANOSLEEP invocations from here...
13490         * modules/nanosleep (configure.ac): ... to here.
13491
13492 2011-05-21  Bruno Haible  <bruno@clisp.org>
13493
13494         mountlist: Move AC_LIBOBJ invocations to module description.
13495         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13496         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13497         * modules/mountlist (configure.ac): ... to here.
13498
13499 2011-05-21  Bruno Haible  <bruno@clisp.org>
13500
13501         mktime: Respect rules for use of AC_LIBOBJ.
13502         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13503         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13504         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13505         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13506         * modules/mktime (configure.ac): ... to here.
13507         * modules/mktime-internal (configure.ac): ... and here.
13508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13509
13510 2011-05-21  Bruno Haible  <bruno@clisp.org>
13511
13512         mkstemps: Move AC_LIBOBJ invocations to module description.
13513         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13514         here...
13515         * modules/mkstemps (configure.ac): ... to here.
13516
13517 2011-05-21  Bruno Haible  <bruno@clisp.org>
13518
13519         mkstemp: Move AC_LIBOBJ invocations to module description.
13520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13521         gl_PREREQ_MKSTEMP invocations from here...
13522         * modules/mkstemp (configure.ac): ... to here.
13523
13524 2011-05-21  Bruno Haible  <bruno@clisp.org>
13525
13526         mkostemps: Move AC_LIBOBJ invocations to module description.
13527         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13528         here...
13529         * modules/mkostemps (configure.ac): ... to here.
13530
13531 2011-05-21  Bruno Haible  <bruno@clisp.org>
13532
13533         mkostemp: Move AC_LIBOBJ invocations to module description.
13534         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13535         gl_PREREQ_MKOSTEMP invocations from here...
13536         * modules/mkostemp (configure.ac): ... to here.
13537
13538 2011-05-21  Bruno Haible  <bruno@clisp.org>
13539
13540         mknod: Move AC_LIBOBJ invocations to module description.
13541         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13542         * modules/mknod (configure.ac): ... to here.
13543
13544 2011-05-21  Bruno Haible  <bruno@clisp.org>
13545
13546         mkfifoat: Move AC_LIBOBJ invocations to module description.
13547         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13548         here...
13549         * modules/mkfifoat (configure.ac): ... to here.
13550
13551 2011-05-21  Bruno Haible  <bruno@clisp.org>
13552
13553         mkfifo: Respect rules for use of AC_LIBOBJ.
13554         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13555         here...
13556         * modules/mkfifo (configure.ac): ... to here.
13557
13558 2011-05-21  Bruno Haible  <bruno@clisp.org>
13559
13560         mkdtemp: Move AC_LIBOBJ invocations to module description.
13561         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13562         invocations from here...
13563         * modules/mkdtemp (configure.ac): ... to here.
13564
13565 2011-05-21  Bruno Haible  <bruno@clisp.org>
13566
13567         mkdir: Move AC_LIBOBJ invocations to module description.
13568         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13569         * modules/mkdir (configure.ac): ... to here.
13570
13571 2011-05-21  Bruno Haible  <bruno@clisp.org>
13572
13573         memset: Move AC_LIBOBJ invocations to module description.
13574         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13576         here...
13577         * modules/memset (configure.ac): ... to here.
13578
13579 2011-05-21  Bruno Haible  <bruno@clisp.org>
13580
13581         memrchr: Move AC_LIBOBJ invocations to module description.
13582         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13584         here...
13585         * modules/memrchr (configure.ac): ... to here.
13586
13587 2011-05-21  Bruno Haible  <bruno@clisp.org>
13588
13589         mempcpy: Move AC_LIBOBJ invocations to module description.
13590         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13592         here...
13593         * modules/mempcpy (configure.ac): ... to here.
13594
13595 2011-05-21  Bruno Haible  <bruno@clisp.org>
13596
13597         memmove: Move AC_LIBOBJ invocations to module description.
13598         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13600         here...
13601         * modules/memmove (configure.ac): ... to here.
13602
13603 2011-05-21  Bruno Haible  <bruno@clisp.org>
13604
13605         memmem*: Move AC_LIBOBJ invocations to module description.
13606         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13607         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13608         here...
13609         (gl_FUNC_MEMMEM): ... and here...
13610         * modules/memmem-simple (configure.ac): ... to here.
13611         * modules/memmem (configure.ac): ... and here.
13612
13613 2011-05-21  Bruno Haible  <bruno@clisp.org>
13614
13615         memcpy: Move AC_LIBOBJ invocations to module description.
13616         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13618         here...
13619         * modules/memcpy (configure.ac): ... to here.
13620
13621 2011-05-21  Bruno Haible  <bruno@clisp.org>
13622
13623         memcmp: Simplify autoconf macro.
13624         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13625         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13626         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13627
13628 2011-05-21  Bruno Haible  <bruno@clisp.org>
13629
13630         memcmp: Move AC_LIBOBJ invocations to module description.
13631         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13632         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13633         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13634         * modules/memcmp (configure.ac): ... to here.
13635         (Depends-on): Update conditions.
13636
13637 2011-05-21  Bruno Haible  <bruno@clisp.org>
13638
13639         memchr: Respect rules for use of AC_LIBOBJ.
13640         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13641         invocations from here...
13642         * modules/memchr (configure.ac): ... to here.
13643
13644 2011-05-21  Bruno Haible  <bruno@clisp.org>
13645
13646         mbtowc: Move AC_LIBOBJ invocations to module description.
13647         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13648         invocations from here...
13649         * modules/mbtowc (configure.ac): ... to here.
13650
13651 2011-05-21  Bruno Haible  <bruno@clisp.org>
13652
13653         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13654         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13655         gl_PREREQ_MBSRTOWCS invocations from here...
13656         * modules/mbsrtowcs (configure.ac): ... to here.
13657
13658 2011-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13661         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13662         gl_PREREQ_MBSNRTOWCS invocations from here...
13663         * modules/mbsnrtowcs (configure.ac): ... to here.
13664
13665 2011-05-21  Bruno Haible  <bruno@clisp.org>
13666
13667         mbsinit: Move AC_LIBOBJ invocations to module description.
13668         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13669         invocations from here...
13670         * modules/mbsinit (configure.ac): ... to here.
13671
13672 2011-05-21  Bruno Haible  <bruno@clisp.org>
13673
13674         mbrlen: Move AC_LIBOBJ invocations to module description.
13675         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13676         invocations from here...
13677         * modules/mbrlen (configure.ac): ... to here.
13678
13679 2011-05-21  Bruno Haible  <bruno@clisp.org>
13680
13681         mbrtowc: Respect rules for use of AC_LIBOBJ.
13682         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13683         invocations from here...
13684         * modules/mbrtowc (configure.ac): ... to here.
13685
13686 2011-05-21  Bruno Haible  <bruno@clisp.org>
13687
13688         malloc-*: Move AC_LIBOBJ invocations to module description.
13689         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13690         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13691         AC_LIBOBJ invocations from here...
13692         * modules/malloc-gnu (configure.ac): ... to here.
13693         * modules/malloc-posix (configure.ac): ... and here.
13694
13695 2011-05-21  Bruno Haible  <bruno@clisp.org>
13696
13697         lstat, openat: Respect rules for use of AC_LIBOBJ.
13698         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13699         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13700         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13701         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13702         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13703         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13704         here.
13705         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13706
13707 2011-05-21  Bruno Haible  <bruno@clisp.org>
13708
13709         lseek: Move AC_LIBOBJ invocations to module description.
13710         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13711         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13712         * modules/lseek (configure.ac): ... to here.
13713
13714 2011-05-21  Bruno Haible  <bruno@clisp.org>
13715
13716         linkat: Move AC_LIBOBJ invocations to module description.
13717         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13718         here...
13719         * modules/linkat (configure.ac): ... to here.
13720
13721 2011-05-21  Bruno Haible  <bruno@clisp.org>
13722
13723         link: Respect rules for use of AC_LIBOBJ.
13724         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13725         * modules/link (configure.ac): ... to here.
13726
13727 2011-05-21  Bruno Haible  <bruno@clisp.org>
13728
13729         lchown: Move AC_LIBOBJ invocations to module description.
13730         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13731         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13732         * modules/lchown (configure.ac): ... to here.
13733
13734 2011-05-21  Bruno Haible  <bruno@clisp.org>
13735
13736         iswctype: Move AC_LIBOBJ invocations to module description.
13737         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13738         here...
13739         * modules/iswctype (configure.ac): ... to here.
13740
13741 2011-05-21  Bruno Haible  <bruno@clisp.org>
13742
13743         iswblank: Move AC_LIBOBJ invocations to module description.
13744         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13745         here...
13746         * modules/iswblank (configure.ac): ... to here.
13747
13748 2011-05-21  Bruno Haible  <bruno@clisp.org>
13749
13750         atanl: Move AC_LIBOBJ invocations to module description.
13751         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13752         * modules/atanl (configure.ac): ... to here.
13753
13754 2011-05-21  Bruno Haible  <bruno@clisp.org>
13755
13756         acosl: Move AC_LIBOBJ invocations to module description.
13757         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13758         * modules/acosl (configure.ac): ... to here.
13759
13760 2011-05-21  Bruno Haible  <bruno@clisp.org>
13761
13762         asinl: Respect rules for use of AC_LIBOBJ.
13763         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13764         * modules/asinl (configure.ac): ... to here.
13765
13766 2011-05-21  Bruno Haible  <bruno@clisp.org>
13767
13768         tanl: Move AC_LIBOBJ invocations to module description.
13769         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13770         * modules/tanl (configure.ac): ... to here.
13771
13772 2011-05-21  Bruno Haible  <bruno@clisp.org>
13773
13774         cosl: Move AC_LIBOBJ invocations to module description.
13775         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13776         * modules/cosl (configure.ac): ... to here.
13777
13778 2011-05-21  Bruno Haible  <bruno@clisp.org>
13779
13780         sinl: Move AC_LIBOBJ invocations to module description.
13781         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13782         * modules/sinl (configure.ac): ... to here.
13783
13784 2011-05-21  Bruno Haible  <bruno@clisp.org>
13785
13786         logl: Move AC_LIBOBJ invocations to module description.
13787         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13788         * modules/logl (configure.ac): ... to here.
13789
13790 2011-05-21  Bruno Haible  <bruno@clisp.org>
13791
13792         expl: Move AC_LIBOBJ invocations to module description.
13793         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13794         * modules/expl (configure.ac): ... to here.
13795
13796 2011-05-21  Bruno Haible  <bruno@clisp.org>
13797
13798         roundl: Move AC_LIBOBJ invocations to module description.
13799         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13800         * modules/roundl (configure.ac): ... to here.
13801
13802 2011-05-21  Bruno Haible  <bruno@clisp.org>
13803
13804         round: Move AC_LIBOBJ invocations to module description.
13805         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13806         * modules/round (configure.ac): ... to here.
13807
13808 2011-05-21  Bruno Haible  <bruno@clisp.org>
13809
13810         roundf: Move AC_LIBOBJ invocations to module description.
13811         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13812         * modules/roundf (configure.ac): ... to here.
13813
13814 2011-05-21  Bruno Haible  <bruno@clisp.org>
13815
13816         truncl: Move AC_LIBOBJ invocations to module description.
13817         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13818         * modules/truncl (configure.ac): ... to here.
13819
13820 2011-05-21  Bruno Haible  <bruno@clisp.org>
13821
13822         trunc: Move AC_LIBOBJ invocations to module description.
13823         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13824         * modules/trunc (configure.ac): ... to here.
13825
13826 2011-05-21  Bruno Haible  <bruno@clisp.org>
13827
13828         truncf: Move AC_LIBOBJ invocations to module description.
13829         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13830         * modules/truncf (configure.ac): ... to here.
13831
13832 2011-05-21  Bruno Haible  <bruno@clisp.org>
13833
13834         ceill: Move AC_LIBOBJ invocations to module description.
13835         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13836         * modules/ceill (configure.ac): ... to here.
13837
13838 2011-05-21  Bruno Haible  <bruno@clisp.org>
13839
13840         ceil: Move AC_LIBOBJ invocations to module description.
13841         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13842         * modules/ceil (configure.ac): ... to here.
13843
13844 2011-05-21  Bruno Haible  <bruno@clisp.org>
13845
13846         ceilf: Move AC_LIBOBJ invocations to module description.
13847         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13848         * modules/ceilf (configure.ac): ... to here.
13849
13850 2011-05-21  Bruno Haible  <bruno@clisp.org>
13851
13852         floorl: Respect rules for use of AC_LIBOBJ.
13853         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13854         * modules/floorl (configure.ac): ... to here.
13855
13856 2011-05-21  Bruno Haible  <bruno@clisp.org>
13857
13858         floor: Respect rules for use of AC_LIBOBJ.
13859         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13860         * modules/floor (configure.ac): ... to here.
13861
13862 2011-05-21  Bruno Haible  <bruno@clisp.org>
13863
13864         floorf: Move AC_LIBOBJ invocations to module description.
13865         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13866         * modules/floorf (configure.ac): ... to here.
13867
13868 2011-05-20  Bruno Haible  <bruno@clisp.org>
13869
13870         sqrtl: Respect rules for use of AC_LIBOBJ.
13871         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13872         * modules/sqrtl (configure.ac): ... to here.
13873
13874 2011-05-20  Bruno Haible  <bruno@clisp.org>
13875
13876         ldexpl: Respect rules for use of AC_LIBOBJ.
13877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13878         * modules/ldexpl (configure.ac): ... to here.
13879
13880 2011-05-20  Bruno Haible  <bruno@clisp.org>
13881
13882         frexpl*: Respect rules for use of AC_LIBOBJ.
13883         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13884         invocation from here...
13885         * modules/frexpl (configure.ac): ... to here.
13886         * modules/frexpl-nolibm (configure.ac): ... and here.
13887
13888 2011-05-20  Bruno Haible  <bruno@clisp.org>
13889
13890         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13891         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13892         invocation from here...
13893         * modules/frexp (configure.ac): ... to here.
13894         * modules/frexp-nolibm (configure.ac): ... and here.
13895
13896 2011-05-20  Bruno Haible  <bruno@clisp.org>
13897
13898         isnan: Respect rules for use of AC_LIBOBJ.
13899         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13900         invocations here.
13901         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13902         REPLACE_ISNAN.
13903         * modules/isnand (configure.ac): Likewise.
13904         * modules/isnanl (configure.ac): Likewise.
13905
13906 2011-05-20  Bruno Haible  <bruno@clisp.org>
13907
13908         isnanl*: Respect rules for use of AC_LIBOBJ.
13909         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13910         invocation from here...
13911         * modules/isnanl (configure.ac): ... to here.
13912         * modules/isnanl-nolibm (configure.ac): ... and here.
13913
13914 2011-05-20  Bruno Haible  <bruno@clisp.org>
13915
13916         isnand*: Move AC_LIBOBJ invocations to module description.
13917         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13918         invocation from here...
13919         * modules/isnand (configure.ac): ... to here.
13920         * modules/isnand-nolibm (configure.ac): ... and here.
13921
13922 2011-05-20  Bruno Haible  <bruno@clisp.org>
13923
13924         isnanf*: Move AC_LIBOBJ invocations to module description.
13925         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13926         invocation from here...
13927         * modules/isnanf (configure.ac): ... to here.
13928         * modules/isnanf-nolibm (configure.ac): ... and here.
13929
13930 2011-05-20  Bruno Haible  <bruno@clisp.org>
13931
13932         isnan*: Separate the AC_LIBOBJ invocations.
13933         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13934         AC_LIBOBJ invocation.
13935         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13936         here.
13937         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13938         AC_LIBOBJ invocation.
13939         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13940         here.
13941         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13942         AC_LIBOBJ invocation.
13943         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13944         here.
13945         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13946
13947 2011-05-08  Bruno Haible  <bruno@clisp.org>
13948
13949         isinf: Move AC_LIBOBJ invocations to module description.
13950         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13951         * modules/isinf (configure.ac): ... to here.
13952
13953 2011-05-08  Bruno Haible  <bruno@clisp.org>
13954
13955         isfinite: Move AC_LIBOBJ invocations to module description.
13956         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13957         * modules/isfinite (configure.ac): ... to here.
13958
13959 2011-05-08  Bruno Haible  <bruno@clisp.org>
13960
13961         isblank: Move AC_LIBOBJ invocations to module description.
13962         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13963         here...
13964         * modules/isblank (configure.ac): ... to here.
13965
13966 2011-05-08  Bruno Haible  <bruno@clisp.org>
13967
13968         isapipe: Move AC_LIBOBJ invocations to module description.
13969         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13970         gl_PREREQ_ISAPIPE invocations from here...
13971         * modules/isapipe (configure.ac): ... to here.
13972         (Depends-on): Update condition.
13973
13974 2011-05-08  Bruno Haible  <bruno@clisp.org>
13975
13976         ioctl: Move AC_LIBOBJ invocations to module description.
13977         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13978         invocations from here...
13979         * modules/ioctl (configure.ac): ... to here.
13980         (Depends-on): Update condition.
13981
13982 2011-05-08  Bruno Haible  <bruno@clisp.org>
13983
13984         imaxdiv: Move AC_LIBOBJ invocations to module description.
13985         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13986         invocations from here...
13987         * modules/imaxdiv (configure.ac): ... to here.
13988
13989 2011-05-08  Bruno Haible  <bruno@clisp.org>
13990
13991         imaxabs: Move AC_LIBOBJ invocations to module description.
13992         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13993         invocations from here...
13994         * modules/imaxabs (configure.ac): ... to here.
13995
13996 2011-05-08  Bruno Haible  <bruno@clisp.org>
13997
13998         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14000         AC_LIBOBJ invocations from here...
14001         * modules/getaddrinfo (configure.ac): ... to here.
14002         (Depends-on): Add conditions.
14003
14004 2011-05-08  Bruno Haible  <bruno@clisp.org>
14005
14006         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14007         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14008         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14009         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14010         (gl_PREREQ_INET_PTON): ... from here.
14011         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14012         gl_PREREQ_INET_PTON here.
14013         (Depends-on): Update condition.
14014
14015 2011-05-08  Bruno Haible  <bruno@clisp.org>
14016
14017         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14018         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14019         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14020         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14021         (gl_PREREQ_INET_NTOP): ... from here.
14022         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14023         gl_PREREQ_INET_NTOP here.
14024         (Depends-on): Update condition.
14025
14026 2011-05-08  Bruno Haible  <bruno@clisp.org>
14027
14028         iconv_open: Move AC_LIBOBJ invocations to module description.
14029         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14030         AC_LIBOBJ invocations from here...
14031         * modules/iconv_open (configure.ac): ... to here.
14032
14033 2011-05-08  Bruno Haible  <bruno@clisp.org>
14034
14035         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14036         If module 'iconv_open' is among the main modules and module
14037         'iconv_open-utf' is among the tests dependencies, then
14038         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14039         return the special iconv_t values. Therefore iconv() and iconv_close()
14040         must support these special iconv_t values, already in lib, not only in
14041         tests.
14042         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14043         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14044         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14045         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14046         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14047         (Depends-on): Add the dependencies of iconv_open-utf.
14048         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14049         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14050         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14051
14052 2011-05-08  Bruno Haible  <bruno@clisp.org>
14053
14054         group-member: Move AC_LIBOBJ invocations to module description.
14055         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14056         gl_PREREQ_GROUP_MEMBER invocations from here...
14057         * modules/group-member (configure.ac): ... to here.
14058
14059 2011-05-08  Bruno Haible  <bruno@clisp.org>
14060
14061         grantpt: Move AC_LIBOBJ invocations to module description.
14062         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14063         invocations from here...
14064         * modules/grantpt (configure.ac): ... to here.
14065
14066 2011-05-08  Bruno Haible  <bruno@clisp.org>
14067
14068         glob: Move AC_LIBOBJ invocations to module description.
14069         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14070         from here...
14071         * modules/glob (configure.ac): ... to here.
14072
14073 2011-05-08  Bruno Haible  <bruno@clisp.org>
14074
14075         getusershell: Move AC_LIBOBJ invocations to module description.
14076         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14077         Move AC_LIBOBJ invocation from here...
14078         * modules/getusershell (configure.ac): ... to here.
14079         (Depends-on): Update condition.
14080
14081 2011-05-08  Bruno Haible  <bruno@clisp.org>
14082
14083         gettimeofday: Move AC_LIBOBJ invocations to module description.
14084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14085         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14086         gl_PREREQ_GETTIMEOFDAY invocations from here...
14087         * modules/gettimeofday (configure.ac): ... to here.
14088
14089 2011-05-08  Bruno Haible  <bruno@clisp.org>
14090
14091         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14092         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14093         just gl_FUNC_TZSET.
14094         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14095         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14097         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14098
14099 2011-05-08  Bruno Haible  <bruno@clisp.org>
14100
14101         getsubopt: Move AC_LIBOBJ invocations to module description.
14102         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14103         gl_PREREQ_GETSUBOPT invocations from here...
14104         * modules/getsubopt (configure.ac): ... to here.
14105
14106 2011-05-08  Bruno Haible  <bruno@clisp.org>
14107
14108         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14109         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14110         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14111         * modules/getpass-gnu (configure.ac): ... to here.
14112
14113 2011-05-08  Bruno Haible  <bruno@clisp.org>
14114
14115         getpass: Move AC_LIBOBJ invocations to module description.
14116         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14117         gl_PREREQ_GETPASS invocations from here...
14118         * modules/getpass (configure.ac): ... to here.
14119
14120 2011-05-08  Bruno Haible  <bruno@clisp.org>
14121
14122         getpagesize: Move AC_LIBOBJ invocations to module description.
14123         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14124         from here...
14125         * modules/getpagesize (configure.ac): ... to here.
14126
14127 2011-05-08  Bruno Haible  <bruno@clisp.org>
14128
14129         getopt: Move AC_LIBOBJ invocations to module description.
14130         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14131         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14132         invocations from here...
14133         * modules/getopt-gnu (configure.ac): ... to here.
14134         * modules/getopt-posix (configure.ac): ... and here.
14135         (Depends-on): Update condition.
14136
14137 2011-05-08  Bruno Haible  <bruno@clisp.org>
14138
14139         getopt, argp: Respect rules for use of AC_LIBOBJ.
14140         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14141         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14142         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14143         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14144
14145 2011-05-08  Bruno Haible  <bruno@clisp.org>
14146
14147         getlogin_r: Move AC_LIBOBJ invocations to module description.
14148         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14149         gl_PREREQ_GETLOGIN_R invocations from here...
14150         * modules/getlogin_r (configure.ac): ... to here.
14151
14152 2011-05-08  Bruno Haible  <bruno@clisp.org>
14153
14154         getlogin: Move AC_LIBOBJ invocations to module description.
14155         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14156         here...
14157         * modules/getlogin (configure.ac): ... to here.
14158
14159 2011-05-08  Bruno Haible  <bruno@clisp.org>
14160
14161         getloadavg: Move AC_LIBOBJ invocations to module description.
14162         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14163         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14164         * modules/getloadavg (configure.ac): ... to here.
14165
14166 2011-05-08  Bruno Haible  <bruno@clisp.org>
14167
14168         gethrxtime: Move AC_LIBOBJ invocations to module description.
14169         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14170         LIB_GETHRXTIME from here...
14171         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14172         invocations from here...
14173         * modules/gethrxtime (configure.ac): ... to here.
14174
14175 2011-05-08  Bruno Haible  <bruno@clisp.org>
14176
14177         gethostname: Move AC_LIBOBJ invocations to module description.
14178         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14179         gl_PREREQ_GETHOSTNAME invocations from here...
14180         * modules/gethostname (configure.ac): ... to here.
14181
14182 2011-05-08  Bruno Haible  <bruno@clisp.org>
14183
14184         getgroups: Move AC_LIBOBJ invocations to module description.
14185         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14186         here...
14187         * modules/getgroups (configure.ac): ... to here.
14188
14189 2011-05-08  Bruno Haible  <bruno@clisp.org>
14190
14191         getdtablesize: Move AC_LIBOBJ invocations to module description.
14192         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14193         invocation from here...
14194         * modules/getdtablesize (configure.ac): ... to here.
14195
14196 2011-05-08  Bruno Haible  <bruno@clisp.org>
14197
14198         getdomainname: Move AC_LIBOBJ invocations to module description.
14199         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14200         gl_PREREQ_GETDOMAINNAME invocations from here...
14201         * modules/getdomainname (configure.ac): ... to here.
14202
14203 2011-05-08  Bruno Haible  <bruno@clisp.org>
14204
14205         getline: Move AC_LIBOBJ invocations to module description.
14206         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14207         invocations from here...
14208         * modules/getline (configure.ac): ... to here.
14209
14210 2011-05-08  Bruno Haible  <bruno@clisp.org>
14211
14212         getline: Simplify.
14213         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14214         It's already handled through the module dependency.
14215
14216 2011-05-08  Bruno Haible  <bruno@clisp.org>
14217
14218         getdelim: Move AC_LIBOBJ invocations to module description.
14219         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14220         and gl_PREREQ_GETDELIM invocations from here...
14221         * modules/getdelim (configure.ac): ... to here.
14222         (Depends-on): Fix condition.
14223
14224 2011-05-08  Bruno Haible  <bruno@clisp.org>
14225
14226         getcwd: Move AC_LIBOBJ invocations to module description.
14227         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14228         invocations from here...
14229         * modules/getcwd (configure.ac): ... to here.
14230
14231 2011-05-08  Bruno Haible  <bruno@clisp.org>
14232
14233         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14234         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14235         here...
14236         * modules/getcwd-lgpl (configure.ac): ... to here.
14237
14238 2011-05-07  Bruno Haible  <bruno@clisp.org>
14239
14240         crypto/gc: Move AC_LIBOBJ invocations to module description.
14241         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14242         * modules/crypto/gc (configure.ac): ... to here.
14243
14244 2011-05-07  Bruno Haible  <bruno@clisp.org>
14245
14246         fwriting: Move AC_LIBOBJ invocations to module description.
14247         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14248         here...
14249         * modules/fwriting (configure.ac): ... to here.
14250
14251 2011-05-07  Bruno Haible  <bruno@clisp.org>
14252
14253         fwritable: Move AC_LIBOBJ invocations to module description.
14254         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14255         here...
14256         * modules/fwritable (configure.ac): ... to here.
14257
14258 2011-05-07  Bruno Haible  <bruno@clisp.org>
14259
14260         futimens: Move AC_LIBOBJ invocations to module description.
14261         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14262         here...
14263         * modules/futimens (configure.ac): ... to here.
14264
14265 2011-05-07  Bruno Haible  <bruno@clisp.org>
14266
14267         ftruncate: Move AC_LIBOBJ invocations to module description.
14268         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14269         gl_PREREQ_FTRUNCATE invocations from here...
14270         * modules/ftruncate (configure.ac): ... to here.
14271
14272 2011-05-07  Bruno Haible  <bruno@clisp.org>
14273
14274         fsync: Move AC_LIBOBJ invocations to module description.
14275         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14276         invocations from here...
14277         * modules/fsync (configure.ac): ... to here.
14278
14279 2011-05-07  Bruno Haible  <bruno@clisp.org>
14280
14281         fsusage: Move AC_LIBOBJ invocations to module description.
14282         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14283         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14284         * modules/fsusage (configure.ac): ... to here.
14285
14286 2011-05-07  Bruno Haible  <bruno@clisp.org>
14287
14288         freopen: Move AC_LIBOBJ invocations to module description.
14289         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14290         invocations from here...
14291         * modules/freopen (configure.ac): ... to here.
14292
14293 2011-05-07  Bruno Haible  <bruno@clisp.org>
14294
14295         free: Move AC_LIBOBJ invocations to module description.
14296         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14297         invocations from here...
14298         * modules/free (configure.ac): ... to here.
14299
14300 2011-05-07  Bruno Haible  <bruno@clisp.org>
14301
14302         freadable: Move AC_LIBOBJ invocations to module description.
14303         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14304         here...
14305         * modules/freadable (configure.ac): ... to here.
14306
14307 2011-05-07  Bruno Haible  <bruno@clisp.org>
14308
14309         fpurge: Move AC_LIBOBJ invocations to module description.
14310         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14311         invocations from here...
14312         * modules/fpurge (configure.ac): ... to here.
14313
14314 2011-05-07  Bruno Haible  <bruno@clisp.org>
14315
14316         fpending: Move AC_LIBOBJ invocations to module description.
14317         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14318         gl_FUNC_FPENDING.
14319         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14320         invocations from here...
14321         * modules/fpending (configure.ac): ... to here.
14322
14323 2011-05-07  Bruno Haible  <bruno@clisp.org>
14324
14325         fopen: Move AC_LIBOBJ invocations to module description.
14326         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14327         invocations from here...
14328         * modules/fopen (configure.ac): ... to here.
14329
14330 2011-05-07  Bruno Haible  <bruno@clisp.org>
14331
14332         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14333         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14334         gl_FUNC_FNMATCH_POSIX.
14335         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14336         invocations from here...
14337         * modules/fnmatch (configure.ac): ... to here.
14338         * modules/fnmatch-gnu (configure.ac): ... and here.
14339
14340 2011-05-07  Bruno Haible  <bruno@clisp.org>
14341
14342         flock: Move AC_LIBOBJ invocations to module description.
14343         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14344         invocations from here...
14345         * modules/flock (configure.ac): ... to here.
14346
14347 2011-05-07  Bruno Haible  <bruno@clisp.org>
14348
14349         fileblocks: Move AC_LIBOBJ invocations to module description.
14350         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14351         gl_PREREQ_FILEBLOCKS invocations from here...
14352         * modules/fileblocks (configure.ac): ... to here.
14353
14354 2011-05-06  Bruno Haible  <bruno@clisp.org>
14355
14356         fflush: Move AC_LIBOBJ invocations to module description.
14357         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14358         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14359         invocations from here...
14360         * modules/fflush (configure.ac): ... to here.
14361
14362 2011-05-06  Bruno Haible  <bruno@clisp.org>
14363
14364         fdopendir: Move AC_LIBOBJ invocations to module description.
14365         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14366         here...
14367         * modules/fdopendir (configure.ac): ... to here.
14368         (Depends-on): Improve conditions.
14369
14370 2011-05-06  Bruno Haible  <bruno@clisp.org>
14371
14372         _Exit: Move AC_LIBOBJ invocations to module description.
14373         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14374         invocations from here...
14375         * modules/_Exit (configure.ac): ... to here.
14376
14377 2011-05-21  Bruno Haible  <bruno@clisp.org>
14378
14379         euidaccess: Respect rules for use of AC_LIBOBJ.
14380         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14382         from here...
14383         * modules/euidaccess (configure.ac): ... to here.
14384
14385 2011-05-06  Bruno Haible  <bruno@clisp.org>
14386
14387         error: Move AC_LIBOBJ invocations to module description.
14388         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14389         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14390         invocations from here...
14391         * modules/error (configure.ac): ... to here.
14392
14393 2011-05-06  Bruno Haible  <bruno@clisp.org>
14394
14395         duplocale: Move AC_LIBOBJ invocations to module description.
14396         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14397         gl_PREREQ_DUPLOCALE invocations from here...
14398         * modules/duplocale (configure.ac): ... to here.
14399
14400 2011-05-05  Bruno Haible  <bruno@clisp.org>
14401
14402         dirfd: Move AC_LIBOBJ invocations to module description.
14403         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14404         gl_FUNC_DIRFD.
14405         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14406         here...
14407         * modules/dirfd (configure.ac): ... to here.
14408         (Depends-on): Fix condition.
14409
14410 2011-05-05  Bruno Haible  <bruno@clisp.org>
14411
14412         chown: Respect rules for use of AC_LIBOBJ.
14413         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14414         * modules/chown (configure.ac): ... to here.
14415
14416 2011-05-05  Bruno Haible  <bruno@clisp.org>
14417
14418         chdir-long: Move AC_LIBOBJ invocations to module description.
14419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14420         gl_PREREQ_CHDIR_LONG invocations from here...
14421         * modules/chdir-long (configure.ac): ... to here.
14422
14423 2011-05-05  Bruno Haible  <bruno@clisp.org>
14424
14425         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14426         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14427         from here...
14428         * modules/canonicalize-lgpl (configure.ac): ... to here.
14429
14430 2011-05-05  Bruno Haible  <bruno@clisp.org>
14431
14432         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14433         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14434         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14435         REPLACE_CALLOC.
14436         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14437         * modules/calloc-gnu (configure.ac): Likewise.
14438
14439 2011-05-05  Bruno Haible  <bruno@clisp.org>
14440
14441         btowc: Move AC_LIBOBJ invocations to module description.
14442         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14443         invocations from here...
14444         * modules/btowc (configure.ac): ... to here.
14445
14446 2011-05-21  Bruno Haible  <bruno@clisp.org>
14447
14448         atexit: Move AC_LIBOBJ invocations to module description.
14449         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14450         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14451         here...
14452         * modules/atexit (configure.ac): ... to here.
14453
14454 2011-05-05  Bruno Haible  <bruno@clisp.org>
14455
14456         atoll: Move AC_LIBOBJ invocations to module description.
14457         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14458         invocations from here...
14459         * modules/atoll (configure.ac): ... to here.
14460
14461 2011-05-05  Bruno Haible  <bruno@clisp.org>
14462
14463         argz: Move AC_LIBOBJ invocations to module description.
14464         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14465         * modules/argz (configure.ac): ... to here.
14466
14467 2011-05-05  Bruno Haible  <bruno@clisp.org>
14468
14469         alphasort: Move AC_LIBOBJ invocations to module description.
14470         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14471         gl_PREREQ_ALPHASORT invocations from here...
14472         * modules/alphasort (configure.ac): ... to here.
14473
14474 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14475
14476         verify: new macro verify_expr; verify_true deprecated
14477         * NEWS: Mention this.
14478         * doc/verify.texi (Compile-time Assertions): Document this.
14479         * lib/verify.h (verify_true): Deprecate.
14480         (verify_expr): New macro.
14481         * tests/test-verify.c (function): Test verify_expr.
14482
14483 2011-06-14  Jim Meyering  <meyering@redhat.com>
14484
14485         init.sh: give more portable redirection-related advice in a comment
14486         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14487         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14488         for lots of discussion.  Stefano Lattarini suggested the solution
14489         of putting "9>&2" after the command.  Reported by Bruno Haible.
14490
14491 2011-06-13  Bruno Haible  <bruno@clisp.org>
14492
14493         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14494         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14495         'none'.
14496
14497 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14498
14499         ftoastr: use strtof only if HAVE_STRTOF
14500         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14502         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14503         * modules/ftoastr (configure.ac): Check for strtof.
14504
14505 2011-06-13  Bruno Haible  <bruno@clisp.org>
14506
14507         gnulib-tool: Addendum to 2011-06-08 commit.
14508         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14509         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14510
14511 2011-06-13  Bruno Haible  <bruno@clisp.org>
14512
14513         fseeko: Provide a non-inline replacement of fseek().
14514         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14515         * modules/fseeko (Depends-on): Add fseek.
14516         * modules/fseek (License): Change to LGPLv2+.
14517
14518 2011-06-13  Bruno Haible  <bruno@clisp.org>
14519
14520         ftello: Provide a non-inline replacement of ftell().
14521         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14522         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14523         not have ftello() (such as on mingw).
14524         * modules/ftello (Depends-on): Add ftell.
14525         * modules/ftell (License): Change to LGPLv2+.
14526
14527 2011-05-07  Bruno Haible  <bruno@clisp.org>
14528
14529         ftell: Move AC_LIBOBJ invocations to module description.
14530         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14531         * modules/ftell (configure.ac): ... to here.
14532
14533 2011-05-07  Bruno Haible  <bruno@clisp.org>
14534
14535         ftello: Respect rules for use of AC_LIBOBJ.
14536         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14537         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14538         here...
14539         * modules/ftello (configure.ac): ... to here.
14540
14541 2011-05-07  Bruno Haible  <bruno@clisp.org>
14542
14543         fseeko: Simplify.
14544         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14545         (gl_FUNC_FSEEKO): Inline it here.
14546
14547 2011-05-07  Bruno Haible  <bruno@clisp.org>
14548
14549         fseek: Move AC_LIBOBJ invocations to module description.
14550         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14551         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14552         * modules/fseek (configure.ac): ... to here.
14553
14554 2011-05-07  Bruno Haible  <bruno@clisp.org>
14555
14556         fseek: Respect rules for use of AC_LIBOBJ.
14557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14558         here...
14559         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14560
14561 2011-05-07  Bruno Haible  <bruno@clisp.org>
14562
14563         fseeko: Respect rules for use of AC_LIBOBJ.
14564         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14565         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14566         here...
14567         * modules/fseeko (configure.ac): ... to here.
14568
14569 2011-06-13  Bruno Haible  <bruno@clisp.org>
14570
14571         gnulib-tool: Allow comments in the 'Depends-on' section.
14572         * doc/gnulib.texi (Module description): Mention comment syntax in the
14573         Depends-on section.
14574         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14575
14576 2011-06-13  Bruno Haible  <bruno@clisp.org>
14577
14578         file-set.h: guard __attibute__ use, now that it's not always defined
14579         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14580         versions that support it.  This fixes a coreutils build failure with
14581         the vendor cc on HP-UX 11.31.
14582
14583 2011-06-12  Bruno Haible  <bruno@clisp.org>
14584
14585         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14586         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14587         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14588         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14589         (acl, aclsort): New declarations.
14590         (aclv_nontrivial): New declaration.
14591         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14592         (file_has_acl): Read also the second kind of HP-UX ACLs.
14593         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14594         kind of HP-UX ACLs if the first kind fails.
14595         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14596         second kind of HP-UX ACLs.
14597         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14598         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14599         agree.
14600         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14601         hpuxjfs.
14602         Handle hpuxjfs.
14603         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14604         hpuxjfs.
14605         Handle hpuxjfs.
14606         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14607         (func_test_same_acls): Use both lsacl and getacl.
14608         Handle hpuxjfs.
14609         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14610         (func_test_same_acls): Use both lsacl and getacl.
14611         Handle hpuxjfs.
14612
14613 2011-06-12  Bruno Haible  <bruno@clisp.org>
14614
14615         acl: Complete the 2010-08-10 fix.
14616         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14617         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14618         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14619         explicitly.
14620         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14621         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14622
14623 2011-06-12  Bruno Haible  <bruno@clisp.org>
14624
14625         spawn-pipe tests: Comments.
14626         * tests/test-spawn-pipe-child.c (main): Update comment.
14627         Reported by James Youngman <jay@gnu.org>.
14628
14629 2011-06-11  James Youngman  <jay@gnu.org>
14630
14631         New module 'stat-size'.
14632         * modules/stat-size: New module.  Provides macros for accessing
14633         file size information in instances of struct stat.  Depends on the
14634         fileblocks module because it calls st_blocks.
14635         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14636         * doc/gnulib.texi: Include stat-size.texi.
14637         * doc/stat-size.texi: Documentation for this module.
14638         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14639         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14640         AC_STRUCT_ST_BLOCKS.
14641
14642 2011-06-09  Bruno Haible  <bruno@clisp.org>
14643
14644         thread: Support pthreads-win32.
14645         * lib/glthread/thread.h (gl_thread_self): Define differently on
14646         pthreads-win32.
14647         (gl_null_thread): New declaration.
14648         (gl_thread_self_pointer): New macro.
14649         * lib/glthread/thread.c (gl_null_thread): New constant.
14650         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14651         gl_thread_self.
14652         * tests/test-tls.c: Likewise.
14653         Suggested by Paul Eggert. Reported by Eric Blake.
14654
14655 2011-06-09  Bruno Haible  <bruno@clisp.org>
14656
14657         thread: Fix confusion between NULL and 0.
14658         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14659         Reported by Paul Eggert.
14660
14661 2011-06-09  Bruno Haible  <bruno@clisp.org>
14662
14663         spawn-pipe tests: Avoid test failure on HP-UX 11.
14664         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14665         is closed.
14666
14667 2011-06-09  Bruno Haible  <bruno@clisp.org>
14668
14669         acl tests: Fix compilation error on HP-UX 11.
14670         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14671
14672 2011-06-09  Bruno Haible  <bruno@clisp.org>
14673
14674         rmdir: Avoid test failure on HP-UX 10.20.
14675         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14676         EEXIST.
14677
14678 2011-06-08  Eric Blake  <eblake@redhat.com>
14679
14680         perror: fix test on mingw
14681         * modules/perror-tests (Depends-on): Add dup2.
14682
14683         strerror_r-posix: fix on MacOS
14684         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14685         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14686         logic bug.
14687         * lib/strerror_r.c (strerror_r): Fix the bug.
14688         * lib/strerror.c (strerror): Likewise.
14689         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14690         problem.
14691         * doc/posix-functions/strerror.texi (strerror): Likewise.
14692         * doc/posix-functions/perror.texi (perror): Likewise.
14693         * tests/test-strerror.c (main): Enhance test.
14694         * tests/test-strerror_r.c (main): Likewise.
14695
14696 2011-06-08  Bruno Haible  <bruno@clisp.org>
14697
14698         gnulib-tool: Better isolation between different gnulib-tool invocations.
14699         * gnulib-tool: New option --witness-c-macro.
14700         (witness_c_macro): New variable.
14701         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14702         AM_CPPFLAGS define it as a C macro.
14703         (func_emit_tests_Makefile_am): Likewise.
14704         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14705         read it from there.
14706         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14707         m4_define, not AC_DEFUN.
14708         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14709         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14710         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14711         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14712         s|...|...|, to substitute the values of the GNULIB_* module indicator
14713         variables.
14714         * modules/dirent (Makefile.am): Likewise.
14715         * modules/fcntl-h (Makefile.am): Likewise.
14716         * modules/iconv-h (Makefile.am): Likewise.
14717         * modules/langinfo (Makefile.am): Likewise.
14718         * modules/locale (Makefile.am): Likewise.
14719         * modules/math (Makefile.am): Likewise.
14720         * modules/netdb (Makefile.am): Likewise.
14721         * modules/poll-h (Makefile.am): Likewise.
14722         * modules/pty (Makefile.am): Likewise.
14723         * modules/search (Makefile.am): Likewise.
14724         * modules/signal (Makefile.am): Likewise.
14725         * modules/spawn (Makefile.am): Likewise.
14726         * modules/stdio (Makefile.am): Likewise.
14727         * modules/stdlib (Makefile.am): Likewise.
14728         * modules/string (Makefile.am): Likewise.
14729         * modules/sys_ioctl (Makefile.am): Likewise.
14730         * modules/sys_select (Makefile.am): Likewise.
14731         * modules/sys_socket (Makefile.am): Likewise.
14732         * modules/sys_stat (Makefile.am): Likewise.
14733         * modules/sys_times (Makefile.am): Likewise.
14734         * modules/sys_utsname (Makefile.am): Likewise.
14735         * modules/sys_wait (Makefile.am): Likewise.
14736         * modules/termios (Makefile.am): Likewise.
14737         * modules/time (Makefile.am): Likewise.
14738         * modules/unistd (Makefile.am): Likewise.
14739         * modules/wchar (Makefile.am): Likewise.
14740
14741 2011-06-08  Eric Blake  <eblake@redhat.com>
14742
14743         strerror: simplify replacement
14744         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14745         * modules/strerror (configure.ac): No prereqs needed here...
14746         * modules/strerror-override (configure.ac): ...but this needs it.
14747         (Files): Add file for needed prereq macro.
14748
14749 2011-06-08  Bruno Haible  <bruno@clisp.org>
14750
14751         strerror_r-posix: Tweaks.
14752         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14753         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14754         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14755         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14756         (gl_FUNC_STRERROR_R): ... to here.
14757         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14758
14759 2011-06-07  Eric Blake  <eblake@redhat.com>
14760
14761         perror: document fixed bugs
14762         * doc/posix-functions/perror.texi (perror): Document recent
14763         patches.
14764
14765 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14766
14767         stat-time: get_stat_birthtime failure is better-defined
14768         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14769         return a timestamp whose tv_sec and tv_nsec values are both -1.
14770         Previously, the spec said only that the tv_nsec value was negative.
14771         This upward-compatible change simplifies GNU tar a bit.
14772
14773 2011-06-07  Eric Blake  <eblake@redhat.com>
14774
14775         strerror_r-posix: work around cygwin 1.7.9
14776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14777         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14778         bug without replacing strerror_r.
14779         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14780         strerror_r is buggy, but without requiring strerror_r compilation.
14781         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14782
14783         test-perror: relax test to ignore cygwin bug
14784         * tests/test-perror2.c (main): Relax test on requiring detection
14785         of stream errors, and use unbuffered stream.
14786         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14787         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14788         * doc/posix-functions/fputc.texi (fputc): Likewise.
14789         * doc/posix-functions/fputs.texi (fputs): Likewise.
14790         * doc/posix-functions/fputws.texi (fputws): Likewise.
14791         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14792         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14793         * doc/posix-functions/getopt.texi (getopt): Likewise.
14794         * doc/posix-functions/perror.texi (perror): Likewise.
14795         * doc/posix-functions/printf.texi (printf): Likewise.
14796         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14797         * doc/posix-functions/psignal.texi (psignal): Likewise.
14798         * doc/posix-functions/putc.texi (putc): Likewise.
14799         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14800         Likewise.
14801         * doc/posix-functions/putchar.texi (putchar): Likewise.
14802         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14803         Likewise.
14804         * doc/posix-functions/puts.texi (puts): Likewise.
14805         * doc/posix-functions/putwc.texi (putwc): Likewise.
14806         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14807         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14808         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14809         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14810         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14811         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14812         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14813         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14814
14815 2011-05-22  Bruno Haible  <bruno@clisp.org>
14816
14817         strerror: Move AC_LIBOBJ invocations to module description.
14818         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14819         gl_PREREQ_STRERROR invocations from here...
14820         * modules/strerror (configure.ac): ... to here.
14821
14822 2011-05-21  Bruno Haible  <bruno@clisp.org>
14823
14824         perror: Use common idiom.
14825         * modules/perror (configure.ac): Reorder statements.
14826
14827 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14828
14829         tests: fix usage message in 'mktempd_'
14830         * tests/init.sh (mktempd_): In the usage message, use literal
14831         'mktempd_', not '$ME' (which is even undefined), as the name of
14832         the subroutine.
14833
14834 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14835
14836         tests init: new function 'fatal_', for hard errors
14837         Before this patch, the only way offered by tests/init.sh to
14838         properly signal a hard error was the `framework_failure_'
14839         function.  But the error message issued by that function,
14840         as its name would suggest, refers to a set-up failure in the
14841         testsuite, while hard errors can obviously also be due to
14842         other reasons.  The best way to fix this inconsistency is to
14843         introduce a new function with a more general error message.
14844         * tests/init.sh (fatal_): New function.
14845
14846 2011-06-06  Eric Blake  <eblake@redhat.com>
14847
14848         canonicalize-lgpl: use common idiom
14849         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14850         over newer POSIX -Rf.
14851         Reported by Bruno Haible.
14852
14853         canonicalize-lgpl: work around AIX realpath bug
14854         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14855         * doc/posix-functions/realpath.texi (realpath): Document it.
14856         Reported by Bruno Haible.
14857
14858         strerror: work around FreeBSD bug
14859         * lib/strerror.c (strerror): Special case 0.
14860         Reported by Bruno Haible.
14861
14862         strerror-override: avoid bloating errno module
14863         * modules/errno (Files, configure.ac): Move replacement strings...
14864         * modules/strerror-override: ...to new module.
14865         * modules/strerror (Depends-on): Add strerror-override.
14866         * modules/strerror_r-posix (Depends-on): Likewise.
14867         * MODULES.html.sh: Document new module.
14868         Reported by Bruno Haible.
14869
14870 2011-06-06  Bruno Haible  <bruno@clisp.org>
14871
14872         spawn-pipe tests: Rename program.
14873         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14874         * tests/test-spawn-pipe-child.c: Update comment.
14875         * tests/test-spawn-pipe.sh: Update.
14876         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14877
14878         spawn-pipe tests: Link the child program only against libc.
14879         * tests/test-spawn-pipe-child.c: New file, extracted from
14880         tests/test-spawn-pipe.c.
14881         (main): Expect only one argument.
14882         (is_open): New function, copied from tests/test-pipe.c.
14883         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14884         (child_main): Remove function.
14885         (test_pipe): Pass only one argument to the child program.
14886         (main): Remove child process code. Expect the child program's name as
14887         first argument.
14888         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14889         argument.
14890         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14891         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14892         test-spawn-pipe-child against no libraries.
14893
14894 2011-06-06  Bruno Haible  <bruno@clisp.org>
14895
14896         careadlinkat: Avoid mismatch between ssize_t and int.
14897         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14898         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14899
14900 2011-06-06  Jim Meyering  <meyering@redhat.com>
14901
14902         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14903         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14904         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14905
14906 2011-06-05  Bruno Haible  <bruno@clisp.org>
14907
14908         ansi-c++-opt: Interoperability with libtool.
14909         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14910         set the variable to "no", not to ":".
14911         * NEWS: Mention the change.
14912
14913 2011-06-05  Bruno Haible  <bruno@clisp.org>
14914
14915         acl: Fix test failure on AIX 7.
14916         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14917         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14918
14919 2011-06-05  Bruno Haible  <bruno@clisp.org>
14920
14921         pipe-filter-ii: Fix test failure on AIX and IRIX.
14922         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14923         with EAGAIN, retry with a smaller buffer size.
14924
14925 2011-06-05  Bruno Haible  <bruno@clisp.org>
14926
14927         localename: Fix link dependencies.
14928         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14929         * modules/localename-tests (Makefile.am): Link test-localename with
14930         $(LIBTHREAD).
14931
14932 2011-06-05  Bruno Haible  <bruno@clisp.org>
14933
14934         error: Avoid gcc warning.
14935         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14936
14937 2011-06-05  Bruno Haible  <bruno@clisp.org>
14938
14939         unsetenv: Avoid gcc warning.
14940         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14941
14942 2011-06-05  Bruno Haible  <bruno@clisp.org>
14943
14944         setenv: Avoid gcc warning.
14945         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14946
14947 2011-06-05  Bruno Haible  <bruno@clisp.org>
14948
14949         sys_select: Ensure memset is declared also on AIX 7.
14950         * lib/sys_select.in.h: Include <string.h> also on AIX.
14951         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14952         self-contained also on AIX 7.1.
14953
14954 2011-06-04  Jim Meyering  <meyering@redhat.com>
14955
14956         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14957         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14958         function name, "error".
14959         (_gl_translatable_diag_func_re): New configurable variable.
14960
14961 2011-06-04  Bruno Haible  <bruno@clisp.org>
14962
14963         getopt: Avoid gcc warning.
14964         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14965
14966 2011-06-04  Bruno Haible  <bruno@clisp.org>
14967
14968         strerror_r: Fix comments.
14969         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14970         commit.
14971
14972 2011-06-04  Bruno Haible  <bruno@clisp.org>
14973
14974         perror: Fix compilation error.
14975         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14976         Undefine fprintf, not sprintf.
14977         * modules/perror (Depends-on): Remove intprops, verify.
14978
14979 2011-06-04  Bruno Haible  <bruno@clisp.org>
14980
14981         setlocale: Enable replacement on Cygwin 1.5.
14982         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14983         Cygwin 1.5.x.
14984         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14985         LC_CTYPE category also exists on Cygwin 1.5.x.
14986
14987 2011-06-04  Bruno Haible  <bruno@clisp.org>
14988
14989         strerror-override: Don't disable symbol renamings.
14990         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14991         * lib/strerror-override.c: Include config.h.
14992         (strerror_override): Don't undefine.
14993
14994 2011-06-03  Bruno Haible  <bruno@clisp.org>
14995
14996         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14997         * lib/localename.h: Update copyright header.
14998         * lib/localename.c: Likewise.
14999         * lib/relocatable.h: Likewise.
15000         * lib/relocatable.c: Likewise.
15001
15002 2011-06-02  Bruno Haible  <bruno@clisp.org>
15003
15004         doc: Fix a module name.
15005         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15006
15007 2011-06-02  Bruno Haible  <bruno@clisp.org>
15008
15009         pipe2: Remove dependency on 'nonblocking' module.
15010         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15011         O_NONBLOCK is defined by gnulib.
15012         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15013         is zero.
15014         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15015         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15016         defined by gnulib.
15017         (get_nonblocking_flag): New function.
15018         (main): Test O_NONBLOCK flag only if it is nonzero.
15019         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15020
15021 2011-06-03  Jim Meyering  <meyering@redhat.com>
15022
15023         maint: three new prohibit-header-without-use rules
15024         Prohibit use of cloexec.h, posixver.h, same.h without use.
15025         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15026         (sc_prohibit_posixver_without_use): Likewise.
15027         (sc_prohibit_same_without_use): Likewise.
15028
15029 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15030
15031         allocator: 'die' routine is now given requested size
15032         * lib/allocator.h (struct allocator.die): New size arg.
15033         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15034         If the actual problem is an ssize_t limitation, not a size_t or
15035         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15036
15037 2011-06-01  Eric Blake  <eblake@redhat.com>
15038
15039         strerror: drop strerror_r dependency
15040         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15041         * lib/strerror-override.c (strerror_override): ...to new file.
15042         * lib/strerror-override.h: Add prototype.
15043         * lib/strerror-impl.h: Delete.
15044         * lib/strerror.c (strerror): New implementation.
15045         * modules/errno (Files): Add new files.
15046         (configure.ac): Compile new file as appropriate.
15047         * modules/strerror (Files): Drop unused file.
15048         (Depends-on): Drop strerror_r-posix.
15049         * MODULES.html.sh: Document strerror_r-posix.
15050         Requested by Sam Steingold.
15051
15052         perror: call strerror_r directly
15053         * modules/perror (Files): Drop strerror-impl.h.
15054         * lib/perror.c (perror): Use our own stack buffer, rather than
15055         calling a wrapper that uses static storage.
15056         * doc/posix-functions/perror.texi (perror): Document a limitation
15057         of our replacement.
15058
15059         strerror_r: fix includes for FreeBSD
15060         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15061         since we use abort on some platforms.
15062         Reported by Matthias Bolte.
15063
15064 2011-05-31  Bruno Haible  <bruno@clisp.org>
15065
15066         Fix link errors in tests: openat-die uses gettext-h.
15067         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15068         against $(LIBINTL).
15069         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15070         against $(LIBINTL).
15071         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15072         $(LIBINTL).
15073         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15074         against $(LIBINTL).
15075         * modules/linkat-tests (Makefile.am): Link test-linkat against
15076         $(LIBINTL).
15077         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15078         $(LIBINTL).
15079         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15080         against $(LIBINTL).
15081         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15082         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15083         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15084         $(LIBINTL).
15085         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15086         $(LIBINTL).
15087         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15088         $(LIBINTL).
15089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15090
15091 2011-05-31  Bruno Haible  <bruno@clisp.org>
15092
15093         Fix link errors in tests: wait-process uses gettext-h.
15094         * modules/nonblocking-pipe-tests (Makefile.am): Set
15095         test_nonblocking_pipe_main_LDADD.
15096         * modules/nonblocking-socket-tests (Makefile.am): Link
15097         test-nonblocking-socket-main against $(LIBINTL).
15098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15099
15100 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15101
15102         assert-h: work around 'verify' incompatibility
15103         * lib/verify.h: Use @...@ directives, not ifdef.
15104         * modules/assert-h (assert.h): Implement the directives.
15105         (assert.h): Substitute the symbol-prefix more consistently.
15106
15107 2011-05-29  Jim Meyering  <meyering@redhat.com>
15108
15109         trim: remove three superfluous assignments
15110         * lib/trim.c (trim2): Remove three superfluous assignments
15111         and correct brace positioning.
15112
15113 2011-05-29  Bruno Haible  <bruno@clisp.org>
15114
15115         wctype-h: Avoid namespace pollution on Solaris 2.6.
15116         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15117         identifiers.
15118         * doc/posix-headers/wctype.texi: Mention the problem.
15119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15120
15121 2011-05-28  Jim Meyering  <meyering@redhat.com>
15122
15123         parse-datetime.y: accommodate -Wstrict-overflow
15124         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15125         placate -Wstrict-overflow.
15126
15127         trim: avoid a warning from -O2 -Wstrict-overflow
15128         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15129
15130 2011-05-29  Bruno Haible  <bruno@clisp.org>
15131
15132         gnulib-tool: Fix bug in yesterday's commit.
15133         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15134         twice.
15135
15136 2011-05-29  Bruno Haible  <bruno@clisp.org>
15137
15138         Allow multiple gnulib generated include files to be combined.
15139         * gnulib-tool (func_compute_include_guard_prefix): New function.
15140         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15141         ${gl_include_guard_prefix} references.
15142         (func_import, func_create_testdir): Invoke
15143         func_compute_include_guard_prefix.
15144         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15145         * lib/ctype.in.h: Likewise.
15146         * lib/dirent.in.h: Likewise.
15147         * lib/errno.in.h: Likewise.
15148         * lib/fcntl.in.h: Likewise.
15149         * lib/float.in.h: Likewise.
15150         * lib/getopt.in.h: Likewise.
15151         * lib/iconv.in.h: Likewise.
15152         * lib/langinfo.in.h: Likewise.
15153         * lib/locale.in.h: Likewise.
15154         * lib/math.in.h: Likewise.
15155         * lib/netdb.in.h: Likewise.
15156         * lib/netinet_in.in.h: Likewise.
15157         * lib/poll.in.h: Likewise.
15158         * lib/pthread.in.h: Likewise.
15159         * lib/pty.in.h: Likewise.
15160         * lib/sched.in.h: Likewise.
15161         * lib/se-selinux.in.h: Likewise.
15162         * lib/search.in.h: Likewise.
15163         * lib/signal.in.h: Likewise.
15164         * lib/spawn.in.h: Likewise.
15165         * lib/stdarg.in.h: Likewise.
15166         * lib/stddef.in.h: Likewise.
15167         * lib/stdint.in.h: Likewise.
15168         * lib/stdio.in.h: Likewise.
15169         * lib/stdlib.in.h: Likewise.
15170         * lib/string.in.h: Likewise.
15171         * lib/strings.in.h: Likewise.
15172         * lib/sys_file.in.h: Likewise.
15173         * lib/sys_ioctl.in.h: Likewise.
15174         * lib/sys_select.in.h: Likewise.
15175         * lib/sys_socket.in.h: Likewise.
15176         * lib/sys_stat.in.h: Likewise.
15177         * lib/sys_time.in.h: Likewise.
15178         * lib/sys_times.in.h: Likewise.
15179         * lib/sys_uio.in.h: Likewise.
15180         * lib/sys_utsname.in.h: Likewise.
15181         * lib/sys_wait.in.h: Likewise.
15182         * lib/sysexits.in.h: Likewise.
15183         * lib/termios.in.h: Likewise.
15184         * lib/time.in.h: Likewise.
15185         * lib/unistd.in.h: Likewise.
15186         * lib/wchar.in.h: Likewise.
15187         * lib/wctype.in.h: Likewise.
15188         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15189         * modules/ctype (Makefile.am): Likewise.
15190         * modules/dirent (Makefile.am): Likewise.
15191         * modules/errno (Makefile.am): Likewise.
15192         * modules/fcntl-h (Makefile.am): Likewise.
15193         * modules/float (Makefile.am): Likewise.
15194         * modules/getopt-posix (Makefile.am): Likewise.
15195         * modules/iconv-h (Makefile.am): Likewise.
15196         * modules/langinfo (Makefile.am): Likewise.
15197         * modules/locale (Makefile.am): Likewise.
15198         * modules/math (Makefile.am): Likewise.
15199         * modules/netdb (Makefile.am): Likewise.
15200         * modules/netinet_in (Makefile.am): Likewise.
15201         * modules/poll-h (Makefile.am): Likewise.
15202         * modules/pthread (Makefile.am): Likewise.
15203         * modules/pty (Makefile.am): Likewise.
15204         * modules/sched (Makefile.am): Likewise.
15205         * modules/search (Makefile.am): Likewise.
15206         * modules/selinux-h (Makefile.am): Likewise.
15207         * modules/signal (Makefile.am): Likewise.
15208         * modules/spawn (Makefile.am): Likewise.
15209         * modules/stdarg (Makefile.am): Likewise.
15210         * modules/stddef (Makefile.am): Likewise.
15211         * modules/stdint (Makefile.am): Likewise.
15212         * modules/stdio (Makefile.am): Likewise.
15213         * modules/stdlib (Makefile.am): Likewise.
15214         * modules/string (Makefile.am): Likewise.
15215         * modules/strings (Makefile.am): Likewise.
15216         * modules/sys_file (Makefile.am): Likewise.
15217         * modules/sys_ioctl (Makefile.am): Likewise.
15218         * modules/sys_select (Makefile.am): Likewise.
15219         * modules/sys_socket (Makefile.am): Likewise.
15220         * modules/sys_stat (Makefile.am): Likewise.
15221         * modules/sys_time (Makefile.am): Likewise.
15222         * modules/sys_times (Makefile.am): Likewise.
15223         * modules/sys_uio (Makefile.am): Likewise.
15224         * modules/sys_utsname (Makefile.am): Likewise.
15225         * modules/sys_wait (Makefile.am): Likewise.
15226         * modules/sysexits (Makefile.am): Likewise.
15227         * modules/termios (Makefile.am): Likewise.
15228         * modules/time (Makefile.am): Likewise.
15229         * modules/unistd (Makefile.am): Likewise.
15230         * modules/wchar (Makefile.am): Likewise.
15231         * modules/wctype-h (Makefile.am): Likewise.
15232         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15233
15234 2011-05-29  Bruno Haible  <bruno@clisp.org>
15235
15236         assert-h: Allow multiple gnulib generated replacements to coexist.
15237         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15238
15239 2011-05-29  Bruno Haible  <bruno@clisp.org>
15240
15241         argp: Allow coexistence with strerror_r-posix module.
15242         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15243         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15244         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15245         not the glibc signature.
15246
15247 2011-05-28  Bruno Haible  <bruno@clisp.org>
15248
15249         gnulib-tool: Alternative structure of testdirs, similar to --import.
15250         * gnulib-tool: New option --single-configure.
15251         (func_usage): Document it.
15252         (single_configure): New variable.
15253         (func_modules_transitive_closure_separately,
15254         func_modules_transitive_closure_separately,
15255         func_determine_use_libtests, func_modules_add_dummy_separately,
15256         func_modules_to_filelist_separately): New functions, extracted from
15257         func_import.
15258         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15259         (func_import): Use the new functions.
15260         (func_create_testdir): Set final_modules. Handle $single_configure =
15261         true case.
15262
15263 2011-05-28  Bruno Haible  <bruno@clisp.org>
15264
15265         getloadavg: Remove an unreliable safety check.
15266         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15267         getloadavg.c is in place.
15268         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15269         Reported by Sam Steingold <sds@gnu.org>.
15270
15271 2011-05-28  Bruno Haible  <bruno@clisp.org>
15272
15273         doc: Cleanup yet another file produced by texinfo.tex.
15274         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15275
15276 2011-05-28  Bruno Haible  <bruno@clisp.org>
15277
15278         Finish the conditional dependencies mechanism.
15279         * gnulib-tool: New option --no-conditional-dependencies.
15280         (func_usage): Document it. Don't mark --conditional-dependencies as
15281         experimental.
15282         (cond_dependencies): The possible values can now be true, false, empty.
15283         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15284         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15285         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15286
15287 2011-05-28  Bruno Haible  <bruno@clisp.org>
15288
15289         doc: Use a recent texinfo.tex.
15290         * doc/Makefile (tex_opts): New variable.
15291         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15292
15293 2011-05-28  Jim Meyering  <meyering@redhat.com>
15294
15295         intprops.h: adjust comment to match code change
15296         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15297         only once, it *may* have side effects.  Also fix an unrelated typo.
15298         (_GL_INT_SIGNED): Likewise.
15299
15300 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15301
15302         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15303
15304 2011-05-26  Bruno Haible  <bruno@clisp.org>
15305
15306         mbsrchr: Avoid collision with system function on Interix.
15307         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15308         Reported by Markus Duft <mduft@gentoo.org>.
15309
15310 2011-05-15  James Youngman  <jay@gnu.org>
15311
15312         getopt: for ambiguous options, enumerate the possibilities.
15313         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15314         the ambiguous options when an ambiguous prefix is given. This was
15315         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15316         glibc change was
15317         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15318
15319 2011-05-25  Eric Blake  <eblake@redhat.com>
15320
15321         getcwd: work around mingw bug
15322         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15323         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15324         Reported by Matthias Bolte.
15325
15326 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15327
15328         test-intprops: disable -Wtype-limits diagnostics
15329         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15330         diagnostics.  Otherwise, the integer overflow macros generate many
15331         diagnostics.  Reported by Jim Meyering in
15332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15333
15334         intprops: shorten, to pacify gcc -Woverlength-strings
15335         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15336         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15337         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15338         likely to run afoul of C compiler limits for string constant lengths.
15339         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15340
15341 2011-05-24  Eric Blake  <eblake@redhat.com>
15342
15343         docs: document recently fixed glibc printf bug
15344         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15345         * doc/posix-functions/printf.texi (printf): Likewise.
15346         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15347         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15348
15349         closein-tests: convert to init.sh
15350         * modules/closein-tests (Files): Add init.sh
15351         * tests/test-closein.sh Use it.
15352
15353         yesno-tests: convert to init.sh
15354         * modules/yesno-tests (Files): Add init.sh.
15355         * tests/test-yesno.sh: Use it.
15356
15357         atexit-tests: ensure reliable exit status
15358         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15359         Reported by Bruno Haible.
15360
15361 2011-05-24  Bruno Haible  <bruno@clisp.org>
15362
15363         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15364         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15365         gl_PREREQ_STRERROR_R invocations from here...
15366         * modules/strerror_r-posix (configure.ac): ... to here.
15367
15368 2011-05-24  Eric Blake  <eblake@redhat.com>
15369
15370         strerror_r: fix missing header
15371         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15372
15373         strerror_r: fix AIX test failures
15374         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15375         ERANGE failure.
15376
15377         strerror_r: fix Solaris test failures
15378         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15379         failures.
15380         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15381
15382         strerror_r: enforce POSIX recommendations
15383         * lib/strerror_r.c (safe_copy): New helper method.
15384         (strerror_r): Guarantee a non-empty string.
15385         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15386         recent POSIX rulings and to match our strerror guarantees.
15387         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15388
15389 2011-05-24  Jim Meyering  <meyering@redhat.com>
15390
15391         test-perror2.c: avoid warning about unused variable
15392         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15393
15394 2011-05-24  Eric Blake  <eblake@redhat.com>
15395
15396         perror: avoid spurious test failure on HP-UX
15397         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15398
15399         tests: fix logic bug in init.sh
15400         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15401         shell.
15402
15403 2011-05-24  Jim Meyering  <meyering@redhat.com>
15404
15405         utimensat: do not reference an out-of-scope buffer
15406         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15407         declared in an inner scope, yet "times" would be dereferenced outside
15408         the scope in which "ts" was valid.
15409         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15410         of ts[2] "out/up", so that the use of aliased "times" (via
15411         "times = ts;") does not end up referencing an out-of-scope "ts"
15412
15413         opendir-safer.c: don't clobber errno; don't close negative FD
15414         * lib/opendir-safer.c (opendir_safer):
15415         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15416         file descriptor, and more importantly, don't clobber the
15417         offending errno value with EINVAL.  Before, upon failure
15418         of dup_safer, we would pass the negative file descriptor to
15419         fdopendir, which would clobber errno.
15420
15421 2011-05-23  Bruno Haible  <bruno@clisp.org>
15422
15423         idcache: Fix module description.
15424         * modules/idcache (Include): Set to "idcache.h".
15425
15426 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15427
15428         gnulib-tool: fix portability problem with MacOS sed
15429         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15430         before the "}".  Problem reported by Leo in
15431         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15432         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15433         sed_extract_condition1, sed_extract_condition2.
15434
15435 2011-05-23  Bruno Haible  <bruno@clisp.org>
15436
15437         hash: Simplify autoconf macro.
15438         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15439
15440 2011-05-23  Bruno Haible  <bruno@clisp.org>
15441
15442         getugroups: Fix module description.
15443         * modules/getugroups (Include): Set to "getugroups.h".
15444
15445 2011-05-23  Bruno Haible  <bruno@clisp.org>
15446
15447         linkat: Simplify autoconf macro.
15448         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15449
15450 2011-05-23  Bruno Haible  <bruno@clisp.org>
15451             Eric Blake  <eblake@redhat.com>
15452
15453         linkat, renameat: Update dependencies.
15454         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15455         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15456         symlinkat.
15457
15458 2011-05-23  Jim Meyering  <meyering@redhat.com>
15459
15460         maint.mk: more tight_scope improvements
15461         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15462         (_gl_TS_headers): Define only in if-0'd block.
15463         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15464         sometimes we must *not* use it.  Adjust uses accordingly.
15465         (sc_tight_scope): Use much simpler grep-based test to determine
15466         whether we skip this rule.
15467
15468         maint.mk: generalize/improve the tight-scope rule
15469         * top/maint.mk: Emit a warning when the test is skipped.
15470         (_gl_TS_dir): Add $(srcdir)/ prefix.
15471         (_gl_TS_function_match): Simplify, rather than trying
15472         to enumerate common types.  Otherwise, it would fail to match an
15473         "extern unsigned char const *" declaration in idutils.
15474         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15475         a way to support use of that type of macro.
15476         (_gl_TS_var_match): Simplify regexp.
15477         (_gl_TS_obj_files): New configurable variable.
15478         (_gl_TS_headers): Likewise.
15479
15480 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15481
15482         verify: fix bug when gnulib <assert.h> is also included
15483         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15484         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15485         Perhaps there's a better way, but this fixes the immediate problem.
15486         Problem reported by Bruno Haible in
15487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15488
15489 2011-05-22  Bruno Haible  <bruno@clisp.org>
15490
15491         xgetcwd: Simplify autoconf macro.
15492         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15493
15494 2011-05-22  Bruno Haible  <bruno@clisp.org>
15495
15496         New module 'mktime-internal'.
15497         * modules/mktime-internal: New file.
15498         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15499         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15500         mktime_internal as a C macro if libc has __mktime_internal.
15501         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15502         conditions.
15503         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15504
15505 2011-05-22  Bruno Haible  <bruno@clisp.org>
15506
15507         timegm: Correct mktime replacement statements.
15508         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15509         defining mktime as a C macro. This completes a 2009-07-28 commit.
15510
15511 2011-05-22  Bruno Haible  <bruno@clisp.org>
15512
15513         timegm: Simplify autoconf macro.
15514         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15515
15516 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15517
15518         clock-time: change to LGPLv2+.
15519         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15520         BSD-like but we have no mark for that; this is good enough for now.
15521
15522 2011-05-21  Bruno Haible  <bruno@clisp.org>
15523
15524         strerror_r: Fix comments.
15525         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15526
15527 2011-05-21  Bruno Haible  <bruno@clisp.org>
15528
15529         relocatable-prog-wrapper: Fix possible link error.
15530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15531         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15532         (gl_FUNC_SETENV): ... to here.
15533         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15534         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15535
15536 2011-05-21  Bruno Haible  <bruno@clisp.org>
15537
15538         relocatable-prog-wrapper: Assume strerror() exists.
15539         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15540         m4/strerror.m4.
15541         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15542         * lib/relocwrapper.c: Remove mention of strerror module.
15543         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15544         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15545         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15546         C macro.
15547
15548 2011-05-21  Bruno Haible  <bruno@clisp.org>
15549
15550         select: Simplify replacement idiom.
15551         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15552         Win32 platforms.
15553         * lib/sys_select.in.h (select): Simplify accordingly.
15554         * modules/select (Depends-on): Likewise.
15555
15556 2011-05-21  Bruno Haible  <bruno@clisp.org>
15557
15558         mkdir-p: Simplify autoconf macro.
15559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15560         gl_FUNC_LCHOWN.
15561
15562 2011-05-21  Eric Blake  <eblake@redhat.com>
15563
15564         strerror_r: avoid clobbering strerror on cygwin
15565         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15566         fall back instead to sys_errlist.
15567         * modules/strerror (configure.ac): Add witness.
15568         * tests/test-strerror_r.c (main): Enhance test.
15569         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15570         * tests/test-perror2.c (main): Free memory before exit.
15571
15572 2011-05-21  Bruno Haible  <bruno@clisp.org>
15573
15574         mkdtemp: Use gnulib naming conventions.
15575         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15576         * modules/mkdtemp (configure.ac): Update.
15577
15578 2011-05-20  Eric Blake  <eblake@redhat.com>
15579
15580         strerror_r: avoid corrupting errno on Solaris
15581         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15582         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15583
15584         strerror_r: avoid compiler warning
15585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15586
15587         strerror_r: simplify AIX code
15588         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15589
15590         test-perror: avoid spurious failure on FreeBSD
15591         * modules/perror-tests (Depends-on): Add strerror, now that
15592         strerror_r no longer pulls it in.
15593
15594 2011-05-20  Bruno Haible  <bruno@clisp.org>
15595
15596         strerror_r-posix: Remove unused dependencies.
15597         * modules/strerror_r-posix (Depends-on): Remove strerror.
15598         Reported by Eric Blake.
15599
15600 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         intprops: remove assumption about A|B representation
15603         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15604         is a valid integer if both A and B are.  Although this is true for
15605         all known practical hosts, the C standard doesn't guarantee it,
15606         and the code need not assume it.  Also, this change may work around
15607         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15609
15610 2011-05-20  Eric Blake  <eblake@redhat.com>
15611
15612         perror: work around FreeBSD bug
15613         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15614         is broken.  Move AC_LIBOBJ...
15615         * modules/perror (configure.ac): Here.
15616         * doc/posix-functions/perror.texi (perror): Document this.
15617         * tests/test-perror2.c (main): Enhance test.
15618
15619         test-perror: check for strerror interactions
15620         * tests/macros.h (STREQ): Add macro.
15621         * modules/perror-tests (Files): Add second test.
15622         * tests/test-perror2.c (main): New file.
15623         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15624
15625         test-perror: rewrite to use init script
15626         * modules/perror-tests (Files): Add init.sh.
15627         * tests/test-perror.sh: Use temporary directory.
15628
15629 2011-05-20  Jim Meyering  <meyering@redhat.com>
15630
15631         maint: replace misused "a" with "an"
15632         * doc/intprops.texi: "a integer"
15633         * doc/regex.texi: "a explanation"
15634         * lib/alignof.h: "a object"
15635         * lib/argmatch.h: "a explanation"
15636         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15637         * lib/stdint.in.h: "a integer"
15638         * lib/userspec.c: "a owner"
15639         * doc/gnulib.texi: Fix "a idea", and reword.
15640
15641 2011-05-19  Jim Meyering  <meyering@redhat.com>
15642
15643         maint: correct misuse of "a" and "an"
15644         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15645         * lib/argp-help.c: "an docum...": s/an/a/
15646         * lib/argp-parse.c: "An vector": s/An/A/
15647         * lib/execute.c: "an native": s/an/a/
15648         * lib/spawn-pipe.c: Likewise.
15649         * lib/gc.h: "an Gc_rc": s/an/a/
15650         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15651         * lib/fts.c: "an stat.st_dev": s/an/a/
15652
15653 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15654
15655         intprops-tests: work around HP-UX 11.23 cc bug with constants
15656         * tests/test-intprops.c (VERIFY): New macro.
15657         (main): Use it, instead of verify, to work around the compiler bug; see
15658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15659
15660         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15661         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15662         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15663         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15664         (_GL_REMAINDER_OVERFLOW): Use it.
15665
15666         intprops-tests: revert unsigned part of previous change
15667         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15668         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15669         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15671
15672 2011-05-19  Bruno Haible  <bruno@clisp.org>
15673
15674         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15675         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15676         strerror_r() returned without filling the buffer.
15677         Reported by Eric Blake.
15678
15679 2011-05-19  Eric Blake  <eblake@redhat.com>
15680
15681         strerror_r: guarantee unchanged errno
15682         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15683         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15684         failure.
15685         * tests/test-strerror_r.c (main): Enhance test.
15686
15687 2011-05-19  Bruno Haible  <bruno@clisp.org>
15688
15689         strerror_r: Reorder #if blocks.
15690         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15691         for consistency with the previous commit.
15692
15693 2011-05-19  Bruno Haible  <bruno@clisp.org>
15694
15695         perror: Avoid clobbering the strerror buffer when possible.
15696         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15697         * lib/strerror.c: Include it.
15698         * modules/strerror (Files): Add lib/strerror-impl.h.
15699         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15700         (my_strerror): New function, defined through lib/strerror-impl.h.
15701         (perror): Use it instead of strerror.
15702         * modules/perror (Files): Add lib/strerror-impl.h.
15703         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15704
15705 2011-05-19  Eric Blake  <eblake@redhat.com>
15706
15707         strerror_r: fix on newer cygwin
15708         * lib/strerror_r.c (strerror_r): Cygwin now has
15709         __xpg_strerror_r, use it.
15710
15711 2011-05-19  Bruno Haible  <bruno@clisp.org>
15712
15713         strerror_r: Avoid clobbering the strerror buffer when possible.
15714         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15715         (sys_nerr, sys_errlist): New declarations.
15716         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15717         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15718         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15719
15720 2011-05-19  Bruno Haible  <bruno@clisp.org>
15721
15722         strerror_r: Fix test failure on mingw.
15723         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15724         EXTEND_STRERROR_R.
15725         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15726         macros from errno.in.h instead.
15727
15728 2011-05-19  Eric Blake  <eblake@redhat.com>
15729
15730         strerror: relax test for Solaris
15731         * tests/test-strerror.c (main): Permit Solaris behavior.
15732         * tests/test-strerror_r.c (main): Likewise.
15733
15734         strerror: enforce POSIX ruling on strerror(0)
15735         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15737         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15738         * doc/posix-functions/strerror.texi (strerror): Document it.
15739         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15740         * tests/test-strerror.c (main): Strengthen test.
15741         * tests/test-strerror_r.c (main): Likewise.
15742
15743 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15744
15745         intprop-tests: port to older and more-pedantic compilers
15746         * modules/intprops-tests (Files): Add tests/macros.h.
15747         * tests/test-intprops.c: Include macros.h.
15748         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15749         it's no longer documented to expand to an integer constant expression.
15750         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15751         argument is floating point, as it's no longer documented to expand
15752         to an integer constant expression in that case.
15753         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15754         compiler bugs reported by Bruno Haible.  See
15755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15756         (U0, U1): New constants, to work around the same bugs.  Also,
15757         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15758
15759         intprops: work around C compiler bugs
15760         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15761         bug in Sun C 5.11 2010/08/13 and other compilers; see
15762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15763
15764         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15765         * doc/intprops.texi (Integer Type Determination): Fix
15766         documentation for TYPE_IS_INTEGER: it returns an constant
15767         expression, not an integer constant expression.  Fix doc for
15768         TYPE_SIGNED: it returns an integer constant expression only if its
15769         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15770         hardly worth documented that way....)
15771
15772 2011-05-18  Bruno Haible  <bruno@clisp.org>
15773
15774         strerror_r: Avoid clobbering the strerror buffer when possible.
15775         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15776         Handle gnulib defined errno values here. When strerror() returns NULL
15777         or an empty string, return EINVAL.
15778         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15779         gnulib defined errno values here.
15780         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15781
15782 2011-05-18  Eric Blake  <eblake@redhat.com>
15783
15784         fnmatch: avoid compiler warning
15785         * lib/fnmatch_loop.c (FCT): Use correct type.
15786         Reported by Matthias Bolte.
15787
15788 2011-05-13  Jim Meyering  <meyering@redhat.com>
15789
15790         maint.mk: three new prohibit_<HDR>_without_use rules
15791         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15792         (sc_prohibit_stdio-safer_without_use): Likewise.
15793         (sc_prohibit_xfreopen_without_use): Likewise.
15794
15795 2011-05-17  Jim Meyering  <meyering@redhat.com>
15796
15797         announce-gen: fail if the NEWS delta is empty
15798         If there's nothing noteworthy in NEWS, then either you forgot
15799         or you shouldn't be releasing.
15800         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15801
15802 2011-05-17  Pádraig Brady <P@draigBrady.com>
15803
15804         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15805         reserved symbols starting with double underscore from the check.
15806
15807 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         intprops: add doc
15810         * doc/intprops.texi: New file, documenting intprops.
15811         * doc/gnulib.texi (Particular Modules): Include it.
15812
15813         verify: add doc to gnulib manual and fix example
15814         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15815         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15816         (Compile-time Assertions): Fix example so it can't overflow.
15817
15818 2011-05-17  Jim Meyering  <meyering@redhat.com>
15819
15820         warnings.m4: don't usurp save_CPPFLAGS variable name
15821         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15822
15823         doc: fix typo
15824         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15825
15826 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15827             Bruno Haible  <bruno@clisp.org>
15828
15829         doc: Tweak recent change.
15830         * README (Portability guidelines): Tweak new text.
15831         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15832         Interix 6.1.
15833
15834 2011-05-16  Eric Blake  <eblake@redhat.com>
15835
15836         inttypes: avoid autoconf warning
15837         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15838         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15839
15840 2011-05-16  Sam Steingold <sds@gnu.org>
15841         and Eric Blake  <eblake@redhat.com>
15842
15843         vc-list-files: accept multiple directory operands
15844         * build-aux/vc-list-files: Iterate over all remaining operands.
15845
15846 2011-05-16  Bruno Haible  <bruno@clisp.org>
15847
15848         Fix confusion regarding deprecated modules.
15849         * modules/calloc (Status, Notice): Mark module as deprecated, not
15850         obsolete.
15851         * modules/fnmatch-posix (Status, Notice): Likewise.
15852         * modules/getdate (Status, Notice): Likewise.
15853         * modules/getopt (Status, Notice): Likewise.
15854         * modules/malloc (Status, Notice): Likewise.
15855         * modules/pipe (Status, Notice): Likewise.
15856         * modules/realloc (Status, Notice): Likewise.
15857         * modules/rename-dest-slash (Status, Notice): Likewise.
15858         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15859         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15860         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15861         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15862         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15863
15864 2011-05-16  Bruno Haible  <bruno@clisp.org>
15865
15866         doc: List the target platforms.
15867         * doc/gnulib-intro.texi (Target Platforms): New section.
15868         * doc/gnulib.texi (Introduction): Update menu.
15869         * README (Portability guidelines): Refer to the new section. Update
15870         statement about oldest supported environment. Remove rationale why
15871         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15872         unportable C89 function.
15873         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15874         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15875
15876 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15877
15878         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15879
15880 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15881
15882         intprops-tests: new module
15883         * modules/intprops-tests, tests/test-intprops.c: New files.
15884
15885         intprops: add safe, portable integer overflow checking
15886         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15887         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15888         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15889         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15890         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15891         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15892         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15893         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15894         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15895         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15896         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15897
15898 2011-05-12  James Youngman  <jay@gnu.org>
15899
15900         Add a test for glibc's Bugzilla bug #12378.
15901         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15902         doesn't allow the literal matching of a lone "[" (which is
15903         required by POSIX).
15904         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15905
15906 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15907
15908         Sync glibc change fixing Bugzilla bug #12378.
15909         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15910         beginning and fall back to matching as normal character if the
15911         string ends before the matching ']' is found.  This is what POSIX
15912         requires.
15913
15914 2011-05-13  Eric Blake  <eblake@redhat.com>
15915
15916         getcwd-lgpl: relax test for FreeBSD
15917         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15918         issue.
15919         * tests/test-getcwd-lgpl.c (main): Relax test.
15920         Reported by Matthias Bolte.
15921
15922 2011-05-11  Eric Blake  <eblake@redhat.com>
15923
15924         test-fflush: silence compiler warning
15925         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15926
15927 2011-05-11  Bruno Haible  <bruno@clisp.org>
15928
15929         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15930         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15931         * modules/canonicalize (Depends-on): Add 'nocrash'.
15932         * modules/canonicalize-lgpl (Depends-on): Likewise.
15933         * doc/posix-functions/realpath.texi: Update platforms list.
15934         Reported by Ryan Schmidt <ryandesign@macports.org>.
15935
15936 2011-05-11  Bruno Haible  <bruno@clisp.org>
15937
15938         group-member: Declare function in <unistd.h>.
15939         * lib/unistd.in.h (group_member): New declaration.
15940         * lib/group-member.h: Remove file.
15941         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15942         * tests/test-unistd-c++.cc: Check signature of group_member.
15943         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15944         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15945         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15946         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15947         HAVE_GROUP_MEMBER.
15948         * modules/group-member (Files): Remove lib/group-member.h.
15949         (Depends-on): Add unistd. Specify conditions.
15950         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15951         (Include): Change to <unistd.h>.
15952         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15953         HAVE_GROUP_MEMBER.
15954         * NEWS: Mention the change.
15955         * lib/euidaccess.c: Don't include group-member.h.
15956
15957 2011-05-11  Bruno Haible  <bruno@clisp.org>
15958
15959         group-member: Document module.
15960         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15961         module.
15962
15963 2011-05-11  Bruno Haible  <bruno@clisp.org>
15964
15965         fclose: Fix mistake earlier today.
15966         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15967
15968 2011-05-11  Eric Blake  <eblake@redhat.com>
15969
15970         fclose: preserve fflush errors
15971         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15972         Reported by Jim Meyering.
15973
15974         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15975         * build-aux/bootstrap (check_versions): When no specific version
15976         is required, merely check that the app produces an exit status
15977         that indicates its existence.
15978
15979         maint.mk: drop redundant check
15980         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15981         the same but better.
15982
15983 2011-05-11  Bruno Haible  <bruno@clisp.org>
15984
15985         fclose: Fix possible link error.
15986         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15987         unregister_shadow_fd. Improve comments.
15988         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15989         Eric Blake.
15990
15991 2011-05-11  Jim Meyering  <meyering@redhat.com>
15992
15993         maint.mk: improve "can not" detection and generalize rule name
15994         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15995         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15996         Use the same technique as in sc_prohibit_doubled_word, so that
15997         we recognize "can not" also when the words are separated by a newline.
15998         Suggested by Eric Blake.
15999         (perl_filename_lineno_text_): Define.  Factored out of...
16000         (prohibit_doubled_word_): ...here.  Use the new definition.
16001         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16002         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16003         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16004
16005 2011-05-10  Eric Blake  <eblake@redhat.com>
16006
16007         fclose: avoid double close race when possible
16008         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16009         all but WINDOWS_SOCKETS.
16010
16011 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16012
16013         openat: correct new comment
16014         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16015
16016 2011-05-10  Jim Meyering  <meyering@redhat.com>
16017
16018         openat: add comments
16019         * lib/openat-proc.c (openat_proc_name): Add comments,
16020         mostly from Eric Blake.
16021
16022 2011-05-09  Eric Blake  <eblake@redhat.com>
16023
16024         openat: reduce syscalls in first probe of /proc
16025         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16026         be a directory.  Simplify the probe for .. bugs.
16027         * modules/openat (Depends-on): Drop same-inode.
16028         Reported by Bastien ROUCARIES.
16029
16030 2011-05-09  Jim Meyering  <meyering@redhat.com>
16031
16032         maint.mk: change semantics/name of tight_scope variables
16033         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16034         Rename variables to align with semantics that make them more useful.
16035
16036         maint.mk: tweak new rule's name not to impinge
16037         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16038         (sc_tight_scope): Use new rule name rather than $@-0.
16039
16040         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16041         * top/maint.mk (sc_tight_scope): New rule.
16042         (sc_tight_scope-0): New rule, ifdef'd out.
16043         (_gl_TS_dir): Default.
16044         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16045         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16046
16047 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16048
16049         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16050         Haible <bruno@clisp.org>.
16051
16052 2011-05-08  Bruno Haible  <bruno@clisp.org>
16053
16054         Comments.
16055         * m4/isnanf.m4: Add comment.
16056         * m4/isnanl.m4: Likewise.
16057
16058 2011-05-08  Bruno Haible  <bruno@clisp.org>
16059
16060         glob: Remove obsolete macro.
16061         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16062
16063 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16064
16065         intprops: Sun C 5.11 supports __typeof__
16066         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16067         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16068         which is new.
16069         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16070
16071         intprops: switch to usual gnulib indenting and naming
16072         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16073         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16074
16075         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16076
16077 2011-05-08  Jim Meyering  <meyering@redhat.com>
16078
16079         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16080         * top/maint.mk (release-prep): Use make's --no-print-directory
16081         option when generating the announcement.  This eliminates the
16082         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16083         generated announcement template.
16084
16085 2011-05-08  Bruno Haible  <bruno@clisp.org>
16086
16087         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16088         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16089         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16090
16091 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16092
16093         ignore-value, verify: Omit include files from lib_SOURCES.
16094         * modules/ignore-value, modules/verify (Makefile.am):
16095         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16096         that leads Automake to duplicate use of am__objects_... variables
16097         in Makefile.in.  See
16098         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16099
16100 2011-05-07  Bruno Haible  <bruno@clisp.org>
16101
16102         fclose: Simplify autoconf macro.
16103         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16104         defined.
16105
16106 2011-05-07  Bruno Haible  <bruno@clisp.org>
16107
16108         canonicalize-lgpl: Fix autoconf macro ordering bug.
16109         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16110         gl_STDLIB_H_DEFAULTS.
16111
16112 2011-05-06  Eric Blake  <eblake@redhat.com>
16113
16114         maintainer-makefile: make sc_po_check easier to tune
16115         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16116         to probe for strings, such as an alternate location for gnulib.
16117
16118         fclose: guarantee behavior on seekable stdin
16119         * modules/fclose (Depends-on): Add fflush.
16120         * doc/posix-functions/fclose.texi (fclose): Document this.
16121         * tests/test-fclose.c (main): Make test for this unconditional.
16122
16123 2011-05-06  Bruno Haible  <bruno@clisp.org>
16124
16125         fflush, fpurge: Relicense under LGPLv2+.
16126         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16127         * modules/fpurge (License): Likewise.
16128         With permission from Eric Blake and Jim Meyering.
16129         Suggested by Eric Blake.
16130
16131 2011-05-06  Karl Berry  <karl@gnu.org>
16132
16133         * MODULES.html.sh (func_all_modules): remove exit.
16134
16135 2011-05-06  Jim Meyering  <meyering@redhat.com>
16136
16137         maint.mk: use info-gnu@ as the default only for a stable release
16138         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16139         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16140         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16142
16143 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16144
16145         assert-h: new module, which supports C1X-style static_assert
16146         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16147         * lib/verify.h: Revamp so that this can be copied into assert.h,
16148         while retaining the ability to use it standalone as before.
16149         Rename private identifiers so as not to encroach on the
16150         standard C namespace, since this is now used by assert.h.
16151         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16152         the old verify_true.
16153         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16154         the old verify_true.  Use _GL_VERIFY_TYPE.
16155         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16156         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16157         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16158         defined when this file is copied into the replacement assert.h.
16159         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16160         and _Static_assert is not built in.
16161         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16162         defined, and use the new macros mentioned above.
16163         * doc/posix-headers/assert.texi: Document this.
16164
16165 2011-05-05  Bruno Haible  <bruno@clisp.org>
16166
16167         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16168         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16169         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16170         gl_REPLACE_FCLOSE here.
16171         * modules/fflush (Depends-on): Remove fclose.
16172         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16173         combination with module 'fclose'.
16174
16175 2011-05-05  Bruno Haible  <bruno@clisp.org>
16176
16177         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16178         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16179         gl_FUNC_FFLUSH.
16180         (gl_FUNC_FFLUSH): Use it.
16181         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16183         gl_REPLACE_FSEEKO here.
16184
16185 2011-05-05  Bruno Haible  <bruno@clisp.org>
16186
16187         tzset: Relicense under LGPL.
16188         * modules/tzset (License): Change to LGPL.
16189         No agreement needed; it's a no-op.
16190
16191         strtoimax, strtoumax: Relicense under LGPL.
16192         * modules/strtoimax (License): Change to LGPL.
16193         * modules/strtoumax (License): Likewise.
16194         With permission from Jim Meyering, Paul Eggert:
16195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16197
16198         getgroups: Relicense under LGPL.
16199         * modules/getgroups (License): Change to LGPL.
16200         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16204
16205         nanosleep: Relicense under LGPL.
16206         * modules/nanosleep (License): Change to LGPL.
16207         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16208         Haible:
16209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16213
16214         futimens: Relicense under LGPL.
16215         * modules/futimens (License): Change to LGPL.
16216         With permission from Eric Blake:
16217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16218
16219         fflush: Relicense under LGPL.
16220         * modules/fflush (License): Change to LGPL.
16221         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16225
16226         tmpfile: Relicense under LGPL.
16227         * modules/tmpfile (License): Change to LGPL.
16228         With permission from Ben Pfaff:
16229         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16230
16231         isfinite: Relicense under LGPL.
16232         * modules/isfinite (License): Change to LGPL.
16233         With permission from Ben Pfaff, Bruno Haible:
16234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16236
16237         acosl..tanl: Relicense under LGPL.
16238         * modules/acosl (License): Change to LGPL.
16239         * modules/asinl (License): Likewise.
16240         * modules/atanl (License): Likewise.
16241         * modules/cosl (License): Likewise.
16242         * modules/expl (License): Likewise.
16243         * modules/logl (License): Likewise.
16244         * modules/sinl (License): Likewise.
16245         * modules/sqrtl (License): Likewise.
16246         * modules/tanl (License): Likewise.
16247         Source code originally from glibc and Paolo Bonzini. Agreements:
16248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16250
16251 2011-05-05  Bruno Haible  <bruno@clisp.org>
16252
16253         signal: Define sighandler_t.
16254         * lib/signal.in.h (sighandler_t): New type.
16255         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16256         whether sighandler_t is defined.
16257         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16258         * modules/signal (Depends-on): Add extensions.
16259         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16260         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16261         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16262
16263 2011-05-05  Eric Blake  <eblake@redhat.com>
16264
16265         maint: remove useless REPLACE_*_H macros
16266         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16267         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16268         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16269         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16270         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16271         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16272         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16273         * m4/btowc.m4: Update callers.
16274         * m4/dirfd.m4: Likewise.
16275         * m4/duplocale.m4: Likewise.
16276         * m4/fchdir.m4: Likewise.
16277         * m4/fdopendir.m4: Likewise.
16278         * m4/inet_ntop.m4: Likewise.
16279         * m4/inet_pton.m4: Likewise.
16280         * m4/ioctl.m4: Likewise.
16281         * m4/mbrlen.m4: Likewise.
16282         * m4/mbrtowc.m4: Likewise.
16283         * m4/mbsinit.m4: Likewise.
16284         * m4/mbsnrtowcs.m4: Likewise.
16285         * m4/mbsrtowcs.m4: Likewise.
16286         * m4/poll.m4: Likewise.
16287         * m4/setlocale.m4: Likewise.
16288         * m4/wcrtomb.m4: Likewise.
16289         * m4/wcsnrtombs.m4: Likewise.
16290         * m4/wcsrtombs.m4: Likewise.
16291         * m4/wctob.m4: Likewise.
16292         * m4/wcwidth.m4: Likewise.
16293         * modules/posix_spawn: Likewise.
16294         * modules/posix_spawn_file_actions_addclose: Likewise.
16295         * modules/posix_spawn_file_actions_adddup2: Likewise.
16296         * modules/posix_spawn_file_actions_addopen: Likewise.
16297         * modules/posix_spawn_file_actions_destroy: Likewise.
16298         * modules/posix_spawn_file_actions_init: Likewise.
16299         * modules/posix_spawnattr_destroy: Likewise.
16300         * modules/posix_spawnattr_getflags: Likewise.
16301         * modules/posix_spawnattr_getpgroup: Likewise.
16302         * modules/posix_spawnattr_getschedparam: Likewise.
16303         * modules/posix_spawnattr_getschedpolicy: Likewise.
16304         * modules/posix_spawnattr_getsigdefault: Likewise.
16305         * modules/posix_spawnattr_getsigmask: Likewise.
16306         * modules/posix_spawnattr_init: Likewise.
16307         * modules/posix_spawnattr_setflags: Likewise.
16308         * modules/posix_spawnattr_setpgroup: Likewise.
16309         * modules/posix_spawnattr_setschedparam: Likewise.
16310         * modules/posix_spawnattr_setschedpolicy: Likewise.
16311         * modules/posix_spawnattr_setsigdefault: Likewise.
16312         * modules/posix_spawnattr_setsigmask: Likewise.
16313         * modules/posix_spawnp: Likewise.
16314
16315 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16316
16317         Add option to do-release-commit-and-tag to specify branch.
16318         * build-aux/do-release-commit-and-tag: Add --branch.
16319
16320 2011-05-03  Bruno Haible  <bruno@clisp.org>
16321
16322         Avoid unnecessary compilation units, through conditional dependencies.
16323         * modules/accept (Depends-on): Add conditions to the dependencies.
16324         * modules/acosl (Depends-on): Likewise.
16325         * modules/argz (Depends-on): Likewise.
16326         * modules/asinl (Depends-on): Likewise.
16327         * modules/atanl (Depends-on): Likewise.
16328         * modules/atoll (Depends-on): Likewise.
16329         * modules/bind (Depends-on): Likewise.
16330         * modules/btowc (Depends-on): Likewise.
16331         * modules/canonicalize-lgpl (Depends-on): Likewise.
16332         * modules/ceil (Depends-on): Likewise.
16333         * modules/ceilf (Depends-on): Likewise.
16334         * modules/ceill (Depends-on): Likewise.
16335         * modules/chdir-long (Depends-on): Likewise.
16336         * modules/chown (Depends-on): Likewise.
16337         * modules/close (Depends-on): Likewise.
16338         * modules/connect (Depends-on): Likewise.
16339         * modules/cosl (Depends-on): Likewise.
16340         * modules/dirfd (Depends-on): Likewise.
16341         * modules/dprintf (Depends-on): Likewise.
16342         * modules/dprintf-posix (Depends-on): Likewise.
16343         * modules/error (Depends-on): Likewise.
16344         * modules/euidaccess (Depends-on): Likewise.
16345         * modules/expl (Depends-on): Likewise.
16346         * modules/faccessat (Depends-on): Likewise.
16347         * modules/fchdir (Depends-on): Likewise.
16348         * modules/fclose (Depends-on): Likewise.
16349         * modules/fcntl (Depends-on): Likewise.
16350         * modules/fdopendir (Depends-on): Likewise.
16351         * modules/fflush (Depends-on): Likewise.
16352         * modules/floor (Depends-on): Likewise.
16353         * modules/floorf (Depends-on): Likewise.
16354         * modules/floorl (Depends-on): Likewise.
16355         * modules/fnmatch (Depends-on): Likewise.
16356         * modules/fopen (Depends-on): Likewise.
16357         * modules/fprintf-posix (Depends-on): Likewise.
16358         * modules/frexp (Depends-on): Likewise.
16359         * modules/frexp-nolibm (Depends-on): Likewise.
16360         * modules/frexpl (Depends-on): Likewise.
16361         * modules/frexpl-nolibm (Depends-on): Likewise.
16362         * modules/fseek (Depends-on): Likewise.
16363         * modules/fsusage (Depends-on): Likewise.
16364         * modules/ftell (Depends-on): Likewise.
16365         * modules/ftello (Depends-on): Likewise.
16366         * modules/futimens (Depends-on): Likewise.
16367         * modules/getcwd (Depends-on): Likewise.
16368         * modules/getcwd-lgpl (Depends-on): Likewise.
16369         * modules/getdelim (Depends-on): Likewise.
16370         * modules/getdomainname (Depends-on): Likewise.
16371         * modules/getgroups (Depends-on): Likewise.
16372         * modules/gethostname (Depends-on): Likewise.
16373         * modules/getline (Depends-on): Likewise.
16374         * modules/getlogin_r (Depends-on): Likewise.
16375         * modules/getopt-posix (Depends-on): Likewise.
16376         * modules/getpeername (Depends-on): Likewise.
16377         * modules/getsockname (Depends-on): Likewise.
16378         * modules/getsockopt (Depends-on): Likewise.
16379         * modules/getsubopt (Depends-on): Likewise.
16380         * modules/getusershell (Depends-on): Likewise.
16381         * modules/glob (Depends-on): Likewise.
16382         * modules/grantpt (Depends-on): Likewise.
16383         * modules/iconv_open (Depends-on): Likewise.
16384         * modules/iconv_open-utf (Depends-on): Likewise.
16385         * modules/inet_ntop (Depends-on): Likewise.
16386         * modules/inet_pton (Depends-on): Likewise.
16387         * modules/ioctl (Depends-on): Likewise.
16388         * modules/isapipe (Depends-on): Likewise.
16389         * modules/isfinite (Depends-on): Likewise.
16390         * modules/isinf (Depends-on): Likewise.
16391         * modules/lchown (Depends-on): Likewise.
16392         * modules/ldexpl (Depends-on): Likewise.
16393         * modules/link (Depends-on): Likewise.
16394         * modules/linkat (Depends-on): Likewise.
16395         * modules/listen (Depends-on): Likewise.
16396         * modules/logl (Depends-on): Likewise.
16397         * modules/lstat (Depends-on): Likewise.
16398         * modules/mbrlen (Depends-on): Likewise.
16399         * modules/mbrtowc (Depends-on): Likewise.
16400         * modules/mbsinit (Depends-on): Likewise.
16401         * modules/mbsnrtowcs (Depends-on): Likewise.
16402         * modules/mbsrtowcs (Depends-on): Likewise.
16403         * modules/mbtowc (Depends-on): Likewise.
16404         * modules/memcmp (Depends-on): Likewise.
16405         * modules/mkdir (Depends-on): Likewise.
16406         * modules/mkdtemp (Depends-on): Likewise.
16407         * modules/mkfifo (Depends-on): Likewise.
16408         * modules/mkfifoat (Depends-on): Likewise.
16409         * modules/mknod (Depends-on): Likewise.
16410         * modules/mkostemp (Depends-on): Likewise.
16411         * modules/mkostemps (Depends-on): Likewise.
16412         * modules/mkstemp (Depends-on): Likewise.
16413         * modules/mkstemps (Depends-on): Likewise.
16414         * modules/mktime (Depends-on): Likewise.
16415         * modules/nanosleep (Depends-on): Likewise.
16416         * modules/open (Depends-on): Likewise.
16417         * modules/openat (Depends-on): Likewise.
16418         * modules/perror (Depends-on): Likewise.
16419         * modules/poll (Depends-on): Likewise.
16420         * modules/popen (Depends-on): Likewise.
16421         * modules/posix_spawn (Depends-on): Likewise.
16422         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16423         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16424         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16425         * modules/posix_spawnp (Depends-on): Likewise.
16426         * modules/pread (Depends-on): Likewise.
16427         * modules/printf-posix (Depends-on): Likewise.
16428         * modules/ptsname (Depends-on): Likewise.
16429         * modules/putenv (Depends-on): Likewise.
16430         * modules/pwrite (Depends-on): Likewise.
16431         * modules/readline (Depends-on): Likewise.
16432         * modules/readlink (Depends-on): Likewise.
16433         * modules/readlinkat (Depends-on): Likewise.
16434         * modules/recv (Depends-on): Likewise.
16435         * modules/recvfrom (Depends-on): Likewise.
16436         * modules/regex (Depends-on): Likewise.
16437         * modules/remove (Depends-on): Likewise.
16438         * modules/rename (Depends-on): Likewise.
16439         * modules/renameat (Depends-on): Likewise.
16440         * modules/rmdir (Depends-on): Likewise.
16441         * modules/round (Depends-on): Likewise.
16442         * modules/roundf (Depends-on): Likewise.
16443         * modules/roundl (Depends-on): Likewise.
16444         * modules/rpmatch (Depends-on): Likewise.
16445         * modules/select (Depends-on): Likewise.
16446         * modules/send (Depends-on): Likewise.
16447         * modules/sendto (Depends-on): Likewise.
16448         * modules/setenv (Depends-on): Likewise.
16449         * modules/setlocale (Depends-on): Likewise.
16450         * modules/setsockopt (Depends-on): Likewise.
16451         * modules/shutdown (Depends-on): Likewise.
16452         * modules/sigaction (Depends-on): Likewise.
16453         * modules/signbit (Depends-on): Likewise.
16454         * modules/sigprocmask (Depends-on): Likewise.
16455         * modules/sinl (Depends-on): Likewise.
16456         * modules/sleep (Depends-on): Likewise.
16457         * modules/snprintf (Depends-on): Likewise.
16458         * modules/snprintf-posix (Depends-on): Likewise.
16459         * modules/socket (Depends-on): Likewise.
16460         * modules/sprintf-posix (Depends-on): Likewise.
16461         * modules/sqrtl (Depends-on): Likewise.
16462         * modules/stat (Depends-on): Likewise.
16463         * modules/strchrnul (Depends-on): Likewise.
16464         * modules/strdup-posix (Depends-on): Likewise.
16465         * modules/strerror (Depends-on): Likewise.
16466         * modules/strerror_r-posix (Depends-on): Likewise.
16467         * modules/strndup (Depends-on): Likewise.
16468         * modules/strnlen (Depends-on): Likewise.
16469         * modules/strptime (Depends-on): Likewise.
16470         * modules/strsep (Depends-on): Likewise.
16471         * modules/strsignal (Depends-on): Likewise.
16472         * modules/strstr-simple (Depends-on): Likewise.
16473         * modules/strtod (Depends-on): Likewise.
16474         * modules/strtoimax (Depends-on): Likewise.
16475         * modules/strtok_r (Depends-on): Likewise.
16476         * modules/strtoumax (Depends-on): Likewise.
16477         * modules/symlink (Depends-on): Likewise.
16478         * modules/symlinkat (Depends-on): Likewise.
16479         * modules/tanl (Depends-on): Likewise.
16480         * modules/tcgetsid (Depends-on): Likewise.
16481         * modules/tmpfile (Depends-on): Likewise.
16482         * modules/trunc (Depends-on): Likewise.
16483         * modules/truncf (Depends-on): Likewise.
16484         * modules/truncl (Depends-on): Likewise.
16485         * modules/uname (Depends-on): Likewise.
16486         * modules/unlink (Depends-on): Likewise.
16487         * modules/unlockpt (Depends-on): Likewise.
16488         * modules/unsetenv (Depends-on): Likewise.
16489         * modules/usleep (Depends-on): Likewise.
16490         * modules/utimensat (Depends-on): Likewise.
16491         * modules/vasprintf (Depends-on): Likewise.
16492         * modules/vdprintf (Depends-on): Likewise.
16493         * modules/vdprintf-posix (Depends-on): Likewise.
16494         * modules/vfprintf-posix (Depends-on): Likewise.
16495         * modules/vprintf-posix (Depends-on): Likewise.
16496         * modules/vsnprintf (Depends-on): Likewise.
16497         * modules/vsnprintf-posix (Depends-on): Likewise.
16498         * modules/vsprintf-posix (Depends-on): Likewise.
16499         * modules/wcrtomb (Depends-on): Likewise.
16500         * modules/wcscasecmp (Depends-on): Likewise.
16501         * modules/wcscspn (Depends-on): Likewise.
16502         * modules/wcsdup (Depends-on): Likewise.
16503         * modules/wcsncasecmp (Depends-on): Likewise.
16504         * modules/wcsnrtombs (Depends-on): Likewise.
16505         * modules/wcspbrk (Depends-on): Likewise.
16506         * modules/wcsrtombs (Depends-on): Likewise.
16507         * modules/wcsspn (Depends-on): Likewise.
16508         * modules/wcsstr (Depends-on): Likewise.
16509         * modules/wcstok (Depends-on): Likewise.
16510         * modules/wcswidth (Depends-on): Likewise.
16511         * modules/wctob (Depends-on): Likewise.
16512         * modules/wctomb (Depends-on): Likewise.
16513         * modules/wctype (Depends-on): Likewise.
16514         * modules/wcwidth (Depends-on): Likewise.
16515         * modules/write (Depends-on): Likewise.
16516
16517 2011-05-03  Bruno Haible  <bruno@clisp.org>
16518
16519         Support for conditional dependencies.
16520         * doc/gnulib.texi (Module description): Document the syntax of
16521         conditional dependencies.
16522         * gnulib-tool: New option --conditional-dependencies.
16523         (func_usage): Document it.
16524         (cond_dependencies): New variable.
16525         (func_get_automake_snippet_conditional,
16526         func_get_automake_snippet_unconditional): New functions, extracted from
16527         func_get_automake_snippet.
16528         (func_get_automake_snippet): Use them.
16529         (sed_first_32_chars): New variable.
16530         (func_module_shellfunc_name): New function.
16531         (func_module_shellvar_name): New function.
16532         (func_module_conditional_name): New function.
16533         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16534         func_cond_module_condition): New functions.
16535         (func_modules_transitive_closure): Add support for conditional
16536         dependencies.
16537         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16538         conditional automake snippet in an automake conditional.
16539         (func_emit_autoconf_snippets): Emit shell functions that contain the
16540         code for conditional modules.
16541         (func_import, func_create_testdir): Update specification.
16542
16543 2011-05-03  Eric Blake  <eblake@redhat.com>
16544
16545         test-getaddrinfo: report error information
16546         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16547
16548 2011-05-03  Jim Meyering  <meyering@redhat.com>
16549
16550         bootstrap: avoid build failure when $GZIP is set
16551         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16552         program name.  If defined at all, it is supposed to list gzip options.
16553         Reported by Alan Curry in http://debbugs.gnu.org/8609
16554
16555 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16556
16557         readme-release: new module with release instructions
16558         * modules/readme-release: New module.
16559         * top/README-release: New file, from coreutils, grep, diffutils.
16560         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16561
16562 2011-05-02  Eric Blake  <eblake@redhat.com>
16563
16564         fflush: also replace fclose when fixing fflush
16565         * modules/fflush (Depends-on): Add fclose.
16566         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16567         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16568         memstreams with no backing fd.
16569         * doc/posix-functions/fclose.texi (fclose): Document the use of
16570         fflush module to fix the bug.
16571         * tests/test-fclose.c (main): Relax test when fclose is used in
16572         isolation.
16573
16574         fclose: add some tests
16575         * modules/fclose-tests: New test module.
16576         * tests/test-fclose.c: New file.
16577         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16578
16579         fclose: reduced dependencies
16580         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16581         simpler lseek.
16582         * lib/fclose.c (rpl_fclose): Likewise.
16583         Reported by Simon Josefsson.
16584
16585         exit: drop remaining clients
16586         * modules/argmatch (Depends-on): Replace exit with stdlib.
16587         * modules/copy-file (Depends-on): Likewise.
16588         * modules/execute (Depends-on): Likewise.
16589         * modules/exitfail (Depends-on): Likewise.
16590         * modules/obstack (Depends-on): Likewise.
16591         * modules/pagealign_alloc (Depends-on): Likewise.
16592         * modules/pipe-filter-gi (Depends-on): Likewise.
16593         * modules/pipe-filter-ii (Depends-on): Likewise.
16594         * modules/savewd (Depends-on): Likewise.
16595         * modules/spawn-pipe (Depends-on): Likewise.
16596         * modules/wait-process (Depends-on): Likewise.
16597         * modules/xsetenv (Depends-on): Likewise.
16598         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16599         * modules/git-merge-changelog (Depends-on): Likewise.
16600         * modules/long-options (Depends-on): Likewise.
16601         * modules/pt_chown (Depends-on): Likewise.
16602         * modules/sysexits (Depends-on): Likewise.
16603
16604         freading: relax license from LGPLv3+ to LGPLv2+
16605         * modules/freading (License): Relax LGPL version.
16606
16607 2011-05-02  Bruno Haible  <bruno@clisp.org>
16608
16609         fchdir: Remove unused dependencies.
16610         * modules/fchdir (Depends-on): Remove include_next.
16611
16612 2011-05-02  Bruno Haible  <bruno@clisp.org>
16613
16614         gnulib-tool: Refactor.
16615         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16616         from func_emit_autoconf_snippets.
16617         (func_emit_autoconf_snippets): Use it.
16618
16619 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16620
16621         * NEWS: Document removal of 'exit'.
16622         * modules/exit: Remove file.
16623
16624 2011-05-01  Bruno Haible  <bruno@clisp.org>
16625
16626         Update DEPENDENCIES.
16627         * DEPENDENCIES (gettext): Recommend the newest release.
16628         Reported by Simon Josefsson.
16629
16630 2011-05-01  Bruno Haible  <bruno@clisp.org>
16631
16632         gnulib-tool: Reduce code duplication.
16633         * gnulib-tool (func_emit_autoconf_snippets): New function.
16634         (func_import, func_create_testdir): Use it.
16635
16636 2011-04-30  Eric Blake  <eblake@redhat.com>
16637
16638         fclose: don't fail on non-seekable input stream
16639         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16640         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16641         since fflush is allowed to fail in that case.
16642
16643 2011-04-30  Bruno Haible  <bruno@clisp.org>
16644
16645         dup3: cleanup
16646         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16647
16648 2011-04-30  Bruno Haible  <bruno@clisp.org>
16649
16650         netdb: Make it work in C++ mode.
16651         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16652         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16653         module.
16654         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16655         gl_MODULE_INDICATOR_FOR_TESTS.
16656         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16657         * modules/netdb-c++-tests: New file.
16658         * tests/test-netdb-c++.cc: New file.
16659
16660 2011-04-30  Bruno Haible  <bruno@clisp.org>
16661
16662         New modules 'vfscanf', 'vscanf'.
16663         * modules/vfscanf: New file.
16664         * modules/vscanf: New file.
16665         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16666         here.
16667         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16668         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16669
16670 2011-04-30  Bruno Haible  <bruno@clisp.org>
16671
16672         passfd: Add comments.
16673         * lib/passfd.c: Add comments about platforms.
16674
16675 2011-04-30  Bruno Haible  <bruno@clisp.org>
16676
16677         sys_uio: Make <sys/uio.h> self-contained.
16678         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16679         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16680
16681 2011-04-30  Bruno Haible  <bruno@clisp.org>
16682
16683         sys_socket: Ensure 'struct iovec' definition.
16684         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16685         <sys/socket.h>.
16686         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16687
16688 2011-04-30  Bruno Haible  <bruno@clisp.org>
16689
16690         sys_uio: Protect definition of 'struct iovec'.
16691         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16692         it as a C struct.
16693
16694 2011-04-30  Bruno Haible  <bruno@clisp.org>
16695
16696         manywarnings: fix indentation
16697         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16698
16699 2011-04-30  Pádraig Brady <P@draigBrady.com>
16700
16701         manywarnings: add -Wno-missing-field-initializers if needed.
16702         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16703         option if it's needed to allow initialization with { 0, }
16704
16705 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16706
16707         announce-gen: cosmetic improvement
16708         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16709
16710 2011-04-29  Jim Meyering  <meyering@redhat.com>
16711
16712         vc-list-files: indent with spaces, not TABs
16713         * build-aux/vc-list-files: Convert leading TABs to spaces,
16714         to match the style of most other files in gnulib.
16715
16716         announce-gen: indent with spaces, not TABs
16717         * build-aux/announce-gen: Convert all TABs to spaces, to match
16718         the style of most other files in gnulib.
16719
16720 2011-04-29  Eric Blake  <eblake@redhat.com>
16721
16722         quotearg: avoid uninitialized variable use
16723         * lib/quotearg.c (quoting_options_from_style): Initialize
16724         remaining fields, and ensure that custom styles are only used via
16725         quoting_options rather than quoting_style.
16726
16727 2011-04-29  Jim Meyering  <meyering@redhat.com>
16728
16729         maint.mk: remove unused VC-tag variable
16730         * top/maint.mk (VC-tag): Remove unused variable.
16731
16732 2011-04-29  Bruno Haible  <bruno@clisp.org>
16733
16734         netdb: fix gai_strerror replacements
16735         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16736         * modules/netdb: Substitute it.
16737
16738 2011-04-29  Jim Meyering  <meyering@redhat.com>
16739
16740         test-getcwd.c: avoid new set-but-not-used warning
16741         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16742         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16743         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16744         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16745
16746         test-hash.c: avoid a new shadowing warning
16747         * tests/test-hash.c (main): Don't shadow "dup".
16748
16749 2011-04-28  Eric Blake  <eblake@redhat.com>
16750
16751         getaddrinfo: fix gai_strerror signature
16752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16753         and work around mingw with UNICODE defined.
16754         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16755         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16756         * modules/netdb (Makefile.am): Substitute it.
16757         * lib/netdb.in.h (gai_strerror): Declare replacement.
16758         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16759         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16760         the fix.
16761
16762         getsockopt: avoid compiler warning
16763         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16764         Reported by Matthias Bolte.
16765
16766         tests: drop unused link dependency
16767         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16768         * modules/dirent-safer-tests (Makefile.am): Likewise.
16769         * modules/fdopendir-tests (Makefile.am): Likewise.
16770         * modules/mkfifoat-tests (Makefile.am): Likewise.
16771         * modules/openat-safer-tests (Makefile.am): Likewise.
16772         * modules/openat-tests (Makefile.am): Likewise.
16773         * modules/readlinkat-tests (Makefile.am): Likewise.
16774         * modules/symlinkat-tests (Makefile.am): Likewise.
16775         * modules/linkat-tests (Makefile.am): Likewise.
16776         (Depends-on): Switch to filenamecat-lgpl.
16777         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16778         LIBINTL.
16779         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16780         * tests/test-linkat.c (main): Don't require xalloc.
16781
16782         hash, mgetgroups: drop xalloc dependency
16783         * lib/hash.c (includes): Adjust includes.
16784         * lib/mgetgroups.c (includes): Likewise.
16785         (xgetgroups): Move...
16786         * lib/xgetgroups.c: ...to new file.
16787         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16788         * modules/xgetgroups: New file, split from...
16789         * modules/mgetgroups: ...here.
16790         (Depends-on): Add xalloc-oversized.
16791         * modules/hash (Depends-on): Likewise.
16792         * modules/hash-tests (Depends-on): Drop xalloc.
16793         (test_hash_LDADD): Drop unused library.
16794         * tests/test-hash.c (main): Break xalloc dependency.
16795         (includes): Drop unused include.
16796
16797         xalloc-oversized: new module
16798         * modules/xalloc-oversized: New module.
16799         * modules/xalloc (Depends-on): Add it.
16800         * lib/xalloc.h (xalloc_oversized): Move...
16801         * lib/xalloc-oversized.h: ...into new file.
16802
16803         utimecmp: drop dependency on xmalloc
16804         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16805         due to memory pressure.
16806         * modules/utimecmp (Depends-on): Drop xalloc.
16807
16808 2011-04-27  Eric Blake  <eblake@redhat.com>
16809
16810         getcwd: fix mingw bugs
16811         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16812         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16813         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16814
16815 2011-04-27  Bruno Haible  <bruno@clisp.org>
16816
16817         mkstemps: Ensure declaration on MacOS X 10.5.
16818         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16819         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16820         MacOS X.
16821
16822 2011-04-27  Bruno Haible  <bruno@clisp.org>
16823
16824         mkstemp: More documentation.
16825         * doc/posix-functions/mkstemp.texi: Document header file problem on
16826         MacOS X.
16827
16828 2011-04-27  Bruno Haible  <bruno@clisp.org>
16829
16830         mkstemp: Tweak configure message when cross-compiling.
16831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16832         result as a guess.
16833
16834 2011-04-27  Bruno Haible  <bruno@clisp.org>
16835
16836         clean-temp: Clarify what it does.
16837         * lib/clean-temp.h: Add more comments.
16838         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16839         module.
16840         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16841         * doc/glibc-functions/mkstemps.texi: Likewise.
16842         * doc/glibc-functions/mkostemps.texi: Likewise.
16843
16844 2011-04-27  Eric Blake  <eblake@redhat.com>
16845
16846         fchdir: avoid extra chdir and fix test
16847         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16848         getcwd-lgpl.
16849         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16850         have to be canonical.
16851         (canonicalize_file_name): Drop unused macro.
16852         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16853
16854         filenamecat-lgpl: fix licence
16855         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16856         when it was first created.
16857
16858         linkat, renameat: add missing dependency
16859         * modules/linkat (Depends-on): Require getcwd-lgpl.
16860         * modules/renameat (Depends-on): Likewise.
16861
16862         tests: reduce dependencies
16863         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16864         * tests/test-renameat.c (main): Likewise.
16865         * modules/linkat-tests (Depends-on): Relax dependency.
16866         * modules/renameat-tests (Depends-on): Likewise.
16867         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16868         dependency explicit.
16869
16870         save-cwd: reduce default dependency
16871         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16872         * lib/save-cwd.c: Update comments.
16873         * NEWS: Document the semantic change.
16874
16875         getcwd: enhance tests
16876         * tests/test-getcwd-lgpl.c: New file, taken from...
16877         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16878         repeat long path stress tests from m4 probe.
16879         * modules/getcwd-lgpl-tests: New module.
16880         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16881         * m4/getcwd-abort-bug.m4: Update comment.
16882         * m4/getcwd-path-max.m4: Likewise.
16883
16884         getcwd-lgpl: new module
16885         * modules/getcwd-lgpl: New module.
16886         * lib/getcwd-lgpl.c: New file.
16887         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16888         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16889         * modules/getcwd (configure.ac): Set C witness.
16890         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16891
16892         getcwd: tweak comments
16893         * m4/getcwd-abort-bug.m4: Fix comments.
16894         * m4/getcwd-path-max.m4: Likewise.
16895         * m4/getcwd.m4: Likewise.
16896
16897 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16898         and Eric Blake  <eblake@redhat.com>
16899
16900         mkstemp: replace if system version uses wrong permissions
16901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16902         read/write mode bits set in file created by mkstemp.
16903         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16904
16905 2011-04-27  Eric Blake  <eblake@redhat.com>
16906
16907         passfd: avoid compiler warning
16908         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16909         Reported by Laine Stump.
16910
16911 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16912
16913         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16914         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16915
16916 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16917         and Eric Blake  <eblake@redhat.com>
16918
16919         mkstemp: mention clean-temp module
16920         * lib/mkstemp.c: Add comment.
16921         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16922
16923 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16924
16925         inttypes: also provide default values for 32-bit tests
16926         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16927         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16928
16929 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16930
16931         strtoumax: remove dependency on strtoimax
16932         This is like the strtoull change of yesterday.
16933         * modules/strtoumax (Files): Add lib/strtoimax.c.
16934         (Depends-on): Remove strtoimax and add verify.
16935
16936         inttypes-incomplete: new module
16937         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16938         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16939         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16940         of gl_INTTYPES_H.
16941         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16942         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16943         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16944         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16945         * modules/strtoumax, modules/xstrtol (Depends-on):
16946         Depend on inttypes-incomplete, not inttypes.
16947         * modules/inttypes-incomplete: New module, containing the contents
16948         of the old modules/inttypes module, except that the Files: section
16949         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16950         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16951         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16952         (Depends-on): Depend only on inttypes-incomplete.
16953         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16954
16955         inttypes: omit now-redundant strtoimax and strtoumax work
16956         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16957         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16958
16959         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16960         This supports apps that need pointers to strtoimax and strtoumax,
16961         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16962         nonexistent functions.  See
16963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16964         et seq.
16965         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16966         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16967         a macro.
16968         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16969
16970 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16971
16972         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16973
16974 2011-04-25  Bruno Haible  <bruno@clisp.org>
16975
16976         strtol, strtoul: Mark modules as obsolete.
16977         * modules/strtol (Status, Notice): New sections.
16978         * modules/strtoul (Status, Notice): New sections.
16979
16980 2011-04-25  Bruno Haible  <bruno@clisp.org>
16981
16982         strtod: Remove check for strtod, unless supporting old platforms.
16983         * modules/strtod-obsolete: New file.
16984         * m4/strtod-obsolete.m4: New file.
16985         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16986         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16987         * modules/strtod (Depends-on): Add strtod-obsolete.
16988         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16989
16990 2011-04-25  Bruno Haible  <bruno@clisp.org>
16991
16992         strcase: Make module obsolete.
16993         * modules/strcase (Status, Notice): New sections.
16994
16995 2011-04-25  Bruno Haible  <bruno@clisp.org>
16996
16997         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16998         * modules/dup2-obsolete: New file.
16999         * m4/dup2-obsolete.m4: New file.
17000         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17001         gl_FUNC_DUP2_OBSOLETE is not also defined.
17002         * modules/dup2 (Depends-on): Add dup2-obsolete.
17003         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17004
17005 2011-04-25  Bruno Haible  <bruno@clisp.org>
17006
17007         strnlen: Avoid memchr related link error on old obsolete platforms.
17008         * modules/memchr-obsolete: New file.
17009         * m4/memchr-obsolete.m4: New file.
17010         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17011         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17012         * modules/memchr (Depends-on): Add memchr-obsolete.
17013         * modules/strnlen (Depends-on): Likewise.
17014         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17015
17016 2011-04-25  Jim Meyering  <meyering@redhat.com>
17017
17018         maint.mk: makefile_at_at_check extend and clean up
17019         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17020         in addition to */Makefile.am.
17021         Exempt legitimate uses of @VAR@ notation, e.g.,
17022         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17023         Remove obsolete coreutils-specific comment.
17024         Prompted by discussion here:
17025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17026
17027 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17028
17029         strtoul: remove dependency on strtol
17030         This is so that 'configure' need not check for strtol merely because
17031         the application needs strtoul.
17032         * modules/strtoul (Files): Add lib/strtol.c.
17033         (Depends-on): Remove strtol.
17034
17035         strtoull: remove dependency on strtoul
17036         This is like the strtoll change.
17037         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17038         (Depends-on): Remove strtoul.
17039
17040         strtoll: remove dependency on strtol
17041         This is so that 'configure' need not check for strtol merely because
17042         the application needs strtoll.
17043         * modules/strtoll (Files): Add lib/strtol.c.
17044         (Depends-on): Remove strtol.
17045
17046 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17047
17048         inttypes: Move some configure check to module 'imaxdiv'.
17049         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17050         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17051         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17052
17053 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17054
17055         inttypes: Move some configure check to module 'imaxabs'.
17056         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17057         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17058         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17059
17060 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17061
17062         inttypes: Remove configure tests that are not needed since 2009-12-31.
17063         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17064         gl_cv_header_working_inttypes_h.
17065
17066 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17067
17068         * modules/strnlen (Depends-on): Remove memchr.
17069         The strnlen implementation doesn't need the memchr module's fixes; see
17070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17071
17072         strtol: remove dependency on wchar
17073         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17074         * modules/strtol (Depends-on): Remove wchar.
17075
17076 2011-04-21  Eric Blake  <eblake@redhat.com>
17077
17078         passfd: fix test regression on Linux
17079         * modules/passfd-tests (configure.ac): Correct socketpair check.
17080
17081         passfd: speed up configure and drop unused code
17082         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17083         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17084         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17085         Instead of probing at configure for unix_scm_rights_bsd44_way,
17086         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17087         check to a struct member probe.
17088         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17089         (sendfd, recvfd): Update preprocessor checks.
17090         * modules/passfd (Files): Reflect rename, and drop unused file.
17091         (Depends-on): Drop unused dependency.
17092
17093         passfd: allow compilation on mingw
17094         * modules/sys_socket (Depends-on): Add sys_uio.
17095         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17096         iovec and a minimal struct msghdr.
17097         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17098         * tests/test-sys_socket.c (main): Enhance test.
17099         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17100         guaranteed to provide what we need.
17101         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17102         * modules/passfd-tests (Depends-on): Add sys_wait.
17103         * tests/test-passfd.c (main): Skip test on mingw, for now.
17104         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17105         partial 'struct msghdr' implementation.
17106
17107         sys_uio: new module
17108         * modules/sys_uio: New module.
17109         * modules/sys_uio-tests: Likewise.
17110         * lib/sys_uio.in.h: New file.
17111         * m4/sys_uio_h.m4: Likewise.
17112         * tests/test-sys_uio.c: Likewise.
17113         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17114         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17115
17116 2011-04-20  Jim Meyering  <meyering@redhat.com>
17117
17118         useless-if-before-free: avoid false-positive
17119         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17120         disjunct so that it too requires a terminating ";".  Without that,
17121         this script would identify as useless one statement from gcc that
17122         was not:
17123           if (aligned_ptr)
17124             free (((void **) aligned_ptr) [-1]);
17125
17126 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17127
17128         doc: update users.txt.
17129         * users.txt: Add barcode.
17130
17131 2011-04-19  Bruno Haible  <bruno@clisp.org>
17132
17133         ioctl: Remove link dependency on native Windows.
17134         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17135         (gl_close_fn, gl_ioctl_fn): New types.
17136         (struct fd_hook): Renamed from struct close_hook. Change type of
17137         private_close_fn field. Add private_ioctl_fn field.
17138         (close_hook_fn): Add parameter for primary close method.
17139         (execute_close_hooks, execute_all_close_hooks): Likewise.
17140         (ioctl_hook_fn): New type.
17141         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17142         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17143         argument.
17144         (unregister_fd_hook): Renamed from unregister_close_hook.
17145         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17146         Don't include <unistd.h>.
17147         (close): Remove undef.
17148         (anchor): Update.
17149         (execute_close_hooks): Add argument for primary close method.
17150         (execute_all_close_hooks): Likewise.
17151         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17152         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17153         argument. Allow each argument to be NULL.
17154         (unregister_fd_hook): Renamed from unregister_close_hook.
17155         * lib/close.c (rpl_close): Pass 'close' function pointer to
17156         execute_all_close_hooks.
17157         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17158         (primary_ioctl): New function.
17159         (ioctl): Don't call ioctlsocket here. Instead, call
17160         execute_all_ioctl_hooks.
17161         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17162         close method.
17163         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17164         (fd_sockets_hook): Renamed from close_sockets_hook.
17165         (gl_sockets_startup, gl_sockets_cleanup): Update.
17166         * modules/fd-hook: Renamed from modules/close-hook. Update.
17167         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17168         * modules/sockets (Depends-on): Likewise.
17169         * modules/ioctl (Depends-on): Add fd-hook.
17170         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17171         GNULIB_SOCKET.
17172
17173 2011-04-19  Bruno Haible  <bruno@clisp.org>
17174
17175         Move the support of O_NONBLOCK in open() to the 'open' module.
17176         * modules/nonblocking (Depends-on): Remove 'open'.
17177         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17178         gl_cv_have_open_O_NONBLOCK.
17179         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17180         O_NONBLOCK support.
17181         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17182
17183 2011-04-17  Bruno Haible  <bruno@clisp.org>
17184
17185         pipe2: Simplify code.
17186         * lib/pipe2.c (pipe2): Reduce code duplication.
17187
17188 2011-04-17  Bruno Haible  <bruno@clisp.org>
17189
17190         nonblocking: Add comment.
17191         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17192
17193 2011-04-17  Bruno Haible  <bruno@clisp.org>
17194
17195         nonblocking: Add tests for sockets.
17196         * tests/test-nonblocking-socket.sh: New file.
17197         * tests/test-nonblocking-socket-main.c: New file.
17198         * tests/test-nonblocking-socket-child.c: New file.
17199         * tests/test-nonblocking-socket.h: New file.
17200         * tests/socket-server.h: New file.
17201         * tests/socket-client.h: New file.
17202         * modules/nonblocking-socket-tests: New file.
17203         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17204
17205 2011-04-17  Bruno Haible  <bruno@clisp.org>
17206
17207         nonblocking: Add tests for pipes.
17208         * tests/test-nonblocking-pipe.sh: New file.
17209         * tests/test-nonblocking-pipe-main.c: New file.
17210         * tests/test-nonblocking-pipe-child.c: New file.
17211         * tests/test-nonblocking-pipe.h: New file.
17212         * tests/test-nonblocking-writer.h: New file.
17213         * tests/test-nonblocking-reader.h: New file.
17214         * tests/test-nonblocking-misc.h: New file.
17215         * modules/nonblocking-pipe-tests: New file.
17216         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17217
17218 2011-04-16  Bruno Haible  <bruno@clisp.org>
17219
17220         gettext: Clarify the needed programmer actions.
17221         * modules/gettext (Notice): New field.
17222         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17223
17224 2011-04-16  Bruno Haible  <bruno@clisp.org>
17225
17226         strchrnul: Tweak last commit.
17227         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17228         bug.
17229         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17230         as in _GL_FUNCDECL_SYS.
17231         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17232         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17233
17234 2011-04-15  Eric Blake  <eblake@redhat.com>
17235
17236         strchrnul: work around cygwin bug
17237         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17238         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17240         * modules/string (Makefile.am): Substitute it.
17241         * lib/string.in.h (strchrnul): Use it.
17242
17243 2011-04-15  Bruno Haible  <bruno@clisp.org>
17244
17245         Don't require lib/stdio-write.c when only module 'stdio' is used.
17246         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17247         invocation.
17248         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17249
17250 2011-04-14  Bruno Haible  <bruno@clisp.org>
17251
17252         Support non-blocking pipe I/O in read() on native Windows.
17253         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17254         (read): New declaration.
17255         * lib/read.c: New file.
17256         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17257         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17258         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17259         vscanf): New declarations.
17260         * lib/stdio-read.c: New file.
17261         * m4/read.m4: New file.
17262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17263         REPLACE_READ.
17264         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17265         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17266         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17267         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17268         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17269         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17270         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17271         * modules/read: New file.
17272         * modules/nonblocking (Files): Add lib/stdio-read.c.
17273         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17274         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17275         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17276         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17277         * modules/pread (Depends-on): Add read.
17278         * modules/safe-read (Depends-on): Likewise.
17279         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17280         gets, scanf, vfscanf, vscanf): Verify signatures.
17281         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17282         problem with non-blocking pipes.
17283         * doc/posix-functions/fgetc.texi: Likewise.
17284         * doc/posix-functions/fgets.texi: Likewise.
17285         * doc/posix-functions/fread.texi: Likewise.
17286         * doc/posix-functions/fscanf.texi: Likewise.
17287         * doc/posix-functions/getc.texi: Likewise.
17288         * doc/posix-functions/getchar.texi: Likewise.
17289         * doc/posix-functions/gets.texi: Likewise.
17290         * doc/posix-functions/scanf.texi: Likewise.
17291         * doc/posix-functions/vfscanf.texi: Likewise.
17292         * doc/posix-functions/vscanf.texi: Likewise.
17293
17294 2011-04-14  Bruno Haible  <bruno@clisp.org>
17295
17296         Support non-blocking pipe I/O in write() on native Windows.
17297         * lib/write.c (rpl_write): Split a write request that failed merely
17298         because the byte count was larger than the pipe buffer's size.
17299         * doc/posix-functions/write.texi: Mention the problem with large byte
17300         counts.
17301
17302 2011-04-14  Bruno Haible  <bruno@clisp.org>
17303
17304         wchar: Ensure that wchar_t gets defined on uClibc.
17305         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17306         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17307
17308 2011-04-13  Bruno Haible  <bruno@clisp.org>
17309
17310         safe-write, full-read: Avoid unnecessary compilation units.
17311         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17312         (Depends-on): Remove safe-read. Add ssize_t.
17313         * modules/full-read (Files): Add lib/full-write.c.
17314         (Depends-on): Add full-write.
17315
17316 2011-04-13  Bruno Haible  <bruno@clisp.org>
17317
17318         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17319         * modules/pwrite (Depends-on): Add 'write'.
17320
17321 2011-04-13  Bruno Haible  <bruno@clisp.org>
17322
17323         Support non-blocking pipe I/O in write() on native Windows.
17324         * lib/unistd.in.h (write): Enable replacement also if
17325         GNULIB_UNISTD_H_NONBLOCKING is 1.
17326         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17327         (rpl_write): When failing to write on a non-blocking pipe, change
17328         errno from ENOSPC to EAGAIN.
17329         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17330         putchar, puts, vfprintf, vprintf): Enable replacement also if
17331         GNULIB_STDIO_H_NONBLOCKING is 1.
17332         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17333         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17334         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17335         CALL_WITH_SIGPIPE_EMULATION.
17336         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17337         * m4/nonblocking.m4: New file.
17338         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17339         for non-blocking I/O support.
17340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17341         GNULIB_UNISTD_H_NONBLOCKING.
17342         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17343         required for non-blocking I/O support.
17344         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17345         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17346         lib/stdio-write.c, m4/asm-underscore.m4.
17347         (Depends-on): Add stdio, unistd.
17348         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17349         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17350         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17351         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17352         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17353         problem with non-blocking pipes.
17354         * doc/posix-functions/fputc.texi: Likewise.
17355         * doc/posix-functions/fputs.texi: Likewise.
17356         * doc/posix-functions/fwrite.texi: Likewise.
17357         * doc/posix-functions/printf.texi: Likewise.
17358         * doc/posix-functions/putc.texi: Likewise.
17359         * doc/posix-functions/putchar.texi: Likewise.
17360         * doc/posix-functions/puts.texi: Likewise.
17361         * doc/posix-functions/vfprintf.texi: Likewise.
17362         * doc/posix-functions/vprintf.texi: Likewise.
17363         * doc/posix-functions/write.texi: Likewise.
17364
17365 2011-04-10  Jim Meyering  <meyering@redhat.com>
17366
17367         maint.mk: prohibit doubled words
17368         Detect them also when they're separated by a newline.
17369         There are 3 ways to customize it:
17370           - disable the test on a per file basis, as usual with rules using
17371             $(VC_LIST_EXCEPT)
17372           - replace the default doubled-word-selecting regexp (affects all files)
17373           - ignore a particular file-vs-doubled-word match
17374         I nearly used that last one to ignore the "is is" match in
17375         coreutils' NEWS file, since the text was "ls -is is ..."
17376         To do that, I would have added this line to cfg.mk:
17377           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17378         but it would have ignored any "is is" match in NEWS.
17379         Low probability, but still...
17380         Instead, I changed the text, slightly:
17381           -  ls -is is now consistent with ls -lis in ignoring values returned
17382           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17383         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17384         (prohibit_doubled_word_): Define.
17385         (sc_prohibit_doubled_word): New rule.
17386         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17387
17388 2011-04-10  Jim Meyering  <meyering@redhat.com>
17389
17390         maint: fix doubled-word typo in comment
17391         * m4/gethostname.m4: s/is is/it is/
17392         * m4/getdomainname.m4: Likewise.
17393
17394 2011-04-10  Jim Meyering  <meyering@redhat.com>
17395
17396         maint: remove doubled word: s/it it/it/
17397         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17398
17399 2011-04-10  Jim Meyering  <meyering@redhat.com>
17400
17401         maint.mk: remove useless semicolon and backslash
17402         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17403         semicolon and backslash.
17404
17405 2011-04-10  Bruno Haible  <bruno@clisp.org>
17406
17407         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17408         * modules/stdint-tests (Depends-on): Add wchar.
17409
17410 2011-04-10  Jim Meyering  <meyering@redhat.com>
17411
17412         maint: remove doubled words in comments, e.g., s/a a/a/
17413         * lib/strptime.c (day_of_the_week): s/the the/the/
17414         * tests/test-chown.h (test_chown): s/a a/a/
17415
17416         test-chown.h: correct a cast
17417         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17418         when the destination is a stat.st_gid.
17419
17420 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17421
17422         getaddrinfo: Fix test for sa_len member.
17423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17424         include <sys/types.h> before <sys/socket.h>.
17425
17426 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17427
17428         maint: change "can not" to "cannot"
17429         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17430         boundaries.
17431
17432 2011-04-09  Jim Meyering  <meyering@redhat.com>
17433
17434         maint: change "a a" to "a"
17435         * tests/test-lchown.h (test_lchown): s/a a/a/
17436
17437         maint.mk: prohibit \<the the\>
17438         * top/maint.mk (sc_prohibit_the_the): New rule.
17439
17440         maint: fix "the the" in comment
17441         * lib/count-one-bits.h: s/the the/the/
17442
17443         maint: change "can not" to "cannot"
17444         But do not change the occurrences in maintain.texi or in
17445         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17446         * doc/gnulib-tool.texi: s/can not/cannot/
17447         * doc/posix-functions/accept.texi (accept): Likewise.
17448         * doc/posix-functions/socket.texi (socket): Likewise.
17449         * lib/mbrtowc.c: Likewise.
17450
17451         maint.mk: prohibit use of "can not"
17452         * top/maint.mk (sc_prohibit_can_not): New rule.
17453         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17454
17455 2011-04-09  Bruno Haible  <bruno@clisp.org>
17456
17457         careadlinkat: Guard against misuse of careadlinkatcwd.
17458         * lib/careadlinkat.c: Include <stdlib.h>.
17459         (careadlinkatcwd): Check that the fd argument is as expected.
17460
17461 2011-04-09  Bruno Haible  <bruno@clisp.org>
17462
17463         careadlinkat: Use common coding style.
17464         * lib/careadlinkat.c: Move gnulib includes after system includes.
17465
17466 2011-04-09  Bruno Haible  <bruno@clisp.org>
17467
17468         careadlinkat: Clarify specification.
17469         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17470         (careadlinkatcwd): Add comment.
17471         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17472
17473 2011-04-09  Bruno Haible  <bruno@clisp.org>
17474
17475         areadlinkat: Avoid link error on many platforms.
17476         * modules/areadlinkat (Depends-on): Add areadlink.
17477
17478 2011-04-09  Bruno Haible  <bruno@clisp.org>
17479
17480         allocator, careadlinkat: Fix double-inclusion guard.
17481         * lib/allocator.h: Fix double-inclusion guard.
17482         * lib/careadlinkat.h: Likewise.
17483
17484 2011-04-09  Bruno Haible  <bruno@clisp.org>
17485
17486         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17487         * lib/relocwrapper.c: Update dependencies hierarchy.
17488         * build-aux/install-reloc: Update list of files to be compiled.
17489         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17490         lib/allocator.[hc].
17491
17492 2011-04-08  Eric Blake  <eblake@redhat.com>
17493
17494         strftime: silence gnulib-tool warning
17495         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17496
17497 2011-04-08  Bruno Haible  <bruno@clisp.org>
17498
17499         verify: Fix syntax error with GCC 4.6 in C++ mode.
17500         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17501         (HAVE_STATIC_ASSERT): New macro.
17502         (verify_true, verify): Use 'static_assert' if it is supported and
17503         '_Static_assert' is not supported.
17504
17505 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17506
17507         allocator: New module.
17508         * modules/allocator, lib/allocator.c: New files.
17509         * lib/allocator.h (stdlib_allocator): New decl.
17510         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17511         Remove.  Do not include <stdlib.h>.
17512         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17513         * modules/careadlinkat (Files): Remove lib/allocator.h.
17514         (Depends-on): Add allocator.
17515
17516         stdlib: let modules use system malloc, realloc
17517         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17518         if !_GL_USE_STDLIB_ALLOC.
17519         (malloc, realloc): Limit this change to a smaller scope.
17520
17521         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17522         (malloc, realloc): Don't #undef; no longer needed.
17523         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17524         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17525         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17526         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17527         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17528         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17529         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17530         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17531
17532         careadlinkat: rename members to avoid problem
17533         * lib/allocator.h (struct allocator): Rename members from
17534         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17535         and realloc are #define'd.  Reported by Eric Blake in
17536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17537         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17538
17539 2011-04-08  Eric Blake  <eblake@redhat.com>
17540
17541         nonblocking: reduce dependency
17542         * tests/test-nonblocking.c: Only test sockets when in use.
17543         * modules/nonblocking-tests (Depends-on): Drop socket.
17544         (Makefile.am): Link even if sockets are not present.
17545         * modules/pipe2-tests (Makefile.am): Likewise.
17546         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17547
17548         pipe2: fix O_NONBLOCK support on mingw
17549         * modules/pipe2 (Depends-on): Add nonblocking.
17550         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17551         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17552         * tests/test-nonblocking.c (main): Likewise.
17553         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17554
17555         fcntl-h: fix O_ACCMODE on cygwin
17556         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17557         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17558
17559         pipe-filter: drop O_NONBLOCK workarounds
17560         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17561         * modules/pipe-filter-ii (Depends-on): Likewise.
17562         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17563
17564         nonblocking: provide O_NONBLOCK for mingw
17565         * modules/nonblocking (Depends-on): Add open.
17566         (configure.ac): Set new witness macro.
17567         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17568         * modules/fcntl-h (Makefile.am): Substitute it.
17569         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17570         nonblocking module is in use.
17571         * lib/nonblocking.c: Adjust portability test.
17572         * lib/open.c (open): Don't let native open see gnulib flag.
17573         * tests/test-fcntl-h.c (main): Enhance test.
17574         * tests/test-open.h (test_open): Likewise.
17575         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17576
17577         careadlinkat: fix compilation error on mingw
17578         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17579         within struct allocator.
17580
17581 2011-04-06  Eric Blake  <eblake@redhat.com>
17582
17583         binary-io: relicense under LGPLv2+
17584         * modules/binary-io (License): Relax to LGPLv2+.
17585         Requested for libvirt, and required by pipe2.
17586
17587 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17588
17589         verify: use _Static_assert if available
17590         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17591         (verify_true, verify): Use it if available.  This generates better
17592         diagnostics with GCC 4.6.0 and later.
17593
17594 2011-04-05  Bruno Haible  <bruno@clisp.org>
17595
17596         Remove leftover generated .h files after config.status changed.
17597
17598         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17599         GL_GENERATE_ALLOCA_H.
17600         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17601         GL_GENERATE_ALLOCA_H evaluates to false.
17602
17603         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17604         GL_GENERATE_ARGZ_H.
17605         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17606         evaluates to false.
17607
17608         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17609         GL_GENERATE_BYTESWAP_H.
17610         * modules/byteswap (Makefile.am): Remove byteswap.h if
17611         GL_GENERATE_BYTESWAP_H evaluates to false.
17612
17613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17614         GL_GENERATE_ERRNO_H.
17615         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17616         evaluates to false.
17617
17618         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17619         GL_GENERATE_FLOAT_H.
17620         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17621         evaluates to false.
17622
17623         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17624         GL_GENERATE_FNMATCH_H.
17625         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17626         GL_GENERATE_FNMATCH_H evaluates to false.
17627
17628         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17629         GL_GENERATE_GLOB_H.
17630         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17631         evaluates to false.
17632
17633         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17634         automake conditional GL_GENERATE_ICONV_H.
17635         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17636         evaluates to false.
17637
17638         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17639         GL_GENERATE_NETINET_IN_H.
17640         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17641         GL_GENERATE_NETINET_IN_H evaluates to false.
17642
17643         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17644         conditional GL_GENERATE_PTHREAD_H.
17645         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17646         * modules/pthread (Makefile.am): Remove pthread.h if
17647         GL_GENERATE_PTHREAD_H evaluates to false.
17648
17649         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17650         GL_GENERATE_SCHED_H.
17651         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17652         evaluates to false.
17653
17654         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17655         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17656         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17657         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17658
17659         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17660         GL_GENERATE_STDARG_H.
17661         * modules/stdarg (Makefile.am): Remove stdarg.h if
17662         GL_GENERATE_STDARG_H evaluates to false.
17663
17664         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17665         GL_GENERATE_STDBOOL_H.
17666         * modules/stdbool (Makefile.am): Remove stdbool.h if
17667         GL_GENERATE_STDBOOL_H evaluates to false.
17668
17669         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17670         conditional GL_GENERATE_STDDEF_H.
17671         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17672         * modules/stddef (Makefile.am): Remove stddef.h if
17673         GL_GENERATE_STDDEF_H evaluates to false.
17674
17675         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17676         GL_GENERATE_STDINT_H.
17677         * modules/stdint (Makefile.am): Remove stdint.h if
17678         GL_GENERATE_STDINT_H evaluates to false.
17679
17680         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17681         GL_GENERATE_SYSEXITS_H.
17682         * modules/sysexits (Makefile.am): Remove sysexits.h if
17683         GL_GENERATE_SYSEXITS_H evaluates to false.
17684
17685         Reported by Karl Berry and Ralf Wildenhues.
17686
17687 2011-04-05  Bruno Haible  <bruno@clisp.org>
17688
17689         Ensure to rebuild generated .h files when config.status has changed.
17690         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17691         config.status.
17692         * modules/ctype (Makefile.am): Likewise.
17693         * modules/dirent (Makefile.am): Likewise.
17694         * modules/errno (Makefile.am): Likewise.
17695         * modules/fcntl-h (Makefile.am): Likewise.
17696         * modules/float (Makefile.am): Likewise.
17697         * modules/getopt-posix (Makefile.am): Likewise.
17698         * modules/glob (Makefile.am): Likewise.
17699         * modules/iconv-h (Makefile.am): Likewise.
17700         * modules/inttypes (Makefile.am): Likewise.
17701         * modules/langinfo (Makefile.am): Likewise.
17702         * modules/locale (Makefile.am): Likewise.
17703         * modules/math (Makefile.am): Likewise.
17704         * modules/netdb (Makefile.am): Likewise.
17705         * modules/netinet_in (Makefile.am): Likewise.
17706         * modules/poll-h (Makefile.am): Likewise.
17707         * modules/pthread (Makefile.am): Likewise.
17708         * modules/pty (Makefile.am): Likewise.
17709         * modules/sched (Makefile.am): Likewise.
17710         * modules/search (Makefile.am): Likewise.
17711         * modules/selinux-h (Makefile.am): Likewise.
17712         * modules/signal (Makefile.am): Likewise.
17713         * modules/spawn (Makefile.am): Likewise.
17714         * modules/stdarg (Makefile.am): Likewise.
17715         * modules/stdbool (Makefile.am): Likewise.
17716         * modules/stddef (Makefile.am): Likewise.
17717         * modules/stdint (Makefile.am): Likewise.
17718         * modules/stdio (Makefile.am): Likewise.
17719         * modules/stdlib (Makefile.am): Likewise.
17720         * modules/string (Makefile.am): Likewise.
17721         * modules/strings (Makefile.am): Likewise.
17722         * modules/sys_file (Makefile.am): Likewise.
17723         * modules/sys_ioctl (Makefile.am): Likewise.
17724         * modules/sys_select (Makefile.am): Likewise.
17725         * modules/sys_socket (Makefile.am): Likewise.
17726         * modules/sys_stat (Makefile.am): Likewise.
17727         * modules/sys_time (Makefile.am): Likewise.
17728         * modules/sys_times (Makefile.am): Likewise.
17729         * modules/sys_utsname (Makefile.am): Likewise.
17730         * modules/sys_wait (Makefile.am): Likewise.
17731         * modules/sysexits (Makefile.am): Likewise.
17732         * modules/termios (Makefile.am): Likewise.
17733         * modules/time (Makefile.am): Likewise.
17734         * modules/unistd (Makefile.am): Likewise.
17735         * modules/wchar (Makefile.am): Likewise.
17736         * modules/wctype-h (Makefile.am): Likewise.
17737         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17738
17739 2011-04-05  Bruno Haible  <bruno@clisp.org>
17740
17741         pipe2: Relicense under LGPLv2+.
17742         * modules/pipe2 (License): Change to LGPLv2+.
17743         Requested by Eric Blake, for libvirt.
17744
17745 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17746
17747         bootstrap: compute gnulib_extra_files after updating build_aux
17748         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17749         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17750
17751 2011-04-05  Eric Blake  <eblake@redhat.com>
17752
17753         bootstrap: preserve git whitelist item sorting
17754         * build-aux/bootstrap (sort_patterns): New function.
17755         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17756
17757 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17758
17759         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17760         sc_space_tab check.
17761
17762 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17763
17764         areadlink, areadlinkat: rewrite in terms of careadlinkat
17765         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17766         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17767         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17768         (malloc, realloc): Remove #undefs.
17769         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17770         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17771         readlink, ssize_t, stdint, unistd.
17772         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17773         areadlink, stdint.
17774
17775         careadlinkat: new module
17776         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17777         * modules/careadlinkat: New files, written by me with
17778         a review and feedback from Ben Pfaff in
17779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17780
17781 2011-04-01  Bruno Haible  <bruno@clisp.org>
17782
17783         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17784         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17785         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17786         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17787         Reported by Bruce Korb <bruce.korb@gmail.com>.
17788
17789 2011-04-01  Bruno Haible  <bruno@clisp.org>
17790
17791         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17792         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17793         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17794         * modules/wcpcpy (Depends-on): Add extensions.
17795         * modules/wcpncpy (Depends-on): Likewise.
17796         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17797         systems.
17798         * doc/posix-functions/wcpncpy.texi: Likewise.
17799         * doc/posix-functions/wcwidth.texi: Likewise.
17800
17801 2011-03-31  Eric Blake  <eblake@redhat.com>
17802
17803         nonblocking: fix mingw test failures
17804         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17805         non-blocking flag on regular file.
17806         (get_nonblocking_flag): Set errno on invalid fd.
17807         * tests/test-nonblocking.c (main): Avoid test failure on
17808         directories if fchdir is not active.
17809         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17810
17811 2011-03-31  Bruno Haible  <bruno@clisp.org>
17812
17813         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17814         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17815         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17816         Reported by Simon Josefsson <simon@josefsson.org>.
17817
17818 2011-03-31  Bruno Haible  <bruno@clisp.org>
17819         and Eric Blake  <eblake@redhat.com>
17820
17821         nonblocking: new module
17822         * modules/nonblocking: New module.
17823         * modules/nonblocking-tests: Likewise.
17824         * lib/nonblocking.h: New file.
17825         * lib/nonblocking.c: Likewise.
17826         * tests/test-nonblocking.c: New test.
17827         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17828
17829 2011-03-30  Bruno Haible  <bruno@clisp.org>
17830
17831         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17832         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17833         instead of 'printf' format for GCC >= 4.4.
17834         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17835         (fprintf, printf, vfprintf, vprintf): Declare with
17836         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17837         the system's vfprintf() function.
17838         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17839
17840 2011-03-30  Eric Blake  <eblake@redhat.com>
17841
17842         passfd: fix scoping bug
17843         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17844         before sendmsg/recvmsg.
17845
17846         passfd: standardize coding conventions
17847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17848         can be learned at compile time.
17849         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17850         ifdefs.
17851         (sendfd, recvfd): Follow gnulib code conventions.
17852
17853         passfd: fix incorrect sendmsg arguments
17854         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17855         incorrect msg_controllen value.
17856         * modules/passfd-tests (Depends-on): Check for alarm.
17857         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17858         Reported by Bastien ROUCARIES.
17859
17860 2011-03-30  Bruno Haible  <bruno@clisp.org>
17861
17862         c-strcasestr: Relicense under LGPLv2+.
17863         * modules/c-strcasestr (License): Change to LGPLv2+.
17864         Requested by Eric Blake, for libvirt.
17865
17866 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17867
17868         * users.txt: Add libidn2.  Fix libtasn1 link.
17869
17870 2011-03-30  Jim Meyering  <meyering@redhat.com>
17871
17872         tests: readlink* ("",... fails with EINVAL on newer kernels
17873         readlink and readlinkat have typically failed with ENOENT for
17874         the invalid, empty file name,  "".  However, with the advent
17875         of linux-2.6.39, they fail with EINVAL.
17876         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17877         when operating on the empty file name.
17878         * tests/test-readlink.h (test_readlink): Likewise.
17879
17880 2011-03-29  Bruno Haible  <bruno@clisp.org>
17881
17882         Relicense some modules under LGPLv2+, for libidn2.
17883         * modules/array-mergesort (License): Change to LGPLv2+.
17884         * modules/c-strcaseeq (License): Likewise.
17885         * modules/striconveh (License): Likewise.
17886         * modules/striconveha (License): Likewise.
17887         * modules/uniconv/base (License): Likewise.
17888         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17889         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17890         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17891         * modules/unictype/base (License): Likewise.
17892         * modules/unictype/bidiclass-of (License): Likewise.
17893         * modules/unictype/category-M (License): Likewise.
17894         * modules/unictype/category-none (License): Likewise.
17895         * modules/unictype/category-of (License): Likewise.
17896         * modules/unictype/category-test (License): Likewise.
17897         * modules/unictype/category-test-withtable (License): Likewise.
17898         * modules/unictype/combining-class (License): Likewise.
17899         * modules/unictype/joiningtype-of (License): Likewise.
17900         * modules/unictype/scripts (License): Likewise.
17901         * modules/uninorm/base (License): Likewise.
17902         * modules/uninorm/canonical-decomposition (License): Likewise.
17903         * modules/uninorm/composition (License): Likewise.
17904         * modules/uninorm/decompose-internal (License): Likewise.
17905         * modules/uninorm/decomposition-table (License): Likewise.
17906         * modules/uninorm/nfc (License): Likewise.
17907         * modules/uninorm/nfd (License): Likewise.
17908         * modules/uninorm/u32-normalize (License): Likewise.
17909         * modules/unistr/base (License): Likewise.
17910         * modules/unistr/u32-cpy (License): Likewise.
17911         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17912         * modules/unistr/u32-to-u8 (License): Likewise.
17913         * modules/unistr/u32-uctomb (License): Likewise.
17914         * modules/unistr/u8-check (License): Likewise.
17915         * modules/unistr/u8-mblen (License): Likewise.
17916         * modules/unistr/u8-mbtouc (License): Likewise.
17917         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17918         * modules/unistr/u8-mbtoucr (License): Likewise.
17919         * modules/unistr/u8-prev (License): Likewise.
17920         * modules/unistr/u8-strlen (License): Likewise.
17921         * modules/unistr/u8-to-u32 (License): Likewise.
17922         * modules/unistr/u8-uctomb (License): Likewise.
17923         * modules/unitypes (License): Likewise.
17924         Requested by Simon Josefsson.
17925
17926 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17927
17928         lib-symbol-visibility: Add a notice.
17929         * modules/lib-symbol-visibility (Notice): New field.
17930
17931 2011-03-29  Bruno Haible  <bruno@clisp.org>
17932
17933         getaddrinfo: Doc fix.
17934         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17935         section "fixed in Gnulib".
17936
17937 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17938
17939         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17940         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17941
17942 2011-03-26  Bruno Haible  <bruno@clisp.org>
17943
17944         unictype/property-byname: Reduce the number of load-time relocations.
17945         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17946         (UC_PROPERTY_INDEX_*): New enumeration values.
17947         (uc_property_byname): Convert an index from the lookup table to an
17948         uc_property_t.
17949         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17950         values.
17951
17952 2011-03-26  Bruno Haible  <bruno@clisp.org>
17953
17954         unictype/property-byname: Allow omitted word separators and aliases.
17955         * lib/unictype/pr_byname.gperf: Add property names without word
17956         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17957         for 'space'.
17958
17959 2011-03-26  Bruno Haible  <bruno@clisp.org>
17960
17961         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17962         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17963         also hyphens to space.
17964         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17965         without spaces.
17966         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17967
17968 2011-03-26  Bruno Haible  <bruno@clisp.org>
17969
17970         unictype/joiningtype-byname: Recognize long names as well.
17971         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17972         a long name.
17973         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17974         unictype/joiningtype_byname.h.
17975         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17976         * lib/unictype/joiningtype_byname.gperf: New file.
17977         * modules/unictype/joiningtype-byname (Files): Add
17978         lib/unictype/joiningtype_byname.gperf.
17979         (Depends-on): Add gperf.
17980         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17981         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17982         long names.
17983
17984         Tests for module 'unictype/joiningtype-longname'.
17985         * modules/unictype/joiningtype-longname-tests: New file.
17986         * tests/unictype/test-joiningtype_longname.c: New file.
17987
17988         New module 'unictype/joiningtype-longname'.
17989         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17990         * lib/unictype/joiningtype_longname.c: New file.
17991         * modules/unictype/joiningtype-longname: New file.
17992         * modules/unictype/joiningtype-all (Depends-on): Add
17993         unictype/joiningtype-longname.
17994
17995 2011-03-26  Bruno Haible  <bruno@clisp.org>
17996
17997         unictype/bidiclass-byname: Recognize long names as well.
17998         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17999         name.
18000         * lib/unictype/bidi_byname.c: Include <string.h>,
18001         unictype/bidi_byname.h.
18002         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18003         * lib/unictype/bidi_byname.gperf: New file.
18004         * modules/unictype/bidiclass-byname (Files): Add
18005         lib/unictype/bidi_byname.gperf.
18006         (Depends-on): Add gperf.
18007         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18008         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18009         long names.
18010
18011         Tests for module 'unictype/bidiclass-longname'.
18012         * modules/unictype/bidiclass-longname-tests: New file.
18013         * tests/unictype/test-bidi_longname.c: New file.
18014
18015         New module 'unictype/bidiclass-longname'.
18016         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18017         * lib/unictype/bidi_longname.c: New file.
18018         * modules/unictype/bidiclass-longname: New file.
18019         * modules/unictype/bidiclass-all (Depends-on): Add
18020         unictype/bidiclass-longname.
18021
18022 2011-03-26  Bruno Haible  <bruno@clisp.org>
18023
18024         unictype/bidi*: Rename modules.
18025         * modules/unictype/bidiclass-all: Renamed from
18026         modules/unictype/bidicategory-all.
18027         * modules/unictype/bidiclass-name: Renamed from
18028         modules/unictype/bidiclass-name.
18029         (Description): Update.
18030         * modules/unictype/bidiclass-name-tests: Renamed from
18031         modules/unictype/bidicategory-name-tests.
18032         * modules/unictype/bidiclass-byname: Renamed from
18033         modules/unictype/bidicategory-byname.
18034         (Description): Update.
18035         * modules/unictype/bidiclass-byname-tests: Renamed from
18036         modules/unictype/bidicategory-byname-tests.
18037         * modules/unictype/bidiclass-of: Renamed from
18038         modules/unictype/bidicategory-of.
18039         (Description): Update.
18040         * modules/unictype/bidiclass-of-tests: Renamed from
18041         modules/unictype/bidicategory-of-tests.
18042         * modules/unictype/bidiclass-test: Renamed from
18043         modules/unictype/bidicategory-test.
18044         (Description): Update.
18045         * modules/unictype/bidiclass-test-tests: Renamed from
18046         modules/unictype/bidicategory-test-tests.
18047         * modules/unictype/bidicategory-all: New file, a simple redirection.
18048         * modules/unictype/bidicategory-name: Likewise.
18049         * modules/unictype/bidicategory-byname: Likewise.
18050         * modules/unictype/bidicategory-of: Likewise.
18051         * modules/unictype/bidicategory-test: Likewise.
18052         * modules/unictype/property-bidi-* (Dependencies): Update.
18053         * lib/unictype/bidi_*.c: Update comment.
18054
18055 2011-03-26  Bruno Haible  <bruno@clisp.org>
18056
18057         unictype/bidi*: Rename functions, part 2.
18058         * modules/unictype/bidicategory-name (configure.ac): Update required
18059         libunistring version.
18060         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18061
18062 2011-03-25  Bruno Haible  <bruno@clisp.org>
18063
18064         New module 'unictype/combining-class-all'.
18065         * modules/unictype/combining-class-all: New file.
18066
18067         Tests for module 'unictype/combining-class-byname'.
18068         * modules/unictype/combining-class-byname-tests: New file.
18069         * tests/unictype/test-combiningclass_byname.c: New file.
18070
18071         New module 'unictype/combining-class-byname'.
18072         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18073         * lib/unictype/combiningclass_byname.c: New file.
18074         * lib/unictype/combiningclass_byname.gperf: New file.
18075         * modules/unictype/combining-class-byname: New file.
18076
18077         Tests for module 'unictype/combining-class-longname'.
18078         * modules/unictype/combining-class-longname-tests: New file.
18079         * tests/unictype/test-combiningclass_longname.c: New file.
18080
18081         New module 'unictype/combining-class-longname'.
18082         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18083         * lib/unictype/combiningclass_longname.c: New file.
18084         * modules/unictype/combining-class-longname: New file.
18085
18086         Tests for module 'unictype/combining-class-name'.
18087         * modules/unictype/combining-class-name-tests: New file.
18088         * tests/unictype/test-combiningclass_name.c: New file.
18089
18090         New module 'unictype/combining-class-name'.
18091         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18092         * lib/unictype/combiningclass_name.c: New file.
18093         * modules/unictype/combining-class-name: New file.
18094
18095 2011-03-25  Bruno Haible  <bruno@clisp.org>
18096
18097         unictype/combining-class: Rename source files.
18098         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18099         of unictype/combining.h.
18100         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18101         Update.
18102         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18103         * modules/unictype/combining-class (Description): Fix.
18104         (Files, Makefile.am): Update.
18105         * tests/unictype/test-combiningclass.c: Renamed from
18106         tests/unictype/test-combining.c.
18107         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18108
18109 2011-03-25  Bruno Haible  <bruno@clisp.org>
18110
18111         unictype: Update list of canonical combining classes.
18112         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18113
18114 2011-03-25  Bruno Haible  <bruno@clisp.org>
18115
18116         unictype/category-byname: Recognize long names as well.
18117         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18118         a long name.
18119         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18120         unictype/categ_byname.h.
18121         (UC_CATEGORY_INDEX_*): New enumeration values.
18122         (uc_general_category_byname): Use uc_general_category_lookup and
18123         convert from index to value.
18124         * lib/unictype/categ_byname.gperf: New file.
18125         * modules/unictype/category-byname (Files): Add
18126         lib/unictype/categ_byname.gperf.
18127         (Depends-on): Add gperf.
18128         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18129         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18130         long names.
18131
18132         Tests for module 'unictype/category-longname'.
18133         * modules/unictype/category-longname-tests: New file.
18134         * tests/unictype/test-categ_longname.c: New file.
18135
18136         New module 'unictype/category-longname'.
18137         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18138         * lib/unictype/categ_longname.c: New file.
18139         * modules/unictype/category-longname: New file.
18140         * modules/unictype/category-all (Depends-on): Add it.
18141
18142 2011-03-25  Bruno Haible  <bruno@clisp.org>
18143
18144         Tests for module 'unictype/category-LC'.
18145         * modules/unictype/category-LC-tests: New file.
18146         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18147
18148         New module 'unictype/category-LC'.
18149         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18150         (UC_CATEGORY_LC): New declaration.
18151         (UC_CASED_LETTER): New macro.
18152         * lib/gen-uni-tables.c (is_category_LC): New function.
18153         (output_categories): Also handle category LC.
18154         (UC_CATEGORY_MASK_LC): New enumeration value.
18155         (general_category_byname): Also handle category LC.
18156         * lib/unictype/categ_LC.c: New file.
18157         * lib/unictype/categ_LC.h: New file, automatically generated.
18158         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18159         category LC.
18160         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18161         * modules/unictype/category-LC: New file.
18162         * modules/unictype/category-byname (Depends-on): Add
18163         unictype/category-LC.
18164         * modules/unictype/category-all (Depends-on): Likewise.
18165
18166 2011-03-25  Eric Blake  <eblake@redhat.com>
18167
18168         xmalloc: revert yesterday's regression
18169         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18170         realloc's underlying behavior (allowing allocation of zero-size
18171         objects, especially if malloc-gnu is also in use).
18172
18173 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18174
18175         maint.mk: add missing version to VC-tag
18176         * top/maint.mk: git tag was missing actual tag name; add it.
18177
18178         valgrind: do leak checking, and exit with code 1 on error (not 0)
18179         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18180         to VALGRIND.
18181
18182 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18183
18184         posix-modules: say what it does.
18185         * posix-modules: Add a line to the --help output saying what it does.
18186
18187 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18188
18189         xmalloc: Do not leak if underlying realloc is C99 compatible.
18190         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18191         This avoids a leak on C99-based systems.  See
18192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18193
18194 2011-03-24  Eric Blake  <eblake@redhat.com>
18195
18196         realloc: document portability problem
18197         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18198         passing 0 size to realloc.
18199
18200 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18201
18202         doc: update users.txt
18203         * users.txt: Add cvsps, tmpwatch
18204
18205 2011-03-23  Matt Rice  <ratmice@gmail.com>
18206
18207         doc: update users.txt
18208         * users.txt: Add gdb.
18209
18210 2011-03-23  Jim Meyering  <meyering@redhat.com>
18211
18212         doc: update users.txt
18213         Looking through matches up to the following URL (there are still
18214         several more pages), I found several projects that use gnulib:
18215         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18216         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18217         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18218
18219 2011-03-22  Bruno Haible  <bruno@clisp.org>
18220
18221         unictype/bidi*: Rename functions.
18222         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18223         uc_bidi_class, uc_is_bidi_class): New declarations.
18224         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18225         uc_bidi_category_byname.
18226         (uc_bidi_category_byname): New function.
18227         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18228         u_bidi_category_name.
18229         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18230         (uc_bidi_category_name): New function.
18231         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18232         uc_bidi_category.
18233         (uc_bidi_category): New function.
18234         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18235         uc_is_bidi_category. Invoke uc_bidi_class.
18236         (uc_is_bidi_category): New function.
18237         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18238         instead of uc_bidi_category_byname.
18239         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18240         instead of uc_bidi_category_name.
18241         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18242         uc_bidi_category.
18243         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18244         instead of uc_is_bidi_category.
18245
18246 2011-03-21  Bruno Haible  <bruno@clisp.org>
18247
18248         New module 'unictype/joininggroup-all'.
18249         * modules/unictype/joininggroup-all: New file.
18250
18251         Tests for module 'unictype/joininggroup-of'.
18252         * modules/unictype/joininggroup-of-tests: New file.
18253         * tests/unictype/test-joininggroup_of.c: New file.
18254         * tests/unictype/test-joininggroup_of.h: New file, automatically
18255         generated by gen-uni-tables.
18256
18257         New module 'unictype/joininggroup-of'.
18258         * modules/unictype/joininggroup-of: New file.
18259         * lib/unictype/joininggroup_of.c: New file.
18260         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18261         gen-uni-tables.
18262
18263         Tests for module 'unictype/joininggroup-byname'.
18264         * modules/unictype/joininggroup-byname-tests: New file.
18265         * tests/unictype/test-joininggroup_byname.c: New file.
18266
18267         New module 'unictype/joininggroup-byname'.
18268         * modules/unictype/joininggroup-byname: New file.
18269         * lib/unictype/joininggroup_byname.c: New file.
18270         * lib/unictype/joininggroup_byname.gperf: New file.
18271
18272         Tests for module 'unictype/joininggroup-name'.
18273         * modules/unictype/joininggroup-name-tests: New file.
18274         * tests/unictype/test-joininggroup_name.c: New file.
18275
18276         New module 'unictype/joininggroup-name'.
18277         * modules/unictype/joininggroup-name: New file.
18278         * lib/unictype/joininggroup_name.c: New file.
18279         * lib/unictype/joininggroup_name.h: New file.
18280
18281         New module 'unictype/joiningtype-all'.
18282         * modules/unictype/joiningtype-all: New file.
18283
18284         Tests for module 'unictype/joiningtype-of'.
18285         * modules/unictype/joiningtype-of-tests: New file.
18286         * tests/unictype/test-joiningtype_of.c: New file.
18287         * tests/unictype/test-joiningtype_of.h: New file, automatically
18288         generated by gen-uni-tables.
18289
18290         New module 'unictype/joiningtype-of'.
18291         * modules/unictype/joiningtype-of: New file.
18292         * lib/unictype/joiningtype_of.c: New file.
18293         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18294         gen-uni-tables.
18295
18296         Tests for module 'unictype/joiningtype-byname'.
18297         * modules/unictype/joiningtype-byname-tests: New file.
18298         * tests/unictype/test-joiningtype_byname.c: New file.
18299
18300         New module 'unictype/joiningtype-byname'.
18301         * modules/unictype/joiningtype-byname: New file.
18302         * lib/unictype/joiningtype_byname.c: New file.
18303
18304         Tests for module 'unictype/joiningtype-name'.
18305         * modules/unictype/joiningtype-name-tests: New file.
18306         * tests/unictype/test-joiningtype_name.c: New file.
18307
18308         New module 'unictype/joiningtype-name'.
18309         * modules/unictype/joiningtype-name: New file.
18310         * lib/unictype/joiningtype_name.c: New file.
18311
18312         unictype: Add support for Arabic shaping properties.
18313         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18314         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18315         declarations.
18316         (UC_JOINING_GROUP_*): New enumeration values.
18317         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18318         declarations.
18319         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18320         (unicode_joining_type): New variable.
18321         (UC_JOINING_GROUP_*): New enumeration values.
18322         (unicode_joining_group): New variable.
18323         (fill_arabicshaping, joining_type_as_c_identifier,
18324         output_joining_type_test, output_joining_type,
18325         joining_group_as_c_identifier, output_joining_group_test,
18326         output_joining_group): New functions.
18327         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18328         fill_arabicshaping and output_joining_type_test, output_joining_type,
18329         output_joining_group_test, output_joining_group.
18330         Reported by Simon Josefsson.
18331
18332 2011-03-21  Jim Meyering  <meyering@redhat.com>
18333
18334         strftime: fix a bug in yesterday's change
18335         * lib/strftime.c (add): Accommodate width's initial value of -1.
18336         Otherwise, nstrftime would copy uninitialized data into
18337         the result buffer.
18338
18339 2011-03-21  Jim Meyering  <meyering@redhat.com>
18340
18341         tests: add strftime-tests module
18342         * tests/test-strftime.c: New file.
18343         * modules/strftime-tests: New module.
18344
18345 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18346
18347         strftime: don't assume a byte count fits in 'int'
18348         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18349         found this problem by static analysis, using gcc -Wstrict-overflow
18350         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18351         on an integer overflow having undefined behavior, but it turns out
18352         that the argument is a size, which might not fit in 'int' anyway,
18353
18354 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18355
18356         stdio: don't require ignore_value around fwrite
18357
18358         This patch works around libc bug 11959
18359         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18360         Without this patch, applications must often write
18361         ignore_value (fwrite (...)) even though the ignore_value is
18362         not helpful here.  It's common to write many objects, using
18363         fwrite/printf/etc., and then use ferror to detect output error.
18364
18365         I considered making this patch optional, but decided against it,
18366         because libc is obviously being inconsistent here: there is no
18367         reason libc should insist that user code must inspect fwrite
18368         return's value without also insisting that it inspect printf's,
18369         putchar's, etc.  If user code wants to have a strict style where
18370         all these functions' values are checked (so that ferror need not
18371         be checked), we could add support for that style in a new gnulib
18372         module, but in the meantime it's better to be consistent and to
18373         support common usage.
18374
18375         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18376         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18377         that we are compiling in checking mode, and if not C++, and
18378         if not already wrapping fwrite for some other reason.
18379         (fwrite): #define to rpl_fwrite if the latter is defined.
18380
18381 2011-03-20  Bruno Haible  <bruno@clisp.org>
18382
18383         verror: Fix compilation error introduced on 2011-02-13.
18384         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18385         instead of __attribute__.
18386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18387
18388 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18389             Bruno Haible  <bruno@clisp.org>
18390
18391         socklen: do not depend on sys_socket
18392         While trying to modify Emacs to use gnulib's socklen module,
18393         I discovered a circular dependency: socklen depends on sys_socket
18394         and vice versa.  Emacs can use socklen, but it does not need
18395         sys_socket because it has its own substitute for sys/socket.h.
18396         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18397         gl_TYPE_SOCKLEN_T.
18398         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18399         gl_PREREQ_SYS_H_SOCKET.
18400         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18401         gl_PREREQ_SYS_H_SOCKET.
18402         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18403         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18404         * modules/socklen (Depends-on): Do not depend on sys_socket.
18405         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18406
18407 2011-03-20  Jim Meyering  <meyering@redhat.com>
18408
18409         maint.mk: sort file names *after* new transformation
18410         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18411         prefix would have led to an unwarranted failure in GNU parted.
18412         Sort after that transformation.
18413
18414 2011-03-19  Jim Meyering  <meyering@redhat.com>
18415
18416         maint.mk: fix po-file syntax-check rule
18417         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18418         Patch by Bruno Haible.
18419
18420 2011-03-19  Bruno Haible  <bruno@clisp.org>
18421
18422         socklen: Update comment.
18423         * m4/socklen.m4: Update comment about platforms.
18424
18425 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18426             Bruno Haible  <bruno@clisp.org>
18427
18428         inet_ntop, inet_pton: Simplify.
18429         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18430         documented to provide socklen_t and we already depend on sys_socket.
18431         * modules/inet_pton (Depends-on): Likewise.
18432         * lib/arpa_inet.in.h: Adjust comment.
18433
18434 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18435             Bruno Haible  <bruno@clisp.org>
18436
18437         netdb: Simplify.
18438         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18439         documented to provide socklen_t and we already depend on sys_socket.
18440         * lib/netdb.in.h: Adjust comment.
18441
18442 2011-03-19  Bruno Haible  <bruno@clisp.org>
18443
18444         sys_socket, netdb: Document problem with socklen_t.
18445         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18446         platforms.
18447         * doc/posix-headers/netdb.texi: Likewise.
18448
18449 2011-03-18  Eric Blake  <eblake@redhat.com>
18450
18451         maint.mk: let po check work in VPATH build
18452         * top/maint.mk (po_file): Allow cfg.mk override.
18453         (sc_po_check): Allow VPATH use.
18454         Reported by Jiri Denemark.
18455
18456 2011-03-16  Jim Meyering  <meyering@redhat.com>
18457
18458         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18459         Before, you would have had to create one .x-sc_ file per rule in order
18460         to exempt offending files.  Now, you may instead use a Make variable --
18461         usually defined in cfg.mk -- whose name identifies the affected rule.
18462         * top/maint.mk (_sc_excl): Define.
18463         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18464         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18465
18466 2011-03-13  Bruno Haible  <bruno@clisp.org>
18467
18468         ignore-value tests: Avoid warnings.
18469         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18470         empty for gcc < 3.4.
18471
18472 2011-03-13  Bruno Haible  <bruno@clisp.org>
18473
18474         passfd: Fix link error on Solaris.
18475         * modules/passfd (Description): Correct.
18476         (Depends-on): Add socketlib.
18477         (Link): New section.
18478         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18479
18480 2011-03-13  Bruno Haible  <bruno@clisp.org>
18481
18482         passfd: Fix link error on AIX 5.2.
18483         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18484
18485 2011-03-13  Bruno Haible  <bruno@clisp.org>
18486
18487         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18488         * lib/sys_socket.in.h: Include <stddef.h>.
18489         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18490         CMSG_FIRSTHDR. Remove unused variable.
18491
18492 2011-03-13  Bruno Haible  <bruno@clisp.org>
18493
18494         passfd: Fix compilation error on OpenBSD.
18495         * lib/passfd.c: Include <sys/uio.h>.
18496
18497 2011-03-13  Bruno Haible  <bruno@clisp.org>
18498
18499         passfd test: Fix warnings.
18500         * tests/test-passfd.c: Include <sys/wait.h>.
18501         (main): Fix typo.
18502
18503 2011-03-13  Bruno Haible  <bruno@clisp.org>
18504
18505         passfd module, part 4, tweaks.
18506         * tests/test-passfd.c: Reorder includes.
18507         (main): Fix perror and printf calls.
18508
18509 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18510
18511         passfd module, part 4.
18512         * modules/passfd-tests: New file.
18513         * tests/test-passfd.c: New file.
18514
18515 2011-03-13  Jim Meyering  <meyering@redhat.com>
18516
18517         Makefile: rely on GNU make; derive syntax-check rule names
18518         Rather than requiring that each sc_ rule be listed as a dependent
18519         of "check", use features of GNU make to derive the list.
18520         * Makefile (syntax-check-rules): Define.
18521         (check): Depend on the new variable, not the hard-coded list.
18522
18523 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18524             Bruno Haible  <bruno@clisp.org>
18525
18526         passfd module, part 3.
18527         * lib/passfd.h (recvfd): Add a flags argument.
18528         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18529         (recvfd): Add a flags argument.
18530         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18531         exists.
18532         * modules/passfd (Depends-on): Add cloexec.
18533         Suggested by Eric Blake.
18534
18535 2011-03-13  Bruno Haible  <bruno@clisp.org>
18536
18537         passfd module, part 2, tweaks.
18538         * modules/passfd (Files): Reorder.
18539         (Depends-on): Remove errno.
18540         (Include): Remove <sys/socket.h>, <sys/un.h>.
18541         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18542         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18543         specification header. Include <sys/socket.h> always. Don't include
18544         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18545         (sendfd): Clarify that it sets errno when it fails.
18546         (recvfd): Fix specification.
18547
18548 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18549
18550         passfd module, part 2.
18551         * modules/passfd: New file.
18552         * lib/passfd.h: New file.
18553         * lib/passfd.c: New file.
18554
18555 2011-03-12  Bruno Haible  <bruno@clisp.org>
18556
18557         wcswidth, mbswidth: Avoid integer overflow.
18558         * lib/wcswidth.c: Include <limits.h>.
18559         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18560         * lib/mbswidth.c: Include <limits.h>.
18561         (mbsnwidth): Avoid 'int' overflow.
18562         Reported by Jim Meyering.
18563
18564 2011-03-12  Bruno Haible  <bruno@clisp.org>
18565
18566         futimens, utimensat: Avoid endless recursion on Solaris 10.
18567         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18568         Solaris.
18569         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18570         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18571
18572 2011-03-11  Jim Meyering  <meyering@redhat.com>
18573
18574         maint.mk: relax a regexp to accommodate other formatting styles
18575         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18576         between "ngettext" and the following "(".
18577
18578 2011-03-11  Pádraig Brady <P@draigBrady.com>
18579
18580         maint.mk: suppress a false positive warning
18581         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18582         diagnostics are marked with ngettext.
18583
18584 2011-03-10  Eric Blake  <eblake@redhat.com>
18585
18586         wchar: add explicit dependencies, for Tru64
18587         * modules/mbmemcasecoll (Depends-on): Add wchar.
18588         * modules/mbtowc (Depends-on): Likewise.
18589         * modules/vasnprintf (Depends-on): Likewise.
18590         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18591         * modules/wctomb (Depends-on): Likewise.
18592         Reported by Peter O'Gorman.
18593
18594 2011-03-08  Bruno Haible  <bruno@clisp.org>
18595
18596         passfd module, part 1, tweaks.
18597         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18598         Improve indentation. Improve AC_MSG_CHECKING messages.
18599         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18600         gl_SOCKET_FAMILIES.
18601
18602 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18603
18604         passfd module, part 1.
18605         * m4/afunix.m4: New file.
18606         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18607         sockets.
18608
18609 2011-03-08  Bruno Haible  <bruno@clisp.org>
18610
18611         regex-quote: New API.
18612         * lib/regex-quote.h: Include <stdbool.h>.
18613         (struct regex_quote_spec): New type.
18614         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18615         New declarations.
18616         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18617         'const struct regex_quote_spec *' argument.
18618         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18619         (pcre_special): New constant.
18620         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18621         New functions.
18622         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18623         'const struct regex_quote_spec *' argument.
18624         * modules/regex-quote (Depends-on): Add stdbool.
18625         * tests/test-regex-quote.c (check): Update for new API. Add test for
18626         anchored results.
18627         * NEWS: Mention the API change.
18628         Reported by Reuben Thomas and Eric Blake.
18629
18630 2011-03-06  Bruno Haible  <bruno@clisp.org>
18631
18632         regex-quote: Fix creation of POSIX extended regular expressions.
18633         * lib/regex-quote.c (ere_special): Add grouping and alternation
18634         operators.
18635
18636 2011-03-05  Bruno Haible  <bruno@clisp.org>
18637
18638         doc: Improve doc regarding autopoint vs. gnulib.
18639         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18640         disable autopoint while running autoreconf.
18641         Suggested by Ralf Wildenhues.
18642
18643 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18644
18645         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18646         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18647
18648 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18649
18650         parse-duration: remove xalloc.h dependency
18651         * lib/parse-duration.c (parse_period): handle NULL return from
18652         strdup instead of calling xstrdup().
18653         * modules/parse-duration: remove "xalloc" dependency
18654
18655 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18656
18657         bootstrap: honor m4_base when running aclocal
18658         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18659
18660 2011-03-02  Jim Meyering  <meyering@redhat.com>
18661
18662         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18663         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18664         on request from Matt Booth.
18665
18666 2011-03-01  Eric Blake  <eblake@redhat.com>
18667
18668         test-link: work on Hurd
18669         * tests/test-link.h (test_link): Hurd rejects linking directories
18670         with EISDIR instead of the POSIX-mandated EPERM.
18671
18672 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18673
18674         stdio: simplify by moving files to printf-posix, sigpipe
18675         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18676         since this symbol is needed only if printf is replaced.
18677         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18678         Require gl_ASM_SYMBOL_PREFIX.
18679         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18680         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18681         (Depends-on): Add 'raise'.
18682         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18683         * modules/stdio (Files): Remove lib/stdio-write.c,
18684         m4/asm-underscore.m4.
18685         (Depends-on): Remove 'raise'.
18686
18687         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18688         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18689         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18690         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18691
18692 2011-02-28  Bruno Haible  <bruno@clisp.org>
18693
18694         localcharset: Assume ANSI C behaviour of free().
18695         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18696         calling free().
18697         Suggested by Simon Josefsson <simon@josefsson.org>.
18698
18699 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18700             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18701             Bruno Haible  <bruno@clisp.org>  (tiny change)
18702
18703         On Cygwin, use /proc file system instead of win32 API.
18704         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18705         Win32 file names.
18706         (DllMain): Simplify by removing Cygwin specific code.
18707         (find_shared_library_fullname): Use Linux specific implementation also
18708         for Cygwin.
18709         (get_shared_library_fullname): Update accordingly.
18710         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18711         Win32 file names.
18712         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18713         Cygwin specific code.
18714
18715 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18716             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18717
18718         Fix OpenMP flag detection for various Fortran compilers.
18719         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18720         OpenMP-conditional compilation construct, to force compile
18721         failure with missing OpenMP flag.
18722         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18723
18724 2011-02-25  Eric Blake  <eblake@redhat.com>
18725
18726         strstr: expand test coverage
18727         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18728         compilation.
18729         * tests/test-memmem.c (main): Duplicate tests.
18730         * tests/test-strcasestr.c (main): Likewise.
18731         * tests/test-c-strcasestr.c (main): Likewise.
18732
18733 2011-02-25  Jim Meyering  <meyering@redhat.com>
18734
18735         maint.mk: detect missing-NL-at-EOF, too
18736         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18737         it also detects when a file lacks a newline at EOF.
18738         (require_exactly_one_NL_at_EOF_): Renamed from
18739         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18740         since people may well have .x-sc_... file names tied to the
18741         existing name.  Suggested by Eric Blake.
18742
18743 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18744
18745         dirname: move m4/dos.m4 functionality into lib/dosname.h
18746
18747         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18748         extracts symbols from it, puts them into config.h; but it's much
18749         easier to use the symbols directly.  filename.h already does this,
18750         but it disagrees with dos.m4 in some respects.  This patch
18751         introduces a different include file dosname.h that packages up
18752         dos.m4, and then later we can work on merging filename.h and
18753         dosname.h.  Applications that need only the easy-to-configure
18754         symbols should consider including dosname.h rather than dirname.h.
18755         * NEWS: Mention incompatible changes.
18756         * m4/dos.m4: Remove.
18757         * lib/dosname.h, modules/dosname: New files.
18758         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18759         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18760         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18761         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18762         Include dosname.h, not dirname.h.
18763         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18764         Include dosname.h, for definitions of symbols like ISSLASH
18765         that used to be in config.h.
18766         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18767         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18768         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18769         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18770         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18771         * modules/rmdir (Files): Likewise.
18772         * modules/stat (Files): Likewise.
18773         * modules/unlink (Files): Likewise.
18774         * modules/dirname-lgpl (Depends-on): Add dosname.
18775         * modules/lstat (Depends-on): Likewise.
18776         * modules/openat (Depends-on): Likewise.
18777         * modules/rmdir (Depends-on): Likewise.
18778         * modules/savewd (Depends-on): Likewise.
18779         * modules/stat (Depends-on): Likewise.
18780         * modules/unlink (Depends-on): Likewise.
18781         * modules/openat (Depends-on): Remove dirname-lgpl.
18782         * modules/savewd (Depends-on): Likewise.
18783         * tests/test-dirname.c: Do not use removed symbols like
18784         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18785         the remaining symbols, e.g., ISSLASH ('\\').
18786
18787 2011-02-25  Eric Blake  <eblake@redhat.com>
18788
18789         strstr: revert patches that introduced bug and pessimization
18790         * lib/str-two-way.h: Add another reference.
18791         (two_way_short_needle, two_way_long_needle): Revert changes from
18792         2011-02-24; they pessimize search speed.
18793         (critical_factorization): Partially revert changes from
18794         2010-06-22; they violate the requirement that the left half of the
18795         needle be smaller than the period of the needle.
18796
18797 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18798
18799         filenamecat: remove unnecessary dependency on dirname-lgpl
18800         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18801         is no direct dependency, just an indirect one via filenamecat-lgpl.
18802
18803         remove: remove unnecessary use of m4/dos.m4
18804         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18805         * modules/remove (FILES): Remove m4/dos.m4.
18806
18807         * lib/openat-proc.c: Don't include dirname.h; not needed.
18808
18809         backupfile: remove unnecessary use of m4/dos.m4
18810         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18811         of its symbols are used by the backupfile code.  backupfile.c does
18812         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18813         for the rare case of programs that want all their backup file
18814         names to live within 8+3 limits, and dos.m4 doesn't address that.
18815         * modules/backupfile (Files): Remove m4/dos.m4.
18816
18817 2011-02-24  Jim Meyering  <meyering@redhat.com>
18818
18819         strstr: fix a bug whereby strstr would mistakenly return NULL
18820         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18821         in period calculation.
18822         (two_way_long_needle): Likewise.
18823         The original problem was reported by Mike Stump in
18824         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18825         Ralf Wildenhues provided the short needle and haystack.
18826         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18827         Add a more involved test to trigger the bug in two_way_long_needle.
18828
18829 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18830
18831         gnulib-tool: remove use of bold display in help screen
18832         * gnulib-tool (func_usage): Do not use bold display anymore in the
18833         help screen.  That was just meant to be a temporary emphasis for a
18834         backward-incompatible change.
18835
18836 2011-02-23  Bruno Haible  <bruno@clisp.org>
18837
18838         Fix misindentation of preprocessor directives.
18839         * lib/argp-namefrob.h: Reindent preprocessor directives.
18840         * lib/getopt_int.h (struct _getopt_data): Likewise.
18841         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18842         * lib/vasnprintf.c (decode_long_double): Likewise.
18843         * tests/test-argmatch.c: Insert blank lines, for clarity.
18844         * tests/test-exclude.c: Likewise.
18845
18846 2011-02-22  Bruno Haible  <bruno@clisp.org>
18847
18848         ioctl: Fix for MacOS X in 64-bit mode.
18849         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18850         value.
18851         Suggested by Eric Blake.
18852         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18853
18854 2011-02-22  Jim Meyering  <meyering@redhat.com>
18855
18856         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18857         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18858         in lib/.
18859
18860 2011-02-22  Eric Blake  <eblake@redhat.com>
18861
18862         maint: avoid any CDPATH issue
18863         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18864
18865         maint: adjust cpp indentation for my modules, as well
18866         * Makefile (sc_cpp_indent_check): Add my name.
18867         * lib/fbufmode.c: Filter through cppi.
18868         * lib/fpurge.c: Likewise.
18869         * lib/freadable.c: Likewise.
18870         * lib/freading.c: Likewise.
18871         * lib/fwritable.c: Likewise.
18872         * lib/fwriting.c: Likewise.
18873         * lib/sigaction.c: Likewise.
18874
18875 2011-02-22  Jim Meyering  <meyering@redhat.com>
18876
18877         maint: adjust cpp indentation to reflect nesting depth
18878         I.e., in a block of code that begins with an unnested "#if",
18879         put one space between the "#" in column 1 and following token.
18880         For example,
18881         -#include <sys/vfs.h>
18882         +# include <sys/vfs.h>
18883         Do this only in .c files that are part of a module I maintain.
18884         * lib/linkat.c: Filter through cppi.
18885         * lib/nanosleep.c: Likewise.
18886         * lib/openat.c: Likewise.
18887         * lib/openat-die.c: Likewise.
18888         * lib/dup3.c: Likewise.
18889         * lib/fchownat.c: Likewise.
18890         * lib/flock.c: Likewise.
18891         * lib/fsync.c: Likewise.
18892         * lib/fts.c: Likewise.
18893         * lib/getpass.c: Likewise.
18894         * lib/gettimeofday.c: Likewise.
18895         * lib/userspec.c: Likewise.
18896         * Makefile (sc_cpp_indent_check): New rule, to check this.
18897
18898 2011-02-22  Bruno Haible  <bruno@clisp.org>
18899
18900         New module 'wctomb'.
18901         * lib/stdlib.in.h (wctomb): New declaration.
18902         * lib/wctomb.c: New file.
18903         * lib/wctomb-impl.h: New file.
18904         * m4/wctomb.m4: New file.
18905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18906         REPLACE_WCTOMB.
18907         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18908         REPLACE_WCTOMB.
18909         * modules/wctomb: New file.
18910         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18911         * doc/posix-functions/wctomb.texi: Mention the new module.
18912         * modules/wctob (Depends-on): Add wctomb.
18913
18914 2011-02-22  Bruno Haible  <bruno@clisp.org>
18915
18916         New module 'mbtowc'.
18917         * lib/stdlib.in.h (mbtowc): New declaration.
18918         * lib/mbtowc.c: New file.
18919         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18920         * m4/mbtowc.m4: New file.
18921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18922         REPLACE_MBTOWC.
18923         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18924         REPLACE_MBTOWC.
18925         * modules/mbtowc: New file.
18926         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18927         * doc/posix-functions/mbtowc.texi: Mention the new module.
18928         * modules/btowc (Depends-on): Add mbtowc.
18929
18930 2011-02-22  Bruno Haible  <bruno@clisp.org>
18931
18932         wcrtomb: Add more tests for native Windows platforms.
18933         * tests/test-wcrtomb-w32-1.sh: New file.
18934         * tests/test-wcrtomb-w32-2.sh: New file.
18935         * tests/test-wcrtomb-w32-3.sh: New file.
18936         * tests/test-wcrtomb-w32-4.sh: New file.
18937         * tests/test-wcrtomb-w32-5.sh: New file.
18938         * tests/test-wcrtomb-w32.c: New file.
18939         * modules/wcrtomb-tests (Files): Add them.
18940         (Makefile.am): Arrange to run these tests.
18941         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18942         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18943
18944 2011-02-20  Bruno Haible  <bruno@clisp.org>
18945
18946         wcrtomb: Enhance test.
18947         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18948
18949 2011-02-20  Bruno Haible  <bruno@clisp.org>
18950
18951         mbrtowc: Tiny optimization.
18952         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18953
18954 2011-02-20  Jim Meyering  <meyering@redhat.com>
18955
18956         test-exclude.c: remove unmatched #endif
18957         * tests/test-exclude.c: Remove stray #endif, left over from
18958         the change of a week ago.
18959
18960 2011-02-19  Jim Meyering  <meyering@redhat.com>
18961
18962         git-version-gen: skip "-dirty" check when appropriate
18963         * build-aux/git-version-gen: Don't run any git commands when the
18964         version string comes from .tarball-version.  Prior to this, we
18965         would run git update-index --refresh even from a just-unpacked
18966         tarball directory, and that could affect a .git/ directory in a
18967         parent of the build directory.  Reported by Mike Frysinger.
18968
18969 2011-02-19  Bruno Haible  <bruno@clisp.org>
18970
18971         unictype/property-byname: Reduce the size of the 'data' segment.
18972         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18973
18974 2011-02-19  Bruno Haible  <bruno@clisp.org>
18975
18976         unictype/scripts: Reduce the size of the 'data' segment.
18977         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18978         '%pic'.
18979         * lib/unictype/scripts_byname.gperf: Regenerated.
18980
18981 2011-02-19  Bruno Haible  <bruno@clisp.org>
18982
18983         stdint: Update documentation.
18984         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18985
18986 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18987
18988         stdint: omit redundant check for wchar.h
18989         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18990         always tests whether wchar.h exists, so remove the now-redundant test.
18991
18992 2011-02-18  Bruno Haible  <bruno@clisp.org>
18993
18994         stdint: Cut dependency to module 'wchar'.
18995         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18996         include the necessary prerequisites.
18997         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18998         * modules/stdint (Depends-on): Remove wchar.
18999         (Makefile.am): Substitute HAVE_WCHAR_H.
19000         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19001
19002 2011-02-18  Eric Blake  <eblake@redhat.com>
19003
19004         longlong: skip, rather than fail, on cross-compilation
19005         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19006         when cross-compiling; regression from 2011-02-16.
19007
19008 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19009
19010         * NEWS: Mention 2011-02-08 change to stdlib.
19011
19012 2011-02-17  Bruno Haible  <bruno@clisp.org>
19013
19014         getloadavg: Add comments about platforms.
19015         * m4/getloadavg.m4: Add comment.
19016         * lib/getloadavg.c: Likewise.
19017
19018 2011-02-17  Bruno Haible  <bruno@clisp.org>
19019
19020         getloadavg: Fix link error on Solaris 2.6.
19021         * modules/getloadavg (Link): New section.
19022         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19023         linking test-getloadavg.
19024         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19025         getloadavg.
19026
19027 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19028
19029         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19030         It was 'int', but this doesn't match the IRIX 6.5 manual.
19031         Suggested by Bruno Haible in
19032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19033
19034 2011-02-17  Bruno Haible  <bruno@clisp.org>
19035
19036         havelib: Fix comments.
19037         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19038         change.
19039
19040 2011-02-17  Bruno Haible  <bruno@clisp.org>
19041
19042         havelib: Update config.rpath.
19043         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19044
19045 2011-02-17  Bruno Haible  <bruno@clisp.org>
19046
19047         getloadavg test: Add some plausibility checks.
19048         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19049         is improbable.
19050
19051 2011-02-16  Eric Blake  <eblake@redhat.com>
19052
19053         maintainer-makefile: make syntax-check a no-op from tarballs
19054         * top/maint.mk (no-vc-detected): New rule.
19055         (local-checks-available): Use it to avoid hanging if someone tries
19056         'make syntax-check' from a tarball.  Also append to any non-syntax
19057         checks already defined in cfg.mk.
19058
19059 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19060
19061         longlong: tune, particularly for common case of c99
19062
19063         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19064         or running anything if c99, or if unsigned long long int does not
19065         work.  In either case, we know the answer without further tests.
19066         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19067         it at most once, and use its results for both long long int and
19068         unsigned long long int.  This is more likely to be efficient in
19069         the common case where the program wants to check for both long
19070         long int and unsigned long long int.
19071         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19072         since the answer is already known.
19073
19074 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19075
19076         getloadavg: set errno
19077         * lib/getloadavg.c: Set errno when returning -1.  If no other
19078         error number looks appropriate, set it to ENOSYS if the getloadavg
19079         looks like it can't possibly ever work, ENOTSUP otherwise.
19080         Suggested by Bruno Haible in
19081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19082
19083         getloadavg: trim unused parts and speed up 'configure'
19084         * NEWS: Document this.
19085         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19086         always compiled if getloadavg is absent.
19087         Move test code to ...
19088         * tests/test-getloadavg.c: New file, containing previous
19089         contents of test from lib/getloadavg.c.  It also contains
19090         suggestions by Bruno Haible in
19091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19092         * modules/getloadavg-tests: New file.
19093         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19094         Do tests in the same order as they're needed for getloadavg.c.
19095         Omit setgid-related tests that generate symbols KMEM_GROUP,
19096         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19097         Do only the tests that are needed to see whether the system has
19098         getloadavg, moving the other tests into ...
19099         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19100         NLIST_NAME_UNION; nobody should be using it.  Do not define
19101         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19102         relevant, as the user of this module shouldn't care how getloadavg
19103         is implemented.
19104
19105         getloadavg: omit unused var
19106         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19107
19108 2011-02-15  Jim Meyering  <meyering@redhat.com>
19109
19110         doc: update users.txt
19111         * users.txt: Update iwhd's URL.
19112
19113 2011-02-13  Bruno Haible  <bruno@clisp.org>
19114
19115         Consistent macro naming for macros that use GCC __attribute__.
19116         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19117         _ATTRIBUTE_NONNULL_.
19118         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19119         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19120         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19121         ATTRIBUTE_DEPRECATED.
19122         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19123         ATTRIBUTE_NORETURN.
19124         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19125         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19126         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19127         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19128         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19129         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19130         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19131         ATTRIBUTE_SENTINEL.
19132         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19133         ATTRIBUTE_RETURN_CHECK.
19134         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19135         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19136         ATTRIBUTE_NORETURN.
19137         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19138         Reported by Paul Eggert.
19139
19140 2011-02-13  Bruno Haible  <bruno@clisp.org>
19141
19142         Don't interfere with a program's definition of __attribute__.
19143         * lib/argp.h (__attribute__): Remove definition.
19144         (_GL_ATTRIBUTE_FORMAT): New macro.
19145         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19146         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19147         (_GL_ATTRIBUTE_FORMAT): New macro.
19148         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19149         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19150         GCC 3 or newer.
19151         * lib/error.h (__attribute__): Remove definition.
19152         (_GL_ATTRIBUTE_FORMAT): New macro.
19153         (error, error_at_line): Use it.
19154         * lib/hash.h (__attribute__): Remove definition.
19155         (ATTRIBUTE_WUR): Update definition. Define always.
19156         * lib/openat.h (__attribute__): Remove definition.
19157         (ATTRIBUTE_NORETURN): Update definition. Define always.
19158         * lib/sigpipe-die.h (__attribute__): Remove definition.
19159         (ATTRIBUTE_NORETURN): Update definition. Define always.
19160         * lib/vasnprintf.h (__attribute__): Remove definition.
19161         (_GL_ATTRIBUTE_FORMAT): New macro.
19162         (asnprintf, vasnprintf): Use it.
19163         * lib/xalloc.h (__attribute__): Remove definition.
19164         (ATTRIBUTE_NORETURN): Update definition. Define always.
19165         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19166         * lib/xmemdup0.h (__attribute__): Remove definition.
19167         (ATTRIBUTE_NORETURN): Update definition. Define always.
19168         * lib/xprintf.h (__attribute__): Remove definition.
19169         (_GL_ATTRIBUTE_FORMAT): New macro.
19170         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19171         * lib/xstrtol.h (__attribute__): Remove definition.
19172         (ATTRIBUTE_NORETURN): Update definition. Define always.
19173         * lib/xvasprintf.h (__attribute__): Remove definition.
19174         (_GL_ATTRIBUTE_FORMAT): New macro.
19175         (xasprintf, xvasprintf): Use it.
19176         * tests/test-argmatch.c (__attribute__): Remove definition.
19177         (ATTRIBUTE_NORETURN): Update definition. Define always.
19178         * tests/test-exclude.c (__attribute__): Remove definition.
19179         (ATTRIBUTE_NORETURN): Update definition. Define always.
19180         Reported by Paul Eggert.
19181
19182 2011-02-13  Bruno Haible  <bruno@clisp.org>
19183
19184         mbrtowc: Add more tests for native Windows platforms.
19185         * tests/test-mbrtowc-w32-1.sh: New file.
19186         * tests/test-mbrtowc-w32-2.sh: New file.
19187         * tests/test-mbrtowc-w32-3.sh: New file.
19188         * tests/test-mbrtowc-w32-4.sh: New file.
19189         * tests/test-mbrtowc-w32-5.sh: New file.
19190         * tests/test-mbrtowc-w32.c: New file.
19191         * modules/mbrtowc-tests (Files): Add them.
19192         (Makefile.am): Arrange to run these tests.
19193         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19194         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19195
19196 2011-02-13  Bruno Haible  <bruno@clisp.org>
19197
19198         mbrtowc: Work around native Windows bug.
19199         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19200         guess when no suitable locale for testing was found.
19201         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19202
19203 2011-02-13  Bruno Haible  <bruno@clisp.org>
19204
19205         mbsinit: Work around mingw bug.
19206         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19207         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19208         Windows.
19209         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19210
19211 2011-02-13  Bruno Haible  <bruno@clisp.org>
19212
19213         mbsinit: Don't crash for a NULL argument.
19214         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19215         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19216
19217 2011-02-13  Bruno Haible  <bruno@clisp.org>
19218
19219         Don't interfere with a program's definition of __attribute__.
19220         * lib/stdio.in.h (__attribute__): Remove definition.
19221         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19222         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19223         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19224         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19225         * lib/string.in.h (__attribute__): Remove definition.
19226         Reported by Paul Eggert.
19227
19228 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19229
19230         stdlib: don't get in the way of non-GCC __attribute__
19231         See thread starting at
19232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19233         Revert previous stdlib change, installing the following instead:
19234         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19235         to get in the way of a non-GCC compiler that supports __attribute__.
19236         (_GL_ATTRIBUTE_RETURN): New macro.
19237         (_Exit): Use it instead of __attribute__.
19238
19239 2011-02-12  Bruno Haible  <bruno@clisp.org>
19240
19241         quotearg test: Avoid test failure on mingw.
19242         * tests/test-quotearg.sh: Convert the locale identifier from native
19243         Windows syntax to Unix syntax.
19244
19245 2011-02-12  Bruno Haible  <bruno@clisp.org>
19246
19247         setlocale: Prefer gnulib's override over libintl's override.
19248         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19249         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19250         GNULIB_defined_setlocale is set.
19251
19252 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19253
19254         stdlib: support non-GCC __attribute__
19255
19256         Fix a serious and tricky problem encountered when attempting to
19257         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19258         5.5, but it crashed due to memory corruption on Solaris 10 with
19259         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19260         bits that are otherwise zero.  This tagging is optional inside
19261         Emacs but is preferred and is used when __attribute__ ((__aligned
19262         (8))) works, as it does with both recent-enough GCC and with Sun C
19263         5.11.  However, Sun C 5.11 is not GCC and does not #define
19264         __GNUC__ and __GNUC_MINOR__.
19265
19266         When I added the getloadavg module to Emacs, it brought in
19267         stdlib.in.h, which contained this fragment:
19268
19269            #ifndef __attribute__
19270            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19271            #  define __attribute__(Spec)   /* empty */
19272            # endif
19273            #endif
19274
19275         When files that include <stdlib.h> were compiled with Sun C 5.11,
19276         the above code disabled __attribute__ ((__aligned (8))), which
19277         caused variables to not be properly aligned, which eventually led
19278         to the pointer corruption mentioned above.  (This was a bit hard
19279         to diagnose, unfortunately.)
19280
19281         Several "#define __attribute__(X) /* empty */" code snippets need
19282         to be eradicated from Gnulib to work with non-GCC compilers that
19283         support __attribute__.  The Autoconf way to do this is to test for
19284         each kind of attribute that we want support for, and selectively
19285         enable that in source code.
19286
19287         Fix this problem just for stdlib.h, by adding a test for the
19288         __noreturn__ attribute, and change stdlib.in.h to use that test
19289         when needed.  This technique can be easily generalized to the
19290         other *.in.h files and attributes, and a similar technique can be
19291         used for *.h and *.c files.  This patch is enough to solve the
19292         problem for Emacs + getloadavg, and I thought I'd publish it for
19293         feedback before undertaking further, similar fixes in other
19294         modules.
19295
19296         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19297         because it's not needed for stdlib.h.  It merely substitutes the
19298         value directly into stdlib.h.  We may well need to #define it, or
19299         similar symbols, for other modules, but it's nice to also have an
19300         option to not #define it for applications like Emacs that do not
19301         need it.
19302
19303         * lib/stdlib.in.h (__attribute__): Do not #define.
19304         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19305         be defined only if the _Exit module is also used.
19306         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19308         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19309         platforms.
19310         * modules/_Exit (Files): Add m4/attribute.m4.
19311         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19312         * m4/attribute.m4: New file.
19313
19314 2011-02-12  Bruno Haible  <bruno@clisp.org>
19315
19316         wcsrtombs: Work around bug on native Windows.
19317         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19318         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19319         instead of len.
19320         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19321
19322 2011-02-12  Bruno Haible  <bruno@clisp.org>
19323
19324         mbsrtowcs: Work around bug on native Windows.
19325         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19326         against mingw bug.
19327         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19328
19329 2011-02-12  Bruno Haible  <bruno@clisp.org>
19330
19331         Avoid setlocale bugs in tests.
19332         * modules/btowc (Dependencies): Add setlocale.
19333         * modules/c-strcase (Dependencies): Likewise.
19334         * modules/mbmemcasecmp (Dependencies): Likewise.
19335         * modules/mbmemcasecoll (Dependencies): Likewise.
19336         * modules/mbrtowc (Dependencies): Likewise.
19337         * modules/mbscasecmp (Dependencies): Likewise.
19338         * modules/mbscasestr (Dependencies): Likewise.
19339         * modules/mbschr (Dependencies): Likewise.
19340         * modules/mbscspn (Dependencies): Likewise.
19341         * modules/mbsinit (Dependencies): Likewise.
19342         * modules/mbsncasecmp (Dependencies): Likewise.
19343         * modules/mbsnrtowcs (Dependencies): Likewise.
19344         * modules/mbspbrk (Dependencies): Likewise.
19345         * modules/mbspcasecmp (Dependencies): Likewise.
19346         * modules/mbsrchr (Dependencies): Likewise.
19347         * modules/mbsrtowcs (Dependencies): Likewise.
19348         * modules/mbsspn (Dependencies): Likewise.
19349         * modules/mbsstr (Dependencies): Likewise.
19350         * modules/nl_langinfo (Dependencies): Likewise.
19351         * modules/quotearg (Dependencies): Likewise.
19352         * modules/unicase/locale-language (Dependencies): Likewise.
19353         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19354         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19355         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19356         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19357         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19358         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19359         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19360         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19361         * modules/vasnprintf-posix (Dependencies): Likewise.
19362         * modules/wcrtomb (Dependencies): Likewise.
19363         * modules/wcsnrtombs (Dependencies): Likewise.
19364         * modules/wcsrtombs (Dependencies): Likewise.
19365
19366 2011-02-12  Bruno Haible  <bruno@clisp.org>
19367
19368         setlocale: Workaround native Windows bug.
19369         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19370         succeeds but sets LC_CTYPE to "C", report a failure.
19371         * tests/test-setlocale2.sh: New file.
19372         * tests/test-setlocale2.c: New file.
19373         * modules/setlocale-tests (Files): Add the new files.
19374         (Makefile.am): Enable test-setlocale2.sh test.
19375         * doc/posix-functions/setlocale.texi: Mention workaround.
19376
19377 2011-02-11  Bruno Haible  <bruno@clisp.org>
19378
19379         Tests for module 'setlocale'.
19380         * modules/setlocale-tests: New file.
19381         * tests/test-setlocale1.sh: New file.
19382         * tests/test-setlocale1.c: New file.
19383
19384         New module 'setlocale'.
19385         * lib/locale.in.h (setlocale): New declaration.
19386         * lib/setlocale.c: New file, based on
19387         gettext/gettext-runtime/intl/setlocale.c.
19388         * m4/setlocale.m4: New file.
19389         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19390         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19391         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19392         REPLACE_SETLOCALE.
19393         * modules/setlocale: New file.
19394         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19395         * doc/posix-functions/setlocale.texi: Mention the new module.
19396
19397 2011-02-11  Bruno Haible  <bruno@clisp.org>
19398
19399         Prepare for locale dependent tests on mingw.
19400         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19401         because it has the wrong locale encoding.
19402         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19403         French_France.1252 instead of "fr".
19404         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19405         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19406         because it has the wrong locale encoding.
19407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19408         native Windows, try Turkish_Turkey.65001.
19409         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19410         Chinese_China.54936.
19411
19412         Prepare for locale dependent tests on mingw.
19413         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19414         differently.
19415         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19416         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19417         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19419
19420 2011-02-11  Eric Blake  <eblake@redhat.com>
19421
19422         strptime: avoid compiler warnings
19423         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19424         compiler warnings about dead code.
19425         Reported by Daniel P. Berrange.
19426
19427 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19428
19429         doc: update users.txt
19430         * users.txt: Add rcs.
19431
19432 2011-02-10  John W. Eaton  <jwe@gnu.org>
19433
19434         doc: update users.txt
19435         * users.txt: Add octave.
19436
19437 2011-02-10  Jim Meyering  <meyering@redhat.com>
19438
19439         doc: update users.txt
19440         * users.txt: Add iwhd.
19441
19442 2011-02-09  Bruno Haible  <bruno@clisp.org>
19443
19444         gnulib-tool: Make copyright notice adjustment more robust.
19445         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19446         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19447         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19448         License".
19449         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19450
19451 2011-02-06  Bruno Haible  <bruno@clisp.org>
19452
19453         New module 'towctrans'.
19454         * modules/towctrans: New file.
19455         * lib/wctype.in.h (towctrans): New declaration.
19456         * lib/towctrans.c: New file.
19457         * lib/towctrans-impl.h: New file.
19458         * m4/towctrans.m4: New file.
19459         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19460         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19461         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19462         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19463         * doc/posix-functions/towctrans.texi: Mention the new module.
19464
19465 2011-02-06  Bruno Haible  <bruno@clisp.org>
19466
19467         New module 'wctrans'.
19468         * modules/wctrans: New file.
19469         * lib/wctype.in.h (wctrans): New declaration.
19470         * lib/wctrans.c: New file.
19471         * lib/wctrans-impl.h: New file.
19472         * m4/wctrans.m4: New file.
19473         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19474         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19475         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19476         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19477         * doc/posix-functions/wctrans.texi: Mention the new module.
19478
19479 2011-02-06  Bruno Haible  <bruno@clisp.org>
19480
19481         New module 'iswctype'.
19482         * modules/iswctype: New file.
19483         * lib/wctype.in.h (iswctype): New declaration.
19484         * lib/iswctype.c: New file.
19485         * lib/iswctype-impl.h: New file.
19486         * m4/iswctype.m4: New file.
19487         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19488         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19489         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19490         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19491         * doc/posix-functions/iswctype.texi: Mention the new module and the
19492         HP-UX 11.00 problem.
19493
19494 2011-02-06  Bruno Haible  <bruno@clisp.org>
19495
19496         New module 'wctype'.
19497         * modules/wctype: Change to represent the wctype() substitute.
19498         * lib/wctype.in.h (wctype): New declaration.
19499         * lib/wctype.c: New file.
19500         * lib/wctype-impl.h: New file.
19501         * m4/wctype.m4: New file.
19502         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19503         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19504         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19505         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19506         * doc/posix-functions/wctype.texi: Mention the new module and the
19507         HP-UX 11.00 problem.
19508
19509 2011-02-06  Bruno Haible  <bruno@clisp.org>
19510
19511         wctype-h: Ensure wctype_t and wctrans_t are defined.
19512         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19513         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19514         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19515         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19516         HAVE_WCTRANS_T.
19517         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19518
19519 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19520
19521         flock: fix license typo
19522
19523         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19524         omitted.
19525
19526 2011-02-08  Bruno Haible  <bruno@clisp.org>
19527
19528         Split large sed scripts, for HP-UX sed.
19529         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19530         to avoid HP-UX limit of 99 commands, in the near future.
19531         * modules/stdlib (Makefile.am): Likewise.
19532         * modules/unistd (Makefile.am): Likewise.
19533         * modules/wchar (Makefile.am): Likewise.
19534         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19535         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19537
19538 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19539             Bruno Haible  <bruno@clisp.org>
19540
19541         stdlib: improve random_r modularization
19542         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19543         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19544         you also need the random_r module to get this material right.
19545         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19546         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19547         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19548
19549 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19550
19551         stdlib: don't depend on stdint
19552         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19553         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19554         be independent of whether stdint.h is needed.
19555         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19556         here, instead of ...
19557         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19558         struct random_data should be using the random_r module, not just
19559         the stdlib module (which wouldn't make sense: what package needs
19560         just struct random_data without also needing random_r?).
19561         * modules/stdlib (Depends-on): Remove stdint.
19562
19563         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19564         See the thread rooted at
19565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19566         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19567         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19568         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19569         __VMS)); previously it was always included (via fcntl--.h).
19570         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19571         hand; this is good enough for load averages.  Also, do not use
19572         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19573         flags directly if available and don't bother otherwise.  (Packages
19574         that need the extra reliability should use the modules that define
19575         these flags on older platforms that lack them.)
19576         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19577         fcntl-safer.
19578
19579 2011-02-08  Jim Meyering  <meyering@redhat.com>
19580
19581         di-set.h, ino-map.h: add multiple-inclusion guard
19582         Technically, the guard is required only for ino-map.h, due to its
19583         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19584         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19585         * lib/ino-map.h: Likewise.
19586
19587 2011-02-06  Bruno Haible  <bruno@clisp.org>
19588
19589         iswblank: Ensure declaration on glibc systems.
19590         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19591         * modules/iswblank (Dependencies): Add 'extensions'.
19592         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19593
19594 2011-02-06  Bruno Haible  <bruno@clisp.org>
19595
19596         New module 'iswblank'.
19597         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19598         * modules/iswblank: New file.
19599         * modules/wctype-h (Files): Remove lib/iswblank.c.
19600         (Makefile.am): Substitute GNULIB_ISWBLANK.
19601         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19602         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19603         (gl_WCTYPE_H_DEFAULTS): New macro.
19604         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19605         * modules/iswblank-tests: New file.
19606         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19607         * tests/test-wctype-h.c (main): Remove iswblank tests.
19608         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19609         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19610         of 'wctype-h'.
19611         * NEWS: Mention the change.
19612         * modules/mbchar (Depends-on): Add iswblank.
19613
19614 2011-02-08  Bruno Haible  <bruno@clisp.org>
19615
19616         di-set tests: Refactor.
19617         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19618         unnecessary includes.
19619         (ASSERT): Remove macro.
19620         (main): Make C90 compliant by avoiding variable declaration after
19621         statement.
19622         * modules/di-set-tests (Files): Add tests/macros.h.
19623
19624 2011-02-08  Bruno Haible  <bruno@clisp.org>
19625
19626         ino-map tests: Refactor.
19627         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19628         unnecessary includes.
19629         (ASSERT): Remove macro.
19630         (main): Make C90 compliant by avoiding variable declaration after
19631         statement.
19632         * modules/ino-map-tests (Files): Add tests/macros.h.
19633
19634 2011-02-08  Jim Meyering  <meyering@redhat.com>
19635
19636         di-set: add "const" to a cast
19637         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19638         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19639
19640 2011-02-06  Bruno Haible  <bruno@clisp.org>
19641
19642         Rename module 'wctype' to 'wctype-h'.
19643         * modules/wctype-h: Renamed from modules/wctype.
19644         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19645         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19646         (Files, Depends-on, Makefile.am): Update.
19647         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19648         (Files, Makefile.am): Update.
19649         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19650         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19651         * doc/posix-headers/wctype.texi: Update.
19652         * doc/posix-functions/iswalnum.texi: Update.
19653         * doc/posix-functions/iswalpha.texi: Update.
19654         * doc/posix-functions/iswblank.texi: Update.
19655         * doc/posix-functions/iswcntrl.texi: Update.
19656         * doc/posix-functions/iswdigit.texi: Update.
19657         * doc/posix-functions/iswgraph.texi: Update.
19658         * doc/posix-functions/iswlower.texi: Update.
19659         * doc/posix-functions/iswprint.texi: Update.
19660         * doc/posix-functions/iswpunct.texi: Update.
19661         * doc/posix-functions/iswspace.texi: Update.
19662         * doc/posix-functions/iswupper.texi: Update.
19663         * doc/posix-functions/iswxdigit.texi: Update.
19664         * doc/posix-functions/towlower.texi: Update.
19665         * doc/posix-functions/towupper.texi: Update.
19666         * NEWS: Mention the change.
19667         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19668         * modules/mbchar (Dependencies): Likewise.
19669         * modules/mbswidth (Dependencies): Likewise.
19670         * modules/quotearg (Dependencies): Likewise.
19671         * modules/regex (Dependencies): Likewise.
19672         * modules/wcscasecmp (Dependencies): Likewise.
19673         * modules/wcsncasecmp (Dependencies): Likewise.
19674         * modules/wcwidth (Dependencies): Likewise.
19675
19676 2011-02-06  Bruno Haible  <bruno@clisp.org>
19677
19678         New module 'wcswidth'.
19679         * modules/wcswidth: New file.
19680         * lib/wchar.in.h (wcswidth): New declaration.
19681         * lib/wcswidth.c: New file.
19682         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19683         * m4/wcswidth.m4: New file.
19684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19686         REPLACE_WCSWIDTH.
19687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19688         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19689         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19690         * doc/posix-functions/wcswidth.texi: Mention the new module.
19691
19692 2011-02-06  Bruno Haible  <bruno@clisp.org>
19693
19694         New module 'wcstok'.
19695         * modules/wcstok: New file.
19696         * lib/wchar.in.h (wcstok): New declaration.
19697         * lib/wcstok.c: New file.
19698         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19699         * m4/wcstok.m4: New file.
19700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19703         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19704         * doc/posix-functions/wcstok.texi: Mention the new module.
19705
19706 2011-02-06  Bruno Haible  <bruno@clisp.org>
19707
19708         New module 'wcsstr'.
19709         * modules/wcsstr: New file.
19710         * lib/wchar.in.h (wcsstr): New declaration.
19711         * lib/wcsstr.c: New file.
19712         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19713         * m4/wcsstr.m4: New file.
19714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19717         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19718         * doc/posix-functions/wcsstr.texi: Mention the new module.
19719
19720 2011-02-06  Bruno Haible  <bruno@clisp.org>
19721
19722         New module 'wcspbrk'.
19723         * modules/wcspbrk: New file.
19724         * lib/wchar.in.h (wcspbrk): New declaration.
19725         * lib/wcspbrk.c: New file.
19726         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19727         * m4/wcspbrk.m4: New file.
19728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19731         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19732         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19733
19734 2011-02-06  Bruno Haible  <bruno@clisp.org>
19735
19736         New module 'wcsspn'.
19737         * modules/wcsspn: New file.
19738         * lib/wchar.in.h (wcsspn): New declaration.
19739         * lib/wcsspn.c: New file.
19740         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19741         * m4/wcsspn.m4: New file.
19742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19745         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19746         * doc/posix-functions/wcsspn.texi: Mention the new module.
19747
19748 2011-02-06  Bruno Haible  <bruno@clisp.org>
19749
19750         New module 'wcscspn'.
19751         * modules/wcscspn: New file.
19752         * lib/wchar.in.h (wcscspn): New declaration.
19753         * lib/wcscspn.c: New file.
19754         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19755         * m4/wcscspn.m4: New file.
19756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19759         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19760         * doc/posix-functions/wcscspn.texi: Mention the new module.
19761
19762 2011-02-06  Bruno Haible  <bruno@clisp.org>
19763
19764         New module 'wcsrchr'.
19765         * modules/wcsrchr: New file.
19766         * lib/wchar.in.h (wcsrchr): New declaration.
19767         * lib/wcsrchr.c: New file.
19768         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19769         * m4/wcsrchr.m4: New file.
19770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19773         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19774         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19775
19776 2011-02-06  Bruno Haible  <bruno@clisp.org>
19777
19778         New module 'wcschr'.
19779         * modules/wcschr: New file.
19780         * lib/wchar.in.h (wcschr): New declaration.
19781         * lib/wcschr.c: New file.
19782         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19783         * m4/wcschr.m4: New file.
19784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19787         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19788         * doc/posix-functions/wcschr.texi: Mention the new module.
19789
19790 2011-02-06  Bruno Haible  <bruno@clisp.org>
19791
19792         New module 'wcsdup'.
19793         * modules/wcsdup: New file.
19794         * lib/wchar.in.h (wcsdup): New declaration.
19795         * lib/wcsdup.c: New file.
19796         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19797         * m4/wcsdup.m4: New file.
19798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19801         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19802         * doc/posix-functions/wcsdup.texi: Mention the new module.
19803
19804 2011-02-06  Bruno Haible  <bruno@clisp.org>
19805
19806         New module 'wcsxfrm'.
19807         * modules/wcsxfrm: New file.
19808         * lib/wchar.in.h (wcsxfrm): New declaration.
19809         * lib/wcsxfrm.c: New file.
19810         * lib/wcsxfrm-impl.h: New file.
19811         * m4/wcsxfrm.m4: New file.
19812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19815         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19816         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19817
19818 2011-02-06  Bruno Haible  <bruno@clisp.org>
19819
19820         New module 'wcscoll'.
19821         * modules/wcscoll: New file.
19822         * lib/wchar.in.h (wcscoll): New declaration.
19823         * lib/wcscoll.c: New file.
19824         * lib/wcscoll-impl.h: New file.
19825         * m4/wcscoll.m4: New file.
19826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19829         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19830         * doc/posix-functions/wcscoll.texi: Mention the new module.
19831
19832 2011-02-06  Bruno Haible  <bruno@clisp.org>
19833
19834         New module 'wcsncasecmp'.
19835         * modules/wcsncasecmp: New file.
19836         * lib/wchar.in.h (wcsncasecmp): New declaration.
19837         * lib/wcsncasecmp.c: New file.
19838         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19839         * m4/wcsncasecmp.m4: New file.
19840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19843         HAVE_WCSNCASECMP.
19844         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19845         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19846
19847 2011-02-06  Bruno Haible  <bruno@clisp.org>
19848
19849         New module 'wcscasecmp'.
19850         * modules/wcscasecmp: New file.
19851         * lib/wchar.in.h (wcscasecmp): New declaration.
19852         * lib/wcscasecmp.c: New file.
19853         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19854         * m4/wcscasecmp.m4: New file.
19855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19858         HAVE_WCSCASECMP.
19859         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19860         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19861
19862 2011-02-05  Bruno Haible  <bruno@clisp.org>
19863
19864         New module 'wcsncmp'.
19865         * modules/wcsncmp: New file.
19866         * lib/wchar.in.h (wcsncmp): New declaration.
19867         * lib/wcsncmp.c: New file.
19868         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19869         * m4/wcsncmp.m4: New file.
19870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19873         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19874         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19875
19876 2011-02-05  Bruno Haible  <bruno@clisp.org>
19877
19878         New module 'wcscmp'.
19879         * modules/wcscmp: New file.
19880         * lib/wchar.in.h (wcscmp): New declaration.
19881         * lib/wcscmp.c: New file.
19882         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19883         * m4/wcscmp.m4: New file.
19884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19887         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19888         * doc/posix-functions/wcscmp.texi: Mention the new module.
19889
19890 2011-02-05  Bruno Haible  <bruno@clisp.org>
19891
19892         New module 'wcsncat'.
19893         * modules/wcsncat: New file.
19894         * lib/wchar.in.h (wcsncat): New declaration.
19895         * lib/wcsncat.c: New file.
19896         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19897         * m4/wcsncat.m4: New file.
19898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19901         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19902         * doc/posix-functions/wcsncat.texi: Mention the new module.
19903
19904 2011-02-05  Bruno Haible  <bruno@clisp.org>
19905
19906         New module 'wcscat'.
19907         * modules/wcscat: New file.
19908         * lib/wchar.in.h (wcscat): New declaration.
19909         * lib/wcscat.c: New file.
19910         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19911         * m4/wcscat.m4: New file.
19912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19915         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19916         * doc/posix-functions/wcscat.texi: Mention the new module.
19917
19918 2011-02-05  Bruno Haible  <bruno@clisp.org>
19919
19920         New module 'wcpncpy'.
19921         * modules/wcpncpy: New file.
19922         * lib/wchar.in.h (wcpncpy): New declaration.
19923         * lib/wcpncpy.c: New file.
19924         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19925         * m4/wcpncpy.m4: New file.
19926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19928         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19929         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19930         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19931
19932 2011-02-05  Bruno Haible  <bruno@clisp.org>
19933
19934         New module 'wcsncpy'.
19935         * modules/wcsncpy: New file.
19936         * lib/wchar.in.h (wcsncpy): New declaration.
19937         * lib/wcsncpy.c: New file.
19938         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19939         * m4/wcsncpy.m4: New file.
19940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19943         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19944         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19945
19946 2011-02-05  Bruno Haible  <bruno@clisp.org>
19947
19948         New module 'wcpcpy'.
19949         * modules/wcpcpy: New file.
19950         * lib/wchar.in.h (wcpcpy): New declaration.
19951         * lib/wcpcpy.c: New file.
19952         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19953         * m4/wcpcpy.m4: New file.
19954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19956         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19957         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19958         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19959
19960 2011-02-05  Bruno Haible  <bruno@clisp.org>
19961
19962         New module 'wcscpy'.
19963         * modules/wcscpy: New file.
19964         * lib/wchar.in.h (wcscpy): New declaration.
19965         * lib/wcscpy.c: New file.
19966         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19967         * m4/wcscpy.m4: New file.
19968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19971         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19972         * doc/posix-functions/wcscpy.texi: Mention the new module.
19973
19974 2011-02-05  Bruno Haible  <bruno@clisp.org>
19975
19976         New module 'wcsnlen'.
19977         * modules/wcsnlen: New file.
19978         * lib/wchar.in.h (wcsnlen): New declaration.
19979         * lib/wcsnlen.c: New file.
19980         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19981         * m4/wcsnlen.m4: New file.
19982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19985         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19986         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19987
19988 2011-02-05  Bruno Haible  <bruno@clisp.org>
19989
19990         New module 'wcslen'.
19991         * modules/wcslen: New file.
19992         * lib/wchar.in.h (wcslen): New declaration.
19993         * lib/wcslen.c: New file.
19994         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19995         * m4/wcslen.m4: New file.
19996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19999         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20000         * doc/posix-functions/wcslen.texi: Mention the new module.
20001
20002 2011-02-05  Bruno Haible  <bruno@clisp.org>
20003
20004         New module 'wmemset'.
20005         * modules/wmemset: New file.
20006         * lib/wchar.in.h (wmemset): New declaration.
20007         * lib/wmemset.c: New file.
20008         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20009         * m4/wmemset.m4: New file.
20010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20012         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20013         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20014         * doc/posix-functions/wmemset.texi: Mention the new module.
20015
20016 2011-02-05  Bruno Haible  <bruno@clisp.org>
20017
20018         New module 'wmemmove'.
20019         * modules/wmemmove: New file.
20020         * lib/wchar.in.h (wmemmove): New declaration.
20021         * lib/wmemmove.c: New file.
20022         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20023         * m4/wmemmove.m4: New file.
20024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20026         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20027         HAVE_WMEMMOVE.
20028         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20029         * doc/posix-functions/wmemmove.texi: Mention the new module.
20030
20031 2011-02-05  Bruno Haible  <bruno@clisp.org>
20032
20033         New module 'wmemcpy'.
20034         * modules/wmemcpy: New file.
20035         * lib/wchar.in.h (wmemcpy): New declaration.
20036         * lib/wmemcpy.c: New file.
20037         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20038         * m4/wmemcpy.m4: New file.
20039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20041         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20042         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20043         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20044
20045 2011-02-05  Bruno Haible  <bruno@clisp.org>
20046
20047         New module 'wmemcmp'.
20048         * modules/wmemcmp: New file.
20049         * lib/wchar.in.h (wmemcmp): New declaration.
20050         * lib/wmemcmp.c: New file.
20051         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20052         * m4/wmemcmp.m4: New file.
20053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20055         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20056         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20057         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20058
20059 2011-02-07  Jim Meyering  <meyering@redhat.com>
20060
20061         di-set, ino-map: new modules, from coreutils
20062         * lib/di-set.c: New file.
20063         * lib/di-set.h: Likewise.
20064         * lib/ino-map.c: Likewise.
20065         * lib/ino-map.h: Likewise.
20066         * modules/di-set: Likewise.
20067         * modules/di-set-tests: Likewise.
20068         * modules/ino-map: Likewise.
20069         * modules/ino-map-tests: Likewise.
20070         * tests/test-di-set.c: Likewise.
20071         * tests/test-ino-map.c: Likewise.
20072
20073 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20074
20075         getloadavg: merge minor changes from Emacs
20076
20077         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20078         (getloadavg): Use memset, not bzero.
20079
20080         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20081         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20082         clash (bug#86).
20083
20084 2010-11-14  Bruno Haible  <bruno@clisp.org>
20085
20086         Allow multiple gnulib generated replacements to coexist.
20087         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20088         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20089         * lib/langinfo.in.h (nl_item): Likewise.
20090         * lib/math.in.h (_NaN, NAN): Likewise.
20091         * lib/netdb.in.h (struct addrinfo): Likewise.
20092         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20093         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20094         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20095         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20096         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20097         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20098         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20099         pthread_mutexattr_init, pthread_mutexattr_settype,
20100         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20101         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20102         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20103         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20104         * lib/sched.in.h (struct sched_param): Likewise.
20105         * lib/se-selinux.in.h (security_class_t, security_context_t,
20106         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20107         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20108         lsetfilecon, fsetfilecon, security_check_context,
20109         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20110         Likewise.
20111         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20112         Likewise.
20113         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20114         _gl_function_taking_int_returning_void_t, union sigval,
20115         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20116         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20117         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20118         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20119         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20120         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20121         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20122         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20123         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20124         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20125         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20126         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20127         socklen_t, rpl_fd_isset): Likewise.
20128         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20129         * lib/sys_time.in.h (struct timeval): Likewise.
20130         * lib/sys_times.in.h (struct tms): Likewise.
20131         * lib/sys_utsname.in.h (struct utsname):
20132         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20133         * lib/unistd.in.h (getpagesize): Likewise.
20134         * lib/wchar.in.h (mbstate_t): Likewise.
20135         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20136         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20137         towlower, towupper): Likewise.
20138         Reported by Sam Steingold <sds@gnu.org>.
20139
20140 2011-02-05  Eric Blake  <eblake@redhat.com>
20141
20142         unsetenv: work around Haiku issues
20143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20144         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20145
20146 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20147
20148         libposix: avoid calling error() within libposix
20149         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20150         is defined.
20151
20152 2011-02-05  Eric Blake  <eblake@redhat.com>
20153
20154         strerror_r-posix: port to cygwin
20155         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20156         implementation.
20157         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20158         * tests/test-strerror_r.c (main): Fix test.
20159         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20160         issue.
20161
20162 2011-02-05  Bruno Haible  <bruno@clisp.org>
20163
20164         New module 'wmemchr'.
20165         * modules/wmemchr: New file.
20166         * lib/wchar.in.h (wmemchr): New declaration.
20167         * lib/wmemchr.c: New file.
20168         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20169         * m4/wmemchr.m4: New file.
20170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20172         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20173         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20174         * doc/posix-functions/wmemchr.texi: Mention the new module.
20175
20176 2011-02-04  Eric Blake  <eblake@redhat.com>
20177
20178         fdopendir: detect FreeBSD bug
20179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20180         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20181
20182 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20183
20184         stdbool: do not define HAVE_STDBOOL_H
20185         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20186         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20187         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20188         imported from the latest Autoconf git.  It was motivated by Emacs,
20189         which uses gnulib but does not need HAVE_STDBOOL_H.
20190
20191 2011-02-04  Bruno Haible  <bruno@clisp.org>
20192
20193         wcsnrtombs: Prepare for new module wwcsnrtombs.
20194         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20195         * lib/wcsnrtombs.c: Include it.
20196         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20197
20198         wcsrtombs: Prepare for new module wwcsrtombs.
20199         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20200         * lib/wcsrtombs.c: Include it.
20201         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20202
20203         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20204         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20205         * lib/mbsnrtowcs.c: Include it.
20206         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20207
20208         mbsrtowcs: Prepare for new module mbsrtowwcs.
20209         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20210         * lib/mbsrtowcs.c: Include it.
20211         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20212
20213 2011-02-04  Bruno Haible  <bruno@clisp.org>
20214
20215         vasnprintf: Reduce use of malloc for small format strings.
20216         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20217         (arguments): Add room for the first 7 arguments.
20218         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20219         (char_directives, u8_directives, u16_directives, u32_directives): Add
20220         room for the first 7 directives.
20221         * lib/printf-parse.c: Include <string.h>.
20222         (PRINTF_PARSE): Change memory handling code so that it uses the first
20223         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20224         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20225         Reported by Pádraig Brady <P@draigbrady.com>.
20226
20227 2011-01-31  Eric Blake  <eblake@redhat.com>
20228
20229         dup2: work around Haiku bug
20230         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20231         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20232         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20233         * tests/test-dup2.c (main): Enhance test.
20234
20235 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20236
20237         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20238         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20239         declared by eglibc 2.11.2.
20240         * lib/stdio.in.h: Likewise.
20241
20242 2011-01-31  Eric Blake  <eblake@redhat.com>
20243
20244         ignore-value: add missing test dependency
20245         * tests/test-ignore-value.c: Revert previous change; stdio.h
20246         provides off_t.
20247         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20248
20249 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20250
20251         mktime: clarify long_int width checking
20252         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20253         the top level, to make it clearer that the assumption about
20254         long_int width is being checked.  See
20255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20256
20257 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20258
20259         ignore-value: Fix self-test.
20260         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20261
20262 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20263
20264         TYPE_MAXIMUM: avoid theoretically undefined behavior
20265         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20266         negative number, which the C Standard says has undefined behavior.
20267         In practice this is not a problem, but might as well do it by the book.
20268         Reported by Rich Felker and Eric Blake; see
20269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20270         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20271         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20273         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20274         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20275         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20276
20277         mktime: #undef mktime before #defining it
20278         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20279
20280         mktime: systematically normalize tm_isdst comparisons
20281         * lib/mktime.c (isdst_differ): New function.
20282         (__mktime_internal): Use it systematically for all isdst comparisons.
20283         This completes the fix for libc BZ #6723, and removes the need for
20284         normalizing tm_isdst.  See
20285         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20286         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20287
20288         mktime: fix some integer overflow issues and sidestep the rest
20289
20290         This was prompted by a bug report by Benjamin Lindner for MinGW
20291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20292         His bug is due to signed integer overflow (0 - INT_MIN), and I
20293         I scanned through mktime.c looking for other integer overflow
20294         problems, fixing all the bugs I found.
20295
20296         Although the C Standard says the resulting code is still not safe
20297         in the presence of integer overflow, in practice it should be good
20298         enough for all real-world two's-complement implementations, except
20299         for debugging environments that deliberately trap on integer
20300         overflow (e.g., gcc -ftrapv).
20301
20302         * lib/mktime.c (WRAPV): New macro.
20303         (SHR): Also check that long_int and time_t shift right in the
20304         usual way, before using the fast-but-unportable method.
20305         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20306         used.  The code already assumed two's complement, so there's
20307         no need to test for alternatives.  All uses removed.
20308         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20309         the C standard.  Problem reported by Rich Felker in
20310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20311         (twos_complement_arithmetic): Also check long_int and time_t.
20312         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20313         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20314         (__mktime_internal): Avoid integer overflow with unary subtraction
20315         in two instances where -1 - X is an adequate replacement for -X,
20316         since the calculations are approximate.
20317
20318 2011-01-29  Eric Blake  <eblake@redhat.com>
20319
20320         mktime: avoid infinite loop
20321         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20322         type; behavior is still undefined but portable to all known targets.
20323         Reported by Rich Felker.
20324
20325 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20326
20327         rename, unlink, same-inode: Relicense.
20328         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20329         * modules/unlink (License): Likewise.
20330         * modules/same-inode (License): Likewise.
20331
20332 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20333
20334         mktime: avoid problems on NetBSD 5 / i386
20335         * lib/mktime.c (long_int): New type.  This works around a problem
20336         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20337         but time_t is 64 bits, and where I expect the existing code is
20338         wrong in some cases.
20339         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20340         (ydhms_diff): Bring back the compile-time check for wide-enough
20341         year and yday.
20342
20343         mktime: fix misspelling in comment
20344         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20345         This merges all recent glibc changes of importance.
20346
20347 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20348
20349         move-if-change: cope with concurrent mv of identical file.
20350         * build-aux/move-if-change (CMPPROG): Accept environment
20351         variable as an override for `cmp'.
20352         (usage): Document CMPPROG.
20353         Adjust comparison to drop stdout.  Cope with failure of mv if
20354         the target file exists and is identical to the source, for
20355         parallel builds.
20356         Report from H.J. Lu against binutils in PR binutils/12283.
20357
20358 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20359
20360         * users.txt: Mention sharutils.
20361
20362 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20363
20364         * users.txt: Mention OATH Toolkit.
20365
20366 2011-01-27  Bruno Haible  <bruno@clisp.org>
20367
20368         Prepare for supporting FreeBSD 10.
20369         * build-aux/config.libpath: Remove handling of freebsd1*.
20370
20371 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20372
20373         Prepare for supporting FreeBSD 10.
20374         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20375         match FreeBSD 10.0.
20376
20377 2011-01-27  Bruno Haible  <bruno@clisp.org>
20378
20379         vma-iter, get-rusage-as: Add OpenBSD support.
20380         * modules/vma-iter (configure.ac): Test for mquery.
20381         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20382         * lib/vma-iter.c: Include <sys/mman.h>.
20383         (vma_iterate): Add an implementation based on mquery().
20384         * lib/resource-ext.h (get_rusage_as): Update comments.
20385         * lib/get-rusage-as.c: Likewise.
20386         * lib/get-rusage-data.c: Likewise.
20387
20388 2011-01-26  Karl Berry  <karl@gnu.org>
20389
20390         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20391         variables to make it easier to override the makeinfo program used.
20392
20393 2011-01-26  Eric Blake  <eblake@redhat.com>
20394
20395         fcntl: work around Haiku F_DUPFD bugs
20396         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20397         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20398         cloexec bit on duplication.
20399         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20400
20401 2011-01-26  Bruno Haible  <bruno@clisp.org>
20402
20403         Enable memory leak tests on AIX.
20404         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20405         * tests/test-fprintf-posix3.c (main): Likewise.
20406
20407 2011-01-26  Bruno Haible  <bruno@clisp.org>
20408
20409         Tests for module 'get-rusage-data'.
20410         * modules/get-rusage-data-tests: New file.
20411         * tests/test-get-rusage-data.c: New file.
20412
20413         New module 'get-rusage-data'.
20414         * lib/resource-ext.h (get_rusage_data): New declaration.
20415         * lib/get-rusage-data.c: New file.
20416         * modules/get-rusage-data: New file.
20417
20418 2011-01-25  Bruno Haible  <bruno@clisp.org>
20419
20420         get-rusage-as: Allow for easier testing.
20421         * lib/resource-ext.h (get_rusage_as): Add comment.
20422         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20423         (main): New function for interactive testing.
20424
20425 2011-01-25  Bruno Haible  <bruno@clisp.org>
20426
20427         vma-iter: Treat Haiku like BeOS.
20428         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20429         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20430
20431 2011-01-25  Eric Blake  <eblake@redhat.com>
20432
20433         c-stack: fix regression on cygwin when libsigsegv is present
20434         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20435
20436 2011-01-24  Bruno Haible  <bruno@clisp.org>
20437
20438         vma-iter: Avoid empty intervals.
20439         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20440         on an empty interval.
20441
20442 2011-01-24  Jim Meyering  <meyering@redhat.com>
20443
20444         u64: remove unnecessary #include
20445         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20446
20447 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20448
20449         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20450         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20451
20452 2011-01-23  Bruno Haible  <bruno@clisp.org>
20453
20454         New module 'vma-iter'.
20455         * lib/vma-iter.h: New file.
20456         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20457         * modules/vma-iter: New file.
20458         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20459         for get_rusage_as_via_iterator.
20460         (vma_iterate_callback): New function.
20461         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20462         * modules/get-rusage-as (Depends-on): Add vma-iter.
20463
20464 2011-01-23  Bruno Haible  <bruno@clisp.org>
20465
20466         uninorm: Tweak includes.
20467         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20468         Reported by Jim Meyering.
20469
20470 2011-01-23  Bruno Haible  <bruno@clisp.org>
20471
20472         get-rusage-as: Improve on NetBSD.
20473         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20474         /proc, like on FreeBSD.
20475
20476 2011-01-23  Jim Meyering  <meyering@redhat.com>
20477
20478         xreadlink.h: remove unnecessary #include
20479         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20480
20481         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20482         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20483
20484 2011-01-23  Bruno Haible  <bruno@clisp.org>
20485
20486         get-rusage-as: Fix bug.
20487         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20488         original limit when aborting the first loop.
20489
20490 2011-01-23  Bruno Haible  <bruno@clisp.org>
20491
20492         wctype: Ensure valid C syntax.
20493         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20494         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20495
20496 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20497
20498         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20500         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20501         as they are needed only for configure's test case.
20502         This removes two unnecessary symbols from config.h.
20503
20504         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20505         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20507         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20508         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20509         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20510         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20511         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20512         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20513         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20514         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20515         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20516         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20517         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20518         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20519         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20520         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20521         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20522
20523 2011-01-21  Eric Blake  <eblake@redhat.com>
20524
20525         maintainer-makefile: work with older git for submodule check
20526         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20527         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20528         Reported by Matthias Bolte.
20529
20530         bootstrap: minor portability fixes
20531         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20532         (usage): Omit leading capital and trailing . on help phrases, per
20533         GNU Coding Standards.
20534         (check_versions, top level): Prefix messages with script name.
20535
20536 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20537
20538         bootstrap: support --no-git option
20539         * build-aux/bootstrap: Add --no-git option, to be used when
20540         --gnulib-srcdir points to the exact desired checkout.
20541
20542 2011-01-21  Eric Blake  <eblake@redhat.com>
20543
20544         strerror_r-posix: work with glibc 2.13
20545         * lib/strerror_r.c (strerror_r): Fix return type.
20546
20547 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20548             Bruno Haible  <bruno@clisp.org>
20549
20550         uN_strstr: New unit tests.
20551         * modules/unistr/u8-strstr-tests: New file.
20552         * modules/unistr/u16-strstr-tests: New file.
20553         * modules/unistr/u32-strstr-tests: New file.
20554         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20555         * tests/unistr/test-u8-strstr.c: New file.
20556         * tests/unistr/test-u16-strstr.c: New file.
20557         * tests/unistr/test-u32-strstr.c: New file.
20558
20559 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20560             Bruno Haible  <bruno@clisp.org>
20561
20562         Make uN_strstr functions O(n) worst-case.
20563         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20564         16-bit and 32-bit unit cases, use the unibyte algorithm from
20565         lib/mbsstr.c.
20566         * lib/unistr/u8-strstr.c: Include <string.h>.
20567         (UNIT_IS_UINT8_T): New macro.
20568         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20569         (U_STRLEN, U_STRNLEN): New macros.
20570         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20571         (U_STRLEN, U_STRNLEN): New macros.
20572         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20573         (configure.ac): Update required libunistring version.
20574         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20575         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20576         malloca.
20577         (configure.ac): Update required libunistring version.
20578         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20579         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20580         malloca.
20581         (configure.ac): Update required libunistring version.
20582
20583 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20584             Bruno Haible  <bruno@clisp.org>
20585
20586         Prepare for faster uN_strstr functions.
20587         * lib/str-kmp.h: Support definable UNITs.
20588         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20589         needle_len argument.
20590         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20591         * lib/mbscasestr.c (mbscasestr): Likewise.
20592
20593 2011-01-21  Pádraig Brady <P@draigBrady.com>
20594
20595         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20596         * tests/test-malloca.c (main): Unset the environment variable
20597         to greatly speed up the test.
20598         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20599         * modules/malloca-tests: Depend on unsetenv.
20600
20601 2011-01-21  Pádraig Brady <P@draigBrady.com>
20602
20603         ignore-value: remove stdint dependency
20604         * lib/ignore-value.h: Remove <stdint.h>
20605         * modules/ignore-value: Remove stdint dependency.
20606
20607 2011-01-21  Jim Meyering  <meyering@redhat.com>
20608
20609         maint.mk: adjust variable name to be consistent with other gl_ vars
20610         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20611         to be lower case.
20612
20613 2011-01-20  Jim Meyering  <meyering@redhat.com>
20614
20615         maint.mk: make "check" depend on public-submodule-commit by default
20616         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20617
20618 2011-01-20  Bruno Haible  <bruno@clisp.org>
20619
20620         mbfile, mbiter: Complete change from 2008-12-21.
20621         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20622         * m4/mbiter.m4 (gl_MBITER): Likewise.
20623
20624 2011-01-20  Jim Meyering  <meyering@redhat.com>
20625
20626         init.sh: insert space between each function name and "()"
20627         * tests/init.sh: Make it a little easier to see that a function's
20628         name is "warn_", and not "warn" when looking at the first part of
20629         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20630
20631 2011-01-20  Jim Meyering  <meyering@redhat.com>
20632
20633         mountlist: clean up code formatting
20634         * lib/mountlist.c (read_file_system_list): Split a long line,
20635         correct bracing style, use NULL in place of "(struct statfs *)0",
20636         don't parenthesize return value, add spaces around "=" and after
20637         ";-in-for-stmt".
20638
20639 2011-01-14  Markus Duft <mduft@gentoo.org>
20640
20641         mountlist: add support for Interix
20642         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20643         Apply statvfs to all entries of /dev/fs.
20644         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20645         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20646
20647 2011-01-20  Jim Meyering  <meyering@redhat.com>
20648
20649         maint.mk: improve the public-submodule-commit rule
20650         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20651         to suppress printing of its commands... unless V=1.
20652         Add git submodule's --quiet option to suppress printing of e.g.,
20653         "Entering gnulib" output.
20654         "cd" into $(srcdir) before running git submodule.
20655
20656 2011-01-20  Bruno Haible  <bruno@clisp.org>
20657
20658         include_next: Fix bug introduced on 2011-01-18.
20659         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20660         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20661         ac_cv_header_... variable if the second argument is not 'check'.
20662         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20663         gl_NEXT_HEADERS_INTERNAL.
20664
20665 2011-01-20  Bruno Haible  <bruno@clisp.org>
20666
20667         Allow the user to avoid the GNULIB_TEST_* macros.
20668         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20669         Suggested by Paul Eggert.
20670
20671 2011-01-14  Jim Meyering  <meyering@redhat.com>
20672
20673         bootstrap: avoid failure when there is no .gitmodules file
20674         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20675         has been assigned to, even when its value is the empty string.
20676         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20677         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20678         Reported by John W. Eaton <jwe@gnu.org>.
20679
20680 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20681
20682         assume <ctype.h>, ..., <time.h> exist
20683         For years gnulib has been assuming the existence of the headers
20684         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20685         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20686         them, since they don't appear to be needed.
20687         * README (Portability guidelines): Document this.
20688         * lib/flock.c: Assume <fcntl.h> exists.
20689         * lib/regex_internal.h: Assume <locale.h> exists.
20690         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20692         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20693         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20694         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20695         * m4/regex.m4 (gl_REGEX): Likewise.
20696         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20697         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20698         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20699         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20700         * tests/test-argp.c: Likewise.
20701         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20702
20703         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20704         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20705         AA_APPLE_UNIVERSAL_BUILD.  See
20706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20707         * NEWS: Document this.
20708
20709 2011-01-19  Eric Blake  <eblake@redhat.com>
20710
20711         c-stack: assume stack overflow if SA_SIGINFO unsupported
20712         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20713         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20714         sigaction will work.
20715         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20716         behavior match Linux.
20717         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20718
20719         stdbool-tests: accomodate Haiku
20720         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20721
20722         binary-io: fix O_TEXT on Haiku
20723         * modules/binary-io (Depends-on): Add fcntl-h.
20724         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20725         than blindly undefining O_TEXT.
20726         Reported by Scott McCreary.
20727
20728 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20729
20730         include_next: do not check for standard headers like stddef.h
20731
20732         I found this problem when modifying Emacs to use gnulib.
20733         I noticed that it added HAVE_STDDEF_H to config.h, even though
20734         gnulib always assumes <stddef.h> exists as per README and this
20735         symbol is unnecessary.
20736         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20737         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20738         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20739         faster for headers like stddef.h that are known to exist.
20740         (gl_CHECK_NEXT_HEADERS): Use it.
20741         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20742         rather than gl_CHECK_NEXT_HEADERS.
20743         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20744         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20745
20746 2011-01-18  Eric Blake  <eblake@redhat.com>
20747
20748         ansi-c++-opt: skip C++ dependency style if C++ is unused
20749         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20750         tests when we know C++ compilation is not desired.
20751         Reported by Scott McCreary.
20752
20753 2011-01-18  Bruno Haible  <bruno@clisp.org>
20754
20755         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20756         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20757         (main): Perform test also when getrlimit and setrlimit don't exist or
20758         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20759         limiting the address space size using setrlimit, compare the address
20760         space size before and after the the test.
20761         * tests/test-dprintf-posix2.c: Likewise.
20762         * tests/test-fprintf-posix3.sh: Update skip messages.
20763         * tests/test-dprintf-posix2.sh: Likewise.
20764         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20765         * modules/dprintf-posix-tests (Depends-on): Likewise.
20766         Reported by Bruce Korb <bkorb@gnu.org> and
20767         Gary V. Vaughan <gary@gnu.org>.
20768
20769 2011-01-18  Bruno Haible  <bruno@clisp.org>
20770
20771         get-rusage-as: Improvement for Cygwin.
20772         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20773         areas that are merely reserved.
20774
20775 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20776
20777         strftime: remove dependencies on multibyte modules
20778
20779         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20780         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20781         only if __osf__ is defined, and I suspect OSF doesn't need these
20782         other modules.  If my guess is wrong, we'll need to come up with a
20783         variant of strftime that doesn't need the multibyte modules.
20784
20785         I discovered this problem when attempting modify Emacs to use the
20786         strftime module.  With the previous gnulib, this caused Emacs to
20787         need 31 new files, ranging from lib/config.charset to
20788         m4/wint_t.m4.  This was overkill and I expect would be offputting
20789         to the Emacs maintainers.  After this change, only 6 new files are
20790         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20791         stdbool.m4, and tm_gmtoff.m4.
20792
20793         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20794         Suggested by Bruno Haible in
20795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20796         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20797         and do not check for wchar.h.
20798         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20799         (Depends-on): Remove mbrlen, mbsinit, wchar.
20800
20801 2011-01-18  Bruno Haible  <bruno@clisp.org>
20802
20803         Tests for module 'get-rusage-as'.
20804         * modules/get-rusage-as-tests: New file.
20805         * tests/test-get-rusage-as.c: New file.
20806
20807         New module 'get-rusage-as'.
20808         * modules/get-rusage-as: New file.
20809         * lib/resource-ext.h: New file.
20810         * lib/get-rusage-as.c: New file.
20811
20812 2011-01-17  Eric Blake  <eblake@redhat.com>
20813
20814         sigaction: relax license from LGPLv3+ to LGPLv2+
20815         * modules/sigaction (License): Relax to LGPLv2+.
20816
20817 2011-01-14  Bruno Haible  <bruno@clisp.org>
20818
20819         filemode: Make function declarations usable in C++ mode.
20820         * lib/filemode.h: Enclose function declarations in extern "C" block.
20821         Reported by John W. Eaton <jwe@gnu.org>.
20822
20823 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20824
20825         save-cwd: no longer include "xgetcwd.h"
20826         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20827         This avoids a compilation failure in projects that use save-cwd
20828         without also using the xgetcwd module.
20829
20830 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20831
20832         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20833         This is so that a program like Emacs, which needs only dtoastr,
20834         does not have to bother with distributing and compiling ftoastr
20835         and ldtoastr.
20836         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20837         * modules/dtoastr, modules/ldtoastr: New files.
20838         * modules/ftoastr: Now works just for 'float'.
20839         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20840         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20841         dtoastr.c, ldtoastr.c.
20842
20843 2011-01-11  Jim Meyering  <meyering@redhat.com>
20844
20845         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20846         There is no need to work around the lack of the fchdir function,
20847         since gnulib can now provide a replacement when required.
20848         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20849         * modules/save-cwd (Depends-on): Add fchdir.
20850
20851 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20852
20853         openat, save-cwd: avoid xmalloc
20854
20855         This removes a direct (but undocumented) dependency of openat on
20856         xalloc, along with an indirect dependency via save-cwd.  It also
20857         removes a dependency of save-cwd on xgetcwd, and thereby
20858         indirectly on xalloc.  This change causes the openat substitute
20859         to fall back on save_cwd when memory is tight, and for save_cwd to
20860         fail instead of dying when memory is tight, but that's good enough.
20861         Problem and initial idea for fix reported by Bastien Roucaries in
20862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20863
20864         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20865         xalloc.h (for xmalloc).
20866         (openat_proc_name): Use malloc, not xmalloc.
20867         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20868         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20869
20870         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20871         This avoids heap allocation for file names whose lengths are in
20872         the range 512..1023, with the upper bound increasing to at most
20873         4031 depending on the platform's PATH_MAX.  (We do not want
20874         pathmax.h here as it might supply a non-constant PATH_MAX.)
20875         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20876         Perhaps they should be moved to malloca.h?
20877         (OPENAT_BUFFER_SIZE): Use them.
20878
20879 2011-01-10  Bruno Haible  <bruno@clisp.org>
20880
20881         doc: Update users.txt.
20882         * users.txt: Add recutils.
20883
20884 2011-01-09  Karl Berry  <karl@gnu.org>
20885
20886         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20887
20888         * doc/configmake.texi: New file.
20889         * doc/gnulib.texi: Include it.
20890         * modules/configmake: Move documentation from here.
20891
20892 2011-01-09  Bruno Haible  <bruno@clisp.org>
20893
20894         Update to Unicode 6.0.0.
20895         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20896         (get_lbp): Update for Unicode 6.0.0.
20897         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20898         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20899         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20900         U+11001, U+11038..U+11046. Remove U+06DE.
20901         (uc_width): Fix bounds of planes.
20902         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20903         lib/uniwidth/width.c.
20904         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20905         trailing whitespace removed.
20906         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20907         without comments, but with the original copyright notice.
20908         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20909         * lib/unicase/ignorable.h: Likewise.
20910         * lib/unicase/tocasefold.h: Likewise.
20911         * lib/unicase/tolower.h: Likewise.
20912         * lib/unicase/totitle.h: Likewise.
20913         * lib/unicase/toupper.h: Likewise.
20914         * lib/unictype/bidi_of.h: Likewise.
20915         * lib/unictype/blocks.h: Likewise.
20916         * lib/unictype/categ_C.h: Likewise.
20917         * lib/unictype/categ_Cn.h: Likewise.
20918         * lib/unictype/categ_L.h: Likewise.
20919         * lib/unictype/categ_Ll.h: Likewise.
20920         * lib/unictype/categ_Lm.h: Likewise.
20921         * lib/unictype/categ_Lo.h: Likewise.
20922         * lib/unictype/categ_Lu.h: Likewise.
20923         * lib/unictype/categ_M.h: Likewise.
20924         * lib/unictype/categ_Mc.h: Likewise.
20925         * lib/unictype/categ_Me.h: Likewise.
20926         * lib/unictype/categ_Mn.h: Likewise.
20927         * lib/unictype/categ_N.h: Likewise.
20928         * lib/unictype/categ_Nd.h: Likewise.
20929         * lib/unictype/categ_No.h: Likewise.
20930         * lib/unictype/categ_P.h: Likewise.
20931         * lib/unictype/categ_Po.h: Likewise.
20932         * lib/unictype/categ_S.h: Likewise.
20933         * lib/unictype/categ_Sc.h: Likewise.
20934         * lib/unictype/categ_Sk.h: Likewise.
20935         * lib/unictype/categ_Sm.h: Likewise.
20936         * lib/unictype/categ_So.h: Likewise.
20937         * lib/unictype/categ_of.h: Likewise.
20938         * lib/unictype/combining.h: Likewise.
20939         * lib/unictype/ctype_alnum.h: Likewise.
20940         * lib/unictype/ctype_alpha.h: Likewise.
20941         * lib/unictype/ctype_graph.h: Likewise.
20942         * lib/unictype/ctype_lower.h: Likewise.
20943         * lib/unictype/ctype_print.h: Likewise.
20944         * lib/unictype/ctype_punct.h: Likewise.
20945         * lib/unictype/ctype_upper.h: Likewise.
20946         * lib/unictype/decdigit.h: Likewise.
20947         * lib/unictype/digit.h: Likewise.
20948         * lib/unictype/numeric.h: Likewise.
20949         * lib/unictype/pr_alphabetic.h: Likewise.
20950         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20951         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20952         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20953         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20954         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20955         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20956         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20957         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20958         * lib/unictype/pr_case_ignorable.h: Likewise.
20959         * lib/unictype/pr_cased.h: Likewise.
20960         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20961         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20962         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20963         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20964         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20965         * lib/unictype/pr_combining.h: Likewise.
20966         * lib/unictype/pr_composite.h: Likewise.
20967         * lib/unictype/pr_currency_symbol.h: Likewise.
20968         * lib/unictype/pr_decimal_digit.h: Likewise.
20969         * lib/unictype/pr_deprecated.h: Likewise.
20970         * lib/unictype/pr_format_control.h: Likewise.
20971         * lib/unictype/pr_grapheme_base.h: Likewise.
20972         * lib/unictype/pr_grapheme_extend.h: Likewise.
20973         * lib/unictype/pr_grapheme_link.h: Likewise.
20974         * lib/unictype/pr_id_continue.h: Likewise.
20975         * lib/unictype/pr_id_start.h: Likewise.
20976         * lib/unictype/pr_ideographic.h: Likewise.
20977         * lib/unictype/pr_lowercase.h: Likewise.
20978         * lib/unictype/pr_math.h: Likewise.
20979         * lib/unictype/pr_numeric.h: Likewise.
20980         * lib/unictype/pr_other_alphabetic.h: Likewise.
20981         * lib/unictype/pr_other_id_continue.h: Likewise.
20982         * lib/unictype/pr_other_math.h: Likewise.
20983         * lib/unictype/pr_punctuation.h: Likewise.
20984         * lib/unictype/pr_sentence_terminal.h: Likewise.
20985         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20986         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20987         * lib/unictype/pr_unified_ideograph.h: Likewise.
20988         * lib/unictype/pr_uppercase.h: Likewise.
20989         * lib/unictype/pr_xid_continue.h: Likewise.
20990         * lib/unictype/pr_xid_start.h: Likewise.
20991         * lib/unictype/scripts.h: Likewise.
20992         * lib/unictype/scripts_byname.gperf: Likewise.
20993         * lib/unictype/sy_java_ident.h: Likewise.
20994         * lib/unigbrk/gbrkprop.h: Likewise.
20995         * lib/unilbrk/lbrkprop1.h: Likewise.
20996         * lib/unilbrk/lbrkprop2.h: Likewise.
20997         * lib/uninorm/decomposition-table2.h: Likewise.
20998         * lib/uniwbrk/wbrkprop.h: Likewise.
20999         * tests/unicase/test-cased.c: Likewise.
21000         * tests/unicase/test-ignorable.c: Likewise.
21001         * tests/unicase/test-uc_tolower.c: Likewise.
21002         * tests/unicase/test-uc_totitle.c: Likewise.
21003         * tests/unicase/test-uc_toupper.c: Likewise.
21004         * tests/unictype/test-categ_C.c: Likewise.
21005         * tests/unictype/test-categ_Cn.c: Likewise.
21006         * tests/unictype/test-categ_L.c: Likewise.
21007         * tests/unictype/test-categ_Ll.c: Likewise.
21008         * tests/unictype/test-categ_Lm.c: Likewise.
21009         * tests/unictype/test-categ_Lo.c: Likewise.
21010         * tests/unictype/test-categ_Lu.c: Likewise.
21011         * tests/unictype/test-categ_M.c: Likewise.
21012         * tests/unictype/test-categ_Mc.c: Likewise.
21013         * tests/unictype/test-categ_Me.c: Likewise.
21014         * tests/unictype/test-categ_Mn.c: Likewise.
21015         * tests/unictype/test-categ_N.c: Likewise.
21016         * tests/unictype/test-categ_Nd.c: Likewise.
21017         * tests/unictype/test-categ_No.c: Likewise.
21018         * tests/unictype/test-categ_P.c: Likewise.
21019         * tests/unictype/test-categ_Po.c: Likewise.
21020         * tests/unictype/test-categ_S.c: Likewise.
21021         * tests/unictype/test-categ_Sc.c: Likewise.
21022         * tests/unictype/test-categ_Sk.c: Likewise.
21023         * tests/unictype/test-categ_Sm.c: Likewise.
21024         * tests/unictype/test-categ_So.c: Likewise.
21025         * tests/unictype/test-ctype_alnum.c: Likewise.
21026         * tests/unictype/test-ctype_alpha.c: Likewise.
21027         * tests/unictype/test-ctype_graph.c: Likewise.
21028         * tests/unictype/test-ctype_lower.c: Likewise.
21029         * tests/unictype/test-ctype_print.c: Likewise.
21030         * tests/unictype/test-ctype_punct.c: Likewise.
21031         * tests/unictype/test-ctype_upper.c: Likewise.
21032         * tests/unictype/test-decdigit.h: Likewise.
21033         * tests/unictype/test-digit.h: Likewise.
21034         * tests/unictype/test-numeric.h: Likewise.
21035         * tests/unictype/test-pr_alphabetic.c: Likewise.
21036         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21037         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21038         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21039         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21040         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21041         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21042         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21043         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21044         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21045         * tests/unictype/test-pr_cased.c: Likewise.
21046         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21047         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21048         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21049         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21050         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21051         * tests/unictype/test-pr_combining.c: Likewise.
21052         * tests/unictype/test-pr_composite.c: Likewise.
21053         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21054         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21055         * tests/unictype/test-pr_deprecated.c: Likewise.
21056         * tests/unictype/test-pr_format_control.c: Likewise.
21057         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21058         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21059         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21060         * tests/unictype/test-pr_id_continue.c: Likewise.
21061         * tests/unictype/test-pr_id_start.c: Likewise.
21062         * tests/unictype/test-pr_ideographic.c: Likewise.
21063         * tests/unictype/test-pr_lowercase.c: Likewise.
21064         * tests/unictype/test-pr_math.c: Likewise.
21065         * tests/unictype/test-pr_numeric.c: Likewise.
21066         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21067         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21068         * tests/unictype/test-pr_other_math.c: Likewise.
21069         * tests/unictype/test-pr_punctuation.c: Likewise.
21070         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21071         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21072         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21073         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21074         * tests/unictype/test-pr_uppercase.c: Likewise.
21075         * tests/unictype/test-pr_xid_continue.c: Likewise.
21076         * tests/unictype/test-pr_xid_start.c: Likewise.
21077         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21078         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21079         changes.
21080         * lib/unictype/categ_Cc.h: Likewise.
21081         * lib/unictype/categ_Cf.h: Likewise.
21082         * lib/unictype/categ_Co.h: Likewise.
21083         * lib/unictype/categ_Cs.h: Likewise.
21084         * lib/unictype/categ_Lt.h: Likewise.
21085         * lib/unictype/categ_Nl.h: Likewise.
21086         * lib/unictype/categ_Pc.h: Likewise.
21087         * lib/unictype/categ_Pd.h: Likewise.
21088         * lib/unictype/categ_Pe.h: Likewise.
21089         * lib/unictype/categ_Pf.h: Likewise.
21090         * lib/unictype/categ_Pi.h: Likewise.
21091         * lib/unictype/categ_Ps.h: Likewise.
21092         * lib/unictype/categ_Z.h: Likewise.
21093         * lib/unictype/categ_Zl.h: Likewise.
21094         * lib/unictype/categ_Zp.h: Likewise.
21095         * lib/unictype/categ_Zs.h: Likewise.
21096         * lib/unictype/ctype_blank.h: Likewise.
21097         * lib/unictype/ctype_cntrl.h: Likewise.
21098         * lib/unictype/ctype_digit.h: Likewise.
21099         * lib/unictype/ctype_space.h: Likewise.
21100         * lib/unictype/ctype_xdigit.h: Likewise.
21101         * lib/unictype/mirror.h: Likewise.
21102         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21103         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21104         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21105         * lib/unictype/pr_bidi_control.h: Likewise.
21106         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21107         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21108         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21109         * lib/unictype/pr_bidi_pdf.h: Likewise.
21110         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21111         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21112         * lib/unictype/pr_dash.h: Likewise.
21113         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21114         * lib/unictype/pr_diacritic.h: Likewise.
21115         * lib/unictype/pr_extender.h: Likewise.
21116         * lib/unictype/pr_hex_digit.h: Likewise.
21117         * lib/unictype/pr_hyphen.h: Likewise.
21118         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21119         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21120         * lib/unictype/pr_ignorable_control.h: Likewise.
21121         * lib/unictype/pr_iso_control.h: Likewise.
21122         * lib/unictype/pr_join_control.h: Likewise.
21123         * lib/unictype/pr_left_of_pair.h: Likewise.
21124         * lib/unictype/pr_line_separator.h: Likewise.
21125         * lib/unictype/pr_logical_order_exception.h: Likewise.
21126         * lib/unictype/pr_non_break.h: Likewise.
21127         * lib/unictype/pr_not_a_character.h: Likewise.
21128         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21129         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21130         * lib/unictype/pr_other_id_start.h: Likewise.
21131         * lib/unictype/pr_other_lowercase.h: Likewise.
21132         * lib/unictype/pr_other_uppercase.h: Likewise.
21133         * lib/unictype/pr_paired_punctuation.h: Likewise.
21134         * lib/unictype/pr_paragraph_separator.h: Likewise.
21135         * lib/unictype/pr_pattern_syntax.h: Likewise.
21136         * lib/unictype/pr_pattern_white_space.h: Likewise.
21137         * lib/unictype/pr_private_use.h: Likewise.
21138         * lib/unictype/pr_quotation_mark.h: Likewise.
21139         * lib/unictype/pr_radical.h: Likewise.
21140         * lib/unictype/pr_soft_dotted.h: Likewise.
21141         * lib/unictype/pr_space.h: Likewise.
21142         * lib/unictype/pr_titlecase.h: Likewise.
21143         * lib/unictype/pr_variation_selector.h: Likewise.
21144         * lib/unictype/pr_white_space.h: Likewise.
21145         * lib/unictype/pr_zero_width.h: Likewise.
21146         * lib/unictype/sy_c_ident.h: Likewise.
21147         * lib/unictype/sy_c_whitespace.h: Likewise.
21148         * lib/unictype/sy_java_whitespace.h: Likewise.
21149         * lib/uninorm/composition-table.gperf: Likewise.
21150         * lib/uninorm/decomposition-table1.h: Likewise.
21151         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21152         LB8.
21153         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21154         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21155         * modules/unictype/*: Bump version number of expected libunistring
21156         version.
21157
21158 2011-01-09  Bruno Haible  <bruno@clisp.org>
21159
21160         Update to Unicode 5.2.0.
21161         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21162         trailing whitespace removed.
21163
21164 2011-01-09  Bruno Haible  <bruno@clisp.org>
21165
21166         New Unicode character properties, from Unicode 5.2.0.
21167         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21168         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21169         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21170         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21171         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21172         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21173         uc_is_property_cased, uc_is_property_case_ignorable,
21174         uc_is_property_changes_when_lowercased,
21175         uc_is_property_changes_when_uppercased,
21176         uc_is_property_changes_when_titlecased,
21177         uc_is_property_changes_when_casefolded,
21178         uc_is_property_changes_when_casemapped): New declarations.
21179         * lib/unictype/pr_byname.gperf: Add the new properties.
21180         * modules/unictype/property-byname (Depends-on): Depend on the new
21181         properties modules.
21182         * modules/unictype/property-all (Depends-on): Likewise.
21183         * MODULES.html.sh (Unicode string functions): Add
21184         unictype/property-case-ignorable, unictype/property-cased,
21185         unictype/property-changes-when-casefolded,
21186         unictype/property-changes-when-casemapped,
21187         unictype/property-changes-when-lowercased,
21188         unictype/property-changes-when-titlecased,
21189         unictype/property-changes-when-uppercased.
21190
21191         New module 'unictype/property-changes-when-casemapped'.
21192         * modules/unictype/property-changes-when-casemapped: New file.
21193         * lib/unictype/pr_changes_when_casemapped.c: New file.
21194         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21195         generated by gen-uni-tables.
21196         * modules/unictype/property-changes-when-casemapped-tests: New file.
21197         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21198         automatically generated by gen-uni-tables.
21199
21200         New module 'unictype/property-changes-when-casefolded'.
21201         * modules/unictype/property-changes-when-casefolded: New file.
21202         * lib/unictype/pr_changes_when_casefolded.c: New file.
21203         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21204         generated by gen-uni-tables.
21205         * modules/unictype/property-changes-when-casefolded-tests: New file.
21206         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21207         automatically generated by gen-uni-tables.
21208
21209         New module 'unictype/property-changes-when-titlecased'.
21210         * modules/unictype/property-changes-when-titlecased: New file.
21211         * lib/unictype/pr_changes_when_titlecased.c: New file.
21212         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21213         generated by gen-uni-tables.
21214         * modules/unictype/property-changes-when-titlecased-tests: New file.
21215         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21216         automatically generated by gen-uni-tables.
21217
21218         New module 'unictype/property-changes-when-uppercased'.
21219         * modules/unictype/property-changes-when-uppercased: New file.
21220         * lib/unictype/pr_changes_when_uppercased.c: New file.
21221         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21222         generated by gen-uni-tables.
21223         * modules/unictype/property-changes-when-uppercased-tests: New file.
21224         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21225         automatically generated by gen-uni-tables.
21226
21227         New module 'unictype/property-changes-when-lowercased'.
21228         * modules/unictype/property-changes-when-lowercased: New file.
21229         * lib/unictype/pr_changes_when_lowercased.c: New file.
21230         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21231         generated by gen-uni-tables.
21232         * modules/unictype/property-changes-when-lowercased-tests: New file.
21233         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21234         automatically generated by gen-uni-tables.
21235
21236         New module 'unictype/property-case-ignorable'.
21237         * modules/unictype/property-case-ignorable: New file.
21238         * lib/unictype/pr_case_ignorable.c: New file.
21239         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21240         by gen-uni-tables.
21241         * modules/unictype/property-case-ignorable-tests: New file.
21242         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21243         generated by gen-uni-tables.
21244
21245         New module 'unictype/property-cased'.
21246         * modules/unictype/property-cased: New file.
21247         * lib/unictype/pr_cased.c: New file.
21248         * lib/unictype/pr_cased.h: New file, automatically generated by
21249         gen-uni-tables.
21250         * modules/unictype/property-cased-tests: New file.
21251         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21252         gen-uni-tables.
21253
21254 2011-01-09  Bruno Haible  <bruno@clisp.org>
21255
21256         Update to Unicode 5.2.0.
21257         * lib/gen-uni-tables.c (output_predicate, output_category,
21258         output_combclass, output_bidi_category, output_decimal_digit_test,
21259         output_decimal_digit, output_digit_test, output_digit,
21260         output_numeric_test, output_numeric, output_mirror, output_scripts,
21261         output_scripts_byname, output_blocks, output_ident_category): Fix
21262         comment header.
21263         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21264         get_wbp.
21265         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21266         items.
21267         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21268         Changes_When_Lowercased, Changes_When_Uppercased,
21269         Changes_When_Titlecased, Changes_When_Casefolded,
21270         Changes_When_Casemapped.
21271         (is_property_alphabetic, is_property_default_ignorable_code_point):
21272         Update for Unicode 5.2.0.
21273         (is_property_cased, is_property_case_ignorable,
21274         is_property_changes_when_lowercased,
21275         is_property_changes_when_uppercased,
21276         is_property_changes_when_titlecased,
21277         is_property_changes_when_casefolded,
21278         is_property_changes_when_casemapped): New functions.
21279         (output_properties): Output also the properties cased, case_ignorable,
21280         changes_when_lowercased, changes_when_uppercased,
21281         changes_when_titlecased, changes_when_casefolded,
21282         changes_when_casemapped.
21283         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21284         Unicode TR#11 revision 17 -> 19.
21285         (LBP_CP): New enumeration value.
21286         (LBP_*): Adjust values accordingly.
21287         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21288         TR#14 revision 22 -> 24.
21289         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21290         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21291         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21292         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21293         is_WBP_MIDLETTER.
21294         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21295         the code1 and code2 of each composition rule.
21296         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21297         * lib/unicase/ignorable.h: Likewise.
21298         * lib/unicase/tocasefold.h: Likewise.
21299         * lib/unicase/tolower.h: Likewise.
21300         * lib/unicase/totitle.h: Likewise.
21301         * lib/unicase/toupper.h: Likewise.
21302         * lib/unictype/bidi_of.h: Likewise.
21303         * lib/unictype/blocks.h: Likewise.
21304         * lib/unictype/categ_C.h: Likewise.
21305         * lib/unictype/categ_Cf.h: Likewise.
21306         * lib/unictype/categ_Cn.h: Likewise.
21307         * lib/unictype/categ_L.h: Likewise.
21308         * lib/unictype/categ_Ll.h: Likewise.
21309         * lib/unictype/categ_Lm.h: Likewise.
21310         * lib/unictype/categ_Lo.h: Likewise.
21311         * lib/unictype/categ_Lu.h: Likewise.
21312         * lib/unictype/categ_M.h: Likewise.
21313         * lib/unictype/categ_Mc.h: Likewise.
21314         * lib/unictype/categ_Mn.h: Likewise.
21315         * lib/unictype/categ_N.h: Likewise.
21316         * lib/unictype/categ_Nd.h: Likewise.
21317         * lib/unictype/categ_Nl.h: Likewise.
21318         * lib/unictype/categ_No.h: Likewise.
21319         * lib/unictype/categ_P.h: Likewise.
21320         * lib/unictype/categ_Pd.h: Likewise.
21321         * lib/unictype/categ_Po.h: Likewise.
21322         * lib/unictype/categ_S.h: Likewise.
21323         * lib/unictype/categ_Sc.h: Likewise.
21324         * lib/unictype/categ_So.h: Likewise.
21325         * lib/unictype/categ_of.h: Likewise.
21326         * lib/unictype/combining.h: Likewise.
21327         * lib/unictype/ctype_alnum.h: Likewise.
21328         * lib/unictype/ctype_alpha.h: Likewise.
21329         * lib/unictype/ctype_graph.h: Likewise.
21330         * lib/unictype/ctype_lower.h: Likewise.
21331         * lib/unictype/ctype_print.h: Likewise.
21332         * lib/unictype/ctype_punct.h: Likewise.
21333         * lib/unictype/ctype_upper.h: Likewise.
21334         * lib/unictype/decdigit.h: Likewise.
21335         * lib/unictype/digit.h: Likewise.
21336         * lib/unictype/numeric.h: Likewise.
21337         * lib/unictype/pr_alphabetic.h: Likewise.
21338         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21339         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21340         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21341         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21342         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21343         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21344         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21345         * lib/unictype/pr_combining.h: Likewise.
21346         * lib/unictype/pr_composite.h: Likewise.
21347         * lib/unictype/pr_currency_symbol.h: Likewise.
21348         * lib/unictype/pr_dash.h: Likewise.
21349         * lib/unictype/pr_decimal_digit.h: Likewise.
21350         * lib/unictype/pr_deprecated.h: Likewise.
21351         * lib/unictype/pr_diacritic.h: Likewise.
21352         * lib/unictype/pr_extender.h: Likewise.
21353         * lib/unictype/pr_grapheme_base.h: Likewise.
21354         * lib/unictype/pr_grapheme_extend.h: Likewise.
21355         * lib/unictype/pr_grapheme_link.h: Likewise.
21356         * lib/unictype/pr_id_continue.h: Likewise.
21357         * lib/unictype/pr_id_start.h: Likewise.
21358         * lib/unictype/pr_ideographic.h: Likewise.
21359         * lib/unictype/pr_ignorable_control.h: Likewise.
21360         * lib/unictype/pr_logical_order_exception.h: Likewise.
21361         * lib/unictype/pr_lowercase.h: Likewise.
21362         * lib/unictype/pr_numeric.h: Likewise.
21363         * lib/unictype/pr_other_alphabetic.h: Likewise.
21364         * lib/unictype/pr_punctuation.h: Likewise.
21365         * lib/unictype/pr_sentence_terminal.h: Likewise.
21366         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21367         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21368         * lib/unictype/pr_unified_ideograph.h: Likewise.
21369         * lib/unictype/pr_uppercase.h: Likewise.
21370         * lib/unictype/pr_xid_continue.h: Likewise.
21371         * lib/unictype/pr_xid_start.h: Likewise.
21372         * lib/unictype/pr_zero_width.h: Likewise.
21373         * lib/unictype/scripts.h: Likewise.
21374         * lib/unictype/scripts_byname.gperf: Likewise.
21375         * lib/unictype/sy_java_ident.h: Likewise.
21376         * lib/unigbrk/gbrkprop.h: Likewise.
21377         * lib/unilbrk/lbrkprop1.h: Likewise.
21378         * lib/unilbrk/lbrkprop2.h: Likewise.
21379         * lib/unilbrk/lbrktables.h: Likewise.
21380         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21381         LBP_CP. Implement rule LB30.
21382         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21383         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21384         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21385         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21386         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21387         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21388         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21389         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21390         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21391         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21392         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21393         bits instead of 16 bits in the code1 and code2 of each composition
21394         rule.
21395         (uc_composition): Update for Unicode 5.2.0.
21396         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21397         * lib/uninorm/decomposition-table2.h: Likewise.
21398         * lib/uniwbrk/wbrkprop.h: Likewise.
21399         * tests/unicase/test-cased.c: Likewise.
21400         * tests/unicase/test-ignorable.c: Likewise.
21401         * tests/unicase/test-uc_tolower.c: Likewise.
21402         * tests/unicase/test-uc_totitle.c: Likewise.
21403         * tests/unicase/test-uc_toupper.c: Likewise.
21404         * tests/unictype/test-categ_C.c: Likewise.
21405         * tests/unictype/test-categ_Cf.c: Likewise.
21406         * tests/unictype/test-categ_Cn.c: Likewise.
21407         * tests/unictype/test-categ_L.c: Likewise.
21408         * tests/unictype/test-categ_Ll.c: Likewise.
21409         * tests/unictype/test-categ_Lm.c: Likewise.
21410         * tests/unictype/test-categ_Lo.c: Likewise.
21411         * tests/unictype/test-categ_Lu.c: Likewise.
21412         * tests/unictype/test-categ_M.c: Likewise.
21413         * tests/unictype/test-categ_Mc.c: Likewise.
21414         * tests/unictype/test-categ_Mn.c: Likewise.
21415         * tests/unictype/test-categ_N.c: Likewise.
21416         * tests/unictype/test-categ_Nd.c: Likewise.
21417         * tests/unictype/test-categ_Nl.c: Likewise.
21418         * tests/unictype/test-categ_No.c: Likewise.
21419         * tests/unictype/test-categ_P.c: Likewise.
21420         * tests/unictype/test-categ_Pd.c: Likewise.
21421         * tests/unictype/test-categ_Po.c: Likewise.
21422         * tests/unictype/test-categ_S.c: Likewise.
21423         * tests/unictype/test-categ_Sc.c: Likewise.
21424         * tests/unictype/test-categ_So.c: Likewise.
21425         * tests/unictype/test-ctype_alnum.c: Likewise.
21426         * tests/unictype/test-ctype_alpha.c: Likewise.
21427         * tests/unictype/test-ctype_graph.c: Likewise.
21428         * tests/unictype/test-ctype_lower.c: Likewise.
21429         * tests/unictype/test-ctype_print.c: Likewise.
21430         * tests/unictype/test-ctype_punct.c: Likewise.
21431         * tests/unictype/test-ctype_upper.c: Likewise.
21432         * tests/unictype/test-decdigit.h: Likewise.
21433         * tests/unictype/test-digit.h: Likewise.
21434         * tests/unictype/test-numeric.h: Likewise.
21435         * tests/unictype/test-pr_alphabetic.c: Likewise.
21436         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21437         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21438         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21439         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21440         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21441         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21442         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21443         * tests/unictype/test-pr_combining.c: Likewise.
21444         * tests/unictype/test-pr_composite.c: Likewise.
21445         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21446         * tests/unictype/test-pr_dash.c: Likewise.
21447         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21448         * tests/unictype/test-pr_deprecated.c: Likewise.
21449         * tests/unictype/test-pr_diacritic.c: Likewise.
21450         * tests/unictype/test-pr_extender.c: Likewise.
21451         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21452         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21453         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21454         * tests/unictype/test-pr_id_continue.c: Likewise.
21455         * tests/unictype/test-pr_id_start.c: Likewise.
21456         * tests/unictype/test-pr_ideographic.c: Likewise.
21457         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21458         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21459         * tests/unictype/test-pr_lowercase.c: Likewise.
21460         * tests/unictype/test-pr_numeric.c: Likewise.
21461         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21462         * tests/unictype/test-pr_punctuation.c: Likewise.
21463         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21464         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21465         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21466         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21467         * tests/unictype/test-pr_uppercase.c: Likewise.
21468         * tests/unictype/test-pr_xid_continue.c: Likewise.
21469         * tests/unictype/test-pr_xid_start.c: Likewise.
21470         * tests/unictype/test-pr_zero_width.c: Likewise.
21471         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21472         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21473         changed behaviour: line breaking is now disallowed between a letter
21474         or '=' and '('.
21475         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21476         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21477         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21478         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21479         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21480         lib/uniwidth/width.c.
21481         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21482         without comments, but with the original copyright notice.
21483         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21484         changes.
21485         * lib/unictype/categ_Cc.h: Likewise.
21486         * lib/unictype/categ_Co.h: Likewise.
21487         * lib/unictype/categ_Cs.h: Likewise.
21488         * lib/unictype/categ_Lt.h: Likewise.
21489         * lib/unictype/categ_Me.h: Likewise.
21490         * lib/unictype/categ_Pc.h: Likewise.
21491         * lib/unictype/categ_Pe.h: Likewise.
21492         * lib/unictype/categ_Pf.h: Likewise.
21493         * lib/unictype/categ_Pi.h: Likewise.
21494         * lib/unictype/categ_Ps.h: Likewise.
21495         * lib/unictype/categ_Sk.h: Likewise.
21496         * lib/unictype/categ_Sm.h: Likewise.
21497         * lib/unictype/categ_Z.h: Likewise.
21498         * lib/unictype/categ_Zl.h: Likewise.
21499         * lib/unictype/categ_Zp.h: Likewise.
21500         * lib/unictype/categ_Zs.h: Likewise.
21501         * lib/unictype/ctype_blank.h: Likewise.
21502         * lib/unictype/ctype_cntrl.h: Likewise.
21503         * lib/unictype/ctype_digit.h: Likewise.
21504         * lib/unictype/ctype_space.h: Likewise.
21505         * lib/unictype/ctype_xdigit.h: Likewise.
21506         * lib/unictype/mirror.h: Likewise.
21507         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21508         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21509         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21510         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21511         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21512         * lib/unictype/pr_bidi_control.h: Likewise.
21513         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21514         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21515         * lib/unictype/pr_bidi_pdf.h: Likewise.
21516         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21517         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21518         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21519         * lib/unictype/pr_format_control.h: Likewise.
21520         * lib/unictype/pr_hex_digit.h: Likewise.
21521         * lib/unictype/pr_hyphen.h: Likewise.
21522         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21523         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21524         * lib/unictype/pr_iso_control.h: Likewise.
21525         * lib/unictype/pr_join_control.h: Likewise.
21526         * lib/unictype/pr_left_of_pair.h: Likewise.
21527         * lib/unictype/pr_line_separator.h: Likewise.
21528         * lib/unictype/pr_math.h: Likewise.
21529         * lib/unictype/pr_non_break.h: Likewise.
21530         * lib/unictype/pr_not_a_character.h: Likewise.
21531         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21532         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21533         * lib/unictype/pr_other_id_continue.h: Likewise.
21534         * lib/unictype/pr_other_id_start.h: Likewise.
21535         * lib/unictype/pr_other_lowercase.h: Likewise.
21536         * lib/unictype/pr_other_math.h: Likewise.
21537         * lib/unictype/pr_other_uppercase.h: Likewise.
21538         * lib/unictype/pr_paired_punctuation.h: Likewise.
21539         * lib/unictype/pr_paragraph_separator.h: Likewise.
21540         * lib/unictype/pr_pattern_syntax.h: Likewise.
21541         * lib/unictype/pr_pattern_white_space.h: Likewise.
21542         * lib/unictype/pr_private_use.h: Likewise.
21543         * lib/unictype/pr_quotation_mark.h: Likewise.
21544         * lib/unictype/pr_radical.h: Likewise.
21545         * lib/unictype/pr_soft_dotted.h: Likewise.
21546         * lib/unictype/pr_space.h: Likewise.
21547         * lib/unictype/pr_titlecase.h: Likewise.
21548         * lib/unictype/pr_variation_selector.h: Likewise.
21549         * lib/unictype/pr_white_space.h: Likewise.
21550         * lib/unictype/sy_c_ident.h: Likewise.
21551         * lib/unictype/sy_c_whitespace.h: Likewise.
21552         * lib/unictype/sy_java_whitespace.h: Likewise.
21553         * modules/uni*/*: Bump version number of expected libunistring version.
21554         Reported by Simon Josefsson.
21555
21556 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21557
21558         useless-if-before-free: fix typo in --help and make the internal,
21559         automatic version date update process work once again.
21560         --help output contained a NUL character instead of the
21561         backslash-zero that was intended.  Also, the "must lie within
21562         the first 8 lines" line is on line 9, and hence not getting
21563         automatically updated.
21564         * build-aux/useless-if-before-free: Fix the former by adding a
21565         backslash, and the latter by condensing the three lines of what-it-does
21566         to a single line, leaving one line of slack for the future.
21567
21568 2011-01-09  Bruno Haible  <bruno@clisp.org>
21569
21570         uniwidth/width: Fix width of U+1D173..U+1D17A.
21571         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21572         symbolic_width, output_width_property_test): New functions.
21573         (main): Invoke output_nonspacing_property, output_width_property_test.
21574         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21575         U+1D173..U+1D17A.
21576         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21577         1.
21578         * modules/uniwidth/*: Bump version number of expected libunistring
21579         version.
21580         * modules/unilbrk/*: Likewise.
21581
21582 2011-01-08  Bruno Haible  <bruno@clisp.org>
21583
21584         uninorm tests: Preserve copyright of Unicode data file.
21585         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21586         Mention modifications.
21587
21588 2011-01-08  Bruno Haible  <bruno@clisp.org>
21589
21590         gen-uni-tables: Prepare for Unicode 5.2.0.
21591         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21592         (debug_output_lbp, output_lbp): Update.
21593
21594 2011-01-08  Bruno Haible  <bruno@clisp.org>
21595
21596         unilbrk: Clarify gen-uni-tables.c code.
21597         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21598         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21599         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21600
21601 2011-01-07  Bruno Haible  <bruno@clisp.org>
21602
21603         strtod: Restore errno when successfully parsing Infinity or NaN.
21604         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21605         restore the original errno.
21606
21607 2011-01-07  Bruno Haible  <bruno@clisp.org>
21608
21609         remove test: Avoid failure on HP-UX 11.
21610         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21611
21612 2011-01-07  Bruno Haible  <bruno@clisp.org>
21613
21614         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21615         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21616         error code.
21617
21618 2011-01-07  Pádraig Brady <P@draigBrady.com>
21619
21620         ignore-value: fixup comments, and add Eric Blake
21621         as an author since he rewrote the macros.
21622         * lib/ignore-value.h (ignore_value):  State that
21623         we now support aggregates.  Also specify exactly
21624         when the GCC warn_unused_result feature was added.
21625
21626 2011-01-06  Eric Blake  <eblake@redhat.com>
21627
21628         ignore-value: support aggregate types
21629         * lib/ignore-value.h (ignore_value): Provide separate gcc
21630         definition.
21631         * modules/ignore-value-tests: New test module.
21632         * tests/test-ignore-value.c: New test.
21633
21634         maint.mk: improve sc_prohibit_strcmp regex
21635         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21636         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21637         definition of STRNEQ.
21638
21639         signal: work around Haiku issue with SIGBUS
21640         * lib/siglist.h: Add comment.
21641         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21642         strsignal's favoring of SIGSEGV.
21643         * tests/test-signal.c (main): Avoid test failure.
21644         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21645         Reported by Scott McCreary.
21646
21647         maint.mk: add pre-release check to ensure submodule commits are public
21648         * top/maint.mk (public-submodule-commit): New rule.
21649         (submodule-checks): New variable.
21650         (alpha beta stable): Depend on the variable.
21651
21652 2011-01-05  Pádraig Brady <P@draigBrady.com>
21653         and Jim Meyering  <meyering@redhat.com>
21654
21655         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21656         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21657         (ATTRIBUTE_DEPRECATED): Define.
21658         (_ignore_case): New function.
21659         (ignore_value): New macro, to replace the old function.
21660         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21661         * modules/ignore-value (Depends-on): Add stdint.
21662
21663 2011-01-04  Eric Blake  <eblake@redhat.com>
21664
21665         doc: regenerate INSTALL
21666         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21667         @firstparagraphindent support, now that autoconf dropped it.
21668         (INSTALL_PRELUDE): Reinstate old macro.
21669         * doc/install.texi: Resync from autoconf.
21670         * doc/INSTALL: Reflect recent autoconf update.
21671         * doc/INSTALL.ISO: Likewise.
21672         * doc/INSTALL.UTF-8: Likewise.
21673         Reported by Karl Berry.
21674
21675 2011-01-04  Bruce Korb  <address@hidden>
21676
21677         git-version-gen: avoid a sub-shell
21678         * build-aux/git-version-gen: Redirect stderr in `...` via
21679         "exec 2>...", rather than via an added sub-shell.
21680
21681 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21682
21683         git-version-gen: use (...) rather than sh -c '...'
21684         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21685         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21686
21687 2011-01-03  Jim Meyering  <meyering@redhat.com>
21688
21689         git-version-gen: convert leading TABs to spaces
21690         * build-aux/git-version-gen: Expand leading TABs.
21691
21692         git-version-gen: handle failed "git rev-list"
21693         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21694         from git and proceeding as if it had succeeded but printed no SHA1
21695         checksums, suppress the diagnostic and handle the failure.
21696         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21697
21698         git-version-gen: include command name in one more diagnostic
21699         * build-aux/git-version-gen: When the required .tarball-version file
21700         was missing or unreadable, you might see the diagnostic from "cat",
21701         but no trace of the name of the invoking script.  Now, you still see
21702         the diagnostic from cat, but also get one from "git-version-gen: ".
21703         Inspired by a patch from Bruce Korb.
21704
21705         update-copyright: adjust test to match changed code
21706         * tests/test-update-copyright.sh: Change test's expected output
21707         to match new actual output.
21708
21709 2011-01-02  Bruno Haible  <bruno@clisp.org>
21710
21711         getlogin_r: Avoid test failure on HP-UX 11.
21712         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21713         ERANGE when the second argument is zero.
21714         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21715         portability problem.
21716
21717 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21718
21719         * build-aux/update-copyright: doc Simon's changes
21720
21721 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21722
21723         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21724         environment variable.
21725
21726 2011-01-02  Bruno Haible  <bruno@clisp.org>
21727
21728         unigbrk: Avoid gcc warnings.
21729         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21730         unused variable.
21731         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21732         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21733         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21734         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21735         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21736         Change type of first argument to 'const char *'.
21737         (main): Remove unused variable.
21738         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21739         type of first argument to 'const char *'.
21740         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21741         Likewise.
21742         (main): Change type of variable 's'.
21743         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21744         to 'int'.
21745
21746 2011-01-02  Bruno Haible  <bruno@clisp.org>
21747
21748         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21749         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21750         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21751         bug.
21752         * lib/pwrite.c: Undo 2010-12-31 patch.
21753         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21754
21755 2011-01-02  Bruno Haible  <bruno@clisp.org>
21756
21757         pread: Fix test whether it works.
21758         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21759
21760 2011-01-02  Bruno Haible  <bruno@clisp.org>
21761
21762         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21763         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21764         ends in "6". Don't require a specific month name. Try also the locale
21765         names found on HP-UX 11 and Solaris 7.
21766
21767 2011-01-02  Bruno Haible  <bruno@clisp.org>
21768
21769         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21770         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21771         C linkage.
21772         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21773
21774 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21775
21776         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21777         for consistency, since the "cluster" term is not used elsewhere.
21778         * lib/unigbrk.in.h: Update name.
21779         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21780         * lib/unigbrk/u16-grapheme-next.c: Update name.
21781         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21782         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21783         * lib/unigbrk/u32-grapheme-next.c: Update name.
21784         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21785         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21786         * lib/unigbrk/u8-grapheme-next.c: Update name.
21787         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21788         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21789         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21790         Suggested by Bruno Haible.
21791
21792 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21793
21794         Remove module 'u8-grapheme-len' as too redundant with
21795         'u8-grapheme-next'.
21796         * modules/unigbrk/u8-grapheme-len: Delete file.
21797         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21798         * lib/unigbrk.in.h: Remove prototype for deleted function.
21799         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21800         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21801
21802         Remove module 'u16-grapheme-len' as too redundant with
21803         'u16-grapheme-next'.
21804         * modules/unigbrk/u16-grapheme-len: Delete file.
21805         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21806         * lib/unigbrk.in.h: Remove prototype for deleted function.
21807         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21808         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21809
21810         Remove module 'u32-grapheme-len' as too redundant with
21811         'u32-grapheme-next'.
21812         * modules/unigbrk/u32-grapheme-len: Delete file.
21813         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21814         * lib/unigbrk.in.h: Remove prototype for deleted function.
21815         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21816         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21817
21818         Suggested by Bruno Haible.
21819
21820 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21821
21822         * unigbrk.in.h: Fix typo: "ben" => "been".
21823         Reported by Bruno Haible.
21824
21825 2011-01-01  Jim Meyering  <meyering@redhat.com>
21826
21827         maint: update almost all copyright ranges to include 2011
21828         Run the new "make update-copyright" rule.
21829
21830 2011-01-01  Jim Meyering  <meyering@redhat.com>
21831
21832         maint: update-copyright: exempt doc/INSTALL*
21833         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21834         since they are generated.  Suggested by Bruno Haible.
21835
21836 2011-01-01  Jim Meyering  <meyering@redhat.com>
21837
21838         maint: refine the update-copyright rule
21839         * Makefile (update-copyright): Also exclude any file that includes
21840         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21841         code that merely generates the comment.
21842
21843 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21844
21845         New module 'u8-grapheme-len'.
21846         * modules/unigbrk/u8-grapheme-len: New file.
21847         * modules/unigbrk/u8-grapheme-len-tests: New file.
21848         * lib/unigbrk.in.h: Add prototype for new function.
21849         * lib/unigbrk/u8-grapheme-len.c: New file.
21850         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21851
21852         New module 'u16-grapheme-len'.
21853         * modules/unigbrk/u16-grapheme-len: New file.
21854         * modules/unigbrk/u16-grapheme-len-tests: New file.
21855         * lib/unigbrk.in.h: Add prototype for new function.
21856         * lib/unigbrk/u16-grapheme-len.c: New file.
21857         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21858
21859         New module 'u32-grapheme-len'.
21860         * modules/unigbrk/u32-grapheme-len: New file.
21861         * modules/unigbrk/u32-grapheme-len-tests: New file.
21862         * lib/unigbrk.in.h: Add prototype for new function.
21863         * lib/unigbrk/u32-grapheme-len.c: New file.
21864         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21865
21866         New module 'u8-grapheme-next'.
21867         * modules/unigbrk/u8-grapheme-next: New file.
21868         * modules/unigbrk/u8-grapheme-next-tests: New file.
21869         * lib/unigbrk.in.h: Add prototype for new function.
21870         * lib/unigbrk/u8-grapheme-next.c: New file.
21871         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21872
21873         New module 'u16-grapheme-next'.
21874         * modules/unigbrk/u16-grapheme-next: New file.
21875         * modules/unigbrk/u16-grapheme-next-tests: New file.
21876         * lib/unigbrk.in.h: Add prototype for new function.
21877         * lib/unigbrk/u16-grapheme-next.c: New file.
21878         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21879
21880         New module 'u32-grapheme-next'.
21881         * modules/unigbrk/u32-grapheme-next: New file.
21882         * modules/unigbrk/u32-grapheme-next-tests: New file.
21883         * lib/unigbrk.in.h: Add prototype for new function.
21884         * lib/unigbrk/u32-grapheme-next.c: New file.
21885         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21886
21887         New module 'u8-grapheme-prev'.
21888         * modules/unigbrk/u8-grapheme-prev: New file.
21889         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21890         * lib/unigbrk.in.h: Add prototype for new function.
21891         * lib/unigbrk/u8-grapheme-prev.c: New file.
21892         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21893
21894         New module 'u16-grapheme-prev'.
21895         * modules/unigbrk/u16-grapheme-prev: New file.
21896         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21897         * lib/unigbrk.in.h: Add prototype for new function.
21898         * lib/unigbrk/u16-grapheme-prev.c: New file.
21899         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21900
21901         New module 'u32-grapheme-prev'.
21902         * modules/unigbrk/u32-grapheme-prev: New file.
21903         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21904         * lib/unigbrk.in.h: Add prototype for new function.
21905         * lib/unigbrk/u32-grapheme-prev.c: New file.
21906         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21907
21908         New module 'u8-grapheme-breaks'.
21909         * modules/unigbrk/u8-grapheme-breaks: New file.
21910         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21911         * lib/unigbrk.in.h: Add prototype for new function.
21912         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21913         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21914
21915         New module 'u16-grapheme-breaks'.
21916         * modules/unigbrk/u16-grapheme-breaks: New file.
21917         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21918         * lib/unigbrk.in.h: Add prototype for new function.
21919         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21920         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21921
21922         New module 'u32-grapheme-breaks'.
21923         * modules/unigbrk/u32-grapheme-breaks: New file.
21924         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21925         * lib/unigbrk.in.h: Add prototype for new function.
21926         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21927         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21928
21929         New module 'ulc-grapheme-breaks'.
21930         * modules/unigbrk/ulc-grapheme-breaks: New file.
21931         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21932         * m4/locale-ar.m4: New file.
21933         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21934         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21935         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21936
21937 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21938
21939         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21940         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21941         modified how this file was generated before I initially submitted
21942         the module, but failed to regenerate it.  This meant that several
21943         of the level2 entries were wrong.
21944         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21945         Remove the division-by-2 that is folded into the table now that
21946         gbrkprop.h has been regenerated properly.  Now -1 entries are
21947         handled correctly.
21948
21949         New module 'unigbrk/uc-gbrk-prop-tests'.
21950         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21951         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21952         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21953         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21954
21955 2011-01-01  Bruno Haible  <bruno@clisp.org>
21956
21957         Avoid use of hexadecimal escapes.
21958         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21959         instead of hexadecimal escapes.
21960
21961 2011-01-01  Jim Meyering  <meyering@redhat.com>
21962
21963         maint: new rule to update copyright year ranges
21964         * Makefile (update-copyright): New rule.
21965
21966         maint: indent with TABs in Makefile
21967         * Makefile: Expand leading sequences of spaces to TABs
21968
21969         version-etc: update the copyright year it reports
21970         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21971
21972 2010-12-31  Bruno Haible  <bruno@clisp.org>
21973
21974         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21975         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21976         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21977         zero.
21978
21979 2010-12-31  Bruno Haible  <bruno@clisp.org>
21980
21981         pwrite: Work around HP-UX 11.11 bug.
21982         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21983         works and set REPLACE_PWRITE if not.
21984         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21985         function.
21986         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21987
21988 2010-12-31  Bruno Haible  <bruno@clisp.org>
21989
21990         pread: Work around HP-UX 11 bugs.
21991         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21992         and set REPLACE_PREAD if not.
21993         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21994
21995 2010-12-31  Eric Blake  <eblake@redhat.com>
21996
21997         nl_langinfo: fix YESEXPR on Irix 6.5
21998         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21999         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22000         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22001         it.
22002
22003 2010-12-31  Bruno Haible  <bruno@clisp.org>
22004
22005         iconv: Document HP-UX 11 bug.
22006         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22007
22008 2010-12-31  Bruno Haible  <bruno@clisp.org>
22009
22010         ldexpl: Fix link error on HP-UX 11.
22011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22012         LDEXPL_LIBM, using $ISNANL_LIBM.
22013
22014 2010-12-31  Eric Blake  <eblake@redhat.com>
22015
22016         ftello: avoid compilation failure with SunStudio c89
22017         * lib/ftello.c (ftello): Use lseek, not llseek.
22018
22019         tests: avoid failing coreutils tests on cygwin
22020         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22021         (create_exe_shims_): Return 0 when skipping.
22022
22023 2010-12-31  Bruno Haible  <bruno@clisp.org>
22024
22025         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22026         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22027
22028 2010-12-31  Bruno Haible  <bruno@clisp.org>
22029
22030         waitpid: Fix link error in C++ mode.
22031         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22032
22033 2010-12-31  Bruno Haible  <bruno@clisp.org>
22034
22035         isnan: Use GCC built-ins when possible.
22036         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22037         __builtin_isnan.
22038         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22039         (isnan): Define using GCC built-ins for GCC >= 4.0.
22040
22041 2010-12-31  Bruno Haible  <bruno@clisp.org>
22042
22043         isnand: Fix mistake.
22044         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22045         __builtin_isnand.
22046
22047 2010-12-31  Bruno Haible  <bruno@clisp.org>
22048
22049         open: Avoid C++ error on HP-UX 11.
22050         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22051
22052 2010-12-31  Bruno Haible  <bruno@clisp.org>
22053
22054         time_r: Add missing declarations on HP-UX 11.
22055         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22056         instead of HAVE_LOCALTIME_R.
22057         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22058         HAVE_LOCALTIME_R always.
22059         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22060         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22061         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22062         HAVE_LOCALTIME_R.
22063         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22064         * doc/posix-functions/localtime_r.texi: Likewise.
22065
22066 2010-12-29  Eric Blake  <eblake@redhat.com>
22067
22068         mountlist: tweak previous commit
22069         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22070         Reported by Paul Eggert.
22071
22072         mountlist: fix local drive detection on cygwin
22073         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22074         that works for cygwin.
22075
22076 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22077
22078         ftoastr, snprintf: ftoastr + snprintf module
22079         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22080         since the snprintf module now should be good enough here.
22081         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22082         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22083         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22084         GNULIB_SNPRINTF only for the test directory, and the latter
22085         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22086         seems to suffice by itself.
22087
22088 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22089
22090         alloca: one step towards thread-safety
22091         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22092         need for a static variable.  All callers changed.  This does not
22093         make the alloca replacement thread-safe, but it's one step.
22094
22095         tests: minor indenting change
22096         * tests/init.sh: Sync from coreutils housekeeping patch
22097         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22098         to keep lines within 80 columns.
22099
22100 2010-12-28  Jim Meyering  <meyering@redhat.com>
22101
22102         regex: don't infloop on persistent failing calloc
22103         * lib/regexec.c (build_trtable): Return failure indication upon
22104         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22105         In glibc, this was fixed for version 2.13:
22106         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22107
22108 2010-12-28  Bruno Haible  <bruno@clisp.org>
22109             Paul Eggert <eggert@cs.ucla.edu>
22110
22111         linkat: Make implementation robust against system behaviour variations.
22112         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22113         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22114         way, and to -2 if it needs a generic runtime test.
22115         * lib/linkat.c (solaris_optimized_link_immediate,
22116         solaris_optimized_link_follow): New functions.
22117         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22118         (check_same_link): Use it.
22119
22120 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22121
22122         New module 'unigbrk/base'.
22123         * modules/unigbrk/base: New file.
22124         * lib/unigbrk.in.h: New file.
22125
22126         New module 'unigbrk/uc-gbrk-prop'.
22127         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22128         * modules/unigbrk/uc-gbrk-prop: New file.
22129         * lib/unigbrk/gbrkprop.h: New file.
22130         * lib/unigbrk/uc-gbrk-prop.c: New file.
22131
22132         New module 'unigbrk/uc-is-grapheme-break'.
22133         * modules/unigbrk/uc-is-grapheme-break: New file.
22134         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22135         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22136         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22137         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22138         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22139
22140         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22141
22142 2010-12-27  Bruno Haible  <bruno@clisp.org>
22143
22144         linkat test: Avoid failure on Solaris 11 2010-11.
22145         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22146
22147 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22148
22149         utimens: work around glibc rounding bug on more platforms
22150         * lib/utimens.c (fdutimens): Work around rounding bug even if
22151         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22153
22154 2010-12-27  Bruno Haible  <bruno@clisp.org>
22155
22156         select tests: Improve comments.
22157         * tests/test-select.c (do_select): Add comments.
22158
22159 2010-12-27  Bruno Haible  <bruno@clisp.org>
22160
22161         select tests: Safer way of handling timeout.
22162         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22163         at every invocation.
22164
22165 2010-12-27  Bruno Haible  <bruno@clisp.org>
22166
22167         select tests: Use 'bool' where appropriate.
22168         * tests/test-select.c (connect_to_socket): Change argument type to
22169         'bool'.
22170
22171 2010-12-27  Bruno Haible  <bruno@clisp.org>
22172
22173         select tests: Use existing modules.
22174         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22175         (configure.ac): Don't test for unistd.h.
22176         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22177         declared in <unistd.h>.
22178
22179 2010-12-27  Bruno Haible  <bruno@clisp.org>
22180
22181         mbrtowc: Work around a Solaris 7 bug.
22182         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22183         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22184         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22185         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22186         MBRTOWC_NULL_ARG1_BUG.
22187         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22188         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22189         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22190         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22191
22192 2010-12-27  Jim Meyering  <meyering@redhat.com>
22193
22194         read-file.c: tweak syntax
22195         * lib/read-file.c (fread_file): Remove space after "*" in function
22196         definitions.
22197
22198 2010-12-27  Bruno Haible  <bruno@clisp.org>
22199
22200         times test: Avoid gcc warnings on OSF/1.
22201         * tests/test-times.c (main): Cast printf arguments from clock_t to
22202         'long int'.
22203
22204 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22205
22206         utimens: work around glibc rounding bug on older Linux kernels
22207         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22208         on Linux with a glibc whose utimes might not work, then work
22209         around a longstanding glibc bug involving rounding rather than
22210         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22211         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22212
22213 2010-12-26  Bruno Haible  <bruno@clisp.org>
22214
22215         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22216         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22217         _GL_CXXALIAS_SYS.
22218         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22219
22220 2010-12-26  Bruno Haible  <bruno@clisp.org>
22221
22222         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22223         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22225         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22226         looking for the declaration.
22227         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22228         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22229         problem.
22230         * doc/posix-functions/inet_pton.texi: Likewise.
22231
22232 2010-12-26  Bruno Haible  <bruno@clisp.org>
22233
22234         arpa_inet: Use the common idioms with C++ support.
22235         * lib/arpa_inet.in.h: Include c++defs.h.
22236         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22237         support.
22238         * modules/arpa_inet (Depends-on): Add c++defs.
22239         (Makefile.am): Substitute the contents of c++defs.h.
22240         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22241         * modules/arpa_inet-c++-tests: New file.
22242         * tests/test-arpa_inet-c++.cc: New file.
22243
22244 2010-12-25  Bruno Haible  <bruno@clisp.org>
22245
22246         Fix more C++ link errors on Solaris 8.
22247         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22248         $(LIB_EACCESS).
22249         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22250         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22251         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22252         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22253         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22254
22255 2010-12-25  Bruno Haible  <bruno@clisp.org>
22256
22257         printf-posix: Fix link error when a non-GCC compiler is used.
22258         * lib/stdio.in.h (printf): When not using GCC, override printf
22259         correctly.
22260         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22261
22262 2010-12-25  Bruno Haible  <bruno@clisp.org>
22263
22264         strerror_r-posix: Update doc.
22265         * doc/posix-functions/strerror_r.texi: Update doc about the return
22266         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22267
22268 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22269
22270         utimens: simplify the logic of the previous change
22271         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22272         This should not affect whether the test succeeds or fails.
22273
22274         utimens: configure better on hosts with NFS clock skew
22275         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22276         uses the clock of the local host.  It might use the clock of the
22277         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22278         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22279
22280 2010-12-25  Bruno Haible  <bruno@clisp.org>
22281
22282         ptsname test: Avoid failure on Solaris.
22283         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22284         open a pseudo-terminal; don't use BSD-style ptys.
22285         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22286
22287 2010-12-25  Bruno Haible  <bruno@clisp.org>
22288
22289         ptsname: Avoid ERANGE failure on some systems.
22290         * lib/ptsname.c (buffer): Increase size.
22291
22292 2010-12-25  Bruno Haible  <bruno@clisp.org>
22293
22294         rename, renameat: Avoid test failures at NFS mounted locations.
22295         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22296         so that subsequent mkdir calls succeed.
22297
22298 2010-12-25  Bruno Haible  <bruno@clisp.org>
22299
22300         iswblank: Fix C++ link error on Solaris 8.
22301         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22302         _GL_FUNCDECL_SYS.
22303
22304 2010-12-25  Bruno Haible  <bruno@clisp.org>
22305
22306         unistd: Fix C++ link error on Solaris 8.
22307         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22308
22309 2010-12-25  Bruno Haible  <bruno@clisp.org>
22310
22311         readlink doc: Mention an old glibc bug.
22312         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22313
22314 2010-12-25  Bruno Haible  <bruno@clisp.org>
22315
22316         fcntl-h: Fix for use of C++ on glibc systems.
22317         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22318         also on glibc systems in C++ mode.
22319         Reported by Gary V. Vaughan <gary@gnu.org>.
22320
22321 2010-12-25  Bruno Haible  <bruno@clisp.org>
22322
22323         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22324         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22325
22326 2010-12-25  Bruno Haible  <bruno@clisp.org>
22327
22328         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22329         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22330         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22331         test whether truncl works according to ISO C 99 with IEC 60559.
22332         * m4/truncl-ieee.m4: New file.
22333         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22334         m4/signbit.m4.
22335         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22336
22337 2010-12-25  Bruno Haible  <bruno@clisp.org>
22338
22339         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22340         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22341         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22342         test whether ceill works according to ISO C 99 with IEC 60559.
22343         * m4/ceill-ieee.m4: New file.
22344         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22345         m4/signbit.m4.
22346         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22347
22348 2010-12-25  Bruno Haible  <bruno@clisp.org>
22349
22350         Ensure all prerequisites of <wchar.h> are included.
22351         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22352         before <wchar.h>.
22353         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22354         gl_MBRLEN_NUL_RETVAL): Likewise.
22355         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22356         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22357         AC_FUNC_MBRTOWC): Likewise.
22358         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22359         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22360         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22361         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22362         Likewise.
22363         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22364         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22365         (gl_WCHAR_H): Improve comments.
22366         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22367
22368 2010-12-25  Bruno Haible  <bruno@clisp.org>
22369
22370         strtok_r: Fix C syntax error in autoconf macro.
22371         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22372         characters in test program.
22373
22374 2010-12-24  Bruno Haible  <bruno@clisp.org>
22375
22376         ceil, trunc, round: Fix gcc warnings.
22377         * lib/ceil.c (MIN): Undefine before redefining.
22378         * lib/trunc.c (MIN): Likewise.
22379         * lib/round.c (MIN): Likewise.
22380         Include <math.h> first.
22381
22382 2010-12-24  Bruno Haible  <bruno@clisp.org>
22383
22384         select tests: Avoid failures on OSF/1 5.1.
22385         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22386         failure of closing the last socket; it may fail with ECONNRESET.
22387
22388 2010-12-24  Eric Blake  <eblake@redhat.com>
22389
22390         stdint: avoid HP-UX 10.20 preprocessor bug
22391         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22392         than #if.
22393         * tests/test-floor2.c (main): Likewise.
22394         Reported by Peter O'Gorman.
22395
22396         pipe: make obsoletion transition easier
22397         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22398         * modules/pipe (Files): Include revived file.
22399         (Include): Drop reference, to mirror getdate's behavior.
22400
22401 2010-12-24  Bruno Haible  <bruno@clisp.org>
22402
22403         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22404         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22405         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22406         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22407
22408 2010-12-24  Bruno Haible  <bruno@clisp.org>
22409
22410         gethostname: Ensure declaration on NonStop Kernel.
22411         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22412         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22413
22414 2010-12-24  Bruno Haible  <bruno@clisp.org>
22415
22416         sys_select: Ensure all necessary types on NonStop Kernel.
22417         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22418         include <sys/time.h>.
22419         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22420         NonStop Kernel.
22421         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22422
22423 2010-12-24  Bruno Haible  <bruno@clisp.org>
22424
22425         sys_select: Remove unneeded include.
22426         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22427         have <sys/select.h>.
22428
22429 2010-12-24  Bruno Haible  <bruno@clisp.org>
22430
22431         gethostname: Provide a fallback for HOST_NAME_MAX.
22432         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22433         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22434         instead.
22435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22436
22437 2010-12-24  Bruno Haible  <bruno@clisp.org>
22438
22439         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22440         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22441         (SA_RESTART): Likewise.
22442         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22443
22444 2010-12-24  Bruno Haible  <bruno@clisp.org>
22445
22446         signal: Define NSIG.
22447         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22448         * tests/test-signal.c (nsig): New variable.
22449         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22450
22451 2010-12-24  Bruno Haible  <bruno@clisp.org>
22452
22453         rename, renameat: Avoid test failures on OSF/1 5.1.
22454         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22455         alternative error codes.
22456         * tests/test-renameat.c (main): Likewise.
22457
22458 2010-12-24  Bruno Haible  <bruno@clisp.org>
22459
22460         *printf: Detect large precisions bug on Solaris 10/SPARC.
22461         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22462         by Paul Eggert.
22463         * tests/test-snprintf-posix.h (test_function): Add this test code here
22464         too.
22465         * tests/test-sprintf-posix.h (test_function): Likewise.
22466         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22467         * tests/test-vasprintf-posix.c (test_function): Likewise.
22468         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22469         around by gnulib.
22470         * doc/posix-functions/printf.texi: Likewise.
22471         * doc/posix-functions/snprintf.texi: Likewise.
22472         * doc/posix-functions/sprintf.texi: Likewise.
22473         * doc/posix-functions/vfprintf.texi: Likewise.
22474         * doc/posix-functions/vprintf.texi: Likewise.
22475         * doc/posix-functions/vsnprintf.texi: Likewise.
22476         * doc/posix-functions/vsprintf.texi: Likewise.
22477         * doc/posix-functions/dprintf.texi: Undo last commit.
22478         * doc/posix-functions/vdprintf.texi: Likewise.
22479
22480 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22481
22482         tests: port test-fdutimensat.c to Solaris 8
22483         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22484         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22485         On Solaris 8, it fails with errno == ENOSYS, because there is no
22486         futimens (so it can't use the fd), and there is no lutimens (so it
22487         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22488
22489         vsnprintf: make more consistent with snprintf; doc fixes
22490
22491         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22492         the byte count return problem was promoted from the snprintf-posix
22493         to the snprintf module.
22494         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22495         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22496         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22497         * tests/test-snprintf.c (main): Check the byte count returned.
22498         * tests/test-vsnprintf.c (main): Likewise.
22499
22500 2010-12-23  Eric Blake  <eblake@redhat.com>
22501
22502         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22503         * modules/sigpipe (License): Relax license.
22504
22505 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22506
22507         doc: document Solaris printf bug with large float precisions
22508         * doc/posix-functions/dprintf.texi (dprintf):
22509         * doc/posix-functions/fprintf.texi (fprintf):
22510         * doc/posix-functions/printf.texi (printf):
22511         * doc/posix-functions/snprintf.texi (snprintf):
22512         * doc/posix-functions/sprintf.texi (sprintf):
22513         * doc/posix-functions/vdprintf.texi (vdprintf):
22514         * doc/posix-functions/vfprintf.texi (vfprintf):
22515         * doc/posix-functions/vprintf.texi (vprintf):
22516         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22517         * doc/posix-functions/vsprintf.texi (vsprintf):
22518         Mention that these functions mishandle large floating point
22519         precisions on Solaris 10.  The same bug is also present in Solaris
22520         8, and I assume earlier.  This causes "cd gnulib-tests; make
22521         check" to fail on Solaris 8 (and I assume, later) when building
22522         the latest coreutils, in test-vasprintf-posix's call to
22523         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22524         the wide flavors (e.g., wprintf) so this patch just updates the
22525         documentation for the narrow ones.
22526
22527         test-posixtm.c: add two tests
22528         * tests/test-posixtm.c: Add two tests, to highlight the
22529         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22530         around this bug; this is merely to document it.
22531
22532 2010-12-22  Bruno Haible  <bruno@clisp.org>
22533
22534         getlogin_r: Work around portability problem on OSF/1.
22535         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22536         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22537         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22538         test for a truncated result.
22539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22540         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22541         * modules/getlogin_r (Depends-on): Add memchr.
22542         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22543
22544 2010-12-22  Bruno Haible  <bruno@clisp.org>
22545
22546         ptsname: Avoid test failure on OSF/1 5.1.
22547         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22548         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22549         (same_slave): New function.
22550         (main): Use it to compare ptsname's result with the expected file name.
22551
22552 2010-12-22  Bruno Haible  <bruno@clisp.org>
22553
22554         Port extended stdio modules to HP NonStop Kernel.
22555         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22556         macros.
22557         * lib/fbufmode.c: Update comments.
22558         * lib/fflush.c: Likewise.
22559         * lib/fpurge.c: Likewise.
22560         * lib/freadable.c: Likewise.
22561         * lib/freadahead.c: Likewise.
22562         * lib/freading.c: Likewise.
22563         * lib/freadptr.c: Likewise.
22564         * lib/freadseek.c: Likewise.
22565         * lib/fseeko.c: Likewise.
22566         * lib/fseterr.c: Likewise.
22567         * lib/fwritable.c: Likewise.
22568         * lib/fwriting.c: Likewise.
22569         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22570
22571 2010-12-22  Bruno Haible  <bruno@clisp.org>
22572
22573         ttyname_r: Work around bug on OSF/1 5.1.
22574         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22576         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22577         present.
22578         * lib/ttyname_r.c (ttyname_r): Update comments.
22579
22580 2010-12-22  Bruno Haible  <bruno@clisp.org>
22581
22582         round: Implement result sign according to IEEE 754.
22583         * lib/round.c (MIN, MINUS_ZERO): New macros.
22584         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22585         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22586         * tests/test-round-ieee.c (main): Likewise.
22587         * tests/test-roundl-ieee.c (main): Likewise.
22588
22589         trunc: Implement result sign according to IEEE 754.
22590         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22591         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22592         * tests/test-trunc2.c: Include minus-zero.h.
22593         (MINUS_ZERO): New macro.
22594         (trunc_reference): Keep in sync with lib/trunc.c.
22595         * tests/test-truncf2.c: Include minus-zero.h.
22596         (MINUS_ZERO): New macro.
22597         (truncf_reference): Keep in sync with lib/trunc.c.
22598         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22599         * tests/test-trunc-ieee.c (main): Likewise.
22600         * tests/test-truncl-ieee.c (main): Likewise.
22601
22602         ceil: Implement result sign according to IEEE 754.
22603         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22604         (FUNC): Return -0.0 for -1 < x < 0.
22605         * tests/test-ceil2.c: Include minus-zero.h.
22606         (MINUS_ZERO): New macro.
22607         (ceil_reference): Keep in sync with lib/ceil.c.
22608         * tests/test-ceilf2.c: Include minus-zero.h.
22609         (MINUS_ZERO): New macro.
22610         (ceilf_reference): Keep in sync with lib/ceil.c.
22611         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22612         * tests/test-ceil-ieee.c (main): Likewise.
22613         * tests/test-ceill-ieee.c (main): Likewise.
22614
22615         floor: Implement result sign according to IEEE 754.
22616         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22617         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22618         * tests/test-floorf2.c (floorf_reference): Likewise.
22619         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22620         * tests/test-floor-ieee.c (main): Likewise.
22621         * tests/test-floorl-ieee.c (main): Likewise.
22622
22623 2010-12-22  Bruno Haible  <bruno@clisp.org>
22624
22625         getaddrinfo: Update doc.
22626         * doc/posix-functions/gai_strerror.texi: Return type is also different
22627         on AIX and HP-UX.
22628
22629 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22630
22631         getaddrinfo, inet_ntop: Update doc for Solaris.
22632         * doc/posix-functions/gai_strerror.texi: Return type is also an
22633         issue on Solaris 9 and earlier.
22634         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22635         on Solaris 10 and earlier.
22636
22637 2010-12-21  Bruno Haible  <bruno@clisp.org>
22638
22639         New module 'roundl-ieee'.
22640         * modules/roundl-ieee: New file.
22641         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22642         test whether roundl works according to ISO C 99 with IEC 60559.
22643         * m4/roundl-ieee.m4: New file.
22644         * modules/roundl-ieee-tests: New file.
22645         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22646         * tests/test-roundl.c (main): Remove signbit tests.
22647         * modules/roundl-tests (Depends-on): Remove signbit.
22648         * doc/posix-functions/roundl.texi: Mention the new module.
22649
22650 2010-12-21  Bruno Haible  <bruno@clisp.org>
22651
22652         New module 'truncl-ieee'.
22653         * modules/truncl-ieee: New file.
22654         * modules/truncl-ieee-tests: New file.
22655         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22656         * tests/test-truncl.c (main): Remove signbit tests.
22657         * modules/truncl-tests (Depends-on): Remove signbit.
22658         * doc/posix-functions/truncl.texi: Mention the new module.
22659
22660 2010-12-21  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'ceill-ieee'.
22663         * modules/ceill-ieee: New file.
22664         * modules/ceill-ieee-tests: New file.
22665         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22666         * tests/test-ceill.c (main): Remove signbit tests.
22667         * modules/ceill-tests (Depends-on): Remove signbit.
22668         * doc/posix-functions/ceill.texi: Mention the new module.
22669
22670 2010-12-21  Bruno Haible  <bruno@clisp.org>
22671
22672         New module 'floorl-ieee'.
22673         * modules/floorl-ieee: New file.
22674         * modules/floorl-ieee-tests: New file.
22675         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22676         * tests/test-floorl.c (main): Remove signbit tests.
22677         * modules/floorl-tests (Depends-on): Remove signbit.
22678         * doc/posix-functions/floorl.texi: Mention the new module.
22679
22680 2010-12-21  Bruno Haible  <bruno@clisp.org>
22681
22682         New module 'round-ieee'.
22683         * modules/round-ieee: New file.
22684         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22685         whether round works according to ISO C 99 with IEC 60559.
22686         * m4/round-ieee.m4: New file.
22687         * modules/round-ieee-tests: New file.
22688         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22689         * tests/test-round1.c (main): Remove signbit tests.
22690         * modules/round-tests (Depends-on): Remove 'signbit'.
22691         * doc/posix-functions/round.texi: Mention the new module.
22692
22693 2010-12-21  Bruno Haible  <bruno@clisp.org>
22694
22695         New module 'trunc-ieee'.
22696         * modules/trunc-ieee: New file.
22697         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22698         whether trunc works according to ISO C 99 with IEC 60559.
22699         * m4/trunc-ieee.m4: New file.
22700         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22702         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22703         * modules/trunc-ieee-tests: New file.
22704         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22705         * tests/test-trunc1.c (main): Remove signbit tests.
22706         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22707         * doc/posix-functions/trunc.texi: Mention the new module.
22708
22709 2010-12-21  Bruno Haible  <bruno@clisp.org>
22710
22711         New module 'ceil-ieee'.
22712         * modules/ceil-ieee: New file.
22713         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22714         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22715         ISO C 99 with IEC 60559.
22716         * m4/ceil-ieee.m4: New file.
22717         * modules/ceil (Files): Add lib/ceil.c.
22718         (Depends-on): Add 'float'.
22719         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22720         * lib/math.in.h (ceil): New declaration.
22721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22722         REPLACE_CEIL.
22723         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22724         * modules/ceil-ieee-tests: New file.
22725         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22726         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22727         * doc/posix-functions/ceil.texi: Mention the new module.
22728
22729 2010-12-21  Bruno Haible  <bruno@clisp.org>
22730
22731         New module 'floor-ieee'.
22732         * modules/floor-ieee: New file.
22733         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22734         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22735         ISO C 99 with IEC 60559.
22736         * m4/floor-ieee.m4: New file.
22737         * modules/floor (Files): Add lib/floor.c.
22738         (Depends-on): Add 'float'.
22739         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22740         * lib/math.in.h (floor): New declaration.
22741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22742         REPLACE_FLOOR.
22743         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22744         * modules/floor-ieee-tests: New file.
22745         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22746         * tests/test-math-c++.cc: Check the signature of 'floor'.
22747         * doc/posix-functions/floor.texi: Mention the new module.
22748
22749 2010-12-21  Bruno Haible  <bruno@clisp.org>
22750
22751         New module 'roundf-ieee'.
22752         * modules/roundf-ieee: New file.
22753         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22754         test whether roundf works according to ISO C 99 with IEC 60559.
22755         * m4/roundf-ieee.m4: New file.
22756         * modules/roundf-ieee-tests: New file.
22757         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22758         * tests/test-roundf1.c (main): Remove signbit tests.
22759         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22760         * doc/posix-functions/roundf.texi: Mention the new module.
22761
22762 2010-12-21  Bruno Haible  <bruno@clisp.org>
22763
22764         New module 'truncf-ieee'.
22765         * modules/truncf-ieee: New file.
22766         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22767         test whether truncf works according to ISO C 99 with IEC 60559.
22768         * m4/truncf-ieee.m4: New file.
22769         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22771         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22772         * modules/truncf-ieee-tests: New file.
22773         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22774         * tests/test-truncf1.c (main): Remove signbit tests.
22775         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22776         * doc/posix-functions/truncf.texi: Mention the new module.
22777
22778 2010-12-21  Bruno Haible  <bruno@clisp.org>
22779
22780         New module 'ceilf-ieee'.
22781         * modules/ceilf-ieee: New file.
22782         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22783         test whether ceilf works according to ISO C 99 with IEC 60559.
22784         * m4/ceilf-ieee.m4: New file.
22785         * modules/ceilf-ieee-tests: New file.
22786         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22787         * tests/test-ceilf1.c (main): Remove signbit tests.
22788         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22789         * doc/posix-functions/ceilf.texi: Mention the new module.
22790
22791 2010-12-21  Bruno Haible  <bruno@clisp.org>
22792
22793         New module 'floorf-ieee'.
22794         * modules/floorf-ieee: New file.
22795         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22796         test whether floorf works according to ISO C 99 with IEC 60559.
22797         * m4/floorf-ieee.m4: New file.
22798         * modules/floorf-ieee-tests: New file.
22799         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22800         * tests/test-floorf1.c (main): Remove signbit tests.
22801         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22802         * doc/posix-functions/floorf.texi: Mention the new module.
22803
22804 2010-12-21  Bruno Haible  <bruno@clisp.org>
22805
22806         Support for minus zero in autoconf macros.
22807         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22808         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22809         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22810         * tests/minus-zero.h: Update comments.
22811
22812 2010-12-21  Bruno Haible  <bruno@clisp.org>
22813
22814         Tests for module 'ceil'.
22815         * modules/ceil-tests: New file.
22816         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22817         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22818
22819 2010-12-21  Bruno Haible  <bruno@clisp.org>
22820
22821         Tests for module 'floor'.
22822         * modules/floor-tests: New file.
22823         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22824         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22825
22826 2010-12-21  Bruno Haible  <bruno@clisp.org>
22827
22828         math: Fix indentation.
22829         * lib/math.in.h (floorf): Fix indentation.
22830
22831 2010-12-21  Bruno Haible  <bruno@clisp.org>
22832
22833         Fix cross-compilation guesses on Solaris.
22834         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22835         not match "solaris2.10".
22836         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22837         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22838         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22839
22840 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22841
22842         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22843         This fixes a problem observed with the latest coreutils snapshot
22844         that caused a test to fail on Solaris 8.  src/csplit.c's call
22845         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22846         earlier, instead of returning the number of bytes that would have
22847         been generated; this causes csplit to incorrectly report memory
22848         exhaustion.
22849         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22850         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22851         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22852         comments to match.
22853         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22854         Fix typo in matching older versions of Solaris: "solaris2.10"
22855         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22856         only for guessing while cross-compiling.
22857         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22858
22859 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22860
22861         ftoastr: fix comment again
22862         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22864         Also, simplify example a bit by using flags = 0.
22865
22866 2010-12-20  Bruno Haible  <bruno@clisp.org>
22867
22868         round*, trunc*: Update documentation regarding glibc.
22869         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22870         * doc/posix-functions/round.texi: Likewise.
22871         * doc/posix-functions/roundl.texi: Likewise.
22872         * doc/posix-functions/truncf.texi: Likewise.
22873         * doc/posix-functions/trunc.texi: Likewise.
22874         * doc/posix-functions/truncl.texi: Likewise.
22875
22876 2010-12-20  Bruno Haible  <bruno@clisp.org>
22877
22878         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22879         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22880         * doc/posix-functions/round.texi: Likewise.
22881         * doc/posix-functions/roundl.texi: Likewise.
22882
22883 2010-12-20  Bruno Haible  <bruno@clisp.org>
22884
22885         ttyname_r: Add missing declaration on HP-UX 11.
22886         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22887         HAVE_TTYNAME_R.
22888         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22889         declared. Set HAVE_TTYNAME_R always.
22890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22891         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22892         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22893         HAVE_TTYNAME_R.
22894         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22895
22896 2010-12-20  Bruno Haible  <bruno@clisp.org>
22897
22898         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22899         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22900         * doc/posix-functions/getlogin_r.texi: Likewise.
22901         * tests/test-getlogin.c: Include <errno.h>.
22902         (main): Avoid test failure on HP-UX 11.11.
22903         * tests/test-getlogin_r.c (main): Likewise.
22904
22905 2010-12-20  Bruno Haible  <bruno@clisp.org>
22906
22907         getlogin_r: Add missing declaration on HP-UX 11.
22908         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22909         declared also when it exists as a function.
22910         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22911
22912 2010-12-20  Bruno Haible  <bruno@clisp.org>
22913
22914         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22915         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22916         through wcrtomb.
22917
22918 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22919
22920         ftoastr: fix comment
22921         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22922         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22923
22924 2010-12-19  Bruno Haible  <bruno@clisp.org>
22925
22926         isnan: Ensure it is a macro.
22927         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22928         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22929         Solaris.
22930
22931 2010-12-19  Bruno Haible  <bruno@clisp.org>
22932
22933         ldexpl test: Fix link error on OSF/1 5.1.
22934         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22935
22936 2010-12-19  Bruno Haible  <bruno@clisp.org>
22937
22938         wctype: Make it work in C++ mode on OSF/1 5.1.
22939         * lib/wctype.in.h (iswblank): Declare but not define here.
22940         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22941         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22942         * modules/wctype (Files): Add lib/iswblank.c.
22943
22944 2010-12-19  Bruno Haible  <bruno@clisp.org>
22945
22946         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22947         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22948         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22949
22950 2010-12-19  Bruno Haible  <bruno@clisp.org>
22951
22952         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22953         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22954         _POSIX_PII_SOCKET.
22955         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22956         * doc/posix-functions/recvfrom.texi: Likewise.
22957         * doc/posix-functions/send.texi: Likewise.
22958         * doc/posix-functions/sendto.texi: Likewise.
22959
22960 2010-12-19  Bruno Haible  <bruno@clisp.org>
22961
22962         tcgetsid: Add missing declaration on OSF/1 5.1.
22963         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22964         HAVE_TCGETSID.
22965         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22966         Don't set HAVE_TCGETSID.
22967         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22968         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22969         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22970         HAVE_TCGETSID.
22971         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22972
22973 2010-12-19  Bruno Haible  <bruno@clisp.org>
22974
22975         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22976         * lib/stdio.in.h: During the include_next statement, let recursive
22977         includes of this file include only the system header file.
22978
22979 2010-12-19  Bruno Haible  <bruno@clisp.org>
22980
22981         iconv_open: Fix regression from 2010-12-04.
22982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22983         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22984
22985 2010-12-19  Bruno Haible  <bruno@clisp.org>
22986
22987         stdbool test: Avoid a gcc warning.
22988         * tests/test-stdbool.c (main): Fail if e1 is false.
22989         Reported by Jim Meyering.
22990
22991 2010-12-19  Jim Meyering  <meyering@redhat.com>
22992
22993         setenv: restore to working order
22994         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22995         mistakenly removed.
22996         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22997         HAVE_SETENV.
22998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22999         HAVE_SETENV.
23000
23001 2010-12-19  Bruno Haible  <bruno@clisp.org>
23002
23003         Document some different function declarations on OSF/1 5.1.
23004         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23005         * doc/posix-functions/inet_ntop.texi: Likewise.
23006         * doc/posix-functions/gethostname.texi: Likewise.
23007         * lib/unistd.in.h (gethostname): Update comment.
23008
23009 2010-12-19  Bruno Haible  <bruno@clisp.org>
23010
23011         doc: Mention vasprintf-posix module.
23012         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23013         the 'vasprintf-posix' module.
23014         * doc/glibc-functions/vasprintf.texi: Likewise.
23015
23016 2010-12-19  Bruno Haible  <bruno@clisp.org>
23017
23018         unsetenv: Add missing declaration on OSF/1 5.1.
23019         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23020         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23021         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23023         not HAVE_UNSETENV.
23024         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23025         HAVE_UNSETENV.
23026         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23027
23028 2010-12-19  Bruno Haible  <bruno@clisp.org>
23029
23030         setenv: Add missing declaration on OSF/1 5.1.
23031         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23032         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23033         declared. Don't set HAVE_SETENV.
23034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23035         not HAVE_SETENV.
23036         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23037         HAVE_SETENV.
23038         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23039
23040 2010-12-19  Bruno Haible  <bruno@clisp.org>
23041
23042         nl_langinfo tests: Avoid gcc warning.
23043         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23044
23045 2010-12-19  Bruno Haible  <bruno@clisp.org>
23046
23047         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23048         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23049         _GL_CXXALIAS_SYS.
23050
23051 2010-12-19  Bruno Haible  <bruno@clisp.org>
23052
23053         stdbool: Relax test.
23054         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23055         address to 'bool' work in static initializer, for compilers other than
23056         GCC.
23057
23058 2010-12-19  Bruno Haible  <bruno@clisp.org>
23059
23060         ftello: Add missing declaration on OSF/1 5.1.
23061         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23062         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23064         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23065         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23066
23067 2010-12-19  Bruno Haible  <bruno@clisp.org>
23068
23069         fseeko: Add missing declaration on OSF/1 5.1.
23070         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23071         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23073         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23074         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23075
23076 2010-12-19  Bruno Haible  <bruno@clisp.org>
23077
23078         fchdir: Add missing declaration on OSF/1 5.1.
23079         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23082         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23083         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23084
23085 2010-12-19  Bruno Haible  <bruno@clisp.org>
23086
23087         relocatable-prog-wrapper: Separate from relocatable-prog.
23088         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23089         uninstall-relocwrapper rule here.
23090         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23091         Reported by Ian Beckwith <ianb@erislabs.net>.
23092
23093 2010-12-19  Bruno Haible  <bruno@clisp.org>
23094
23095         unistr/u8-mbsnlen: Add missing dependency.
23096         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23097         Reported by Ian Beckwith <ianb@erislabs.net>.
23098
23099 2010-12-19  Bruno Haible  <bruno@clisp.org>
23100
23101         iconv: Make it possible again to use this module without 'iconv-h'.
23102         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23103         if it is not defined.
23104         Reported by Ian Beckwith <ianb@erislabs.net>.
23105
23106 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23107
23108         acl: port to Solaris 8 when copying from tmpfs to ufs
23109         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23110         error number.  Problem observed on Solaris 8 with latest
23111         coreutils, with "mv A B", where A is on a tmpfs file system and B
23112         is on a ufs file system.  This caused coreutils' mv/part-symlink
23113         test to fail.
23114
23115         tests: set fail=0 at start
23116         * tests/init.sh (setup_): Move fail=0 initialization here ...
23117         (mktempd_): ... from here, so that tests can rely on fail being
23118         set to 0 initially.  This fixes a problem in coreutils; see:
23119         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23120
23121 2010-12-18  Bruno Haible  <bruno@clisp.org>
23122
23123         memmem-simple: Stylistic changes.
23124         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23125         Fix preprocessor directive indentation.
23126
23127 2010-12-15  Pádraig Brady <P@draigBrady.com>
23128
23129         memmem, memmem-simple: reorganize and expand empty needle check
23130         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23131         functional checks to memmem-simple so that one has a fully functional
23132         memmem by using just this module.
23133         Restrict the performance only check to the memmem module.
23134         Also expand the empty needle check to ensure the correct
23135         pointer is returned, not just a non NULL pointer.
23136         * doc/glibc-functions/memmem.texi: Rearrange the portability
23137         documentation to correlate with the rearranged checks.
23138         Clarify exactly how the memmem and memmem-simple modules
23139         relate to each other.
23140
23141 2010-12-15  Pádraig Brady <P@draigBrady.com>
23142             Bruno Haible  <bruno@clisp.org>
23143
23144         Improve cross-compilation guesses for uClibc.
23145         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23146         that uClibc does not have the glibc bug.
23147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23148         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23149
23150 2010-12-14  Eric Blake  <eblake@redhat.com>
23151
23152         configmake: provide fallbacks for oldest supported autotools
23153         * m4/configmake.m4: New file.
23154         * modules/configmake (Files): Ship it.
23155         (configure.ac): Use it to guarantee fallbacks.
23156
23157 2010-12-13  Pádraig Brady <P@draigBrady.com>
23158
23159         read-file: Improve handling of large files
23160         * lib/read-file.c (fread_file): Minimize realloc()s
23161         for regular files, and better manage sizes around SIZE_MAX.
23162
23163 2010-12-13  Eric Blake  <eblake@redhat.com>
23164
23165         cloexec, fcntl: relax license
23166         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23167         consent from all contributors.
23168         * modules/fcntl (License): Likewise.
23169
23170 2010-12-10  Bruno Haible  <bruno@clisp.org>
23171
23172         Tests for module 'pipe-posix'.
23173         * modules/pipe-posix-tests: New file.
23174         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23175
23176 2010-12-10  Bruno Haible  <bruno@clisp.org>
23177
23178         pipe-posix: Make it work in C++ mode.
23179         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23180         (pipe): Use common idiom, not a macro definition.
23181         * lib/pipe.c: New file.
23182         * m4/pipe.m4: New file.
23183         * modules/pipe-posix (Description): Enhance.
23184         (Files): Add lib/pipe.c, m4/pipe.m4.
23185         (configure.ac): Invoke gl_FUNC_PIPE.
23186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23187         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23188         * tests/test-unistd-c++.cc: Check the signature of pipe.
23189
23190 2010-12-10  Bruno Haible  <bruno@clisp.org>
23191
23192         Rename module 'pipe' to 'spawn-pipe'.
23193         * modules/spawn-pipe: New file, renamed from modules/pipe.
23194         (Files, configure.ac, Makefile.am): Update.
23195         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23196         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23197         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23198         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23199         "spawn-pipe.h" instead of "pipe.h".
23200         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23201         to gl_SPAWN_PIPE.
23202         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23203         (Files, Makefile.am): Update.
23204         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23205         Update.
23206         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23207         Include "spawn-pipe.h" instead of "pipe.h".
23208         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23209         * lib/javacomp.c: Likewise.
23210         * lib/javaversion.c: Likewise.
23211         * lib/pipe-filter-gi.c: Likewise.
23212         * lib/pipe-filter-ii.c: Likewise.
23213         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23214         * modules/javacomp (Depends-on): Likewise.
23215         * modules/javaversion (Depends-on): Likewise.
23216         * modules/pipe-filter-gi (Depends-on): Likewise.
23217         * modules/pipe-filter-ii (Depends-on): Likewise.
23218         * MODULES.html.sh (Executing programs): Update.
23219         * NEWS: Mention the change.
23220
23221 2010-12-10  Eric Blake  <eblake@redhat.com>
23222
23223         pipe-posix: new module
23224         * modules/pipe-posix: New file.
23225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23226         (gl_UNISTD_H): Check for declaration.
23227         * modules/unistd (Makefile.am): Substitute it.
23228         * lib/unistd.in.h (pipe): Provide it for mingw.
23229         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23230         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23231
23232 2010-12-07  Bruno Haible  <bruno@clisp.org>
23233
23234         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23235         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23236         u8_strcmp_gnu.
23237         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23238
23239 2010-12-06  Bruno Haible  <bruno@clisp.org>
23240
23241         Update internal documentation.
23242         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23243
23244 2010-12-04  Bruno Haible  <bruno@clisp.org>
23245
23246         Put more information about failed tests into the test return codes.
23247         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23248         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23249         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23250         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23251         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23252         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23253         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23254         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23255         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23258         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23259         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23260         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23261         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23262         returns a bit mask.
23263         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23264         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23265         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23266         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23267         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23268         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23271         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23272         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23274         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23275         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23276         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23277         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23278         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23279         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23280         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23281         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23282         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23283         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23284         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23286         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23287         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23288         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23289         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23290         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23291         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23292         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23293         gl_PRINTF_PRECISION): Likewise.
23294         * m4/regex.m4 (gl_REGEX): Likewise.
23295         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23297         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23298         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23300         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23301         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23302         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23303         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23304         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23305         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23306         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23307         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23308         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23309         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23310         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23311         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23312         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23313         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23314         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23315         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23316         enumerated value.
23317         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23318
23319 2010-12-04  Bruno Haible  <bruno@clisp.org>
23320
23321         Update for Solaris 11 2010-11.
23322         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23323         Express, released in November 2010.
23324
23325 2010-12-04  Bruno Haible  <bruno@clisp.org>
23326
23327         nproc: Relax license.
23328         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23329         and Paul Eggert.
23330         Requested by Ludovic Courtès <ludo@gnu.org>.
23331
23332 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23333
23334         utimecmp: fine-grained src to nearby coarse-grained dest
23335
23336         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23337         and the source is on a file system with higher-resolution time
23338         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23339         not work, and the time stamps are close together, the algorithm to
23340         determine the exact resolution from the read-back mtime was buggy:
23341         it had a "!=" where it should have had an "==".  This bug has been
23342         in the code ever since it was introduced to gnulib.
23343         Problem reported by Dan Jacobson in
23344         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23345
23346 2010-11-30  Bruno Haible  <bruno@clisp.org>
23347
23348         strerror_r-posix: Fix autoconf test.
23349         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23350
23351 2010-11-28  Bruno Haible  <bruno@clisp.org>
23352             Paul Eggert  <eggert@cs.ucla.edu>
23353
23354         Tests for module 'getdomainname'.
23355         * modules/getdomainname-tests: New file.
23356         * tests/test-getdomainname.c: New file, based on
23357         tests/test-gethostname.c.
23358
23359 2010-11-28  Bruno Haible  <bruno@clisp.org>
23360             Paul Eggert  <eggert@cs.ucla.edu>
23361
23362         getdomainname: Use the system function when possible.
23363         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23364         (getdomainname): Replace if needed. Provide the declaration if it is
23365         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23366         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23367         (getdomainname): When the system has getdomainname, call the system
23368         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23369         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23370         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23371         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23372         the function if its second argument is of type 'int' or if it is found
23373         in libnsl.
23374         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23375         <sys/systeminfo.h> and sysinfo().
23376         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23378         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23379         HAVE_GETDOMAINNAME.
23380         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23381         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23382         * doc/glibc-functions/getdomainname.texi: Document the problems with
23383         the getdomainname declaration.
23384
23385 2010-11-28  Bruno Haible  <bruno@clisp.org>
23386
23387         sys_socket: Ensure ss_family field on AIX.
23388         * lib/sys_socket.in.h (ss_family): New macro definition.
23389         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23390         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23391         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23392         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23393         * modules/sys_socket (Makefile.am): Substitute
23394         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23395         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23396
23397 2010-11-27  Bruno Haible  <bruno@clisp.org>
23398
23399         readline: Improve configure output.
23400         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23401         "checking for readline..." result understandable.
23402
23403 2010-11-27  Bruno Haible  <bruno@clisp.org>
23404
23405         *printf-posix: Detect a bug on Solaris 10/x86.
23406         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23407         for floating-point output.
23408         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23409         directive.
23410         * tests/test-snprintf-posix.h (test_function): Likewise.
23411         * tests/test-sprintf-posix.h (test_function): Likewise.
23412         * tests/test-vasprintf-posix.c (test_function): Likewise.
23413         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23414         * doc/posix-functions/printf.texi: Likewise.
23415         * doc/posix-functions/snprintf.texi: Likewise.
23416         * doc/posix-functions/sprintf.texi: Likewise.
23417         * doc/posix-functions/vfprintf.texi: Likewise.
23418         * doc/posix-functions/vprintf.texi: Likewise.
23419         * doc/posix-functions/vsnprintf.texi: Likewise.
23420         * doc/posix-functions/vsprintf.texi: Likewise.
23421         * doc/glibc-functions/obstack_printf.texi: Likewise.
23422         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23423
23424 2010-11-27  Bruno Haible  <bruno@clisp.org>
23425
23426         Fix link error when module libunistring-optional is in use.
23427         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23428         * modules/striconveha-tests (Makefile.am): Likewise.
23429
23430 2010-11-27  Bruno Haible  <bruno@clisp.org>
23431
23432         regex: Mention link dependencies.
23433         * modules/regex (Link): New section.
23434         * modules/rpmatch (Link): Likewise.
23435         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23436
23437 2010-11-27  Bruno Haible  <bruno@clisp.org>
23438
23439         ftoastr: Fix compilation error on Solaris.
23440         * lib/ftoastr.c: Include <config.h>.
23441
23442 2010-11-27  Bruno Haible  <bruno@clisp.org>
23443
23444         getloadavg: Update documentation.
23445         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23446
23447 2010-11-27  Bruno Haible  <bruno@clisp.org>
23448
23449         sys_socket: Fix test whether the functions are declared.
23450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23451         not <sys/select.h>.
23452
23453 2010-11-27  Bruno Haible  <bruno@clisp.org>
23454
23455         getpass: Make sure to get system declaration on some platforms.
23456         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23457         gl_USE_SYSTEM_EXTENSIONS.
23458         * modules/getpass (Depends-on): Add extensions.
23459
23460 2010-11-26  Bruno Haible  <bruno@clisp.org>
23461
23462         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23463         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23464         'iconv' module is present.
23465         (ICONV_CONST): New macro.
23466         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23467         ICONV_CONST.
23468         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23469         set ICONV_CONST.
23470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23471         here.
23472         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23473         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23474         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23475         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23476         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23477         present.
23478
23479 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23480
23481         ftoastr: comment fix
23482         * lib/ftoastr.c: "little" -> "little or no" in comment
23483
23484 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23485
23486         stdint: port to GCC 4.3 + OSX + Octave
23487         On this platform, stdint.h is buggy and defines int64_t to long
23488         long int.  The replacement defined it to long int, causing
23489         problems with C++ style name mangling.  Instead, trust the system
23490         definition if INT64_MAX is defined, and likewise for the unsigned
23491         variant.   Problem reported by Jarno Rajahalme in
23492         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23493         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23494         and don't mess with int64_t and INT64_MAX in this case.
23495         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23496
23497 2010-11-24  Bruno Haible  <bruno@clisp.org>
23498
23499         doc: Corrections regarding MacOS X 10.4 and 10.5.
23500         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23501         MacOS X.
23502         Reported by Simon Josefsson.
23503
23504 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23505
23506         Uninstall ".bin" files installed by relocwrapper.
23507         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23508         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23509         unless it is already there.
23510
23511 2010-11-21  Bruno Haible  <bruno@clisp.org>
23512
23513         Update for NetBSD 5.0.
23514         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23515         NetBSD; the test fails on NetBSD 5.0.
23516         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23517         about NetBSD.
23518
23519 2010-11-21  Bruno Haible  <bruno@clisp.org>
23520
23521         Update for HP-UX 11.23 and HP-UX 11.31.
23522         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23523         HP-UX.
23524
23525 2010-11-21  Bruno Haible  <bruno@clisp.org>
23526
23527         Update for MacOS X 10.5.
23528         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23529         MacOS X; the test fails on MacOS X 10.5.8.
23530         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23531         about MacOS X.
23532
23533 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23534
23535         bootstrap: add bootstrap_sync option.
23536         See discussion at
23537         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23538         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23539         * build-aux/bootstrap: Accept --bootstrap-sync to update
23540         bootstrap if it is not identical to the local gnulib's
23541         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23542         enable this by default.  Accept --no-bootstrap-sync to disable
23543         it.
23544
23545 2010-11-20  Bruno Haible  <bruno@clisp.org>
23546
23547         Ensure that <features.h> is included before __GLIBC__ is tested.
23548         * lib/printf-parse.h: Include <features.h>.
23549         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23550         Reported by Mike Frysinger <vapier@gentoo.org>.
23551
23552         Ensure that <features.h> is included before __GLIBC__ is tested.
23553         * lib/wchar.in.h: Include <features.h>.
23554         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23555         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23556         Reported by Mike Frysinger <vapier@gentoo.org>.
23557
23558         Ensure that <features.h> is included before __GLIBC__ is tested.
23559         * lib/arpa_inet.in.h: Include <features.h>.
23560         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23561         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23562         Reported by Mike Frysinger <vapier@gentoo.org>.
23563
23564         Ensure that <features.h> is included before __GLIBC__ is tested.
23565         * build-aux/link-warning.h: Include <features.h>.
23566         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23567         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23568         Reported by Mike Frysinger <vapier@gentoo.org>.
23569
23570         Ensure that <features.h> is included before __GLIBC__ is tested.
23571         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23572         Reported by Mike Frysinger <vapier@gentoo.org>.
23573
23574 2010-11-20  Bruno Haible  <bruno@clisp.org>
23575
23576         memmem: Fix autoconf test.
23577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23578
23579 2010-11-20  Bruno Haible  <bruno@clisp.org>
23580
23581         Port to uClibc.
23582         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23583         * lib/fcntl.in.h: Likewise.
23584         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23585         * lib/mbrtowc.c (mbrtowc): Likewise.
23586         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23587         * lib/strerror_r.c: Likewise.
23588         * lib/unistr/u8-strnlen.c: Likewise.
23589         * lib/vasnprintf.c (decimal_point_char): Likewise.
23590         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23591         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23593         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23594         * tests/test-sigaction.c (handler, main): Likewise.
23595         * lib/freading.h: Treat uClibc like a non-glibc platform.
23596         * lib/freading.c: Likewise.
23597         * lib/gettext.h: Likewise.
23598         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23599         Likewise.
23600         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23601         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23602         * lib/propername.c (proper_name_utf8): Likewise.
23603         * lib/spawn.in.h: Likewise.
23604         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23605         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23606         mem_cd_iconveh_internal): Likewise.
23607         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23608         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23609         strstr, strcasestr): Likewise.
23610         * lib/unicodeio.c (unicode_to_mb): Likewise.
23611         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23612         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23613         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23614         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23615         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23616         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23617         * lib/unistr/u8-stpncpy.c: Likewise.
23618         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23619         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23620         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23622         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23623         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23624         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23626         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23627         Likewise.
23628         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23629         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23632         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23633         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23634         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23635         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23636         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23637         * tests/test-striconveha.c (main): Likewise.
23638         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23639         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23640         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23641         * doc/posix-functions/getline.texi: Likewise.
23642         Reported by Mike Frysinger <vapier@gentoo.org>.
23643
23644 2010-11-20  Bruno Haible  <bruno@clisp.org>
23645
23646         nproc: Fix condition.
23647         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23648         HAVE_PTHREAD_AFFINITY_NP.
23649
23650 2010-11-20  Bruno Haible  <bruno@clisp.org>
23651
23652         Fix a comment.
23653         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23654
23655 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23656
23657         ftoastr: don't assume snprintf
23658         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23659         Implement a subset of snprintf here, by using sprintf safely.
23660         * modules/ftoastr (Depends-on): Remove snprintf.
23661
23662 2010-11-19  Jim Meyering  <meyering@redhat.com>
23663
23664         test-rename.h: fix compilation failure
23665         * tests/test-rename.h (test_rename): Add omitted "}".
23666
23667 2010-11-17  Jim Meyering  <meyering@redhat.com>
23668
23669         maint.mk: add a URL discussing the no-@acronym policy
23670         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23671
23672 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23673
23674         ftoastr: depend on snprintf, improve comments
23675         * lib/ftoastr.c: Also mention Loitsch's draft.
23676         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23677         needed in the current implementation, but it might simplify
23678         speeding up the code later.
23679         * modules/ftoastr: Depend on snprintf; this improves portability.
23680         Suggested by Bruno Haible in the same email.
23681
23682         ftoastr: port to hosts lacking strtof and strtold
23683         Problem reported by Bruno Haible in
23684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23685         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23686         environment and strtold (and presumably strtof) are not available.
23687         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23688         (configure.ac): Require gl_C99_STRTOLD.
23689
23690 2010-11-18  Bruno Haible  <bruno@clisp.org>
23691
23692         c-strtold: Avoid link error on AIX 7.
23693         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23694         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23695         (gl_C_STRTOLD): Test whether strtold_l exists.
23696         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23697
23698 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23699
23700         intprops: new macro INT_BITS_STRLEN_BOUND
23701         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23702         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23703         not exposed.  Also, it uses a slightly tighter bound than before;
23704         though this makes no practical difference, we might as well be as
23705         tight as we easily can.
23706
23707         ftoastr: new module, for lossless conversion of floats to short strings
23708         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23709         * modules/ftoastr: New files.
23710
23711 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23712
23713         bootstrap: port to Solaris sed
23714         * build-aux/bootstrap (get_version): Port to Solaris sed.
23715         See Ralf Wildenhues's note in
23716         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23717
23718 2010-11-14  Jim Meyering  <meyering@redhat.com>
23719
23720         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23721         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23722         and move definition closer to sole use.
23723
23724 2010-11-13  Jim Meyering  <meyering@redhat.com>
23725
23726         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23727         Now we require at least autoconf-2.59, which means the work-around
23728         is no longer needed.
23729         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23730         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23731         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23732         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23733         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23734
23735 2010-11-13  Bruno Haible  <bruno@clisp.org>
23736
23737         rename, renameat: Avoid test failures at NFS mounted locations.
23738         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23739         functions.
23740         (test_rename): Use assert_nonexistent.
23741         * tests/test-rename.c: Include <dirent.h>.
23742         * tests/test-renameat.c: Likewise.
23743         Reported by Gary V. Vaughan <gary@gnu.org>.
23744
23745         rename, renameat: Document Linux bug with NFS
23746         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23747         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23748         * doc/posix-functions/renameat.texi: Likewise.
23749         Suggested by Eric Blake.
23750
23751 2010-11-13  Bruno Haible  <bruno@clisp.org>
23752
23753         rename test: Add comments.
23754         * tests/test-rename.h (test_rename): Add structure and comments.
23755
23756 2010-11-13  Eric Blake  <eblake@redhat.com>
23757
23758         maintainer-makefile: cover a few more files
23759         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23760         scripts generated within C files, for libvirt.
23761
23762 2010-11-13  Bruno Haible  <bruno@clisp.org>
23763
23764         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23765         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23766         character, return the number of bytes that belong together, not always
23767         1.
23768         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23769         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23770         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23771         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23772         number of bytes of an invalid character.
23773         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23774         (main): Invoke it.
23775         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23776         results.
23777         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23778         malformed byte sequences.
23779         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23780         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23781         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23782         Reported by Ben Pfaff and Paolo Bonzini.
23783
23784 2010-11-13  Bruno Haible  <bruno@clisp.org>
23785
23786         openat: Work around glibc bug with fchownat() and empty file names.
23787         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23788         (gl_FUNC_FCHOWNAT): Invoke it.
23789         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23790         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23791         Reported by Gary V. Vaughan <gary@gnu.org>.
23792
23793 2010-11-13  Bruno Haible  <bruno@clisp.org>
23794
23795         openat: Ensure autoconf macro ordering.
23796         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23797         gl_USE_SYSTEM_EXTENSIONS.
23798         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23799
23800 2010-11-13  Bruno Haible  <bruno@clisp.org>
23801
23802         Update comments.
23803         * lib/unistr/u8-check.c: Update file name in comments.
23804         * lib/unistr/u8-mblen.c: Likewise.
23805         * lib/unistr/u8-prev.c: Likewise.
23806         * lib/unistr/u8-strmblen.c: Likewise.
23807         * lib/unistr/u8-strmbtouc.c: Likewise.
23808
23809 2010-11-13  Jim Meyering  <meyering@redhat.com>
23810
23811         tests: avoid test failure on Solaris 10 due to lack of PATH export
23812         * tests/test-update-copyright.sh: Don't forget to export PATH.
23813
23814         init.sh: ensure that IFS is defined, just in case...
23815         * tests/init.sh (setup_): Ensure that IFS is defined,
23816         so that saving and restoring it works as expected.  This
23817         appears to be useful at least for an old version of dash
23818         from a long time ago (RH 6).  See here for details:
23819         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23820
23821         maint.mk: tighten "test a == b" check
23822         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23823         test to files that contain something like #!/bin/sh.
23824         Without this, coreutils would get two false positives in
23825         the comments of C source files.
23826
23827 2010-11-12  Eric Blake  <eblake@redhat.com>
23828
23829         bootstrap: fix typo in previous attempt
23830         * build-aux/bootstrap (buildreq): Correct the grouping.
23831         Reported by Paul Eggert.
23832
23833         maintainer-makefile: prohibit test x == x
23834         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23835         Based on a report by Matthias Bolte.
23836
23837         bootstrap: allow FreeBSD gzip
23838         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23839         which has no '.' and goes to stderr.
23840         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23841         Reported by Matthias Bolte.
23842
23843         maintainer-makefile: check for i18n setup
23844         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23845         will likely work.
23846
23847 2010-11-12  Bruno Haible  <bruno@clisp.org>
23848
23849         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23850         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23851         * lib/nanosleep.c (nanosleep): Likewise.
23852
23853 2010-11-11  Bruno Haible  <bruno@clisp.org>
23854
23855         fcntl-h: Fix for use of C++ on glibc systems.
23856         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23857         also on glibc systems in C++ mode.
23858         Reported by Gary V. Vaughan <gary@gnu.org>.
23859
23860 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23861
23862         mknod: avoid false failure with dash
23863         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23864
23865 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23866
23867         unlink: Fix "is it should" typo in diagnostic.
23868         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23870
23871 2010-11-11  Bruno Haible  <bruno@clisp.org>
23872
23873         Tests for module 'strerror_r-posix'.
23874         * modules/strerror_r-posix-tests: New file.
23875         * tests/test-strerror_r.c: New file.
23876         * tests/test-string-c++.cc: Check the signature of strerror_r.
23877
23878         New module 'strerror_r-posix'.
23879         * lib/string.in.h (strerror_r): New declaration.
23880         * lib/strerror_r.c: New file.
23881         * m4/strerror_r.m4: New file.
23882         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23883         of strerror_r.
23884         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23885         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23886         * modules/strerror_r-posix: New file.
23887         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23888         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23889         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23890         portability problems.
23891
23892 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23893
23894         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23895         line is also considered for output. Quoted function name in shell
23896         command, so temporary files for functions like MyClass::operator()
23897         are removed correctly without errors.
23898
23899 2010-11-09  Bruno Haible  <bruno@clisp.org>
23900
23901         * doc/posix-functions/strerror.texi: List more failing platforms.
23902
23903         * doc/posix-functions/strerror.texi: Add a comment.
23904
23905 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23906
23907         fdopendir: fix bug on MacOS X when low on file descriptors
23908
23909         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23910         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23911         All callers changed.
23912         (fdopendir): Invoke save_cwd at the top level, not after using
23913         multiple dup() calls to use up file descriptors.  Then retry
23914         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23915         less than the maximum number of open file descriptors, because
23916         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23917         on Mac OS X 10.6.4 for tar 1.24
23918         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23919         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23920         and for tar 1.25
23921         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23922
23923 2010-11-07  Bruno Haible  <bruno@clisp.org>
23924
23925         vasnprintf: Support I flag on glibc systems.
23926         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23927         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23928         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23929         snprintf function.
23930         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23931         glibc systems.
23932         * tests/test-vasnprintf-posix3.c: New file.
23933         * modules/vasnprintf-posix-tests (Files): Add it.
23934         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23935
23936 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23937
23938         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23939         * MODULES.html.sh: For compiler warnings, use name
23940         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23941
23942 2010-11-05  Eric Blake  <eblake@redhat.com>
23943
23944         ceil, floor: avoid spurious failure with icc
23945         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23946         [denormals-as-zero] when optimizing without -mieee-fp option.
23947         * tests/test-floorf2.c (floorf_reference): Likewise.
23948         * tests/test-ceilf1.c (dummy): New function.
23949         (main): Use it to outsmart icc's optimization.
23950         * tests/test-floorf1.c (dummy, main): Likewise.
23951
23952         tests: require working signbit
23953         * modules/ceilf-tests (Depends-on): Add signbit.
23954         * modules/ceill-tests (Depends-on): Likewise.
23955         * modules/floorf-tests (Depends-on): Likewise.
23956         * modules/floorl-tests (Depends-on): Likewise.
23957         * modules/round-tests (Depends-on): Likewise.
23958         * modules/roundf-tests (Depends-on): Likewise.
23959         * modules/roundl-tests (Depends-on): Likewise.
23960         * modules/trunc-tests (Depends-on): Likewise.
23961         * modules/truncf-tests (Depends-on): Likewise.
23962         * modules/truncl-tests (Depends-on): Likewise.
23963
23964         strtod: work around icc bug
23965         * lib/strtod.c (minus_zero): Define to working value.
23966         (strtod): Use it to avoid icc bug.
23967
23968         copysign: enhance tests
23969         * modules/copysign-tests (Files): Add minus-zero.h.
23970         * tests/test-copysign.c (main): Also test zeros.
23971
23972 2010-11-04  Eric Blake  <eblake@redhat.com>
23973
23974         ceil, floor, round, trunc: enhance tests of -0
23975         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23976         * tests/test-ceill.c (main): Likewise.
23977         * tests/test-floorf1.c (main): Likewise.
23978         * tests/test-floorl.c (main): Likewise.
23979         * tests/test-round1.c (main): Likewise.
23980         * tests/test-roundf1.c (main): Likewise.
23981         * tests/test-roundl.c (main): Likewise.
23982         * tests/test-trunc1.c (main): Likewise.
23983         * tests/test-truncf1.c (main): Likewise.
23984         * tests/test-truncl.c (main): Likewise.
23985
23986 2010-11-04  Eric Blake  <eblake@redhat.com>
23987
23988         frexp, tests: work around ICC bug with -zero
23989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23990         works with more compilers.
23991         * tests/minus-zero.h: New file.
23992         * modules/ceilf-tests (Files): Include it.
23993         * modules/ceill-tests (Files): Likewise.
23994         * modules/floorf-tests (Files): Likewise.
23995         * modules/floorl-tests (Files): Likewise.
23996         * modules/frexp-nolibm-tests (Files): Likewise.
23997         * modules/frexp-tests (Files): Likewise.
23998         * modules/frexpl-nolibm-tests (Files): Likewise.
23999         * modules/frexpl-tests (Files): Likewise.
24000         * modules/isnan-tests (Files): Likewise.
24001         * modules/isnand-nolibm-tests (Files): Likewise.
24002         * modules/isnand-tests (Files): Likewise.
24003         * modules/isnanf-nolibm-tests (Files): Likewise.
24004         * modules/isnanf-tests (Files): Likewise.
24005         * modules/isnanl-nolibm-tests (Files): Likewise.
24006         * modules/isnanl-tests (Files): Likewise.
24007         * modules/round-tests (Files): Likewise.
24008         * modules/roundf-tests (Files): Likewise.
24009         * modules/roundl-tests (Files): Likewise.
24010         * modules/ldexpl-tests (Files): Likewise.
24011         * modules/signbit-tests (Files): Likewise.
24012         * modules/snprintf-posix-tests (Files): Likewise.
24013         * modules/sprintf-posix-tests (Files): Likewise.
24014         * modules/strtod-tests (Files): Likewise.
24015         * modules/trunc-tests (Files): Likewise.
24016         * modules/truncf-tests (Files): Likewise.
24017         * modules/truncl-tests (Files): Likewise.
24018         * modules/vsnprintf-posix-tests (Files): Likewise.
24019         * modules/vsprintf-posix-tests (Files): Likewise.
24020         * modules/vasnprintf-posix-tests (Files): Likewise.
24021         * modules/vasprintf-posix-tests (Files): Likewise.
24022         * tests/test-ceilf1.c (main): Use it.
24023         * tests/test-ceill.c (main): Likewise.
24024         * tests/test-floorf1.c (main): Likewise.
24025         * tests/test-floorl.c (main): Likewise.
24026         * tests/test-frexp.c (main): Likewise.
24027         * tests/test-frexpl.c (main): Likewise.
24028         * tests/test-isnan.c (main): Likewise.
24029         * tests/test-isnand.h (main): Likewise.
24030         * tests/test-isnanf.h (main): Likewise.
24031         * tests/test-isnanl.h (main): Likewise.
24032         * tests/test-ldexpl.c (main): Likewise.
24033         * tests/test-round.c (main): Likewise.
24034         * tests/test-roundf.c (main): Likewise.
24035         * tests/test-roundl.c (main): Likewise.
24036         * tests/test-signbit.c (test_signbitf, test_signbitd)
24037         (test_signbitl): Likewise.
24038         * tests/test-snprintf-posix.h (test_function): Likewise.
24039         * tests/test-sprintf-posix.h (test_function): Likewise.
24040         * tests/test-strtod.c (main): Likewise.
24041         * tests/test-trunc1.c (main): Likewise.
24042         * tests/test-truncf1.c (main): Likewise.
24043         * tests/test-truncl.c (main): Likewise.
24044
24045         isnanl: work around icc bug
24046         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24047
24048 2010-11-03  Eric Blake  <eblake@redhat.com>
24049
24050         tests: fix compiler warnings
24051         * tests/test-getopt.h (test_getopt): Fix condition.
24052         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24053         * tests/test-pipe2.c (main): Likewise.
24054         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24055
24056         utimens: fix broken m4 test
24057         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24058
24059 2010-10-28  Bruno Haible  <bruno@clisp.org>
24060
24061         posix_spawn*, getdtablesize: Relax license.
24062         * modules/posix_spawn (License): Change to LGPLv2+.
24063         * modules/posix_spawnp (License): Likewise.
24064         * modules/posix_spawn-internal (License): Likewise.
24065         * modules/posix_spawnattr_init (License): Likewise.
24066         * modules/posix_spawnattr_getflags (License): Likewise.
24067         * modules/posix_spawnattr_setflags (License): Likewise.
24068         * modules/posix_spawnattr_getpgroup (License): Likewise.
24069         * modules/posix_spawnattr_setpgroup (License): Likewise.
24070         * modules/posix_spawnattr_getschedparam (License): Likewise.
24071         * modules/posix_spawnattr_setschedparam (License): Likewise.
24072         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24073         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24074         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24075         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24076         * modules/posix_spawnattr_getsigmask (License): Likewise.
24077         * modules/posix_spawnattr_setsigmask (License): Likewise.
24078         * modules/posix_spawnattr_destroy (License): Likewise.
24079         * modules/posix_spawn_file_actions_init (License): Likewise.
24080         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24081         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24082         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24083         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24084         * modules/getdtablesize (License): Likewise.
24085         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24086
24087 2010-10-26  Bruno Haible  <bruno@clisp.org>
24088
24089         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24090         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24091         Cygwin and mingw.
24092         Suggested by Eric Blake.
24093
24094 2010-10-26  Bruno Haible  <bruno@clisp.org>
24095
24096         stdio: Work around compilation error due to renameat() on Solaris 10.
24097         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24098         * lib/renameat.c: Don't include <unistd.h> here.
24099         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24100         Reported by Paul Eggert and Eric Blake.
24101
24102 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24103
24104         renameat: port to Solaris 10, which declares renameat in unistd.h
24105
24106         * lib/renameat.c: Include unistd.h before stdio.h, because
24107         Solaris 10 declares renameat in unistd.h.  Problem encountered
24108         when building GNU tar 1.24 on Solaris 10.
24109
24110 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24111
24112         fdopendir: fix C89 compilation
24113         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24114         compilers.
24115
24116 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24117
24118         inttostr: simplify by removing unnecessary redundancy
24119         * lib/anytostr.c: Don't include verify.h.
24120         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24121         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24122         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24123         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24124         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24125         Likewise.
24126         * modules/inttostr (Depends-on): Remove 'verify'.
24127
24128 2010-10-23  Bruno Haible  <bruno@clisp.org>
24129
24130         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24131         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24132         Reported by Eric Blake.
24133
24134 2010-10-23  Bruno Haible  <bruno@clisp.org>
24135
24136         Tests: Fix LOCALE_JA on MirBSD 10.
24137         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24138         to an UTF-8 locale.
24139         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24140         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24141         Reported by Eric Blake.
24142
24143 2010-10-21  Bruno Haible  <bruno@clisp.org>
24144
24145         nl_langinfo test: Avoid test failure on NetBSD 5.
24146         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24147         Reported by Eric Blake.
24148
24149 2010-10-21  Eric Blake  <eblake@redhat.com>
24150
24151         c-stack: work around libsigsegv 2.8 bug
24152         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24153         overflow on at least PowerPC64.
24154
24155 2010-10-17  Bruno Haible  <bruno@clisp.org>
24156
24157         userspec: Drop redundant file.
24158         * modules/userspec (Files): Remove lib/inttostr.h.
24159
24160 2010-10-17  Bruno Haible  <bruno@clisp.org>
24161
24162         nl_langinfo tests: Silence some warnings.
24163         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24164         Reported by Jim Meyering.
24165
24166 2010-10-17  Bruno Haible  <bruno@clisp.org>
24167
24168         Make use of GCC's attribute __alloc_size__.
24169         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24170         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24171         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24172         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24173         __alloc_size__.
24174         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24175         Suggested by Jim Meyering.
24176
24177 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24178
24179         bootstrap: anchor .gitignore entries.
24180         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24181         with...
24182         (insert_vc_ignore): ... this new function, which prepends `/' to
24183         all .gitignore entries before passing them to
24184         insert_sorted_if_absent.
24185
24186 2010-10-16  Bruno Haible  <bruno@clisp.org>
24187
24188         nextafter: Fix configure check.
24189         * modules/nextafter (configure.ac): Correct expected prototype.
24190
24191 2010-10-16  Bruno Haible  <bruno@clisp.org>
24192
24193         termios: Update documentation.
24194         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24195
24196 2010-10-16  Bruno Haible  <bruno@clisp.org>
24197
24198         tests: Make them compile with TinyCC.
24199         * tests/test-strstr.c (main): Remove parentheses around array
24200         initializer.
24201
24202 2010-10-15  Eric Blake  <eblake@redhat.com>
24203
24204         ignore-value: make header idempotent
24205         * lib/ignore-value.h: Add double-inclusion guards.
24206         Reported by Stefan Berger.
24207
24208 2010-10-15  Jim Meyering  <meyering@redhat.com>
24209
24210         GNUmakefile: handle "stable" target, not "major"
24211         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24212         lists in maint.mk and announce-gen.  Without this, "make stable"
24213         would fail to ensure that $(VERSION) is up to date.
24214
24215 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24216
24217         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24218         & co.
24219
24220 2010-10-14  Bruno Haible  <bruno@clisp.org>
24221
24222         vasnprintf: Don't set errno to 0.
24223         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24224         block that sets it to 0.
24225         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24226
24227 2010-10-14  Bruno Haible  <bruno@clisp.org>
24228
24229         socketlib: Fix.
24230         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24231         gl_PREREQ_SYS_H_WINSOCK2.
24232         Reported by Ian Beckwith <ianb@erislabs.net>.
24233
24234 2010-10-13  Jim Meyering  <meyering@redhat.com>
24235
24236         test-select-stdin.c: avoid warn_unused_result warnings
24237         * tests/test-select-stdin.c: Include "macros.h".
24238         ASSERT that read and fflush succeed.
24239
24240 2010-10-13  Jim Meyering  <meyering@redhat.com>
24241
24242         git-version-gen: do require git-VC'd files in cwd
24243         * build-aux/git-version-gen: Reject a git version string
24244         if there are no commits associated with the current directory.
24245         This avoids an unlikely false-positive (unrelated dir whose parent
24246         repository also contains a tag matching v*), as pointed out
24247         by Giuseppe Scrivano in
24248         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24249
24250 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         argv-iter: omit nonconforming declaration
24253         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24254         enum arg_iter_err declaration, which doesn't conform to C99.
24255         Solaris 10 cc warns about this.
24256
24257 2010-10-13  Eric Blake  <eblake@redhat.com>
24258
24259         termios: fix compilation on mingw
24260         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24261         (gl_TERMIOS_H): Adjust it on mingw.
24262         * modules/termios (Makefile.am): Substitute new key.
24263         * lib/termios.in.h (includes): Make include_next conditional.
24264         * doc/posix-headers/termios.texi (termios.h): Update
24265         documentation.
24266         Reported by Daniel P. Berrange.
24267
24268 2010-10-13  Jim Meyering  <meyering@redhat.com>
24269
24270         git-version-gen: don't require that .git/ be in the current dir
24271         * build-aux/git-version-gen: Adjust this script so that it works
24272         when run from any working directory beneath the top-level .git/-
24273         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24274         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24275
24276         test-select: avoid warn_unused_result warnings
24277         * tests/test-select.c: Include "macros.h".
24278         ASSERT that each call to read, write, and pipe succeeds.
24279         While not technically required, also check each "close".
24280         * modules/select-tests (Files): Add tests/macros.h.
24281
24282         test-symlinkat: remove declaration of unused local
24283         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24284
24285         test-inttostr: avoid shadowing warnings
24286         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24287         and use malloc rather than the stack for the same reason as
24288         mentioned in the comment justifying the other allocation.
24289
24290 2010-10-11  Bruno Haible  <bruno@clisp.org>
24291
24292         stdlib: Allow multiple gnulib generated replacements to coexist.
24293         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24294         Reported by Sam Steingold <sds@gnu.org>.
24295
24296 2010-10-11  Jim Meyering  <meyering@redhat.com>
24297
24298         fix a documentation typo
24299         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24300
24301 2010-10-11  Eric Blake  <eblake@redhat.com>
24302
24303         futimens: work around Solaris 11 bug
24304         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24305         * tests/test-futimens.h (test_futimens): Enhance, rather than
24306         weaken test.
24307         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24308
24309 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         Indentation.
24312         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24313         higher-level operators more to the left.
24314
24315 2010-10-11  Jim Meyering  <meyering@redhat.com>
24316
24317         test-futimens: avoid unwarranted test failure on Solaris 5.11
24318         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24319         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24320         because it tries to dereference the NULL name argument.
24321
24322 2010-10-11  Bruno Haible  <bruno@clisp.org>
24323
24324         Indentation.
24325         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24326         indentation.
24327
24328 2010-10-11  Jim Meyering  <meyering@redhat.com>
24329
24330         spawn.in.h: make indentation consistent with parentheses
24331         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24332         Make indentation consistent with parentheses.
24333
24334 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24335
24336         Fix mismatched parens in previous commit
24337         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24338         parens.
24339
24340 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24341
24342         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24343
24344         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24345         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24346         * lib/malloca.c: Include "verify.h".
24347         (verify1): Remove, replacing with a verify call.
24348         * lib/relocwrapper.c (verify1): Likewise.
24349         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24350         Likewise.
24351         * modules/malloca (Depends-on): Add 'verify'.
24352         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24353         * modules/vasnprintf (Depends-on): Add 'verify'.
24354         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24355         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24356         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24357         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24358         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24359         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24360         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24361
24362         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24363
24364         Formerly the style was sometimes 2*X - 1, because the C standard
24365         was wrongly thought to disallow ?: in integral constant expressions.
24366         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24367         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24368         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24369         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24370         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24371         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24372         verify that time_t cannot be floating.
24373
24374 2010-10-08  Eric Blake  <eblake@redhat.com>
24375
24376         time: enforce recent POSIX ruling that time_t is integral
24377         * lib/time.in.h (__time_t_must_be_integral): Detect any
24378         problematic systems, allowing the rest of gnulib to assume POSIX.
24379
24380 2010-10-08  Jim Meyering  <meyering@redhat.com>
24381
24382         fdopendir: fix a bug on systems lacking openat and /proc support
24383         OpenBSD 4.7 is one such system.  The most noticeable effect was
24384         failure of any application making nontrivial use of fts: rm, du,
24385         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24386           ./rm: traversal failed: `a': Bad file descriptor
24387         Debugging that, you see that even though FD 6 was closed just
24388         prior to the opendir call in fd_clone_opendir, its resulting
24389         dir->dd_fd was 8, rather than the expected value of 6:
24390
24391         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24392         93                close (fd);
24393         (gdb) n
24394         94                dir = fd_clone_opendir (dupfd);
24395         (gdb) n
24396         95                saved_errno = errno;
24397         (gdb) p dir->dd_fd
24398         $11 = 8
24399
24400         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24401         The problem is that on OpenBSD, fd_clone_opendir has to resort
24402         to using the old-style save/restore CWD mechanism, due to its
24403         lack of openat/proc support, and *that* would steal the FD (6)
24404         that opendir was supposed to use.
24405
24406         The fix is to squirrel away the desired FD so that save_cwd uses a
24407         different one, and then free the dest FD right before calling opendir.
24408         That guarantees opendir will use the required file descriptor.
24409
24410         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24411
24412 2010-10-08  Bruno Haible  <bruno@clisp.org>
24413
24414         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24415         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24416
24417 2010-10-08  Bruno Haible  <bruno@clisp.org>
24418
24419         nanosleep: Make replacement POSIX compliant.
24420         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24421         is out of range.
24422         Reported by Jim Meyering.
24423
24424 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24425
24426         bootstrap: add hook for altering gnulib.mk, for Bison
24427         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24428         the Bison bootstrapping process can rewrite file names and variables
24429         in this file before later parts of 'bootstrap' use the file.
24430         Bison wants to include lib/gnulib.mk from the top-level makefile,
24431         so it needs the file names in this file to be relative to the top
24432         level, not relative to lib; plus it needs variable names to be
24433         rewritten.
24434         (slurp): Use the new function.
24435
24436         bootstrap: reformat for readability
24437         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24438
24439 2010-10-08  Eric Blake  <eblake@redhat.com>
24440
24441         docs: update cygwin progress
24442         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24443         1.7.7.
24444         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24445         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24446         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24447         * doc/posix-functions/carg.texi (carg): Likewise.
24448         * doc/posix-functions/cargf.texi (cargf): Likewise.
24449         * doc/posix-functions/casin.texi (casin): Likewise.
24450         * doc/posix-functions/casinf.texi (casinf): Likewise.
24451         * doc/posix-functions/casinh.texi (casinh): Likewise.
24452         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24453         * doc/posix-functions/catan.texi (catan): Likewise.
24454         * doc/posix-functions/catanf.texi (catanf): Likewise.
24455         * doc/posix-functions/catanh.texi (catanh): Likewise.
24456         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24457         * doc/posix-functions/ccos.texi (ccos): Likewise.
24458         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24459         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24460         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24461         * doc/posix-functions/cexp.texi (cexp): Likewise.
24462         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24463         * doc/posix-functions/cimag.texi (cimag): Likewise.
24464         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24465         * doc/posix-functions/clog.texi (clog): Likewise.
24466         * doc/posix-functions/clogf.texi (clogf): Likewise.
24467         * doc/posix-functions/conj.texi (conj): Likewise.
24468         * doc/posix-functions/conjf.texi (conjf): Likewise.
24469         * doc/posix-functions/cpow.texi (cpow): Likewise.
24470         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24471         * doc/posix-functions/cproj.texi (cproj): Likewise.
24472         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24473         * doc/posix-functions/creal.texi (creal): Likewise.
24474         * doc/posix-functions/crealf.texi (crealf): Likewise.
24475         * doc/posix-functions/csin.texi (csin): Likewise.
24476         * doc/posix-functions/csinf.texi (csinf): Likewise.
24477         * doc/posix-functions/csinh.texi (csinh): Likewise.
24478         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24479         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24480         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24481         * doc/posix-functions/ctan.texi (ctan): Likewise.
24482         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24483         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24484         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24485         * doc/posix-headers/complex.texi (complex.h): Likewise.
24486
24487 2010-10-07  Jim Meyering  <meyering@redhat.com>
24488
24489         parse-datetime: avoid compilation failure on OpenBSD 4.7
24490         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24491         This works around a compilation failure on OpenBSD 4.7:
24492         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24493
24494 2010-10-07  Eric Blake  <eblake@redhat.com>
24495
24496         docs: update cygwin progress
24497         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24498         1.7.6.
24499         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24500         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24501         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24502         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24503         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24504         Likewise.
24505         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24506         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24507         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24508         Likewise.
24509         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24510         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24511         Likewise.
24512         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24513         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24514         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24515         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24516         Likewise.
24517         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24518         Likewise.
24519         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24520
24521         docs: update parse-datetime history
24522         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24523         documentation of this function's history and alternatives.
24524
24525         cygwin: use more robust version check
24526         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24527         exclude an eventual cygwin 1.9.1.
24528         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24530         (gl_FUNC_STRCASESTR): Likewise.
24531         Reported by Bruno Haible.
24532
24533 2010-10-06  Bruno Haible  <bruno@clisp.org>
24534
24535         string, sys_select: Avoid #including large headers unless necessary.
24536         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24537         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24538         OSF/1, BeOS, Haiku.
24539         Reported by Jim Meyering.
24540
24541 2010-10-05  Eric Blake  <eblake@redhat.com>
24542
24543         memmem, strstr, strcasestr: fix bug with long periodic needle
24544         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24545         periodic needle having false positive.
24546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24547         and cygwin 1.7.7.
24548         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24549         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24550         (gl_FUNC_STRCASESTR): Likewise.
24551         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24552         * tests/test-memmem.c (main): Expose the bug.
24553         * tests/test-strcasestr.c (main): Likewise.
24554         * tests/test-strstr.c (main): Likewise.
24555         * tests/test-c-strcasestr.c (main): Likewise.
24556         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24557         * doc/posix-functions/strstr.texi (strstr): Likewise.
24558         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24559         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24560
24561 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24562
24563         parse-datetime: do some more renaming
24564         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24565         parse_datetime, not get_date.  Mention the renaming.
24566         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24567         in comments.
24568         * m4/bison.m4: Likewise.
24569
24570 2010-10-05  Eric Blake  <eblake@redhat.com>
24571
24572         parse-datetime: better name than get_date
24573         * NEWS: Reword the deprecation notice.
24574         * modules/get_date: Rename to modules/parse-datetime.
24575         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24576         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24577         * lib/get_date.y: Rename to lib/parse-datetime.y.
24578         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24579         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24580         * doc/getdate.texi: Provide fallback wrapper.
24581         * lib/getdate.h: Move guts, and wrap...
24582         * lib/parse-datetime.h: ...new file.
24583         * lib/parse-datetime.y (get_date): Rename...
24584         (parse_datetime): ...to this.
24585         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24586         (gl_PARSE_DATETIME): ...to this.
24587         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24588         documentation.
24589         * modules/getdate (Files): Provide fallback docs and header.
24590         (Notice, Depends-on): Update references.
24591         * tests/test-parse-datetime.c: Likewise.
24592         * DEPENDENCIES: Likewise.
24593         * MODULES.html.sh (Date and time <time.h>): Likewise.
24594         * doc/parse-datetime.texi (Date input formats)
24595         (Authors of parse_datetime): Likewise.
24596         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24597         (Include): Likewise.
24598         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24599         * gnulib-tool: Likewise.
24600         * m4/bison.m4 (gl_BISON): Likewise.
24601         Suggested by Bruno Haible.
24602
24603 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24604
24605         more ports to Solaris tr, which needs [] around ranges
24606         * gnulib-tool: Solaris tr needs [] around ranges.
24607         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24608         * tests/test-pipe-filter-gi1.c (main): Likewise.
24609         * tests/test-pipe-filter-ii1.c (main): Likewise.
24610
24611 2010-10-05  Eric Blake  <eblake@redhat.com>
24612
24613         bootstrap: fix Solaris regression
24614         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24615         around ranges.
24616         Reported by Pádraig Brady.
24617
24618         bootstrap: work with pkg-config
24619         * build-aux/bootstrap (check_versions): Also transliterate - in
24620         prerequisite name.
24621         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24622         prerequisites that were already found, to avoid confusion.
24623         Reported by Justin Clift.
24624
24625         faccessat: remove unused wrappers
24626         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24627         presence of these wrappers dragged in -lgen on Solaris.
24628         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24629
24630 2010-10-05  Jim Meyering  <meyering@redhat.com>
24631
24632         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24633         * Makefile (sc_pragma_columns): New syntax-check rule.
24634
24635 2010-10-04  Bruno Haible  <bruno@clisp.org>
24636
24637         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24638         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24639         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24640         Reported by Bruce Korb and Eric Blake.
24641
24642 2010-10-04  Bruno Haible  <bruno@clisp.org>
24643
24644         threadlib: Make option --with-libpth-prefix work.
24645         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24646         use $LIBPTH, not just -lpth.
24647
24648 2010-10-04  Bruno Haible  <bruno@clisp.org>
24649
24650         Avoid line length limitation from HP NonStop system header files.
24651         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24652         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24653         * lib/ctype.in.h: Likewise.
24654         * lib/dirent.in.h: Likewise.
24655         * lib/errno.in.h: Likewise.
24656         * lib/fcntl.in.h: Likewise.
24657         * lib/float.in.h: Likewise.
24658         * lib/getopt.in.h: Likewise.
24659         * lib/iconv.in.h: Likewise.
24660         * lib/inttypes.in.h: Likewise.
24661         * lib/langinfo.in.h: Likewise.
24662         * lib/locale.in.h: Likewise.
24663         * lib/math.in.h: Likewise.
24664         * lib/netdb.in.h: Likewise.
24665         * lib/netinet_in.in.h: Likewise.
24666         * lib/poll.in.h: Likewise.
24667         * lib/pthread.in.h: Likewise.
24668         * lib/pty.in.h: Likewise.
24669         * lib/sched.in.h: Likewise.
24670         * lib/se-selinux.in.h: Likewise.
24671         * lib/search.in.h: Likewise.
24672         * lib/signal.in.h: Likewise.
24673         * lib/spawn.in.h: Likewise.
24674         * lib/stdarg.in.h: Likewise.
24675         * lib/stddef.in.h: Likewise.
24676         * lib/stdint.in.h: Likewise.
24677         * lib/stdio.in.h: Likewise.
24678         * lib/stdlib.in.h: Likewise.
24679         * lib/string.in.h: Likewise.
24680         * lib/strings.in.h: Likewise.
24681         * lib/sys_file.in.h: Likewise.
24682         * lib/sys_ioctl.in.h: Likewise.
24683         * lib/sys_select.in.h: Likewise.
24684         * lib/sys_socket.in.h: Likewise.
24685         * lib/sys_stat.in.h: Likewise.
24686         * lib/sys_time.in.h: Likewise.
24687         * lib/sys_times.in.h: Likewise.
24688         * lib/sys_utsname.in.h: Likewise.
24689         * lib/sys_wait.in.h: Likewise.
24690         * lib/sysexits.in.h: Likewise.
24691         * lib/termios.in.h: Likewise.
24692         * lib/time.in.h: Likewise.
24693         * lib/unistd.in.h: Likewise.
24694         * lib/wchar.in.h: Likewise.
24695         * lib/wctype.in.h: Likewise.
24696         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24697         * modules/ctype (Makefile.am): Likewise.
24698         * modules/dirent (Makefile.am): Likewise.
24699         * modules/errno (Makefile.am): Likewise.
24700         * modules/fcntl-h (Makefile.am): Likewise.
24701         * modules/float (Makefile.am): Likewise.
24702         * modules/getopt-posix (Makefile.am): Likewise.
24703         * modules/iconv-h (Makefile.am): Likewise.
24704         * modules/inttypes (Makefile.am): Likewise.
24705         * modules/langinfo (Makefile.am): Likewise.
24706         * modules/locale (Makefile.am): Likewise.
24707         * modules/math (Makefile.am): Likewise.
24708         * modules/netdb (Makefile.am): Likewise.
24709         * modules/netinet_in (Makefile.am): Likewise.
24710         * modules/poll-h (Makefile.am): Likewise.
24711         * modules/pthread (Makefile.am): Likewise.
24712         * modules/pty (Makefile.am): Likewise.
24713         * modules/sched (Makefile.am): Likewise.
24714         * modules/search (Makefile.am): Likewise.
24715         * modules/selinux-h (Makefile.am): Likewise.
24716         * modules/signal (Makefile.am): Likewise.
24717         * modules/spawn (Makefile.am): Likewise.
24718         * modules/stdarg (Makefile.am): Likewise.
24719         * modules/stddef (Makefile.am): Likewise.
24720         * modules/stdint (Makefile.am): Likewise.
24721         * modules/stdio (Makefile.am): Likewise.
24722         * modules/stdlib (Makefile.am): Likewise.
24723         * modules/string (Makefile.am): Likewise.
24724         * modules/strings (Makefile.am): Likewise.
24725         * modules/sys_file (Makefile.am): Likewise.
24726         * modules/sys_ioctl (Makefile.am): Likewise.
24727         * modules/sys_select (Makefile.am): Likewise.
24728         * modules/sys_socket (Makefile.am): Likewise.
24729         * modules/sys_stat (Makefile.am): Likewise.
24730         * modules/sys_time (Makefile.am): Likewise.
24731         * modules/sys_times (Makefile.am): Likewise.
24732         * modules/sys_utsname (Makefile.am): Likewise.
24733         * modules/sys_wait (Makefile.am): Likewise.
24734         * modules/sysexits (Makefile.am): Likewise.
24735         * modules/termios (Makefile.am): Likewise.
24736         * modules/time (Makefile.am): Likewise.
24737         * modules/unistd (Makefile.am): Likewise.
24738         * modules/wchar (Makefile.am): Likewise.
24739         * modules/wctype (Makefile.am): Likewise.
24740
24741 2010-10-04  Bruno Haible  <bruno@clisp.org>
24742
24743         read-file tests: Avoid a test failure on NonStop Kernel.
24744         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24745         a regular file.
24746         Reported by Joachim Schmitz <schmitz@hp.com>.
24747
24748 2010-10-03  Bruno Haible  <bruno@clisp.org>
24749
24750         gnulib-tool: Fixes for --create-testdir with --libtool.
24751         * gnulib-tool (func_get_automake_snippet): Don't augment
24752         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24753         an executable.
24754         (func_create_testdir): Handle module 'alloca' like func_import.
24755         Reported by Bruce Korb <bruce.korb@gmail.com>.
24756
24757 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24758
24759         Avoid some lines longer than 80 characters.
24760         * lib/stdint.in.h: Break long comment lines.
24761         * lib/math.in.h: Likewise.
24762         (_GL_NUM_UINT_WORDS): New macro, for readability.
24763         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24764         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24765         * lib/stdlib.in.h: Likewise.
24766         * lib/spawn.in.h: Likewise.
24767         * lib/sys_socket.in.h: Update an URL.
24768         * lib/sys_stat.in.h: Break long line.
24769
24770 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24771
24772         Improve pmccabe2html.
24773         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24774         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24775         when the sources change. Remove the line in the HTML about "Used
24776         ranges" (which implied that there might be other unused ranges),
24777         rename "Resume" to "Summary" (easier to understand for more users).
24778         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24779         styles, and some unnecessary blank lines.
24780
24781 2010-10-03  Bruno Haible  <bruno@clisp.org>
24782             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24783
24784         acl: Add support for ACLs on NonStop Kernel.
24785         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24786         Check whether the function aclsort() exists.
24787         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24788         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24789         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24790         (acl_nontrivial [HAVE_ACLSORT]: New function.
24791         (file_has_acl): Implement for NonStop Kernel.
24792         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24793         (qset_acl): Implement for NonStop Kernel.
24794         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24795         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24796         (main): Implement for NonStop Kernel.
24797         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24798         Kernel. Handle this flavor.
24799         * tests/test-set-mode-acl.sh: Likewise.
24800         * tests/test-copy-acl.sh: Likewise.
24801         * tests/test-copy-file.sh: Likewise.
24802
24803 2010-10-03  Bruno Haible  <bruno@clisp.org>
24804
24805         Info about ACLs on NonStop Kernel.
24806         * doc/acl-resources.txt: Add info about NonStop Kernel.
24807         References by Joachim Schmitz <schmitz@hp.com>.
24808
24809 2010-10-02  Bruno Haible  <bruno@clisp.org>
24810
24811         Define missing EDQUOT on NonStop Kernel.
24812         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24813         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24814         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24815         missing.
24816         * doc/posix-headers/errno.texi: Mention the NSK bug.
24817         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24818         Reported by Joachim Schmitz <schmitz@hp.com>.
24819
24820 2010-10-02  Bruno Haible  <bruno@clisp.org>
24821
24822         Update doc for POSIX:2008.
24823         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24824         Update URL of POSIX specification.
24825
24826 2010-10-02  Bruno Haible  <bruno@clisp.org>
24827
24828         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24829         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24830         from gnulib, not from Automake.
24831
24832 2010-10-02  Bruno Haible  <bruno@clisp.org>
24833
24834         New module 'system-posix'.
24835         * modules/system-posix: New file.
24836         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24837         module is present.
24838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24839         GNULIB_SYSTEM_POSIX.
24840         * modules/stdlib (Depends-on): Remove sys_wait.
24841         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24842         * doc/posix-functions/system.texi: Mention the new module.
24843         * doc/posix-headers/stdlib.texi: Likewise.
24844         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24845         define test_sys_wait_macros to a no-op.
24846         Reported by Sam Steingold <sds@gnu.org>.
24847
24848 2010-09-30  Bruno Haible  <bruno@clisp.org>
24849
24850         More renaming from 'getdate' to 'get_date'.
24851         * doc/get_date.texi: Renamed from doc/getdate.texi.
24852         * modules/get_date (Files): Update.
24853         * MODULES.html.sh (Date and time <time.h>): Update.
24854         * DEPENDENCIES: Update.
24855         * gnulib-tool: Update comment.
24856         * m4/bison.m4 (gl_BISON): Likewise.
24857         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24858
24859 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24860
24861         bootstrap: support ACLOCAL_FLAGS during aclocal
24862         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24863         can add additional -I dir for third-party .m4 files.
24864
24865 2010-09-30  Eric Blake  <eblake@redhat.com>
24866
24867         bootstrap: use glibtoolize on MacOS
24868         * build-aux/bootstrap (check_versions): Convert libtool into
24869         libtoolize.
24870         (tool search): Move libtool check earlier, and look for
24871         glibtoolize for MacOS.
24872         (gnulib_tool_options): Auto-add --libtool when appropriate.
24873         Reported by Justin Clift.
24874
24875         poll: fix typo that broke test on MacOS
24876         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24877         Reported by Justin Clift.
24878
24879         getdate: rename to get_date
24880         Note: getdate.h is not renamed, to minimize client impact.
24881         * modules/getdate: Mark obsolete.  Move old contents...
24882         * modules/get_date: ...to new module name.
24883         * modules/getdate-tests: Move...
24884         * modules/get_date-tests: ...here.
24885         * m4/getdate.m4: Move...
24886         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24887         * lib/getdate.y: Move...
24888         * lib/get_date.y: ...here.
24889         * tests/test-getdate.c: Move...
24890         * tests/test-get_date.c: ...here.
24891         * doc/posix-functions/getdate.texi (getdate): Update name.
24892         * NEWS: Mention the change.
24893
24894 2010-09-29  Bruno Haible  <bruno@clisp.org>
24895
24896         Separate the module 'waitpid' from the module 'sys_wait'.
24897         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24898         present.
24899         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24900         gl_MODULE_INDICATOR_FOR_TESTS.
24901         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24902         * modules/sys_wait (Depends-on): Remove waitpid.
24903         (Makefile.am): Substitute GNULIB_WAITPID.
24904         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24905         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24906         signature only if the 'waitpid' module is present.
24907         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24908         * NEWS: Mention the change.
24909         * modules/grantpt (Depends-on): Add waitpid.
24910         * modules/wait-process (Depends-on): Likewise.
24911
24912 2010-09-29  Bruno Haible  <bruno@clisp.org>
24913
24914         More tests for module 'sys_wait'.
24915         * modules/sys_wait-c++-tests: New file.
24916         * tests/test-sys_wait-c++.cc: New file.
24917         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24918         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24919
24920 2010-09-29  Bruno Haible  <bruno@clisp.org>
24921
24922         New module 'waitpid'.
24923         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24924         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24925         Don't include <process.h>.
24926         (waitpid): Declare only, using modern idiom.
24927         * m4/waitpid.m4: New file.
24928         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24929         * modules/waitpid: New file.
24930         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24931         (Makefile.am): Update.
24932         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24933
24934 2010-09-28  Bruno Haible  <bruno@clisp.org>
24935
24936         poll: Assume ANSI C.
24937         * lib/poll.c (poll): Use an ANSI C declaration.
24938
24939 2010-09-28  Bruno Haible  <bruno@clisp.org>
24940
24941         poll-h: Create poll.h on all platforms.
24942         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24943         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24944         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24945         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24946         (gl_REPLACE_POLL_H): Don't set POLL_H.
24947         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24948         * modules/poll-h (Depends-on): Add include_next.
24949         (Makefile.am): Create poll.h unconditionally. Substitute also
24950         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24951
24952 2010-09-28  Bruno Haible  <bruno@clisp.org>
24953
24954         Tests for module 'poll-h'.
24955         * modules/poll-h-c++-tests: New file.
24956         * tests/test-poll-h-c++.cc: New file.
24957
24958         Tests for module 'poll-h'.
24959         * modules/poll-h-tests: New file.
24960         * tests/test-poll-h.c: New file.
24961
24962 2010-09-28  Bruno Haible  <bruno@clisp.org>
24963
24964         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24965         * modules/poll-h (Depends-on): Add 'extensions'.
24966
24967 2010-09-28  Bruno Haible  <bruno@clisp.org>
24968
24969         New module 'poll-h'.
24970         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24971         (poll): Use modern idiom.
24972         * modules/poll-h: New file.
24973         * modules/poll (Files): Remove lib/poll.in.h.
24974         (Depends-on): Add poll-h.
24975         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24976         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24977         * m4/poll_h.m4: New file.
24978         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24979         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24980         and invoke gl_REPLACE_POLL_H.
24981         * lib/poll.c: Use common idiom.
24982         * tests/test-poll.c: Likewise.
24983         * doc/posix-headers/poll.texi: Mention the poll-h module.
24984         Suggested by Eric Blake.
24985
24986 2010-09-26  Bruno Haible  <bruno@clisp.org>
24987
24988         sys_wait: Implement WSTOPSIG.
24989         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24990         Reported by Simon Josefsson.
24991
24992 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24993
24994         stdlib, sys_wait: Avoid compilation error on mingw.
24995         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24996
24997 2010-09-26  Bruno Haible  <bruno@clisp.org>
24998
24999         stdlib tests: Avoid code duplication.
25000         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25001         * modules/sys_wait-tests (Files): Likewise.
25002         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25003         * tests/test-stdlib.c: Include test-sys_wait.h.
25004         (main): Invoke test_sys_wait_macros.
25005         * tests/test-sys_wait.c: Include test-sys_wait.h.
25006         (main): Invoke test_sys_wait_macros.
25007
25008 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25009
25010         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25011         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25012         sure Windows sockets are working before calling getaddrinfo.
25013         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25014         * doc/gnulib.texi (Windows sockets): Fix typo.
25015
25016 2010-09-25  Bruno Haible  <bruno@clisp.org>
25017
25018         Tests for module 'regex-quote'.
25019         * modules/regex-quote-tests: New file.
25020         * tests/test-regex-quote.c: New file.
25021
25022         New module 'regex-quote'.
25023         * lib/regex-quote.h: New file.
25024         * lib/regex-quote.c: New file.
25025         * modules/regex-quote: New file.
25026         Suggested by Reuben Thomas <rrt@sc3d.org>.
25027
25028 2010-09-24  Bruno Haible  <bruno@clisp.org>
25029
25030         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25031         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25032
25033 2010-09-23  Bruno Haible  <bruno@clisp.org>
25034
25035         setenv: Relax license.
25036         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25037         Blake.
25038         Requested by Eric Blake.
25039
25040 2010-09-22  Bruno Haible  <bruno@clisp.org>
25041
25042         termios: Relax license.
25043         * modules/termios (License): Change to LGPLv2+.
25044         Requested by Eric Blake.
25045
25046 2010-09-22  Bruno Haible  <bruno@clisp.org>
25047
25048         threadlib: Allow the package to change the default to 'no'.
25049         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25050         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25051         Reported by Paul Eggert.
25052
25053 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25054             Bruno Haible  <bruno@clisp.org>
25055
25056         Fix endless loop in mbmemcasecoll.
25057         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25058         byte.
25059         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25060
25061 2010-09-22  Bruno Haible  <bruno@clisp.org>
25062
25063         Tests for module 'memcoll'.
25064         * modules/memcoll-tests: New file.
25065         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25066
25067         memcoll, xmemcoll: Clarify size vs. length.
25068         * modules/memcoll.c (memcoll0): Clarify specification.
25069         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25070         passed to collate_error.
25071
25072 2010-09-22  Bruno Haible  <bruno@clisp.org>
25073
25074         Tests for module 'memcasecmp'.
25075         * modules/memcasecmp-tests: New file.
25076         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25077
25078 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25079
25080         * lib/pthread.in.h: Add split double-inclusion guard, and include
25081         system <pthread.h> if there is one.  Use @@-style as in other
25082         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25083         pthread.h doesn't.
25084         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25085         (pthread_mutexattr_settype, pthread_mutex_trylock):
25086         New static inline functions, if there's no system <pthread.h>.
25087         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25088         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25089         Approximate with mutexes if the system lacks spinlocks, as in
25090         MacOS.
25091         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25092         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25093         @@-style.  Check for spinlocks separately.
25094         (gl_PTHREAD_DEFAULTS): New macro.
25095         * modules/pthread: Redo to use a more typical style for in.h files.
25096
25097 2010-09-21  Eric Blake  <eblake@redhat.com>
25098
25099         net_if: enhance tests
25100         * tests/test-net_if.c (main): Move signature checks earlier.
25101         Print failures to stderr.
25102         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25103         Document the bug that we do not yet fix.
25104
25105 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25106
25107         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25108         about gnulib, not GSS.
25109
25110 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25111
25112         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25113         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25114         for Emacs.
25115         * build-aux/pmccabe2html: Make Makefile.am example code more
25116         cut-and-paste friendly.
25117
25118 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25119
25120         * tests/test-net_if.c: New file.
25121         * modules/net_if-tests: New file.
25122
25123 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25124
25125         pthread: add pthread_spin_destroy
25126         * lib/pthread.in.h (pthread_spin_destroy): New function.
25127
25128 2010-09-19  Bruno Haible  <bruno@clisp.org>
25129
25130         gnulib-tool: Fix --help output.
25131         * gnulib-tool (func_usage): Fix help message.
25132         Reported by Reuben Thomas <rrt@sc3d.org>.
25133
25134 2010-09-18  Jim Meyering  <meyering@redhat.com>
25135
25136         maint.mk: avoid unexpanded \n in two diagnostics
25137         * top/maint.mk (sc_prohibit_always_true_header_tests):
25138         Don't use a literal \n in a halt=... assignment.  It would not be
25139         expanded, and the two \n bytes would appear in the diagnostic output
25140         rather than the desired newline.  Use halt=$$(printf ... instead.
25141         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25142
25143 2010-09-18  Bruno Haible  <bruno@clisp.org>
25144
25145         netinet_in: Doc tweak.
25146         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25147         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25148
25149 2010-09-18  Jim Meyering  <meyering@redhat.com>
25150
25151         init.sh: correct an outdated comment
25152         * tests/init.sh (create_exe_shims_):  s/function/alias/
25153
25154         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25155         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25156         a file named "*.exe" is removed between the glob expansion and the
25157         processing of that oddly named file.
25158
25159 2010-09-17  Eric Blake  <eblake@redhat.com>
25160
25161         mirbsd: add some more support
25162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25163         in BSD family.
25164         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25165         devices as OpenBSD.
25166         * m4/host-os.m4 (mirbsd): Add MirBSD.
25167
25168         tests: fix unportable assumption on sys/wait.h
25169         * tests/test-sys_wait.c (main): Relax test.
25170         * tests/test-stdlib.c (main): Likewise.
25171
25172         init.sh: accomodate directory with no .exes
25173         * tests/init.sh: Accomodate directory containing only scripts.
25174
25175         tests: avoid compiler warning
25176         * tests/test-stdlib.c (main): Use the variable.
25177
25178         fdutimens, fdutimensat: update signature, again
25179         * lib/utimens.h (gl_futimens): Delete, and move signature...
25180         (fdutimens): ...here.
25181         (fdutimensat): Rearrange signature.
25182         (lutimensat): Rename variable for clarity.
25183         * lib/fdutimensat.c (fdutimensat): Update signature.
25184         * lib/utimens.c (fdutimens): Likewise.
25185         (gl_futimens): Delete.
25186         (utimens, lutimens): Update callers.
25187         * lib/futimens.c (futimens): Likewise.
25188         * tests/test-fdutimensat.c: Likewise.
25189         * tests/test-utimens.c: Likewise.
25190         * tests/test-futimens.h: Update comment.
25191         * NEWS: Mention this.
25192         Suggested by Paul Eggert.
25193
25194 2010-09-17  Bruno Haible  <bruno@clisp.org>
25195
25196         Take over the maintenance of some older macros from Autoconf.
25197         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25198         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25199         GNU Autoconf.
25200         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25201         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25202
25203 2010-09-17  Eric Blake  <eblake@redhat.com>
25204
25205         fdutimensat: drop atflag validation
25206         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25207         with valid fd, to close a race scenario where futimens is
25208         unsupported and FILE was replaced by a symlink.
25209         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25210         accordingly.
25211         Suggested by Paul Eggert.
25212
25213 2010-09-16  Bruno Haible  <bruno@clisp.org>
25214
25215         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25216         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25217
25218 2010-09-16  Bruno Haible  <bruno@clisp.org>
25219
25220         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25221         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25222         login_tty exists.
25223         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25224
25225 2010-09-16  Bruno Haible  <bruno@clisp.org>
25226
25227         login_tty: Make the replacement code work on BSD systems.
25228         * lib/login_tty.c: Include <sys/ioctl.h>.
25229         (login_tty): Use ioctl TIOCSCTTY when available.
25230         * modules/login_tty (Depends-on): Add sys_ioctl.
25231         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25232
25233 2010-09-16  Bruno Haible  <bruno@clisp.org>
25234
25235         login_tty: Stricter unit test.
25236         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25237         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25238         and tcgetsid() after login_tty.
25239         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25240
25241 2010-09-16  Bruno Haible  <bruno@clisp.org>
25242
25243         New module 'tcgetsid'.
25244         * lib/tcgetsid.c: New file.
25245         * m4/tcgetsid.m4: New file.
25246         * modules/tcgetsid: New file.
25247         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25248         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25249         GNULIB_TCGETSID, HAVE_TCGETSID.
25250         * lib/termios.in.h: Include <sys/types.h>.
25251         (tcgetsid): New declaration.
25252         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25253         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25254         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25255         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25256
25257 2010-09-16  Bruno Haible  <bruno@clisp.org>
25258
25259         Tests for module 'termios'.
25260         * modules/termios-c++-tests: New file.
25261         * modules/termios-tests: New file.
25262         * tests/test-termios-c++.cc: New file.
25263         * tests/test-termios.c: New file.
25264
25265         New module 'termios'.
25266         * modules/termios: New file.
25267         * lib/termios.in.h: New file.
25268         * m4/termios_h.m4: New file.
25269         * doc/posix-headers/termios.texi: Mention the new module.
25270
25271 2010-09-16  Eric Blake  <eblake@redhat.com>
25272
25273         fdutimensat: add an atflag parameter
25274         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25275         * lib/utimens.h (fdutimensat): Update prototype.
25276         * tests/test-fdutimensat.c: Adjust test to match.
25277         * NEWS: Document the change.
25278         Suggested by Paul Eggert.
25279
25280 2010-09-16  Bruno Haible  <bruno@clisp.org>
25281
25282         Fix typos in comments.
25283         * lib/striconveh.h: Fix typo in comment.
25284         * lib/login_tty.c (login_tty): Likewise.
25285
25286 2010-09-15  Bruno Haible  <bruno@clisp.org>
25287
25288         stdlib: clarify MirBSD WEXITSTATUS bug
25289         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25290         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25291
25292 2010-09-15  Eric Blake  <eblake@redhat.com>
25293
25294         stdlib: work around MirBSD WEXITSTATUS bug
25295         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25296         * modules/stdlib (Depends-on): Add sys_wait.
25297         * tests/test-sys_wait.c (main): Enhance test.
25298         * tests/test-stdlib.c (main): Likewise.
25299         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25300
25301         docs: mention MacOS issue with WEXITSTATUS(constant)
25302         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25303         issue.
25304         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25305
25306         strnlen: add tests
25307         * modules/strnlen-tests: New file.
25308         * tests/test-strnlen.c: Likewise.
25309
25310 2010-09-14  Bruno Haible  <bruno@clisp.org>
25311
25312         unistr/base: Avoid link errors when module 'libunistring' is also used.
25313         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25314         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25315         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25316         Declare also when HAVE_LIBUNISTRING is set.
25317         Reported by Pádraig Brady <P@draigbrady.com>.
25318
25319 2010-09-14  Eric Blake  <eblake@redhat.com>
25320
25321         test-rawmemchr: make more robust
25322         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25323         (Depends-on, configure.ac): Add needed prerequisites to use it.
25324         * modules/memchr-tests (Files, Depends-on, configure.ac):
25325         Likewise, to avoid implicit reliance on memchr module prereqs.
25326         * tests/test-memchr.c (main): Ensure proper masking.
25327         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25328         reads.
25329
25330         memchr: detect glibc Alpha bug
25331         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25332         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25333         Alpha.
25334         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25335         * tests/test-memchr.c (main): Enhance test.
25336         Reported by Nelson H. F. Beebe.
25337
25338 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25339
25340         fts, getcwd, glob: audit for dirfd returning -1
25341         * lib/fts.c (opendir): Remove #define; no longer used.
25342         (opendirat): New arg PDIR_FD.  All callers changed.
25343         (fts_build, _opendir2): Use new opendirat to avoid the need for
25344         dirfd, or for checking whether dirfd returns a negative value.
25345         Don't use opendir; always use openat followed by fdopendir.
25346         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25347         it.
25348         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25349         returns -1 here.
25350         * modules/fts (Depends-on): Remove dirfd.
25351         * modules/getcwd (Depends-on): Likewise.
25352
25353 2010-09-13  Eric Blake  <eblake@redhat.com>
25354
25355         float: fix broken MirBSD header
25356         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25357         * doc/posix-headers/float.texi (float.h): Document it.
25358
25359 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25360
25361         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25362         * lib/fts.c (opendirat): New arg extra_flags.
25363         (__opendir2): Use it to avoid following symlinks when opening
25364         a directory, if symlinks are not supposed to be followed.  See
25365         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25366
25367         fdopendir: preserve argument fd before returning
25368         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25369         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25370         (fdopendir): Use them, arranging for FD to be open to the same
25371         directory that it was when it started.  (It might be temporarily
25372         closed while fdopendir is running, so this not thread- or
25373         signal-safe.)  Be careful to do the right thing even when file
25374         descriptors are scarce and dup fails with errno == EMFILE.  See
25375         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25376
25377 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25378
25379         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25380         * NEWS: Document change.
25381         * m4/regex.m4: Disable test for regoff_t size.
25382
25383 2010-09-13  Jim Meyering  <meyering@redhat.com>
25384
25385         fts: don't operate on an invalid file descriptor after failed dup
25386         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25387         negative file descriptor.
25388
25389 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25390
25391         savedir: add streamsavedir, deprecate fdsavedir
25392         * NEWS: Mention deprecation of fdsavedir.
25393         * lib/savedir.c (streamsavedir): New extern function, whose name
25394         ends in "savedir" to be consistent with the others.  This differs
25395         from savedirstream in that it doesn't close its argument.  The
25396         next version of GNU tar will use this instead of fdsavedir, to
25397         avoid some race conditions and conserve file descriptors.
25398         (savedirstream): Reimplement as a wrapper around streamsavedir.
25399         (fdsavedir): Add a comment deprecating this function.  As far as
25400         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25401         * lib/savedir.h (streamsavedir): New decl.
25402         (fdsavedir): Add a comment deprecating this.
25403
25404 2010-09-10  Bruno Haible  <bruno@clisp.org>
25405
25406         langinfo: Fix last commit.
25407         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25408         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25410
25411 2010-09-10  Bruno Haible  <bruno@clisp.org>
25412
25413         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25414         * lib/progreloc.c (O_EXEC): Define fallback.
25415
25416 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25417
25418         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25419         * NEWS: Document recent changes to fcntl-h.
25420         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25421         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25422         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25423         Similarly for O_SEARCH; this last was already true, but not documented.
25424         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25425         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25426         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25427         Likewise.
25428         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25429         is zero, not whether it is defined.
25430         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25431         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25432         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25433
25434 2010-09-10  Bruno Haible  <bruno@clisp.org>
25435
25436         langinfo, nl_langinfo: Fix for IRIX 5.3.
25437         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25438         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25439         HAVE_LANGINFO_YESEXPR.
25440         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25441         HAVE_LANGINFO_YESEXPR.
25442         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25443         HAVE_LANGINFO_T_FMT_AMPM is 0.
25444         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25445         HAVE_LANGINFO_YESEXPR is 0.
25446         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25447         NOEXPR.
25448         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25449         * doc/posix-functions/nl_langinfo.texi: Likewise.
25450         Reported by Eric Blake.
25451
25452 2010-09-10  Bruno Haible  <bruno@clisp.org>
25453
25454         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25455         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25456         on FreeBSD 8.0 and OpenBSD 4.6.
25457         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25458         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25459         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25460         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25461         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25462         ac_includes_default.
25463         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25464
25465 2010-09-09  Eric Blake  <eblake@redhat.com>
25466
25467         strsignal: work around NetBSD bug
25468         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25469         * lib/string.in.h (includes): Likewise.
25470         * doc/posix-functions/strsignal.texi (strsignal): Document the
25471         bug.
25472         Reported by Nelson H. F. Beebe.
25473
25474         gnulib-tool: work with NetBSD /bin/sh
25475         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25476         (func_get_description, func_get_comment, func_get_status)
25477         (func_get_notice, func_get_applicability, func_get_filelist)
25478         (func_get_dependencies, func_get_autoconf_early_snippet)
25479         (func_get_autoconf_snippet, func_get_automake_snippet)
25480         (func_get_include_directive, func_get_link_directive)
25481         (func_get_license, func_get_maintainer, func_import): Avoid
25482         shell syntax errors from parsing syntax extensions.
25483
25484 2010-09-09  Bruno Haible  <bruno@clisp.org>
25485
25486         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25487         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25488         a reliable way to determine whether the 'alias' command works.
25489
25490 2010-09-08  Jim Meyering  <meyering@redhat.com>
25491
25492         init.sh: penalize a set-x-impaired shell; don't disqualify it
25493         * tests/init.sh: Too many shells corrupt application stderr when
25494         you set -x, so we can't afford to disqualify them, since at least
25495         on Irix-6.5, that would disqualify all bourne shells.
25496         Instead, use a two-pass approach.
25497         On the first pass, try to find a shell that meets the stricter
25498         condition that set -x does not corrupt stderr.
25499         If no shell meets the stricter condition, retest each candidate
25500         shell, but without that extra condition.  Finally, when
25501         VERBOSE=yes is requested and set -x might cause trouble, simply
25502         issue a warning and refrain from enabling debug output.
25503
25504 2010-09-08  Eric Blake  <eblake@redhat.com>
25505
25506         unsetenv: fix OpenBSD bug
25507         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25508         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25509         documentation.
25510         Reported by Jim Meyering.
25511
25512         strtod: work around IRIX 6.5 bug
25513         * lib/strtod.c (strtod): Reparse number on shorter string if
25514         exponent parse was invalid.
25515         * tests/test-strtod.c (main): Add check for "0x1p 2".
25516         Reported by Tom G. Christensen.
25517
25518         getopt: optimize previous patch
25519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25520         empty variable.  Speed up awk script.
25521         Reported by Paolo Bonzini.
25522
25523 2010-09-08  Jim Meyering  <meyering@redhat.com>
25524
25525         test.sh: disqualify shells for which set -x corrupts stderr
25526         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25527         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25528         appear in stderr output.  For example, this command:
25529             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25530         prints "P=1" on those two systems:
25531
25532 2010-09-08  Bruno Haible  <bruno@clisp.org>
25533
25534         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25535         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25536         commands, because some shells ignore redirections when there is an
25537         error in the command lookup.
25538         Reported by Eric Blake.
25539
25540 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25541
25542         * lib/regex.h: Fix a mention of `regex_compile' (should be
25543         `re_compile_pattern').
25544         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25545         (re_set_registers): Correct name of parameter in comment.
25546
25547         * doc/regex.texi: Add documentation for missing syntax flags.
25548         Remove commented-out documentation of defunct syntax option
25549         RE_NO_EMPTY_ALTS.
25550         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25551         Add documentation of re_set_registers.
25552         Document trick to re-use a pattern buffer by setting fastmap manually.
25553         Update documentation of struct re_pattern_buffer per public members.
25554         Uncomment documentation of equivalence class operators and
25555         collating symbol operators, since they are now implemented,
25556         Explain leftmost-longest matching in relation to alternatives.
25557         Tidy documentation of substring matching.
25558         Remove POSIX documentation, which is done better in
25559         glibc, and refer the reader there. Keep BSD API documentation, as
25560         that is not readily available elsewhere.
25561
25562 2010-09-07  Eric Blake  <eblake@redhat.com>
25563
25564         getopt: handle POSIXLY_CORRECT set but not exported
25565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25566         export state of POSIXLY_CORRECT, due to bash set -o posix.
25567         Reported by Dustin J. Mitchell.
25568
25569 2010-09-05  Bruno Haible  <bruno@clisp.org>
25570
25571         gnulib-tool: Highlight the changed options.
25572         * gnulib-tool (func_usage): Display the --import, --add-import,
25573         --remove-import explanations in bold font.
25574
25575 2010-09-06  Karl Berry  <karl@gnu.org>
25576
25577         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25578
25579 2010-09-05  Bruno Haible  <bruno@clisp.org>
25580
25581         uniwidth/width: Update comment.
25582         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25583         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25584
25585 2010-09-05  Bruno Haible  <bruno@clisp.org>
25586
25587         isinf, isnan: Relax license.
25588         * modules/isinf (License): Change from GPL to LGPL, with consent from
25589         Ben Pfaff.
25590         * modules/isnan (License): Likewise.
25591         Requested by Ludovic Courtès.
25592
25593 2010-09-04  Bruno Haible  <bruno@clisp.org>
25594
25595         gnulib-tool: Help migration from --import to --add-import or --update.
25596         * gnulib-tool: Emit a verbose error message when --import is used
25597         without any module name.
25598
25599 2010-09-04  Bruno Haible  <bruno@clisp.org>
25600
25601         Update doc about gnulib-tool.
25602         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25603         'gnulib-tool --update' in more detail.
25604         Reported by Eric Blake.
25605
25606 2010-09-04  Bruno Haible  <bruno@clisp.org>
25607
25608         gnulib-tool: Change --import. New options --add/remove-import.
25609         * gnulib-tool: New options --add-import, --remove-import.
25610         (func_usage): Document them.
25611         (have_associative): Define always.
25612         (func_import): In import mode, don't merge the specified settings with
25613         the cached settings. Implement remove-import mode.
25614         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25615         Explain when to use them versus --import.
25616         (Simple update): Use --add-import instead of --import.
25617         * NEWS: Mention the change.
25618
25619 2010-09-04  Bruno Haible  <bruno@clisp.org>
25620
25621         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25622         separate gnulib.mk.
25623
25624 2010-09-04  Bruno Haible  <bruno@clisp.org>
25625
25626         gnulib-tool: Don't talk about CVS any more.
25627         * gnulib-tool (func_usage, func_import): Write "version control"
25628         instead of CVS.
25629
25630 2010-09-04  Jim Meyering  <meyering@redhat.com>
25631
25632         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25633         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25634         false positives (whose names may be ill-chosen) when searching
25635         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25636         would cause a false-positive.
25637
25638         avoid coreutils "make distcheck" failure
25639         Coreutils tests with an absolute build directory name that contains
25640         a space.  Not quoting this directory name caused a failure.
25641         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25642         * tests/test-vc-list-files-cvs.sh: Likewise.
25643
25644 2010-09-04  Bruno Haible  <bruno@clisp.org>
25645
25646         gnulib-tool: Avoid error when run in a package without Makefile.am.
25647         * gnulib-tool: When collecting the m4dirs in a package that does not
25648         have a Makefile.am, eliminate those directories that contain no
25649         gnulib-cache.m4. Fix expression that counts these directories.
25650
25651 2010-09-04  Bruno Haible  <bruno@clisp.org>
25652
25653         update-copyright test: Improve output when perl is missing or too old.
25654         * tests/test-update-copyright.sh: Move test of Perl version down after
25655         the test whether Perl exists. Provide an explanation relating Perl's
25656         error message to Automake's SKIP: message.
25657
25658 2010-09-04  Bruno Haible  <bruno@clisp.org>
25659
25660         Don't augment PATH in TESTS_ENVIRONMENT.
25661         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25662         set abs_aux_dir instead of augmenting PATH.
25663         * modules/vc-list-files-tests (Makefile.am): Likewise.
25664         * tests/test-update-copyright.sh: Augment PATH here.
25665         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25666         path_prepend_.
25667         * tests/test-vc-list-files-git.sh: Likewise.
25668
25669 2010-09-04  Jim Meyering  <meyering@redhat.com>
25670
25671         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25672         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25673
25674 2010-09-04  Bruno Haible  <bruno@clisp.org>
25675
25676         strdup: Fix compilation error in C++ mode.
25677         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25678         the macro.
25679
25680 2010-09-04  Bruno Haible  <bruno@clisp.org>
25681
25682         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25683         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25684         macro into a function.
25685         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25686
25687 2010-09-04  Bruno Haible  <bruno@clisp.org>
25688
25689         Set PATH_SEPARATOR the same way autoconf does.
25690         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25691         the value of PATH_SEPARATOR the same way autoconf-generated configure
25692         scripts do.
25693         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25694         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25695
25696 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25697
25698         Set PATH_SEPARATOR the same way autoconf does.
25699         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25700         the same way autoconf-generated configure scripts do.
25701         * posix-modules: Likewise.
25702
25703 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25704
25705         hash: fix safe_hasher const typo
25706         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25707         const; otherwise, there is a type error later.
25708
25709 2010-09-02  Jim Meyering  <meyering@redhat.com>
25710
25711         test-update-copyright.sh: require perl 5.8.0
25712         * tests/test-update-copyright.sh: Require 5.8.0,
25713         which Tom G. Christensen has confirmed is adequate,
25714         while 5.6.1 is not.
25715
25716 2010-09-02  Eric Blake  <eblake@redhat.com>
25717
25718         tests: init.sh improvements for re-exec'ing with zsh
25719         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25720         -vx through shell re-exec.
25721         Reported by Tom G. Christensen.
25722
25723         wctype: fix typo in previous commit
25724         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25725         Reported by Ludovic Courtès.
25726
25727 2010-09-02  Jim Meyering  <meyering@redhat.com>
25728
25729         test-update-copyright.sh: skip test if Perl is too old
25730         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25731         Reported by Tom G. Christensen.
25732
25733 2010-09-02  Bruno Haible  <bruno@clisp.org>
25734
25735         wctype: Avoid compilation error on IRIX 6.5.30.
25736         * lib/wctype.in.h (iswblank): Declare with a replacement if
25737         REPLACE_ISWBLANK is set.
25738         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25739         declared. Set REPLACE_ISWBLANK.
25740         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25741         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25742         * doc/posix-headers/wctype.texi: Likewise.
25743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25744
25745 2010-09-01  Bruno Haible  <bruno@clisp.org>
25746
25747         New module 'socketlib'.
25748         * modules/socketlib: New file.
25749         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25750         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25751         * modules/sockets (Depends-on): Add socketlib.
25752         Suggested by Sam Steingold <sds@gnu.org>.
25753
25754 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25755
25756         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25757
25758         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25759         when one needs search access to a directory but not read access.
25760         On systems where it is available, it works in some cases where
25761         O_RDONLY does not, namely on directories that are searchable but
25762         not readable, and which need only to be searchable.  If O_SEARCH
25763         is not available, fall back to the traditional method of using
25764         O_RDONLY.
25765
25766         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25767         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25768         when opening a directory that needs only to be searchable.
25769         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25770         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25771         * lib/openat-proc.c (openat_proc_name): Likewise.
25772         * lib/openat.c (openat_needs_fchdir): Likewise.
25773         * lib/save-cwd.c (save_cwd): Likewise.
25774         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25775
25776 2010-08-28  Bruno Haible  <bruno@clisp.org>
25777
25778         New module 'host-cpu-c-abi'.
25779         * modules/host-cpu-c-abi: New file.
25780         * m4/host-cpu-c-abi.m4: New file, based on part of
25781         clisp/src/m4/general.m4.
25782         Requested by Sam Steingold <sds@gnu.org>.
25783
25784 2010-08-31  Eric Blake  <eblake@redhat.com>
25785         and Jim Meyering  <meyering@redhat.com>
25786
25787         hash: factor, and guard against misbehaving hasher function
25788         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25789         of table->hasher's return value.  Also protect against a hash value
25790         so large that adding it to table->bucket results in a NULL pointer.
25791         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25792         Use it in place of open-coded check-and-abort.
25793
25794 2010-08-30  Bruno Haible  <bruno@clisp.org>
25795
25796         hash: silence spurious clang warning
25797         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25798         Reported by Eric Blake.
25799
25800 2010-08-30  Eric Blake  <eblake@redhat.com>
25801
25802         strstr, memmem, strcasestr: avoid leaked shell message
25803         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25804         FreeBSD.
25805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25807
25808         tests: silence clang warning
25809         * tests/test-malloca.c (do_allocation): Avoid dead store.
25810
25811 2010-08-29  Bruno Haible  <bruno@clisp.org>
25812
25813         gettext: Fix recent mistake.
25814         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25815
25816 2010-08-29  Bruno Haible  <bruno@clisp.org>
25817
25818         selinux-h: Offer a --without-selinux option.
25819         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25820         --without-selinux was specified, skip all tests and define
25821         HAVE_SELINUX_SELINUX_H to 0.
25822         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25823         set LIB_SELINUX to empty.
25824         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25825         gl_LIBSELINUX. If --without-selinux was specified, replace
25826         selinux/context.h.
25827         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25828
25829 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25830             Bruno Haible  <bruno@clisp.org>
25831
25832         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25833         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25834         of HAVE_REALLOC.
25835         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25836         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25837         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25838         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25839
25840 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25841             Bruno Haible  <bruno@clisp.org>
25842
25843         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25844         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25845         HAVE_CALLOC.
25846         * lib/xmalloc.c: Update accordingly.
25847         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25848         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25849         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25850
25851 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25852             Bruno Haible  <bruno@clisp.org>
25853
25854         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25855         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25856         HAVE_MALLOC.
25857         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25858         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25859         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25860
25861 2010-08-29  Bruno Haible  <bruno@clisp.org>
25862
25863         Update modules list.
25864         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25865         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25866         (String handling <string.h>): Add astrxfrm.
25867         (File system functions): Add readlinkat.
25868
25869 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25870
25871         Tests for module 'realloc-gnu'.
25872         * modules/realloc-gnu-tests: New file.
25873         * tests/test-realloc-gnu.c: New file.
25874
25875         Tests for module 'calloc-gnu'.
25876         * modules/calloc-gnu-tests: New file.
25877         * tests/test-calloc-gnu.c: New file.
25878
25879         Tests for module 'malloc-gnu'.
25880         * modules/malloc-gnu-tests: New file.
25881         * tests/test-malloc-gnu.c: New file.
25882
25883 2010-08-28  Bruno Haible  <bruno@clisp.org>
25884
25885         Rename module 'realloc' -> 'realloc-gnu'.
25886         * modules/realloc-gnu: New file, copied from modules/realloc.
25887         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25888         obsolete.
25889         * modules/mgetgroups (Depends-on): Update.
25890         * doc/posix-functions/realloc.texi: Update.
25891         * NEWS: Mention the change.
25892
25893         Rename module 'calloc' -> 'calloc-gnu'.
25894         * modules/calloc-gnu: New file, copied from modules/calloc.
25895         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25896         obsolete.
25897         * doc/posix-functions/calloc.texi: Update.
25898         * NEWS: Mention the change.
25899
25900         Rename module 'malloc' -> 'malloc-gnu'.
25901         * modules/malloc-gnu: New file, copied from modules/malloc.
25902         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25903         obsolete.
25904         * modules/argp (Depends-on): Update.
25905         * modules/regex (Depends-on): Update.
25906         * doc/posix-functions/malloc.texi: Update.
25907         * NEWS: Mention the change.
25908
25909 2010-08-28  Eric Blake  <eblake@redhat.com>
25910
25911         pread, pwrite: add missing dependency
25912         * modules/pread (Depends-on): Add extensions.
25913         * modules/pwrite (Depends-on): Likewise.
25914
25915 2010-08-28  Bruno Haible  <bruno@clisp.org>
25916
25917         unistr/u*-strchr: Fix tests dependencies.
25918         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25919         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25920         Reported by Ian Beckwith <ianb@erislabs.net>.
25921
25922 2010-08-28  Bruno Haible  <bruno@clisp.org>
25923
25924         read-file: Don't occupy too much unused memory.
25925         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25926
25927 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25928             Eric Blake  <eblake@redhat.com>
25929             Bruno Haible  <bruno@clisp.org>
25930
25931         read-file: Avoid memory reallocations with regular files.
25932         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25933         (fread_file): With regular files, use the remaining length as the
25934         initial buffer size.  Check against overflow.
25935         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25936         sys_stat.
25937
25938 2010-08-28  Bruno Haible  <bruno@clisp.org>
25939
25940         ftello: Relax license.
25941         * modules/ftello (License): Relax to LGPLv2+.
25942         Reported by Eric Blake.
25943
25944 2010-08-28  Bruno Haible  <bruno@clisp.org>
25945
25946         Avoid relocwrapper link errors due to gnulib replacement functions.
25947         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25948         function.
25949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25950
25951 2010-08-28  Bruno Haible  <bruno@clisp.org>
25952
25953         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25954         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25955         defined.
25956         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25957         Suggested by Eric Blake.
25958
25959 2010-08-28  Bruno Haible  <bruno@clisp.org>
25960
25961         sys_socket, netdb: Ensure socklen_t gets defined.
25962         * modules/sys_socket (Depends-on): Add socklen.
25963         * modules/netdb (Depends-on): Likewise.
25964         * modules/getaddrinfo (Depends-on): Remove socklen.
25965         * modules/getsockopt (Depends-on): Likewise.
25966         * modules/setsockopt (Depends-on): Likewise.
25967         * tests/test-sys_socket.c: Check that socklen_t is defined.
25968         * tests/test-netdb.c: Likewise.
25969         * m4/socklen.m4: Update comments.
25970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25971
25972 2010-08-27  Eric Blake  <eblake@redhat.com>
25973
25974         login_tty: add missing dependency
25975         * modules/login_tty (Depends-on): Add pty.
25976
25977 2010-08-26  Eric Blake  <eblake@redhat.com>
25978
25979         lib-symbol-versions: fix m4 quoting
25980         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25981         format for AC_LINK_IFELSE.
25982
25983         glob: fix compile test
25984         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25985
25986         btowc: fix missing file
25987         * modules/btowc (Files): Also ship locale-fr.m4.
25988
25989         lseek: fix link test
25990         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25991         AC_LINK_IFELSE.
25992
25993         include_next: silence autoconf 2.68 warning
25994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25995         AC_COMPILE_IFELSE as special.
25996         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25997         autoconf < 2.68.
25998
25999         acl: fix compilation test
26000         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26001         AC_COMPILE_IFELSE.
26002
26003 2010-08-26  Bruno Haible  <bruno@clisp.org>
26004
26005         Modernize AC_TRY_RUN invocations.
26006         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26007         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26008         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26009         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26010         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26011         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26014         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26015         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26016         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26017         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26018         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26019         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26020         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26021         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26022         gl_MBRLEN_NUL_RETVAL): Likewise.
26023         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26024         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26025         Likewise.
26026         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26027         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26028         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26029         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26030         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26031         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26032         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26033         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26034         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26035         Likewise.
26036         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26037         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26038         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26039         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26040         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26041         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26042         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26043         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26044         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26046
26047 2010-08-26  Bruno Haible  <bruno@clisp.org>
26048
26049         Modernize AC_TRY_LINK invocations.
26050         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26051         AC_TRY_LINK.
26052         * m4/argp.m4 (gl_ARGP): Likewise.
26053         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26054         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26055         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26056         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26057         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26058         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26059         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26060         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26061         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26062         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26063         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26064         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26065         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26066         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26067         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26068         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26069         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26070         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26071         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26072         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26073         Likewise.
26074         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26075         Likewise.
26076         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26077         Likewise.
26078         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26079         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26080         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26081         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26082         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26083         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26084         * m4/servent.m4 (gl_SERVENT): Likewise.
26085         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26086         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26087         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26088         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26089         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26090         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26091         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26092         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26093         * modules/tsearch-tests (configure.ac): Likewise.
26094
26095 2010-08-26  Bruno Haible  <bruno@clisp.org>
26096
26097         Modernize AC_TRY_COMPILE invocations.
26098         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26099         AC_TRY_COMPILE.
26100         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26101         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26102         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26103         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26104         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26105         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26106         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26107         * m4/lock.m4 (gl_LOCK): Likewise.
26108         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26109         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26110         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26111         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26112         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26113         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26114         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26115         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26116         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26117         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26118         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26119         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26120         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26121         extraneous semicolon.
26122
26123 2010-08-26  Jim Meyering  <meyering@redhat.com>
26124
26125         stat-time: relax license LGPL
26126         * modules/stat-time (License): Change from GPL to LGPL,
26127         with consent from all contributors, for use in libguile.
26128         Requested by Ludovic Courtès.
26129
26130 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26131
26132         poll: return immediately on POLLHUP.
26133         * lib/poll.c (poll): Always set timeout before wait_timeout is
26134         computed.
26135
26136 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26137
26138         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26139         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26140         rmdir ("dir/.//"), unlinkat.
26141
26142 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26143
26144         stdbool: avoid spurious failure with modern xlc
26145         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26146
26147 2010-08-24  Bruno Haible  <bruno@clisp.org>
26148
26149         getloadavg: simplify code
26150         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26151         gl_have_func. Update comments.
26152
26153 2010-08-24  Eric Blake  <eblake@redhat.com>
26154
26155         getloadavg: don't define SVR4 on cygwin
26156         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26157         only define SVR4 when -lkvm is required.
26158         Reported by Yaakov Selkowitz.
26159
26160 2010-08-24  Bruno Haible  <bruno@clisp.org>
26161
26162         priv-set: fix comment
26163         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26164
26165 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26166
26167         priv-set: fix comments
26168         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26169         to match code, as suggested by David Bartley in:
26170         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26171
26172 2010-08-23  Eric Blake  <eblake@redhat.com>
26173
26174         stdbool: avoid rejecting clang
26175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26176         * tests/test-stdbool.c: Enable more tests if using the system
26177         <stdbool.h> instead of the gnulib replacement.
26178         (main): Move xlc bug test to a runtime test for all compilers.
26179         Reported by Anders Kaseorg.
26180
26181         argz: fix shell quoting issue
26182         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26183         Reported by Charles Wilson.
26184
26185 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26186             Erik Faye-Lund <kusmabite@gmail.com>
26187
26188         poll, select: handle ERROR_BROKEN_PIPE.
26189         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26190         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26191         * lib/select.c (win32_compute_revents): Do not mark a pipe
26192         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26193
26194 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26195
26196         fts: allow compilation with C++
26197         * lib/fts_.h: Specify extern "C" linkage with C++.
26198
26199 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26200
26201         Fix gnulib-tool sed script de-commentation for AIX sed.
26202         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26203         sed.
26204
26205 2010-08-17  Eric Blake  <eblake@redhat.com>
26206
26207         test-stddef: test for (some) offsetof bugs
26208         * tests/test-stddef.c: Enhance test to ensure correct type of
26209         offsetof.
26210         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26211         that we are not fixing at this time.
26212
26213 2010-08-15  Bruno Haible  <bruno@clisp.org>
26214
26215         stpncpy: Allow stpncpy to be defined as a macro.
26216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26217         if it's already correctly declared.
26218         * lib/string.in.h (stpncpy): Undefine before redefining.
26219         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26220
26221 2010-08-14  Bruno Haible  <bruno@clisp.org>
26222
26223         Rename module 'memxfrm' to 'amemxfrm'.
26224         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26225         (amemxfrm): Renamed from memxfrm.
26226         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26227         (amemxfrm): Renamed from memxfrm.
26228         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26229         * NEWS: Mention the change.
26230         * MODULES.html.sh (String handling <string.h>): Update.
26231         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26232         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26233         * lib/unicase/u16-casexfrm.c: Likewise.
26234         * lib/unicase/u32-casexfrm.c: Likewise.
26235         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26236         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26237         * lib/uninorm/u16-normxfrm.c: Likewise.
26238         * lib/uninorm/u32-normxfrm.c: Likewise.
26239         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26240         memxfrm.
26241         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26242         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26243         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26244         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26245         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26246         Suggested by Paul Eggert.
26247
26248 2010-08-14  Bruno Haible  <bruno@clisp.org>
26249
26250         Tests for module 'astrxfrm'.
26251         * modules/astrxfrm-tests: New file.
26252         * tests/test-astrxfrm.c: New file.
26253
26254         New module 'astrxfrm'.
26255         * lib/astrxfrm.h: New file.
26256         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26257         * modules/astrxfrm: New file.
26258
26259 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26260
26261         regex: Tweak doc.
26262         * doc/regex.texi (Overview): Don't mention regex.c.
26263         (GNU Regular Expression Compiling): Likewise.
26264         (Match-end-of-line Operator): Mention 'not_eol'.
26265
26266 2010-08-14  Brian Gough  <bjg@gnu.org>
26267             Bruno Haible  <bruno@clisp.org>
26268
26269         git-merge-changelog: add doc relating to use with bzr and hg.
26270         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26271
26272 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26273
26274         pthread: fix pthread.h creation for srcdir != builddir
26275         * modules/pthread (Makefile.am): Fix the rule to work also in a
26276         non-srcdir build.
26277
26278 2010-08-13  Karl Berry  <karl@gnu.org>
26279
26280         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26281         * doc/posix-*/*: force line break before @url of POSIX
26282         specifications.
26283         Suggested by Werner Lemberg.
26284
26285 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         strtod: fix const diagnostic
26288         * lib/strtod.c (strtod): Don't assign const char * to char *,
26289         as this elicits a warning from GCC when warnings are enabled.
26290
26291 2010-08-10  Pádraig Brady <P@draigbrady.com>
26292         and Eric Blake  <eblake@redhat.com>
26293
26294         copy-acl: ignore ENOTSUP on HP-UX
26295         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26296         so that it is available for HP-UX.
26297         * lib/copy-acl.c (qcopy_acl): Use it.
26298         Reported by Patrick M. Callahan.
26299
26300 2010-08-10  Eric Blake  <eblake@redhat.com>
26301
26302         open, chown: relax license
26303         * modules/open (License): Change to LGPLv2+, with consent by all
26304         authors, for use in augeas.
26305         * modules/chown (License): Likewise.
26306         * modules/lchown (Likewise): Likewise.
26307         Requested by Adam Stokes.
26308
26309 2010-08-09  Karl Berry  <karl@gnu.org>
26310
26311         * build-aux/ar-lib: new file, import from Automake.
26312         * config/srclist.txt: autocheck for updates.
26313
26314 2010-08-09  Eric Blake  <eblake@redhat.com>
26315
26316         readlinkat: adjust client modules
26317         * modules/areadlinkat (Depends-on): Use readlinkat, not
26318         symlinkat.
26319         * modules/areadlinkat-with-size (Depends-on): Likewise.
26320
26321         mknod: be more vocal about danger of running tests as root
26322         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26323         root, since that is just asking for problems.
26324         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26325
26326         readlinkat: split into its own module
26327         * modules/symlinkat: Split readlinkat...
26328         * modules/readlinkat: ...into separate module.
26329         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26330         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26331         * lib/symlinkat.c (readlinkat): Move...
26332         * lib/readlinkat.c: ...into new file.
26333         * modules/symlinkat-tests: Split readlinkat test...
26334         * modules/readlinkat-tests: ...into separate module.
26335         * tests/test-symlinkat.c: Split...
26336         * tests/test-readlinkat.c: ...into new file.
26337         * NEWS: Document the split.
26338         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26339         * lib/unistd.in.h (readlinkat): Likewise.
26340         Suggested by Bruno Haible.
26341
26342 2010-08-08  Bruno Haible  <bruno@clisp.org>
26343
26344         memxfrm: Speed up.
26345         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26346         that usually only one call to strxfrm is necessary for each string
26347         part.
26348         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26349
26350 2010-08-07  Karl Berry  <karl@gnu.org>
26351
26352         * doc/posix-headers/limits.texi,
26353         * doc/posix-functions/malloc.texi,
26354         * doc/posix-functions/strsignal.texi: missing @item.
26355         * doc/ld-version-script.texi: spurious leading i.
26356         * doc/regex.texi (Interval Operators): no commas inside @var.
26357
26358 2010-08-01  Bruno Haible  <bruno@clisp.org>
26359
26360         Integrate the regex documentation.
26361         * doc/gnulib.texi: Define 'cn' index.
26362         (Regular expressions): New a chapter that includes regex.texi and
26363         regexprops-generic.texi.
26364         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26365         syntax.
26366
26367         Whitespace cleanup.
26368         * doc/regex.texi: Remove trailing spaces.
26369
26370         Add regex documentation.
26371         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26372         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26373         Written by Kathy A. Hargreaves and Karl Berry.
26374
26375 2010-08-01  Bruno Haible  <bruno@clisp.org>
26376
26377         link: Update documentation.
26378         * doc/posix-functions/link.texi: Update regarding Solaris.
26379
26380 2010-07-31  Bruno Haible  <bruno@clisp.org>
26381
26382         Update modules list.
26383         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26384         (String handling <string.h>): Add memcmp2, memxfrm.
26385         (Container data structures): Add xlist, xsublist, xoset.
26386         (Core language properties): Add alignof, unused-parameter.
26387         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26388         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26389         (Unibyte characters <ctype.h>): New section.
26390         (String handling <string.h>): New section.
26391         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26392         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26393         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26394         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26395         tan, tanh, tanl, y0, y1, yn.
26396         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26397         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26398         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26399         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26400         unlockpt, vdprintf, vdprintf-posix.
26401         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26402         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26403         xconcat-filename.
26404         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26405         getdtablesize, pipe2, pipe2-safer.
26406         (Security): New section.
26407         (Networking functions): Add accept4.
26408         (Signal handling): Add sigpipe.
26409         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26410         mbmemcasecoll.
26411         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26412         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26413         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26414         pipe-filter-ii.
26415         (Misc): Add argp-version-etc, login_tty, parse-duration.
26416
26417 2010-07-31  Bruno Haible  <bruno@clisp.org>
26418
26419         Improve doc in MODULES.html.
26420         * modules/linkat (Description): Add the word "function".
26421         * modules/mkfifo (Description): Likewise.
26422         * modules/mknod (Description): Likewise.
26423         * modules/remove (Description): Likewise.
26424         * modules/renameat (Description): Likewise.
26425         * modules/stat (Description): Likewise.
26426         * modules/symlink (Description): Likewise.
26427         * modules/unlink (Description): Likewise.
26428
26429 2010-07-31  Bruno Haible  <bruno@clisp.org>
26430
26431         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26432         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26433         option --enable/disable-c++ instead of --enable/disable-cxx.
26434         * NEWS: Mention the change.
26435
26436 2010-07-31  Bruno Haible  <bruno@clisp.org>
26437
26438         readlink, areadlink: Relax test a bit.
26439         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26440         alternative to ENOTDIR.
26441         * tests/test-areadlink.h (test_areadlink): Likewise.
26442         Reported by Rainer Tammer.
26443
26444 2010-07-31  Bruno Haible  <bruno@clisp.org>
26445
26446         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26447         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26448         character, perform the search using U_STRCHR.
26449         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26450         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26451         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26452         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26453         Suggested by Paolo Bonzini.
26454
26455 2010-07-31  Bruno Haible  <bruno@clisp.org>
26456
26457         unistr/u*-strstr: Fix dependencies.
26458         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26459         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26460         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26461
26462 2010-07-31  Bruno Haible  <bruno@clisp.org>
26463
26464         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26465         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26466         the beginning of the loop.
26467         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26468         cases in 'switch' statement.
26469
26470         unistr/u8-strchr: Fix several bugs.
26471         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26472         the string. When not found, return NULL, not a pointer near the end.
26473
26474         More tests for unistr/u8-strchr.
26475         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26476         that the function does not read past the first occurrence of the byte
26477         being searched.
26478         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26479         * tests/unistr/test-u16-strchr.c (main): New function.
26480         * tests/unistr/test-u32-strchr.c (main): New function.
26481
26482 2010-07-31  Bruno Haible  <bruno@clisp.org>
26483
26484         posix-modules: Ignore backup files of documentation files.
26485         * posix-modules: grep only through files named *.texi.
26486
26487 2010-07-31  Bruno Haible  <bruno@clisp.org>
26488
26489         symlinkat: Fix documentation.
26490         * doc/posix-functions/readlinkat.texi: Fix module name.
26491
26492 2010-07-31  Bruno Haible  <bruno@clisp.org>
26493
26494         fchownat: Replace also when chown has the trailing slash bug.
26495         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26496         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26497         introduced on 2010-04-10.
26498         Reported by Rainer Tammer.
26499
26500 2010-07-31  Bruno Haible  <bruno@clisp.org>
26501
26502         linkat: Work around AIX 7.1 bug.
26503         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26504         whether linkat handles trailing slash correctly. If not, replace linkat
26505         and define LINKAT_TRAILING_SLASH_BUG.
26506         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26507         check whether (fd1,file1) points to a directory if file1 or file2 ends
26508         in a slash. Code taken from lib/link.c.
26509         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26510         Reported by Rainer Tammer.
26511
26512 2010-07-31  Bruno Haible  <bruno@clisp.org>
26513
26514         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26515         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26516         This disables an xlc optimization that was causing wrong test results.
26517         Reported by Rainer Tammer.
26518
26519 2010-07-31  Bruno Haible  <bruno@clisp.org>
26520
26521         iconv: Work around AIX 6.1..7.1 bug.
26522         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26523         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26524         cross-compiling, guess no on all versions of AIX.
26525         Reported by Rainer Tammer.
26526
26527 2010-07-31  Bruno Haible  <bruno@clisp.org>
26528
26529         readlink: Relax test a bit.
26530         * tests/test-readlink.h (test_readlink): Allow different errno value
26531         when readlink is called with a file name that ends in / and refers to
26532         a file.
26533         Suggested by Eric Blake.
26534         Reported by Rainer Tammer.
26535
26536 2010-07-31  Bruno Haible  <bruno@clisp.org>
26537
26538         copysign: Does not require -lm on glibc systems.
26539         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26540         gl_COMMON_DOUBLE_MATHFUNC.
26541         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26542
26543 2010-07-31  Bruno Haible  <bruno@clisp.org>
26544
26545         duplocale: Work around AIX 7.1 bug.
26546         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26547         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26548         * lib/duplocale.c (rpl_duplocale): Update comment.
26549         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26550         Reported by Rainer Tammer.
26551
26552 2010-07-30  Bruno Haible  <bruno@clisp.org>
26553
26554         dirfd: Avoid link error on AIX 7.1.
26555         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26556         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26557         exist, set REPLACE_DIRFD.
26558         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26559         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26560         * doc/posix-functions/dirfd.texi: Update.
26561         Reported by Rainer Tammer.
26562
26563 2010-07-30  Eric Blake  <eblake@redhat.com>
26564
26565         strtod: next round of AIX fixes
26566         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26567         exponent.
26568         * tests/test-strtod.c (main): Enhance tests.
26569         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26570         Reported by Rainer Tammer.
26571
26572         futimens: fix configure check
26573         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26574         Reported by Bruno Haible.
26575
26576 2010-07-30  Bruno Haible  <bruno@clisp.org>
26577
26578         getline: Update regarding AIX.
26579         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26580         Reported by Rainer Tammer.
26581
26582 2010-07-30  Bruno Haible  <bruno@clisp.org>
26583
26584         wcwidth: Drop replacement on AIX 7.
26585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26586         AIX 7.
26587         Reported by Rainer Tammer.
26588
26589 2010-07-30  Bruno Haible  <bruno@clisp.org>
26590
26591         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26592         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26593         a 'char *'.
26594         Reported by Rainer Tammer.
26595
26596 2010-07-30  Bruno Haible  <bruno@clisp.org>
26597
26598         unlink: Update regarding AIX.
26599         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26600         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26601         Reported by Rainer Tammer.
26602
26603 2010-07-30  Bruno Haible  <bruno@clisp.org>
26604
26605         symlink: Update regarding AIX.
26606         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26607         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26608         Reported by Rainer Tammer.
26609
26610 2010-07-30  Bruno Haible  <bruno@clisp.org>
26611
26612         strndup: Update regarding AIX.
26613         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26614         AIX 7.
26615         Reported by Rainer Tammer.
26616
26617 2010-07-30  Bruno Haible  <bruno@clisp.org>
26618
26619         stat: Update regarding AIX.
26620         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26621         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26622         Reported by Rainer Tammer.
26623
26624 2010-07-30  Bruno Haible  <bruno@clisp.org>
26625
26626         truncl: Fix autoconf test.
26627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26628         whether truncl works.
26629         Reported by Rainer Tammer.
26630
26631 2010-07-30  Bruno Haible  <bruno@clisp.org>
26632
26633         round: Update regarding AIX.
26634         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26635         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26636         Reported by Rainer Tammer.
26637
26638 2010-07-30  Bruno Haible  <bruno@clisp.org>
26639
26640         rename: Update regarding AIX.
26641         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26642         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26643         Reported by Rainer Tammer.
26644
26645 2010-07-30  Bruno Haible  <bruno@clisp.org>
26646
26647         printf.m4: Update regarding AIX.
26648         * m4/printf.m4: Update comments regarding AIX.
26649         Reported by Rainer Tammer.
26650
26651 2010-07-30  Bruno Haible  <bruno@clisp.org>
26652
26653         iconv: Update regarding AIX.
26654         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26655         AIX 7.
26656         Reported by Rainer Tammer.
26657
26658 2010-07-30  Bruno Haible  <bruno@clisp.org>
26659
26660         getopt: Update regarding AIX.
26661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26662         no on AIX.
26663         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26664         Reported by Rainer Tammer.
26665
26666 2010-07-30  Bruno Haible  <bruno@clisp.org>
26667
26668         ldexpl; Update regarding AIX.
26669         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26670         on AIX 7.
26671         Reported by Rainer Tammer.
26672
26673 2010-07-30  Bruno Haible  <bruno@clisp.org>
26674
26675         frexpl: Update regarding AIX.
26676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26677         on AIX 7.
26678         Reported by Rainer Tammer.
26679
26680 2010-07-30  Bruno Haible  <bruno@clisp.org>
26681
26682         open, fopen: Update regarding AIX.
26683         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26684         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26685         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26686         * doc/posix-functions/fopen.texi: Likewise.
26687         Reported by Rainer Tammer.
26688
26689 2010-07-30  Bruno Haible  <bruno@clisp.org>
26690
26691         chown: Update doc regarding AIX.
26692         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26693         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26694         Reported by Rainer Tammer.
26695
26696 2010-07-30  Eric Blake  <eblake@redhat.com>
26697
26698         strtod: fix bug in replacement function on AIX
26699         * lib/strtod.c (strtod): Special case broken "0x" parse in
26700         underlying strtod.
26701         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26702         * doc/posix-functions/strtod.texi (strtod): Likewise.
26703         Reported by Rainer Tammer.
26704
26705 2010-07-30  Bruno Haible  <bruno@clisp.org>
26706
26707         mbrlen: Fix cross-compilation guess for AIX.
26708         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26709         guess. Leftover from 2008-12-22.
26710
26711 2010-07-30  Bruno Haible  <bruno@clisp.org>
26712
26713         mbrtowc: Fix cross-compilation guess for AIX.
26714         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26715         guess. Leftover from 2008-12-21.
26716
26717 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26718
26719         init.sh: work around trap limitation of some shells
26720         * tests/init.sh (setup_): Move exit trap outside of shell function.
26721
26722 2010-07-29  Eric Blake  <eblake@redhat.com>
26723
26724         strtod: aid debugging
26725         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26726         understanding why strtod is rejected.
26727
26728 2010-07-28  Bruno Haible  <bruno@clisp.org>
26729
26730         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26731         * lib/unistr/u8-chr.c: Include <string.h>.
26732         * tests/unistr/test-u8-chr.c: Likewise.
26733         * tests/unistr/test-u16-chr.c: Likewise.
26734         * tests/unistr/test-u32-chr.c: Likewise.
26735         * tests/unistr/test-u8-strchr.c: Likewise.
26736         * tests/unistr/test-u16-strchr.c: Likewise.
26737         * tests/unistr/test-u32-strchr.c: Likewise.
26738         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26739         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26740         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26741         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26742
26743 2010-07-28  Bruno Haible  <bruno@clisp.org>
26744
26745         Use spaces for indentation, not tabs.
26746         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26747
26748 2010-07-27  Bruno Haible  <bruno@clisp.org>
26749
26750         mbspcasecmp: Fix function specification.
26751         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26752         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26753         Reported by Eric Blake <eblake@redhat.com>.
26754
26755 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26756
26757         timespec: use cast and not conditional, as truncation isn't possible
26758         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26759         instead of a conditional.  Comment about the situation in more detail.
26760         This undoes most of the 2009-10-29 patch.
26761
26762 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26763
26764         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26765         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26766         * lib/unistr/u8-strchr.c: Likewise.
26767         * modules/unistr/u8-chr: Depend on memchr.
26768
26769         unistr/u*-strchr: add tests
26770         * modules/unistr/u8-strchr-tests: New file.
26771         * modules/unistr/u16-strchr-tests: New file.
26772         * modules/unistr/u32-strchr-tests: New file.
26773         * tests/unistr/test-strchr.h: New file.
26774         * tests/unistr/test-u8-strchr.c: New file.
26775         * tests/unistr/test-u16-strchr.c: New file.
26776         * tests/unistr/test-u32-strchr.c: New file.
26777
26778         unistr/u*-chr: test multibyte sequences more
26779         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26780         test vector.
26781         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26782         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26783         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26784
26785         unistr/u*-chr: test multibyte sequences
26786         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26787
26788         unistr/u*-chr: prepare for multibyte tests
26789         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26790         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26791         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26792         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26793         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26794         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26795
26796 2010-07-18  Bruno Haible  <bruno@clisp.org>
26797
26798         unistr/u8-strchr: Optimize non-ASCII argument case.
26799         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26800         because the first byte often matches anyway.
26801         Reported by Pádraig Brady <P@draigbrady.com>.
26802
26803 2010-07-15  Karl Berry  <karl@gnu.org>
26804
26805         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26806
26807 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26808
26809         getcwd: on Solaris, work better if ancestors are inaccessible
26810         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26811         buffer and size, try again with a large buffer.  This works better
26812         on Solaris, since its getcwd succeeds even if the path to the root
26813         is inaccessible, and this is helpful in common cases such as .zfs
26814         hidden directories.  Problem reported by J Chapman Flack in
26815         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26816         Use system getcwd if it's declared, not merely if it's partly
26817         working; use the partly-working test only to avoid needless effort
26818         if the system getcwd fails.
26819         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26820         comment that was already obsolete and is now even more obsolete.
26821         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26822         now might call strdup.
26823
26824 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26825
26826         pthread: Add enough so that coreutils/src/sort.c compiles.
26827         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26828         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26829         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26830         Include <sys/types.h>, in case it defines pthread_t.
26831         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26832         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26833         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26834         (pthread_rwlockattr_t, pthread_spinlock_t):
26835         New typedefs, if HAVE_PTHREAD_T is not defined.
26836         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26837         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26838         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26839         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26840         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26841         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26842         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26843         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26844         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26845         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26846         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26847         New macros.
26848         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26849         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26850         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26851         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26852         (pthread_spin_unlock): New dummy functions.
26853         (pthread_create): Return EAGAIN; don't set errno.
26854         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26855         require AC_C_INLINE.
26856         * modules/pthread (Depends-on): Add sched, time.
26857         (pthread.h): Use AM_V_GEN.
26858
26859 2010-07-13  Bruno Haible  <bruno@clisp.org>
26860
26861         striconveh: Don't malloc memory if the result buffer is sufficient.
26862         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26863         buffer if its size is sufficient.
26864         Reported by Ludovic Courtès <ludo@gnu.org>.
26865
26866 2010-07-13  Bruno Haible  <bruno@clisp.org>
26867
26868         strtod: Add safety check.
26869         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26870
26871 2010-07-12  Bruno Haible  <bruno@clisp.org>
26872
26873         Unify tests that set gl_cv_func_ldexpl_no_libm.
26874         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26875         gl_FUNC_LDEXPL.
26876         (gl_FUNC_LDEXPL): Invoke it.
26877         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26878
26879 2010-07-12  Bruno Haible  <bruno@clisp.org>
26880
26881         Unify tests that set gl_cv_func_ldexp_no_libm.
26882         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26883         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26884         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26885         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26886         * modules/strtod (Files): Add m4/ldexp.m4.
26887
26888 2010-07-12  Bruno Haible  <bruno@clisp.org>
26889
26890         Unify tests that set gl_cv_func_frexpl_no_libm.
26891         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26892         gl_FUNC_FREXPL_NO_LIBM.
26893         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26895
26896 2010-07-12  Bruno Haible  <bruno@clisp.org>
26897
26898         Unify tests that set gl_cv_func_frexp_no_libm.
26899         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26900         gl_FUNC_FREXP_NO_LIBM.
26901         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26902         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26903
26904 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26905
26906         memcoll: clarify sizes versus lengths, document better, and tweak perf
26907         * lib/memcoll.c (strcoll_loop, memcoll0):
26908         Improve quality of descriptive comments.  Name variables
26909         consistently as to whether they are lengths (which do not include
26910         terminating null) versus sizes (which do).
26911         * lib/xmemcoll.c (xmemcoll0): Likewise.
26912         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26913         returned when s1size == 0; this is easier to compile and saves
26914         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26915
26916 2010-07-12  Bruno Haible  <bruno@clisp.org>
26917
26918         Tests for module '_Exit'.
26919         * modules/_Exit-tests: New file.
26920         * tests/test-_Exit.sh: New file.
26921         * tests/test-_Exit.c: New file.
26922
26923         New module '_Exit'.
26924         * lib/stdlib.in.h (__attribute__): New macro.
26925         (_Exit): New declaration.
26926         * lib/_Exit.c: New file.
26927         * m4/_Exit.m4: New file.
26928         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26929         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26930         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26931         * modules/_Exit: New file.
26932         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26933         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26934
26935 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26936
26937         strtod: make it more-accurate typically, and don't require libm
26938         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26939         Include limits.h.  Don't include string.h.
26940         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26941         (locale_isspace): New function, so that no casts are needed to
26942         check whether *s is a space.
26943         (ldexp): Provide an unused dummy if not available.
26944         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26945         (strtod): Use them.  This implementation prefers to use the
26946         underlying strtod if available, falling back on our own code
26947         only to fix known bugs.  This is more likely to produce an
26948         accurate result.  Also, it avoids the use of libm functions.
26949         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26950         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26951         was absent, but it caused a test failure with coreutils.
26952         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26953         with libm.
26954         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26955         * modules/strtod-tests (Makefile.am): Likewise.
26956
26957 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26958             Bruno Haible  <bruno@clisp.org>
26959
26960         unistr/u8-strchr: Optimize ASCII argument case.
26961         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26962
26963 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26964
26965         (x)memcoll: minor tweaks
26966         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26967         is after the type that it qualifies.
26968         (memcoll0): Likewise.
26969         * lib/memcoll.h (memcoll0): Likewise.
26970         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26971         * lib/xmemcoll.h (xmemcoll0): Likewise.
26972         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26973         differs from memcoll in that the NUL byte is part of the argument.
26974         Omit the abort-checks, as performance is a real issue here.  Plus,
26975         the checks were wrong anyway (an off-by-one error).  Omit local
26976         variable 'diff', as it's a bit clearer that way.
26977         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26978         no longer needed.
26979
26980 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26981
26982         (x)memcoll: speedup when input is known to be NUL delimited
26983         * lib/memcoll.c: Include stdlib.
26984         (memcoll0): New function.
26985         (strcoll_loop): New function, refactored for use in both memcoll
26986         and memcoll0.
26987         * lib/memcoll.h (memcoll0): Add prototype.
26988         * lib/xmemcoll.c (xmemcoll0): New function.
26989         (collate_error): New function, refactored for use in both xmemcoll
26990         and xmemcoll0.
26991         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26992         * m4/memcoll.m4: add inline invocation.
26993
26994 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26995
26996         * build-aux/bootstrap: Remove any local translations
26997         from the translation project synchronization directory,
26998         so that local only translations are not distributed.
26999
27000 2010-07-04  Bruno Haible  <bruno@clisp.org>
27001
27002         fsusage: Clarify which code applies to which platforms.
27003         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27004         platform.
27005         * lib/fsusage.c (get_fs_usage): Likewise.
27006
27007 2010-07-04  Bruno Haible  <bruno@clisp.org>
27008
27009         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27010         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27011         Reported by Martin Lambers <marlam@marlam.de>.
27012
27013 2010-07-04  Jim Meyering  <meyering@redhat.com>
27014
27015         hash: once again explicitly disallow insertion of NULL
27016         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27017         inserting a NULL pointer cannot work with these functions.
27018         Add a comment with details.
27019         This reverts part of the 2010-07-01 commit, 5bef1a35
27020         "hash: extend module to deal with non-pointer keys".
27021
27022 2010-07-01  Bruno Haible  <bruno@clisp.org>
27023
27024         stdbool: Update doc.
27025         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27026         Info from Christian Weisgerber <naddy@mips.inka.de>.
27027
27028 2010-07-01  Jim Meyering  <meyering@redhat.com>
27029
27030         hash: extend module to deal with non-pointer keys
27031         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27032         but that allows insertion of non-pointer entries.
27033         Do not disallow an ENTRY value of NULL.
27034         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27035         * lib/hash.h (hash_insert0): Declare.
27036
27037 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27038
27039         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27040         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27041         not present (i.e. with autoconf 2.59 and when using gettextize, not
27042         gnulib), require AC_GNU_SOURCE instead.
27043
27044 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27045
27046         idpriv-drop: Fix tests.
27047         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27048         not to the test-idpriv-droptemp program.
27049
27050 2010-06-29  Bruno Haible  <bruno@clisp.org>
27051
27052         string: Fix syntax error with g++ 2.96.
27053         * lib/string.in.h (__pure__): Remove definition.
27054         (_GL_ATTRIBUTE_PURE): New macro.
27055         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27056         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27057         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27058
27059 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27060
27061         unitypes: Fix bug introduced on 2010-05-18.
27062         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27063
27064 2010-06-22  Eric Blake  <eblake@redhat.com>
27065
27066         memmem: slight optimization
27067         * lib/str-two-way.h (critical_factorization): Update comments.
27068         Reduce work during factorization phase.
27069         Reported by Carlos Bueno <carlos@bueno.org>.
27070
27071 2010-06-21  Bruno Haible  <bruno@clisp.org>
27072
27073         Fix HAVE_CALLOC_POSIX misnomer.
27074         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27075         !HAVE_CALLOC_POSIX.
27076         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27077         HAVE_CALLOC_POSIX.
27078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27079         instead of HAVE_CALLOC_POSIX.
27080         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27081         HAVE_CALLOC_POSIX.
27082
27083         Use modern idiom for calloc() replacement.
27084         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27085         AC_FUNC_CALLOC.
27086         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27087         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27088         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27089         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27090         (gl_REPLACE_CALLOC): New macro.
27091
27092 2010-06-21  Bruno Haible  <bruno@clisp.org>
27093
27094         Fix HAVE_REALLOC_POSIX misnomer.
27095         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27096         !HAVE_REALLOC_POSIX.
27097         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27098         HAVE_REALLOC_POSIX.
27099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27100         instead of HAVE_REALLOC_POSIX.
27101         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27102         HAVE_REALLOC_POSIX.
27103
27104         Use modern idiom for realloc() replacement.
27105         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27106         AC_FUNC_REALLOC.
27107         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27108         Autoconf's AC_FUNC_REALLOC.
27109         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27110         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27111         (gl_REPLACE_REALLOC): New macro.
27112         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27113
27114 2010-06-21  Bruno Haible  <bruno@clisp.org>
27115
27116         Fix HAVE_MALLOC_POSIX misnomer.
27117         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27118         !HAVE_MALLOC_POSIX.
27119         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27120         HAVE_MALLOC_POSIX.
27121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27122         instead of HAVE_MALLOC_POSIX.
27123         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27124         HAVE_MALLOC_POSIX.
27125
27126         Use modern idiom for malloc() replacement.
27127         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27128         AC_FUNC_MALLOC.
27129         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27130         Autoconf's AC_FUNC_MALLOC.
27131         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27132         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27133         (gl_REPLACE_MALLOC): New macro.
27134         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27135
27136 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27137
27138         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27139         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27140         This macro takes 3 arguments, not 4.
27141
27142 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27143
27144         ipv6: fix detection under mingw
27145         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27146         in6_addr.
27147
27148 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27149
27150         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27151         that strtod() works when cross-compiling to a glibc version known
27152         to work.
27153
27154 2010-06-15  Bruno Haible  <bruno@clisp.org>
27155
27156         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27157
27158 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27159
27160         select: Correct timeout.
27161         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27162
27163 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27164
27165         git-version-gen: init shell var to avoid env var influence
27166         * build-aux/git-version-gen (v): Init shell var to empty.
27167
27168 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27169
27170         priv-set: Don't assume that priv.h exists merely because getppriv does.
27171         See Jan Andersen's bug report about AIX 5L in
27172         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27173         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27174         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27175         * lib/priv-set.h: Likewise.
27176         * tests/test-priv-set.c: Likewise.
27177
27178 2010-06-13  Bruno Haible  <bruno@clisp.org>
27179
27180         relocatable: Make it easier to test whether to install wrappers.
27181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27182         RELOCATABLE_VIA_WRAPPER.
27183
27184 2010-06-13  Bruno Haible  <bruno@clisp.org>
27185
27186         gnulib-tool: Display specified modules and dependencies differently.
27187         * gnulib-tool (func_show_module_list): New function.
27188         (func_import, func_create_testdir): Invoke it.
27189         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27190
27191 2010-06-13  Bruno Haible  <bruno@clisp.org>
27192
27193         gnulib-tool: Align code of func_import and func_create_testdir.
27194         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27195         specified_modules.
27196
27197 2010-06-12  Jim Meyering  <meyering@redhat.com>
27198
27199         test-inttostr: avoid spurious failure on Solaris 9
27200         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27201         to accept "%ju".  Reported by Bruno Haible.
27202
27203 2010-06-11  Jim Meyering  <meyering@redhat.com>
27204
27205         test-sys_socket: mark variables as used more readably
27206         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27207         as "used" explicitly via (void) statement casts.  This is more
27208         readable than using them in an artificial return expression.
27209         Suggestion from Bruno Haible.
27210
27211 2010-06-11  Bruno Haible  <bruno@clisp.org>
27212
27213         Avoid some more warnings from "gcc -Wwrite-strings".
27214         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27215         to 'const char *'.
27216         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27217         * tests/test-c-strcasestr.c (main): Likewise.
27218         * tests/test-mbscasestr1.c (main): Likewise.
27219         * tests/test-mbscasestr2.c (main): Likewise.
27220         * tests/test-memmem.c (main): Likewise.
27221         * tests/test-strstr.c (main): Likewise.
27222         * tests/test-strcasestr.c (main): Likewise.
27223
27224 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27225
27226         init.sh: change framework_failure_ to fail with status 99, not 1
27227         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27228         automake's parallel-tests rule that this is an unexpected failure,
27229         even if the test is listed in XFAIL_TESTS.
27230
27231 2010-06-11  Jim Meyering  <meyering@redhat.com>
27232
27233         test-inttostr: avoid warnings about 4-6KB literal strings
27234         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27235         Include "macros.h", for its definition of ASSERT.
27236         (CK): s/assert/ASSERT/
27237         * modules/inttostr-tests (Files): Add macros.h.
27238
27239         init.sh: don't use $ME_ or skip_ before they are defined
27240         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27241         their first uses.  Also hoist their companions: warn_, fail_,
27242         framework_failure_, $stderr_fileno.  Prompted by a patch from
27243         Stefano Lattarini.
27244
27245         test-sys_socket: avoid set-but-not-used warnings from gcc
27246         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27247         avoid warning about set-but-not-used variables.
27248
27249         test-xvasprintf: avoid 'const' discard warnings
27250         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27251         "const" when assigning from literal strings.
27252         (test_xasprintf): Add "void" in function argument list to placate
27253         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27254
27255         tests: avoid compilation warnings in argmatch and exclude tests...
27256         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27257         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27258         Since it always exits, declare with the "noreturn" attribute.
27259         * tests/test-argmatch.c: Likewise.
27260
27261         tests: avoid 'const' discard warnings in mbsstr tests
27262         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27263         * tests/test-mbsstr2.c (main): Likewise.
27264
27265         test-verify: avoid warning from gcc's -Wmissing-declarations
27266         * tests/test-verify.c (function): Declare to be static.
27267
27268         test-inttostr.c: include <string.h> for use of strcmp
27269         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27270
27271         test-linkat: avoid failed assertion on "other" architectures
27272         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27273         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27274         sparc: https://bugs.launchpad.net/bugs/591968
27275
27276 2010-06-11  Jim Meyering  <meyering@redhat.com>
27277
27278         printf.m4: avoid autoconf's "Expanded Before Required" warning
27279         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27280         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27281         autoconf warning.
27282
27283 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27284
27285         Replacement header templates are now named with ".in", not "_".
27286         * doc/gnulib-intro.texi: Correct.
27287
27288 2010-06-10  Jim Meyering  <meyering@redhat.com>
27289
27290         inttostr-tests: depend on snprintf, not snprintf-posix
27291         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27292         snprintf-posix, to avoid this aclocal failure:
27293           missing file gnulib-tests/vasnprintf.c
27294           configure.ac:45: error: expected source file, required through \
27295           AC_LIBSOURCES, not found
27296
27297 2010-06-10  Jim Meyering  <meyering@redhat.com>
27298
27299         inttostr: add a new function, inttostr, and tests
27300         The namesake function was not available.  The existence of the
27301         template file, inttostr.c makes its addition nontrivial.
27302         * lib/anytostr.c: Rename from inttostr.c.
27303         (anytostr): Rename from inttostr.
27304         * lib/inttostr.c: New file.
27305         * modules/inttostr (Files): Add anytostr.c.
27306         (Makefile.am): Set lib_SOURCES instead of ...
27307         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27308         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27309         * lib/offtostr.c: Likewise.
27310         * lib/uinttostr.c: Likewise.
27311         * lib/umaxtostr.c: Likewise.
27312         * modules/inttostr-tests: New file.
27313         * tests/test-inttostr.c: New file.  Test these functions.
27314
27315 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27316             Bruno Haible  <bruno@clisp.org>
27317
27318         Add "Extending Gnulib" chapter to manual.
27319         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27320         chapter.
27321         (Extending Gnulib): New chapter.
27322         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27323         chapter.
27324
27325 2010-06-09  Bruno Haible  <bruno@clisp.org>
27326
27327         Avoid relocwrapper link errors due to gnulib replacement functions.
27328         * lib/areadlink.c: Use the system's malloc, realloc functions.
27329         (areadlink): Set errno to ENOMEM explicitly.
27330         * modules/areadlink (Depends-on): Remove malloc-posix.
27331         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27332
27333 2010-06-09  Bruno Haible  <bruno@clisp.org>
27334
27335         Avoid relocwrapper link errors due to gnulib replacement functions.
27336         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27337         * lib/malloca.c: Likewise.
27338         * lib/relocatable.c: Likewise.
27339         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27340         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27341         * lib/setenv.c: Use the system's malloc, realloc functions.
27342         * lib/strerror.c: Use the system's sprintf function.
27343         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27344
27345 2010-06-04  Bruno Haible  <bruno@clisp.org>
27346
27347         Prefer documented low-level autoconf macro names.
27348         * m4/lib-link.m4: Use m4_translit instead of translit.
27349         * m4/environ.m4: Likewise.
27350         * m4/mathfunc.m4: Likewise.
27351         * m4/onceonly.m4: Likewise.
27352         * m4/stdint.m4: Likewise.
27353         Suggested by Eric Blake.
27354
27355 2010-06-04  Martin Lambers  <marlam@marlam.de>
27356             Bruno Haible  <bruno@clisp.org>
27357
27358         havelib: Allow library names with '+' characters.
27359         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27360         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27361
27362 2010-06-09  Bruno Haible  <bruno@clisp.org>
27363
27364         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27365         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27366         realloc failed.
27367
27368 2010-06-08  Peter Simons  <simons@cryp.to>
27369
27370         maint.mk: make the news-check rule more configurable
27371         * top/maint.mk (news-check-lines-spec): New variable.
27372         (news-check): Use "sed -n 1,10p" in place of "head".
27373
27374 2010-06-07  Jim Meyering  <meyering@redhat.com>
27375
27376         do-release-commit-and-tag: fix typo in --help
27377         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27378
27379         regex: avoid new dead-code warning with gcc-4.6.0
27380         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27381         if-block containing a while-loop.  It's been unused for at least
27382         5 years.
27383
27384 2010-06-05  Bruno Haible  <bruno@clisp.org>
27385
27386         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27387         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27388
27389 2010-06-04  Bruno Haible  <bruno@clisp.org>
27390
27391         Update to GNU gettext 0.18.1.
27392         * modules/gettext (configure.ac): Require gettext infrastructure from
27393         version 0.18.1.
27394
27395 2010-06-03  Bruno Haible  <bruno@clisp.org>
27396
27397         Don't use AC_LIBOBJ with file names in subdirectories.
27398         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27399         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27400         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27401         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27402         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27403         gl_LIBUNISTRING_LIBSOURCE.
27404         (Makefile.am): Augment lib_SOURCES here, conditionally.
27405         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27406
27407 2010-06-03  Bruno Haible  <bruno@clisp.org>
27408
27409         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27410         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27411         expansion does not end with a newline.
27412         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27413         unnecessary newline.
27414
27415 2010-06-03  Bruno Haible  <bruno@clisp.org>
27416
27417         Reduce dependencies.
27418         * tests/test-quotearg.h: New file, extracted from
27419         tests/test-quotearg.c.
27420         * tests/test-quotearg-simple.c: New file, extracted from
27421         tests/test-quotearg.c.
27422         * tests/test-quotearg.c: Don't include <ctype.h>.
27423         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27424         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27425         use_quote_double_quotes, use_quotearg_colon): Moved to
27426         tests/test-quotearg.h.
27427         (results_g, flag_results, custom_quotes, custom_results): Moved
27428         to tests/test-quotearg-simple.c.
27429         (main): Moved the part that does not depend on gettext to
27430         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27431         performed.
27432         * modules/quotearg-simple: New file.
27433         * modules/quotearg-simple-tests: New file.
27434         * modules/quotearg (Depends-on): Add quotearg-simple.
27435         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27436         (Files): Add tests/test-quotearg.h.
27437         Reported by Paolo Bonzini.
27438
27439 2010-06-03  Bruno Haible  <bruno@clisp.org>
27440
27441         Reduce dependencies.
27442         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27443
27444 2010-06-03  Bruno Haible  <bruno@clisp.org>
27445
27446         time: Undefine more broken macros.
27447         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27448         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27449         Reported by Eric Blake.
27450
27451 2010-06-03  Bruno Haible  <bruno@clisp.org>
27452
27453         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27454         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27455         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27456         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27457         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27458         Reported by Ludovic Courtès <ludo@gnu.org>.
27459
27460 2010-06-02  Eric Blake  <eblake@redhat.com>
27461
27462         time: work with mingw + pthreads-win32 library
27463         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27464         if timespec is defined only in pthread.h.
27465         * modules/time (Makefile.am): Substitute it.
27466         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27467         <pthread.h>, when needed.
27468         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27469         from the library.
27470
27471 2010-05-31  Bruno Haible  <bruno@clisp.org>
27472
27473         Avoid expanding two macros in the wrong order.
27474         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27475         gl_LIBUNISTRING if it is defined.
27476         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27477         autoconf >= 2.64.
27478         Reported by Ludovic Courtès <ludo@gnu.org>.
27479
27480 2010-05-27  Jim Meyering  <meyering@redhat.com>
27481
27482         maint.mk: also prohibit "#undef" of always-defined symbols
27483         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27484         Allow more than one space before the symbol name.
27485         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27486         the regexp uses alternation.
27487
27488 2010-05-26  Eric Blake  <eblake@redhat.com>
27489
27490         maint.mk: avoid echo -e
27491         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27492         Convert all uses of echo -* to printf.
27493         Reported by Matthias Bolte.
27494
27495 2010-05-25  Bruno Haible  <bruno@clisp.org>
27496
27497         Update to GNU gettext 0.18, part 2.
27498         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27499         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27500
27501 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27502
27503         Add missing include in test-pwrite.c.
27504         * tests/test-pwrite.c: Include string.h, for strcmp.
27505
27506 2010-05-24  Bruno Haible  <bruno@clisp.org>
27507
27508         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27509
27510 2010-05-24  Bruno Haible  <bruno@clisp.org>
27511
27512         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27513         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27514         iconveh_error argument.
27515         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27516         U_STRCONV_TO_LOCALE.
27517         * lib/unistr/u16-strcoll.c: Likewise.
27518         * lib/unistr/u32-strcoll.c: Likewise.
27519         * modules/unistr/u8-strcoll (Depends-on): Add
27520         uniconv/u8-strconv-to-enc, localcharset. Remove
27521         uniconv/u8-strconv-to-locale.
27522         (configure.ac): Bump version number.
27523         * modules/unistr/u16-strcoll (Depends-on): Add
27524         uniconv/u16-strconv-to-enc, localcharset. Remove
27525         uniconv/u16-strconv-to-locale.
27526         (configure.ac): Bump version number.
27527         * modules/unistr/u32-strcoll (Depends-on): Add
27528         uniconv/u32-strconv-to-enc, localcharset. Remove
27529         uniconv/u32-strconv-to-locale.
27530         (configure.ac): Bump version number.
27531
27532 2010-05-24  Bruno Haible  <bruno@clisp.org>
27533
27534         Avoid a test failure on NetBSD 5.0.
27535         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27536         an iconv() bug.
27537
27538 2010-05-24  Bruno Haible  <bruno@clisp.org>
27539
27540         Adjust #include directive style.
27541         * modules/regex (Includes): Recommend to write <regex.h>.
27542
27543 2010-05-24  Bruno Haible  <bruno@clisp.org>
27544
27545         regex: Don't require alloca.
27546         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27547         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27548         only inside if (0).
27549
27550 2010-05-23  Jim Meyering  <meyering@redhat.com>
27551
27552         test-renameat.c: include <sys/stat.h>
27553         * tests/test-renameat.c: Include <sys/stat.h>; required for
27554         definition of S_IS* macros.
27555
27556 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27557
27558         Update maintainer documentation for 'relocatable-prog' module.
27559         * doc/relocatable-maint.texi: Update.
27560         Comments by Bruno Haible.
27561
27562 2010-05-23  Bruno Haible  <bruno@clisp.org>
27563
27564         git-merge-changelog: Enable --split-merged-entry by default.
27565         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27566         (usage): Don't mention this option any more.
27567         Reported by Ralf Wildenhues.
27568
27569 2010-05-23  Jim Meyering  <meyering@redhat.com>
27570
27571         test-pwrite: do not leave behind a test file named "out"
27572         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27573         The trivial-looking use of init.sh is really necessary.
27574         It ensures that the temporary file, "out", is created in
27575         a temporary directory, and removed upon termination.
27576         * tests/test-pwrite.sh: Re-add file.
27577         * modules/pwrite-tests: Reference it.
27578
27579 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27580
27581         Fix output redirection buglet in init.sh.
27582         * tests/init.sh: Fix redirection of stderr.
27583
27584 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27585
27586         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27587
27588 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27589
27590         * modules/valgrind-tests: New file.
27591         * m4/valgrind-tests.m4: New file.
27592         * doc/valgrind-tests.texi: New file.
27593         * doc/gnulib.texi (Running self-tests under valgrind): New
27594         section.
27595
27596 2010-05-19  Bruno Haible  <bruno@clisp.org>
27597
27598         Clean up dead code in recent commit.
27599         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27600         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27601         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27602         Suggested by Paolo Bonzini.
27603
27604 2010-05-19  Bruno Haible  <bruno@clisp.org>
27605
27606         Avoid valgrind error reports from libunistring.
27607         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27608         * modules/libunistring (Files): Add it.
27609         * modules/libunistring-optional (Files): Likewise.
27610
27611 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27612             Bruno Haible  <bruno@clisp.org>
27613
27614         New module 'libunistring-optional'.
27615         * modules/libunistring-optional: New file.
27616         * m4/libunistring-base.m4: New file.
27617         * m4/libunistring-optional.m4: New file.
27618         * lib/unicase.in.h: Renamed from lib/unicase.h.
27619         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27620         * lib/unictype.in.h: Renamed from lib/unictype.h.
27621         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27622         * lib/uniname.in.h: Renamed from lib/uniname.h.
27623         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27624         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27625         * lib/unistr.in.h: Renamed from lib/unistr.h.
27626         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27627         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27628         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27629         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27630         gl_LIBUNISTRING. If the library was found, determine the installed
27631         version and set LIBUNISTRING_VERSION.
27632         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27633         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27634         handle a configuration option --with-included-libunistring.
27635         * modules/libunistring (Files): Add m4/absolute-header.m4.
27636         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27637         Add m4/libunistring-base.m4.
27638         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27639         (Makefile.am): Build unicase.h from unicase.in.h.
27640         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27641         Add m4/libunistring-base.m4.
27642         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27643         (Makefile.am): Build uniconv.h from uniconv.in.h.
27644         * modules/unictype/base (Files): Use unictype.in.h instead of
27645         unictype.h. Add m4/libunistring-base.m4.
27646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27647         (Makefile.am): Build unictype.h from unictype.in.h.
27648         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27649         Add m4/libunistring-base.m4.
27650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27651         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27652         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27653         Add m4/libunistring-base.m4.
27654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27655         (Makefile.am): Build uniname.h from uniname.in.h.
27656         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27657         Add m4/libunistring-base.m4.
27658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27659         (Makefile.am): Build uninorm.h from uninorm.in.h.
27660         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27661         unistdio.h. Add m4/libunistring-base.m4.
27662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27663         (Makefile.am): Build unistdio.h from unistdio.in.h.
27664         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27665         Add m4/libunistring-base.m4.
27666         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27667         (Makefile.am): Build unistr.h from unistr.in.h.
27668         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27669         Add m4/libunistring-base.m4.
27670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27671         (Makefile.am): Build unitypes.h from unitypes.in.h.
27672         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27673         Add m4/libunistring-base.m4.
27674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27675         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27676         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27677         uniwidth.h. Add m4/libunistring-base.m4.
27678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27679         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27680         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27681         instead of augmenting lib_SOURCES.
27682         * modules/unicase/empty-suffix-context: Likewise.
27683         * modules/unicase/locale-language: Likewise.
27684         * modules/unicase/tolower: Likewise.
27685         * modules/unicase/totitle: Likewise.
27686         * modules/unicase/toupper: Likewise.
27687         * modules/unicase/u8-casecmp: Likewise.
27688         * modules/unicase/u8-casecoll: Likewise.
27689         * modules/unicase/u8-casefold: Likewise.
27690         * modules/unicase/u8-casexfrm: Likewise.
27691         * modules/unicase/u8-ct-casefold: Likewise.
27692         * modules/unicase/u8-ct-tolower: Likewise.
27693         * modules/unicase/u8-ct-totitle: Likewise.
27694         * modules/unicase/u8-ct-toupper: Likewise.
27695         * modules/unicase/u8-is-cased: Likewise.
27696         * modules/unicase/u8-is-casefolded: Likewise.
27697         * modules/unicase/u8-is-lowercase: Likewise.
27698         * modules/unicase/u8-is-titlecase: Likewise.
27699         * modules/unicase/u8-is-uppercase: Likewise.
27700         * modules/unicase/u8-prefix-context: Likewise.
27701         * modules/unicase/u8-suffix-context: Likewise.
27702         * modules/unicase/u8-tolower: Likewise.
27703         * modules/unicase/u8-totitle: Likewise.
27704         * modules/unicase/u8-toupper: Likewise.
27705         * modules/unicase/u16-casecmp: Likewise.
27706         * modules/unicase/u16-casecoll: Likewise.
27707         * modules/unicase/u16-casefold: Likewise.
27708         * modules/unicase/u16-casexfrm: Likewise.
27709         * modules/unicase/u16-ct-casefold: Likewise.
27710         * modules/unicase/u16-ct-tolower: Likewise.
27711         * modules/unicase/u16-ct-totitle: Likewise.
27712         * modules/unicase/u16-ct-toupper: Likewise.
27713         * modules/unicase/u16-is-cased: Likewise.
27714         * modules/unicase/u16-is-casefolded: Likewise.
27715         * modules/unicase/u16-is-lowercase: Likewise.
27716         * modules/unicase/u16-is-titlecase: Likewise.
27717         * modules/unicase/u16-is-uppercase: Likewise.
27718         * modules/unicase/u16-prefix-context: Likewise.
27719         * modules/unicase/u16-suffix-context: Likewise.
27720         * modules/unicase/u16-tolower: Likewise.
27721         * modules/unicase/u16-totitle: Likewise.
27722         * modules/unicase/u16-toupper: Likewise.
27723         * modules/unicase/u32-casecmp: Likewise.
27724         * modules/unicase/u32-casecoll: Likewise.
27725         * modules/unicase/u32-casefold: Likewise.
27726         * modules/unicase/u32-casexfrm: Likewise.
27727         * modules/unicase/u32-ct-casefold: Likewise.
27728         * modules/unicase/u32-ct-tolower: Likewise.
27729         * modules/unicase/u32-ct-totitle: Likewise.
27730         * modules/unicase/u32-ct-toupper: Likewise.
27731         * modules/unicase/u32-is-cased: Likewise.
27732         * modules/unicase/u32-is-casefolded: Likewise.
27733         * modules/unicase/u32-is-lowercase: Likewise.
27734         * modules/unicase/u32-is-titlecase: Likewise.
27735         * modules/unicase/u32-is-uppercase: Likewise.
27736         * modules/unicase/u32-prefix-context: Likewise.
27737         * modules/unicase/u32-suffix-context: Likewise.
27738         * modules/unicase/u32-tolower: Likewise.
27739         * modules/unicase/u32-totitle: Likewise.
27740         * modules/unicase/u32-toupper: Likewise.
27741         * modules/unicase/ulc-casecmp: Likewise.
27742         * modules/unicase/ulc-casecoll: Likewise.
27743         * modules/unicase/ulc-casexfrm: Likewise.
27744         * modules/uniconv/u8-conv-from-enc: Likewise.
27745         * modules/uniconv/u8-conv-to-enc: Likewise.
27746         * modules/uniconv/u8-strconv-from-enc: Likewise.
27747         * modules/uniconv/u8-strconv-from-locale: Likewise.
27748         * modules/uniconv/u8-strconv-to-enc: Likewise.
27749         * modules/uniconv/u8-strconv-to-locale: Likewise.
27750         * modules/uniconv/u16-conv-from-enc: Likewise.
27751         * modules/uniconv/u16-conv-to-enc: Likewise.
27752         * modules/uniconv/u16-strconv-from-enc: Likewise.
27753         * modules/uniconv/u16-strconv-from-locale: Likewise.
27754         * modules/uniconv/u16-strconv-to-enc: Likewise.
27755         * modules/uniconv/u16-strconv-to-locale: Likewise.
27756         * modules/uniconv/u32-conv-from-enc: Likewise.
27757         * modules/uniconv/u32-conv-to-enc: Likewise.
27758         * modules/uniconv/u32-strconv-from-enc: Likewise.
27759         * modules/uniconv/u32-strconv-from-locale: Likewise.
27760         * modules/uniconv/u32-strconv-to-enc: Likewise.
27761         * modules/uniconv/u32-strconv-to-locale: Likewise.
27762         * modules/unictype/bidicategory-byname: Likewise.
27763         * modules/unictype/bidicategory-name: Likewise.
27764         * modules/unictype/bidicategory-of: Likewise.
27765         * modules/unictype/bidicategory-test: Likewise.
27766         * modules/unictype/block-list: Likewise.
27767         * modules/unictype/block-test: Likewise.
27768         * modules/unictype/category-C: Likewise.
27769         * modules/unictype/category-Cc: Likewise.
27770         * modules/unictype/category-Cf: Likewise.
27771         * modules/unictype/category-Cn: Likewise.
27772         * modules/unictype/category-Co: Likewise.
27773         * modules/unictype/category-Cs: Likewise.
27774         * modules/unictype/category-L: Likewise.
27775         * modules/unictype/category-Ll: Likewise.
27776         * modules/unictype/category-Lm: Likewise.
27777         * modules/unictype/category-Lo: Likewise.
27778         * modules/unictype/category-Lt: Likewise.
27779         * modules/unictype/category-Lu: Likewise.
27780         * modules/unictype/category-M: Likewise.
27781         * modules/unictype/category-Mc: Likewise.
27782         * modules/unictype/category-Me: Likewise.
27783         * modules/unictype/category-Mn: Likewise.
27784         * modules/unictype/category-N: Likewise.
27785         * modules/unictype/category-Nd: Likewise.
27786         * modules/unictype/category-Nl: Likewise.
27787         * modules/unictype/category-No: Likewise.
27788         * modules/unictype/category-P: Likewise.
27789         * modules/unictype/category-Pc: Likewise.
27790         * modules/unictype/category-Pd: Likewise.
27791         * modules/unictype/category-Pe: Likewise.
27792         * modules/unictype/category-Pf: Likewise.
27793         * modules/unictype/category-Pi: Likewise.
27794         * modules/unictype/category-Po: Likewise.
27795         * modules/unictype/category-Ps: Likewise.
27796         * modules/unictype/category-S: Likewise.
27797         * modules/unictype/category-Sc: Likewise.
27798         * modules/unictype/category-Sk: Likewise.
27799         * modules/unictype/category-Sm: Likewise.
27800         * modules/unictype/category-So: Likewise.
27801         * modules/unictype/category-Z: Likewise.
27802         * modules/unictype/category-Zl: Likewise.
27803         * modules/unictype/category-Zp: Likewise.
27804         * modules/unictype/category-Zs: Likewise.
27805         * modules/unictype/category-and: Likewise.
27806         * modules/unictype/category-and-not: Likewise.
27807         * modules/unictype/category-byname: Likewise.
27808         * modules/unictype/category-name: Likewise.
27809         * modules/unictype/category-none: Likewise.
27810         * modules/unictype/category-of: Likewise.
27811         * modules/unictype/category-or: Likewise.
27812         * modules/unictype/category-test: Likewise.
27813         * modules/unictype/combining-class: Likewise.
27814         * modules/unictype/ctype-alnum: Likewise.
27815         * modules/unictype/ctype-alpha: Likewise.
27816         * modules/unictype/ctype-blank: Likewise.
27817         * modules/unictype/ctype-cntrl: Likewise.
27818         * modules/unictype/ctype-digit: Likewise.
27819         * modules/unictype/ctype-graph: Likewise.
27820         * modules/unictype/ctype-lower: Likewise.
27821         * modules/unictype/ctype-print: Likewise.
27822         * modules/unictype/ctype-punct: Likewise.
27823         * modules/unictype/ctype-space: Likewise.
27824         * modules/unictype/ctype-upper: Likewise.
27825         * modules/unictype/ctype-xdigit: Likewise.
27826         * modules/unictype/decimal-digit: Likewise.
27827         * modules/unictype/digit: Likewise.
27828         * modules/unictype/mirror: Likewise.
27829         * modules/unictype/numeric: Likewise.
27830         * modules/unictype/property-alphabetic: Likewise.
27831         * modules/unictype/property-ascii-hex-digit: Likewise.
27832         * modules/unictype/property-bidi-arabic-digit: Likewise.
27833         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27834         * modules/unictype/property-bidi-block-separator: Likewise.
27835         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27836         * modules/unictype/property-bidi-common-separator: Likewise.
27837         * modules/unictype/property-bidi-control: Likewise.
27838         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27839         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27840         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27841         * modules/unictype/property-bidi-european-digit: Likewise.
27842         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27843         * modules/unictype/property-bidi-left-to-right: Likewise.
27844         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27845         * modules/unictype/property-bidi-other-neutral: Likewise.
27846         * modules/unictype/property-bidi-pdf: Likewise.
27847         * modules/unictype/property-bidi-segment-separator: Likewise.
27848         * modules/unictype/property-bidi-whitespace: Likewise.
27849         * modules/unictype/property-byname: Likewise.
27850         * modules/unictype/property-combining: Likewise.
27851         * modules/unictype/property-composite: Likewise.
27852         * modules/unictype/property-currency-symbol: Likewise.
27853         * modules/unictype/property-dash: Likewise.
27854         * modules/unictype/property-decimal-digit: Likewise.
27855         * modules/unictype/property-default-ignorable-code-point: Likewise.
27856         * modules/unictype/property-deprecated: Likewise.
27857         * modules/unictype/property-diacritic: Likewise.
27858         * modules/unictype/property-extender: Likewise.
27859         * modules/unictype/property-format-control: Likewise.
27860         * modules/unictype/property-grapheme-base: Likewise.
27861         * modules/unictype/property-grapheme-extend: Likewise.
27862         * modules/unictype/property-grapheme-link: Likewise.
27863         * modules/unictype/property-hex-digit: Likewise.
27864         * modules/unictype/property-hyphen: Likewise.
27865         * modules/unictype/property-id-continue: Likewise.
27866         * modules/unictype/property-id-start: Likewise.
27867         * modules/unictype/property-ideographic: Likewise.
27868         * modules/unictype/property-ids-binary-operator: Likewise.
27869         * modules/unictype/property-ids-trinary-operator: Likewise.
27870         * modules/unictype/property-ignorable-control: Likewise.
27871         * modules/unictype/property-iso-control: Likewise.
27872         * modules/unictype/property-join-control: Likewise.
27873         * modules/unictype/property-left-of-pair: Likewise.
27874         * modules/unictype/property-line-separator: Likewise.
27875         * modules/unictype/property-logical-order-exception: Likewise.
27876         * modules/unictype/property-lowercase: Likewise.
27877         * modules/unictype/property-math: Likewise.
27878         * modules/unictype/property-non-break: Likewise.
27879         * modules/unictype/property-not-a-character: Likewise.
27880         * modules/unictype/property-numeric: Likewise.
27881         * modules/unictype/property-other-alphabetic: Likewise.
27882         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27883         * modules/unictype/property-other-grapheme-extend: Likewise.
27884         * modules/unictype/property-other-id-continue: Likewise.
27885         * modules/unictype/property-other-id-start: Likewise.
27886         * modules/unictype/property-other-lowercase: Likewise.
27887         * modules/unictype/property-other-math: Likewise.
27888         * modules/unictype/property-other-uppercase: Likewise.
27889         * modules/unictype/property-paired-punctuation: Likewise.
27890         * modules/unictype/property-paragraph-separator: Likewise.
27891         * modules/unictype/property-pattern-syntax: Likewise.
27892         * modules/unictype/property-pattern-white-space: Likewise.
27893         * modules/unictype/property-private-use: Likewise.
27894         * modules/unictype/property-punctuation: Likewise.
27895         * modules/unictype/property-quotation-mark: Likewise.
27896         * modules/unictype/property-radical: Likewise.
27897         * modules/unictype/property-sentence-terminal: Likewise.
27898         * modules/unictype/property-soft-dotted: Likewise.
27899         * modules/unictype/property-space: Likewise.
27900         * modules/unictype/property-terminal-punctuation: Likewise.
27901         * modules/unictype/property-test: Likewise.
27902         * modules/unictype/property-titlecase: Likewise.
27903         * modules/unictype/property-unassigned-code-value: Likewise.
27904         * modules/unictype/property-unified-ideograph: Likewise.
27905         * modules/unictype/property-uppercase: Likewise.
27906         * modules/unictype/property-variation-selector: Likewise.
27907         * modules/unictype/property-white-space: Likewise.
27908         * modules/unictype/property-xid-continue: Likewise.
27909         * modules/unictype/property-xid-start: Likewise.
27910         * modules/unictype/property-zero-width: Likewise.
27911         * modules/unictype/scripts: Likewise.
27912         * modules/unictype/syntax-c-ident: Likewise.
27913         * modules/unictype/syntax-c-whitespace: Likewise.
27914         * modules/unictype/syntax-java-ident: Likewise.
27915         * modules/unictype/syntax-java-whitespace: Likewise.
27916         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27917         * modules/unilbrk/u8-width-linebreaks: Likewise.
27918         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27919         * modules/unilbrk/u16-width-linebreaks: Likewise.
27920         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27921         * modules/unilbrk/u32-width-linebreaks: Likewise.
27922         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27923         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27924         * modules/uniname/uniname: Likewise.
27925         * modules/uninorm/canonical-decomposition: Likewise.
27926         * modules/uninorm/composition: Likewise.
27927         * modules/uninorm/decomposing-form: Likewise.
27928         * modules/uninorm/decomposition: Likewise.
27929         * modules/uninorm/filter: Likewise.
27930         * modules/uninorm/nfc: Likewise.
27931         * modules/uninorm/nfd: Likewise.
27932         * modules/uninorm/nfkc: Likewise.
27933         * modules/uninorm/nfkd: Likewise.
27934         * modules/uninorm/u8-normalize: Likewise.
27935         * modules/uninorm/u8-normcmp: Likewise.
27936         * modules/uninorm/u8-normcoll: Likewise.
27937         * modules/uninorm/u8-normxfrm: Likewise.
27938         * modules/uninorm/u16-normalize: Likewise.
27939         * modules/uninorm/u16-normcmp: Likewise.
27940         * modules/uninorm/u16-normcoll: Likewise.
27941         * modules/uninorm/u16-normxfrm: Likewise.
27942         * modules/uninorm/u32-normalize: Likewise.
27943         * modules/uninorm/u32-normcmp: Likewise.
27944         * modules/uninorm/u32-normcoll: Likewise.
27945         * modules/uninorm/u32-normxfrm: Likewise.
27946         * modules/unistdio/u8-asnprintf: Likewise.
27947         * modules/unistdio/u8-asprintf: Likewise.
27948         * modules/unistdio/u8-snprintf: Likewise.
27949         * modules/unistdio/u8-sprintf: Likewise.
27950         * modules/unistdio/u8-u8-asnprintf: Likewise.
27951         * modules/unistdio/u8-u8-asprintf: Likewise.
27952         * modules/unistdio/u8-u8-snprintf: Likewise.
27953         * modules/unistdio/u8-u8-sprintf: Likewise.
27954         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27955         * modules/unistdio/u8-u8-vasprintf: Likewise.
27956         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27957         * modules/unistdio/u8-u8-vsprintf: Likewise.
27958         * modules/unistdio/u8-vasnprintf: Likewise.
27959         * modules/unistdio/u8-vasprintf: Likewise.
27960         * modules/unistdio/u8-vsnprintf: Likewise.
27961         * modules/unistdio/u8-vsprintf: Likewise.
27962         * modules/unistdio/u16-asnprintf: Likewise.
27963         * modules/unistdio/u16-asprintf: Likewise.
27964         * modules/unistdio/u16-snprintf: Likewise.
27965         * modules/unistdio/u16-sprintf: Likewise.
27966         * modules/unistdio/u16-u16-asnprintf: Likewise.
27967         * modules/unistdio/u16-u16-asprintf: Likewise.
27968         * modules/unistdio/u16-u16-snprintf: Likewise.
27969         * modules/unistdio/u16-u16-sprintf: Likewise.
27970         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27971         * modules/unistdio/u16-u16-vasprintf: Likewise.
27972         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27973         * modules/unistdio/u16-u16-vsprintf: Likewise.
27974         * modules/unistdio/u16-vasnprintf: Likewise.
27975         * modules/unistdio/u16-vasprintf: Likewise.
27976         * modules/unistdio/u16-vsnprintf: Likewise.
27977         * modules/unistdio/u16-vsprintf: Likewise.
27978         * modules/unistdio/u32-asnprintf: Likewise.
27979         * modules/unistdio/u32-asprintf: Likewise.
27980         * modules/unistdio/u32-snprintf: Likewise.
27981         * modules/unistdio/u32-sprintf: Likewise.
27982         * modules/unistdio/u32-u32-asnprintf: Likewise.
27983         * modules/unistdio/u32-u32-asprintf: Likewise.
27984         * modules/unistdio/u32-u32-snprintf: Likewise.
27985         * modules/unistdio/u32-u32-sprintf: Likewise.
27986         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27987         * modules/unistdio/u32-u32-vasprintf: Likewise.
27988         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27989         * modules/unistdio/u32-u32-vsprintf: Likewise.
27990         * modules/unistdio/u32-vasnprintf: Likewise.
27991         * modules/unistdio/u32-vasprintf: Likewise.
27992         * modules/unistdio/u32-vsnprintf: Likewise.
27993         * modules/unistdio/u32-vsprintf: Likewise.
27994         * modules/unistdio/ulc-asnprintf: Likewise.
27995         * modules/unistdio/ulc-asprintf: Likewise.
27996         * modules/unistdio/ulc-fprintf: Likewise.
27997         * modules/unistdio/ulc-snprintf: Likewise.
27998         * modules/unistdio/ulc-sprintf: Likewise.
27999         * modules/unistdio/ulc-vasnprintf: Likewise.
28000         * modules/unistdio/ulc-vasprintf: Likewise.
28001         * modules/unistdio/ulc-vfprintf: Likewise.
28002         * modules/unistdio/ulc-vsnprintf: Likewise.
28003         * modules/unistdio/ulc-vsprintf: Likewise.
28004         * modules/unistr/u8-check: Likewise.
28005         * modules/unistr/u8-chr: Likewise.
28006         * modules/unistr/u8-cmp: Likewise.
28007         * modules/unistr/u8-cmp2: Likewise.
28008         * modules/unistr/u8-cpy: Likewise.
28009         * modules/unistr/u8-cpy-alloc: Likewise.
28010         * modules/unistr/u8-endswith: Likewise.
28011         * modules/unistr/u8-mblen: Likewise.
28012         * modules/unistr/u8-mbsnlen: Likewise.
28013         * modules/unistr/u8-mbtouc: Likewise.
28014         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28015         * modules/unistr/u8-mbtoucr: Likewise.
28016         * modules/unistr/u8-move: Likewise.
28017         * modules/unistr/u8-next: Likewise.
28018         * modules/unistr/u8-prev: Likewise.
28019         * modules/unistr/u8-set: Likewise.
28020         * modules/unistr/u8-startswith: Likewise.
28021         * modules/unistr/u8-stpcpy: Likewise.
28022         * modules/unistr/u8-stpncpy: Likewise.
28023         * modules/unistr/u8-strcat: Likewise.
28024         * modules/unistr/u8-strchr: Likewise.
28025         * modules/unistr/u8-strcmp: Likewise.
28026         * modules/unistr/u8-strcoll: Likewise.
28027         * modules/unistr/u8-strcpy: Likewise.
28028         * modules/unistr/u8-strcspn: Likewise.
28029         * modules/unistr/u8-strdup: Likewise.
28030         * modules/unistr/u8-strlen: Likewise.
28031         * modules/unistr/u8-strmblen: Likewise.
28032         * modules/unistr/u8-strmbtouc: Likewise.
28033         * modules/unistr/u8-strncat: Likewise.
28034         * modules/unistr/u8-strncmp: Likewise.
28035         * modules/unistr/u8-strncpy: Likewise.
28036         * modules/unistr/u8-strnlen: Likewise.
28037         * modules/unistr/u8-strpbrk: Likewise.
28038         * modules/unistr/u8-strrchr: Likewise.
28039         * modules/unistr/u8-strspn: Likewise.
28040         * modules/unistr/u8-strstr: Likewise.
28041         * modules/unistr/u8-strtok: Likewise.
28042         * modules/unistr/u8-to-u16: Likewise.
28043         * modules/unistr/u8-to-u32: Likewise.
28044         * modules/unistr/u8-uctomb: Likewise.
28045         * modules/unistr/u16-check: Likewise.
28046         * modules/unistr/u16-chr: Likewise.
28047         * modules/unistr/u16-cmp: Likewise.
28048         * modules/unistr/u16-cmp2: Likewise.
28049         * modules/unistr/u16-cpy: Likewise.
28050         * modules/unistr/u16-cpy-alloc: Likewise.
28051         * modules/unistr/u16-endswith: Likewise.
28052         * modules/unistr/u16-mblen: Likewise.
28053         * modules/unistr/u16-mbsnlen: Likewise.
28054         * modules/unistr/u16-mbtouc: Likewise.
28055         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28056         * modules/unistr/u16-mbtoucr: Likewise.
28057         * modules/unistr/u16-move: Likewise.
28058         * modules/unistr/u16-next: Likewise.
28059         * modules/unistr/u16-prev: Likewise.
28060         * modules/unistr/u16-set: Likewise.
28061         * modules/unistr/u16-startswith: Likewise.
28062         * modules/unistr/u16-stpcpy: Likewise.
28063         * modules/unistr/u16-stpncpy: Likewise.
28064         * modules/unistr/u16-strcat: Likewise.
28065         * modules/unistr/u16-strchr: Likewise.
28066         * modules/unistr/u16-strcmp: Likewise.
28067         * modules/unistr/u16-strcoll: Likewise.
28068         * modules/unistr/u16-strcpy: Likewise.
28069         * modules/unistr/u16-strcspn: Likewise.
28070         * modules/unistr/u16-strdup: Likewise.
28071         * modules/unistr/u16-strlen: Likewise.
28072         * modules/unistr/u16-strmblen: Likewise.
28073         * modules/unistr/u16-strmbtouc: Likewise.
28074         * modules/unistr/u16-strncat: Likewise.
28075         * modules/unistr/u16-strncmp: Likewise.
28076         * modules/unistr/u16-strncpy: Likewise.
28077         * modules/unistr/u16-strnlen: Likewise.
28078         * modules/unistr/u16-strpbrk: Likewise.
28079         * modules/unistr/u16-strrchr: Likewise.
28080         * modules/unistr/u16-strspn: Likewise.
28081         * modules/unistr/u16-strstr: Likewise.
28082         * modules/unistr/u16-strtok: Likewise.
28083         * modules/unistr/u16-to-u32: Likewise.
28084         * modules/unistr/u16-to-u8: Likewise.
28085         * modules/unistr/u16-uctomb: Likewise.
28086         * modules/unistr/u32-check: Likewise.
28087         * modules/unistr/u32-chr: Likewise.
28088         * modules/unistr/u32-cmp: Likewise.
28089         * modules/unistr/u32-cmp2: Likewise.
28090         * modules/unistr/u32-cpy: Likewise.
28091         * modules/unistr/u32-cpy-alloc: Likewise.
28092         * modules/unistr/u32-endswith: Likewise.
28093         * modules/unistr/u32-mblen: Likewise.
28094         * modules/unistr/u32-mbsnlen: Likewise.
28095         * modules/unistr/u32-mbtouc: Likewise.
28096         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28097         * modules/unistr/u32-mbtoucr: Likewise.
28098         * modules/unistr/u32-move: Likewise.
28099         * modules/unistr/u32-next: Likewise.
28100         * modules/unistr/u32-prev: Likewise.
28101         * modules/unistr/u32-set: Likewise.
28102         * modules/unistr/u32-startswith: Likewise.
28103         * modules/unistr/u32-stpcpy: Likewise.
28104         * modules/unistr/u32-stpncpy: Likewise.
28105         * modules/unistr/u32-strcat: Likewise.
28106         * modules/unistr/u32-strchr: Likewise.
28107         * modules/unistr/u32-strcmp: Likewise.
28108         * modules/unistr/u32-strcoll: Likewise.
28109         * modules/unistr/u32-strcpy: Likewise.
28110         * modules/unistr/u32-strcspn: Likewise.
28111         * modules/unistr/u32-strdup: Likewise.
28112         * modules/unistr/u32-strlen: Likewise.
28113         * modules/unistr/u32-strmblen: Likewise.
28114         * modules/unistr/u32-strmbtouc: Likewise.
28115         * modules/unistr/u32-strncat: Likewise.
28116         * modules/unistr/u32-strncmp: Likewise.
28117         * modules/unistr/u32-strncpy: Likewise.
28118         * modules/unistr/u32-strnlen: Likewise.
28119         * modules/unistr/u32-strpbrk: Likewise.
28120         * modules/unistr/u32-strrchr: Likewise.
28121         * modules/unistr/u32-strspn: Likewise.
28122         * modules/unistr/u32-strstr: Likewise.
28123         * modules/unistr/u32-strtok: Likewise.
28124         * modules/unistr/u32-to-u16: Likewise.
28125         * modules/unistr/u32-to-u8: Likewise.
28126         * modules/unistr/u32-uctomb: Likewise.
28127         * modules/uniwbrk/u8-wordbreaks: Likewise.
28128         * modules/uniwbrk/u16-wordbreaks: Likewise.
28129         * modules/uniwbrk/u32-wordbreaks: Likewise.
28130         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28131         * modules/uniwbrk/wordbreak-property: Likewise.
28132         * modules/uniwidth/u8-strwidth: Likewise.
28133         * modules/uniwidth/u8-width: Likewise.
28134         * modules/uniwidth/u16-strwidth: Likewise.
28135         * modules/uniwidth/u16-width: Likewise.
28136         * modules/uniwidth/u32-strwidth: Likewise.
28137         * modules/uniwidth/u32-width: Likewise.
28138         * modules/uniwidth/width: Likewise.
28139         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28140         with $(LIBUNISTRING).
28141         * modules/unicase/ignorable-tests: Likewise.
28142         * modules/unicase/locale-language-tests: Likewise.
28143         * modules/unicase/tolower-tests: Likewise.
28144         * modules/unicase/totitle-tests: Likewise.
28145         * modules/unicase/toupper-tests: Likewise.
28146         * modules/unicase/u8-casecmp-tests: Likewise.
28147         * modules/unicase/u8-casecoll-tests: Likewise.
28148         * modules/unicase/u8-casefold-tests: Likewise.
28149         * modules/unicase/u8-is-cased-tests: Likewise.
28150         * modules/unicase/u8-is-casefolded-tests: Likewise.
28151         * modules/unicase/u8-is-lowercase-tests: Likewise.
28152         * modules/unicase/u8-is-titlecase-tests: Likewise.
28153         * modules/unicase/u8-is-uppercase-tests: Likewise.
28154         * modules/unicase/u8-tolower-tests: Likewise.
28155         * modules/unicase/u8-totitle-tests: Likewise.
28156         * modules/unicase/u8-toupper-tests: Likewise.
28157         * modules/unicase/u16-casecmp-tests: Likewise.
28158         * modules/unicase/u16-casecoll-tests: Likewise.
28159         * modules/unicase/u16-casefold-tests: Likewise.
28160         * modules/unicase/u16-is-cased-tests: Likewise.
28161         * modules/unicase/u16-is-casefolded-tests: Likewise.
28162         * modules/unicase/u16-is-lowercase-tests: Likewise.
28163         * modules/unicase/u16-is-titlecase-tests: Likewise.
28164         * modules/unicase/u16-is-uppercase-tests: Likewise.
28165         * modules/unicase/u16-tolower-tests: Likewise.
28166         * modules/unicase/u16-totitle-tests: Likewise.
28167         * modules/unicase/u16-toupper-tests: Likewise.
28168         * modules/unicase/u32-casecmp-tests: Likewise.
28169         * modules/unicase/u32-casecoll-tests: Likewise.
28170         * modules/unicase/u32-casefold-tests: Likewise.
28171         * modules/unicase/u32-is-cased-tests: Likewise.
28172         * modules/unicase/u32-is-casefolded-tests: Likewise.
28173         * modules/unicase/u32-is-lowercase-tests: Likewise.
28174         * modules/unicase/u32-is-titlecase-tests: Likewise.
28175         * modules/unicase/u32-is-uppercase-tests: Likewise.
28176         * modules/unicase/u32-tolower-tests: Likewise.
28177         * modules/unicase/u32-totitle-tests: Likewise.
28178         * modules/unicase/u32-toupper-tests: Likewise.
28179         * modules/unicase/ulc-casecmp-tests: Likewise.
28180         * modules/unicase/ulc-casecoll-tests: Likewise.
28181         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28182         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28183         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28184         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28185         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28186         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28187         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28188         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28189         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28190         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28191         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28192         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28193         * modules/unictype/bidicategory-byname-tests: Likewise.
28194         * modules/unictype/bidicategory-name-tests: Likewise.
28195         * modules/unictype/bidicategory-of-tests: Likewise.
28196         * modules/unictype/bidicategory-test-tests: Likewise.
28197         * modules/unictype/block-list-tests: Likewise.
28198         * modules/unictype/block-of-tests: Likewise.
28199         * modules/unictype/block-test-tests: Likewise.
28200         * modules/unictype/category-C-tests: Likewise.
28201         * modules/unictype/category-Cc-tests: Likewise.
28202         * modules/unictype/category-Cf-tests: Likewise.
28203         * modules/unictype/category-Cn-tests: Likewise.
28204         * modules/unictype/category-Co-tests: Likewise.
28205         * modules/unictype/category-Cs-tests: Likewise.
28206         * modules/unictype/category-L-tests: Likewise.
28207         * modules/unictype/category-Ll-tests: Likewise.
28208         * modules/unictype/category-Lm-tests: Likewise.
28209         * modules/unictype/category-Lo-tests: Likewise.
28210         * modules/unictype/category-Lt-tests: Likewise.
28211         * modules/unictype/category-Lu-tests: Likewise.
28212         * modules/unictype/category-M-tests: Likewise.
28213         * modules/unictype/category-Mc-tests: Likewise.
28214         * modules/unictype/category-Me-tests: Likewise.
28215         * modules/unictype/category-Mn-tests: Likewise.
28216         * modules/unictype/category-N-tests: Likewise.
28217         * modules/unictype/category-Nd-tests: Likewise.
28218         * modules/unictype/category-Nl-tests: Likewise.
28219         * modules/unictype/category-No-tests: Likewise.
28220         * modules/unictype/category-P-tests: Likewise.
28221         * modules/unictype/category-Pc-tests: Likewise.
28222         * modules/unictype/category-Pd-tests: Likewise.
28223         * modules/unictype/category-Pe-tests: Likewise.
28224         * modules/unictype/category-Pf-tests: Likewise.
28225         * modules/unictype/category-Pi-tests: Likewise.
28226         * modules/unictype/category-Po-tests: Likewise.
28227         * modules/unictype/category-Ps-tests: Likewise.
28228         * modules/unictype/category-S-tests: Likewise.
28229         * modules/unictype/category-Sc-tests: Likewise.
28230         * modules/unictype/category-Sk-tests: Likewise.
28231         * modules/unictype/category-Sm-tests: Likewise.
28232         * modules/unictype/category-So-tests: Likewise.
28233         * modules/unictype/category-Z-tests: Likewise.
28234         * modules/unictype/category-Zl-tests: Likewise.
28235         * modules/unictype/category-Zp-tests: Likewise.
28236         * modules/unictype/category-Zs-tests: Likewise.
28237         * modules/unictype/category-and-not-tests: Likewise.
28238         * modules/unictype/category-and-tests: Likewise.
28239         * modules/unictype/category-byname-tests: Likewise.
28240         * modules/unictype/category-name-tests: Likewise.
28241         * modules/unictype/category-none-tests: Likewise.
28242         * modules/unictype/category-of-tests: Likewise.
28243         * modules/unictype/category-or-tests: Likewise.
28244         * modules/unictype/category-test-withtable-tests: Likewise.
28245         * modules/unictype/combining-class-tests: Likewise.
28246         * modules/unictype/ctype-alnum-tests: Likewise.
28247         * modules/unictype/ctype-alpha-tests: Likewise.
28248         * modules/unictype/ctype-blank-tests: Likewise.
28249         * modules/unictype/ctype-cntrl-tests: Likewise.
28250         * modules/unictype/ctype-digit-tests: Likewise.
28251         * modules/unictype/ctype-graph-tests: Likewise.
28252         * modules/unictype/ctype-lower-tests: Likewise.
28253         * modules/unictype/ctype-print-tests: Likewise.
28254         * modules/unictype/ctype-punct-tests: Likewise.
28255         * modules/unictype/ctype-space-tests: Likewise.
28256         * modules/unictype/ctype-upper-tests: Likewise.
28257         * modules/unictype/ctype-xdigit-tests: Likewise.
28258         * modules/unictype/decimal-digit-tests: Likewise.
28259         * modules/unictype/digit-tests: Likewise.
28260         * modules/unictype/mirror-tests: Likewise.
28261         * modules/unictype/numeric-tests: Likewise.
28262         * modules/unictype/property-alphabetic-tests: Likewise.
28263         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28264         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28265         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28266         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28267         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28268         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28269         * modules/unictype/property-bidi-control-tests: Likewise.
28270         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28271         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28272         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28273         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28274         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28275         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28276         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28277         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28278         * modules/unictype/property-bidi-pdf-tests: Likewise.
28279         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28280         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28281         * modules/unictype/property-byname-tests: Likewise.
28282         * modules/unictype/property-combining-tests: Likewise.
28283         * modules/unictype/property-composite-tests: Likewise.
28284         * modules/unictype/property-currency-symbol-tests: Likewise.
28285         * modules/unictype/property-dash-tests: Likewise.
28286         * modules/unictype/property-decimal-digit-tests: Likewise.
28287         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28288         * modules/unictype/property-deprecated-tests: Likewise.
28289         * modules/unictype/property-diacritic-tests: Likewise.
28290         * modules/unictype/property-extender-tests: Likewise.
28291         * modules/unictype/property-format-control-tests: Likewise.
28292         * modules/unictype/property-grapheme-base-tests: Likewise.
28293         * modules/unictype/property-grapheme-extend-tests: Likewise.
28294         * modules/unictype/property-grapheme-link-tests: Likewise.
28295         * modules/unictype/property-hex-digit-tests: Likewise.
28296         * modules/unictype/property-hyphen-tests: Likewise.
28297         * modules/unictype/property-id-continue-tests: Likewise.
28298         * modules/unictype/property-id-start-tests: Likewise.
28299         * modules/unictype/property-ideographic-tests: Likewise.
28300         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28301         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28302         * modules/unictype/property-ignorable-control-tests: Likewise.
28303         * modules/unictype/property-iso-control-tests: Likewise.
28304         * modules/unictype/property-join-control-tests: Likewise.
28305         * modules/unictype/property-left-of-pair-tests: Likewise.
28306         * modules/unictype/property-line-separator-tests: Likewise.
28307         * modules/unictype/property-logical-order-exception-tests: Likewise.
28308         * modules/unictype/property-lowercase-tests: Likewise.
28309         * modules/unictype/property-math-tests: Likewise.
28310         * modules/unictype/property-non-break-tests: Likewise.
28311         * modules/unictype/property-not-a-character-tests: Likewise.
28312         * modules/unictype/property-numeric-tests: Likewise.
28313         * modules/unictype/property-other-alphabetic-tests: Likewise.
28314         * modules/unictype/property-other-default-ignorable-code-point-tests:
28315         Likewise.
28316         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28317         * modules/unictype/property-other-id-continue-tests: Likewise.
28318         * modules/unictype/property-other-id-start-tests: Likewise.
28319         * modules/unictype/property-other-lowercase-tests: Likewise.
28320         * modules/unictype/property-other-math-tests: Likewise.
28321         * modules/unictype/property-other-uppercase-tests: Likewise.
28322         * modules/unictype/property-paired-punctuation-tests: Likewise.
28323         * modules/unictype/property-paragraph-separator-tests: Likewise.
28324         * modules/unictype/property-pattern-syntax-tests: Likewise.
28325         * modules/unictype/property-pattern-white-space-tests: Likewise.
28326         * modules/unictype/property-private-use-tests: Likewise.
28327         * modules/unictype/property-punctuation-tests: Likewise.
28328         * modules/unictype/property-quotation-mark-tests: Likewise.
28329         * modules/unictype/property-radical-tests: Likewise.
28330         * modules/unictype/property-sentence-terminal-tests: Likewise.
28331         * modules/unictype/property-soft-dotted-tests: Likewise.
28332         * modules/unictype/property-space-tests: Likewise.
28333         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28334         * modules/unictype/property-test-tests: Likewise.
28335         * modules/unictype/property-titlecase-tests: Likewise.
28336         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28337         * modules/unictype/property-unified-ideograph-tests: Likewise.
28338         * modules/unictype/property-uppercase-tests: Likewise.
28339         * modules/unictype/property-variation-selector-tests: Likewise.
28340         * modules/unictype/property-white-space-tests: Likewise.
28341         * modules/unictype/property-xid-continue-tests: Likewise.
28342         * modules/unictype/property-xid-start-tests: Likewise.
28343         * modules/unictype/property-zero-width-tests: Likewise.
28344         * modules/unictype/scripts-tests: Likewise.
28345         * modules/unictype/syntax-c-ident-tests: Likewise.
28346         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28347         * modules/unictype/syntax-java-ident-tests: Likewise.
28348         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28349         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28350         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28351         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28352         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28353         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28354         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28355         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28356         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28357         * modules/uniname/uniname-tests: Likewise.
28358         * modules/uninorm/canonical-decomposition-tests: Likewise.
28359         * modules/uninorm/compat-decomposition-tests: Likewise.
28360         * modules/uninorm/composition-tests: Likewise.
28361         * modules/uninorm/decomposing-form-tests: Likewise.
28362         * modules/uninorm/decomposition-tests: Likewise.
28363         * modules/uninorm/filter-tests: Likewise.
28364         * modules/uninorm/nfc-tests: Likewise.
28365         * modules/uninorm/nfd-tests: Likewise.
28366         * modules/uninorm/nfkc-tests: Likewise.
28367         * modules/uninorm/nfkd-tests: Likewise.
28368         * modules/uninorm/u8-normcmp-tests: Likewise.
28369         * modules/uninorm/u8-normcoll-tests: Likewise.
28370         * modules/uninorm/u16-normcmp-tests: Likewise.
28371         * modules/uninorm/u16-normcoll-tests: Likewise.
28372         * modules/uninorm/u32-normcmp-tests: Likewise.
28373         * modules/uninorm/u32-normcoll-tests: Likewise.
28374         * modules/unistdio/u8-asnprintf-tests: Likewise.
28375         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28376         * modules/unistdio/u8-vasprintf-tests: Likewise.
28377         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28378         * modules/unistdio/u8-vsprintf-tests: Likewise.
28379         * modules/unistdio/u16-asnprintf-tests: Likewise.
28380         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28381         * modules/unistdio/u16-vasprintf-tests: Likewise.
28382         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28383         * modules/unistdio/u16-vsprintf-tests: Likewise.
28384         * modules/unistdio/u32-asnprintf-tests: Likewise.
28385         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28386         * modules/unistdio/u32-vasprintf-tests: Likewise.
28387         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28388         * modules/unistdio/u32-vsprintf-tests: Likewise.
28389         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28390         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28391         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28392         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28393         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28394         * modules/unistr/u8-check-tests: Likewise.
28395         * modules/unistr/u8-chr-tests: Likewise.
28396         * modules/unistr/u8-cmp-tests: Likewise.
28397         * modules/unistr/u8-cmp2-tests: Likewise.
28398         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28399         * modules/unistr/u8-cpy-tests: Likewise.
28400         * modules/unistr/u8-mblen-tests: Likewise.
28401         * modules/unistr/u8-mbsnlen-tests: Likewise.
28402         * modules/unistr/u8-mbtouc-tests: Likewise.
28403         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28404         * modules/unistr/u8-mbtoucr-tests: Likewise.
28405         * modules/unistr/u8-move-tests: Likewise.
28406         * modules/unistr/u8-next-tests: Likewise.
28407         * modules/unistr/u8-prev-tests: Likewise.
28408         * modules/unistr/u8-set-tests: Likewise.
28409         * modules/unistr/u8-stpcpy-tests: Likewise.
28410         * modules/unistr/u8-stpncpy-tests: Likewise.
28411         * modules/unistr/u8-strcat-tests: Likewise.
28412         * modules/unistr/u8-strcmp-tests: Likewise.
28413         * modules/unistr/u8-strcoll-tests: Likewise.
28414         * modules/unistr/u8-strcpy-tests: Likewise.
28415         * modules/unistr/u8-strdup-tests: Likewise.
28416         * modules/unistr/u8-strlen-tests: Likewise.
28417         * modules/unistr/u8-strmblen-tests: Likewise.
28418         * modules/unistr/u8-strmbtouc-tests: Likewise.
28419         * modules/unistr/u8-strncat-tests: Likewise.
28420         * modules/unistr/u8-strncmp-tests: Likewise.
28421         * modules/unistr/u8-strncpy-tests: Likewise.
28422         * modules/unistr/u8-strnlen-tests: Likewise.
28423         * modules/unistr/u8-to-u16-tests: Likewise.
28424         * modules/unistr/u8-to-u32-tests: Likewise.
28425         * modules/unistr/u8-uctomb-tests: Likewise.
28426         * modules/unistr/u16-check-tests: Likewise.
28427         * modules/unistr/u16-chr-tests: Likewise.
28428         * modules/unistr/u16-cmp-tests: Likewise.
28429         * modules/unistr/u16-cmp2-tests: Likewise.
28430         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28431         * modules/unistr/u16-cpy-tests: Likewise.
28432         * modules/unistr/u16-mblen-tests: Likewise.
28433         * modules/unistr/u16-mbsnlen-tests: Likewise.
28434         * modules/unistr/u16-mbtouc-tests: Likewise.
28435         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28436         * modules/unistr/u16-mbtoucr-tests: Likewise.
28437         * modules/unistr/u16-move-tests: Likewise.
28438         * modules/unistr/u16-next-tests: Likewise.
28439         * modules/unistr/u16-prev-tests: Likewise.
28440         * modules/unistr/u16-set-tests: Likewise.
28441         * modules/unistr/u16-stpcpy-tests: Likewise.
28442         * modules/unistr/u16-stpncpy-tests: Likewise.
28443         * modules/unistr/u16-strcat-tests: Likewise.
28444         * modules/unistr/u16-strcmp-tests: Likewise.
28445         * modules/unistr/u16-strcoll-tests: Likewise.
28446         * modules/unistr/u16-strcpy-tests: Likewise.
28447         * modules/unistr/u16-strdup-tests: Likewise.
28448         * modules/unistr/u16-strlen-tests: Likewise.
28449         * modules/unistr/u16-strmblen-tests: Likewise.
28450         * modules/unistr/u16-strmbtouc-tests: Likewise.
28451         * modules/unistr/u16-strncat-tests: Likewise.
28452         * modules/unistr/u16-strncmp-tests: Likewise.
28453         * modules/unistr/u16-strncpy-tests: Likewise.
28454         * modules/unistr/u16-strnlen-tests: Likewise.
28455         * modules/unistr/u16-to-u32-tests: Likewise.
28456         * modules/unistr/u16-to-u8-tests: Likewise.
28457         * modules/unistr/u16-uctomb-tests: Likewise.
28458         * modules/unistr/u32-check-tests: Likewise.
28459         * modules/unistr/u32-chr-tests: Likewise.
28460         * modules/unistr/u32-cmp-tests: Likewise.
28461         * modules/unistr/u32-cmp2-tests: Likewise.
28462         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28463         * modules/unistr/u32-cpy-tests: Likewise.
28464         * modules/unistr/u32-mblen-tests: Likewise.
28465         * modules/unistr/u32-mbsnlen-tests: Likewise.
28466         * modules/unistr/u32-mbtouc-tests: Likewise.
28467         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28468         * modules/unistr/u32-mbtoucr-tests: Likewise.
28469         * modules/unistr/u32-move-tests: Likewise.
28470         * modules/unistr/u32-next-tests: Likewise.
28471         * modules/unistr/u32-prev-tests: Likewise.
28472         * modules/unistr/u32-set-tests: Likewise.
28473         * modules/unistr/u32-stpcpy-tests: Likewise.
28474         * modules/unistr/u32-stpncpy-tests: Likewise.
28475         * modules/unistr/u32-strcat-tests: Likewise.
28476         * modules/unistr/u32-strcmp-tests: Likewise.
28477         * modules/unistr/u32-strcoll-tests: Likewise.
28478         * modules/unistr/u32-strcpy-tests: Likewise.
28479         * modules/unistr/u32-strdup-tests: Likewise.
28480         * modules/unistr/u32-strlen-tests: Likewise.
28481         * modules/unistr/u32-strmblen-tests: Likewise.
28482         * modules/unistr/u32-strmbtouc-tests: Likewise.
28483         * modules/unistr/u32-strncat-tests: Likewise.
28484         * modules/unistr/u32-strncmp-tests: Likewise.
28485         * modules/unistr/u32-strncpy-tests: Likewise.
28486         * modules/unistr/u32-strnlen-tests: Likewise.
28487         * modules/unistr/u32-to-u16-tests: Likewise.
28488         * modules/unistr/u32-to-u8-tests: Likewise.
28489         * modules/unistr/u32-uctomb-tests: Likewise.
28490         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28491         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28492         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28493         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28494         * modules/uniwidth/u8-strwidth-tests: Likewise.
28495         * modules/uniwidth/u8-width-tests: Likewise.
28496         * modules/uniwidth/u16-strwidth-tests: Likewise.
28497         * modules/uniwidth/u16-width-tests: Likewise.
28498         * modules/uniwidth/u32-strwidth-tests: Likewise.
28499         * modules/uniwidth/u32-width-tests: Likewise.
28500         * modules/uniwidth/width-tests: Likewise.
28501
28502 2010-05-18  Richard Jones  <rjones@redhat.com>
28503
28504         doc: users.txt: list hivex
28505         * users.txt: Add hivex.
28506
28507 2010-05-18  Richard Jones  <rjones@redhat.com>
28508
28509         doc: users.txt: list febootstrap
28510         * users.txt: Add febootstrap.
28511
28512 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28513
28514         bootstrap: fix an error when gnulib is not used as a git submodule
28515         * build-aux/bootstrap (gnulib_path): If its length is zero then
28516         assign "gnulib" to it.
28517         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28518
28519 2010-05-16  Bruno Haible  <bruno@clisp.org>
28520
28521         Avoid autoconf warnings about AM_ICONV.
28522         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28523         2.64.
28524
28525 2010-05-16  Bruno Haible  <bruno@clisp.org>
28526
28527         absolute-header: Make the macro usable in more situations.
28528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28529         from gl_ABSOLUTE_HEADER.
28530         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28531
28532 2010-05-16  James Youngman  <jay@gnu.org>
28533
28534         doc: update users.txt
28535         * users.txt: Add CSSC.
28536
28537 2010-05-16  Jim Meyering  <meyering@redhat.com>
28538
28539         init.sh: fix an error in the previous change; add more comments
28540         * tests/init.sh: Compare exit code in loop against 9, not 2.
28541         Patch by Bruno Haible.
28542         Make the two tests more similar by adding an empty "then" clause.
28543         Add comments.
28544
28545         init.sh: avoid unnecessary shell re-exec
28546         * tests/init.sh: Improve the re-exec-required check to first test the
28547         current shell.  If it passes the test, do not search for a shell that
28548         does pass, and do not re-exec.  This test is particularly contorted to
28549         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28550         of $(...) evokes a syntax error and causes immediate shell exit with
28551         status 2.  Bruno Haible reported that the re-exec made it impossible
28552         to single-step through any init.sh-using script.
28553
28554 2010-05-16  Bruno Haible  <bruno@clisp.org>
28555
28556         Fix collision between gnulib's and libintl's printf replacements.
28557         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28558         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28559         (printf): When using GNU C, map the __printf__ function to rpl_printf
28560         via __asm__. When not using GNU C, define rpl_printf instead of
28561         __printf__.
28562         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28563         commit.
28564         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28565         commit.
28566         * m4/asm-underscore.m4: New file.
28567         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28568         * modules/stdio (Files): Add m4/asm-underscore.m4.
28569         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28570         Reported by Ben Pfaff.
28571
28572 2010-05-16  Bruno Haible  <bruno@clisp.org>
28573
28574         verify: Avoid skipping the test on openSUSE 11.0.
28575         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28576
28577 2010-05-13  Bruno Haible  <bruno@clisp.org>
28578
28579         Avoid useless warnings from G++.
28580         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28581         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28582         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28583
28584 2010-05-11  Jim Meyering  <meyering@redhat.com>
28585
28586         maint.mk: tweak preceding change
28587         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28588         regexps tighter by anchoring at EOL, and make the new group "shy"
28589         for slightly decreased overhead.
28590
28591 2010-05-11  Eric Blake  <eblake@redhat.com>
28592
28593         maint.mk: gnulib doesn't guarantee NSIG
28594         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28595
28596 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28597
28598         test-pwrite.c: Remove unused variable declaration.
28599         * tests/test-pwrite.c (main): Remove read_buf declaration.
28600
28601         Remove useless test-pwrite.sh file.
28602         * tests/test-pwrite.sh: Delete file.
28603         * modules/pwrite-tests: Remove references.
28604         Reported by Bruno Haible.
28605
28606 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28607
28608         init.sh: fix a typo
28609         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28610
28611 2010-05-10  Jim Meyering  <meyering@redhat.com>
28612
28613         maint.mk: avoid using a temporary file in the always-defined-macros check
28614         * top/maint.mk (.re-defmac): Remove rule.
28615         (gl_trap_): Remove definition.
28616         (sc_prohibit_always-defined_macros): Rewrite not to create and
28617         depend on a temporary file.  Instead, depend on GNU grep's ability
28618         to read a list of regular expressions from stdin when given "-f -".
28619
28620 2010-05-09  Bruno Haible  <bruno@clisp.org>
28621
28622         Update to GNU gettext 0.18, part 1.
28623         * m4/gettext.m4: Update to GNU gettext 0.18.
28624         * m4/intl.m4: Likewise.
28625         * m4/po.m4: Likewise.
28626         * modules/gettext (Files): Add m4/fcntl-o.m4.
28627         (configure.ac): Require gettext infrastructure from version 0.18.
28628
28629 2010-05-09  Jim Meyering  <meyering@redhat.com>
28630
28631         init.sh: enable MALLOC_PERTURB_
28632         * tests/init.sh: Enable glibc's malloc-perturbing option.
28633
28634         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28635         With my recent change in init.sh from the two-line form:
28636             -#   : ${srcdir=.}
28637             -#   . "$srcdir/init.sh"; path_prepend_ .
28638             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28639         I noticed that using the one-line form would cause this test
28640         to fail with a false-positive, or to stop working altogether,
28641         depending on whether help-version changed or all the tests did.
28642         * top/maint.mk (_hv_regex): Remove this definition.
28643         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28644         (_hv_regex_strong): Use a stronger regex to check for conformance.
28645         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28646         Give a separate diagnostic for lack of conforming use.
28647
28648         maint.mk: prohibit definition of symbols defined by gnulib
28649         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28650         definition of symbols defined by gnulib.
28651
28652 2010-05-09  Bruno Haible  <bruno@clisp.org>
28653
28654         acl: Avoid test failure on Cygwin-hosted mingw.
28655         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28656
28657 2010-05-09  Bruno Haible  <bruno@clisp.org>
28658
28659         error: Use system's fcntl function.
28660         * lib/error.c (fcntl): Undefine.
28661
28662 2010-05-09  Jim Meyering  <meyering@redhat.com>
28663
28664         verify: adjust formatting to be more consistent
28665         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28666         argument-list '('s, and after one comma.
28667
28668 2010-05-09  Bruno Haible  <bruno@clisp.org>
28669
28670         error: More reliable output on mingw.
28671         * lib/error.c: Include <windows.h>.
28672         (is_open): New function.
28673         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28674         defined.
28675
28676 2010-05-09  Bruno Haible  <bruno@clisp.org>
28677
28678         vasnprintf: Fix syntax errors in libintl build on mingw.
28679         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28680         pad_ourselves and prec_ourselves after use.
28681
28682 2010-05-08  Bruno Haible  <bruno@clisp.org>
28683
28684         * lib/config.charset: Update comments for Cygwin 1.7.
28685         * lib/localcharset.c: Likewise.
28686
28687 2010-05-07  Jim Meyering  <meyering@redhat.com>
28688
28689         init.sh: improve comments
28690         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28691         . "${srcdir=.}/init.sh"; path_prepend_ .
28692         Add a note about path_prepend_ and the alternative of using
28693         TESTS_ENVIRONMENT.
28694
28695 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28696
28697         exclude: Unescape hashed patterns in wildcard mode.
28698         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28699         to the hash list.
28700         * tests/test-exclude8.sh: New test case.
28701         * modules/exclude-tests: Add new test.
28702
28703 2010-05-05  Eric Blake  <eblake@redhat.com>
28704
28705         verify: automate tests
28706         * modules/verify-tests: New module.
28707         * tests/test-verify.sh: New file.
28708         * tests/test-verify.c: Guard each negative test with a unique id.
28709         Also avoid warning about unused left hand of comma expressions.
28710
28711 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28712
28713         Further improvements to verify.h, suggested by Eric Blake.
28714         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28715         the GL_* versions, to avoid collision with OpenGL.
28716         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28717         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28718         than testing merely whether it's defined.
28719
28720         Modify verify.h to pacify gcc -Wredundant_decls.
28721         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28722         These use the prefix "GL_" since they're likely to be useful elsewhere.
28723         We may need to break them out into a different .h file.
28724         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28725         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28726         of verify_function__.
28727
28728 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28729
28730         Tests for module pwrite.
28731         * modules/pwrite-tests: New file.
28732         * tests/test-pwrite.sh: New file.
28733         * tests/test-pwrite.c: New file.
28734
28735         New module pwrite.
28736         * lib/unistd.in.h (pwrite): New declaration.
28737         * lib/pwrite.c: New file, from glibc with modifications.
28738         * m4/pwrite.m4: New file.
28739         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28740         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28741         REPLACE_PWRITE.
28742         * modules/pwrite: New file.
28743         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28744         REPLACE_PWRITE.
28745         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28746         * doc/posix-functions/pwrite.texi: Mention the new module.
28747
28748 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28749
28750         pread: Update documentation.
28751         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28752
28753 2010-05-04  Eric Blake  <eblake@redhat.com>
28754
28755         docs: update cygwin progress
28756         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28757         this bug.
28758         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28759         Added in cygwin 1.7.2.
28760         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28761         Likewise.
28762         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28763         Likewise.
28764         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28765         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28766         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28767         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28768         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28769         Mention nproc module.
28770         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28771         bug in cygwin 1.7.5 addition.
28772         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28773         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28774         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28775         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28776         1.7.5.
28777         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28778         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28779         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28780         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28781         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28782         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28783         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28784         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28785         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28786         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28787         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28788         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28789         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28790         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28791         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28792         Likewise.
28793         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28794         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28795         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28796         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28797         Likewise.
28798         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28799         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28800         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28801         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28802         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28803         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28804         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28805         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28806         Likewise.
28807         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28808         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28809         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28810         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28811         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28812         Likewise.
28813         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28814         Likewise.
28815         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28816         Likewise.
28817         * doc/glibc-functions/xdrrec_endofrecord.texi
28818         (xdrrec_endofrecord): Likewise.
28819         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28820         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28821         Likewise.
28822         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28823         Likewise.
28824
28825 2010-05-04  Jim Meyering  <meyering@redhat.com>
28826
28827         gendocs.sh: make its "-s FILE" option more useful
28828         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28829         $PACKAGE to reflect the probably-different basename of "FILE".
28830
28831 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28832
28833         bootstrap: don't ignore download_po_files failure
28834         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28835         failure.
28836
28837 2010-05-03  Jim Meyering  <meyering@redhat.com>
28838
28839         maint.mk: allow to pass options to gendocs.sh
28840         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28841         (gendocs_options_): New overridable variable.
28842
28843         gnu-web-doc-update: don't ignore configure or build failure
28844         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28845
28846         announce-gen: backslash-escape '@'s in --help output
28847         * build-aux/announce-gen: Fix syntax errors.
28848
28849         maint.mk, announce-gen: allow project-specific announcement mail headers
28850         * top/maint.mk (translation_project_): Define default.
28851         (announcement_Cc_, announcement_mail_headers_): Likewise.
28852         (announcement): Invoke announce-gen with new --mail-headers option.
28853         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28854
28855         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28856         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28857         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28858         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28859         line in the "err2" output file when running "make check" in verbose
28860         mode (i.e., with set -x enabled).
28861
28862 2010-05-03  Bruno Haible  <bruno@clisp.org>
28863
28864         wctob: Fix for weird platforms.
28865         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28866         argument value.
28867
28868 2010-05-03  Jim Meyering  <meyering@redhat.com>
28869
28870         maint.mk: prohibit unwarranted use of <strings.h>
28871         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28872         strings.h in a file that does not also use strcasecmp, strncasecmp,
28873         ffs or ffsll.
28874
28875         maint.mk: remove obsolete comments
28876         * top/maint.mk: Remove stale, commented-out rules.
28877
28878 2010-05-02  Bruno Haible  <bruno@clisp.org>
28879
28880         wcwidth: Declare also when it's aliased.
28881         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28882         macro.
28883
28884 2010-05-02  Bruno Haible  <bruno@clisp.org>
28885
28886         Fix regression from 2010-04-25.
28887         * gnulib-tool (func_modules_transitive_closure): Check the status of
28888         all modules, not only of the tests that are of the form foo-tests where
28889         foo is a module.
28890
28891 2010-05-02  Bruno Haible  <bruno@clisp.org>
28892
28893         wctob: Work around nasty Cygwin 1.7.2 bug.
28894         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28895         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28896
28897 2010-05-01  Bruno Haible  <bruno@clisp.org>
28898
28899         fpurge: Sharper test.
28900         * tests/test-fpurge.c (main): Add one more ftell check.
28901         * modules/fpurge-tests (Depends-on): Add ftell.
28902         Suggested by Eric Blake.
28903
28904 2010-05-01  Bruno Haible  <bruno@clisp.org>
28905
28906         ftello: Another test.
28907         * tests/test-ftello3.c: New file.
28908         * modules/ftello-tests (Files): Add it.
28909         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28910         MOSTLYCLEANFILES.
28911
28912         ftell: Another test.
28913         * tests/test-ftell3.c: New file.
28914         * modules/ftell-tests (Files): Add it.
28915         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28916         MOSTLYCLEANFILES.
28917
28918 2010-05-01  Bruno Haible  <bruno@clisp.org>
28919
28920         ftell, ftello: Work around Solaris bug.
28921         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28922         * lib/ftello.c: Include stdio-impl.h.
28923         (ftello): On Solaris, when _IOWRT is set, compute the result without
28924         looking at _IOREAD.
28925         * modules/ftello (Files): Add lib/stdio-impl.h.
28926         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28927         * doc/posix-functions/ftello.texi: Likewise.
28928         Reported by Eric Blake.
28929
28930 2010-05-01  Bruno Haible  <bruno@clisp.org>
28931
28932         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28933         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28934         the _IOWRT flag is also set.
28935
28936 2010-05-01  Bruno Haible  <bruno@clisp.org>
28937
28938         Fix doc about a HP-UX stdio bug.
28939         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28940         * doc/posix-functions/ftello.texi: Likewise.
28941
28942 2010-05-01  Bruno Haible  <bruno@clisp.org>
28943
28944         lseek test: Fix failure on Solaris.
28945         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28946         output.
28947
28948 2010-04-30  Jim Meyering  <meyering@redhat.com>
28949
28950         bootstrap: don't ignore failure to generate po*/Makevars
28951         * build-aux/bootstrap (with_gettext): Don't ignore failure
28952         to create po/Makevars or runtime-po/Makevars.
28953
28954 2010-04-29  Eric Blake  <eblake@redhat.com>
28955
28956         headers: relax license to LGPLv2+
28957         * modules/fcntl-h (License): Relax license.
28958         * modules/getopt-posix (License): Likewise.
28959         * modules/locale (License): Likewise.
28960         * modules/math (License): Likewise.
28961         * modules/pty (License): Likewise.
28962         * modules/sched (License): Likewise.
28963         * modules/search (License): Likewise.
28964         * modules/spawn (License): Likewise.
28965         * modules/stdarg (License): Likewise.
28966         * modules/sysexits (License): Likewise.
28967
28968 2010-04-29  Jim Meyering  <meyering@redhat.com>
28969
28970         inttypes: relax license to LGPLv2+
28971         * modules/inttypes (License): Relax license.
28972
28973 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28974
28975         * top/maint.mk (indent): Run twice to produce idempotent results.
28976
28977 2010-04-28  Bruno Haible  <bruno@clisp.org>
28978
28979         getdate: Generate getdate.c in the source directory.
28980         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28981         MOSTLYCLEANFILES.
28982         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28983
28984 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28985
28986         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28987         is not declared as a const *; avoid warnings in that case.
28988
28989 2010-04-28  Eric Blake  <eblake@redhat.com>
28990
28991         canonicalize-lgpl: avoid compiler warning
28992         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28993         declaration' / 'extraneous semicolon' warning with some compilers.
28994         Reported by Andreas Gruenbacher.
28995
28996 2010-04-28  Jim Meyering  <meyering@redhat.com>
28997
28998         init.sh: ensure a more reliable exit status when exiting via trap
28999         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29000         Inspired by patches from Dmitry V. Levin.
29001         Also trap on signal 3 (SIGQUIT).
29002
29003 2010-04-27  Bruno Haible  <bruno@clisp.org>
29004
29005         Update doc about utimes().
29006         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29007         'utimens' module.
29008         Reported by Andreas Gruenbacher <agruen@suse.de>.
29009
29010 2010-04-27  Eric Blake  <eblake@redhat.com>
29011
29012         full-read, full-write: relax license
29013         * modules/full-read (License): Drop to LGPLv2+.
29014         * modules/full-write (License): Likewise.
29015         * modules/safe-read (License): Likewise.
29016         * modules/safe-write (License): Likewise.
29017
29018         pthread: mention library for linking
29019         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29020
29021 2010-04-27  Jim Meyering  <meyering@redhat.com>
29022
29023         maint.mk: fix a bug introduced in last change
29024         * top/maint.mk (gl_assured_headers_): Now that all names are on
29025         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29026         is not anchored to end of word, it should be adequate.
29027
29028         maint.mk: avoid side-effect in latest syntax-check
29029         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29030         to run commands via $(shell...), and hence to incur cost only when
29031         the new rule is actually run.
29032
29033         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29034         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29035         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29036         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29037         (gl_assured_headers_, az_, AZ_): Define.
29038         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29039
29040 2010-04-26  Jim Meyering  <jim@meyering.net>
29041             Bruno Haible  <bruno@clisp.org>
29042
29043         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29044         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29045         Prompted by an exchange with Gilles Espinasse.
29046
29047 2010-04-26  Jim Meyering  <meyering@redhat.com>
29048
29049         git-version-gen: aesthetic tweak
29050         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29051         so that the command remains on a single line.
29052
29053 2010-04-26  Eric Blake  <eblake@redhat.com>
29054
29055         git-version-gen: allow use on EBCDIC hosts
29056         * build-aux/git-version-gen (dirty): Use literal rather than tying
29057         ourselves to ascii.
29058         Reported by Steve Goetze.
29059
29060 2010-04-25  Bruno Haible  <bruno@clisp.org>
29061
29062         netdb: Add support for GNULIB_POSIXCHECK.
29063         * lib/netdb.in.h: Include warn-on-use.h.
29064         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29065         functions are used when GNULIB_POSIXCHECK is defined and the
29066         getaddrinfo module is not in use.
29067         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29068         freeaddrinfo, gai_strerror, getnameinfo are declared.
29069         * modules/netdb (Depends-on): Add warn-on-use.
29070         (Makefile.am): Include warn-on-use.h in netdb.h.
29071
29072 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29073
29074         build: avoid "make check" failure without .git/ directory
29075         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29076         there is no .git/ directory.
29077
29078 2010-04-25  Bruno Haible  <bruno@clisp.org>
29079
29080         ptsname: Fix misuse of ttyname_r.
29081         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29082         of errno.
29083
29084 2010-04-25  Bruno Haible  <bruno@clisp.org>
29085
29086         ttyname_r: Make it work on Solaris 10.
29087         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29088         if the system function has the POSIX declaration. Test whether the
29089         function fails if the buffer is less than 128 bytes large.
29090         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29091         system's ttyname_r function. Provide a reasonably large buffer.
29092         * modules/ttyname_r (Depends-on): Add extensions.
29093         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29094
29095 2010-04-25  Bruno Haible  <bruno@clisp.org>
29096
29097         Use the 'extensions' module for some more functions on Solaris.
29098         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29099         module.
29100         * doc/posix-functions/ctime_r.texi: Likewise.
29101         * doc/posix-functions/getgrgid_r.texi: Likewise.
29102         * doc/posix-functions/getgrnam_r.texi: Likewise.
29103         * doc/posix-functions/getpwnam_r.texi: Likewise.
29104         * doc/posix-functions/getpwuid_r.texi: Likewise.
29105         * doc/posix-functions/readdir_r.texi: Likewise.
29106         * doc/posix-functions/sigwait.texi: Likewise.
29107         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29108         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29109
29110 2010-04-25  Bruno Haible  <bruno@clisp.org>
29111
29112         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29113         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29114         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29115         * lib/ttyname_r.c: Include <limits.h>.
29116         (ttyname_r): Define using the system's ttyname_r function, if it exists
29117         and not on Solaris.
29118         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29119         set.
29120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29121         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29122         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29123         Reported by Simon Josefsson.
29124
29125 2010-04-25  Bruno Haible  <bruno@clisp.org>
29126
29127         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29128         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29129         * doc/posix-functions/ctime_r.texi: Likewise.
29130         * doc/posix-functions/getgrgid_r.texi: Likewise.
29131         * doc/posix-functions/getgrnam_r.texi: Likewise.
29132         * doc/posix-functions/getlogin_r.texi: Likewise.
29133         * doc/posix-functions/getpwnam_r.texi: Likewise.
29134         * doc/posix-functions/getpwuid_r.texi: Likewise.
29135         * doc/posix-functions/readdir_r.texi: Likewise.
29136         * doc/posix-functions/sigwait.texi: Likewise.
29137         * doc/posix-functions/ttyname_r.texi: Likewise.
29138         Reported by Simon Josefsson.
29139
29140 2010-04-25  Bruno Haible  <bruno@clisp.org>
29141
29142         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29143         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29144         also to --create-testdir.
29145         (func_acceptable): Don't consider the status of *-tests modules here.
29146         (func_modules_transitive_closure): Consider it here, before including a
29147         test module.
29148         (func_import, func_create_testdir): Set inc_all_direct_tests,
29149         inc_all_indirect_tests.
29150         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29151         --create-testdir and --create-megatestdir.
29152
29153 2010-04-25  Bruno Haible  <bruno@clisp.org>
29154
29155         gnulib-tool: Add --without-*-tests options.
29156         * gnulib-tool (func_usage): Document the --without-*-tests options.
29157         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29158         excl_unportable_tests): New variables.
29159         Fail if they are specified with --import or --update.
29160         (func_acceptable): Respect the excl_*_tests variables.
29161         (func_import): Set the excl_*_tests variables to empty.
29162
29163 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29164             Bruno Haible  <bruno@clisp.org>
29165
29166         Work around a MacOS X 10.4 bug with openpty.
29167         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29168         * tests/test-openpty.c (main): Close the master side explicitly.
29169
29170 2010-04-25  Bruno Haible  <bruno@clisp.org>
29171
29172         strnlen: Fix a C++ test error on MacOS X and Solaris.
29173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29174         the function is not declared.
29175         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29176         Simon Josefsson.
29177
29178 2010-04-24  Bruno Haible  <bruno@clisp.org>
29179
29180         Avoid a gcc warning.
29181         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29182         of correct type for %08lx directive.
29183         Reported by Eric Blake.
29184
29185 2010-04-24  Bruno Haible  <bruno@clisp.org>
29186
29187         vasnprintf: Correct errno value in case of out-of-memory.
29188         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29189         or sprintf. Use the errno value from SNPRINTF or sprintf.
29190         Reported by Ian Beckwith <ianb@erislabs.net>.
29191
29192 2010-04-24  Bruno Haible  <bruno@clisp.org>
29193
29194         ansi-c++-opt: Find correct compiler when cross-compiling.
29195         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29196         AC_CHECK_PROGS.
29197         Reported by Simon Josefsson.
29198
29199 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29200
29201         vc-list-files: Add support for subversion
29202         * build-aux/vc-list-files: Use "svn list" to generate the list of
29203         files controlled by subversion.
29204
29205 2010-04-23  Jim Meyering  <meyering@redhat.com>
29206
29207         vc-list-files tests: convert to use init.sh
29208         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29209         path_prepend_.
29210         Use Exit, not exit.
29211         Use skip_ rather than open coding it.
29212         Remove trap set-up and compare definitions.
29213         * tests/test-vc-list-files-git.sh: Likewise.
29214         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29215
29216 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29217
29218         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29219         backup files.
29220
29221 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29222
29223         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29224
29225 2010-04-20  Eric Blake  <eblake@redhat.com>
29226
29227         tests: be robust to ignored SIGPIPE
29228         * tests/test-select-in.sh: Consume all output.
29229         * tests/test-lseek.sh: Check correct exit status, while avoiding
29230         EPIPE.
29231
29232 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29233             Bruno Haible  <bruno@clisp.org>
29234
29235         visibility: Don't use -fvisibility if it leads to a warning.
29236         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29237         yes, don't pretend that visibility works if it leads to a warning.
29238         Reported by Mike Gran <spk121@yahoo.com>.
29239
29240 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29241
29242         * build-aux/bootstrap: Use "git -h" for testing for supported options
29243         instead of "git --help".  The short-form option only shows a summary,
29244         and doesn't layout the full man page.  Grep for the full option name
29245         in the summary, too.
29246
29247 2010-04-19  Bruno Haible  <bruno@clisp.org>
29248
29249         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29251         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29252         mention of RELOCATABLE_STRIP.
29253         Reported by Sylvain Beucler <beuc@beuc.net>.
29254
29255 2010-04-19  Bruno Haible  <bruno@clisp.org>
29256
29257         * lib/diffseq.h: Fix typo in comment.
29258         Reported by Eric Blake.
29259
29260 2010-04-19  Bruno Haible  <bruno@clisp.org>
29261
29262         ioctl: Move autoconf macro to a .m4 file.
29263         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29264         * modules/ioctl (Files): Add it.
29265         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29266         Reported by Ian Beckwith <ianb@erislabs.net>.
29267
29268 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29269             Bruno Haible  <bruno@clisp.org>
29270
29271         diffseq: Accommodate use-case with abstract arrays.
29272         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29273         is not defined.
29274         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29275         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29276
29277 2010-04-18  Bruno Haible  <bruno@clisp.org>
29278
29279         * doc/posix-headers/stdbool.texi: More precise wording.
29280
29281 2010-04-17  Jim Meyering  <meyering@redhat.com>
29282
29283         maint.mk: use gnu-style indentation in an embedded perl script
29284         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29285         Rename variable: s/two/last_two_bytes/
29286
29287 2010-04-16  Eric Blake  <eblake@redhat.com>
29288
29289         test-stdbool: skip test that fails with Solaris CC
29290         * tests/test-stdbool.c (f): Skip test that causes compilation
29291         error under buggy C++ compiler.
29292         * lib/stdbool.in.h: Document the limitation.
29293         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29294
29295         setenv: allow compilation with C++
29296         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29297         register keyword.
29298
29299         stdint: allow test to pass with C++
29300         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29301
29302         getopt: allow compilation with C++
29303         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29304         struct.
29305         * lib/getopt.c (_getopt_internal_r): Use correct type.
29306         Reported by Dagobert Michelson, via Joel E. Denny.
29307
29308 2010-04-16  Bruno Haible  <bruno@clisp.org>
29309
29310         Override netdb.h always.
29311         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29312         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29313         Reported by Ludovic Courtès <ludo@gnu.org>.
29314
29315 2010-04-15  Bruno Haible  <bruno@clisp.org>
29316
29317         openpty: Fix mistake from 2010-03-21.
29318         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29319         Reported by Simon Josefsson.
29320
29321 2010-04-15  Eric Blake  <eblake@redhat.com>
29322
29323         test-forkpty: fix expected signature
29324         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29325         Reported by Simon Josefsson.
29326
29327 2010-04-15  Jim Meyering  <meyering@redhat.com>
29328
29329         maint.mk: texinfo_suffix_re_: correct the default regexp
29330         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29331
29332         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29333         make it configurable via texinfo_suffix_re_.
29334
29335 2010-04-14  Eric Blake  <eblake@redhat.com>
29336
29337         strtok_r: relax license to LGPLv2+
29338         * modules/strtok_r (License): Relax license.
29339         Reported by Matthias Bolte.
29340
29341 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29342
29343         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29344         version 1.4.4 by default instead of requiring the libgcrypt
29345         version used during build.  This makes it possible to use the
29346         application with older but still binary compatible libgcrypt
29347         versions.
29348
29349 2010-04-13  Eric Blake  <eblake@redhat.com>
29350
29351         getopt-gnu: match recent glibc fixes and posix ruling
29352         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29353         '+' handling, when requesting extensions.
29354         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29355         'W;' handling.
29356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29357         * doc/posix-functions/getopt.texi (getopt): Document this.
29358         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29359         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29360         Likewise.
29361
29362         getopt: merge bug fixes from glibc
29363         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29364         diagnostics.  Honor '+:' correctly.  Reject ';'.
29365
29366         getopt-posix: detect MacOS bug
29367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29368         optind when missing a required argument.
29369         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29370         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29371         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29372         Likewise.
29373
29374         getopt-posix: avoid spurious failure on Solaris
29375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29376         an indicator that setting optind=1 is sufficient for reset.
29377
29378         getopt-posix: avoid spurious failure on FreeBSD
29379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29380         in POSIX mode, since the m4 test uses it.
29381
29382         gnulib-tool: silence warning on BSD sh
29383         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29384
29385 2010-04-13  Jim Meyering  <meyering@redhat.com>
29386
29387         doc: users.txt: GNU patch now uses gnulib
29388         * users.txt: Add patch.
29389
29390 2010-04-12  Jim Meyering  <meyering@redhat.com>
29391
29392         maint.mk: generate more concise timing data for syntax-check rules
29393         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29394         " done" from each line that reports a syntax-check test duration.
29395
29396 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29397
29398         git-version-gen: use "git update-index..." rather than "git status"
29399         * build-aux/git-version-gen: Use git update-index --refresh, not
29400         "git status".  With some versions of git, "git status" would fail
29401         to update the index and result in an unwarranted "-dirty" suffix.
29402
29403 2010-04-11  Jim Meyering  <meyering@redhat.com>
29404
29405         openat: correct formatting (no semantic change)
29406         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29407         Suggested by Bruno Haible.
29408
29409 2010-04-11  Bruno Haible  <bruno@clisp.org>
29410
29411         Stricter declaration checking in testdirs.
29412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29413         If for_tests is true, augment AM_CPPFLAGS to define
29414         GNULIB_STRICT_CHECKING.
29415         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29416         GNULIB_STRICT_CHECKING is defined, verify that the function is
29417         declared.
29418
29419 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29420             Bruno Haible  <bruno@clisp.org>
29421
29422         libunistring: Improve configure output.
29423         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29424         Don't say "consider installing GNU libunistring" when checking again
29425         with libiconv.
29426
29427 2010-04-11  Bruno Haible  <bruno@clisp.org>
29428
29429         libunistring: Correct value of $LTLIBUNISTRING.
29430         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29431         correct the value of $LTLIBUNISTRING.
29432
29433 2010-04-11  Bruno Haible  <bruno@clisp.org>
29434
29435         havelib: Add static libraries to LIBS in the right order.
29436         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29437         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29438
29439 2010-04-11  Bruno Haible  <bruno@clisp.org>
29440
29441         libunistring: Detect libunistring also when it depends on libiconv.
29442         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29443         the second AC_LIB_HAVE_LINKFLAGS invocation.
29444
29445 2010-04-11  James Youngman  <jay@gnu.org>
29446
29447         close-stream: declare local scalars to be "const"
29448         * lib/close-stream.c (close_stream): Make boolean variables const
29449         to document the fact that we set but do not change them.
29450
29451 2010-04-11  Bruno Haible  <bruno@clisp.org>
29452
29453         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29454
29455 2010-04-11  Jim Meyering  <meyering@redhat.com>
29456
29457         maint.mk: don't include dist-check.mk
29458         * top/maint.mk: Remove bogus include directive.
29459
29460         maint.mk: improve empty-line-at-EOF check
29461         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29462         solution, rather than tail+Perl-based one.  The latter would read
29463         a few kilobytes from the end of each file, and did not handle empty
29464         files properly.
29465
29466         maint.mk: print the elapsed time for each syntax-check rule
29467         * top/maint.mk (sc_m_rules_): Save start time in a file.
29468         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29469         (local-check): Interpose the .z rules
29470
29471 2010-04-11  Jim Meyering  <meyering@redhat.com>
29472
29473         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29474         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29475         empty file with one that ends in an empty line.
29476
29477 2010-04-10  Bruno Haible  <bruno@clisp.org>
29478
29479         mkdir: Make it work on mingw64.
29480         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29481         * lib/mkdir.c: Update comment.
29482         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29483
29484 2010-04-10  Bruno Haible  <bruno@clisp.org>
29485
29486         Don't override improved macro from newer autoconf.
29487         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29488         autoconf >= 2.62.
29489         Reported by Joel E. Denny <jdenny@clemson.edu>.
29490
29491 2010-04-10  Jim Meyering  <meyering@redhat.com>
29492
29493         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29494         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29495
29496         maint.mk: correct a diagnostic
29497         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29498         in diagnostic; now use $prohibit.
29499
29500 2010-04-10  Bruno Haible  <address@hidden>
29501
29502         fchownat: Fix a C++ test error on Solaris 8.
29503         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29504         the function does not exist.
29505
29506 2010-04-10  Bruno Haible  <bruno@clisp.org>
29507
29508         vasnprintf: Add more tests.
29509         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29510         (test_function): Test converting an invalid wide string.
29511
29512         vasnprintf: Correct handling of unconvertible wide string arguments.
29513         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29514         VASNPRINTF.
29515         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29516         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29517         smaller than the expected maximum need for the directive. Set errno to
29518         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29519         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29521         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29522         * modules/vasnprintf (Files): Add m4/printf.m4.
29523         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29524
29525 2010-04-10  Bruno Haible  <bruno@clisp.org>
29526
29527         vasnprintf: Fix crash in %ls directive.
29528         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29529         string is passed as argument to %ls, with no precision and no width.
29530         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29531
29532 2010-04-10  Bruno Haible  <bruno@clisp.org>
29533
29534         vasnprintf: Fix multiple test failures on mingw.
29535         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29536         _snprintf, or snwprintf, not _snwprintf.
29537
29538 2010-04-10  Bruno Haible  <bruno@clisp.org>
29539
29540         write: Fix a C++ test error on mingw.
29541         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29542
29543 2010-04-10  Bruno Haible  <bruno@clisp.org>
29544
29545         vasnprintf test: Reduce code duplication.
29546         * tests/test-vasnprintf.c (test_function): New function, extracted from
29547         test_vasnprintf.
29548         (test_vasnprintf, test_asnprintf): Invoke it.
29549
29550 2010-04-10  Bruno Haible  <bruno@clisp.org>
29551
29552         strnlen: Fix warning in C++ mode on MacOS X.
29553         * lib/string.in.h (strnlen): Use the modern idiom.
29554         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29555         defining strnlen as a macro already in <config.h>.
29556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29557         REPLACE_STRNLEN.
29558         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29559         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29560
29561 2010-04-08  James Youngman  <jay@gnu.org>
29562
29563         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29564         the example.
29565
29566 2010-04-09  Jim Meyering  <meyering@redhat.com>
29567
29568         maint.mk: print better diagnostic when there is no $(_hv_file)
29569         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29570         announce that when $(_hv_file) (aka help-version) does not exist.
29571
29572         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29573         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29574         not try to interpret its random input bytes.  Jarno Rajahalme reported
29575         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29576         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29577         (mktempd_): Likewise, just in case.
29578
29579         ftruncate: add two years to projected module removal date: 2012
29580         * m4/ftruncate.m4: Adjust comments.
29581
29582         ftruncate: mark module as obsolete; even MinGW provides it, now
29583         * modules/ftruncate (Status): Obsolete.
29584         (Notice): Say that.
29585         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29587
29588 2010-04-08  Bruno Haible  <bruno@clisp.org>
29589
29590         Fix side effects from tests-related modules.
29591         * modules/dprintf-posix (Comment): New section.
29592         * modules/fprintf-posix (Comment): Likewise.
29593         * modules/obstack-printf-posix (Comment): Likewise.
29594         * modules/printf-posix (Comment): Likewise.
29595         * modules/snprintf-posix (Comment): Likewise.
29596         * modules/sprintf-posix (Comment): Likewise.
29597         * modules/vasnprintf-posix (Comment): Likewise.
29598         * modules/vasprintf-posix (Comment): Likewise.
29599         * modules/vdprintf-posix (Comment): Likewise.
29600         * modules/vfprintf-posix (Comment): Likewise.
29601         * modules/vprintf-posix (Comment): Likewise.
29602         * modules/vsnprintf-posix (Comment): Likewise.
29603         * modules/vsprintf-posix (Comment): Likewise.
29604         * modules/xprintf-posix (Comment): Likewise.
29605         * modules/xvasprintf-posix (Comment): Likewise.
29606         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29607         * modules/floorf-tests (Depends-on): Likewise.
29608         * modules/round-tests (Depends-on): Likewise.
29609         * modules/roundf-tests (Depends-on): Likewise.
29610         * modules/trunc-tests (Depends-on): Likewise.
29611         * modules/truncf-tests (Depends-on): Likewise.
29612         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29613         'fprintf-posix' module is not present.
29614         * tests/test-floorf2.c (check): Likewise.
29615         * tests/test-trunc2.c (check): Likewise.
29616         * tests/test-truncf2.c (check): Likewise.
29617         * tests/test-round2.c (equal): Likewise.
29618         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29619
29620 2010-04-07  Karl Berry  <karl@gnu.org>
29621
29622         * config/srclist.txt,
29623         * config/srclistvars.sh,
29624         * config/srclist-update: doc fixes.
29625
29626 2010-04-07  Jim Meyering  <meyering@redhat.com>
29627
29628         maint.mk: add a PATH crosschecking syntax-check rule
29629         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29630         Useful if you use a test like the one in help-version (coreutils,
29631         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29632         printed by prog --version.
29633
29634 2010-04-06  Bruno Haible  <bruno@clisp.org>
29635
29636         Fix link error on mingw.
29637         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29638         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29639
29640 2010-04-06  Bruno Haible  <bruno@clisp.org>
29641
29642         Assume rmdir exists.
29643         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29644
29645 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29646
29647         doc: update users.txt
29648         * users.txt: Add gcal.
29649
29650 2010-04-06  Jim Meyering  <meyering@redhat.com>
29651
29652         init.sh: simply unset TMPDIR rather than risking env -i
29653         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29654         although it probably works fine on all Unix-based systems, some
29655         systems (Cygwin?) cannot tolerate a totally cleared environment.
29656         Suggestion from Eric Blake.
29657
29658 2010-04-06  Jim Meyering  <meyering@redhat.com>
29659
29660         init.sh: portability fix: use env's POSIX-specified -i option not -u
29661         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29662         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29663
29664 2010-04-05  Bruno Haible  <bruno@clisp.org>
29665
29666         btowc: Work around Cygwin 1.7.2 bug.
29667         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29668         does not map NUL to 0.
29669         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29670
29671 2010-04-05  Bruno Haible  <bruno@clisp.org>
29672
29673         Make the multithread modules work on Cygwin 1.7.2.
29674         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29675         imported symbols can be declared weak, so that it returns "no" on
29676         Cygwin 1.7.2.
29677
29678 2010-04-05  Bruno Haible  <bruno@clisp.org>
29679
29680         Use the module 'strncat'.
29681         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29682
29683         Tests for module 'strncat'.
29684         * modules/strncat-tests: New file.
29685         * tests/test-strncat.c: New file.
29686
29687         New module 'strncat'.
29688         * lib/string.in.h (strncat): New declaration.
29689         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29690         * m4/strncat.m4: New file, based on m4/memchr.m4.
29691         * modules/strncat: New file.
29692         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29693         is declared.
29694         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29695         REPLACE_STRNCAT.
29696         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29697         REPLACE_STRNCAT.
29698         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29699         module.
29700         * tests/test-string-c++.cc: Check signature of strncat.
29701
29702 2010-04-05  Jim Meyering  <meyering@redhat.com>
29703
29704         xstrtoumax-tests: convert to use init.sh
29705         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29706         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29707         Use Exit, not exit.
29708         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29709
29710         xstrtoimax-tests: convert to use init.sh
29711         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29712         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29713         Use Exit, not exit.
29714         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29715
29716 2010-04-05  Bruno Haible  <bruno@clisp.org>
29717
29718         sys_socket: Avoid #define replacements in C++ mode.
29719         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29720         warning to the function if possible, rather than #defining the symbol
29721         to a dysfunctional alias.
29722
29723 2010-04-05  Bruno Haible  <bruno@clisp.org>
29724
29725         fseeko: Fix C++ test error on mingw.
29726         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29727         gl_FUNC_FSEEKO.
29728         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29729         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29730         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29731         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29732
29733 2010-04-05  Bruno Haible  <bruno@clisp.org>
29734
29735         duplocale: Improve test output.
29736         * tests/test-duplocale.c (main): Print reason for skipped test.
29737
29738 2010-04-05  Bruno Haible  <bruno@clisp.org>
29739
29740         Assume rmdir exists.
29741         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29742         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29743
29744 2010-04-05  Bruno Haible  <bruno@clisp.org>
29745
29746         Fix link error on Solaris 8 with cc.
29747         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29748
29749 2010-04-05  Bruno Haible  <bruno@clisp.org>
29750
29751         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29752         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29753
29754 2010-04-05  Bruno Haible  <bruno@clisp.org>
29755
29756         vasprintf: Update documentation.
29757         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29758
29759 2010-04-05  Bruno Haible  <bruno@clisp.org>
29760
29761         ptsname: Improve test.
29762         * tests/test-ptsname.c (main): Also try the various master names of BSD
29763         systems.
29764
29765 2010-04-05  Bruno Haible  <bruno@clisp.org>
29766
29767         memchr: Avoid a possible C++ test error.
29768         * lib/string.in.h (memchr): Provide declaration if function is missing.
29769         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29770         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29772         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29773
29774 2010-04-05  Bruno Haible  <bruno@clisp.org>
29775
29776         strtok_r: Improve idiom.
29777         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29778         AC_LIBOBJ is used.
29779
29780 2010-04-05  Bruno Haible  <bruno@clisp.org>
29781
29782         strdup: Improve idiom.
29783         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29784         AC_LIBOBJ is used.
29785         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29786         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29787         when AC_LIBOBJ is used.
29788
29789 2010-04-05  Bruno Haible  <bruno@clisp.org>
29790
29791         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29792         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29793         don't set REPLACE_MBSINIT to 1.
29794         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29795         don't set REPLACE_MBRTOWC to 1.
29796         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29797         exist, don't set REPLACE_MBSRTOWCS to 1.
29798         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29799         exist, don't set REPLACE_MBSNRTOWCS to 1.
29800         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29801         don't set REPLACE_WCRTOMB to 1.
29802         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29803         exist, don't set REPLACE_WCSRTOMBS to 1.
29804         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29805         exist, don't set REPLACE_WCSNRTOMBS to 1.
29806
29807 2010-04-05  Bruno Haible  <bruno@clisp.org>
29808
29809         ldexpl: Improve idiom.
29810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29811         make sure to set HAVE_DECL_LDEXPL to 0.
29812
29813 2010-04-05  Jim Meyering  <meyering@redhat.com>
29814
29815         xstrtol-tests: convert to use init.sh
29816         * modules/xstrtol-tests (Files): Add tests/init.sh.
29817         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29818         Use Exit, not exit.
29819         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29820
29821         atexit-tests: convert to use init.sh
29822         * modules/atexit-tests (Files): Add tests/init.sh.
29823         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29824         Use Exit, not exit.
29825         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29826
29827         init.sh: fix typo
29828         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29829
29830         init.sh: make it easier for a test script to write to the tty, ...
29831         when using automake's parallel-tests mode.
29832         * tests/init.sh (stderr_fileno_): Define overridable variable.
29833         (warn_): New function, to use it.
29834         (fail_, skip_, framework_failure_): Use warn_.
29835
29836 2010-04-04  Bruno Haible  <bruno@clisp.org>
29837
29838         btowc: Avoid warning.
29839         * lib/btowc.c: Include <stdlib.h>.
29840         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29841
29842 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29843             Bruno Haible  <bruno@clisp.org>
29844
29845         wchar: Port to NetBSD 1.5.
29846         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29847         * lib/wctype.in.h (WEOF): Likewise.
29848
29849 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29850             Bruno Haible  <bruno@clisp.org>
29851
29852         Port extended stdio to NetBSD 1.5.
29853         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29854         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29855         older.
29856
29857 2010-04-04  Bruno Haible  <bruno@clisp.org>
29858
29859         string: Remove unused substitution.
29860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29861         HAVE_DECL_STRERROR.
29862         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29863
29864 2010-04-04  Bruno Haible  <bruno@clisp.org>
29865
29866         strtod: Avoid a possible C++ test error.
29867         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29868         set REPLACE_STRTOD.
29869
29870 2010-04-04  Bruno Haible  <bruno@clisp.org>
29871
29872         strerror: Update documentation.
29873         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29874
29875 2010-04-04  Bruno Haible  <bruno@clisp.org>
29876
29877         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29878         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29879         _GL_CXXALIAS_SYS_CAST.
29880
29881 2010-04-04  Bruno Haible  <bruno@clisp.org>
29882
29883         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29884         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29885         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29886         REPLACE_FREXPL to 1.
29887         * doc/posix-functions/frexpl.texi: Update documentation.
29888
29889 2010-04-04  Bruno Haible  <bruno@clisp.org>
29890
29891         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29892         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29893
29894 2010-04-04  Bruno Haible  <bruno@clisp.org>
29895
29896         Implement nanosleep for native Windows.
29897         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29898
29899 2010-04-04  Bruno Haible  <bruno@clisp.org>
29900
29901         math: Fix some C++ test errors on Solaris 8.
29902         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29903
29904 2010-04-04  Bruno Haible  <bruno@clisp.org>
29905
29906         math: Fix some C++ test errors on Cygwin.
29907         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29908         truncl): Provide declaration if the system does not have it.
29909         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29910         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29911         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29912         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29913         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29914         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29915         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29916         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29917         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29918         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29919         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29920         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29921         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29922         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29923         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29924         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29926         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29927         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29928         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29929         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29930         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29931
29932 2010-04-04  Bruno Haible  <bruno@clisp.org>
29933
29934         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29935         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29936         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29937         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29938         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29939         * m4/isinf.m4 (gl_ISINF): Likewise.
29940         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29941
29942 2010-04-04  Bruno Haible  <bruno@clisp.org>
29943
29944         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29945         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29946
29947 2010-04-04  Bruno Haible  <bruno@clisp.org>
29948
29949         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29950         * modules/tmpfile (configure.ac): Update.
29951
29952         tmpfile: Fix C++ test error on mingw.
29953         * lib/stdio.in.h (tmpfile): New declaration.
29954         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29955         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29956         * modules/tmpfile (Depends-on): Add stdio.
29957         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29958         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29959         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29960         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29961         REPLACE_TMPFILE.
29962         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29963
29964 2010-04-04  Bruno Haible  <bruno@clisp.org>
29965
29966         ioctl: Fix C++ test error on mingw.
29967         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29968         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29969         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29970
29971 2010-04-03  Bruno Haible  <bruno@clisp.org>
29972
29973         wcwidth: Fix C++ test error on mingw.
29974         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29976         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29977
29978 2010-04-03  Bruno Haible  <bruno@clisp.org>
29979
29980         nanosleep: Fix C++ test error on mingw.
29981         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29982         * lib/time.in.h (nanosleep): Use modern idiom.
29983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29984         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29985         REPLACE_NANOSLEEP to 1.
29986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29987         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29988
29989 2010-04-03  Bruno Haible  <bruno@clisp.org>
29990
29991         strptime: Fix C++ test error on mingw.
29992         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29993         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29994         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29995         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29996         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29997         not REPLACE_STRPTIME.
29998         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29999         REPLACE_STRPTIME.
30000
30001 2010-04-03  Bruno Haible  <bruno@clisp.org>
30002
30003         timegm: Fix C++ test error on mingw.
30004         * lib/time.in.h (timegm): Use modern idiom.
30005         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30006         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30007         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30008         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30009
30010 2010-04-03  Bruno Haible  <bruno@clisp.org>
30011
30012         timegm: Assume declaration if function exists.
30013         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30014         if it exists. Don't clobber ac_cv_func_timegm.
30015
30016 2010-04-03  Bruno Haible  <bruno@clisp.org>
30017
30018         time_r: Fix C++ test error on mingw.
30019         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30020         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30021         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30022         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30023         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30024
30025 2010-04-03  Bruno Haible  <bruno@clisp.org>
30026
30027         time_r: Minor updates.
30028         * modules/time_r (Description): Mention the provided functions.
30029         * lib/time_r.c: Don't include <string.h>.
30030         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30031         * doc/posix-functions/localtime_r.texi: Likewise.
30032
30033 2010-04-03  Bruno Haible  <bruno@clisp.org>
30034
30035         time: Fix regression introduced on 2010-03-08.
30036         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30037         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30038
30039 2010-04-03  Jim Meyering  <meyering@redhat.com>
30040
30041         maint.mk: don't silently disable project-specific syntax-check rules
30042         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30043         that they need to convert their project-specific syntax-check rules
30044         to use the new _sc_search_regexp.
30045
30046 2010-04-03  Bruno Haible  <bruno@clisp.org>
30047
30048         fchdir: Fix regression introduced on 2010-03-08.
30049         * lib/unistd.in.h (fchdir): Fix declaration.
30050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30052         REPLACE_FCHDIR.
30053         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30054         REPLACE_FCHDIR.
30055
30056 2010-04-03  Bruno Haible  <bruno@clisp.org>
30057
30058         getpagesize: Fix C++ test error on mingw.
30059         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30060         system does not declare the function.
30061         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30062         declared.
30063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30064         HAVE_DECL_GETPAGESIZE.
30065         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30066
30067 2010-04-03  Bruno Haible  <bruno@clisp.org>
30068
30069         stdio: Make C++ tests work on mingw.
30070         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30071         does not declare the function.
30072
30073 2010-04-03  Bruno Haible  <bruno@clisp.org>
30074
30075         ftello: Fix C++ test error on mingw.
30076         * lib/stdio.in.h (ftello): Use modern idiom.
30077         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30078         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30079         is missing and that it needs to be replaced.
30080         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30082         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30083
30084 2010-04-03  Bruno Haible  <bruno@clisp.org>
30085
30086         fseeko: Fix C++ test error on mingw.
30087         * lib/stdio.in.h (fseeko): Use modern idiom.
30088         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30089         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30090         is missing and that it needs to be replaced.
30091         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30093         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30094
30095 2010-04-03  Bruno Haible  <bruno@clisp.org>
30096
30097         mkstemp: Fix C++ test error on mingw.
30098         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30099         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30100         function is missing and that it needs to be replaced.
30101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30102         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30103
30104 2010-04-03  Bruno Haible  <bruno@clisp.org>
30105
30106         stpncpy: Fix C++ test error on mingw.
30107         * lib/string.in.h (stpncpy): Use modern idiom.
30108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30109         function is missing and that it needs to be replaced.
30110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30111         REPLACE_STPNCPY.
30112         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30113
30114 2010-04-03  Bruno Haible  <bruno@clisp.org>
30115
30116         sys_stat: Fix C++ test error on mingw.
30117         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30118         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30119
30120 2010-04-03  Bruno Haible  <bruno@clisp.org>
30121
30122         pty: Update doc.
30123         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30124
30125 2010-04-03  Bruno Haible  <bruno@clisp.org>
30126
30127         unistd: Fix C++ test error on mingw.
30128         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30129
30130 2010-04-03  Bruno Haible  <bruno@clisp.org>
30131
30132         Update doc regarding mingw.
30133         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30134         * doc/glibc-functions/login_tty.texi: Likewise.
30135         * doc/glibc-functions/forkpty.texi: Likewise.
30136
30137 2010-04-03  Bruno Haible  <bruno@clisp.org>
30138
30139         stdlib: Avoid compilation failure of c-strtold on mingw.
30140         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30141
30142 2010-04-03  Bruno Haible  <bruno@clisp.org>
30143
30144         locale: Make C++ tests work on Cygwin and mingw.
30145         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30146         cannot provide the function.
30147         Reported by Simon Josefsson.
30148
30149 2010-04-03  Bruno Haible  <bruno@clisp.org>
30150
30151         localename: Port to MacOS X 10.6.
30152         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30153         memory layout of the locales in MacOS X 10.6 as well.
30154         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30155
30156 2010-04-02  Bruno Haible  <bruno@clisp.org>
30157
30158         gnulib-tool: Ensure that long-running tests are executed last.
30159         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30160         running tests after the one for the other tests.
30161
30162 2010-04-02  Bruno Haible  <bruno@clisp.org>
30163
30164         gnulib-tool: Ensure the tests in the main directory are executed first.
30165         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30166         start with the current directory.
30167
30168 2010-04-02  Bruno Haible  <bruno@clisp.org>
30169
30170         Tests for module 'havelib', moved here from GNU gettext.
30171         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30172         modifications.
30173         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30174         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30175         with modifications.
30176         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30177         modifications.
30178         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30179         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30180         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30181         with modifications.
30182         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30183         with modifications.
30184         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30185         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30186         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30187         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30188         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30189         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30190         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30191         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30192         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30193         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30194         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30195         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30196         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30197         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30198         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30199         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30200         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30201         with modifications.
30202         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30203         with modifications.
30204         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30205         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30206         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30207         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30208         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30209         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30210         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30211         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30212         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30213         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30214         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30215         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30216         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30217         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30218         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30219         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30220         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30221         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30222         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30223         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30224         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30225         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30226         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30227         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30228         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30229         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30230         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30231         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30232         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30233         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30234         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30235         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30236         * tests/havelib/rpathx/rpathx.c: New file, from
30237         gettext/autoconf-lib-link.
30238         * tests/havelib/rpathx/Makefile.am: New file, from
30239         gettext/autoconf-lib-link.
30240         * tests/havelib/rpathx/configure.ac: New file, from
30241         gettext/autoconf-lib-link with modifications.
30242         * tests/havelib/rpathy/rpathy.c: New file, from
30243         gettext/autoconf-lib-link.
30244         * tests/havelib/rpathy/Makefile.am: New file, from
30245         gettext/autoconf-lib-link.
30246         * tests/havelib/rpathy/configure.ac: New file, from
30247         gettext/autoconf-lib-link with modifications.
30248         * tests/havelib/rpathz/rpathz.c: New file, from
30249         gettext/autoconf-lib-link.
30250         * tests/havelib/rpathz/Makefile.am: New file, from
30251         gettext/autoconf-lib-link.
30252         * tests/havelib/rpathz/configure.ac: New file, from
30253         gettext/autoconf-lib-link with modifications.
30254         * tests/havelib/rpathlx/usex.c: New file, from
30255         gettext/autoconf-lib-link.
30256         * tests/havelib/rpathlx/Makefile.am: New file, from
30257         gettext/autoconf-lib-link.
30258         * tests/havelib/rpathlx/configure.ac: New file, from
30259         gettext/autoconf-lib-link with modifications.
30260         * tests/havelib/rpathly/usey.c: New file, from
30261         gettext/autoconf-lib-link.
30262         * tests/havelib/rpathly/Makefile.am: New file, from
30263         gettext/autoconf-lib-link.
30264         * tests/havelib/rpathly/configure.ac: New file, from
30265         gettext/autoconf-lib-link with modifications.
30266         * tests/havelib/rpathlz/usez.c: New file, from
30267         gettext/autoconf-lib-link.
30268         * tests/havelib/rpathlz/Makefile.am: New file, from
30269         gettext/autoconf-lib-link.
30270         * tests/havelib/rpathlz/configure.ac: New file, from
30271         gettext/autoconf-lib-link with modifications.
30272         * tests/havelib/rpathlyx/usey.c: New file, from
30273         gettext/autoconf-lib-link.
30274         * tests/havelib/rpathlyx/Makefile.am: New file, from
30275         gettext/autoconf-lib-link.
30276         * tests/havelib/rpathlyx/configure.ac: New file, from
30277         gettext/autoconf-lib-link with modifications.
30278         * tests/havelib/rpathlzyx/usez.c: New file, from
30279         gettext/autoconf-lib-link.
30280         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30281         gettext/autoconf-lib-link.
30282         * tests/havelib/rpathlzyx/configure.ac: New file, from
30283         gettext/autoconf-lib-link with modifications.
30284         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30285         with modifications.
30286
30287 2010-04-02  Bruno Haible  <bruno@clisp.org>
30288
30289         gnulib-tool: Create distributed built sources also for the tests.
30290         * gnulib-tool (func_create_testdir): Also generate distributed built
30291         sources in the tests directory.
30292
30293 2010-04-02  Bruno Haible  <bruno@clisp.org>
30294
30295         gnulib-tool: Obey user's environment variables.
30296         * gnulib-tool (func_create_testdir): When creating built sources,
30297         respect the environment variables for autoconf, automake, etc. given by
30298         the user.
30299
30300 2010-04-02  Bruno Haible  <bruno@clisp.org>
30301
30302         gnulib-tool: Provide the value of --m4-base to modules.
30303         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30304         of gl_m4_base.
30305
30306 2010-04-02  Eric Blake  <eblake@redhat.com>
30307
30308         maint.mk: fix some fallout
30309         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30310         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30311
30312 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30313
30314         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30315         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30316         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30317         (sc_cast_of_x_alloc_return_value): Likewise.
30318         (sc_cast_of_alloca_return_value): Likewise.
30319         (sc_space_tab): Likewise.
30320         (sc_prohibit_atoi_atof): Likewise.
30321         (sc_prohibit_magic_number_exit): Likewise.
30322         (sc_error_exit_success): Likewise.
30323         (sc_file_system): Likewise.
30324         (sc_prohibit_have_config_h): Likewise.
30325         (sc_require_config_h): Likewise.
30326         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30327         (sc_obsolete_symbols): Likewise.
30328         (sc_changelog): Likewise.
30329         (sc_program_name): Likewise.
30330         (sc_the_the): Likewise.
30331         (sc_trailing_blank): Likewise.
30332         (sc_two_space_separator_in_usage): Likewise.
30333         (sc_useless_cpp_parens): Likewise.
30334         (sc_GPL_version): Likewise.
30335         (sc_GFDL_version): Likewise.
30336         (sc_texinfo_acronym): Likewise.
30337         (sc_prohibit_cvs_keyword): Likewise.
30338         (sc_prohibit_stat_st_blocks): Likewise.
30339         (sc_prohibit_S_IS_definition): Likewise.
30340         (sc_redundant_const): Likewise.
30341         (sc_makefile_TAB_only_indentation): Likewise.
30342         (sc_m4_quote_check): Likewise.
30343         (sc_makefile_path_separator_check): Likewise.
30344         (sc_copyright_check): Likewise.
30345         (sc_Wundef_boolean): Likewise.
30346         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30347
30348         maint.mk: match 0 or more whitespace-before-function-call '('
30349         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30350         that have zero or two-and-more spaces between the function name
30351         and the open parenthesis.
30352         (sc_error_message_warn_fatal): Likewise.
30353         (sc_error_message_uppercase): Likewise.
30354         (sc_error_message_period): Likewise.
30355
30356 2010-03-31  Eric Blake  <eblake@redhat.com>
30357
30358         maint.mk: check for [ as well as test
30359         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30360         Based on a libvirt report by Matthias Bolte.
30361
30362         gnumakefile: don't squelch _version output
30363         * top/GNUmakefile (_version): Create one-shot dependency rather
30364         than using $(shell) when version must be regenerated.
30365         (_autoreconf): Run verbosely, by default.
30366
30367         sys_time: avoid compiler warnings
30368         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30369         unconditional, fixing regression from 2010-03-29.
30370         Reported by Simon Josefsson.
30371
30372 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30373
30374         maint.mk: s/_header_without_use/_sc_header_without_use/
30375         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30376         (sc_prohibit_assert_without_use): Use the new name.
30377         (sc_prohibit_close_stream_without_use): Likewise.
30378         (sc_prohibit_getopt_without_use): Likewise.
30379         (sc_prohibit_quotearg_without_use): Likewise.
30380         (sc_prohibit_quote_without_use): Likewise.
30381         (sc_prohibit_long_options_without_use): Likewise.
30382         (sc_prohibit_inttostr_without_use): Likewise.
30383         (sc_prohibit_ignore_value_without_use): Likewise.
30384         (sc_prohibit_error_without_use): Likewise.
30385         (sc_prohibit_xalloc_without_use): Likewise.
30386         (sc_prohibit_hash_without_use): Likewise.
30387         (sc_prohibit_hash_pjw_without_use): Likewise.
30388         (sc_prohibit_safe_read_without_use): Likewise.
30389         (sc_prohibit_argmatch_without_use): Likewise.
30390         (sc_prohibit_canonicalize_without_use): Likewise.
30391         (sc_prohibit_root_dev_ino_without_use): Likewise.
30392         (sc_prohibit_openat_without_use): Likewise.
30393         (sc_prohibit_c_ctype_without_use): Likewise.
30394         (sc_prohibit_signal_without_use): Likewise.
30395         (sc_prohibit_intprops_without_use): Likewise.
30396
30397 2010-03-30  Eric Blake  <eblake@redhat.com>
30398
30399         maint: improve module indicators
30400         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30401         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30402         columns, and avoid extra macro expansion.
30403
30404         fdopendir: work around FreeBSD bug
30405         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30406         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30407         * modules/dirent (Makefile.am): Substitute it.
30408         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30409         declaration.
30410         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30411         fix.
30412         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30413
30414 2010-03-29  Bruno Haible  <bruno@clisp.org>
30415
30416         Emit #pragma system_header after the inclusion guard, not before.
30417         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30418         guard that spans the entire file, not before. This enables an
30419         optimization in GCC's preprocessor.
30420         * lib/ctype.in.h: Likewise.
30421         * lib/dirent.in.h: Likewise.
30422         * lib/errno.in.h: Likewise.
30423         * lib/float.in.h: Likewise.
30424         * lib/getopt.in.h: Likewise.
30425         * lib/iconv.in.h: Likewise.
30426         * lib/langinfo.in.h: Likewise.
30427         * lib/locale.in.h: Likewise.
30428         * lib/math.in.h: Likewise.
30429         * lib/netdb.in.h: Likewise.
30430         * lib/netinet_in.in.h: Likewise.
30431         * lib/pty.in.h: Likewise.
30432         * lib/sched.in.h: Likewise.
30433         * lib/se-selinux.in.h: Likewise.
30434         * lib/search.in.h: Likewise.
30435         * lib/spawn.in.h: Likewise.
30436         * lib/stdarg.in.h: Likewise.
30437         * lib/stdint.in.h: Likewise.
30438         * lib/string.in.h: Likewise.
30439         * lib/strings.in.h: Likewise.
30440         * lib/sys_file.in.h: Likewise.
30441         * lib/sys_ioctl.in.h: Likewise.
30442         * lib/sys_time.in.h: Likewise.
30443         * lib/sys_times.in.h: Likewise.
30444         * lib/sys_utsname.in.h: Likewise.
30445         * lib/sys_wait.in.h: Likewise.
30446         * lib/sysexits.in.h: Likewise.
30447         * lib/wctype.in.h: Likewise.
30448
30449 2010-03-28  James Youngman  <jay@gnu.org>
30450
30451         save-cwd: don't leak a file descriptor when the caller execs.
30452         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30453         saved file descriptor.
30454         * modules/save-cwd (Depends-on): Depend on cloexec.
30455
30456 2010-03-29  Bruno Haible  <bruno@clisp.org>
30457
30458         Remove vestiges of fts-lgpl module.
30459         * lib/fts_.h: Assume GNULIB_FTS is 1.
30460         * lib/fts.c: Likewise.
30461         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30462
30463 2010-03-28  Bruno Haible  <bruno@clisp.org>
30464
30465         Fix definition of tests witness macro.
30466         * gnulib-tool (func_import): Fix definition of witness macro.
30467
30468 2010-03-28  Bruno Haible  <bruno@clisp.org>
30469
30470         Fix ioctl's protoype on glibc systems.
30471         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30472         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30473         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30474         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30475         signature. If not, arrange to replace the ioctl function.
30476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30477         REPLACE_IOCTL.
30478         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30479         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30480         Reported by Ludovic Courtès <ludo@gnu.org>.
30481
30482 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30483
30484         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30485         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30486         made it so grep -r --include=GLOB* ... did not work.
30487
30488 2010-03-26  Jim Meyering  <meyering@redhat.com>
30489             Eric Blake  <eblake@redhat.com>
30490
30491         maint.mk: prohibit use of test's -o and -a operators
30492         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30493
30494 2010-03-28  Bruno Haible  <bruno@clisp.org>
30495
30496         Remove unused GNULIB_XYZ macro definitions.
30497         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30498         invocation.
30499
30500 2010-03-28  Bruno Haible  <bruno@clisp.org>
30501
30502         Mark privileged tests modules.
30503         * modules/idpriv-drop-tests (Status): New section.
30504         * modules/idpriv-droptemp-tests (Status): New section.
30505
30506 2010-03-28  Bruno Haible  <bruno@clisp.org>
30507
30508         Split C++ tests into separate tests modules.
30509         * modules/dirent-c++-tests: New file, extracted from
30510         modules/dirent-tests.
30511         * modules/dirent-tests: Depend on it.
30512         * modules/fcntl-h-c++-tests: New file, extracted from
30513         modules/fcntl-h-tests.
30514         * modules/fcntl-h-tests: Depend on it.
30515         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30516         * modules/glob-tests: Depend on it.
30517         * modules/iconv-h-c++-tests: New file, extracted from
30518         modules/iconv-h-tests.
30519         * modules/iconv-h-tests: Depend on it.
30520         * modules/langinfo-c++-tests: New file, extracted from
30521         modules/langinfo-tests.
30522         * modules/langinfo-tests: Depend on it.
30523         * modules/locale-c++-tests: New file, extracted from
30524         modules/locale-tests.
30525         * modules/locale-tests: Depend on it.
30526         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30527         * modules/math-tests: Depend on it.
30528         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30529         * modules/pty-tests: Depend on it.
30530         * modules/search-c++-tests: New file, extracted from
30531         modules/search-tests.
30532         * modules/search-tests: Depend on it.
30533         * modules/signal-c++-tests: New file, extracted from
30534         modules/signal-tests.
30535         * modules/signal-tests: Depend on it.
30536         * modules/spawn-c++-tests: New file, extracted from
30537         modules/spawn-tests.
30538         * modules/spawn-tests: Depend on it.
30539         * modules/stdio-c++-tests: New file, extracted from
30540         modules/stdio-tests.
30541         * modules/stdio-tests: Depend on it.
30542         * modules/stdlib-c++-tests: New file, extracted from
30543         modules/stdlib-tests.
30544         * modules/stdlib-tests: Depend on it.
30545         * modules/string-c++-tests: New file, extracted from
30546         modules/string-tests.
30547         * modules/string-tests: Depend on it.
30548         * modules/sys_ioctl-c++-tests: New file, extracted from
30549         modules/sys_ioctl-tests.
30550         * modules/sys_ioctl-tests: Depend on it.
30551         * modules/sys_select-c++-tests: New file, extracted from
30552         modules/sys_select-tests.
30553         * modules/sys_select-tests: Depend on it.
30554         * modules/sys_socket-c++-tests: New file, extracted from
30555         modules/sys_socket-tests.
30556         * modules/sys_socket-tests: Depend on it.
30557         * modules/sys_stat-c++-tests: New file, extracted from
30558         modules/sys_stat-tests.
30559         * modules/sys_stat-tests: Depend on it.
30560         * modules/sys_time-c++-tests: New file, extracted from
30561         modules/sys_time-tests.
30562         * modules/sys_time-tests: Depend on it.
30563         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30564         * modules/time-tests: Depend on it.
30565         * modules/unistd-c++-tests: New file, extracted from
30566         modules/unistd-tests.
30567         * modules/unistd-tests: Depend on it.
30568         * modules/wchar-c++-tests: New file, extracted from
30569         modules/wchar-tests.
30570         * modules/wchar-tests: Depend on it.
30571         * modules/wctype-c++-tests: New file, extracted from
30572         modules/wctype-tests.
30573         * modules/wctype-tests: Depend on it.
30574         Reported by Simon Josefsson.
30575
30576 2010-03-28  Bruno Haible  <bruno@clisp.org>
30577
30578         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30579         * gnulib-tool (func_exists_module): New function, extracted from
30580         func_verify_module.
30581         (func_verify_module): Use it.
30582         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30583         'foo' only if 'foo' exists.
30584         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30585         module.
30586
30587 2010-03-28  Bruno Haible  <bruno@clisp.org>
30588
30589         gnulib-tool: Add support for special categories of tests.
30590         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30591         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30592         (func_usage): Document them.
30593         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30594         inc_unportable_tests, inc_all_tests): New variables.
30595         (func_acceptable): Consider these variables.
30596         (func_modules_transitive_closure): Make it work when the 'Status' field
30597         consists of multiple words.
30598         (func_import): Store and restore the values of inc_cxx_tests,
30599         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30600         inc_all_tests in gnulib-comp.m4.
30601         (func_create_testdir): Set inc_all_tests to true.
30602         * doc/gnulib.texi (Extra tests modules): New section.
30603         Suggested by Jim Meyering.
30604
30605 2010-03-28  Bruno Haible  <bruno@clisp.org>
30606
30607         ansi-c++-opt: Allow turning off the C++ build by default.
30608         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30609         gl_CXX_CHOICE_DEFAULT_NO is defined.
30610         Requested by Eric Blake.
30611
30612 2010-03-28  Bruno Haible  <bruno@clisp.org>
30613
30614         unistd: Avoid #define replacements in C++ mode.
30615         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30616         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30617         setsockopt, shutdown, select): In C++, attach a warning to the function
30618         if possible, rather than #defining the symbol to a dysfunctional alias.
30619         Reported by John W. Eaton <jwe@gnu.org>.
30620
30621 2010-03-28  Bruno Haible  <bruno@clisp.org>
30622
30623         Fix link errors on mingw.
30624         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30625         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30626         $(LIBSOCKET).
30627         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30628         $(LIBSOCKET).
30629
30630 2010-03-28  Bruno Haible  <bruno@clisp.org>
30631             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30632
30633         lib-ignore: Determine different options for different compilers.
30634         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30635         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30636         Add comments.
30637         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30638         * NEWS: Mention the change.
30639
30640 2010-03-27  Bruno Haible  <bruno@clisp.org>
30641
30642         Remove unused GNULIB_XYZ macro definitions.
30643         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30644         * modules/fseek (configure.ac): Likewise.
30645         * modules/ioctl (configure.ac): Likewise.
30646         * modules/open (configure.ac): Likewise.
30647         * modules/stdlib-safer (configure.ac): Likewise.
30648
30649 2010-03-27  Bruno Haible  <bruno@clisp.org>
30650
30651         Add a remark about certain modules.
30652         * modules/malloc (Comment): New section.
30653         * modules/realloc (Comment): Likewise.
30654         * modules/sigpipe (Comment): Likewise.
30655
30656 2010-03-27  Bruno Haible  <bruno@clisp.org>
30657
30658         Resolve conflict between the two kinds of module indicators.
30659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30660         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30661         * modules/canonicalize (configure.ac): Invoke
30662         gl_MODULE_INDICATOR_FOR_TESTS.
30663         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30664         GNULIB_XYZ.
30665         * tests/test-dirent-c++.cc: Likewise.
30666         * tests/test-dirent-safer.c: Likewise.
30667         * tests/test-dup2.c: Likewise.
30668         * tests/test-fchdir.c: Likewise.
30669         * tests/test-fcntl-h-c++.cc: Likewise.
30670         * tests/test-getopt.c: Likewise.
30671         * tests/test-getopt.h: Likewise.
30672         * tests/test-langinfo-c++.cc: Likewise.
30673         * tests/test-locale-c++.cc: Likewise.
30674         * tests/test-math-c++.cc: Likewise.
30675         * tests/test-pty-c++.cc: Likewise.
30676         * tests/test-search-c++.cc: Likewise.
30677         * tests/test-signal-c++.cc: Likewise.
30678         * tests/test-spawn-c++.cc: Likewise.
30679         * tests/test-stdio-c++.cc: Likewise.
30680         * tests/test-stdlib-c++.cc: Likewise.
30681         * tests/test-string-c++.cc: Likewise.
30682         * tests/test-sys_ioctl-c++.cc: Likewise.
30683         * tests/test-sys_select-c++.cc: Likewise.
30684         * tests/test-sys_socket-c++.cc: Likewise.
30685         * tests/test-sys_stat-c++.cc: Likewise.
30686         * tests/test-sys_time-c++.cc: Likewise.
30687         * tests/test-time-c++.cc: Likewise.
30688         * tests/test-unistd-c++.cc: Likewise.
30689         * tests/test-wchar-c++.cc: Likewise.
30690         * tests/uninorm/test-u8-nfc.c: Likewise.
30691         * tests/uninorm/test-u8-nfd.c: Likewise.
30692         * tests/uninorm/test-u8-nfkc.c: Likewise.
30693         * tests/uninorm/test-u8-nfkd.c: Likewise.
30694         * tests/uninorm/test-u16-nfc.c: Likewise.
30695         * tests/uninorm/test-u16-nfd.c: Likewise.
30696         * tests/uninorm/test-u16-nfkc.c: Likewise.
30697         * tests/uninorm/test-u16-nfkd.c: Likewise.
30698         * tests/uninorm/test-u32-nfc.c: Likewise.
30699         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30700         * tests/uninorm/test-u32-nfd.c: Likewise.
30701         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30702         * tests/uninorm/test-u32-nfkc.c: Likewise.
30703         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30704         * tests/uninorm/test-u32-nfkd.c: Likewise.
30705         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30706         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30707
30708 2010-03-27  Bruno Haible  <bruno@clisp.org>
30709
30710         Distinguish two kinds of module indicators.
30711         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30712         gl_MODULE_INDICATOR.
30713         (gl_MODULE_INDICATOR): New macro.
30714         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30715         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30716         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30717         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30718         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30719         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30720         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30721         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30722         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30723         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30724         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30725         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30727         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30728         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30729         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30730         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30731         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30732         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30733         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30734         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30735         * modules/cloexec (configure.ac): Likewise.
30736         * modules/getopt-gnu (configure.ac): Likewise.
30737         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30738         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30739         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30740         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30741
30742 2010-03-27  Bruno Haible  <bruno@clisp.org>
30743
30744         New module description field 'Comment'.
30745         * gnulib-tool: New option --extract-comment.
30746         (func_usage): Document it.
30747         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30748         (func_get_comment): New function.
30749         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30750
30751 2010-03-27  Bruno Haible  <bruno@clisp.org>
30752
30753         Addendum to 2010-02-07 commit.
30754         * gnulib-tool (func_usage): Document --extract-applicability option.
30755
30756 2010-03-27  Bruno Haible  <bruno@clisp.org>
30757
30758         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30759         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30760         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30761         rather than link errors.
30762
30763 2010-03-27  Bruno Haible  <bruno@clisp.org>
30764
30765         Avoid side effects from tests-related modules on the compilation of lib.
30766         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30767         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30768         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30769         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30770         macro.
30771         (func_import): Define a witness macro. Assign it a value that depends
30772         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30773         tests-related modules.
30774         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30775         Reported by Jim Meyering.
30776
30777 2010-03-27  Bruno Haible  <bruno@clisp.org>
30778
30779         Factorize common .m4 code.
30780         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30781         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30782         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30783         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30784         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30785         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30786         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30787         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30788         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30789         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30790         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30791         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30792         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30793         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30794         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30795         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30796         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30797         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30799         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30800         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30801         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30802         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30803         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30804         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30805         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30806         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30807         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30808         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30809         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30810         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30811         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30812
30813 2010-03-27  Bruno Haible  <bruno@clisp.org>
30814
30815         Fix a compilation error on Cygwin with g++ >= 4.3.
30816         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30817         if it is undefined or if we alias it to chmod.
30818         (lstat): Don't warn about the use of this function if it is undefined
30819         or if we alias it to stat.
30820         Reported by Simon Josefsson.
30821
30822 2010-03-27  Bruno Haible  <bruno@clisp.org>
30823
30824         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30825         * modules/getlogin (configure.ac): Update.
30826
30827         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30828         * modules/getlogin_r (configure.ac): Update.
30829
30830         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30832         * modules/inet_ntop (configure.ac): Update.
30833
30834         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30835         * modules/inet_pton (configure.ac): Update.
30836
30837         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30838         * modules/mbslen (configure.ac): Update.
30839
30840         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30841         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30842         * modules/forkpty (configure.ac): Update.
30843         * modules/openpty (configure.ac): Update.
30844
30845 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30846
30847         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30848         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30849
30850 2010-03-25  Eric Blake  <eblake@redhat.com>
30851
30852         maint: use pragma consistently across replacement headers
30853         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30854         * lib/dirent.in.h (system_header): Likewise.
30855         * lib/errno.in.h (system_header): Likewise.
30856         * lib/float.in.h (system_header): Likewise.
30857         * lib/getopt.in.h (system_header): Likewise.
30858         * lib/iconv.in.h (system_header): Likewise.
30859         * lib/inttypes.in.h (system_header): Likewise.
30860         * lib/langinfo.in.h (system_header): Likewise.
30861         * lib/locale.in.h (system_header): Likewise.
30862         * lib/math.in.h (system_header): Likewise.
30863         * lib/netdb.in.h (system_header): Likewise.
30864         * lib/netinet_in.in.h (system_header): Likewise.
30865         * lib/pty.in.h (system_header): Likewise.
30866         * lib/sched.in.h (system_header): Likewise.
30867         * lib/se-selinux.in.h (system_header): Likewise.
30868         * lib/search.in.h (system_header): Likewise.
30869         * lib/spawn.in.h (system_header): Likewise.
30870         * lib/stdarg.in.h (system_header): Likewise.
30871         * lib/stdint.in.h (system_header): Likewise.
30872         * lib/string.in.h (system_header): Likewise.
30873         * lib/strings.in.h (system_header): Likewise.
30874         * lib/sys_file.in.h (system_header): Likewise.
30875         * lib/sys_ioctl.in.h (system_header): Likewise.
30876         * lib/sys_socket.in.h (system_header): Likewise.
30877         * lib/sys_times.in.h (system_header): Likewise.
30878         * lib/sys_utsname.in.h (system_header): Likewise.
30879         * lib/sys_wait.in.h (system_header): Likewise.
30880         * lib/sysexits.in.h (system_header): Likewise.
30881         * lib/unistd.in.h (system_header): Likewise.
30882         * lib/wctype.in.h (system_header): Likewise.
30883
30884         arpa/inet: fix mingw compilation warning
30885         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30886         Reported by Matthew Bolte.
30887
30888 2010-03-25  Bruno Haible  <bruno@clisp.org>
30889
30890         Avoid collision between gnulib wrapper and libintl wrapper.
30891         * lib/printf.c (printf): Don't define if a printf wrapper is already
30892         defined in intl/printf.c.
30893         Reported by Michel Boaventura <michel@michelboaventura.com>.
30894
30895 2010-03-25  Bruno Haible  <bruno@clisp.org>
30896
30897         Use ANSI C.
30898         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30899
30900 2010-03-25  Bruno Haible  <bruno@clisp.org>
30901
30902         Minor formatting changes.
30903         * lib/acosl.c: Insert space before function argument list.
30904         * lib/argz.c: Likewise.
30905         * lib/asinl.c: Likewise.
30906         * lib/expl.c: Likewise.
30907         * lib/gen-uni-tables.c: Likewise.
30908         * lib/gettext.h: Likewise.
30909         * lib/glthread/lock.h: Likewise.
30910         * lib/tanl.c: Likewise.
30911         * lib/uniname/uniname.c: Likewise.
30912         * tests/test-idpriv-drop.c: Likewise.
30913         * tests/test-idpriv-droptemp.c: Likewise.
30914         * tests/test-lock.c: Likewise.
30915         * tests/test-tls.c: Likewise.
30916         * lib/argp-help.c: Insert space before function-like macro argument
30917         list.
30918         * lib/memcmp.c: Likewise.
30919         * tests/test-base64.c: Likewise.
30920         * lib/localename.c: Insert space before sizeof's argument list.
30921         * lib/safe-alloc.h: Likewise.
30922         * lib/file-set.h: Insert space before macro argument list.
30923         * tests/test-argp.c: Likewise.
30924         * lib/argp-namefrob.h: Insert space before function parameter list.
30925         * lib/getaddrinfo.c: Likewise.
30926         * lib/netdb.in.h: Likewise.
30927         * lib/parse-duration.h: Likewise.
30928         * lib/parse-duration.c: Likewise.
30929         * lib/poll.c: Likewise.
30930         * lib/select.c: Likewise.
30931         * lib/trim.h: Likewise.
30932         * tests/test-usleep.c: Likewise.
30933         * lib/ldexpl.c: Insert space before function parameter list and before
30934         function argument list.
30935         * lib/logl.c: Likewise.
30936         * lib/sqrtl.c: Likewise.
30937         * lib/trim.c: Likewise.
30938         * lib/cosl.c: Use GNU style indentation. Insert space before function
30939         argument list.
30940         * lib/sinl.c: Likewise.
30941         * lib/tsearch.c: Insert space after 'for'.
30942         Reported by Jim Meyering.
30943
30944 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30945
30946         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30947         config header before grepping, as it's not present before
30948         autoreconf/configure are run.  Reported by Simon Josefsson.
30949
30950 2010-03-23  Bruno Haible  <bruno@clisp.org>
30951
30952         pt_chown: Make it work with automake < 1.11.
30953         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30954         Reported by Simon Josefsson.
30955
30956 2010-03-23  Bruno Haible  <bruno@clisp.org>
30957
30958         pt_chown: Don't depend on GPLed modules.
30959         * lib/pt_chown.c: Don't include idpriv.h.
30960         (main): Don't drop privileges.
30961         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30962         Reported by Simon Josefsson.
30963
30964 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30965
30966         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30967         suggestions from karl@freefriends.org (Karl Berry).
30968
30969 2010-03-22  Eric Blake  <eblake@redhat.com>
30970
30971         gethostname: further tweaks
30972         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30973         are overriding gethostname.
30974         Suggested by Bruno Haible.
30975
30976 2010-03-21  Bruno Haible  <bruno@clisp.org>
30977
30978         Fix comments.
30979         * lib/forkpty.c (rpl_forkpty): Fix comment.
30980         * lib/openpty.c (rpl_openpty): Likewise.
30981         Reported by Eric Blake.
30982
30983 2010-03-22  Eric Blake  <eblake@redhat.com>
30984
30985         gethostname: fix build on mingw
30986         * lib/unistd.in.h (includes): Work around fact that mingw
30987         <winsock2.h> re-includes <unistd.h>, by avoiding any
30988         redeclarations if we are being included by <winsock2.h>.
30989         Reported by Matthias Bolte.
30990
30991 2010-03-21  Bruno Haible  <bruno@clisp.org>
30992
30993         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30994         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30995         modifications.
30996         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30997         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30998         provide the replacement.
30999         * modules/forkpty (Depends-on): Add openpty, login_tty.
31000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31001         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31002         * doc/glibc-functions/forkpty.texi: More supported platforms.
31003         * config/srclist.txt: Add forkpty.c (commented).
31004
31005 2010-03-21  Bruno Haible  <bruno@clisp.org>
31006
31007         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31008         (Makefile.am): Verify that PTY_LIB is defined.
31009
31010         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31011
31012 2010-03-21  Bruno Haible  <bruno@clisp.org>
31013
31014         Tests for module 'login_tty'.
31015         * modules/login_tty-tests: New file.
31016         * tests/test-login_tty.c: New file.
31017
31018         New module 'login_tty'.
31019         * lib/login_tty.c: New file.
31020         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31021         * modules/login_tty: New file.
31022         * doc/glibc-functions/login_tty.texi: Mention the new module.
31023
31024 2010-03-21  Bruno Haible  <bruno@clisp.org>
31025
31026         login_tty: Documentation.
31027         * doc/glibc-functions/login_tty.texi: New file.
31028         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31029
31030 2010-03-21  Bruno Haible  <bruno@clisp.org>
31031
31032         pty: Consistent macro naming.
31033         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31034         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31035         * modules/pty (configure.ac): Update.
31036
31037 2010-03-21  Bruno Haible  <bruno@clisp.org>
31038
31039         Tests for openpty: Make stricter.
31040         * tests/test-openpty.c (main): Add test of canonical processing and
31041         erase.
31042         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31043
31044         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31045         * lib/openpty.c (openpty): New replacement function.
31046         * lib/pty.in.h: Include <termios.h>.
31047         (openpty): Update declaration. Add comments.
31048         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31049         is not declared, arrange to provide the replacement. Check for _getpty
31050         and posix_openpt.
31051         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31052         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31053         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31054         * modules/pty-tests (test_pty_c___LDADD): New variable.
31055         * doc/glibc-functions/openpty.texi: More supported platforms.
31056
31057 2010-03-21  Bruno Haible  <bruno@clisp.org>
31058
31059         setenv: Tweaks.
31060         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31061         the test program.
31062         * doc/posix-functions/setenv.texi: Update platforms list.
31063
31064 2010-03-21  Bruno Haible  <bruno@clisp.org>
31065
31066         New module 'unlockpt'.
31067         * lib/unlockpt.c: New file, from glibc with modifications.
31068         * m4/unlockpt.m4: New file.
31069         * modules/unlockpt: New file.
31070         * lib/stdlib.in.h (unlockpt): New declaration.
31071         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31072         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31073         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31074         HAVE_UNLOCKPT.
31075         * doc/posix-functions/unlockpt.texi: Mention the new module.
31076         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31077         * config/srclist.txt: Add unlockpt.c (commented).
31078
31079 2010-03-21  Jim Meyering  <meyering@redhat.com>
31080
31081         maint.mk: prohibit inclusion of "intprops.h" without use
31082         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31083
31084 2010-03-21  Bruno Haible  <bruno@clisp.org>
31085
31086         New module 'grantpt'.
31087         * lib/grantpt.c: New file, from glibc with modifications.
31088         * m4/grantpt.m4: New file.
31089         * modules/grantpt: New file.
31090         * lib/stdlib.in.h (grantpt): New declaration.
31091         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31092         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31093         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31094         HAVE_GRANTPT.
31095         * doc/posix-functions/grantpt.texi: Mention the new module.
31096         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31097         * config/srclist.txt: Add grantpt.c (commented).
31098
31099 2010-03-21  Bruno Haible  <bruno@clisp.org>
31100
31101         New module 'pt_chown'.
31102         * lib/pt_chown.c: New file, from glibc with modifications.
31103         * lib/pty-private.h: New file, from glibc with modifications.
31104         * modules/pt_chown: New file.
31105         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31106
31107 2010-03-21  Bruno Haible  <bruno@clisp.org>
31108
31109         Tests for module 'ptsname'.
31110         * modules/ptsname-tests: New file.
31111         * tests/test-ptsname.c: New file.
31112
31113         New module 'ptsname'.
31114         * lib/ptsname.c: New file, from glibc with modifications.
31115         * m4/ptsname.m4: New file.
31116         * modules/ptsname: New file.
31117         * lib/stdlib.in.h (ptsname): New declaration.
31118         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31119         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31120         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31121         HAVE_PTSNAME.
31122         * doc/posix-functions/ptsname.texi: Mention the new module.
31123         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31124         * config/srclist.txt: Add ptsname.c (commented).
31125
31126 2010-03-21  Bruno Haible  <bruno@clisp.org>
31127
31128         Tests for module 'ttyname_r'.
31129         * modules/ttyname_r-tests: New file.
31130         * tests/test-ttyname_r.c: New file.
31131
31132         New module 'ttyname_r'.
31133         * lib/ttyname_r.c: New file.
31134         * m4/ttyname_r.m4: New file.
31135         * modules/ttyname_r: New file.
31136         * lib/unistd.in.h (ttyname_r): New declaration.
31137         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31138         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31139         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31140         HAVE_TTYNAME_R.
31141         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31142         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31143
31144 2010-03-20  Bruno Haible  <bruno@clisp.org>
31145
31146         signal: Undefine macro definitions in C++ mode.
31147         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31148         sigfillset): Undefine macro definitions from the system header in C++
31149         mode.
31150         Reported by John W. Eaton <jwe@gnu.org>.
31151
31152 2010-03-20  Bruno Haible  <bruno@clisp.org>
31153
31154         Ensure no #include statements inside extern "C" { ... }.
31155         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31156         contain #include statements.
31157         * lib/time.in.h: Likewise.
31158
31159 2010-03-20  Bruno Haible  <bruno@clisp.org>
31160
31161         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31162         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31163         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31164         Reported by John W. Eaton <jwe@gnu.org>.
31165
31166 2010-03-20  Bruno Haible  <bruno@clisp.org>
31167
31168         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31169         Reported by Jim Meyering.
31170
31171 2010-03-20  Bruno Haible  <bruno@clisp.org>
31172
31173         pipe: Set errno upon failure.
31174         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31175         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31176         errno value in error message.
31177
31178 2010-03-20  Bruno Haible  <bruno@clisp.org>
31179             Jim Meyering  <meyering@redhat.com>
31180
31181         lchown: Avoid "unused variable" warning.
31182         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31183
31184 2010-03-20  Bruno Haible  <bruno@clisp.org>
31185
31186         Work around unlink() bug on MacOS X 10.5.6.
31187         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31188         attempting to unlink a parent directory.
31189         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31190         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31191         activate for the replacement function.
31192         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31193
31194 2010-03-20  Bruno Haible  <bruno@clisp.org>
31195
31196         Fix link errors on Solaris 8.
31197         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31198         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31199
31200 2010-03-19  Jim Meyering  <meyering@redhat.com>
31201
31202         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31203         The _LIBC implementation of build_range_exp correctly honors the
31204         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31205         However, the non-_LIBC implementation would ignore that syntax-bit
31206         flag and return REG_ERANGE unconditionally.
31207         This change makes it honor that flag.
31208         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31209         Make two pointer parameters "const".
31210         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31211         (parse_bracket_exp): Update caller.
31212
31213         regex.m4: correct the reversed range endpoint ([b-a]) test
31214         * m4/regex.m4: When requiring that [b-a] evoke failure,
31215         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31216         test pass once again for x86-based systems.
31217
31218 2010-03-19  Bruno Haible  <bruno@clisp.org>
31219
31220         scandir: Fix link error on Solaris 8.
31221         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31222         macros.
31223
31224 2010-03-19  Bruno Haible  <bruno@clisp.org>
31225
31226         getusershell: Fix documentation.
31227         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31228         module.
31229         * doc/glibc-functions/setusershell.texi: Likewise.
31230
31231         getusershell: Provide declaration, missing on Solaris 9.
31232         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31233         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31234         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31235         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31237         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31238         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31239         HAVE_GETUSERSHELL.
31240         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31241
31242 2010-03-19  Bruno Haible  <bruno@clisp.org>
31243
31244         wctype: Provide iswblank function.
31245         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31246         exists and is fine.
31247         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31248         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31249         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31250         * doc/posix-functions/iswblank.texi: Update.
31251
31252 2010-03-19  Bruno Haible  <bruno@clisp.org>
31253
31254         Tests of module 'pty' in C++ mode.
31255         * modules/pty-tests: New file.
31256         * tests/test-pty-c++.cc: New file.
31257         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31258
31259 2010-03-19  Eric Blake  <eblake@redhat.com>
31260
31261         logb: fix documentation
31262         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31263         1.5 declaration bug.
31264
31265         forkpty, openpty: prefer glibc's const-safe prototype
31266         * lib/forkpty.c (rpl_forkpty): New file.
31267         * lib/openpty.c (rpl_openpty): Likewise.
31268         * modules/forkpty (Files): Distribute it.
31269         * modules/openpty (Files): Likewise.
31270         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31271         check...
31272         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31273         replacement for for non-const BSD signature.
31274         * modules/pty (Makefile.am): Substitute witnesses.
31275         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31276         * tests/test-forkpty.c: Update signature check.
31277         * tests/test-openpty.c: Likewise.
31278         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31279         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31280
31281         forkpty, openpty: split functions into new modules
31282         * modules/pty (Makefile.am): Substitute new witnesses.
31283         (Libraries): Move library detection...
31284         * modules/forkpty: ...into new module.
31285         * modules/openpty: Another new module.
31286         * modules/pty-tests: Rename and split...
31287         * modules/forkpty-tests: ...to this...
31288         * modules/openpty-tests: ...and this.
31289         * tests/test-pty.c: Rename and split...
31290         * tests/test-forkpty.c: ...to this...
31291         * tests/test-openpty.c: ...and this.
31292         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31293         (gl_PTY): Split library searching...
31294         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31295         (gl_FORKPTY, gl_OPENPTY): New macros.
31296         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31297         * NEWS: Mention the split.
31298         * MODULES.html.sh (Misc): Document the modules.
31299         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31300         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31301
31302         pty: improve replacement header
31303         * lib/pty.in.h: New file.
31304         * modules/pty (Files): Ship it.
31305         (Makefile.am): Always build replacement.
31306         * m4/pty.m4: Rename...
31307         * m4/pty_h.m4: ...to this.
31308         (gl_PTY): Modernize setting of witness macros; update check of
31309         forkpty to take proper advantage of cache.
31310         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31311
31312         getopt: avoid compiler warning
31313         * lib/getopt.c (attribute_hidden): Remove unused macro.
31314
31315 2010-03-18  Bruno Haible  <bruno@clisp.org>
31316
31317         Fix link errors on Solaris 8.
31318         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31319         * modules/search-tests (test_search_c___LDADD): Likewise.
31320         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31321         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31322         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31323         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31324         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31325         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31326         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31327
31328 2010-03-18  Bruno Haible  <bruno@clisp.org>
31329
31330         Fix bug introduced on 2010-03-14.
31331         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31332         (gl_SPAWN_H): Require it.
31333         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31334         Reported by Simon Josefsson.
31335
31336 2010-03-18  Bruno Haible  <bruno@clisp.org>
31337
31338         Fix typo introduced on 2009-12-31.
31339         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31340         posix_spawn_file_actions_adddup2.
31341
31342 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31343         and Eric Blake  <eblake@redhat.com>
31344
31345         test-vc-list-files-git: make more robust
31346         * tests/test-vc-list-files-git.sh: Unset problematic environment
31347         variables.  Chain commands together.
31348
31349 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31350
31351         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31352         `AC_CHECK_DECL' invocation.
31353
31354 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31355
31356         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31357         appears before executable statements. Suggested by Petr Sumbera
31358         <Petr.Sumbera@Sun.COM>.
31359
31360 2010-03-14  Bruno Haible  <bruno@clisp.org>
31361
31362         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31363         portability problems. Instead use a simpler test.
31364         (main): Check that invalid arguments are rejected only on Linux.
31365
31366 2010-03-14  Bruno Haible  <bruno@clisp.org>
31367
31368         Fix bug introduced on 2009-12-31.
31369         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31370         gl_PREREQ_SYS_H_WINSOCK2 always.
31371         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31372         SYS_SOCKET_H variable.
31373         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31374         Update comments.
31375         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31376         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31379         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31380
31381 2010-03-14  Bruno Haible  <bruno@clisp.org>
31382
31383         Fix values returned by sinl, cosl.
31384         * lib/trigl.h: Add specification comments.
31385         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31386         that combines the values from the precomputed table with the values of
31387         the Chebyshev polynomials.
31388
31389 2010-03-14  Bruno Haible  <bruno@clisp.org>
31390
31391         Fix compilation error when modules 'posix_spawn[p]' are not used.
31392         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31393         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31394
31395 2010-03-14  Bruno Haible  <bruno@clisp.org>
31396
31397         Fix compilation error on mingw when module 'time_r' is not used.
31398         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31399         is 1.
31400         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31401         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31402         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31403         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31404
31405 2010-03-14  Bruno Haible  <bruno@clisp.org>
31406
31407         Fix compilation error with Sun C.
31408         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31409         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31410         instead of GCC specific ULONG_LONG_MAX.
31411         * lib/xstrtoll.c: Likewise.
31412         * lib/xstrtoull.c: Likewise.
31413
31414 2010-03-13  Bruno Haible  <bruno@clisp.org>
31415
31416         Allow the user to disable C++ code and tests.
31417         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31418         (gl_PROG_ANSI_CXX): Require it.
31419
31420 2010-03-13  Bruno Haible  <bruno@clisp.org>
31421
31422         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31423         cases.
31424
31425 2010-03-13  Bruno Haible  <bruno@clisp.org>
31426
31427         Test that gnulib does not break the standard C++ headers.
31428         * tests/test-locale-c++2.cc: New file.
31429         * modules/locale-tests (Files): Add it.
31430         (Makefile.am): Compile it for test-locale-c++.
31431         * tests/test-math-c++2.cc: New file.
31432         * modules/math-tests (Files): Add it.
31433         (Makefile.am): Compile it for test-math-c++.
31434         * tests/test-signal-c++2.cc: New file.
31435         * modules/signal-tests (Files): Add it.
31436         (Makefile.am): Compile it for test-signal-c++.
31437         * tests/test-stdio-c++2.cc: New file.
31438         * modules/stdio-tests (Files): Add it.
31439         (Makefile.am): Compile it for test-stdio-c++.
31440         * tests/test-stdlib-c++2.cc: New file.
31441         * modules/stdlib-tests (Files): Add it.
31442         (Makefile.am): Compile it for test-stdlib-c++.
31443         * tests/test-string-c++2.cc: New file.
31444         * modules/string-tests (Files): Add it.
31445         (Makefile.am): Compile it for test-string-c++.
31446         * tests/test-time-c++2.cc: New file.
31447         * modules/time-tests (Files): Add it.
31448         (Makefile.am): Compile it for test-time-c++.
31449         Reported by John W. Eaton <jwe@gnu.org>.
31450
31451 2010-03-13  Bruno Haible  <bruno@clisp.org>
31452
31453         * gnulib-tool (func_usage): Clarify which options are available for
31454         --create-testdir and --create-megatestdir.
31455
31456 2010-03-13  Bruno Haible  <bruno@clisp.org>
31457
31458         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31459         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31460         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31461         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31462         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31463         when appropriate.
31464         Reported by Jim Meyering.
31465
31466 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31467
31468         * gnulib-tool (func_import): Explain origin of code.
31469
31470 2010-03-12  Bruno Haible  <bruno@clisp.org>
31471
31472         Fix problem with automake's definition of CXXLINK.
31473         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31474         Reported by Simon Josefsson and Ludovic Courtès.
31475
31476 2010-03-12  Bruno Haible  <bruno@clisp.org>
31477
31478         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31479         stable releases.
31480
31481 2010-03-11  Bruno Haible  <bruno@clisp.org>
31482
31483         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31484         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31485         whether the system provides one variant or multiple variants of the
31486         function.
31487         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31488         C++ compilers.
31489         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31490         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31491         Reported by Jim Meyering.
31492
31493 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31494
31495         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31496
31497 2010-03-08  Bruno Haible  <bruno@clisp.org>
31498
31499         gnulib-tool: Add support for --libtool in --create-testdir.
31500         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31501         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31502
31503 2010-03-08  Eric Blake  <eblake@redhat.com>
31504
31505         gnulib-tool.texi: mention possibility of git submodule
31506         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31507         submodules.
31508         * doc/.gitignore: Ignore another generated file.
31509
31510 2010-03-08  Karl Berry  <karl@gnu.org>
31511
31512         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31513         of committing gnulib files while skipping others.
31514
31515 2010-03-07  Bruno Haible  <bruno@clisp.org>
31516
31517         Tests of module 'wctype' in C++ mode.
31518         * tests/test-wctype-c++.cc: New file.
31519         * modules/wctype-tests (Files): Add it and tests/signature.h.
31520         (Depends-on): Add ansi-c++-opt.
31521         (Makefile.am): Arrange to compile and run test-wctype-c++.
31522
31523         Tests of module 'wchar' in C++ mode.
31524         * tests/test-wchar-c++.cc: New file.
31525         * modules/wchar-tests (Files): Add it and tests/signature.h.
31526         (Depends-on): Add ansi-c++-opt.
31527         (Makefile.am): Arrange to compile and run test-wchar-c++.
31528         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31529         gl_MODULE_INDICATOR.
31530
31531         Tests of module 'unistd' in C++ mode.
31532         * tests/test-unistd-c++.cc: New file.
31533         * modules/unistd-tests (Files): Add it and tests/signature.h.
31534         (Depends-on): Add ansi-c++-opt.
31535         (Makefile.am): Arrange to compile and run test-unistd-c++.
31536         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31537         gl_MODULE_INDICATOR.
31538
31539         Tests of module 'time' in C++ mode.
31540         * tests/test-time-c++.cc: New file.
31541         * modules/time-tests (Files): Add it and tests/signature.h.
31542         (Depends-on): Add ansi-c++-opt.
31543         (Makefile.am): Arrange to compile and run test-time-c++.
31544         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31545
31546         Tests of module 'sys_time' in C++ mode.
31547         * tests/test-sys_time-c++.cc: New file.
31548         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31549         (Depends-on): Add ansi-c++-opt.
31550         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31551         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31552         gl_MODULE_INDICATOR.
31553
31554         Tests of module 'sys_stat' in C++ mode.
31555         * tests/test-sys_stat-c++.cc: New file.
31556         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31557         (Depends-on): Add ansi-c++-opt.
31558         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31559         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31560         gl_MODULE_INDICATOR.
31561
31562         Tests of module 'sys_socket' in C++ mode.
31563         * tests/test-sys_socket-c++.cc: New file.
31564         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31565         (Depends-on): Add ansi-c++-opt.
31566         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31567         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31568         gl_MODULE_INDICATOR.
31569
31570         Tests of module 'sys_select' in C++ mode.
31571         * tests/test-sys_select-c++.cc: New file.
31572         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31573         (Depends-on): Add ansi-c++-opt.
31574         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31575         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31576         gl_MODULE_INDICATOR.
31577
31578         Tests of module 'sys_ioctl' in C++ mode.
31579         * tests/test-sys_ioctl-c++.cc: New file.
31580         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31581         (Depends-on): Add ansi-c++-opt.
31582         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31583         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31584         gl_MODULE_INDICATOR.
31585
31586         Tests of module 'string' in C++ mode.
31587         * tests/test-string-c++.cc: New file.
31588         * modules/string-tests (Files): Add it and tests/signature.h.
31589         (Depends-on): Add ansi-c++-opt.
31590         (Makefile.am): Arrange to compile and run test-string-c++.
31591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31592         gl_MODULE_INDICATOR.
31593
31594         Tests of module 'stdlib' in C++ mode.
31595         * tests/test-stdlib-c++.cc: New file.
31596         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31597         (Depends-on): Add ansi-c++-opt.
31598         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31599         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31600         gl_MODULE_INDICATOR.
31601
31602         Tests of module 'stdio' in C++ mode.
31603         * tests/test-stdio-c++.cc: New file.
31604         * modules/stdio-tests (Files): Add it and tests/signature.h.
31605         (Depends-on): Add ansi-c++-opt.
31606         (Makefile.am): Arrange to compile and run test-stdio-c++.
31607         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31608         gl_MODULE_INDICATOR.
31609
31610         Tests of module 'spawn' in C++ mode.
31611         * tests/test-spawn-c++.cc: New file.
31612         * modules/spawn-tests (Files): Add it and tests/signature.h.
31613         (Depends-on): Add ansi-c++-opt.
31614         (Makefile.am): Arrange to compile and run test-spawn-c++.
31615         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31616         gl_MODULE_INDICATOR.
31617
31618         Tests of module 'signal' in C++ mode.
31619         * tests/test-signal-c++.cc: New file.
31620         * modules/signal-tests (Files): Add it and tests/signature.h.
31621         (Depends-on): Add ansi-c++-opt.
31622         (Makefile.am): Arrange to compile and run test-signal-c++.
31623         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31624         gl_MODULE_INDICATOR.
31625
31626         Tests of module 'search' in C++ mode.
31627         * tests/test-search-c++.cc: New file.
31628         * modules/search-tests (Files): Add it and tests/signature.h.
31629         (Depends-on): Add ansi-c++-opt.
31630         (Makefile.am): Arrange to compile and run test-search-c++.
31631         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31632         gl_MODULE_INDICATOR.
31633
31634         Tests of module 'math' in C++ mode.
31635         * tests/test-math-c++.cc: New file.
31636         * modules/math-tests (Files): Add it and tests/signature.h.
31637         (Depends-on): Add ansi-c++-opt.
31638         (Makefile.am): Arrange to compile and run test-math-c++.
31639         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31640
31641         Tests of module 'locale' in C++ mode.
31642         * tests/test-locale-c++.cc: New file.
31643         * modules/locale-tests (Files): Add it and tests/signature.h.
31644         (Depends-on): Add ansi-c++-opt.
31645         (Makefile.am): Arrange to compile and run test-locale-c++.
31646         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31647         gl_MODULE_INDICATOR.
31648
31649         Tests of module 'langinfo' in C++ mode.
31650         * tests/test-langinfo-c++.cc: New file.
31651         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31652         (Depends-on): Add ansi-c++-opt.
31653         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31654         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31655         gl_MODULE_INDICATOR.
31656
31657         Tests of module 'iconv-h' in C++ mode.
31658         * tests/test-iconv-h-c++.cc: New file.
31659         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31660         (Depends-on): Add ansi-c++-opt.
31661         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31662
31663         Tests of module 'glob' in C++ mode.
31664         * tests/test-glob-c++.cc: New file.
31665         * modules/glob-tests (Files): Add it.
31666         (Depends-on): Add ansi-c++-opt.
31667         (Makefile.am): Arrange to compile and run test-glob-c++.
31668
31669         Tests of module 'fcntl-h' in C++ mode.
31670         * tests/test-fcntl-h-c++.cc: New file.
31671         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31672         (Depends-on): Add ansi-c++-opt.
31673         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31674         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31675         gl_MODULE_INDICATOR.
31676
31677         Tests of module 'dirent' in C++ mode.
31678         * tests/test-dirent-c++.cc: New file.
31679         * modules/dirent-tests (Files): Add it and tests/signature.h.
31680         (Depends-on): Add ansi-c++-opt.
31681         (Makefile.am): Arrange to compile and run test-dirent-c++.
31682         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31683         gl_MODULE_INDICATOR.
31684
31685         New module 'ansi-c++-opt'.
31686         * modules/ansi-c++-opt: New file.
31687         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31688
31689         Document C++ namespace mode.
31690         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31691
31692         wctype: Avoid #define replacements in C++ mode.
31693         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31694         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31695         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31696         In C++, define a namespaced alias symbol.
31697         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31698         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31699         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31700         rule.
31701
31702         wchar: Avoid #define replacements in C++ mode.
31703         * lib/wchar.in.h: Include c++defs.h.
31704         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31705         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31706         symbol.
31707         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31708         * modules/wchar (Depends-on): Add c++defs.
31709         (Makefile.am): Update wchar.h rule.
31710
31711         unistd: Avoid #define replacements in C++ mode.
31712         * lib/unistd.in.h: Include c++defs.h.
31713         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31714         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31715         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31716         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31717         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31718         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31719         symbol.
31720         (environ): Update.
31721         * modules/unistd (Depends-on): Add c++defs.
31722         (Makefile.am): Update unistd.h rule.
31723
31724         time: Avoid #define replacements in C++ mode.
31725         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31726         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31727         define a namespaced alias symbol.
31728         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31729         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31730         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31731         * modules/time (Depends-on): Add c++defs, warn-on-use.
31732         (Makefile.am): Update time.h rule.
31733         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31734         * modules/nanosleep (configure.ac): Likewise.
31735         * modules/strptime (configure.ac): Likewise.
31736         * modules/timegm (configure.ac): Likewise.
31737
31738         sys_time: Avoid #define replacements in C++ mode.
31739         * lib/sys_time.in.h: Include c++defs.h.
31740         (gettimeofday): In C++, define a namespaced alias symbol.
31741         * modules/sys_time (Depends-on): Add c++defs.
31742         (Makefile.am): Update sys/time.h rule.
31743
31744         sys_stat: Avoid #define replacements in C++ mode.
31745         * lib/sys_stat.in.h: Include c++defs.h.
31746         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31747         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31748         namespaced alias symbol.
31749         In C++, define a namespaced alias symbol.
31750         * modules/sys_stat (Depends-on): Add c++defs.
31751         (Makefile.am): Update sys/stat.h rule.
31752
31753         sys_socket: Avoid #define replacements in C++ mode.
31754         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31755         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31756         definitions also when the system has a <sys/socket.h>.
31757         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31758         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31759         In C++, define a namespaced alias symbol.
31760         * modules/sys_socket (Depends-on): Add c++defs.
31761         (Makefile.am): Update sys/socket.h rule.
31762
31763         sys_select: Avoid #define replacements in C++ mode.
31764         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31765         definitions also when the system has a <sys/select.h>.
31766         (select): In C++, define a namespaced alias symbol.
31767         * modules/sys_select (Depends-on): Add c++defs.
31768         (Makefile.am): Update sys/select.h rule.
31769
31770         sys_ioctl: Avoid #define replacements in C++ mode.
31771         * lib/sys_ioctl.in.h: Include c++defs.h.
31772         (ioctl): In C++, define a namespaced alias symbol.
31773         * modules/sys_ioctl (Depends-on): Add c++defs.
31774         (Makefile.am): Update sys/ioctl.h rule.
31775
31776         string: Avoid #define replacements in C++ mode.
31777         * lib/string.in.h: Include c++defs.h.
31778         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31779         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31780         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31781         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31782         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31783         * modules/string (Depends-on): Add c++defs.
31784         (Makefile.am): Update string.h rule.
31785
31786         stdlib: Avoid #define replacements in C++ mode.
31787         * lib/stdlib.in.h: Include c++defs.h.
31788         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31789         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31790         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31791         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31792         symbol.
31793         * modules/stdlib (Depends-on): Add c++defs.
31794         (Makefile.am): Update stdlib.h rule.
31795
31796         stdio: Avoid #define replacements in C++ mode.
31797         * lib/stdio.in.h: Include c++defs.h.
31798         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31799         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31800         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31801         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31802         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31803         namespaced alias symbol.
31804         * modules/stdio (Depends-on): Add c++defs.
31805         (Makefile.am): Update stdio.h rule.
31806
31807         spawn: Avoid #define replacements in C++ mode.
31808         * lib/spawn.in.h: Include c++defs.h.
31809         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31810         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31811         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31812         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31813         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31814         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31815         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31816         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31817         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31818         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31819         In C++, define a namespaced alias symbol.
31820         * modules/spawn (Depends-on): Add c++defs.
31821         (Makefile.am): Update spawn.h rule.
31822
31823         signal: Avoid #define replacements in C++ mode.
31824         * lib/signal.in.h: Include c++defs.h.
31825         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31826         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31827         namespaced alias symbol.
31828         * modules/signal (Depends-on): Add c++defs.
31829         (Makefile.am): Update signal.h rule.
31830
31831         search: Avoid #define replacements in C++ mode.
31832         * lib/search.in.h: Include c++defs.h.
31833         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31834         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31835         symbol.
31836         * modules/search (Depends-on): Add c++defs.
31837         (Makefile.am): Update search.h rule.
31838
31839         math: Avoid #define replacements in C++ mode.
31840         * lib/math.in.h: Include c++defs.h.
31841         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31842         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31843         trunc, truncl): In C++, define a namespaced alias symbol.
31844         * modules/math (Depends-on): Add c++defs.
31845         (Makefile.am): Update math.h rule.
31846
31847         locale: Avoid #define replacements in C++ mode.
31848         * lib/locale.in.h: Include c++defs.h.
31849         (duplocale): In C++, define a namespaced alias symbol.
31850         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31851         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31852         * modules/locale (Depends-on): Add c++defs.
31853         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31854
31855         langinfo: Avoid #define replacements in C++ mode.
31856         * lib/langinfo.in.h: Include c++defs.h.
31857         (nl_langinfo): In C++, define a namespaced alias symbol.
31858         * modules/langinfo (Depends-on): Add c++defs.
31859         (Makefile.am): Update langinfo.h rule.
31860
31861         iconv-h: Avoid #define replacements in C++ mode.
31862         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31863         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31864         symbol.
31865         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31866         whenever iconv is present.
31867         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31868         (Makefile.am): Update iconv.h rule.
31869
31870         glob: Avoid #define replacements in C++ mode.
31871         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31872         (_gl_glob_errfunc_fn): New type.
31873         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31874         symbol.
31875         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31876         (Makefile.am): Update glob.h rule.
31877
31878         fcntl-h: Avoid #define replacements in C++ mode.
31879         * lib/fcntl.in.h: Include c++defs.h.
31880         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31881         * modules/fcntl-h (Depends-on): Add c++defs.
31882         (Makefile.am): Update fcntl.h rule.
31883
31884         dirent: Avoid #define replacements in C++ mode.
31885         * lib/dirent.in.h: Include c++defs.h.
31886         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31887         namespaced alias symbol.
31888         (dirfd): Update declaration.
31889         * modules/dirent (Depends-on): Add c++defs.
31890         (Makefile.am): Update dirent.h rule.
31891
31892         ctype: Make it usable in C++ code.
31893         * lib/ctype.in.h: Include c++defs.h.
31894         (isblank): Declare as extern "C".
31895         * modules/ctype (Depends-on): Add c++defs.
31896         (Makefile.am): Update ctype.h rule.
31897
31898         New module 'c++defs'.
31899         * modules/c++defs: New file.
31900         * build-aux/c++defs.h: New file.
31901         Reported by John W. Eaton <jwe@gnu.org>.
31902
31903 2010-03-07  Bruno Haible  <bruno@clisp.org>
31904
31905         logb: Provide missing declaration for Cygwin.
31906         * lib/math.in.h (logb): New declaration.
31907         * m4/logb.m4: New file.
31908         * modules/logb (Files): Add m4/logb.m4.
31909         (Depends-on): Add math.
31910         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31911         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31913         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31914         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31915
31916 2010-03-07  Bruno Haible  <bruno@clisp.org>
31917
31918         Fix test-cond link error.
31919         * tests/test-cond.c: Include <stdio.h>.
31920
31921 2010-03-07  Bruno Haible  <bruno@clisp.org>
31922
31923         Fix test-dirent-safer link error.
31924         * modules/dirent-safer-tests (Makefile.am): Define
31925         test_dirent_safer_LDADD.
31926
31927 2010-03-07  Bruno Haible  <bruno@clisp.org>
31928
31929         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31930         among default module list.
31931
31932 2010-03-07  Bruno Haible  <bruno@clisp.org>
31933
31934         Fix link error on platforms with GNU libiconv.
31935         * modules/unistr/u8-strcoll-tests (Makefile): Define
31936         test_u8_strcoll_LDADD.
31937         * modules/unistr/u16-strcoll-tests (Makefile): Define
31938         test_u16_strcoll_LDADD.
31939         * modules/unistr/u32-strcoll-tests (Makefile): Define
31940         test_u32_strcoll_LDADD.
31941
31942 2010-03-07  Bruno Haible  <bruno@clisp.org>
31943
31944         Use POSIX declarations for socket functions.
31945         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31946         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31947         rpl_sendto): Change declaration to match POSIX.
31948         * lib/connect.c (rpl_connect): Likewise.
31949         * lib/accept.c (rpl_accept): Likewise.
31950         * lib/bind.c (rpl_bind): Likewise.
31951         * lib/getpeername.c (rpl_getpeername): Likewise.
31952         * lib/getsockname.c (rpl_getsockname): Likewise.
31953         * lib/recv.c (rpl_recv): Likewise.
31954         * lib/send.c (rpl_send): Likewise.
31955         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31956         * lib/sendto.c (rpl_sendto): Likewise.
31957
31958 2010-03-06  Bruno Haible  <bruno@clisp.org>
31959
31960         Clarify access, euidaccess, faccessat.
31961         * doc/posix-functions/faccessat.texi: Mention security problem under
31962         "Other problems", not "Portability problems".
31963         * doc/posix-functions/access.texi: Likewise. Mention a related security
31964         problem.
31965         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31966         * lib/euidaccess.c: Add comments about platforms.
31967         * lib/unistd.in.h (access, euidaccess): Add warnings.
31968
31969 2010-03-07  Bruno Haible  <bruno@clisp.org>
31970
31971         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31972         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31973         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31974         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31975         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31976         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31977         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31978         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31979         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31981         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31982         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31983         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31984         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31985         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31986         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31987         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31988         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31989         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31990         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31991         Likewise.
31992         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31993         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31994         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31995         Likewise.
31996         * tests/test-spawn.c (main): Make it work when
31997         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31998
31999 2010-03-07  Bruno Haible  <bruno@clisp.org>
32000
32001         Fix incorrect Makefile.am generation in German locale.
32002         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32003         Execute sed command with character range in C locale.
32004
32005 2010-03-06  Bruno Haible  <bruno@clisp.org>
32006
32007         Tests for module 'iconv-h'.
32008         * modules/iconv-h-tests: New file.
32009         * tests/test-iconv-h.c: New file.
32010
32011         New module 'iconv-h'.
32012         * modules/iconv-h: New file.
32013         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32014         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32015         (configure.ac): Remove gl_ICONV_H.
32016         (Makefile.am): Remove rule for iconv.h.
32017
32018 2010-03-06  Bruno Haible  <bruno@clisp.org>
32019
32020         More consistent naming of *.m4 files.
32021         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32022         * modules/wctype (Files): Update.
32023
32024         More consistent naming of *.m4 files.
32025         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32026         * modules/wchar (Files): Update.
32027
32028 2010-03-06  Jim Meyering  <meyering@redhat.com>
32029
32030         euidaccess: relax license to LGPLv2+
32031         * modules/euidaccess (License): Relax to LGPLv2+.
32032
32033 2010-03-06  Bruno Haible  <bruno@clisp.org>
32034
32035         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32036         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32037         (Makefile.am): Augment lib_SOURCES instead.
32038
32039 2010-03-04  Jim Meyering  <meyering@redhat.com>
32040
32041         utime: remove obsolete module
32042         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32043         unnecessary for years, and has been marked as obsolete for 10 months.
32044         * modules/utime: Remove file.
32045         * lib/utime.c: Remove file.
32046         * m4/utime.m4: Remove file.
32047         * m4/utimes-null.m4: Remove file.
32048         * doc/posix-functions/utime.texi (utime): Remove reference to
32049         the module.  Move the sole "fixed by gnulib" item into the
32050         "problems not fixed by Gnulib" list.
32051         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32052
32053 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32054
32055         * modules/exit (License): Relax license to LGPLv2+.
32056         (Status): Mark as obsolete.
32057         * NEWS: Mention deprecated 'exit' module.
32058         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32059         of now obsolete 'exit'.
32060
32061 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32062
32063         fts-lgpl: remove unused module
32064         * modules/fts-lgpl: Remove.
32065         * MODULES.html.sh (func_all_modules): Adjust.
32066         * check-module (find_included_lib_files): Adjust.
32067         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32068
32069 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32070
32071         copy-acl: enhance Solaris ACL error handling
32072         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32073         * lib/set-mode-acl.c (qset_acl): Likewise.
32074
32075 2010-03-02  Bruno Haible  <bruno@clisp.org>
32076
32077         spawn: Don't override the system defined values on FreeBSD 8.
32078         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32079         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32080         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32081         if HAVE_POSIX_SPAWN is 1.
32082         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32083
32084 2010-03-01  Bruno Haible  <bruno@clisp.org>
32085
32086         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32087         regarding Automake.
32088
32089 2010-02-25  Bruno Haible  <bruno@clisp.org>
32090
32091         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32092         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32093         setting, not afterwards.
32094         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32095
32096 2010-02-24  Eric Blake  <eblake@redhat.com>
32097
32098         bootstrap, git-version-gen: use timestamp
32099         * build-aux/git-version-gen (scriptversion): Force UTC.
32100         * build-aux/bootstrap (scriptversion): New variable.
32101
32102         bootstrap: allow older git
32103         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32104         older than 1.6.4.  Requested by the libvirt project.
32105
32106 2010-02-23  Eric Blake  <eblake@redhat.com>
32107
32108         warn-on-use: work with old autoconf
32109         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32110         AS_VAR semantics of autoconf 2.60.
32111         Reported by Bruno Haible.
32112
32113         bootstrap: improve some comments
32114         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32115         clarification comments.
32116
32117         gettimeofday: provide correct function
32118         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32119         when replacement is declared, otherwise provide gettimeofday.
32120         Reported by Michael Goffioul.
32121
32122 2010-02-23  Jim Meyering  <meyering@redhat.com>
32123
32124         lib-ignore: relax license to "unlimited", not LGPLv2+
32125         * modules/lib-ignore (License): Relax to "unlimited".
32126
32127 2010-02-23  Jim Meyering  <meyering@redhat.com>
32128
32129         lib-ignore: relax license to LGPLv2+
32130         * modules/lib-ignore (License): Relax to LGPLv2+.
32131
32132 2010-02-22  Eric Blake  <eblake@redhat.com>
32133
32134         lseek: avoid bash 3.2 broken pipe bug
32135         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32136         warning from bash 3.2.
32137         Reported by Ben Pfaff, with analysis from Bruno Haible.
32138
32139         bootstrap: support non-FSF copyright holder
32140         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32141         bootstrap.conf override of COPYRIGHT_HOLDER.
32142         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32143
32144         bootstrap: interoperate with gettext 0.14.1
32145         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32146
32147         bootstrap: allow for alternate submodule location
32148         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32149         hardcoding submodule location.
32150         (gnulib_mk): Allow direct use of Makefile.am.
32151
32152         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32153         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32154         rather than reconfiguring where the submodule points.
32155
32156         gettimeofday: restore support for platforms that lack function
32157         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32158         replacement if function is missing.
32159         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32160         * modules/sys_time (Makefile.am): Substitute it.
32161         * lib/sys_time.in.h (gettimeofday): Check it.
32162         Reported by Michael Goffioul.
32163
32164 2010-02-21  Bruno Haible  <bruno@clisp.org>
32165
32166         * lib/stdio.in.h (obstack_printf): Fix typo.
32167
32168 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32169
32170         vc-list-files: use bzr ls's -R option
32171         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32172         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32173
32174 2010-02-21  Jim Meyering  <meyering@redhat.com>
32175
32176         init.sh: fix EXEEXT shims to work also for names like test-prog
32177         * tests/init.sh: Re-exec a better shell, when needed.
32178         If the current shell lacks support for posix $(...), an init.sh-using
32179         test will now try to find a shell that supports that.  If EXEEXT is
32180         nonempty, we also require support for hyphen-in-alias-name and shell
32181         substitutions like ${var#glob}.  Failure to find such a shell results
32182         in a skipped test.
32183
32184 2010-02-21  Bruno Haible  <bruno@clisp.org>
32185
32186         Really work around around "broken pipe" error message from bash 3.2.
32187         * gnulib-tool (func_reset_sigpipe): Remove function.
32188         (echo): In bash 3.2, define to a function that uses printf.
32189         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32190
32191 2010-02-20  Bruno Haible  <bruno@clisp.org>
32192
32193         Restore support for automake 1.9.6 with autoconf 2.61.
32194         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32195         Reported by James Youngman <jay@gnu.org>.
32196
32197 2010-02-20  Bruno Haible  <bruno@clisp.org>
32198
32199         Improve *printf warning condition.
32200         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32201         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32202         and the function is overridden due to SIGPIPE emulation.
32203
32204 2010-02-20  Bruno Haible  <bruno@clisp.org>
32205
32206         * lib/stdio.in.h: Tweak comments.
32207
32208 2010-02-19  Bruno Haible  <bruno@clisp.org>
32209
32210         Make it easier to find modules. New gnulib-tool option '--find'.
32211         * gnulib-tool: New option --find.
32212         (func_usage): Document it.
32213         (func_sanitize_modulelist): New function, extracted from
32214         func_all_modules.
32215         (func_all_modules): Invoke it.
32216         * doc/gnulib-tool.texi (Which modules?): New node.
32217
32218 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32219
32220         * lib/sys_select.in.h: Provide select replacement even if
32221         sys/select.h exists on a system, for Interix.
32222
32223 2010-02-18  Jim Meyering  <meyering@redhat.com>
32224
32225         init.sh: don't use $(...) just yet
32226         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32227         to accommodate e.g., Solaris' /bin/sh.
32228
32229 2010-02-17  Bruno Haible  <bruno@clisp.org>
32230
32231         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32232         Reported by Ludovic Courtès <ludo@gnu.org>.
32233
32234 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32235
32236         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32237         linking with -lintl.
32238
32239 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32240
32241         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32242         if not provided by the system's netdb.h.  Reported by
32243         ludo@gnu.org (Ludovic Courtès).
32244
32245 2010-02-15  Jim Meyering  <meyering@redhat.com>
32246
32247         init.sh: improve portability and efficiency
32248         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32249         "dummy" in a for loop.
32250         Use '!', not '^' to select the complement of a character set used
32251         in a "case" statement.
32252         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32253         Suggestions from Eric Blake.
32254
32255         init.sh: automatically accommodate programs with the .exe suffix
32256         Automatically arrange for an invocation of "prog" to execute the
32257         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32258         may use the simpler "prog", yet still work when built on a system
32259         that requires specifying the added suffix.
32260         Do this by constructing a function named "prog" that invokes
32261         "prog.exe" for each .exe file in selected directories.
32262         * tests/init.sh (find_exe_basenames_): New function.
32263         (create_exe_shim_functions_): New function.
32264         (path_prepend_): Use it.
32265
32266         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32267         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32268         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32269
32270 2010-02-14  Jim Meyering  <meyering@redhat.com>
32271
32272         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32273         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32274         (sc_prohibit_hash_pjw_without_use): New rule.
32275
32276         maint.mk: allow the default upload destination dir to be overridden
32277         * top/maint.mk (upload_dest_dir_): Define with a default that
32278         preserves the status quo.
32279         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32280         Reported by Peter Simons.
32281
32282         maint.mk: prohibit inclusion of "hash.h" without_use
32283         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32284
32285 2010-02-10  Jim Meyering  <meyering@redhat.com>
32286
32287         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32288         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32289
32290 2010-02-09  Eric Blake  <ebb9@byu.net>
32291         and Bruno Haible  <bruno@clisp.org>
32292
32293         obstack-printf-posix: ensure declaration
32294         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32295         extracted from gl_FUNC_OBSTACK_PRINTF.
32296         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32297         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32298         Likewise.
32299         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32300         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32301         0.
32302
32303 2010-02-08  Bruno Haible  <bruno@clisp.org>
32304
32305         gnulib-tool: Fix typo in 2010-02-07 commit.
32306         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32307         Reported by Eric Blake.
32308
32309 2010-02-07  Bruno Haible  <bruno@clisp.org>
32310
32311         gnulib-tool: Fix up caching patches.
32312         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32313         option --no-cache. Use associative arrays when supported by the shell.
32314         (sed_comments): New variable.
32315         (modcache): Renamed from do_cache.
32316         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32317         abbreviate unnecessarily.
32318         (have_associative): New variable.
32319         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32320         way also for ksh and zsh.
32321         (func_init_sed_convert_to_cache_statements): New function, extracted
32322         from func_cache_lookup_module. Add support for associative arrays.
32323         Don't set the c_MODULE_cached variable here. Ignore all lines before
32324         the first field header. Remove only the final newline, not all trailing
32325         newlines. Support empty fields correctly. Limit the use of 'eval' to
32326         assignments.
32327         (func_get_description, func_get_status, func_get_notice,
32328         func_get_applicability, func_get_filelist, func_get_dependencies,
32329         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32330         func_get_automake_snippet, func_get_include_directive,
32331         func_get_link_directive, func_get_license, func_get_maintainer):
32332         Update documentation. List the unoptimized code first. Add support for
32333         associative arrays. Limit the use of 'eval' to assignments.
32334         (func_get_applicability): Undo stylistic pessimisations.
32335         (func_get_automake_snippet, func_get_include_directive): Reduce code
32336         duplication.
32337         (func_modules_transitive_closure, func_modules_add_dummy,
32338         func_modules_notice, func_modules_to_filelist, func_add_file,
32339         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32340         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32341         func_create_testdir, func_create_megatestdir): Update documentation.
32342
32343 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32344
32345         * gnulib-tool (func_cache_lookup_module): Store the module name
32346         belonging to the cache variable; error out if two different
32347         module names map to the same cache variable name.
32348
32349 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32350
32351         gnulib-tool: Make caching optional.
32352         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32353         Update matching short versions of --no-changelog.
32354         (func_usage): Update.
32355         (sed_extract_cache_prog): Renamed from ...
32356         (sed_extract_prog): ... this; revert to old extraction script.
32357         (func_get_description, func_get_status)
32358         (func_get_notice, func_get_applicability, func_get_filelist)
32359         (func_get_dependencies, func_get_autoconf_early_snippet)
32360         (func_get_autoconf_snippet, func_get_automake_snippet)
32361         (func_get_include_directive, func_get_link_directive)
32362         (func_get_license, func_get_maintainer): If $do_cache is false,
32363         use old, non-caching extraction scripts.
32364         Suggestion by Bruno Haible.
32365
32366 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32367
32368         gnulib-tool: cache module metainformation.
32369         * gnulib-tool (sed_extract_prog): Match newline before each
32370         header, and rewrite header to a shell variable suffix.
32371         (func_cache_var, func_cache_lookup_module): New functions,
32372         to turn a module name into a cache variable prefix, and to
32373         look up and cache module metainformation.
32374         (func_get_description, func_get_status)
32375         (func_get_notice, func_get_applicability, func_get_filelist)
32376         (func_get_dependencies, func_get_autoconf_early_snippet)
32377         (func_get_autoconf_snippet, func_get_automake_snippet)
32378         (func_get_include_directive, func_get_link_directive)
32379         (func_get_license, func_get_maintainer): Use
32380         func_cache_lookup_module.
32381
32382 2010-02-07  Bruno Haible  <bruno@clisp.org>
32383
32384         fnctl: Fix missing dependency.
32385         * modules/fcntl (Depends-on): Add getdtablesize.
32386         Reported by John W. Eaton <jwe@gnu.org>.
32387
32388 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32389
32390         Argp: fix recognition of short alias options.
32391
32392         * lib/argp-parse.c (convert_options): Fix improper use of
32393         `|' between character values.
32394         * tests/test-argp.c (group1_option): New alias option
32395         --read (-r).
32396         (group1_parser): Special handling for 'r'.
32397         (test15): New test case.
32398         (test_fun): Add test15.
32399         * tests/test-argp-2.sh: Update expected --help and --usage
32400         outputs.
32401
32402 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32403
32404         * tests/test-argp.c: Fix indentation.
32405
32406 2010-02-04  Eric Blake  <ebb9@byu.net>
32407
32408         gettimeofday: expose type of second argument
32409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32410         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32411         * tests/test-gettimeofday.c: Use it to silence warning.
32412         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32413         the issue.
32414
32415 2010-02-03  Jim Meyering  <meyering@redhat.com>
32416
32417         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32418         * lib/regcomp.c (TYPE_SIGNED): Define.
32419         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32420
32421         regcomp.c: avoid a new -Wshadow warning
32422         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32423
32424 2010-02-01  Jim Meyering  <meyering@redhat.com>
32425
32426         removing useless parentheses in cpp #define directives
32427         For motivation, see commit c0221df4, "define STREQ(a,b)
32428         consistently, removing useless parentheses"
32429         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32430         * lib/mountlist.c (MNT_IGNORE): Likewise.
32431         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32432
32433 2010-02-01  Eric Blake  <ebb9@byu.net>
32434
32435         sys_time: use link-warning
32436         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32437         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32438         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32439         * modules/sys_time (Depends-on): Add warn-on-use.
32440         (Makefile.am): Always build replacement.
32441         (configure.ac): Update substitutions.
32442         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32443         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32444         bother with SYS_TIME_H.
32445         * modules/gettimeofday (configure.ac): Declare indicator.
32446         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32447         in use.
32448
32449         closein-tests: silence compiler warning
32450         * tests/test-closein.c (main): Ignore fread result.
32451         * modules/closein-tests (Depends-on): Add ignore-value.
32452
32453         tests: silence warning about system return
32454         * tests/test-areadlink-with-size.c (main): Ignore system result.
32455         * tests/test-areadlink.c (main): Likewise.
32456         * tests/test-areadlinkat-with-size.c (main): Likewise.
32457         * tests/test-areadlinkat.c (main): Likewise.
32458         * tests/test-canonicalize-lgpl.c (main): Likewise.
32459         * tests/test-canonicalize.c (main): Likewise.
32460         * tests/test-chown.c (main): Likewise.
32461         * tests/test-fchownat.c (main): Likewise.
32462         * tests/test-fdutimensat.c (main): Likewise.
32463         * tests/test-fstatat.c (main): Likewise.
32464         * tests/test-futimens.c (main): Likewise.
32465         * tests/test-lchown.c (main): Likewise.
32466         * tests/test-link.c (main): Likewise.
32467         * tests/test-linkat.c (main): Likewise.
32468         * tests/test-lstat.c (main): Likewise.
32469         * tests/test-mkdir.c (main): Likewise.
32470         * tests/test-mkdirat.c (main): Likewise.
32471         * tests/test-mkfifo.c (main): Likewise.
32472         * tests/test-mkfifoat.c (main): Likewise.
32473         * tests/test-mknod.c (main): Likewise.
32474         * tests/test-readlink.c (main): Likewise.
32475         * tests/test-remove.c (main): Likewise.
32476         * tests/test-rename.c (main): Likewise.
32477         * tests/test-renameat.c (main): Likewise.
32478         * tests/test-rmdir.c (main): Likewise.
32479         * tests/test-symlink.c (main): Likewise.
32480         * tests/test-symlinkat.c (main): Likewise.
32481         * tests/test-unlink.c (main): Likewise.
32482         * tests/test-unlinkat.c (main): Likewise.
32483         * tests/test-utimens.c (main): Likewise.
32484         * tests/test-utimensat.c (main): Likewise.
32485         * modules/areadlink-tests (Depends-on): Add ignore-value.
32486         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32487         * modules/areadlinkat-tests (Depends-on): Likewise.
32488         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32489         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32490         * modules/canonicalize-tests (Depends-on): Likewise.
32491         * modules/chown-tests (Depends-on): Likewise.
32492         * modules/fdutimensat-tests (Depends-on): Likewise.
32493         * modules/futimens-tests (Depends-on): Likewise.
32494         * modules/lchown-tests (Depends-on): Likewise.
32495         * modules/link-tests (Depends-on): Likewise.
32496         * modules/linkat-tests (Depends-on): Likewise.
32497         * modules/lstat-tests (Depends-on): Likewise.
32498         * modules/mkdir-tests (Depends-on): Likewise.
32499         * modules/mkfifo-tests (Depends-on): Likewise.
32500         * modules/mkfifoat-tests (Depends-on): Likewise.
32501         * modules/mknod-tests (Depends-on): Likewise.
32502         * modules/openat-tests (Depends-on): Likewise.
32503         * modules/readlink-tests (Depends-on): Likewise.
32504         * modules/remove-tests (Depends-on): Likewise.
32505         * modules/rename-tests (Depends-on): Likewise.
32506         * modules/renameat-tests (Depends-on): Likewise.
32507         * modules/rmdir-tests (Depends-on): Likewise.
32508         * modules/symlink-tests (Depends-on): Likewise.
32509         * modules/symlinkat-tests (Depends-on): Likewise.
32510         * modules/unlink-tests (Depends-on): Likewise.
32511         * modules/utimens-tests (Depends-on): Likewise.
32512         * modules/utimensat-tests (Depends-on): Likewise.
32513
32514 2010-01-31  Bruno Haible  <bruno@clisp.org>
32515
32516         Perform the same test for many <math.h> functions.
32517         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32518         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32519         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32520         of gl_MATHFUNC.
32521         * modules/acos (configure.ac): Likewise.
32522         * modules/asin (configure.ac): Likewise.
32523         * modules/atan (configure.ac): Likewise.
32524         * modules/atan2 (configure.ac): Likewise.
32525         * modules/cbrt (configure.ac): Likewise.
32526         * modules/copysign (configure.ac): Likewise.
32527         * modules/cos (configure.ac): Likewise.
32528         * modules/cosh (configure.ac): Likewise.
32529         * modules/erf (configure.ac): Likewise.
32530         * modules/erfc (configure.ac): Likewise.
32531         * modules/exp (configure.ac): Likewise.
32532         * modules/fmod (configure.ac): Likewise.
32533         * modules/hypot (configure.ac): Likewise.
32534         * modules/j0 (configure.ac): Likewise.
32535         * modules/j1 (configure.ac): Likewise.
32536         * modules/jn (configure.ac): Likewise.
32537         * modules/lgamma (configure.ac): Likewise.
32538         * modules/log (configure.ac): Likewise.
32539         * modules/log10 (configure.ac): Likewise.
32540         * modules/log1p (configure.ac): Likewise.
32541         * modules/pow (configure.ac): Likewise.
32542         * modules/remainder (configure.ac): Likewise.
32543         * modules/sin (configure.ac): Likewise.
32544         * modules/sinh (configure.ac): Likewise.
32545         * modules/tan (configure.ac): Likewise.
32546         * modules/tanh (configure.ac): Likewise.
32547         * modules/y0 (configure.ac): Likewise.
32548         * modules/y1 (configure.ac): Likewise.
32549         * modules/yn (configure.ac): Likewise.
32550         Suggested by Paolo Bonzini.
32551
32552 2010-01-31  Bruno Haible  <bruno@clisp.org>
32553
32554         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32555
32556 2010-01-31  Bruno Haible  <bruno@clisp.org>
32557
32558         Work around getdelim() bug on FreeBSD 8.0.
32559         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32560         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32561         not work.
32562         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32563         is 1.
32564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32565         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32566         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32567         a non-zero size.
32568         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32569
32570 2010-01-31  Bruno Haible  <bruno@clisp.org>
32571
32572         Work around getline() bug on FreeBSD 8.0.
32573         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32574         and a non-zero size.
32575         * tests/test-getline.c (main): Likewise.
32576         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32577         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32578
32579 2010-01-28  Eric Blake  <ebb9@byu.net>
32580
32581         regex: fix build failure
32582         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32583         platforms.
32584
32585 2010-01-28  Jim Meyering  <meyering@redhat.com>
32586
32587         regex: do not ignore memory allocation failure
32588         * lib/regex_internal.c (create_cd_newstate): Detect
32589         re_node_set_init_copy failure.   Extracted from glibc commit
32590         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32591
32592         regex: sync more white-space changes from libc
32593         * lib/regex_internal.c: White-space only changes.
32594         * lib/regexec.c: Likewise.
32595
32596         regex: add many uses of __attribute_warn_unused_result__
32597         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32598         * lib/regexec.c: Likewise.
32599         Extracted from a messy glibc commit.
32600
32601         regcomp.c: spelling and merge-artifact from glibc
32602         * lib/regcomp.c: Merge remainder of glibc's
32603         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32604
32605         regcomp.c: sync white-space changes from glibc
32606         * lib/regcomp.c: Merge to accommodate white space
32607         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32608
32609         regcomp.c: do not ignore internal return values
32610         * lib/regcomp.c: Do not ignore internal return values.
32611         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32612         but without its white-space changes and spelling fixes.
32613
32614         regex_internal.h: define __attribute_warn_unused_result__
32615         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32616
32617         maint: add a syntax-check rule to check for vulnerable Makefile.in
32618         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32619
32620 2010-01-27  Jim Meyering  <meyering@redhat.com>
32621
32622         ncftpput-ftp: clean up spaces
32623         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32624         Remove trailing blanks.
32625
32626 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32627
32628         * build-aux/git-version-gen: Fix copyright statement.
32629         * build-aux/gnupload: Likewise.
32630         * tests/test-arcfour.c: Likewise.
32631         * tests/test-arctwo.c: Likewise.
32632         * tests/test-count-one-bits.c: Likewise.
32633         * tests/test-crc.c: Likewise.
32634         * tests/test-des.c: Likewise.
32635         * tests/test-gc-arcfour.c: Likewise.
32636         * tests/test-gc-arctwo.c: Likewise.
32637         * tests/test-gc-des.c: Likewise.
32638         * tests/test-gc-hmac-md5.c: Likewise.
32639         * tests/test-gc-hmac-sha1.c: Likewise.
32640         * tests/test-gc-md2.c: Likewise.
32641         * tests/test-gc-md4.c: Likewise.
32642         * tests/test-gc-md5.c: Likewise.
32643         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32644         * tests/test-gc-rijndael.c: Likewise.
32645         * tests/test-gc-sha1.c: Likewise.
32646         * tests/test-gc.c: Likewise.
32647         * tests/test-gethostname.c: Likewise.
32648         * tests/test-gettimeofday.c: Likewise.
32649         * tests/test-hash.c: Likewise.
32650         * tests/test-hmac-md5.c: Likewise.
32651         * tests/test-hmac-sha1.c: Likewise.
32652         * tests/test-md2.c: Likewise.
32653         * tests/test-md4.c: Likewise.
32654         * tests/test-md5.c: Likewise.
32655         * tests/test-memchr.c: Likewise.
32656         * tests/test-memchr2.c: Likewise.
32657         * tests/test-memcmp.c: Likewise.
32658         * tests/test-memmem.c: Likewise.
32659         * tests/test-memrchr.c: Likewise.
32660         * tests/test-rawmemchr.c: Likewise.
32661         * tests/test-read-file.c: Likewise.
32662         * tests/test-rijndael.c: Likewise.
32663         * tests/test-sockets.c: Likewise.
32664         * tests/test-strchrnul.c: Likewise.
32665         * tests/test-strstr.c: Likewise.
32666         * tests/test-strtod.c: Likewise.
32667         * build-aux/ncftpput-ftp: Likewise.
32668
32669 2010-01-26  Eric Blake  <ebb9@byu.net>
32670
32671         ignore-value: update recommended header name
32672         * modules/ignore-value (Include): Only use <> for headers that
32673         exist in glibc.
32674
32675 2010-01-26  Jim Meyering  <meyering@redhat.com>
32676
32677         test-userspec.c: avoid compiler warnings
32678         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32679         and "initialization discards qualifiers..." warnings.
32680         Put the first "uid" in its own scope, and make char* members "const".
32681
32682 2010-01-25  Bruno Haible  <bruno@clisp.org>
32683
32684         gnulib-tool: Make warning diagnostics consistent.
32685         * gnulib-tool (func_warning): New function.
32686         Use it everywhere where gnulib-tool produces output to stderr and it is
32687         not a fatal error.
32688
32689 2010-01-25  Bruno Haible  <bruno@clisp.org>
32690
32691         Fix test dependencies.
32692         * modules/xstrtol-tests (Depends-on): Add inttypes.
32693         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32694
32695 2010-01-25 Pádraig Brady <P@draigBrady.com>
32696
32697         syntax-check: detect incorrect boolean macro values in config.h
32698         * modules/maintainer-makefile (configure.ac): Parameterize the location
32699         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32700         The logic is from Eric Blake and the location indicated by Jim Meyering.
32701         Note the more natural CONFIG_HEADER name is prohibited by automake
32702         for backwards compatibility reasons.
32703         * top/maint.mk (sc_Wundef_boolean): New rule.
32704
32705 2010-01-25  Jim Meyering  <meyering@redhat.com>
32706
32707         bootstrap: detect MacOS 10.6's shasum, too
32708         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32709         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32710
32711 2010-01-23  Jim Meyering  <meyering@redhat.com>
32712
32713         xstrtoll: new module
32714         * modules/xstrtoll: New file.
32715         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32716         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32717         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32718         ./configure fails if you use this module and lack "long long".
32719         * modules/xstrtoll-tests: New module.
32720         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32721         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32722         new init.sh-based test framework.
32723
32724 2010-01-24  Bruno Haible  <bruno@clisp.org>
32725
32726         Tests for module 'yn'.
32727         * modules/yn-tests: New file.
32728         * tests/test-yn.c: New file.
32729
32730         Tests for module 'y1'.
32731         * modules/y1-tests: New file.
32732         * tests/test-y1.c: New file.
32733
32734         Tests for module 'y0'.
32735         * modules/y0-tests: New file.
32736         * tests/test-y0.c: New file.
32737
32738         Tests for module 'tanh'.
32739         * modules/tanh-tests: New file.
32740         * tests/test-tanh.c: New file.
32741
32742         Tests for module 'tan'.
32743         * modules/tan-tests: New file.
32744         * tests/test-tan.c: New file.
32745
32746         Tests for module 'sqrt'.
32747         * modules/sqrt-tests: New file.
32748         * tests/test-sqrt.c: New file.
32749
32750         Tests for module 'sinh'.
32751         * modules/sinh-tests: New file.
32752         * tests/test-sinh.c: New file.
32753
32754         Tests for module 'sin'.
32755         * modules/sin-tests: New file.
32756         * tests/test-sin.c: New file.
32757
32758         Tests for module 'rint'.
32759         * modules/rint-tests: New file.
32760         * tests/test-rint.c: New file.
32761
32762         Tests for module 'remainder'.
32763         * modules/remainder-tests: New file.
32764         * tests/test-remainder.c: New file.
32765
32766         Tests for module 'pow'.
32767         * modules/pow-tests: New file.
32768         * tests/test-pow.c: New file.
32769
32770         Tests for module 'nextafter'.
32771         * modules/nextafter-tests: New file.
32772         * tests/test-nextafter.c: New file.
32773
32774         Tests for module 'modf'.
32775         * modules/modf-tests: New file.
32776         * tests/test-modf.c: New file.
32777
32778         Tests for module 'logb'.
32779         * modules/logb-tests: New file.
32780         * tests/test-logb.c: New file.
32781
32782         Tests for module 'log1p'.
32783         * modules/log1p-tests: New file.
32784         * tests/test-log1p.c: New file.
32785
32786         Tests for module 'log10'.
32787         * modules/log10-tests: New file.
32788         * tests/test-log10.c: New file.
32789
32790         Tests for module 'log'.
32791         * modules/log-tests: New file.
32792         * tests/test-log.c: New file.
32793
32794         Tests for module 'lgamma'.
32795         * modules/lgamma-tests: New file.
32796         * tests/test-lgamma.c: New file.
32797
32798         Tests for module 'ldexp'.
32799         * modules/ldexp-tests: New file.
32800         * tests/test-ldexp.c: New file.
32801
32802         Tests for module 'jn'.
32803         * modules/jn-tests: New file.
32804         * tests/test-jn.c: New file.
32805
32806         Tests for module 'j1'.
32807         * modules/j1-tests: New file.
32808         * tests/test-j1.c: New file.
32809
32810         Tests for module 'j0'.
32811         * modules/j0-tests: New file.
32812         * tests/test-j0.c: New file.
32813
32814         Tests for module 'hypot'.
32815         * modules/hypot-tests: New file.
32816         * tests/test-hypot.c: New file.
32817
32818         Tests for module 'fmod'.
32819         * modules/fmod-tests: New file.
32820         * tests/test-fmod.c: New file.
32821
32822         Tests for module 'fabs'.
32823         * modules/fabs-tests: New file.
32824         * tests/test-fabs.c: New file.
32825
32826         Tests for module 'exp'.
32827         * modules/exp-tests: New file.
32828         * tests/test-exp.c: New file.
32829
32830         Tests for module 'erfc'.
32831         * modules/erfc-tests: New file.
32832         * tests/test-erfc.c: New file.
32833
32834         Tests for module 'erf'.
32835         * modules/erf-tests: New file.
32836         * tests/test-erf.c: New file.
32837
32838         Tests for module 'cosh'.
32839         * modules/cosh-tests: New file.
32840         * tests/test-cosh.c: New file.
32841
32842         Tests for module 'cos'.
32843         * modules/cos-tests: New file.
32844         * tests/test-cos.c: New file.
32845
32846         Tests for module 'copysign'.
32847         * modules/copysign-tests: New file.
32848         * tests/test-copysign.c: New file.
32849
32850         Tests for module 'cbrt'.
32851         * modules/cbrt-tests: New file.
32852         * tests/test-cbrt.c: New file.
32853
32854         Tests for module 'atan2'.
32855         * modules/atan2-tests: New file.
32856         * tests/test-atan2.c: New file.
32857
32858         Tests for module 'atan'.
32859         * modules/atan-tests: New file.
32860         * tests/test-atan.c: New file.
32861
32862         Tests for module 'asin'.
32863         * modules/asin-tests: New file.
32864         * tests/test-asin.c: New file.
32865
32866         Tests for module 'acos'.
32867         * modules/acos-tests: New file.
32868         * tests/test-acos.c: New file.
32869
32870 2010-01-24  Bruno Haible  <bruno@clisp.org>
32871
32872         Fix tests for common <math.h> functions.
32873         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32874         code snippet that references the function pointer, rather than merely
32875         calling the function. Substitute the FUNC_LIBM variable.
32876         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32877         * modules/acos (configure.ac): Likewise.
32878         * modules/asin (configure.ac): Likewise.
32879         * modules/atan (configure.ac): Likewise.
32880         * modules/atan2 (configure.ac): Likewise.
32881         * modules/cbrt (configure.ac): Likewise.
32882         * modules/copysign (configure.ac): Likewise.
32883         * modules/cos (configure.ac): Likewise.
32884         * modules/cosh (configure.ac): Likewise.
32885         * modules/erf (configure.ac): Likewise.
32886         * modules/erfc (configure.ac): Likewise.
32887         * modules/exp (configure.ac): Likewise.
32888         * modules/fabs (configure.ac): Likewise.
32889         * modules/fmod (configure.ac): Likewise.
32890         * modules/hypot (configure.ac): Likewise.
32891         * modules/j0 (configure.ac): Likewise.
32892         * modules/j1 (configure.ac): Likewise.
32893         * modules/jn (configure.ac): Likewise.
32894         * modules/ldexp (configure.ac): Likewise.
32895         * modules/lgamma (configure.ac): Likewise.
32896         * modules/log (configure.ac): Likewise.
32897         * modules/log10 (configure.ac): Likewise.
32898         * modules/log1p (configure.ac): Likewise.
32899         * modules/logb (configure.ac): Likewise.
32900         * modules/modf (configure.ac): Likewise.
32901         * modules/nextafter (configure.ac): Likewise.
32902         * modules/pow (configure.ac): Likewise.
32903         * modules/remainder (configure.ac): Likewise.
32904         * modules/rint (configure.ac): Likewise.
32905         * modules/sin (configure.ac): Likewise.
32906         * modules/sinh (configure.ac): Likewise.
32907         * modules/tan (configure.ac): Likewise.
32908         * modules/tanh (configure.ac): Likewise.
32909         * modules/y0 (configure.ac): Likewise.
32910         * modules/y1 (configure.ac): Likewise.
32911         * modules/yn (configure.ac): Likewise.
32912
32913 2010-01-24  Bruno Haible  <bruno@clisp.org>
32914
32915         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32916         * tests/test-acosl.c (x): New variable.
32917         (main): Store argument in x and fetch it from x.
32918         * tests/test-asinl.c (x): New variable.
32919         (main): Store argument in x and fetch it from x.
32920         * tests/test-atanl.c (x): New variable.
32921         (main): Store argument in x and fetch it from x.
32922         * tests/test-cosl.c (x): New variable.
32923         (main): Store argument in x and fetch it from x.
32924         * tests/test-expl.c (x): New variable.
32925         (main): Store argument in x and fetch it from x.
32926         * tests/test-logl.c (x): New variable.
32927         (main): Store argument in x and fetch it from x.
32928         * tests/test-sinl.c (x): New variable.
32929         (main): Store argument in x and fetch it from x.
32930         * tests/test-sqrtl.c (x): New variable.
32931         (main): Store argument in x and fetch it from x.
32932         * tests/test-tanl.c (x): New variable.
32933         (main): Store argument in x and fetch it from x.
32934
32935 2010-01-24  Bruno Haible  <bruno@clisp.org>
32936
32937         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32938         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32939         assignments to the initial TESTS_ENVIRONMENT.
32940         * doc/gnulib.texi (Unit test modules): Document it.
32941         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32942         TESTS_ENVIRONMENT.
32943         * modules/btowc-tests (Makefile.am): Likewise.
32944         * modules/c-stack-tests (Makefile.am): Likewise.
32945         * modules/c-strcase-tests (Makefile.am): Likewise.
32946         * modules/copy-file-tests (Makefile.am): Likewise.
32947         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32948         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32949         * modules/mbrtowc-tests (Makefile.am): Likewise.
32950         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32951         * modules/mbscasestr-tests (Makefile.am): Likewise.
32952         * modules/mbschr-tests (Makefile.am): Likewise.
32953         * modules/mbscspn-tests (Makefile.am): Likewise.
32954         * modules/mbsinit-tests (Makefile.am): Likewise.
32955         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32956         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32957         * modules/mbspbrk-tests (Makefile.am): Likewise.
32958         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32959         * modules/mbsrchr-tests (Makefile.am): Likewise.
32960         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32961         * modules/mbsspn-tests (Makefile.am): Likewise.
32962         * modules/mbsstr-tests (Makefile.am): Likewise.
32963         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32964         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32965         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32966         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32967         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32968         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32969         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32970         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32971         * modules/wcrtomb-tests (Makefile.am): Likewise.
32972         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32973         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32974         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32975         assignments from TESTS_ENVIRONMENT.
32976         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32977         augmentation.
32978         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32979         * modules/atexit-tests (Makefile.am): Likewise.
32980         * modules/binary-io-tests (Makefile.am): Likewise.
32981         * modules/closein-tests (Makefile.am): Likewise.
32982         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32983         * modules/exclude-tests (Makefile.am): Likewise.
32984         * modules/fflush-tests (Makefile.am): Likewise.
32985         * modules/fpending-tests (Makefile.am): Likewise.
32986         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32987         * modules/freadahead-tests (Makefile.am): Likewise.
32988         * modules/freadptr-tests (Makefile.am): Likewise.
32989         * modules/freadseek-tests (Makefile.am): Likewise.
32990         * modules/fseek-tests (Makefile.am): Likewise.
32991         * modules/fseeko-tests (Makefile.am): Likewise.
32992         * modules/ftell-tests (Makefile.am): Likewise.
32993         * modules/ftello-tests (Makefile.am): Likewise.
32994         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32995         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32996         * modules/lseek-tests (Makefile.am): Likewise.
32997         * modules/parse-duration-tests (Makefile.am): Likewise.
32998         * modules/perror-tests (Makefile.am): Likewise.
32999         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33000         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33001         * modules/pipe-tests (Makefile.am): Likewise.
33002         * modules/pread-tests (Makefile.am): Likewise.
33003         * modules/printf-posix-tests (Makefile.am): Likewise.
33004         * modules/select-tests (Makefile.am): Likewise.
33005         * modules/sigpipe-tests (Makefile.am): Likewise.
33006         * modules/tsearch-tests (Makefile.am): Likewise.
33007         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33008         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33009         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33010         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33011         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33012         * modules/version-etc-tests (Makefile.am): Likewise.
33013         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33014         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33015         * modules/xalloc-die-tests (Makefile.am): Likewise.
33016         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33017         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33018         * modules/xstrtol-tests (Makefile.am): Likewise.
33019         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33020         * modules/yesno-tests (Makefile.am): Likewise.
33021         Suggested by Jim Meyering.
33022
33023 2010-01-24  Bruno Haible  <bruno@clisp.org>
33024
33025         More documentation.
33026         * doc/gnulib.texi (Writing modules): New chapter.
33027         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33028         the new chapter.
33029
33030 2010-01-24  Jim Meyering  <meyering@redhat.com>
33031
33032         maint.mk: do not prepend "./" after filtering
33033         * top/maint.mk (_prepend_srcdir_prefix): New variable
33034         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33035         "./" when $(srcdir) is ".".
33036
33037         define STREQ(a,b) consistently, removing useless parentheses
33038         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33039         since the only risk is that "a" or "b" contains an unparenthesized
33040         comma, but if either did that, STREQ would have 3 or more arguments.
33041         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33042         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33043         * lib/hash-triple.c (STREQ): Likewise.
33044         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33045         * lib/getugroups.c (STREQ): Likewise.
33046
33047 2010-01-23  Jim Meyering  <meyering@redhat.com>
33048
33049         maint.mk: fix syntax-check in a non-srcdir build directory
33050         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33051         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33052
33053 2010-01-22  Jim Meyering  <meyering@redhat.com>
33054
33055         userspec: add unit tests
33056         * tests/test-userspec.c: New file.
33057         * modules/userspec-tests: Likewise.
33058
33059 2010-01-21  Jim Meyering  <meyering@redhat.com>
33060
33061         maint.mk: handle source file names containing "." robustly
33062         * top/maint.mk (_dot_escaped_srcdir): Define.
33063         (VC_LIST): Use it in LHS of sed substitution.
33064
33065 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33066
33067         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33068         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33069         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33070         from a non-srcdir build.
33071
33072 2010-01-20  Eric Blake  <ebb9@byu.net>
33073
33074         warn-on-use: use instead of link-warning
33075         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33076         * modules/unistd (Depends-on, Makefile.am): Likewise.
33077         * modules/arpa_inet (Depends-on): Replace link-warning with
33078         warn-on-use.
33079         (Makefile.am): Update rules accordingly.
33080         * modules/ctype (Depends-on, Makefile.am): Likewise.
33081         * modules/dirent (Depends-on, Makefile.am): Likewise.
33082         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33083         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33084         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33085         * modules/locale (Depends-on, Makefile.am): Likewise.
33086         * modules/math (Depends-on, Makefile.am): Likewise.
33087         * modules/search (Depends-on, Makefile.am): Likewise.
33088         * modules/signal (Depends-on, Makefile.am): Likewise.
33089         * modules/spawn (Depends-on, Makefile.am): Likewise.
33090         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33091         * modules/string (Depends-on, Makefile.am): Likewise.
33092         * modules/strings (Depends-on, Makefile.am): Likewise.
33093         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33094         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33095         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33096         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33097         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33098         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33099         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33100         * modules/wchar (Depends-on, Makefile.am): Likewise.
33101         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33102         should be poisoned.
33103         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33104         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33105         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33106         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33107         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33108         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33109         * m4/math_h.m4 (gl_MATH_H): Likewise.
33110         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33111         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33112         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33113         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33114         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33115         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33116         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33117         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33118         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33121         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33122         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33123         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33124         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33125         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33126         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33127         GL_LINK_WARNING.
33128         * lib/ctype.in.h: Likewise.
33129         * lib/dirent.in.h: Likewise.
33130         * lib/fcntl.in.h: Likewise.
33131         * lib/inttypes.in.h: Likewise.
33132         * lib/langinfo.in.h: Likewise.
33133         * lib/locale.in.h: Likewise.
33134         * lib/math.in.h: Likewise.
33135         * lib/search.in.h: Likewise.
33136         * lib/signal.in.h: Likewise.
33137         * lib/spawn.in.h: Likewise.
33138         * lib/stdio.in.h: Likewise.
33139         * lib/stdlib.in.h: Likewise.
33140         * lib/string.in.h: Likewise.
33141         * lib/strings.in.h: Likewise.
33142         * lib/sys_file.in.h: Likewise.
33143         * lib/sys_ioctl.in.h: Likewise.
33144         * lib/sys_select.in.h: Likewise.
33145         * lib/sys_socket.in.h: Likewise.
33146         * lib/sys_stat.in.h: Likewise.
33147         * lib/sys_times.in.h: Likewise.
33148         * lib/sys_utsname.in.h: Likewise.
33149         * lib/unistd.in.h: Likewise.
33150         * lib/wchar.in.h: Likewise.
33151
33152 2010-01-20  Bruno Haible  <bruno@clisp.org>
33153
33154         Avoid duplicate -lm.
33155         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33156         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33157         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33158         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33159         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33160         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33161         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33162         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33163         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33164         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33165         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33166         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33167         Reported by Paolo Bonzini.
33168
33169 2010-01-19  Bruno Haible  <bruno@clisp.org>
33170
33171         langinfo, nl_langinfo: Relicense under LGPLv2+.
33172         * modules/langinfo (License): Change to LGPLv2+.
33173         * modules/nl_langinfo (License): Likewise.
33174         Patch by David Lutterkort <lutter@redhat.com>.
33175
33176 2010-01-19  Bruno Haible  <bruno@clisp.org>
33177
33178         Avoid compilation error with cc on OSF/1 5.1.
33179         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33180         statement, not before.
33181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33182
33183 2010-01-18  Bruno Haible  <bruno@clisp.org>
33184
33185         Avoid a link error due to the __printf__ symbol.
33186         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33187         and 2.6.x.
33188         (__format__, __printf__): Remove definitions.
33189         * lib/argp-fmtstream.h: Likewise.
33190         * lib/argp.h: Likewise.
33191         * lib/error.h: Likewise.
33192         * lib/vasnprintf.h: Likewise.
33193         * lib/xprintf.h: Likewise.
33194         * lib/xvasprintf.h: Likewise.
33195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33196
33197 2010-01-18  Bruno Haible  <bruno@clisp.org>
33198
33199         Tests for module 'tanl'.
33200         * modules/tanl-tests: New file.
33201         * tests/test-tanl.c: New file.
33202
33203         Tests for module 'sqrtl'.
33204         * modules/sqrtl-tests: New file.
33205         * tests/test-sqrtl.c: New file.
33206
33207         Tests for module 'sinl'.
33208         * modules/sinl-tests: New file.
33209         * tests/test-sinl.c: New file.
33210
33211         Tests for module 'logl'.
33212         * modules/logl-tests: New file.
33213         * tests/test-logl.c: New file.
33214
33215         Tests for module 'expl'.
33216         * modules/expl-tests: New file.
33217         * tests/test-expl.c: New file.
33218
33219         Tests for module 'cosl'.
33220         * modules/cosl-tests: New file.
33221         * tests/test-cosl.c: New file.
33222
33223         Tests for module 'atanl'.
33224         * modules/atanl-tests: New file.
33225         * tests/test-atanl.c: New file.
33226
33227         Tests for module 'asinl'.
33228         * modules/asinl-tests: New file.
33229         * tests/test-asinl.c: New file.
33230
33231         Tests for module 'acosl'.
33232         * modules/acosl-tests: New file.
33233         * tests/test-acosl.c: New file.
33234
33235         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33236         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33237         tanl): Use the standard gnulib idiom.
33238         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33239         * lib/sinl.c: Likewise.
33240         * lib/tanl.c: Don't include trigl.c.
33241         (kernel_tanl): Make static.
33242         * lib/sincosl.c: Include trigl.h first.
33243         * lib/trigl.c: Likewise.
33244         * m4/acosl.m4: New file.
33245         * m4/asinl.m4: New file.
33246         * m4/atanl.m4: New file.
33247         * m4/cosl.m4: New file.
33248         * m4/expl.m4: New file.
33249         * m4/logl.m4: New file.
33250         * m4/sinl.m4: New file.
33251         * m4/sqrtl.m4: New file.
33252         * m4/tanl.m4: New file.
33253         * m4/mathl.m4: Remove file.
33254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33255         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33256         Don't initialize GNULIB_MATHL.
33257         * modules/acosl: New file.
33258         * modules/asinl: New file.
33259         * modules/atanl: New file.
33260         * modules/cosl: New file.
33261         * modules/expl: New file.
33262         * modules/logl: New file.
33263         * modules/sinl: New file.
33264         * modules/sqrtl: New file.
33265         * modules/tanl: New file.
33266         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33267         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33268         substitute GNULIB_MATHL.
33269         * modules/mathl: Rewritten.
33270         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33271         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33272         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33273         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33274         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33275         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33276         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33277         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33278         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33279
33280 2010-01-18  Bruno Haible  <bruno@clisp.org>
33281
33282         sqrt: Make gl_FUNC_SQRT requirable.
33283         * m4/sqrt.m4: New file.
33284         * modules/sqrt (Files): Add it.
33285         (configure.ac): Invoke gl_FUNC_SQRT.
33286
33287 2010-01-18  Bruno Haible  <bruno@clisp.org>
33288
33289         New modules for common <math.h> functions.
33290         * m4/mathfunc.m4: New file.
33291         * modules/acos: New file.
33292         * modules/asin: New file.
33293         * modules/atan: New file.
33294         * modules/atan2: New file.
33295         * modules/cbrt: New file.
33296         * modules/copysign: New file.
33297         * modules/cos: New file.
33298         * modules/cosh: New file.
33299         * modules/erf: New file.
33300         * modules/erfc: New file.
33301         * modules/exp: New file.
33302         * modules/fabs: New file.
33303         * modules/fmod: New file.
33304         * modules/hypot: New file.
33305         * modules/j0: New file.
33306         * modules/j1: New file.
33307         * modules/jn: New file.
33308         * modules/ldexp: New file.
33309         * modules/lgamma: New file.
33310         * modules/log: New file.
33311         * modules/log10: New file.
33312         * modules/log1p: New file.
33313         * modules/logb: New file.
33314         * modules/modf: New file.
33315         * modules/nextafter: New file.
33316         * modules/pow: New file.
33317         * modules/remainder: New file.
33318         * modules/rint: New file.
33319         * modules/sin: New file.
33320         * modules/sinh: New file.
33321         * modules/sqrt: New file.
33322         * modules/tan: New file.
33323         * modules/tanh: New file.
33324         * modules/y0: New file.
33325         * modules/y1: New file.
33326         * modules/yn: New file.
33327         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33328         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33329         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33330         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33331         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33332         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33333         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33334         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33335         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33336         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33337         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33338         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33339         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33340         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33341         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33342         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33343         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33344         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33345         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33346         * doc/posix-functions/log.texi: Mention the 'log' module.
33347         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33348         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33349         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33350         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33351         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33352         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33353         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33354         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33355         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33356         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33357         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33358         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33359         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33360         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33361         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33362         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33363
33364 2010-01-18  Jim Meyering  <meyering@redhat.com>
33365
33366         ignore-value: relax license to LGPLv2+
33367         * modules/ignore-value (License): Relax to LGPLv2+.
33368
33369         getdate: don't leak when TZ contains two or more '"'s
33370         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33371         double quote in TZ after the first one.
33372
33373         readtokens: do not leak internal token_lengths buffer
33374         * lib/readtokens.c (readtokens): Free the local, lengths,
33375         when the supplied "token_lengths" parameter is NULL.
33376
33377 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33378
33379         Fix a couple of missing LIBTHREAD link failures on AIX.
33380         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33381         $(LIBTHREAD).
33382         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33383
33384         Link test-poll against INET_PTON_LIB.
33385         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33386         for inet_pton on Solaris 10.
33387
33388 2010-01-17  Bruno Haible  <bruno@clisp.org>
33389
33390         unistdio/*-sprintf: Fix typo in module description.
33391         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33392         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33393         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33394         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33395         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33396         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33397         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33399
33400 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33401
33402         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33403         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33404         variables in shell case patterns, for AIX and HP-UX ksh.
33405
33406         Split large sed scripts, for HP-UX sed.
33407         * modules/stdio: Split sed scripts around 50 sed commands,
33408         to avoid HP-UX limit of 99 commands, in the near future.
33409         * modules/string: Likewise.
33410         * modules/unistd: Likewise.
33411
33412         gnulib-tool: avoid writing in the current directory.
33413         * gnulib-tool (func_emit_lib_Makefile_am)
33414         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33415         not in the current directory, so concurrent gnulib-tool
33416         instances do not interfere.
33417
33418 2010-01-16  Jim Meyering  <meyering@redhat.com>
33419
33420         doc: update users.txt
33421         * users.txt: Add grep.
33422         (diffutils, gzip): Update URLs.
33423
33424 2010-01-12  Bruno Haible  <bruno@clisp.org>
33425
33426         posix_spawn: Avoid test failure on Cygwin.
33427         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33428         characters.
33429         Reported by Simon Josefsson.
33430
33431 2010-01-12  Bruno Haible  <bruno@clisp.org>
33432
33433         * tests/test-cond.c (main): When skipping the test, show the reason.
33434
33435 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33436
33437         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33438
33439 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33440
33441         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33442         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33443
33444 2010-01-12  Eric Blake  <ebb9@byu.net>
33445
33446         build: guarantee AS_VAR_IF
33447         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33448         (gl_AS_VAR_IF): Move...
33449         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33450         Reported by Simon Josefsson.
33451
33452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33453
33454         * lib/stdio.in.h: Fix typo.
33455
33456 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33457
33458         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33459         libgpg-error.
33460
33461 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33462
33463         * tests/test-xalloc-die.sh: Use $EXEEXT.
33464
33465 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33466             Bruno Haible  <bruno@clisp.org>
33467
33468         getlogin, getlogin_r: Avoid test failure.
33469         * tests/test-getlogin.c: Include <stdio.h>.
33470         (main): Skip the test when the function fails because stdin is not a
33471         tty.
33472         * tests/test-getlogin_r.c: Include <stdio.h>.
33473         (main): Skip the test when the function fails because stdin is not a
33474         tty.
33475
33476 2010-01-11  Eric Blake  <ebb9@byu.net>
33477
33478         tests: avoid more large file warnings
33479         * tests/test-fflush.c: Avoid warning about ftell use.
33480         * tests/test-fseek.c: Avoid warning about fseek use.
33481
33482 2010-01-10  Bruno Haible  <bruno@clisp.org>
33483
33484         nproc: Work better on Linux when /proc and /sys are not mounted.
33485         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33486         as lower bound when, on glibc/Linux systems,
33487         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33488         Suggested by Pádraig Brady <P@draigbrady.com>.
33489         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33490
33491         nproc: Refactor.
33492         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33493         extracted from num_processors.
33494         (num_processors): Call it.
33495
33496 2010-01-11  Jim Meyering  <meyering@redhat.com>
33497
33498         utimecmp: avoid new warning from upcoming gcc-4.5.0
33499         * lib/utimecmp.c (BILLION): Define using #define rather than an
33500         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33501
33502 2010-01-11  Eric Blake  <ebb9@byu.net>
33503
33504         math: add portability warnings for classification macros
33505         * modules/math (Depends-on): Add warn-on-use.
33506         (Makefile.am): Provide new substitutions.
33507         * m4/math_h.m4 (gl_MATH_H): Require inline.
33508         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33509         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33510         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33511         implement warnings.
33512
33513         unistd: warn on use of environ without module
33514         * modules/unistd (Depends-on): Add warn-on-use.
33515         (Makefile.am): Provide new substitutions.
33516         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33517         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33518
33519         stdio: warn on suspicious uses
33520         * modules/stdio (Depends-on): Add warn-on-use.
33521         (Makefile.am): Provide new substitutions.
33522         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33523         fseeko.
33524         * lib/stdio.in.h (gets): Always warn on use.
33525         (fseek, ftell): Adjust when warnings are issued, and honor
33526         _GL_NO_LARGE_FILES as a way to silence the warning.
33527         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33528         any warning about large file offsets.
33529         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33530         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33531         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33532         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33533         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33534         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33535         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33536         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33537
33538         warn-on-use: new module
33539         * modules/warn-on-use: New file.
33540         * build-aux/warn-on-use.h: Likewise.
33541         * m4/warn-on-use.m4: Likewise.
33542         * MODULES.html.sh (Support for building): Mention it.
33543
33544 2010-01-10  Bruno Haible  <bruno@clisp.org>
33545
33546         Tests for module 'unistr/u32-strdup'.
33547         * modules/unistr/u32-strdup-tests: New file.
33548         * tests/unistr/test-u32-strdup.c: New file.
33549
33550         Tests for module 'unistr/u16-strdup'.
33551         * modules/unistr/u16-strdup-tests: New file.
33552         * tests/unistr/test-u16-strdup.c: New file.
33553
33554         Tests for module 'unistr/u8-strdup'.
33555         * modules/unistr/u8-strdup-tests: New file.
33556         * tests/unistr/test-u8-strdup.c: New file.
33557         * tests/unistr/test-strdup.h: New file.
33558
33559         Tests for module 'unistr/u32-strncmp'.
33560         * modules/unistr/u32-strncmp-tests: New file.
33561         * tests/unistr/test-u32-strncmp.c: New file.
33562
33563         Tests for module 'unistr/u16-strncmp'.
33564         * modules/unistr/u16-strncmp-tests: New file.
33565         * tests/unistr/test-u16-strncmp.c: New file.
33566
33567         Tests for module 'unistr/u8-strncmp'.
33568         * modules/unistr/u8-strncmp-tests: New file.
33569         * tests/unistr/test-u8-strncmp.c: New file.
33570         * tests/unistr/test-strncmp.h: New file.
33571
33572         Tests for module 'unistr/u32-strcoll'.
33573         * modules/unistr/u32-strcoll-tests: New file.
33574         * tests/unistr/test-u32-strcoll.c: New file.
33575
33576         Tests for module 'unistr/u16-strcoll'.
33577         * modules/unistr/u16-strcoll-tests: New file.
33578         * tests/unistr/test-u16-strcoll.c: New file.
33579
33580         Tests for module 'unistr/u8-strcoll'.
33581         * modules/unistr/u8-strcoll-tests: New file.
33582         * tests/unistr/test-u8-strcoll.c: New file.
33583
33584         Tests for module 'unistr/u32-strcmp'.
33585         * modules/unistr/u32-strcmp-tests: New file.
33586         * tests/unistr/test-u32-strcmp.c: New file.
33587         * tests/unistr/test-u32-strcmp.h: New file.
33588
33589         Tests for module 'unistr/u16-strcmp'.
33590         * modules/unistr/u16-strcmp-tests: New file.
33591         * tests/unistr/test-u16-strcmp.c: New file.
33592         * tests/unistr/test-u16-strcmp.h: New file.
33593
33594         Tests for module 'unistr/u8-strcmp'.
33595         * modules/unistr/u8-strcmp-tests: New file.
33596         * tests/unistr/test-u8-strcmp.c: New file.
33597         * tests/unistr/test-u8-strcmp.h: New file.
33598         * tests/unistr/test-strcmp.h: New file.
33599
33600         Tests for module 'unistr/u32-strncat'.
33601         * modules/unistr/u32-strncat-tests: New file.
33602         * tests/unistr/test-u32-strncat.c: New file.
33603
33604         Tests for module 'unistr/u16-strncat'.
33605         * modules/unistr/u16-strncat-tests: New file.
33606         * tests/unistr/test-u16-strncat.c: New file.
33607
33608         Tests for module 'unistr/u8-strncat'.
33609         * modules/unistr/u8-strncat-tests: New file.
33610         * tests/unistr/test-u8-strncat.c: New file.
33611         * tests/unistr/test-strncat.h: New file.
33612
33613         Tests for module 'unistr/u32-strcat'.
33614         * modules/unistr/u32-strcat-tests: New file.
33615         * tests/unistr/test-u32-strcat.c: New file.
33616
33617         Tests for module 'unistr/u16-strcat'.
33618         * modules/unistr/u16-strcat-tests: New file.
33619         * tests/unistr/test-u16-strcat.c: New file.
33620
33621         Tests for module 'unistr/u8-strcat'.
33622         * modules/unistr/u8-strcat-tests: New file.
33623         * tests/unistr/test-u8-strcat.c: New file.
33624         * tests/unistr/test-strcat.h: New file.
33625
33626         Tests for module 'unistr/u32-stpncpy'.
33627         * modules/unistr/u32-stpncpy-tests: New file.
33628         * tests/unistr/test-u32-stpncpy.c: New file.
33629
33630         Tests for module 'unistr/u16-stpncpy'.
33631         * modules/unistr/u16-stpncpy-tests: New file.
33632         * tests/unistr/test-u16-stpncpy.c: New file.
33633
33634         Tests for module 'unistr/u8-stpncpy'.
33635         * modules/unistr/u8-stpncpy-tests: New file.
33636         * tests/unistr/test-u8-stpncpy.c: New file.
33637         * tests/unistr/test-stpncpy.h: New file.
33638
33639         Tests for module 'unistr/u32-strncpy'.
33640         * modules/unistr/u32-strncpy-tests: New file.
33641         * tests/unistr/test-u32-strncpy.c: New file.
33642
33643         Tests for module 'unistr/u16-strncpy'.
33644         * modules/unistr/u16-strncpy-tests: New file.
33645         * tests/unistr/test-u16-strncpy.c: New file.
33646
33647         Tests for module 'unistr/u8-strncpy'.
33648         * modules/unistr/u8-strncpy-tests: New file.
33649         * tests/unistr/test-u8-strncpy.c: New file.
33650         * tests/unistr/test-strncpy.h: New file.
33651
33652         Tests for module 'unistr/u32-stpcpy'.
33653         * modules/unistr/u32-stpcpy-tests: New file.
33654         * tests/unistr/test-u32-stpcpy.c: New file.
33655
33656         Tests for module 'unistr/u16-stpcpy'.
33657         * modules/unistr/u16-stpcpy-tests: New file.
33658         * tests/unistr/test-u16-stpcpy.c: New file.
33659
33660         Tests for module 'unistr/u8-stpcpy'.
33661         * modules/unistr/u8-stpcpy-tests: New file.
33662         * tests/unistr/test-u8-stpcpy.c: New file.
33663         * tests/unistr/test-stpcpy.h: New file.
33664
33665         Tests for module 'unistr/u32-strcpy'.
33666         * modules/unistr/u32-strcpy-tests: New file.
33667         * tests/unistr/test-u32-strcpy.c: New file.
33668
33669         Tests for module 'unistr/u16-strcpy'.
33670         * modules/unistr/u16-strcpy-tests: New file.
33671         * tests/unistr/test-u16-strcpy.c: New file.
33672
33673         Tests for module 'unistr/u8-strcpy'.
33674         * modules/unistr/u8-strcpy-tests: New file.
33675         * tests/unistr/test-u8-strcpy.c: New file.
33676         * tests/unistr/test-strcpy.h: New file.
33677
33678         Tests for module 'unistr/u32-strnlen'.
33679         * modules/unistr/u32-strnlen-tests: New file.
33680         * tests/unistr/test-u32-strnlen.c: New file.
33681
33682         Tests for module 'unistr/u16-strnlen'.
33683         * modules/unistr/u16-strnlen-tests: New file.
33684         * tests/unistr/test-u16-strnlen.c: New file.
33685
33686         Tests for module 'unistr/u8-strnlen'.
33687         * modules/unistr/u8-strnlen-tests: New file.
33688         * tests/unistr/test-u8-strnlen.c: New file.
33689         * tests/unistr/test-strnlen.h: New file.
33690
33691         Tests for module 'unistr/u32-strlen'.
33692         * modules/unistr/u32-strlen-tests: New file.
33693         * tests/unistr/test-u32-strlen.c: New file.
33694
33695         Tests for module 'unistr/u16-strlen'.
33696         * modules/unistr/u16-strlen-tests: New file.
33697         * tests/unistr/test-u16-strlen.c: New file.
33698
33699         Tests for module 'unistr/u8-strlen'.
33700         * modules/unistr/u8-strlen-tests: New file.
33701         * tests/unistr/test-u8-strlen.c: New file.
33702
33703         Tests for module 'unistr/u32-prev'.
33704         * modules/unistr/u32-prev-tests: New file.
33705         * tests/unistr/test-u32-prev.c: New file.
33706
33707         Tests for module 'unistr/u16-prev'.
33708         * modules/unistr/u16-prev-tests: New file.
33709         * tests/unistr/test-u16-prev.c: New file.
33710
33711         Tests for module 'unistr/u8-prev'.
33712         * modules/unistr/u8-prev-tests: New file.
33713         * tests/unistr/test-u8-prev.c: New file.
33714
33715         Tests for module 'unistr/u32-next'.
33716         * modules/unistr/u32-next-tests: New file.
33717         * tests/unistr/test-u32-next.c: New file.
33718
33719         Tests for module 'unistr/u16-next'.
33720         * modules/unistr/u16-next-tests: New file.
33721         * tests/unistr/test-u16-next.c: New file.
33722
33723         Tests for module 'unistr/u8-next'.
33724         * modules/unistr/u8-next-tests: New file.
33725         * tests/unistr/test-u8-next.c: New file.
33726
33727         Tests for module 'unistr/u32-strmbtouc'.
33728         * modules/unistr/u32-strmbtouc-tests: New file.
33729         * tests/unistr/test-u32-strmbtouc.c: New file.
33730
33731         Tests for module 'unistr/u16-strmbtouc'.
33732         * modules/unistr/u16-strmbtouc-tests: New file.
33733         * tests/unistr/test-u16-strmbtouc.c: New file.
33734
33735         Tests for module 'unistr/u8-strmbtouc'.
33736         * modules/unistr/u8-strmbtouc-tests: New file.
33737         * tests/unistr/test-u8-strmbtouc.c: New file.
33738
33739         Tests for module 'unistr/u32-strmblen'.
33740         * modules/unistr/u32-strmblen-tests: New file.
33741         * tests/unistr/test-u32-strmblen.c: New file.
33742
33743         Tests for module 'unistr/u16-strmblen'.
33744         * modules/unistr/u16-strmblen-tests: New file.
33745         * tests/unistr/test-u16-strmblen.c: New file.
33746
33747         Tests for module 'unistr/u8-strmblen'.
33748         * modules/unistr/u8-strmblen-tests: New file.
33749         * tests/unistr/test-u8-strmblen.c: New file.
33750
33751         Tests for module 'unistr/u32-cpy-alloc'.
33752         * modules/unistr/u32-cpy-alloc-tests: New file.
33753         * tests/unistr/test-u32-cpy-alloc.c: New file.
33754
33755         Tests for module 'unistr/u16-cpy-alloc'.
33756         * modules/unistr/u16-cpy-alloc-tests: New file.
33757         * tests/unistr/test-u16-cpy-alloc.c: New file.
33758
33759         Tests for module 'unistr/u8-cpy-alloc'.
33760         * modules/unistr/u8-cpy-alloc-tests: New file.
33761         * tests/unistr/test-u8-cpy-alloc.c: New file.
33762         * tests/unistr/test-cpy-alloc.h: New file.
33763
33764         Tests for module 'unistr/u32-mbsnlen'.
33765         * modules/unistr/u32-mbsnlen-tests: New file.
33766         * tests/unistr/test-u32-mbsnlen.c: New file.
33767
33768         Tests for module 'unistr/u16-mbsnlen'.
33769         * modules/unistr/u16-mbsnlen-tests: New file.
33770         * tests/unistr/test-u16-mbsnlen.c: New file.
33771
33772         Tests for module 'unistr/u8-mbsnlen'.
33773         * modules/unistr/u8-mbsnlen-tests: New file.
33774         * tests/unistr/test-u8-mbsnlen.c: New file.
33775
33776         Tests for module 'unistr/u32-chr'.
33777         * modules/unistr/u32-chr-tests: New file.
33778         * tests/unistr/test-u32-chr.c: New file.
33779
33780         Tests for module 'unistr/u16-chr'.
33781         * modules/unistr/u16-chr-tests: New file.
33782         * tests/unistr/test-u16-chr.c: New file.
33783
33784         Tests for module 'unistr/u8-chr'.
33785         * modules/unistr/u8-chr-tests: New file.
33786         * tests/unistr/test-u8-chr.c: New file.
33787         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33788
33789         Tests for module 'unistr/u32-cmp2'.
33790         * modules/unistr/u32-cmp2-tests: New file.
33791         * tests/unistr/test-u32-cmp2.c: New file.
33792
33793         Tests for module 'unistr/u16-cmp2'.
33794         * modules/unistr/u16-cmp2-tests: New file.
33795         * tests/unistr/test-u16-cmp2.c: New file.
33796
33797         Tests for module 'unistr/u8-cmp2'.
33798         * modules/unistr/u8-cmp2-tests: New file.
33799         * tests/unistr/test-u8-cmp2.c: New file.
33800         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33801
33802         Tests for module 'unistr/u32-cmp'.
33803         * modules/unistr/u32-cmp-tests: New file.
33804         * tests/unistr/test-u32-cmp.c: New file.
33805
33806         Tests for module 'unistr/u16-cmp'.
33807         * modules/unistr/u16-cmp-tests: New file.
33808         * tests/unistr/test-u16-cmp.c: New file.
33809
33810         Tests for module 'unistr/u8-cmp'.
33811         * modules/unistr/u8-cmp-tests: New file.
33812         * tests/unistr/test-u8-cmp.c: New file.
33813         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33814
33815         Tests for module 'unistr/u32-set'.
33816         * modules/unistr/u32-set-tests: New file.
33817         * tests/unistr/test-u32-set.c: New file.
33818
33819         Tests for module 'unistr/u16-set'.
33820         * modules/unistr/u16-set-tests: New file.
33821         * tests/unistr/test-u16-set.c: New file.
33822
33823         Tests for module 'unistr/u8-set'.
33824         * modules/unistr/u8-set-tests: New file.
33825         * tests/unistr/test-u8-set.c: New file.
33826         * tests/unistr/test-set.h: New file.
33827
33828         Tests for module 'unistr/u32-move'.
33829         * modules/unistr/u32-move-tests: New file.
33830         * tests/unistr/test-u32-move.c: New file.
33831
33832         Tests for module 'unistr/u16-move'.
33833         * modules/unistr/u16-move-tests: New file.
33834         * tests/unistr/test-u16-move.c: New file.
33835
33836         Tests for module 'unistr/u8-move'.
33837         * modules/unistr/u8-move-tests: New file.
33838         * tests/unistr/test-u8-move.c: New file.
33839         * tests/unistr/test-move.h: New file.
33840
33841         Tests for module 'unistr/u32-cpy'.
33842         * modules/unistr/u32-cpy-tests: New file.
33843         * tests/unistr/test-u32-cpy.c: New file.
33844
33845         Tests for module 'unistr/u16-cpy'.
33846         * modules/unistr/u16-cpy-tests: New file.
33847         * tests/unistr/test-u16-cpy.c: New file.
33848
33849         Tests for module 'unistr/u8-cpy'.
33850         * modules/unistr/u8-cpy-tests: New file.
33851         * tests/unistr/test-u8-cpy.c: New file.
33852         * tests/unistr/test-cpy.h: New file.
33853
33854 2010-01-09  Bruno Haible  <bruno@clisp.org>
33855
33856         Tests for module 'unistr/u32-uctomb'.
33857         * modules/unistr/u32-uctomb-tests: New file.
33858         * tests/unistr/test-u32-uctomb.c: New file.
33859
33860         Tests for module 'unistr/u16-uctomb'.
33861         * modules/unistr/u16-uctomb-tests: New file.
33862         * tests/unistr/test-u16-uctomb.c: New file.
33863
33864         Tests for module 'unistr/u8-uctomb'.
33865         * modules/unistr/u8-uctomb-tests: New file.
33866         * tests/unistr/test-u8-uctomb.c: New file.
33867
33868         Tests for module 'unistr/u32-mbtoucr'.
33869         * modules/unistr/u32-mbtoucr-tests: New file.
33870         * tests/unistr/test-u32-mbtoucr.c: New file.
33871
33872         Tests for module 'unistr/u16-mbtoucr'.
33873         * modules/unistr/u16-mbtoucr-tests: New file.
33874         * tests/unistr/test-u16-mbtoucr.c: New file.
33875
33876         Tests for module 'unistr/u8-mbtoucr'.
33877         * modules/unistr/u8-mbtoucr-tests: New file.
33878         * tests/unistr/test-u8-mbtoucr.c: New file.
33879
33880         Tests for module 'unistr/u32-mbtouc'.
33881         * modules/unistr/u32-mbtouc-tests: New file.
33882         * tests/unistr/test-u32-mbtouc.c: New file.
33883
33884         Tests for module 'unistr/u16-mbtouc'.
33885         * modules/unistr/u16-mbtouc-tests: New file.
33886         * tests/unistr/test-u16-mbtouc.c: New file.
33887
33888         Tests for module 'unistr/u8-mbtouc'.
33889         * modules/unistr/u8-mbtouc-tests: New file.
33890         * tests/unistr/test-u8-mbtouc.c: New file.
33891
33892         Tests for module 'unistr/u32-mbtouc-unsafe'.
33893         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33894         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33895         * tests/unistr/test-u32-mbtouc.h: New file.
33896
33897         Tests for module 'unistr/u16-mbtouc-unsafe'.
33898         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33899         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33900         * tests/unistr/test-u16-mbtouc.h: New file.
33901
33902         Tests for module 'unistr/u8-mbtouc-unsafe'.
33903         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33904         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33905         * tests/unistr/test-u8-mbtouc.h: New file.
33906
33907         Tests for module 'unistr/u32-mblen'.
33908         * modules/unistr/u32-mblen-tests: New file.
33909         * tests/unistr/test-u32-mblen.c: New file.
33910
33911         Tests for module 'unistr/u16-mblen'.
33912         * modules/unistr/u16-mblen-tests: New file.
33913         * tests/unistr/test-u16-mblen.c: New file.
33914
33915         Tests for module 'unistr/u8-mblen'.
33916         * modules/unistr/u8-mblen-tests: New file.
33917         * tests/unistr/test-u8-mblen.c: New file.
33918
33919         Tests for module 'unistr/u32-to-u16'.
33920         * modules/unistr/u32-to-u16-tests: New file.
33921         * tests/unistr/test-u32-to-u16.c: New file.
33922
33923         Tests for module 'unistr/u32-to-u8'.
33924         * modules/unistr/u32-to-u8-tests: New file.
33925         * tests/unistr/test-u32-to-u8.c: New file.
33926
33927         Tests for module 'unistr/u16-to-u32'.
33928         * modules/unistr/u16-to-u32-tests: New file.
33929         * tests/unistr/test-u16-to-u32.c: New file.
33930
33931         Tests for module 'unistr/u16-to-u8'.
33932         * modules/unistr/u16-to-u8-tests: New file.
33933         * tests/unistr/test-u16-to-u8.c: New file.
33934
33935         Tests for module 'unistr/u8-to-u32'.
33936         * modules/unistr/u8-to-u32-tests: New file.
33937         * tests/unistr/test-u8-to-u32.c: New file.
33938
33939         Tests for module 'unistr/u8-to-u16'.
33940         * modules/unistr/u8-to-u16-tests: New file.
33941         * tests/unistr/test-u8-to-u16.c: New file.
33942
33943         Tests for module 'unistr/u32-check'.
33944         * modules/unistr/u32-check-tests: New file.
33945         * tests/unistr/test-u32-check.c: New file.
33946
33947         Tests for module 'unistr/u16-check'.
33948         * modules/unistr/u16-check-tests: New file.
33949         * tests/unistr/test-u16-check.c: New file.
33950
33951         Tests for module 'unistr/u8-check'.
33952         * modules/unistr/u8-check-tests: New file.
33953         * tests/unistr/test-u8-check.c: New file.
33954
33955         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33956         (category_equals): New function.
33957         (main): Add more tests.
33958         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33959
33960         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33961
33962 2010-01-10  Bruno Haible  <bruno@clisp.org>
33963
33964         unistr/u*-strcoll: Try harder to distinguish different strings.
33965         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33966         compare s1 and s2 to see if they are different.
33967
33968 2010-01-10  Bruno Haible  <bruno@clisp.org>
33969
33970         unistr/u*-stpncpy: Fix the return value.
33971         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33972         description of the return value consistent with stpncpy in glibc.
33973         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33974         written non-NUL unit.
33975
33976 2010-01-10  Bruno Haible  <bruno@clisp.org>
33977
33978         unistr/u*-next: Add missing dependencies.
33979         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33980         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33981         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33982
33983 2010-01-10  Bruno Haible  <bruno@clisp.org>
33984
33985         unistr/u8-mbsnlen: Fix return value for incomplete character.
33986         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33987         u8_mblen.
33988         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33989         Remove unistr/u8-mblen.
33990         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33991         u16_mblen.
33992         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33993         Remove unistr/u16-mblen.
33994
33995 2010-01-10  Bruno Haible  <bruno@clisp.org>
33996
33997         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33998         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33999         Reported by Brian Gough <bjg@gnu.org> and
34000         Chris Clayton <chris2553@googlemail.com> via
34001         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34002
34003 2010-01-09  Bruno Haible  <bruno@clisp.org>
34004
34005         unistr/u16-to-u32: Reject invalid input.
34006         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34007         u16_mbtouc.
34008         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34009         Remove unistr/u16-mbtouc.
34010
34011         unistr/u16-to-u8: Reject invalid input.
34012         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34013         u16_mbtouc.
34014         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34015         Remove unistr/u16-mbtouc.
34016
34017         unistr/u8-to-u32: Reject invalid input.
34018         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34019         u8_mbtouc.
34020         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34021         Remove unistr/u8-mbtouc.
34022
34023         unistr/u8-to-u16: Reject invalid input.
34024         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34025         u8_mbtouc.
34026         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34027         Remove unistr/u8-mbtouc.
34028
34029 2010-01-09  Bruno Haible  <bruno@clisp.org>
34030
34031         Tests for module 'getlogin'.
34032         * modules/getlogin-tests: New file.
34033         * tests/test-getlogin.c: New file.
34034
34035         New module 'getlogin'.
34036         * lib/unistd.in.h (getlogin): New declaration.
34037         * lib/getlogin.c: New file.
34038         * m4/getlogin.m4: New file.
34039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34040         HAVE_GETLOGIN.
34041         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34042         HAVE_GETLOGIN.
34043         * modules/getlogin: New file.
34044         * doc/posix-functions/getlogin.texi: Mention the new module.
34045         Reported by John W. Eaton <jwe@gnu.org>.
34046
34047 2010-01-09  Bruno Haible  <bruno@clisp.org>
34048
34049         getlogin_r: Support for native Windows.
34050         * lib/getlogin_r.c: Include <windows.h>
34051         (getlogin_r): Implement for native Windows.
34052         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34053         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34054         via John W. Eaton <jwe@gnu.org>.
34055
34056 2010-01-09  Bruno Haible  <bruno@clisp.org>
34057
34058         getlogin_r: Small fixes.
34059         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34060         succeeds.
34061         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34062         before testing whether getlogin_r is declared. No need to set
34063         HAVE_DECL_GETLOGIN_R to 1.
34064         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34065
34066 2010-01-09  Bruno Haible  <bruno@clisp.org>
34067
34068         * lib/unistd.in.h (getlogin_r): Add comment.
34069
34070 2010-01-09  Bruno Haible  <bruno@clisp.org>
34071
34072         Tests for module 'getlogin_r'.
34073         * modules/getlogin_r-tests: New file.
34074         * tests/test-getlogin_r.c: New file.
34075
34076 2010-01-09  Jim Meyering  <meyering@redhat.com>
34077
34078         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34079         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34080         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34081
34082 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34083
34084         * lib/dup2.c (rpl_dup2): Improve comment.
34085
34086 2010-01-08  Eric Blake  <ebb9@byu.net>
34087
34088         maint.mk: allow packages to add makefile @@ exceptions
34089         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34090         (sc_makefile_check): Rename...
34091         (sc_makefile_at_at_check): ...to this, and use hook.
34092
34093         dup2: work around mingw bug
34094         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34095         Reported by Simon Josefsson.
34096
34097 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34098
34099         glob: Fix C++ compilation.
34100         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34101         C++.
34102
34103 2010-01-07  Bruno Haible  <bruno@clisp.org>
34104
34105         Fix indentation of wctype.in.h, broken since 2007-01-06.
34106         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34107
34108 2010-01-07  Bruno Haible  <bruno@clisp.org>
34109
34110         mbslen: Avoid collision with system function.
34111         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34112         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34113         * m4/mbslen.m4: New file.
34114         * modules/mbslen (Files): Add it.
34115         (configure.ac): Invoke gl_MBSLEN.
34116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34117         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34118         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34119         via Ian Beckwith <ianb@erislabs.net>.
34120
34121 2010-01-07  Bruno Haible  <bruno@clisp.org>
34122
34123         dirent: Document the last fix.
34124         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34125
34126 2010-01-07  Bruno Haible  <bruno@clisp.org>
34127
34128         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34129         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34130         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34131         va_list are defined.
34132         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34133         Reported by Eric Blake.
34134
34135 2010-01-07  Bruno Haible  <bruno@clisp.org>
34136
34137         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34138         * modules/xlist (Depends-on): Add 'list',
34139         * modules/xoset (Depends-on): Add 'oset'.
34140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34141
34142 2010-01-07  Bruno Haible  <bruno@clisp.org>
34143
34144         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34145         * doc/posix-functions/strncasecmp.texi: Likewise.
34146
34147 2010-01-07  Bruno Haible  <bruno@clisp.org>
34148
34149         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34150
34151 2010-01-07  John W. Eaton  <jwe@octave.org>
34152
34153         wctype: allow C++ use
34154         * lib/wctype.in.h: Add extern "C" block for C++.
34155
34156 2010-01-06  Eric Blake  <ebb9@byu.net>
34157
34158         maint.mk: detect incorrect GFDL usage
34159         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34160
34161 2010-01-06  Jim Meyering  <meyering@redhat.com>
34162         and Eric Blake  <ebb9@byu.net>
34163
34164         maint.mk: ignore multi-line copyright in NEWS
34165         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34166
34167 2010-01-06  Eric Blake  <ebb9@byu.net>
34168
34169         select: add missing dependency
34170         * modules/select-tests (Depends-on): Move sockets dependency...
34171         * modules/select (Depends-on): ...here.
34172         Reported by Ian Beckwith.
34173
34174         doc: regenerate INSTALL
34175         * doc/INSTALL: Reflect recent autoconf update.
34176         * doc/INSTALL.ISO: Likewise.
34177         * doc/INSTALL.UTF-8: Likewise.
34178
34179         pread: fix compilation on glibc
34180         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34181         Reported by Ralf Wildenhues.
34182
34183         dirent: fix test failure
34184         * lib/dirent.in.h (includes): Guarantee ino_t.
34185         Reported by Ralf Wildenhues.
34186
34187 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34188
34189         linkat, renameat: avoid bad free
34190         * lib/at-func2.c (at_func2): Fix typo.
34191         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34192
34193 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34194
34195         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34196         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34197         to avoid failure of symlink test later.
34198
34199 2010-01-06  Eric Blake  <ebb9@byu.net>
34200
34201         stdio, unistd: guarantee ssize_t
34202         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34203         2008 are exposed when needed.
34204         * lib/stdio.in.h (includes): Likewise.
34205         Reported by Ralf Wildenhues.
34206
34207 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34208
34209         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34210         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34211         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34212
34213 2010-01-06  Jim Meyering  <meyering@redhat.com>
34214
34215         readtokens: this module *does* require xalloc.h
34216         It uses only functions that were omitted by the old syntax-check rule.
34217         * lib/readtokens.c: Include "xalloc.h" once again.
34218         * modules/readtokens (Depends-on): Add xalloc.
34219         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34220
34221 2010-01-05  Eric Blake  <ebb9@byu.net>
34222
34223         maint: support 'make announcement' from a VPATH build
34224         * top/maint.mk (announcement): Look for correct NEWS file.
34225
34226 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34227
34228         utimens (fdutimens): ignore a negative FD, per contract
34229         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34230         when we have a valid file descriptor.  Otherwise, using a brand
34231         new glibc (with just-patched futimens that now fails with EBADF)
34232         would cause this function to fail with ENOSYS.
34233         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34234         See also http://bugzilla.redhat.com/552320.
34235
34236 2010-01-05  Eric Blake  <ebb9@byu.net>
34237
34238         strcase: document what it provides
34239         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34240         gnulib module.
34241         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34242         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34243
34244 2010-01-05  Jim Meyering  <meyering@redhat.com>
34245
34246         maint: remove useless inclusions of "xalloc.h"
34247         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34248         * lib/readtokens.c: Likewise.
34249         * lib/same.c: Likewise.
34250         * modules/getloadavg (Depends-on): Remove xalloc.
34251         * modules/readtokens: Likewise.
34252         * modules/same: Likewise.
34253
34254         maint.mk: include 4 more function names in alloca.h-checking regexp
34255         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34256         regexp.  Before, we would give a false-positive (saying alloca.h
34257         is included unnecessarily) when the only uses involved omitted symbols.
34258
34259         xalloc.h: use consistent formatting
34260         * lib/xalloc.h: Move declarations to start in the first column.
34261
34262 2010-01-05  Eric Blake  <ebb9@byu.net>
34263
34264         mkdir: avoid xalloc
34265         * lib/mkdir.c (includes): Drop unused header.
34266         Reported by John W. Eaton.
34267
34268 2010-01-04  Jim Meyering  <meyering@redhat.com>
34269
34270         nl_langinfo: avoid configure-time syntax error
34271         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34272         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34273         the empty string.  Don't let that provoke a shell syntax error.
34274
34275         regcomp, regexec, fnmatch: avoid array bounds read error
34276         * lib/regcomp.c (build_equiv_class): From glibc:
34277         Use only the low 24 bits of a findidx return value as an index
34278         into the weights array.  Patch by Ulrich Drepper:
34279         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34280         * lib/regexec.c (check_node_accept_bytes): Likewise.
34281         * lib/fnmatch_loop.c (FCT): Likewise.
34282
34283         regcomp: skip collseq lookup when there are no rules
34284         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34285         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34286
34287         regcomp: recognize ill-formed { } expressions
34288         * lib/regcomp.c (parse_dup_op): From glibc:
34289         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34290
34291         regcomp: fix typo in comment
34292         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34293         s/satisfy/satisfies/.
34294
34295         regcomp: sync from glibc: remove dead store
34296         * lib/regcomp.c (duplicate_node_closure): Remove useless
34297         search_duplicated_node call and dead store.
34298
34299         regcomp: sync from glibc; always use nl_langinfo
34300         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34301         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34302         * modules/regex (Depends-on): Add nl_langinfo.
34303
34304 2010-01-04  Eric Blake  <ebb9@byu.net>
34305
34306         fdopendir: fix configure test
34307         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34308
34309 2010-01-01  Bruno Haible  <bruno@clisp.org>
34310
34311         wchar: Remove unused configure check.
34312         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34313
34314 2010-01-01  Eric Blake  <ebb9@byu.net>
34315
34316         headers: make check of system header explicit
34317         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34318         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34319         ourselves.
34320         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34321         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34322         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34323         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34324         internals.
34325         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34326         missing.
34327         Suggested by Bruno Haible.
34328
34329 2010-01-01  Jim Meyering  <meyering@redhat.com>
34330
34331         ChangeLog: tweak to eliminate unnecessary copyright line
34332         * ChangeLog: Remove a copyright line that was mistakenly updated
34333         by today's update-copyright run.  Reported by Eric Blake.
34334
34335         test-update-copyright: don't let envvar setting cause test failure
34336         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34337
34338 2010-01-01  Bruno Haible  <bruno@clisp.org>
34339
34340         localename: Avoid gcc warning.
34341         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34342         function if it is not used.
34343
34344 2010-01-01  Jim Meyering  <meyering@redhat.com>
34345
34346         update nearly all FSF copyright year lists to include 2010
34347         Use the same procedure as for 2009, outlined in
34348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34349
34350         version-etc: set COPYRIGHT_YEAR to 2010
34351         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34352
34353 2009-12-31  Eric Blake  <ebb9@byu.net>
34354
34355         doc: correct availability of cygwin 1.5.x getopt
34356         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34357         variables.
34358         * doc/posix-functions/opterr.texi (opterr): Likewise.
34359         * doc/posix-functions/optind.texi (optind): Likewise.
34360         * doc/posix-functions/optopt.texi (optopt): Likewise.
34361         * doc/posix-functions/tzname.texi (tzname): Likewise.
34362
34363         openat: update maintainer
34364         * modules/openat (Maintainer): Add myself.
34365
34366         utimens: avoid shadowing warning
34367         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34368         buffers into one, to avoid shadowing, as well as avoiding a
34369         redundant stat.
34370         Reported by Jim Meyering.
34371
34372         test-dup2: avoid compiler warning
34373         * tests/test-dup2.c (is_inheritable): Only define if used.
34374
34375 2010-01-01  Bruno Haible  <bruno@clisp.org>
34376
34377         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34378         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34379         defined, use wctomb instead of wcrtomb.
34380
34381 2010-01-01  Bruno Haible  <bruno@clisp.org>
34382
34383         iconv: Reject native Solaris iconv.
34384         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34385         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34386
34387 2009-12-31  Bruno Haible  <bruno@clisp.org>
34388
34389         * tests/test-signal.c (main): Remove test of 'SIG'.
34390
34391 2009-12-31  Bruno Haible  <bruno@clisp.org>
34392
34393         spawn: Fix incomplete fix.
34394         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34395         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34396         warnings for GNULIB_POSIXCHECK again.
34397         Reported by Eric Blake.
34398
34399 2009-12-31  Bruno Haible  <bruno@clisp.org>
34400
34401         Avoid namespace pollution on glibc systems.
34402         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34403         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34404         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34405         glibc systems.
34406
34407 2009-12-31  Bruno Haible  <bruno@clisp.org>
34408
34409         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34410         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34411         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34412         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34413         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34414         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34415         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34416
34417 2009-12-31  Bruno Haible  <bruno@clisp.org>
34418
34419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34420         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34421         afterwards.
34422
34423 2009-12-31  Bruno Haible  <bruno@clisp.org>
34424
34425         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34426         SYS_UTSNAME_H.
34427
34428 2009-12-31  Bruno Haible  <bruno@clisp.org>
34429
34430         spawn: Fix misapplied patch.
34431         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34432         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34433         warnings for GNULIB_POSIXCHECK.
34434
34435 2009-12-31  Bruno Haible  <bruno@clisp.org>
34436
34437         times: Update after sys_times changed.
34438         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34439         * modules/times (Files): Add it.
34440         (configure.ac): Invoke gl_FUNC_TIMES.
34441
34442 2009-12-31  Bruno Haible  <bruno@clisp.org>
34443
34444         Use AC_C_INLINE where necessary.
34445         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34446         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34447         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34448         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34449         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34450         * m4/mbiter.m4 (gl_MBITER): Likewise.
34451         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34452         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34453         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34454         * modules/u64 (configure.ac): Likewise.
34455
34456 2009-12-31  Bruno Haible  <bruno@clisp.org>
34457
34458         Use AC_C_INLINE instead of module 'inline' where possible.
34459         * modules/inline (Description): Clarify purpose.
34460         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34461         * modules/count-one-bits (Depends-on): Remove inline.
34462         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34463         * modules/openat (Depends-on): Remove inline.
34464         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34465         instead of depending on module 'inline'.
34466         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34467         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34468         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34469         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34470         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34471         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34472         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34473         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34474         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34475         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34476         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34477         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34478         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34479         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34480         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34481         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34482         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34483         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34484         Likewise.
34485         * modules/unictype/property-ascii-hex-digit (Depends-on,
34486         configure.ac): Likewise.
34487         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34488         configure.ac): Likewise.
34489         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34490         configure.ac): Likewise.
34491         * modules/unictype/property-bidi-block-separator (Depends-on,
34492         configure.ac): Likewise.
34493         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34494         configure.ac): Likewise.
34495         * modules/unictype/property-bidi-common-separator (Depends-on,
34496         configure.ac): Likewise.
34497         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34498         Likewise.
34499         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34500         configure.ac): Likewise.
34501         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34502         configure.ac): Likewise.
34503         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34504         configure.ac): Likewise.
34505         * modules/unictype/property-bidi-european-digit (Depends-on,
34506         configure.ac): Likewise.
34507         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34508         configure.ac): Likewise.
34509         * modules/unictype/property-bidi-left-to-right (Depends-on,
34510         configure.ac): Likewise.
34511         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34512         configure.ac): Likewise.
34513         * modules/unictype/property-bidi-other-neutral (Depends-on,
34514         configure.ac): Likewise.
34515         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34516         Likewise.
34517         * modules/unictype/property-bidi-segment-separator (Depends-on,
34518         configure.ac): Likewise.
34519         * modules/unictype/property-bidi-whitespace (Depends-on,
34520         configure.ac): Likewise.
34521         * modules/unictype/property-combining (Depends-on, configure.ac):
34522         Likewise.
34523         * modules/unictype/property-composite (Depends-on, configure.ac):
34524         Likewise.
34525         * modules/unictype/property-currency-symbol (Depends-on,
34526         configure.ac): Likewise.
34527         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34528         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34529         Likewise.
34530         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34531         configure.ac): Likewise.
34532         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34533         Likewise.
34534         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34535         Likewise.
34536         * modules/unictype/property-extender (Depends-on, configure.ac):
34537         Likewise.
34538         * modules/unictype/property-format-control (Depends-on, configure.ac):
34539         Likewise.
34540         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34541         Likewise.
34542         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34543         Likewise.
34544         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34545         Likewise.
34546         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34547         Likewise.
34548         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34549         Likewise.
34550         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34551         Likewise.
34552         * modules/unictype/property-id-start (Depends-on, configure.ac):
34553         Likewise.
34554         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34555         Likewise.
34556         * modules/unictype/property-ids-binary-operator (Depends-on,
34557         configure.ac): Likewise.
34558         * modules/unictype/property-ids-trinary-operator (Depends-on,
34559         configure.ac): Likewise.
34560         * modules/unictype/property-ignorable-control (Depends-on,
34561         configure.ac): Likewise.
34562         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34563         Likewise.
34564         * modules/unictype/property-join-control (Depends-on, configure.ac):
34565         Likewise.
34566         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34567         Likewise.
34568         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34569         Likewise.
34570         * modules/unictype/property-logical-order-exception (Depends-on,
34571         configure.ac): Likewise.
34572         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34573         Likewise.
34574         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34575         * modules/unictype/property-non-break (Depends-on, configure.ac):
34576         Likewise.
34577         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34578         Likewise.
34579         * modules/unictype/property-numeric (Depends-on, configure.ac):
34580         Likewise.
34581         * modules/unictype/property-other-alphabetic (Depends-on,
34582         configure.ac): Likewise.
34583         * modules/unictype/property-other-default-ignorable-code-point
34584         (Depends-on, configure.ac): Likewise.
34585         * modules/unictype/property-other-grapheme-extend (Depends-on,
34586         configure.ac): Likewise.
34587         * modules/unictype/property-other-id-continue (Depends-on,
34588         configure.ac): Likewise.
34589         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34590         Likewise.
34591         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34592         Likewise.
34593         * modules/unictype/property-other-math (Depends-on, configure.ac):
34594         Likewise.
34595         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34596         Likewise.
34597         * modules/unictype/property-paired-punctuation (Depends-on,
34598         configure.ac): Likewise.
34599         * modules/unictype/property-paragraph-separator (Depends-on,
34600         configure.ac): Likewise.
34601         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34602         Likewise.
34603         * modules/unictype/property-pattern-white-space (Depends-on,
34604         configure.ac): Likewise.
34605         * modules/unictype/property-private-use (Depends-on, configure.ac):
34606         Likewise.
34607         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34608         Likewise.
34609         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34610         Likewise.
34611         * modules/unictype/property-radical (Depends-on, configure.ac):
34612         Likewise.
34613         * modules/unictype/property-sentence-terminal (Depends-on,
34614         configure.ac): Likewise.
34615         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34616         Likewise.
34617         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34618         * modules/unictype/property-terminal-punctuation (Depends-on,
34619         configure.ac): Likewise.
34620         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34621         Likewise.
34622         * modules/unictype/property-unassigned-code-value (Depends-on,
34623         configure.ac): Likewise.
34624         * modules/unictype/property-unified-ideograph (Depends-on,
34625         configure.ac): Likewise.
34626         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34627         Likewise.
34628         * modules/unictype/property-variation-selector (Depends-on,
34629         configure.ac): Likewise.
34630         * modules/unictype/property-white-space (Depends-on, configure.ac):
34631         Likewise.
34632         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34633         Likewise.
34634         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34635         Likewise.
34636         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34637         Likewise.
34638         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34639         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34640         Likewise.
34641
34642 2009-12-31  Bruno Haible  <bruno@clisp.org>
34643
34644         Remove unnecessary AC_C_INLINE invocation.
34645         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34646         since 2009-08-21.
34647
34648 2009-12-31  Jim Meyering  <meyering@redhat.com>
34649
34650         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34651         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34652         With this change, we can all remove the gpg_key_ID = ... definition
34653         from our respective cfg.mk files.
34654
34655         maint.mk: create announcement template in ~/, not in /tmp
34656         * top/maint.mk (emit_upload_commands): Adjust.
34657         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34658         Remove temporary file, .ci-msg.
34659
34660 2009-12-31  Eric Blake  <ebb9@byu.net>
34661
34662         link-warning: always build headers with link warnings
34663         * modules/arpa_inet (Makefile.am): Always build replacement
34664         header.
34665         * modules/ctype (Makefile.am): Likewise.
34666         * modules/dirent (Makefile.am): Likewise.
34667         * modules/inttypes (Makefile.am): Likewise.
34668         * modules/langinfo (Makefile.am): Likewise.
34669         * modules/locale (Makefile.am): Likewise.
34670         * modules/spawn (Makefile.am): Likewise.
34671         * modules/sys_file (Makefile.am): Likewise.
34672         * modules/sys_ioctl (Makefile.am): Likewise.
34673         * modules/sys_select (Makefile.am): Likewise.
34674         * modules/sys_socket (Makefile.am): Likewise.
34675         * modules/sys_times (Makefile.am): Likewise.
34676         * modules/sys_utsname (Makefile.am): Likewise.
34677         * modules/sys_wait (Makefile.am): Likewise.
34678         * modules/wchar (Makefile.am): Likewise.
34679         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34680         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34681         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34682         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34683         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34684         Likewise.
34685         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34686         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34687         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34688         Likewise.
34689         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34690         Likewise.
34691         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34692         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34693         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34694         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34695         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34696         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34697         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34698         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34699         (gl_WCHAR_H_DEFAULTS): Likewise.
34700
34701 2009-12-31  Eric Blake  <ebb9@byu.net>
34702
34703         signal, spawn: use link warnings
34704         * lib/signal.in.h (sigset_t): Make unconditional.
34705         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34706         (sigpending, sigprocmask, sigaction): Add link warnings.
34707         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34708         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34709         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34710         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34711         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34712         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34713         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34714         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34715         (posix_spawn_file_actions_destroy)
34716         (posix_spawn_file_actions_addopen)
34717         (posix_spawn_file_actions_addclose)
34718         (posix_spawn_file_actions_adddup2): Likewise.
34719         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34720         * tests/test-signal.c (main): Enhance test.
34721
34722         spawn: improve wrapper support
34723         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34724         (gl_SPAWN_H_DEFAULTS): New defaults.
34725         * modules/spawn (Makefile.am): Substitute them.
34726         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34727         Only declare if missing or broken.
34728
34729         sys_times, sys_utsname: use include_next
34730         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34731         header.
34732         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34733         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34734         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34735         * modules/sys_times (Depends-on): Add include_next.
34736         (Makefile.am): Substitute additional values.
34737         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34738         * lib/sys_times.in.h (includes): Include native header, if
34739         available.
34740         * lib/sys_utsname.in.h (includes): Likewise.
34741         * tests/test-sys_times.c (main): Enhance test.
34742
34743         fdutimensat: revert prior patch
34744         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34745         utimens.h.
34746         Reported by Bruno Haible.
34747
34748 2009-12-30  Eric Blake  <ebb9@byu.net>
34749
34750         sys_wait: drop link-warning dependency
34751         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34752         link-warning efforts.
34753         * lib/sys_wait.in.h: Likewise.
34754
34755         fdutimensat: remove bogus dependency
34756         * modules/fdutimensat (Depends-on): Drop inline.
34757
34758         unistd: fix typo
34759         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34760
34761 2009-12-30  Bruno Haible  <bruno@clisp.org>
34762
34763         Fix compilation error with Solaris cc.
34764         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34765         * lib/unicase/u16-is-invariant.c: Likewise.
34766         * lib/unicase/u32-is-invariant.c: Likewise.
34767         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34768
34769 2009-12-30  Bruno Haible  <bruno@clisp.org>
34770
34771         Fix test crash.
34772         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34773         locales.
34774         Reported by Simon Josefsson <simon@josefsson.org>.
34775
34776 2009-12-30  Bruno Haible  <bruno@clisp.org>
34777
34778         Fix compilation error on most platforms.
34779         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34780         Reported by Simon Josefsson <simon@josefsson.org>
34781         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34782
34783 2009-12-30  Eric Blake  <ebb9@byu.net>
34784
34785         futimens, utimensat: work around ntfs-3g bug
34786         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34787         a ctime bug is present, and expand workaround to cover ntfs-3g.
34788         * lib/utimens.c (fdutimens, lutimens): Likewise.
34789         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34790         (validate_timespec): Adjust return value.
34791         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34792         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34793         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34794
34795 2009-12-29  Eric Blake  <ebb9@byu.net>
34796
34797         link-warning: make usage consistent
34798         * modules/ctype (Depends-on): Add link-warning.
34799         (Makefile.am): Update rules accordingly.
34800         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34801         * modules/locale (Depends-on, Makefile.am): Likewise.
34802         * modules/sys_file (Makefile.am): Likewise.
34803         * modules/getopt-posix (Makefile.am): Delete unused link warning
34804         efforts.
34805         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34806         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34807         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34808         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34809
34810         stdio: remove unused variables
34811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34813         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34814
34815         tests: test more substitute headers
34816         * modules/ctype-tests: New file.
34817         * modules/dirent-tests: Likewise.
34818         * modules/spawn-tests: Likewise.
34819         * modules/sys_file-tests: Likewise.
34820         * modules/sys_ioctl-tests: Likewise.
34821         * modules/sys_wait-tests: Likewise.
34822         * tests/test-ctype.c: Likewise.
34823         * tests/test-dirent.c: Likewise.
34824         * tests/test-spawn.c: Likewise.
34825         * tests/test-sys_file.c: Likewise.
34826         * tests/test-sys_ioctl.c: Likewise.
34827         * tests/test-sys_wait.c: Likewise.
34828         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34829         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34830         whether or not flock is in use.
34831
34832         tests: remove License section from module
34833         * modules/arpa_inet-tests: Remove unneeded section.
34834         * modules/byteswap-tests: Likewise.
34835         * modules/ceilf-tests: Likewise.
34836         * modules/ceill-tests: Likewise.
34837         * modules/crypto/des-tests: Likewise.
34838         * modules/crypto/gc-arcfour-tests: Likewise.
34839         * modules/crypto/gc-arctwo-tests: Likewise.
34840         * modules/crypto/gc-des-tests: Likewise.
34841         * modules/crypto/gc-hmac-md5-tests: Likewise.
34842         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34843         * modules/crypto/gc-md2-tests: Likewise.
34844         * modules/crypto/gc-md4-tests: Likewise.
34845         * modules/crypto/gc-md5-tests: Likewise.
34846         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34847         * modules/crypto/gc-rijndael-tests: Likewise.
34848         * modules/crypto/gc-sha1-tests: Likewise.
34849         * modules/crypto/gc-tests: Likewise.
34850         * modules/crypto/md2-tests: Likewise.
34851         * modules/crypto/md4-tests: Likewise.
34852         * modules/fcntl-h-tests: Likewise.
34853         * modules/floorf-tests: Likewise.
34854         * modules/floorl-tests: Likewise.
34855         * modules/frexp-nolibm-tests: Likewise.
34856         * modules/frexp-tests: Likewise.
34857         * modules/frexpl-nolibm-tests: Likewise.
34858         * modules/frexpl-tests: Likewise.
34859         * modules/getaddrinfo-tests: Likewise.
34860         * modules/inttypes-tests: Likewise.
34861         * modules/isfinite-tests: Likewise.
34862         * modules/isinf-tests: Likewise.
34863         * modules/ldexpl-tests: Likewise.
34864         * modules/locale-tests: Likewise.
34865         * modules/math-tests: Likewise.
34866         * modules/netdb-tests: Likewise.
34867         * modules/netinet_in-tests: Likewise.
34868         * modules/printf-frexp-tests: Likewise.
34869         * modules/printf-frexpl-tests: Likewise.
34870         * modules/priv-set-tests: Likewise.
34871         * modules/random_r-tests: Likewise.
34872         * modules/round-tests: Likewise.
34873         * modules/roundf-tests: Likewise.
34874         * modules/roundl-tests: Likewise.
34875         * modules/search-tests: Likewise.
34876         * modules/select-tests: Likewise.
34877         * modules/signal-tests: Likewise.
34878         * modules/stdbool-tests: Likewise.
34879         * modules/stddef-tests: Likewise.
34880         * modules/stdint-tests: Likewise.
34881         * modules/stdio-tests: Likewise.
34882         * modules/stdlib-tests: Likewise.
34883         * modules/string-tests: Likewise.
34884         * modules/strings-tests: Likewise.
34885         * modules/sys_select-tests: Likewise.
34886         * modules/sys_socket-tests: Likewise.
34887         * modules/sys_stat-tests: Likewise.
34888         * modules/sys_time-tests: Likewise.
34889         * modules/sys_utsname-tests: Likewise.
34890         * modules/sysexits-tests: Likewise.
34891         * modules/time-tests: Likewise.
34892         * modules/trunc-tests: Likewise.
34893         * modules/truncf-tests: Likewise.
34894         * modules/truncl-tests: Likewise.
34895         * modules/tsearch-tests: Likewise.
34896         * modules/unistd-tests: Likewise.
34897         * modules/wchar-tests: Likewise.
34898         * modules/wctype-tests: Likewise.
34899
34900         tests: fix license on several tests
34901         * tests/test-des.c: Update to GPLv3+.
34902         * tests/test-flock.c: Likewise.
34903         * tests/test-fsync.c: Likewise.
34904         * tests/test-futimens.h: Likewise.
34905         * tests/test-gc-arcfour.c: Likewise.
34906         * tests/test-gc-arctwo.c: Likewise.
34907         * tests/test-gc-des.c: Likewise.
34908         * tests/test-gc-hmac-md5.c: Likewise.
34909         * tests/test-gc-hmac-sha1.c: Likewise.
34910         * tests/test-gc-md2.c: Likewise.
34911         * tests/test-gc-md4.c: Likewise.
34912         * tests/test-gc-md5.c: Likewise.
34913         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34914         * tests/test-gc-rijndael.c: Likewise.
34915         * tests/test-gc-sha1.c: Likewise.
34916         * tests/test-gc.c: Likewise.
34917         * tests/test-getcwd.c: Likewise.
34918         * tests/test-link.c: Likewise.
34919         * tests/test-link.h: Likewise.
34920         * tests/test-lutimens.h: Likewise.
34921         * tests/test-md2.c: Likewise.
34922         * tests/test-md4.c: Likewise.
34923         * tests/test-mkdir.h: Likewise.
34924         * tests/test-rename.c: Likewise.
34925         * tests/test-rename.h: Likewise.
34926         * tests/test-safe-alloc.c: Likewise.
34927         * tests/test-utimens-common.h: Likewise.
34928         * tests/test-utimens.h: Likewise.
34929
34930         maint: sync license texts
34931         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34932         * doc/gpl-3.0.texi: Revert copyright year update.
34933         * doc/lgpl-3.0.texi: Likewise.
34934
34935 2009-12-29  Jim Meyering  <meyering@redhat.com>
34936
34937         update nearly all FSF copyright year lists to include 2009
34938         The files named by the following are exempted:
34939             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34940               test -f "$dst" && { echo "$dst"; continue; }
34941               test -d "$dst" || continue
34942               echo "$dst"/$(basename "$src")
34943             done > exempt
34944             git ls-files tests/unictype >> exempt
34945         In the remaining files, convert to all-interval notation if
34946         - there is already at least one year interval like 2000-2003
34947         - the file is maintained by me
34948         - the file is in lib/uni*/, where that style already prevails
34949         Otherwise, use update-copyright's default.
34950
34951 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34952         and Eric Blake  <ebb9@byu.net>
34953
34954         tests: don't require debug system() to pass
34955         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34956         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34957         * tests/test-unlink.h (test_unlink_func): Likewise.
34958         * tests/test-fstatat.c (main): ...into callers.
34959         * tests/test-lstat.c (main): Likewise.
34960         * tests/test-rmdir.c (main): Likewise.
34961         * tests/test-unlink.c (main): Likewise.
34962         * tests/test-unlinkat.c (main): Likewise.
34963         * tests/test-areadlink-with-size.c (main): Don't require a
34964         debug-only system call to pass, aiding cross-testing to mingw.
34965         * tests/test-areadlink.c (main): Likewise.
34966         * tests/test-areadlinkat-with-size.c (main): Likewise.
34967         * tests/test-areadlinkat.c (main): Likewise.
34968         * tests/test-canonicalize-lgpl.c (main): Likewise.
34969         * tests/test-canonicalize.c (main): Likewise.
34970         * tests/test-chown.c (main): Likewise.
34971         * tests/test-fchownat.c (main): Likewise.
34972         * tests/test-lchown.c (main): Likewise.
34973         * tests/test-fdutimensat.c (main): Likewise.
34974         * tests/test-futimens.c (main): Likewise.
34975         * tests/test-link.c (main): Likewise.
34976         * tests/test-linkat.c (main): Likewise.
34977         * tests/test-mkdir.c (main): Likewise.
34978         * tests/test-mkdirat.c (main): Likewise.
34979         * tests/test-mkfifo.c (main): Likewise.
34980         * tests/test-mkfifoat.c (main): Likewise.
34981         * tests/test-mknod.c (main): Likewise.
34982         * tests/test-readlink.c (main): Likewise.
34983         * tests/test-remove.c (main): Likewise.
34984         * tests/test-rename.c (main): Likewise.
34985         * tests/test-renameat.c (main): Likewise.
34986         * tests/test-symlink.c (main): Likewise.
34987         * tests/test-symlinkat.c (main): Likewise.
34988         * tests/test-utimens.c (main): Likewise.
34989         * tests/test-utimensat.c (main): Likewise.
34990
34991 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34992
34993         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34994         on $(UNUSED_PARAMETER_H) to avoid build failure.
34995
34996 2009-12-28  Jim Meyering  <meyering@redhat.com>
34997
34998         update-copyright: you may specify a max. line length other than 72
34999         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35000
35001         maint: use consistent FSF copyright line syntax
35002         * lib/posixtm.c: Add missing comma in FSF copyright line.
35003         * lib/posixtm.h: Likewise.
35004         * lib/getugroups.c: Add missing ", Inc.".
35005
35006         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35007         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35008         FSF copyright line.  Remove trailing blanks.
35009
35010 2009-12-28  Eric Blake  <ebb9@byu.net>
35011
35012         test-dup2: reduce dependencies
35013         * modules/cloexec (Configure.ac): Set witness.
35014         * modules/dup2-tests (Depends-on): Drop cloexec.
35015         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35016         not present.
35017         Suggested by Bruno Haible.
35018
35019 2009-12-26  Bruno Haible  <bruno@clisp.org>
35020
35021         Remove an unneeded dependency.
35022         * modules/fseterr (Depends-on): Remove dup2.
35023
35024 2009-12-26  Eric Blake  <ebb9@byu.net>
35025
35026         tests: use macros.h in more places
35027         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35028         (ASSERT_STREAM): Provide default of stderr.
35029         * tests/test-dirent-safer.c: Include macros.h, using alternate
35030         stream for assertions.
35031         * tests/test-dup-safer.c: Likewise.
35032         * tests/test-freopen-safer.c: Likewise.
35033         * tests/test-getopt.c: Likewise.
35034         * tests/test-openat-safer.c: Likewise.
35035         * tests/test-pipe.c: Likewise.
35036         * tests/test-popen-safer.c: Likewise.
35037         * modules/dirent-safer-tests (Files): Include macros.h.
35038         * modules/unistd-safer-tests (Files): Likewise.
35039         * modules/freopen-safer-tests (Files): Likewise.
35040         * modules/getopt-posix-tests (Files): Likewise.
35041         * modules/openat-safer-tests (Files): Likewise.
35042         * modules/pipe-tests (Files): Likewise.
35043
35044 2009-12-26  Bruno Haible  <bruno@clisp.org>
35045
35046         javacomp: Portability fix.
35047         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35048         that it also works on Solaris.
35049
35050 2009-12-26  Bruno Haible  <bruno@clisp.org>
35051
35052         localename: Fix storage allocation of gl_locale_name_thread's result.
35053         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35054         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35055         all platforms that have 'uselocale'.
35056         (gl_locale_name_thread_unsafe): New function, extracted from
35057         gl_locale_name_thread.
35058         (gl_locale_name_thread): Call struniq on all platforms that have
35059         'uselocale'.
35060         * tests/test-localename.c (test_locale_name_thread): Check that the
35061         resulting strings are permanently allocated.
35062         * modules/localename-tests (Depends-on): Add strdup.
35063
35064 2009-12-26  Bruno Haible  <bruno@clisp.org>
35065
35066         * tests/test-localename.c (categories): Fill in the strings.
35067
35068 2009-12-26  Jim Meyering  <meyering@redhat.com>
35069
35070         isdir: complete the removal of m4/isdir.m4
35071         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35072
35073         isdir: clean up, since at least grep still uses it
35074         * lib/isdir.c: Include "isdir.h".
35075         (S_ISDIR): Remove now-unneeded definition.
35076         * modules/isdir (Files): Add lib/isdir.h.
35077         * lib/isdir.h: New file, with declaration.
35078         * m4/isdir.m4: Remove file -- unneeded.
35079
35080 2009-12-25  Bruno Haible  <bruno@clisp.org>
35081
35082         selinux-h: Make generated .h files standalone.
35083         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35084         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35085         * lib/se-selinux.in.h: Likewise.
35086         * modules/selinux-h (Depends-on): Add unused-parameter.
35087         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35088         selinux/selinux.h and selinux/context.h.
35089         Suggested by Eric Blake.
35090
35091 2009-12-25  Bruno Haible  <bruno@clisp.org>
35092
35093         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35094         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35095         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35096         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35097         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35098
35099 2009-12-24  Bruno Haible  <bruno@clisp.org>
35100
35101         openat: Fix warning.
35102         * lib/openat-proc.c: Include <unistd.h>.
35103
35104 2009-12-24  Bruno Haible  <bruno@clisp.org>
35105
35106         New module 'unused-parameter'.
35107         * build-aux/unused-parameter.h: New file, extracted from earlier
35108         gnulib-common.m4.
35109         * modules/unused-parameter: New file.
35110         * lib/unistr.h: Include unused-parameter.h.
35111         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35112         _GL_UNUSED.
35113         * modules/unistr/base (Depends-on): Add unused-parameter.
35114
35115 2009-12-24  Bruno Haible  <bruno@clisp.org>
35116
35117         Add missing dependencies to 'extensions' module.
35118         * m4/extensions.m4: Add comment.
35119         * modules/accept4 (Depends-on): Add extensions.
35120         * modules/dup3 (Depends-on): Likewise.
35121         * modules/fcntl (Depends-on): Likewise.
35122         * modules/futimens (Depends-on): Likewise.
35123         * modules/mknod (Depends-on): Likewise.
35124         * modules/pipe2 (Depends-on): Likewise.
35125         * modules/stat-time (Depends-on): Likewise.
35126         * modules/strcasestr-simple (Depends-on): Likewise.
35127         * modules/strsignal (Depends-on): Likewise.
35128         * modules/utimensat (Depends-on): Likewise.
35129         * modules/localcharset (Depends-on): Likewise. Needed because of
35130         gl_FCNTL_O_FLAGS.
35131         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35132         AC_TYPE_MBSTATE_T.
35133         * modules/wcsnrtombs (Depends-on): Likewise.
35134         * modules/wcsrtombs (Depends-on): Likewise.
35135
35136 2009-12-24  Bruno Haible  <bruno@clisp.org>
35137
35138         binary-io: Avoid gcc warning due to SET_BINARY.
35139         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35140         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35141
35142 2009-12-24  Bruno Haible  <bruno@clisp.org>
35143
35144         Avoid future namespace pollution on glibc systems.
35145         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35146         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35147         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35148         glibc systems.
35149
35150 2009-12-24  Bruno Haible  <bruno@clisp.org>
35151
35152         Refactor common macros used in tests.
35153         * tests/macros.h: New file.
35154         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35155         and/or <stdlib.h>, if appropriate.
35156         (ASSERT, SIZEOF): Remove macros.
35157         * tests/test-areadlink-with-size.c: Likewise.
35158         * tests/test-areadlinkat.c: Likewise.
35159         * tests/test-areadlinkat-with-size.c: Likewise.
35160         * tests/test-argmatch.c: Likewise.
35161         * tests/test-argv-iter.c: Likewise.
35162         * tests/test-array-mergesort.c: Likewise.
35163         * tests/test-array_list.c: Likewise.
35164         * tests/test-array_oset.c: Likewise.
35165         * tests/test-avltree_list.c: Likewise.
35166         * tests/test-avltree_oset.c: Likewise.
35167         * tests/test-avltreehash_list.c: Likewise.
35168         * tests/test-base64.c: Likewise.
35169         * tests/test-binary-io.c: Likewise.
35170         * tests/test-bitrotate.c: Likewise.
35171         * tests/test-btowc.c: Likewise.
35172         * tests/test-byteswap.c: Likewise.
35173         * tests/test-c-ctype.c: Likewise.
35174         * tests/test-c-stack.c: Likewise.
35175         * tests/test-c-strcasecmp.c: Likewise.
35176         * tests/test-c-strcasestr.c: Likewise.
35177         * tests/test-c-strncasecmp.c: Likewise.
35178         * tests/test-c-strstr.c: Likewise.
35179         * tests/test-canonicalize-lgpl.c: Likewise.
35180         * tests/test-canonicalize.c: Likewise.
35181         * tests/test-carray_list.c: Likewise.
35182         * tests/test-ceilf1.c: Likewise.
35183         * tests/test-ceilf2.c: Likewise.
35184         * tests/test-ceill.c: Likewise.
35185         * tests/test-chown.c: Likewise.
35186         * tests/test-cloexec.c: Likewise.
35187         * tests/test-copy-acl.c: Likewise.
35188         * tests/test-copy-file.c: Likewise.
35189         * tests/test-count-one-bits.c: Likewise.
35190         * tests/test-dprintf-posix.c: Likewise.
35191         * tests/test-dup2.c: Likewise.
35192         * tests/test-dup3.c: Likewise.
35193         * tests/test-duplocale.c: Likewise.
35194         * tests/test-fbufmode.c: Likewise.
35195         * tests/test-fchdir.c: Likewise.
35196         * tests/test-fchownat.c: Likewise.
35197         * tests/test-fcntl-safer.c: Likewise.
35198         * tests/test-fcntl.c: Likewise.
35199         * tests/test-fdopendir.c: Likewise.
35200         * tests/test-fdutimensat.c: Likewise.
35201         * tests/test-fflush2.c: Likewise.
35202         * tests/test-file-has-acl.c: Likewise.
35203         * tests/test-filevercmp.c: Likewise.
35204         * tests/test-flock.c: Likewise.
35205         * tests/test-floorf1.c: Likewise.
35206         * tests/test-floorf2.c: Likewise.
35207         * tests/test-floorl.c: Likewise.
35208         * tests/test-fnmatch.c: Likewise.
35209         * tests/test-fopen.h: Likewise.
35210         * tests/test-fpending.c: Likewise.
35211         * tests/test-fprintf-posix.c: Likewise.
35212         * tests/test-fpurge.c: Likewise.
35213         * tests/test-freadable.c: Likewise.
35214         * tests/test-freadahead.c: Likewise.
35215         * tests/test-freading.c: Likewise.
35216         * tests/test-freadptr.c: Likewise.
35217         * tests/test-freadptr2.c: Likewise.
35218         * tests/test-freadseek.c: Likewise.
35219         * tests/test-freopen.c: Likewise.
35220         * tests/test-frexp.c: Likewise.
35221         * tests/test-frexpl.c: Likewise.
35222         * tests/test-fseek.c: Likewise.
35223         * tests/test-fseeko.c: Likewise.
35224         * tests/test-fstatat.c: Likewise.
35225         * tests/test-fstrcmp.c: Likewise.
35226         * tests/test-fsync.c: Likewise.
35227         * tests/test-ftell.c: Likewise.
35228         * tests/test-ftello.c: Likewise.
35229         * tests/test-func.c: Likewise.
35230         * tests/test-futimens.c: Likewise.
35231         * tests/test-fwritable.c: Likewise.
35232         * tests/test-fwriting.c: Likewise.
35233         * tests/test-getcwd.c: Likewise.
35234         * tests/test-getdate.c: Likewise.
35235         * tests/test-getdelim.c: Likewise.
35236         * tests/test-getdtablesize.c: Likewise.
35237         * tests/test-getgroups.c: Likewise.
35238         * tests/test-getline.c: Likewise.
35239         * tests/test-getndelim2.c: Likewise.
35240         * tests/test-glob.c: Likewise.
35241         * tests/test-hash.c: Likewise.
35242         * tests/test-i-ring.c: Likewise.
35243         * tests/test-iconv-utf.c: Likewise.
35244         * tests/test-iconv.c: Likewise.
35245         * tests/test-idpriv-drop.c: Likewise.
35246         * tests/test-idpriv-droptemp.c: Likewise.
35247         * tests/test-inet_ntop.c: Likewise.
35248         * tests/test-inet_pton.c: Likewise.
35249         * tests/test-isblank.c: Likewise.
35250         * tests/test-isfinite.c: Likewise.
35251         * tests/test-isinf.c: Likewise.
35252         * tests/test-isnan.c: Likewise.
35253         * tests/test-isnand.h: Likewise.
35254         * tests/test-isnanf.h: Likewise.
35255         * tests/test-isnanl.h: Likewise.
35256         * tests/test-lchown.c: Likewise.
35257         * tests/test-ldexpl.c: Likewise.
35258         * tests/test-link.c: Likewise.
35259         * tests/test-linkat.c: Likewise.
35260         * tests/test-linked_list.c: Likewise.
35261         * tests/test-linkedhash_list.c: Likewise.
35262         * tests/test-localename.c: Likewise.
35263         * tests/test-lseek.c: Likewise.
35264         * tests/test-lstat.c: Likewise.
35265         * tests/test-mbmemcasecmp.c: Likewise.
35266         * tests/test-mbmemcasecoll.c: Likewise.
35267         * tests/test-mbrtowc.c: Likewise.
35268         * tests/test-mbscasecmp.c: Likewise.
35269         * tests/test-mbscasestr1.c: Likewise.
35270         * tests/test-mbscasestr2.c: Likewise.
35271         * tests/test-mbscasestr3.c: Likewise.
35272         * tests/test-mbscasestr4.c: Likewise.
35273         * tests/test-mbschr.c: Likewise.
35274         * tests/test-mbscspn.c: Likewise.
35275         * tests/test-mbsinit.c: Likewise.
35276         * tests/test-mbsncasecmp.c: Likewise.
35277         * tests/test-mbsnrtowcs.c: Likewise.
35278         * tests/test-mbspbrk.c: Likewise.
35279         * tests/test-mbspcasecmp.c: Likewise.
35280         * tests/test-mbsrchr.c: Likewise.
35281         * tests/test-mbsrtowcs.c: Likewise.
35282         * tests/test-mbsspn.c: Likewise.
35283         * tests/test-mbsstr1.c: Likewise.
35284         * tests/test-mbsstr2.c: Likewise.
35285         * tests/test-mbsstr3.c: Likewise.
35286         * tests/test-memchr.c: Likewise.
35287         * tests/test-memchr2.c: Likewise.
35288         * tests/test-memcmp.c: Likewise.
35289         * tests/test-memmem.c: Likewise.
35290         * tests/test-memrchr.c: Likewise.
35291         * tests/test-mkdir.c: Likewise.
35292         * tests/test-mkdirat.c: Likewise.
35293         * tests/test-mkfifo.c: Likewise.
35294         * tests/test-mkfifoat.c: Likewise.
35295         * tests/test-mknod.c: Likewise.
35296         * tests/test-nanosleep.c: Likewise.
35297         * tests/test-nl_langinfo.c: Likewise.
35298         * tests/test-obstack-printf.c: Likewise.
35299         * tests/test-open.c: Likewise.
35300         * tests/test-openat.c: Likewise.
35301         * tests/test-pipe-filter-gi1.c: Likewise.
35302         * tests/test-pipe-filter-gi2-main.c: Likewise.
35303         * tests/test-pipe-filter-ii1.c: Likewise.
35304         * tests/test-pipe-filter-ii2-main.c: Likewise.
35305         * tests/test-pipe2.c: Likewise.
35306         * tests/test-popen.h: Likewise.
35307         * tests/test-posixtm.c: Likewise.
35308         * tests/test-pread.c: Likewise.
35309         * tests/test-printf-frexp.c: Likewise.
35310         * tests/test-printf-frexpl.c: Likewise.
35311         * tests/test-printf-posix.c: Likewise.
35312         * tests/test-priv-set.c: Likewise.
35313         * tests/test-quotearg.c: Likewise.
35314         * tests/test-random_r.c: Likewise.
35315         * tests/test-rawmemchr.c: Likewise.
35316         * tests/test-rbtree_list.c: Likewise.
35317         * tests/test-rbtree_oset.c: Likewise.
35318         * tests/test-rbtreehash_list.c: Likewise.
35319         * tests/test-readlink.c: Likewise.
35320         * tests/test-remove.c: Likewise.
35321         * tests/test-rename.c: Likewise.
35322         * tests/test-renameat.c: Likewise.
35323         * tests/test-rmdir.c: Likewise.
35324         * tests/test-round1.c: Likewise.
35325         * tests/test-roundf1.c: Likewise.
35326         * tests/test-roundl.c: Likewise.
35327         * tests/test-safe-alloc.c: Likewise.
35328         * tests/test-sameacls.c: Likewise.
35329         * tests/test-set-mode-acl.c: Likewise.
35330         * tests/test-setenv.c: Likewise.
35331         * tests/test-sigaction.c: Likewise.
35332         * tests/test-signbit.c: Likewise.
35333         * tests/test-sleep.c: Likewise.
35334         * tests/test-snprintf-posix.c: Likewise.
35335         * tests/test-snprintf.c: Likewise.
35336         * tests/test-sprintf-posix.c: Likewise.
35337         * tests/test-stat-time.c: Likewise.
35338         * tests/test-stat.c: Likewise.
35339         * tests/test-strcasestr.c: Likewise.
35340         * tests/test-strchrnul.c: Likewise.
35341         * tests/test-strerror.c: Likewise.
35342         * tests/test-striconv.c: Likewise.
35343         * tests/test-striconveh.c: Likewise.
35344         * tests/test-striconveha.c: Likewise.
35345         * tests/test-strsignal.c: Likewise.
35346         * tests/test-strstr.c: Likewise.
35347         * tests/test-strtod.c: Likewise.
35348         * tests/test-strverscmp.c: Likewise.
35349         * tests/test-symlink.c: Likewise.
35350         * tests/test-symlinkat.c: Likewise.
35351         * tests/test-trunc1.c: Likewise.
35352         * tests/test-trunc2.c: Likewise.
35353         * tests/test-truncf1.c: Likewise.
35354         * tests/test-truncf2.c: Likewise.
35355         * tests/test-truncl.c: Likewise.
35356         * tests/test-uname.c: Likewise.
35357         * tests/test-unlink.c: Likewise.
35358         * tests/test-unlinkat.c: Likewise.
35359         * tests/test-unsetenv.c: Likewise.
35360         * tests/test-usleep.c: Likewise.
35361         * tests/test-utimens.c: Likewise.
35362         * tests/test-utimensat.c: Likewise.
35363         * tests/test-vasnprintf-posix.c: Likewise.
35364         * tests/test-vasnprintf-posix2.c: Likewise.
35365         * tests/test-vasnprintf.c: Likewise.
35366         * tests/test-vasprintf-posix.c: Likewise.
35367         * tests/test-vasprintf.c: Likewise.
35368         * tests/test-vdprintf-posix.c: Likewise.
35369         * tests/test-vfprintf-posix.c: Likewise.
35370         * tests/test-vprintf-posix.c: Likewise.
35371         * tests/test-vsnprintf-posix.c: Likewise.
35372         * tests/test-vsnprintf.c: Likewise.
35373         * tests/test-vsprintf-posix.c: Likewise.
35374         * tests/test-wcrtomb.c: Likewise.
35375         * tests/test-wcsnrtombs.c: Likewise.
35376         * tests/test-wcsrtombs.c: Likewise.
35377         * tests/test-wctype.c: Likewise.
35378         * tests/test-wcwidth.c: Likewise.
35379         * tests/test-xfprintf-posix.c: Likewise.
35380         * tests/test-xmemdup0.c: Likewise.
35381         * tests/test-xprintf-posix.c: Likewise.
35382         * tests/test-xvasprintf.c: Likewise.
35383         * tests/unicase/test-locale-language.c: Likewise.
35384         * tests/unicase/test-mapping-part1.h: Likewise.
35385         * tests/unicase/test-predicate-part1.h: Likewise.
35386         * tests/unicase/test-u8-casecmp.c: Likewise.
35387         * tests/unicase/test-u8-casecoll.c: Likewise.
35388         * tests/unicase/test-u8-casefold.c: Likewise.
35389         * tests/unicase/test-u8-is-cased.c: Likewise.
35390         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35391         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35392         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35393         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35394         * tests/unicase/test-u8-tolower.c: Likewise.
35395         * tests/unicase/test-u8-totitle.c: Likewise.
35396         * tests/unicase/test-u8-toupper.c: Likewise.
35397         * tests/unicase/test-u16-casecmp.c: Likewise.
35398         * tests/unicase/test-u16-casecoll.c: Likewise.
35399         * tests/unicase/test-u16-casefold.c: Likewise.
35400         * tests/unicase/test-u16-is-cased.c: Likewise.
35401         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35402         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35403         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35404         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35405         * tests/unicase/test-u16-tolower.c: Likewise.
35406         * tests/unicase/test-u16-totitle.c: Likewise.
35407         * tests/unicase/test-u16-toupper.c: Likewise.
35408         * tests/unicase/test-u32-casecmp.c: Likewise.
35409         * tests/unicase/test-u32-casecoll.c: Likewise.
35410         * tests/unicase/test-u32-casefold.c: Likewise.
35411         * tests/unicase/test-u32-is-cased.c: Likewise.
35412         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35413         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35414         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35415         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35416         * tests/unicase/test-u32-tolower.c: Likewise.
35417         * tests/unicase/test-u32-totitle.c: Likewise.
35418         * tests/unicase/test-u32-toupper.c: Likewise.
35419         * tests/unicase/test-ulc-casecmp.c: Likewise.
35420         * tests/unicase/test-ulc-casecoll.c: Likewise.
35421         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35422         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35423         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35424         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35425         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35426         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35427         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35428         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35429         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35430         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35431         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35432         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35433         * tests/unictype/test-bidi_byname.c: Likewise.
35434         * tests/unictype/test-bidi_name.c: Likewise.
35435         * tests/unictype/test-bidi_of.c: Likewise.
35436         * tests/unictype/test-bidi_test.c: Likewise.
35437         * tests/unictype/test-block_list.c: Likewise.
35438         * tests/unictype/test-block_of.c: Likewise.
35439         * tests/unictype/test-block_test.c: Likewise.
35440         * tests/unictype/test-categ_and.c: Likewise.
35441         * tests/unictype/test-categ_and_not.c: Likewise.
35442         * tests/unictype/test-categ_byname.c: Likewise.
35443         * tests/unictype/test-categ_name.c: Likewise.
35444         * tests/unictype/test-categ_none.c: Likewise.
35445         * tests/unictype/test-categ_of.c: Likewise.
35446         * tests/unictype/test-categ_or.c: Likewise.
35447         * tests/unictype/test-categ_test_withtable.c: Likewise.
35448         * tests/unictype/test-combining.c: Likewise.
35449         * tests/unictype/test-decdigit.c: Likewise.
35450         * tests/unictype/test-digit.c: Likewise.
35451         * tests/unictype/test-mirror.c: Likewise.
35452         * tests/unictype/test-numeric.c: Likewise.
35453         * tests/unictype/test-pr_byname.c: Likewise.
35454         * tests/unictype/test-pr_test.c: Likewise.
35455         * tests/unictype/test-predicate-part1.h: Likewise.
35456         * tests/unictype/test-scripts.c: Likewise.
35457         * tests/unictype/test-sy_c_ident.c: Likewise.
35458         * tests/unictype/test-sy_java_ident.c: Likewise.
35459         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35460         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35461         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35462         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35463         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35464         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35465         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35466         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35467         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35468         * tests/uninorm/test-compat-decomposition.c: Likewise.
35469         * tests/uninorm/test-composition.c: Likewise.
35470         * tests/uninorm/test-decomposing-form.c: Likewise.
35471         * tests/uninorm/test-decomposition.c: Likewise.
35472         * tests/uninorm/test-u8-nfc.c: Likewise.
35473         * tests/uninorm/test-u8-nfd.c: Likewise.
35474         * tests/uninorm/test-u8-nfkc.c: Likewise.
35475         * tests/uninorm/test-u8-nfkd.c: Likewise.
35476         * tests/uninorm/test-u8-normcmp.c: Likewise.
35477         * tests/uninorm/test-u8-normcoll.c: Likewise.
35478         * tests/uninorm/test-u16-nfc.c: Likewise.
35479         * tests/uninorm/test-u16-nfd.c: Likewise.
35480         * tests/uninorm/test-u16-nfkc.c: Likewise.
35481         * tests/uninorm/test-u16-nfkd.c: Likewise.
35482         * tests/uninorm/test-u16-normcmp.c: Likewise.
35483         * tests/uninorm/test-u16-normcoll.c: Likewise.
35484         * tests/uninorm/test-u32-nfc.c: Likewise.
35485         * tests/uninorm/test-u32-nfd.c: Likewise.
35486         * tests/uninorm/test-u32-nfkc.c: Likewise.
35487         * tests/uninorm/test-u32-nfkd.c: Likewise.
35488         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35489         * tests/uninorm/test-u32-normcmp.c: Likewise.
35490         * tests/uninorm/test-u32-normcoll.c: Likewise.
35491         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35492         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35493         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35494         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35495         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35496         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35497         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35498         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35499         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35500         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35501         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35502         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35503         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35504         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35505         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35506         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35507         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35508         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35509         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35510         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35511         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35512         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35513         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35514         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35515         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35516         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35517         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35518         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35519         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35520         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35521         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35522         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35523         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35524         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35525         * tests/uniwidth/test-u8-width.c: Likewise.
35526         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35527         * tests/uniwidth/test-u16-width.c: Likewise.
35528         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35529         * tests/uniwidth/test-u32-width.c: Likewise.
35530         * tests/uniwidth/test-uc_width.c: Likewise.
35531         * tests/uniwidth/test-uc_width2.c: Likewise.
35532         * modules/acl-tests (Files): Add tests/macros.h.
35533         * modules/areadlink-tests (Files): Likewise.
35534         * modules/areadlink-with-size-tests (Files): Likewise.
35535         * modules/areadlinkat-tests (Files): Likewise.
35536         * modules/areadlinkat-with-size-tests (Files): Likewise.
35537         * modules/argmatch-tests (Files): Likewise.
35538         * modules/argv-iter-tests (Files): Likewise.
35539         * modules/array-list-tests (Files): Likewise.
35540         * modules/array-mergesort-tests (Files): Likewise.
35541         * modules/array-oset-tests (Files): Likewise.
35542         * modules/avltree-list-tests (Files): Likewise.
35543         * modules/avltree-oset-tests (Files): Likewise.
35544         * modules/avltreehash-list-tests (Files): Likewise.
35545         * modules/base64-tests (Files): Likewise.
35546         * modules/binary-io-tests (Files): Likewise.
35547         * modules/bitrotate-tests (Files): Likewise.
35548         * modules/btowc-tests (Files): Likewise.
35549         * modules/byteswap-tests (Files): Likewise.
35550         * modules/c-ctype-tests (Files): Likewise.
35551         * modules/c-stack-tests (Files): Likewise.
35552         * modules/c-strcase-tests (Files): Likewise.
35553         * modules/c-strcasestr-tests (Files): Likewise.
35554         * modules/c-strstr-tests (Files): Likewise.
35555         * modules/canonicalize-lgpl-tests (Files): Likewise.
35556         * modules/canonicalize-tests (Files): Likewise.
35557         * modules/carray-list-tests (Files): Likewise.
35558         * modules/ceilf-tests (Files): Likewise.
35559         * modules/ceill-tests (Files): Likewise.
35560         * modules/chown-tests (Files): Likewise.
35561         * modules/cloexec-tests (Files): Likewise.
35562         * modules/copy-file-tests (Files): Likewise.
35563         * modules/count-one-bits-tests (Files): Likewise.
35564         * modules/dprintf-posix-tests (Files): Likewise.
35565         * modules/dup2-tests (Files): Likewise.
35566         * modules/dup3-tests (Files): Likewise.
35567         * modules/duplocale-tests (Files): Likewise.
35568         * modules/fbufmode-tests (Files): Likewise.
35569         * modules/fchdir-tests (Files): Likewise.
35570         * modules/fcntl-safer-tests (Files): Likewise.
35571         * modules/fcntl-tests (Files): Likewise.
35572         * modules/fdopendir-tests (Files): Likewise.
35573         * modules/fdutimensat-tests (Files): Likewise.
35574         * modules/fflush-tests (Files): Likewise.
35575         * modules/filevercmp-tests (Files): Likewise.
35576         * modules/flock-tests (Files): Likewise.
35577         * modules/floorf-tests (Files): Likewise.
35578         * modules/floorl-tests (Files): Likewise.
35579         * modules/fnmatch-tests (Files): Likewise.
35580         * modules/fopen-safer-tests (Files): Likewise.
35581         * modules/fopen-tests (Files): Likewise.
35582         * modules/fpending-tests (Files): Likewise.
35583         * modules/fprintf-posix-tests (Files): Likewise.
35584         * modules/fpurge-tests (Files): Likewise.
35585         * modules/freadable-tests (Files): Likewise.
35586         * modules/freadahead-tests (Files): Likewise.
35587         * modules/freading-tests (Files): Likewise.
35588         * modules/freadptr-tests (Files): Likewise.
35589         * modules/freadseek-tests (Files): Likewise.
35590         * modules/freopen-tests (Files): Likewise.
35591         * modules/frexp-nolibm-tests (Files): Likewise.
35592         * modules/frexp-tests (Files): Likewise.
35593         * modules/frexpl-nolibm-tests (Files): Likewise.
35594         * modules/frexpl-tests (Files): Likewise.
35595         * modules/fseek-tests (Files): Likewise.
35596         * modules/fseeko-tests (Files): Likewise.
35597         * modules/fstrcmp-tests (Files): Likewise.
35598         * modules/fsync-tests (Files): Likewise.
35599         * modules/ftell-tests (Files): Likewise.
35600         * modules/ftello-tests (Files): Likewise.
35601         * modules/func-tests (Files): Likewise.
35602         * modules/futimens-tests (Files): Likewise.
35603         * modules/fwritable-tests (Files): Likewise.
35604         * modules/fwriting-tests (Files): Likewise.
35605         * modules/getcwd-tests (Files): Likewise.
35606         * modules/getdate-tests (Files): Likewise.
35607         * modules/getdelim-tests (Files): Likewise.
35608         * modules/getdtablesize-tests (Files): Likewise.
35609         * modules/getgroups-tests (Files): Likewise.
35610         * modules/getline-tests (Files): Likewise.
35611         * modules/getndelim2-tests (Files): Likewise.
35612         * modules/glob-tests (Files): Likewise.
35613         * modules/hash-tests (Files): Likewise.
35614         * modules/i-ring-tests (Files): Likewise.
35615         * modules/iconv-tests (Files): Likewise.
35616         * modules/iconv_open-utf-tests (Files): Likewise.
35617         * modules/idpriv-drop-tests (Files): Likewise.
35618         * modules/idpriv-droptemp-tests (Files): Likewise.
35619         * modules/inet_ntop-tests (Files): Likewise.
35620         * modules/inet_pton-tests (Files): Likewise.
35621         * modules/isblank-tests (Files): Likewise.
35622         * modules/isfinite-tests (Files): Likewise.
35623         * modules/isinf-tests (Files): Likewise.
35624         * modules/isnan-tests (Files): Likewise.
35625         * modules/isnand-nolibm-tests (Files): Likewise.
35626         * modules/isnand-tests (Files): Likewise.
35627         * modules/isnanf-nolibm-tests (Files): Likewise.
35628         * modules/isnanf-tests (Files): Likewise.
35629         * modules/isnanl-nolibm-tests (Files): Likewise.
35630         * modules/isnanl-tests (Files): Likewise.
35631         * modules/lchown-tests (Files): Likewise.
35632         * modules/ldexpl-tests (Files): Likewise.
35633         * modules/link-tests (Files): Likewise.
35634         * modules/linkat-tests (Files): Likewise.
35635         * modules/linked-list-tests (Files): Likewise.
35636         * modules/linkedhash-list-tests (Files): Likewise.
35637         * modules/localename-tests (Files): Likewise.
35638         * modules/lseek-tests (Files): Likewise.
35639         * modules/lstat-tests (Files): Likewise.
35640         * modules/mbmemcasecmp-tests (Files): Likewise.
35641         * modules/mbmemcasecoll-tests (Files): Likewise.
35642         * modules/mbrtowc-tests (Files): Likewise.
35643         * modules/mbscasecmp-tests (Files): Likewise.
35644         * modules/mbscasestr-tests (Files): Likewise.
35645         * modules/mbschr-tests (Files): Likewise.
35646         * modules/mbscspn-tests (Files): Likewise.
35647         * modules/mbsinit-tests (Files): Likewise.
35648         * modules/mbsncasecmp-tests (Files): Likewise.
35649         * modules/mbsnrtowcs-tests (Files): Likewise.
35650         * modules/mbspbrk-tests (Files): Likewise.
35651         * modules/mbspcasecmp-tests (Files): Likewise.
35652         * modules/mbsrchr-tests (Files): Likewise.
35653         * modules/mbsrtowcs-tests (Files): Likewise.
35654         * modules/mbsspn-tests (Files): Likewise.
35655         * modules/mbsstr-tests (Files): Likewise.
35656         * modules/memchr-tests (Files): Likewise.
35657         * modules/memchr2-tests (Files): Likewise.
35658         * modules/memcmp-tests (Files): Likewise.
35659         * modules/memmem-tests (Files): Likewise.
35660         * modules/memrchr-tests (Files): Likewise.
35661         * modules/mkdir-tests (Files): Likewise.
35662         * modules/mkfifo-tests (Files): Likewise.
35663         * modules/mkfifoat-tests (Files): Likewise.
35664         * modules/mknod-tests (Files): Likewise.
35665         * modules/nanosleep-tests (Files): Likewise.
35666         * modules/nl_langinfo-tests (Files): Likewise.
35667         * modules/obstack-printf-tests (Files): Likewise.
35668         * modules/open-tests (Files): Likewise.
35669         * modules/openat-tests (Files): Likewise.
35670         * modules/pipe-filter-gi-tests (Files): Likewise.
35671         * modules/pipe-filter-ii-tests (Files): Likewise.
35672         * modules/pipe2-tests (Files): Likewise.
35673         * modules/popen-safer-tests (Files): Likewise.
35674         * modules/popen-tests (Files): Likewise.
35675         * modules/posixtm-tests (Files): Likewise.
35676         * modules/pread-tests (Files): Likewise.
35677         * modules/printf-frexp-tests (Files): Likewise.
35678         * modules/printf-frexpl-tests (Files): Likewise.
35679         * modules/printf-posix-tests (Files): Likewise.
35680         * modules/priv-set-tests (Files): Likewise.
35681         * modules/quotearg-tests (Files): Likewise.
35682         * modules/random_r-tests (Files): Likewise.
35683         * modules/rawmemchr-tests (Files): Likewise.
35684         * modules/rbtree-list-tests (Files): Likewise.
35685         * modules/rbtree-oset-tests (Files): Likewise.
35686         * modules/rbtreehash-list-tests (Files): Likewise.
35687         * modules/readlink-tests (Files): Likewise.
35688         * modules/remove-tests (Files): Likewise.
35689         * modules/rename-tests (Files): Likewise.
35690         * modules/renameat-tests (Files): Likewise.
35691         * modules/rmdir-tests (Files): Likewise.
35692         * modules/round-tests (Files): Likewise.
35693         * modules/roundf-tests (Files): Likewise.
35694         * modules/roundl-tests (Files): Likewise.
35695         * modules/safe-alloc-tests (Files): Likewise.
35696         * modules/setenv-tests (Files): Likewise.
35697         * modules/sigaction-tests (Files): Likewise.
35698         * modules/signbit-tests (Files): Likewise.
35699         * modules/sleep-tests (Files): Likewise.
35700         * modules/snprintf-posix-tests (Files): Likewise.
35701         * modules/snprintf-tests (Files): Likewise.
35702         * modules/sprintf-posix-tests (Files): Likewise.
35703         * modules/stat-tests (Files): Likewise.
35704         * modules/stat-time-tests (Files): Likewise.
35705         * modules/strcasestr-tests (Files): Likewise.
35706         * modules/strchrnul-tests (Files): Likewise.
35707         * modules/strerror-tests (Files): Likewise.
35708         * modules/striconv-tests (Files): Likewise.
35709         * modules/striconveh-tests (Files): Likewise.
35710         * modules/striconveha-tests (Files): Likewise.
35711         * modules/strsignal-tests (Files): Likewise.
35712         * modules/strstr-tests (Files): Likewise.
35713         * modules/strtod-tests (Files): Likewise.
35714         * modules/strverscmp-tests (Files): Likewise.
35715         * modules/symlink-tests (Files): Likewise.
35716         * modules/symlinkat-tests (Files): Likewise.
35717         * modules/trunc-tests (Files): Likewise.
35718         * modules/truncf-tests (Files): Likewise.
35719         * modules/truncl-tests (Files): Likewise.
35720         * modules/uname-tests (Files): Likewise.
35721         * modules/unicase/cased-tests (Files): Likewise.
35722         * modules/unicase/ignorable-tests (Files): Likewise.
35723         * modules/unicase/locale-language-tests (Files): Likewise.
35724         * modules/unicase/tolower-tests (Files): Likewise.
35725         * modules/unicase/totitle-tests (Files): Likewise.
35726         * modules/unicase/toupper-tests (Files): Likewise.
35727         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35728         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35729         * modules/unicase/u8-casefold-tests (Files): Likewise.
35730         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35731         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35732         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35733         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35734         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35735         * modules/unicase/u8-tolower-tests (Files): Likewise.
35736         * modules/unicase/u8-totitle-tests (Files): Likewise.
35737         * modules/unicase/u8-toupper-tests (Files): Likewise.
35738         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35739         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35740         * modules/unicase/u16-casefold-tests (Files): Likewise.
35741         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35742         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35743         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35744         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35745         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35746         * modules/unicase/u16-tolower-tests (Files): Likewise.
35747         * modules/unicase/u16-totitle-tests (Files): Likewise.
35748         * modules/unicase/u16-toupper-tests (Files): Likewise.
35749         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35750         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35751         * modules/unicase/u32-casefold-tests (Files): Likewise.
35752         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35753         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35754         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35755         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35756         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35757         * modules/unicase/u32-tolower-tests (Files): Likewise.
35758         * modules/unicase/u32-totitle-tests (Files): Likewise.
35759         * modules/unicase/u32-toupper-tests (Files): Likewise.
35760         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35761         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35762         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35763         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35764         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35765         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35766         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35767         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35768         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35769         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35770         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35771         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35772         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35773         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35774         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35775         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35776         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35777         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35778         * modules/unictype/block-list-tests (Files): Likewise.
35779         * modules/unictype/block-of-tests (Files): Likewise.
35780         * modules/unictype/block-test-tests (Files): Likewise.
35781         * modules/unictype/category-C-tests (Files): Likewise.
35782         * modules/unictype/category-Cc-tests (Files): Likewise.
35783         * modules/unictype/category-Cf-tests (Files): Likewise.
35784         * modules/unictype/category-Cn-tests (Files): Likewise.
35785         * modules/unictype/category-Co-tests (Files): Likewise.
35786         * modules/unictype/category-Cs-tests (Files): Likewise.
35787         * modules/unictype/category-L-tests (Files): Likewise.
35788         * modules/unictype/category-Ll-tests (Files): Likewise.
35789         * modules/unictype/category-Lm-tests (Files): Likewise.
35790         * modules/unictype/category-Lo-tests (Files): Likewise.
35791         * modules/unictype/category-Lt-tests (Files): Likewise.
35792         * modules/unictype/category-Lu-tests (Files): Likewise.
35793         * modules/unictype/category-M-tests (Files): Likewise.
35794         * modules/unictype/category-Mc-tests (Files): Likewise.
35795         * modules/unictype/category-Me-tests (Files): Likewise.
35796         * modules/unictype/category-Mn-tests (Files): Likewise.
35797         * modules/unictype/category-N-tests (Files): Likewise.
35798         * modules/unictype/category-Nd-tests (Files): Likewise.
35799         * modules/unictype/category-Nl-tests (Files): Likewise.
35800         * modules/unictype/category-No-tests (Files): Likewise.
35801         * modules/unictype/category-P-tests (Files): Likewise.
35802         * modules/unictype/category-Pc-tests (Files): Likewise.
35803         * modules/unictype/category-Pd-tests (Files): Likewise.
35804         * modules/unictype/category-Pe-tests (Files): Likewise.
35805         * modules/unictype/category-Pf-tests (Files): Likewise.
35806         * modules/unictype/category-Pi-tests (Files): Likewise.
35807         * modules/unictype/category-Po-tests (Files): Likewise.
35808         * modules/unictype/category-Ps-tests (Files): Likewise.
35809         * modules/unictype/category-S-tests (Files): Likewise.
35810         * modules/unictype/category-Sc-tests (Files): Likewise.
35811         * modules/unictype/category-Sk-tests (Files): Likewise.
35812         * modules/unictype/category-Sm-tests (Files): Likewise.
35813         * modules/unictype/category-So-tests (Files): Likewise.
35814         * modules/unictype/category-Z-tests (Files): Likewise.
35815         * modules/unictype/category-Zl-tests (Files): Likewise.
35816         * modules/unictype/category-Zp-tests (Files): Likewise.
35817         * modules/unictype/category-Zs-tests (Files): Likewise.
35818         * modules/unictype/category-and-not-tests (Files): Likewise.
35819         * modules/unictype/category-and-tests (Files): Likewise.
35820         * modules/unictype/category-byname-tests (Files): Likewise.
35821         * modules/unictype/category-name-tests (Files): Likewise.
35822         * modules/unictype/category-none-tests (Files): Likewise.
35823         * modules/unictype/category-of-tests (Files): Likewise.
35824         * modules/unictype/category-or-tests (Files): Likewise.
35825         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35826         * modules/unictype/combining-class-tests (Files): Likewise.
35827         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35828         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35829         * modules/unictype/ctype-blank-tests (Files): Likewise.
35830         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35831         * modules/unictype/ctype-digit-tests (Files): Likewise.
35832         * modules/unictype/ctype-graph-tests (Files): Likewise.
35833         * modules/unictype/ctype-lower-tests (Files): Likewise.
35834         * modules/unictype/ctype-print-tests (Files): Likewise.
35835         * modules/unictype/ctype-punct-tests (Files): Likewise.
35836         * modules/unictype/ctype-space-tests (Files): Likewise.
35837         * modules/unictype/ctype-upper-tests (Files): Likewise.
35838         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35839         * modules/unictype/decimal-digit-tests (Files): Likewise.
35840         * modules/unictype/digit-tests (Files): Likewise.
35841         * modules/unictype/mirror-tests (Files): Likewise.
35842         * modules/unictype/numeric-tests (Files): Likewise.
35843         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35844         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35845         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35846         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35847         Likewise.
35848         * modules/unictype/property-bidi-block-separator-tests (Files):
35849         Likewise.
35850         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35851         Likewise.
35852         * modules/unictype/property-bidi-common-separator-tests (Files):
35853         Likewise.
35854         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35855         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35856         Likewise.
35857         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35858         Likewise.
35859         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35860         Likewise.
35861         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35862         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35863         Likewise.
35864         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35865         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35866         Likewise.
35867         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35868         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35869         * modules/unictype/property-bidi-segment-separator-tests (Files):
35870         Likewise.
35871         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35872         * modules/unictype/property-byname-tests (Files): Likewise.
35873         * modules/unictype/property-combining-tests (Files): Likewise.
35874         * modules/unictype/property-composite-tests (Files): Likewise.
35875         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35876         * modules/unictype/property-dash-tests (Files): Likewise.
35877         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35878         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35879         Likewise.
35880         * modules/unictype/property-deprecated-tests (Files): Likewise.
35881         * modules/unictype/property-diacritic-tests (Files): Likewise.
35882         * modules/unictype/property-extender-tests (Files): Likewise.
35883         * modules/unictype/property-format-control-tests (Files): Likewise.
35884         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35885         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35886         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35887         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35888         * modules/unictype/property-hyphen-tests (Files): Likewise.
35889         * modules/unictype/property-id-continue-tests (Files): Likewise.
35890         * modules/unictype/property-id-start-tests (Files): Likewise.
35891         * modules/unictype/property-ideographic-tests (Files): Likewise.
35892         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35893         * modules/unictype/property-ids-trinary-operator-tests (Files):
35894         Likewise.
35895         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35896         * modules/unictype/property-iso-control-tests (Files): Likewise.
35897         * modules/unictype/property-join-control-tests (Files): Likewise.
35898         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35899         * modules/unictype/property-line-separator-tests (Files): Likewise.
35900         * modules/unictype/property-logical-order-exception-tests (Files):
35901         Likewise.
35902         * modules/unictype/property-lowercase-tests (Files): Likewise.
35903         * modules/unictype/property-math-tests (Files): Likewise.
35904         * modules/unictype/property-non-break-tests (Files): Likewise.
35905         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35906         * modules/unictype/property-numeric-tests (Files): Likewise.
35907         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35908         * modules/unictype/property-other-default-ignorable-code-point-tests
35909         (Files): Likewise.
35910         * modules/unictype/property-other-grapheme-extend-tests (Files):
35911         Likewise.
35912         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35913         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35914         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35915         * modules/unictype/property-other-math-tests (Files): Likewise.
35916         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35917         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35918         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35919         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35920         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35921         * modules/unictype/property-private-use-tests (Files): Likewise.
35922         * modules/unictype/property-punctuation-tests (Files): Likewise.
35923         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35924         * modules/unictype/property-radical-tests (Files): Likewise.
35925         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35926         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35927         * modules/unictype/property-space-tests (Files): Likewise.
35928         * modules/unictype/property-terminal-punctuation-tests (Files):
35929         Likewise.
35930         * modules/unictype/property-test-tests (Files): Likewise.
35931         * modules/unictype/property-titlecase-tests (Files): Likewise.
35932         * modules/unictype/property-unassigned-code-value-tests (Files):
35933         Likewise.
35934         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35935         * modules/unictype/property-uppercase-tests (Files): Likewise.
35936         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35937         * modules/unictype/property-white-space-tests (Files): Likewise.
35938         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35939         * modules/unictype/property-xid-start-tests (Files): Likewise.
35940         * modules/unictype/property-zero-width-tests (Files): Likewise.
35941         * modules/unictype/scripts-tests (Files): Likewise.
35942         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35943         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35944         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35945         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35946         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35947         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35948         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35949         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35950         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35951         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35952         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35953         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35954         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35955         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35956         * modules/uninorm/composition-tests (Files): Likewise.
35957         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35958         * modules/uninorm/decomposition-tests (Files): Likewise.
35959         * modules/uninorm/filter-tests (Files): Likewise.
35960         * modules/uninorm/nfc-tests (Files): Likewise.
35961         * modules/uninorm/nfd-tests (Files): Likewise.
35962         * modules/uninorm/nfkc-tests (Files): Likewise.
35963         * modules/uninorm/nfkd-tests (Files): Likewise.
35964         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35965         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35966         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35967         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35968         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35969         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35970         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35971         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35972         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35973         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35974         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35975         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35976         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35977         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35978         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35979         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35980         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35981         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35982         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35983         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35984         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35985         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35986         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35987         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35988         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35989         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35990         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35991         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35992         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35993         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35994         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35995         * modules/uniwidth/u8-width-tests (Files): Likewise.
35996         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35997         * modules/uniwidth/u16-width-tests (Files): Likewise.
35998         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35999         * modules/uniwidth/u32-width-tests (Files): Likewise.
36000         * modules/uniwidth/width-tests (Files): Likewise.
36001         * modules/unlink-tests (Files): Likewise.
36002         * modules/unsetenv-tests (Files): Likewise.
36003         * modules/usleep-tests (Files): Likewise.
36004         * modules/utimens-tests (Files): Likewise.
36005         * modules/utimensat-tests (Files): Likewise.
36006         * modules/vasnprintf-posix-tests (Files): Likewise.
36007         * modules/vasnprintf-tests (Files): Likewise.
36008         * modules/vasprintf-posix-tests (Files): Likewise.
36009         * modules/vasprintf-tests (Files): Likewise.
36010         * modules/vdprintf-posix-tests (Files): Likewise.
36011         * modules/vfprintf-posix-tests (Files): Likewise.
36012         * modules/vprintf-posix-tests (Files): Likewise.
36013         * modules/vsnprintf-posix-tests (Files): Likewise.
36014         * modules/vsnprintf-tests (Files): Likewise.
36015         * modules/vsprintf-posix-tests (Files): Likewise.
36016         * modules/wcrtomb-tests (Files): Likewise.
36017         * modules/wcsnrtombs-tests (Files): Likewise.
36018         * modules/wcsrtombs-tests (Files): Likewise.
36019         * modules/wctype-tests (Files): Likewise.
36020         * modules/wcwidth-tests (Files): Likewise.
36021         * modules/xmemdup0-tests (Files): Likewise.
36022         * modules/xprintf-posix-tests (Files): Likewise.
36023         * modules/xvasprintf-tests (Files): Likewise.
36024
36025 2009-12-24  Eric Blake  <ebb9@byu.net>
36026
36027         test-nanosleep: fix typo
36028         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36029         patch.
36030         Reported by Bruno Haible.
36031
36032 2009-12-24  Bruno Haible  <bruno@clisp.org>
36033
36034         Reduce namespace pollution on glibc systems.
36035         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36036         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36037         systems.
36038         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36039         <getopt.h> on glibc systems.
36040         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36041         systems.
36042         * lib/fcntl.c: Include <unistd.h> here instead.
36043
36044 2009-12-24  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36047
36048 2009-12-24  Eric Blake  <ebb9@byu.net>
36049
36050         tests: add signature checks
36051         * tests/signature.h (SIGNATURE_CHECK): New file.
36052         * modules/atexit-tests (Files): Use it.
36053         * modules/btowc-tests (Files): Likewise.
36054         * modules/canonicalize-lgpl-tests (Files): Likewise.
36055         * modules/ceilf-tests (Files): Likewise.
36056         * modules/ceill-tests (Files): Likewise.
36057         * modules/chown-tests (Files): Likewise.
36058         * modules/dprintf-posix-tests (Files): Likewise.
36059         * modules/dup2-tests (Files): Likewise.
36060         * modules/dup3-tests (Files): Likewise.
36061         * modules/duplocale-tests (Files): Likewise.
36062         * modules/fchdir-tests (Files): Likewise.
36063         * modules/fcntl-tests (Files): Likewise.
36064         * modules/fdopendir-tests (Files): Likewise.
36065         * modules/fflush-tests (Files): Likewise.
36066         * modules/flock-tests (Files): Likewise.
36067         * modules/floorf-tests (Files): Likewise.
36068         * modules/floorl-tests (Files): Likewise.
36069         * modules/fnmatch-tests (Files): Likewise.
36070         * modules/fopen-tests (Files): Likewise.
36071         * modules/fprintf-posix-tests (Files): Likewise.
36072         * modules/freopen-tests (Files): Likewise.
36073         * modules/frexp-nolibm-tests (Files): Likewise.
36074         * modules/frexp-tests (Files): Likewise.
36075         * modules/frexpl-nolibm-tests (Files): Likewise.
36076         * modules/frexpl-tests (Files): Likewise.
36077         * modules/fseek-tests (Files): Likewise.
36078         * modules/fseeko-tests (Files): Likewise.
36079         * modules/fsync-tests (Files): Likewise.
36080         * modules/ftell-tests (Files): Likewise.
36081         * modules/ftello-tests (Files): Likewise.
36082         * modules/futimens-tests (Files): Likewise.
36083         * modules/getaddrinfo-tests (Files): Likewise.
36084         * modules/getcwd-tests (Files): Likewise.
36085         * modules/getdelim-tests (Files): Likewise.
36086         * modules/getdtablesize-tests (Files): Likewise.
36087         * modules/getgroups-tests (Files): Likewise.
36088         * modules/gethostname-tests (Files): Likewise.
36089         * modules/getline-tests (Files): Likewise.
36090         * modules/getopt-posix-tests (Files): Likewise.
36091         * modules/gettimeofday-tests (Files): Likewise.
36092         * modules/glob-tests (Files): Likewise.
36093         * modules/iconv-tests (Files): Likewise.
36094         * modules/inet_ntop-tests (Files): Likewise.
36095         * modules/inet_pton-tests (Files): Likewise.
36096         * modules/isblank-tests (Files): Likewise.
36097         * modules/lchown-tests (Files): Likewise.
36098         * modules/ldexpl-tests (Files): Likewise.
36099         * modules/link-tests (Files): Likewise.
36100         * modules/linkat-tests (Files): Likewise.
36101         * modules/lseek-tests (Files): Likewise.
36102         * modules/lstat-tests (Files): Likewise.
36103         * modules/mbrtowc-tests (Files): Likewise.
36104         * modules/mbsinit-tests (Files): Likewise.
36105         * modules/mbsnrtowcs-tests (Files): Likewise.
36106         * modules/mbsrtowcs-tests (Files): Likewise.
36107         * modules/memchr-tests (Files): Likewise.
36108         * modules/memcmp-tests (Files): Likewise.
36109         * modules/memmem-tests (Files): Likewise.
36110         * modules/memrchr-tests (Files): Likewise.
36111         * modules/mkdir-tests (Files): Likewise.
36112         * modules/mkfifo-tests (Files): Likewise.
36113         * modules/mkfifoat-tests (Files): Likewise.
36114         * modules/mknod-tests (Files): Likewise.
36115         * modules/nanosleep-tests (Files): Likewise.
36116         * modules/nl_langinfo-tests (Files): Likewise.
36117         * modules/obstack-printf-tests (Files): Likewise.
36118         * modules/open-tests (Files): Likewise.
36119         * modules/openat-tests (Files): Likewise.
36120         * modules/perror-tests (Files): Likewise.
36121         * modules/pipe2-tests (Files): Likewise.
36122         * modules/poll-tests (Files): Likewise.
36123         * modules/popen-tests (Files): Likewise.
36124         * modules/posix_spawn-tests (Files): Likewise.
36125         * modules/posix_spawnp-tests (Files): Likewise.
36126         * modules/pread-tests (Files): Likewise.
36127         * modules/printf-posix-tests (Files): Likewise.
36128         * modules/pty-tests (Files): Likewise.
36129         * modules/random_r-tests (Files): Likewise.
36130         * modules/rawmemchr-tests (Files): Likewise.
36131         * modules/readlink-tests (Files): Likewise.
36132         * modules/remove-tests (Files): Likewise.
36133         * modules/rename-tests (Files): Likewise.
36134         * modules/renameat-tests (Files): Likewise.
36135         * modules/rmdir-tests (Files): Likewise.
36136         * modules/round-tests (Files): Likewise.
36137         * modules/roundf-tests (Files): Likewise.
36138         * modules/roundl-tests (Files): Likewise.
36139         * modules/select-tests (Files): Likewise.
36140         * modules/setenv-tests (Files): Likewise.
36141         * modules/sigaction-tests (Files): Likewise.
36142         * modules/sleep-tests (Files): Likewise.
36143         * modules/snprintf-posix-tests (Files): Likewise.
36144         * modules/snprintf-tests (Files): Likewise.
36145         * modules/sprintf-posix-tests (Files): Likewise.
36146         * modules/stat-tests (Files): Likewise.
36147         * modules/strcasestr-tests (Files): Likewise.
36148         * modules/strchrnul-tests (Files): Likewise.
36149         * modules/strerror-tests (Files): Likewise.
36150         * modules/strsignal-tests (Files): Likewise.
36151         * modules/strstr-tests (Files): Likewise.
36152         * modules/strtod-tests (Files): Likewise.
36153         * modules/strverscmp-tests (Files): Likewise.
36154         * modules/symlink-tests (Files): Likewise.
36155         * modules/symlinkat-tests (Files): Likewise.
36156         * modules/times-tests (Files): Likewise.
36157         * modules/trunc-tests (Files): Likewise.
36158         * modules/truncf-tests (Files): Likewise.
36159         * modules/truncl-tests (Files): Likewise.
36160         * modules/tsearch-tests (Files): Likewise.
36161         * modules/uname-tests (Files): Likewise.
36162         * modules/unlink-tests (Files): Likewise.
36163         * modules/unsetenv-tests (Files): Likewise.
36164         * modules/usleep-tests (Files): Likewise.
36165         * modules/utimensat-tests (Files): Likewise.
36166         * modules/vasprintf-tests (Files): Likewise.
36167         * modules/vdprintf-posix-tests (Files): Likewise.
36168         * modules/vfprintf-posix-tests (Files): Likewise.
36169         * modules/vprintf-posix-tests (Files): Likewise.
36170         * modules/vsnprintf-posix-tests (Files): Likewise.
36171         * modules/vsnprintf-tests (Files): Likewise.
36172         * modules/vsprintf-posix-tests (Files): Likewise.
36173         * modules/wcrtomb-tests (Files): Likewise.
36174         * modules/wcsnrtombs-tests (Files): Likewise.
36175         * modules/wcsrtombs-tests (Files): Likewise.
36176         * modules/wcwidth-tests (Files): Likewise.
36177         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36178         * tests/test-isinf.c (isinf): Likewise.
36179         * tests/test-isnan.c (isnan): Likewise.
36180         * tests/test-signbit.c (signbit): Likewise.
36181         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36182         declaration, either as macro or with correct signature.
36183         (select): Ensure function under test is declared with correct
36184         signature in correct header.
36185         * tests/test-atexit.c (atexit): Likewise.
36186         * tests/test-btowc.c (btowc): Likewise.
36187         * tests/test-canonicalize-lgpl.c (realpath)
36188         (canonicalize_file_name): Likewise.
36189         * tests/test-ceilf1.c (ceilf): Likewise.
36190         * tests/test-ceill.c (ceill): Likewise.
36191         * tests/test-chown.c (chown): Likewise.
36192         * tests/test-dprintf-posix.c (dprintf): Likewise.
36193         * tests/test-dup2.c (dup2): Likewise.
36194         * tests/test-dup3.c (dup3): Likewise.
36195         * tests/test-duplocale.c (duplocale): Likewise.
36196         * tests/test-fchdir.c (fchdir): Likewise.
36197         * tests/test-fchownat.c (fchownat): Likewise.
36198         * tests/test-fcntl.c (fcntl): Likewise.
36199         * tests/test-fdopendir.c (fdopendir): Likewise.
36200         * tests/test-fflush.c (fflush): Likewise.
36201         * tests/test-flock.c (flock): Likewise.
36202         * tests/test-floorf1.c (floorf): Likewise.
36203         * tests/test-floorl.c (floorl): Likewise.
36204         * tests/test-fnmatch.c (fnmatch): Likewise.
36205         * tests/test-fopen.c (fopen): Likewise.
36206         * tests/test-fprintf-posix.c (fprintf): Likewise.
36207         * tests/test-freopen.c (freopen): Likewise.
36208         * tests/test-frexp.c (frexp): Likewise.
36209         * tests/test-frexpl.c (frexpl): Likewise.
36210         * tests/test-fseek.c (fseek): Likewise.
36211         * tests/test-fseeko.c (fseeko): Likewise.
36212         * tests/test-fstatat.c (fstatat): Likewise.
36213         * tests/test-fsync.c (fsync): Likewise.
36214         * tests/test-ftell.c (ftell): Likewise.
36215         * tests/test-ftello.c (ftello): Likewise.
36216         * tests/test-futimens.c (futimens): Likewise.
36217         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36218         (gai_strerror): Likewise.
36219         * tests/test-getcwd.c (getcwd): Likewise.
36220         * tests/test-getdelim.c (getdelim): Likewise.
36221         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36222         * tests/test-getgroups.c (getgroups): Likewise.
36223         * tests/test-gethostname.c (gethostname): Likewise.
36224         * tests/test-getline.c (getline): Likewise.
36225         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36226         Likewise.
36227         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36228         * tests/test-glob.c (glob, globfree): Likewise.
36229         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36230         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36231         * tests/test-inet_pton.c (inet_pton): Likewise.
36232         * tests/test-isblank.c (isblank): Likewise.
36233         * tests/test-lchown.c (lchown): Likewise.
36234         * tests/test-ldexpl.c (ldexpl): Likewise.
36235         * tests/test-link.c (link): Likewise.
36236         * tests/test-linkat.c (linkat): Likewise.
36237         * tests/test-lseek.c (lseek): Likewise.
36238         * tests/test-lstat.c (lstat): Likewise.
36239         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36240         * tests/test-mbsinit.c (mbsinit): Likewise.
36241         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36242         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36243         * tests/test-memchr.c (memchr): Likewise.
36244         * tests/test-memcmp.c (memcmp): Likewise.
36245         * tests/test-memmem.c (memmem): Likewise.
36246         * tests/test-memrchr.c (memrchr): Likewise.
36247         * tests/test-mkdir.c (mkdir): Likewise.
36248         * tests/test-mkdirat.c (mkdirat): Likewise.
36249         * tests/test-mkfifo.c (mkfifo): Likewise.
36250         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36251         * tests/test-mknod.c (mknod): Likewise.
36252         * tests/test-nanosleep.c (nanosleep): Likewise.
36253         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36254         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36255         Likewise.
36256         * tests/test-open.c (open): Likewise.
36257         * tests/test-openat.c (openat): Likewise.
36258         * tests/test-perror.c (perror): Likewise.
36259         * tests/test-pipe2.c (pipe2): Likewise.
36260         * tests/test-poll.c (poll): Likewise.
36261         * tests/test-popen.c (popen, pclose): Likewise.
36262         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36263         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36264         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36265         (posix_spawn_file_actions_destroy)
36266         (posix_spawn_file_actions_addclose)
36267         (posix_spawn_file_actions_addopen)
36268         (posix_spawn_file_actions_adddup2): Likewise.
36269         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36270         * tests/test-pread.c (pread): Likewise.
36271         * tests/test-printf-posix.c (printf): Likewise.
36272         * tests/test-pty.c (openpty, forkpty): Likewise.
36273         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36274         (random_r): Likewise.
36275         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36276         * tests/test-readlink.c (readlink): Likewise.
36277         * tests/test-remove.c (remove): Likewise.
36278         * tests/test-rename.c (rename): Likewise.
36279         * tests/test-renameat.c (renameat): Likewise.
36280         * tests/test-rmdir.c (rmdir): Likewise.
36281         * tests/test-round1.c (round): Likewise.
36282         * tests/test-roundf1.c (roundf): Likewise.
36283         * tests/test-roundl.c (roundl): Likewise.
36284         * tests/test-setenv.c (setenv): Likewise.
36285         * tests/test-sigaction.c (sigaction): Likewise.
36286         * tests/test-sleep.c (sleep): Likewise.
36287         * tests/test-snprintf.c (snprintf): Likewise.
36288         * tests/test-sprintf-posix.c (sprintf): Likewise.
36289         * tests/test-stat.c (stat): Likewise.
36290         * tests/test-stpncpy.c (stpncpy): Likewise.
36291         * tests/test-strcasestr.c (strcasestr): Likewise.
36292         * tests/test-strchrnul.c (strchrnul): Likewise.
36293         * tests/test-strerror.c (strerror): Likewise.
36294         * tests/test-strsignal.c (strsignal): Likewise.
36295         * tests/test-strstr.c (strstr): Likewise.
36296         * tests/test-strtod.c (strtod): Likewise.
36297         * tests/test-strverscmp.c (strverscmp): Likewise.
36298         * tests/test-symlink.c (symlink): Likewise.
36299         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36300         * tests/test-times.c (times): Likewise.
36301         * tests/test-trunc1.c (trunc): Likewise.
36302         * tests/test-truncf1.c (truncf): Likewise.
36303         * tests/test-truncl.c (truncl): Likewise.
36304         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36305         Likewise.
36306         * tests/test-uname.c (uname): Likewise.
36307         * tests/test-unlink.c (unlink): Likewise.
36308         * tests/test-unlinkat.c (unlinkat): Likewise.
36309         * tests/test-unsetenv.c (unsetenv): Likewise.
36310         * tests/test-usleep.c (usleep): Likewise.
36311         * tests/test-utimensat.c (utimensat): Likewise.
36312         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36313         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36314         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36315         * tests/test-vprintf-posix.c (vprintf): Likewise.
36316         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36317         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36318         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36319         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36320         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36321         * tests/test-wcwidth.c (wcwidth): Likewise.
36322
36323         build: pull in conditional headers during GNULIB_POSIXCHECK
36324         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36325         definitions from any conditionally-included headers.
36326         * lib/stdlib.in.h (includes): Likewise.
36327         * lib/unistd.in.h (includes): Likewise.
36328
36329 2009-12-24  Bruno Haible  <bruno@clisp.org>
36330
36331         * tests/test-argv-iter.c: Include header file being tested immediately
36332         after config.h.
36333         * tests/test-base64.c: Likewise.
36334         * tests/test-flock.c: Likewise.
36335         * tests/test-fsync.c: Likewise.
36336         * tests/test-getdate.c: Likewise.
36337         * tests/test-getndelim2.c: Likewise.
36338         * tests/test-isfinite.c: Likewise.
36339         * tests/test-isinf.c: Likewise.
36340         * tests/test-strerror.c: Likewise.
36341         * tests/test-strsignal.c: Likewise.
36342
36343 2009-12-23  Eric Blake  <ebb9@byu.net>
36344
36345         unistd: work around cygwin bug
36346         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36347         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36348         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36349
36350 2009-12-23  Bruno Haible  <bruno@clisp.org>
36351
36352         localename: More tests.
36353         * tests/test-localename.c (SIZEOF): New macro.
36354         (categories): New variable.
36355         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36356         test_locale_name_default): Add test w.r.t. thread locale.
36357         (test_locale_name_thread): New function.
36358         (main): Invoke it.
36359
36360         localename: Make aware of thread locale.
36361         * lib/localename.h (gl_locale_name_thread): New declaration.
36362         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36363         behaviour with respect to thread locale.
36364         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36365         <langinfo.h>, glthread/lock.h.
36366         (SIZE_BITS): New macro.
36367         (string_hash): New function.
36368         (struct hash_node): New type.
36369         (HASH_TABLE_SIZE): New macro.
36370         (struniq_hash_table, struniq_lock): New variables.
36371         (struniq): New function.
36372         (gl_locale_name_thread): New function.
36373         (gl_locale_name): Invoke it.
36374         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36375         * modules/localename (Depends-on): Add lock.
36376         Reported by Mike Gran <spk121@yahoo.com>.
36377
36378 2009-12-23  Eric Blake  <ebb9@byu.net>
36379
36380         va-args: new module
36381         * modules/va-args: New file.
36382         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36383         * MODULES.html.sh (Core language properties): Mention it.
36384
36385         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36386         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36387         named alias for __attribute__((__unused__)).
36388         * lib/chown.c: Update client.
36389         * lib/fchmodat.c: Likewise.
36390         * lib/fts.c: Likewise.
36391         * lib/getdate.y: Likewise.
36392         * lib/getgroups.c: Likewise.
36393         * lib/getopt.c: Likewise.
36394         * lib/getugroups.c: Likewise.
36395         * lib/mkdir.c: Likewise.
36396         * lib/mkfifo.c: Likewise.
36397         * lib/mkfifoat.c: Likewise.
36398         * lib/mknod.c: Likewise.
36399         * lib/mknodat.c: Likewise.
36400         * lib/readlink.c: Likewise.
36401         * lib/se-context.in.h: Likewise.
36402         * lib/se-selinux.in.h: Likewise.
36403         * lib/sockets.c: Likewise.
36404         * lib/symlink.c: Likewise.
36405         * lib/symlinkat.c: Likewise.
36406         * lib/unicodeio.c: Likewise.
36407         * lib/unistr.h: Likewise.
36408         * tests/test-areadlink.c: Likewise.
36409         * tests/test-areadlinkat.c: Likewise.
36410         * tests/test-filenamecat.c: Likewise.
36411         * tests/test-fseeko.c: Likewise.
36412         * tests/test-ftello.c: Likewise.
36413         * tests/test-getdate.c: Likewise.
36414         * tests/test-getgroups.c: Likewise.
36415         * tests/test-gethostname.c: Likewise.
36416         * tests/test-quotearg.c: Likewise.
36417         * tests/test-version-etc.c: Likewise.
36418         * tests/test-xalloc-die.c: Likewise.
36419         * tests/test-xfprintf-posix.c: Likewise.
36420         * tests/test-xprintf-posix.c: Likewise.
36421         * tests/test-xvasprintf.c: Likewise.
36422
36423         tests: avoid compiler warnings
36424         * tests/test-fcntl.c (main): Delete unused parameters.
36425         * tests/test-freopen-safer.c (main): Likewise.
36426         * tests/test-xalloc-die.c (main): Mark unused parameters.
36427         * tests/test-fseeko.c (main): Likewise.
36428         * tests/test-ftello.c (main): Likewise.
36429         * tests/test-nanosleep.c (main): Avoid declaration warning.
36430         * tests/test-sleep.c (main): Likewise.
36431         * tests/test-unsetenv.c (main): Silence warning about string
36432         literal.
36433         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36434
36435 2009-12-23  Bruno Haible  <bruno@clisp.org>
36436
36437         * tests/test-localename.c (test_locale_name): New function, extracted
36438         from main. Also test mixed situations.
36439         (test_locale_name_posix, test_locale_name_environ,
36440         test_locale_name_default): New functions.
36441         (main): Invoke them all.
36442         * modules/localename-tests (configure.ac): Test for newlocale.
36443
36444 2009-12-23  Bruno Haible  <bruno@clisp.org>
36445
36446         unistd: Ensure getcwd gets declared before being overridden.
36447         * lib/unistd.in.h: Conditionally include <io.h>.
36448
36449 2009-12-22  Bruno Haible  <bruno@clisp.org>
36450
36451         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36452         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36453         (gl_WCHAR_H): Invoke it.
36454         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36455         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36456         Reported by Karl Berry <karl@freefriends.org>.
36457
36458 2009-12-22  Eric Blake  <ebb9@byu.net>
36459
36460         math, unistd: avoid redundant includes
36461         * lib/math.in.h (isnan): No need to re-include <math.h>.
36462         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36463
36464         getsubopt: work around cygwin bug
36465         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36466         avoid conflicting with system getsubopt.
36467         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36468         bug.
36469
36470         getopt: synchronize from glibc
36471         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36472         parameter order.  Adjust all callers.
36473         (_getopt_internal_r, main): Adjust quoting in error messages.
36474         Drop considerations for outdated POSIX 1003.2 error message.
36475         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36476         callers.
36477         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36478
36479         test-getopt: test stderr behavior
36480         * modules/getopt-posix-tests (Depends-on): Add dup2.
36481         * tests/test-getopt.c (ASSERT): Avoid stderr.
36482         (main): Move stderr to a temporary file.
36483         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36484         Instead, add parameter to inform caller if output occurred.
36485         (test_getopt): Adjust all existing tests to expect silence, and
36486         add new tests of leading ":".
36487         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36488         glibc shortcomings with leading "-:" or "+:" in optstring.
36489         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36490         Likewise.
36491         * doc/posix-functions/getopt.texi (getopt): Likewise.
36492
36493         test-getopt: enhance test
36494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36495         supports optind=0.
36496         * tests/test-getopt.c (OPTIND_MIN): Move...
36497         * tests/test-getopt.h (OPTIND_MIN): ...here.
36498         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36499         Require that optind=0 works, since modern BSD supports it in
36500         addition to optreset, and since coreutils expects it.
36501         (test_getopt_long_only): New test.
36502         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36503         glibc shortcomings with 'W;', and enforcement of optind=0.
36504         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36505         Likewise.
36506
36507 2009-12-21  Bruno Haible  <bruno@clisp.org>
36508
36509         localename: Improvements for MacOS X and Cygwin.
36510         * lib/localename.h (gl_locale_name_environ): New declaration.
36511         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36512         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36513         (gl_locale_name_posix): Invoke it.
36514         (gl_locale_name_default): Add comments. Use Windows native API also on
36515         Cygwin.
36516
36517 2009-12-21  Bruno Haible  <bruno@clisp.org>
36518
36519         Update list of Win32 locale ids.
36520         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36521         (LANG_SAMI): Renamed from LANG_SAAMI.
36522         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36523         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36524         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36525         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36526         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36527         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36528         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36529         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36530         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36531         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36532         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36533         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36534         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36535         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36536         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36537         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36538         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36539         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36540         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36541         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36542         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36543         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36544         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36545         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36546         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36547         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36548         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36549         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36550         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36551         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36552         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36553         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36554         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36555         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36556         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36557         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36558         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36559         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36560         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36561         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36562         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36563         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36564         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36565         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36566         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36567         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36568         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36569         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36570         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36571         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36572         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36573         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36574         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36575         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36576         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36577         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36578         Add more languages and countries for Sami, Sorbian. Add more countries
36579         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36580         for Pashto. Change country for Syriac, Tswana.
36581
36582 2009-12-21  Eric Blake  <ebb9@byu.net>
36583
36584         test-utimens: avoid spurious failure
36585         * tests/test-chown.h (nap): Factor...
36586         * tests/nap.h: ...into new file.
36587         * tests/test-lchown.h (nap): Avoid duplication.
36588         * tests/test-utimens-common.h (nap): Use shared implementation,
36589         necessary on file systems with 1-second resolution.
36590         * modules/chown-tests (Files): Include new file.
36591         * modules/fdutimensat-tests (Files): Likewise.
36592         * modules/futimens-tests (Files): Likewise.
36593         * modules/lchown-tests (Files): Likewise.
36594         * modules/openat-tests (Files): Likewise.
36595         * modules/utimens-tests (Files): Likewise.
36596         * modules/utimensat-tests (Files): Likewise.
36597
36598 2009-12-19  Eric Blake  <ebb9@byu.net>
36599
36600         futimens, utimensat: work around Linux bug
36601         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36602         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36603         * lib/utimensat.c (rpl_utimensat): Work around it.
36604         * lib/futimens.c (rpl_futimens): Adjust comment.
36605
36606         utimens: work around Linux ctime bug
36607         * lib/utimens.c (detect_ctime_bug): New helper function.
36608         (update_timespec): Differentiate between workaround needed for
36609         this bug vs. what is needed for systems that lack utimensat.
36610         (fdutimens, lutimens): Work around bug.
36611
36612         utimens: check for ctime update
36613         * tests/test-utimens-common.h (check_ctime): Define.
36614         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36615         * tests/test-futimens.h (test_futimens): Likewise.
36616         * tests/test-lutimens.h (test_lutimens): Likewise.
36617         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36618         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36619
36620 2009-12-19  Bruno Haible  <bruno@clisp.org>
36621
36622         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36623         * tests/test-dprintf-posix2.sh: New file.
36624         * tests/test-dprintf-posix2.c: New file.
36625         * modules/dprintf-posix-tests (Files): Add them.
36626         (configure.ac): Check for getrlimit and setrlimit.
36627         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36628
36629 2009-12-19  Bruno Haible  <bruno@clisp.org>
36630
36631         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36632         * tests/test-fprintf-posix3.sh: New file.
36633         * tests/test-fprintf-posix3.c: New file.
36634         * modules/fprintf-posix-tests (Files): Add them.
36635         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36636
36637 2009-12-19  Eric Blake  <ebb9@byu.net>
36638
36639         dirfd: fix prototype
36640         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36641         * lib/dirfd.c (dirfd): Likewise.
36642
36643         canonicalize: reduce memory usage
36644         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36645         allocation to size.
36646         Reported by Solar Designer <solar@openwall.com>.
36647
36648 2009-12-19  Bruno Haible  <bruno@clisp.org>
36649
36650         New module attribute 'Applicability'.
36651         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36652         * gnulib-tool: New option --extract-applicability.
36653         (func_usage): Document it.
36654         (sed_extract_prog): Recognize it.
36655         (func_get_applicability): New function.
36656         (func_import): Generalize handling of 'link-warning' module.
36657         * modules/link-warning (Applicability): New section.
36658         * modules/arg-nonnull (Applicability): New section.
36659         Repoted by Simon Josefsson <simon@josefsson.org>.
36660
36661 2009-12-19  Bruno Haible  <bruno@clisp.org>
36662
36663         fflush: tweak
36664         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36665         * lib/fseeko.c (rpl_fseeko): Likewise.
36666
36667 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36668
36669         * lib/gl_list.h: Fix typo in comment.
36670
36671 2009-12-16  Eric Blake  <ebb9@byu.net>
36672
36673         fcntl: use to simplify other modules
36674         * modules/cloexec (Depends-on): Add fcntl.
36675         * modules/fchdir (Depends-on): Likewise.
36676         * modules/fd-safer-flag (Depends-on): Likewise.
36677         * modules/unistd-safer (Depends-on): Likewise.
36678         * modules/dup3 (configure.ac): Set module indicator.
36679         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36680         missing.
36681         * lib/fchdir.c (_gl_register_dup): Fix comment.
36682         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36683         * lib/dup-safer.c (dup_safer): Likewise.
36684         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36685         * lib/dup3.c (dup3): Likewise.
36686         * tests/test-fchdir.c (main): Enhance test.
36687         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36688
36689         fcntl: port portions of fcntl to mingw
36690         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36691         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36692         replacement for mingw.
36693         * modules/fcntl (Description): Update.
36694         (Depends-on): Add dup2.
36695         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36696         * modules/fcntl-h (Makefile.am): Substitute it.
36697         * lib/fcntl.in.h (fcntl): Update declaration.
36698         (F_DUPFD, F_GETFD): New macros, when needed.
36699         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36700         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36701         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36702         we now guarantee.
36703
36704         fcntl: work around cygwin bug in F_DUPFD
36705         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36706         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36707         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36708         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36709         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36710
36711         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36712         * modules/fcntl (Files): List new files.
36713         (configure.ac): Run a test.
36714         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36715         * lib/fcntl.c (rpl_fcntl): Likewise.
36716         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36717         (gl_FCNTL_H): Always replace fcntl.h.
36718         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36719         * lib/fcntl.in.h (fcntl): Declare replacement.
36720         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36721         needed, plus a witness.
36722         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36723         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36724         * tests/test-fcntl.c: New file.
36725         * modules/fcntl-tests: Likewise.
36726
36727         binary-io: avoid potential compilation warning
36728         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36729         directives.
36730
36731         fflush: avoid compilation error on NetBSD
36732         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36733         between off_t and fpos_t, since the latter is sometimes a struct.
36734         * lib/fseeko.c (rpl_fseeko): Likewise.
36735         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36736
36737 2009-12-15  Eric Blake  <ebb9@byu.net>
36738
36739         fcntl-h, stdio, sys_ioctl: fix declarations
36740         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36741         function must not take arguments.
36742         * lib/sys_ioctl.in.h (ioctl): Likewise.
36743         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36744         (open): Add a link warning.
36745
36746 2009-12-15  Jim Meyering  <meyering@redhat.com>
36747
36748         areadlink, areadlink-with-size: relax license to LGPLv2+
36749         * modules/areadlink (License): Relax to LGPLv2+.
36750         * modules/areadlink-with-size (License): Likewise.
36751
36752 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36753             Bruno Haible  <bruno@clisp.org>
36754
36755         *printf: Fix memory leak.
36756         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36757         * lib/vfprintf.c (vfprintf): Likewise.
36758         * lib/dprintf.c (dprintf): Likewise.
36759         * lib/vdprintf.c (vdprintf): Likewise.
36760
36761 2009-12-14  Eric Blake  <ebb9@byu.net>
36762
36763         accept4: adjust module dependencies
36764         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36765
36766         utimens: one more try at avoiding compiler warning
36767         * lib/utimens.c (lutimens): Lower scope of result.
36768
36769 2009-12-13  Bruno Haible  <bruno@clisp.org>
36770
36771         Move the malloc checking from module 'list' to new module 'xlist'.
36772         * modules/xlist: New file.
36773         * lib/gl_xlist.h: New file.
36774         * lib/gl_xlist.c: New file.
36775         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36776         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36777         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36778         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36779         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36780         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36781         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36782         gl_sortedlist_nx_add): New declarations.
36783         (struct gl_list_implementation): Rename and change methods accordingly.
36784         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36785         (gl_list_nx_create): Renamed from gl_list_create.
36786         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36787         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36788         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36789         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36790         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36791         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36792         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36793         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36794         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36795         gl_list_create_empty.
36796         (gl_list_nx_create): Renamed from gl_list_create.
36797         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36798         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36799         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36800         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36801         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36802         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36803         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36804         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36805         * lib/gl_array_list.c: Don't include xalloc.h.
36806         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36807         NULL upon out-of-memory.
36808         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36809         out-of-memory.
36810         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36811         Change return type to 'int'.
36812         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36813         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36814         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36815         upon out-of-memory.
36816         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36817         upon out-of-memory.
36818         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36819         upon out-of-memory.
36820         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36821         upon out-of-memory.
36822         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36823         out-of-memory.
36824         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36825         Update.
36826         (gl_array_list_implementation): Update.
36827         * lib/gl_carray_list.c: Don't include xalloc.h.
36828         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36829         Return NULL upon out-of-memory.
36830         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36831         out-of-memory.
36832         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36833         Change return type to 'int'.
36834         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36835         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36836         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36837         upon out-of-memory.
36838         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36839         upon out-of-memory.
36840         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36841         out-of-memory.
36842         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36843         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36844         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36845         Update.
36846         (gl_carray_list_implementation): Update.
36847         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36848         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36849         gl_linked_create_empty. Return NULL upon out-of-memory.
36850         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36851         out-of-memory.
36852         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36853         Change return type to 'int'. Return -1 upon out-of-memory.
36854         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36855         out-of-memory.
36856         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36857         upon out-of-memory.
36858         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36859         upon out-of-memory.
36860         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36861         NULL upon out-of-memory.
36862         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36863         upon out-of-memory.
36864         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36865         out-of-memory.
36866         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36867         Update.
36868         * lib/gl_linked_list.c: Don't include xalloc.h.
36869         (gl_linked_list_implementation): Update.
36870         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36871         (add_to_bucket): Change return type to 'int'.
36872         (gl_linkedhash_list_implementation): Update.
36873         * lib/gl_anytree_list1.h (free_subtree): New function.
36874         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36875         gl_tree_create_empty. Return NULL upon out-of-memory.
36876         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36877         Change return type to 'int'. Return -1 upon out-of-memory.
36878         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36879         out-of-memory.
36880         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36881         (gl_tree_remove_node): New function, moved here from
36882         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36883         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36884         Update.
36885         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36886         malloc, not xmalloc. Return NULL upon out-of-memory.
36887         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36888         out-of-memory.
36889         (gl_tree_remove_node_from_tree): New function, extracted from
36890         gl_tree_remove_node.
36891         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36892         upon out-of-memory.
36893         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36894         out-of-memory.
36895         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36896         upon out-of-memory.
36897         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36898         upon out-of-memory.
36899         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36900         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36901         not xmalloc. Return NULL upon out-of-memory.
36902         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36903         out-of-memory.
36904         (gl_tree_remove_node_from_tree): New function, extracted from
36905         gl_tree_remove_node.
36906         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36907         upon out-of-memory.
36908         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36909         out-of-memory.
36910         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36911         upon out-of-memory.
36912         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36913         upon out-of-memory.
36914         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36915         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36916         gl_anytree_list1.h before gl_anyavltree_list2.h.
36917         (gl_avltree_list_implementation): Update.
36918         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36919         gl_anytree_list1.h before gl_anyavltree_list2.h.
36920         (gl_rbtree_list_implementation): Update.
36921         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36922         Change return type to 'int'. Return -1 upon out-of-memory. Use
36923         __builtin_expect.
36924         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36925         (gl_avltreehash_list_implementation): Update.
36926         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36927         (gl_rbtreehash_list_implementation): Update.
36928         * modules/array-list (Depends-on): Remove xalloc.
36929         * modules/carray-list (Depends-on): Likewise.
36930         * modules/linked-list (Depends-on): Likewise.
36931         * modules/linkedhash-list (Depends-on): Likewise.
36932         * modules/avltree-list (Depends-on): Likewise.
36933         * modules/rbtree-list (Depends-on): Likewise.
36934         * modules/avltreehash-list (Depends-on): Likewise.
36935         * modules/rbtreehash-list (Depends-on): Likewise.
36936
36937         * modules/xsublist: New file.
36938         * lib/gl_xsublist.h: New file.
36939         * lib/gl_xsublist.c: New file.
36940         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36941         (gl_sublist_nx_create): New declaration.
36942         * lib/gl_sublist.c: Don't include xalloc.h.
36943         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36944         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36945         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36946         Change return type to 'int'. Return -1 upon out-of-memory.
36947         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36948         upon out-of-memory.
36949         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36950         NULL upon out-of-memory.
36951         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36952         upon out-of-memory.
36953         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36954         NULL upon out-of-memory.
36955         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36956         NULL upon out-of-memory.
36957         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36958         upon out-of-memory.
36959         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36960         (gl_sublist_list_implementation): Update.
36961         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36962         upon out-of-memory.
36963         * modules/sublist (Depends-on): Remove xalloc.
36964
36965         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36966         * tests/test-carray_list.c: Likewise.
36967         * tests/test-linked_list.c: Likewise.
36968         * tests/test-linkedhash_list.c: Likewise.
36969         * tests/test-avltree_list.c: Likewise.
36970         * tests/test-rbtree_list.c: Likewise.
36971         * tests/test-avltreehash_list.c: Likewise.
36972         * tests/test-rbtreehash_list.c: Likewise.
36973         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36974         * modules/carray-list-tests (Makefile.am): Likewise.
36975         * modules/linked-list-tests (Makefile.am): Likewise.
36976         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36977         * modules/avltree-list-tests (Makefile.am): Likewise.
36978         * modules/rbtree-list-tests (Makefile.am): Likewise.
36979         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36980         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36981
36982         * NEWS: Mention the changes.
36983
36984         * lib/clean-temp.c: Include gl_xlist.h.
36985         * modules/clean-temp (Depends-on): Add xlist.
36986
36987         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36988         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36989
36990         * tests/test-array_oset.c: Include gl_xlist.h.
36991         * modules/array-oset-tests (Depends-on): Add xlist.
36992
36993         Reported by José E. Marchesi <jemarch@gnu.org>.
36994
36995 2009-12-13  Bruno Haible  <bruno@clisp.org>
36996
36997         Move the malloc checking from module 'oset' to new module 'xoset'.
36998         * modules/xoset: New file.
36999         * lib/gl_xoset.h: New file.
37000         * lib/gl_xoset.c: New file.
37001         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37002         declarations.
37003         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37004         (struct gl_oset_implementation): Rename and change methods accordingly.
37005         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37006         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37007         'int'. Mark as __warn_unused_result__.
37008         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37009         gl_oset_create_empty.
37010         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37011         'int'.
37012         * lib/gl_array_oset.c: Don't include xalloc.h.
37013         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37014         malloc, not xmalloc.
37015         (grow): Change return type to 'int'. Don't call xalloc_die.
37016         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37017         to 'int'.
37018         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37019         'int'.
37020         (gl_array_oset_implementation): Update.
37021         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37022         gl_tree_create_empty.
37023         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37024         'int'.
37025         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37026         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37027         xmalloc.
37028         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37029         not xmalloc.
37030         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37031         xmalloc.
37032         (gl_avltree_oset_implementation): Update.
37033         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37034         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37035         xmalloc.
37036         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37037         not xmalloc.
37038         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37039         xmalloc.
37040         (gl_rbtree_oset_implementation): Update.
37041         * modules/array-oset (Depends-on): Remove xalloc.
37042         * modules/avltree-oset (Depends-on): Likewise.
37043         * modules/rbtree-oset (Depends-on): Likewise.
37044         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37045         * tests/test-avltree_oset.c: Likewise.
37046         * tests/test-rbtree_oset.c: Likewise.
37047         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37048         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37049         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37050         * NEWS: Mention the change.
37051
37052 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37053
37054         maint.mk: allow a project to override release-prep commands
37055         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37056         commands into a new rule.
37057         (release-prep): New rule.
37058         (release-prep-hook): New overridable variable.
37059
37060 2009-12-13  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37063
37064 2009-12-13  Jim Meyering  <meyering@redhat.com>
37065
37066         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37067         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37068
37069 2009-12-12  Bruno Haible  <bruno@clisp.org>
37070
37071         duplocale: Tweak.
37072         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37073
37074 2009-12-12  Karl Berry  <karl@gnu.org>
37075
37076         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37077
37078 2009-12-12  Bruno Haible  <bruno@clisp.org>
37079
37080         * m4/po.m4: Undo incorrect untabification.
37081
37082 2009-12-12  Bruno Haible  <bruno@clisp.org>
37083
37084         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37085         * modules/c-strtod (Depends-on): Add locale.
37086         * modules/c-strtold (Depends-on): Likewise.
37087
37088 2009-12-12  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37091
37092 2009-12-11  Eric Blake  <ebb9@byu.net>
37093
37094         setenv: relax requirement in light of POSIX ruling
37095         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37096         not NULL.
37097         * tests/test-setenv.c (main): Relax test.
37098         * tests/test-unsetenv.c (main): Likewise.
37099         * doc/posix-functions/setenv.texi (setenv): Document this.
37100         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37101
37102 2009-12-11  Bruno Haible  <bruno@clisp.org>
37103
37104         New module 'fd-safer-flag'.
37105         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37106         * lib/dup-safer.c (dup_safer_flag): Remove function.
37107         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37108         * lib/fd-safer.c (fd_safer_flag): Remove function.
37109         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37110         * modules/cloexec (configure.ac): Drop indicator macro.
37111         * modules/fd-safer-flag: New file.
37112         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37113         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37114         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37115
37116 2009-12-11  Bruno Haible  <bruno@clisp.org>
37117
37118         Tests for module 'nl_langinfo'.
37119         * modules/nl_langinfo-tests: New file.
37120         * tests/test-nl_langinfo.sh: New file.
37121         * tests/test-nl_langinfo.c: New file.
37122
37123         New module 'nl_langinfo'.
37124         * lib/nl_langinfo.c: New file.
37125         * m4/nl_langinfo.m4: New file.
37126         * modules/nl_langinfo: New file.
37127         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37128
37129 2009-12-11  Bruno Haible  <bruno@clisp.org>
37130
37131         Tests for module 'langinfo'.
37132         * modules/langinfo-tests: New file.
37133         * tests/test-langinfo.c: New file.
37134
37135         New module 'langinfo'.
37136         * lib/langinfo.in.h: New file.
37137         * m4/langinfo_h.m4: New file.
37138         * modules/langinfo: New file.
37139         * doc/posix-headers/langinfo.texi: Mention the new module.
37140
37141 2009-12-11  Bruno Haible  <bruno@clisp.org>
37142
37143         * lib/config.charset: Untabify.
37144
37145 2009-12-11  Bruno Haible  <bruno@clisp.org>
37146
37147         * modules/unistd-safer (configure.ac): Drop indicator macro.
37148
37149 2009-12-11  Bruno Haible  <bruno@clisp.org>
37150
37151         Move pipe2-safer code to its own file.
37152         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37153         * lib/pipe-safer.c (pipe2_safer): Remove function.
37154         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37155         (Makefile.am): Add it to lib_SOURCES.
37156
37157 2009-12-10  Bruno Haible  <bruno@clisp.org>
37158
37159         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37160
37161 2009-12-10  Bruno Haible  <bruno@clisp.org>
37162
37163         Declare which arguments expect non-NULL values, for GCC and clang.
37164         * build-aux/arg-nonnull.h: New file.
37165         * modules/arg-nonnull: New file.
37166         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37167         (inet_ntop, inet_pton): Use it.
37168         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37169         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37170         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37171         (open, openat): Use it.
37172         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37173         (fnmatch): Use it.
37174         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37175         (getopt, getopt_long, getopt_long_only): Use it.
37176         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37177         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37178         Use it.
37179         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37180         (iconv_open): Use it.
37181         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37182         (strtoimax, strtoumax): Use it.
37183         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37184         (duplocale): Use it.
37185         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37186         (frexp, frexpl): Use it.
37187         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37188         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37189         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37190         (tsearch, tfind, tdelete, twalk): Use it.
37191         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37192         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37193         sigpending): Use it.
37194         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37195         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37196         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37197         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37198         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37199         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37200         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37201         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37202         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37203         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37204         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37205         Use it.
37206         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37207         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37208         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37209         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37210         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37211         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37212         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37213         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37214         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37215         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37216         strtoull, unsetenv): Use it.
37217         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37218         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37219         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37220         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37221         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37222         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37223         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37224         (strcasecmp, strncasecmp): Use it.
37225         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37226         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37227         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37228         rpl_setsockopt): Use it.
37229         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37230         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37231         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37232         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37233         (gettimeofday): Use it.
37234         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37235         (times): Use it.
37236         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37237         (uname): Use it.
37238         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37239         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37240         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37241         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37242         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37243         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37244         unlinkat, write): Use it.
37245         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37246         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37247         * lib/argv-iter.h: Include arg-nonnull.h.
37248         (_ATTRIBUTE_NONNULL_): Remove macro.
37249         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37250         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37251         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37252         optimization.
37253         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37254         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37255         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37256         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37257         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37258         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37259         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37260         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37261         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37262         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37263         * modules/dirent (Depends-on): Add arg-nonnull.
37264         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37265         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37266         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37267         * modules/fnmatch (Depends-on): Add arg-nonnull.
37268         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37269         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37270         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37271         * modules/glob (Depends-on): Add arg-nonnull.
37272         (Makefile.am): Insert arg-nonnull.h into glob.h.
37273         * modules/iconv_open (Depends-on): Add arg-nonnull.
37274         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37275         * modules/inttypes (Depends-on): Add arg-nonnull.
37276         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37277         * modules/locale (Depends-on): Add arg-nonnull.
37278         (Makefile.am): Insert arg-nonnull.h into locale.h.
37279         * modules/math (Depends-on): Add arg-nonnull.
37280         (Makefile.am): Insert arg-nonnull.h into math.h.
37281         * modules/netdb (Depends-on): Add arg-nonnull.
37282         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37283         * modules/search (Depends-on): Add arg-nonnull.
37284         (Makefile.am): Insert arg-nonnull.h into search.h.
37285         * modules/signal (Depends-on): Add arg-nonnull.
37286         (Makefile.am): Insert arg-nonnull.h into signal.h.
37287         * modules/spawn (Depends-on): Add arg-nonnull.
37288         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37289         * modules/stdio (Depends-on): Add arg-nonnull.
37290         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37291         * modules/stdlib (Depends-on): Add arg-nonnull.
37292         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37293         * modules/string (Depends-on): Add arg-nonnull.
37294         (Makefile.am): Insert arg-nonnull.h into string.h.
37295         * modules/strings (Depends-on): Add arg-nonnull.
37296         (Makefile.am): Insert arg-nonnull.h into strings.h.
37297         * modules/sys_socket (Depends-on): Add arg-nonnull.
37298         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37299         * modules/sys_stat (Depends-on): Add arg-nonnull.
37300         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37301         * modules/sys_time (Depends-on): Add arg-nonnull.
37302         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37303         * modules/sys_times (Depends-on): Add arg-nonnull.
37304         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37305         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37306         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37307         * modules/time (Depends-on): Add arg-nonnull.
37308         (Makefile.am): Insert arg-nonnull.h into time.h.
37309         * modules/unistd (Depends-on): Add arg-nonnull.
37310         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37311         * modules/wchar (Depends-on): Add arg-nonnull.
37312         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37313         * modules/argv-iter (Depends-on): Add arg-nonnull.
37314         * tests/test-canonicalize.c (null_ptr): New function.
37315         (main): Use it.
37316         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37317         (main): Use it.
37318         * tests/test-memmem.c (null_ptr): New function.
37319         (main): Use it.
37320         Reported by Jim Meyering.
37321
37322 2009-12-10  Bruno Haible  <bruno@clisp.org>
37323
37324         Use spaces for indentation, not tabs.
37325         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37326         * m4/*.m4: Untabify.
37327         * build-aux/*.h: Untabify.
37328         * tests/**/*.[hc]: Untabify.
37329         * README: New section "Indent with spaces, not TABs", based on
37330         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37331         * NEWS: Mention the change.
37332
37333 2009-12-10  Bruno Haible  <bruno@clisp.org>
37334
37335         pty test: Fix link error.
37336         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37337         test_pty_LDADD.
37338
37339 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37340
37341         * modules/pty: New file.
37342         * modules/pty-tests: New file.
37343         * m4/pty.m4: New file.
37344         * tests/test-pty.c: New file.
37345         * doc/glibc-headers/pty.texi: Modified.
37346         * doc/glibc-functions/forkpty.texi: Modified.
37347         * doc/glibc-functions/openpty.texi: Modified.
37348
37349 2009-12-10  Bruno Haible  <bruno@clisp.org>
37350
37351         Avoid syntax error in C++ mode.
37352         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37353
37354 2009-12-10  Bruno Haible  <bruno@clisp.org>
37355
37356         Use sed with option -e.
37357         * gnulib-tool (func_version, func_emit_copyright_notice,
37358         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37359         option -e to sed.
37360         * modules/link-warning (Makefile.am): Likewise.
37361
37362 2009-12-10  Jim Meyering  <meyering@redhat.com>
37363
37364         mgetgroups: do not write bytes beyond end of malloc'd buffer
37365         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37366         username, we call getgroups with a one-element-shorter buffer,
37367         but still told it the length was original, max_n_groups.
37368
37369 2009-12-09  Eric Blake  <ebb9@byu.net>
37370
37371         cloexec: relax license
37372         * modules/cloexec (Maintainer): Add myself.
37373         (License): Use LGPL, not GPL.
37374
37375         link-warning: optimize generation
37376         * modules/link-warning (Makefile.am): Reduce process usage.
37377
37378 2009-12-09  Bruno Haible  <bruno@clisp.org>
37379
37380         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37381         workaround was added on 2009-11-17.
37382
37383 2009-12-09  Jim Meyering  <meyering@redhat.com>
37384             Bruno Haible  <bruno@clisp.org>
37385
37386         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37387         * modules/link-warning (Makefile.am): Make the comment-removing sed
37388         command more robust in the face of bootstrap-prepended comment lines.
37389
37390 2009-12-09  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37393         most one group.
37394
37395 2009-12-09  Simon Josefsson <simon@josefsson.org>
37396             Bruno Haible  <bruno@clisp.org>
37397
37398         * build-aux/link-warning.h: Add copyright notice.
37399         * modules/link-warning (Makefile.am): Generate link-warning.h from
37400         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37401         * NEWS: Mention change in link-warning module.
37402         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37403         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37404         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37405         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37406         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37407         * modules/math (Makefile.am): Add dependency to math.h.
37408         * modules/search (Makefile.am): Add dependency to search.h.
37409         * modules/signal (Makefile.am): Add dependency to signal.h.
37410         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37411         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37412         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37413         * modules/string (Makefile.am): Add dependency to string.h.
37414         * modules/strings (Makefile.am): Add dependency to strings.h.
37415         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37416         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37417         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37418         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37419         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37420         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37421         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37422         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37423         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37424
37425 2009-12-09  Bruno Haible  <bruno@clisp.org>
37426
37427         fchdir: Optimize away rpl_fstat when possible.
37428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37429         REPLACE_OPEN_DIRECTORY.
37430         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37431
37432 2009-12-09  Bruno Haible  <bruno@clisp.org>
37433
37434         * lib/fchdir.c: Update comment.
37435
37436 2009-12-09  Bruno Haible  <bruno@clisp.org>
37437
37438         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37439
37440 2009-12-08  Eric Blake  <ebb9@byu.net>
37441
37442         fchdir: avoid memory leak on re-registration.
37443         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37444
37445 2009-12-08  Jim Meyering  <meyering@redhat.com>
37446
37447         init.sh: avoid Solaris 10 /bin/sh portability problem
37448         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37449         sourced script:
37450           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37451           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37452           bar
37453         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37454         and two tests used that idiom.
37455         * tests/init.sh: Update suggested usage comments.
37456         (path_prepend_): New function, to be used in place
37457         of the --src-path=DIR option.
37458         (setup_): Move PATH-prepending code into path_prepend_.
37459         * tests/test-pread.sh: Adapt to new usage.
37460         * tests/test-xalloc-die.sh: Likewise.
37461
37462 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37463
37464         * doc/gnulib.texi (Glibc pty.h): Add.
37465         * doc/glibc-functions/forkpty.texi: Add.
37466         * doc/glibc-functions/openpty.texi: Add.
37467         Suggested by Bruno Haible.
37468
37469 2009-12-08  Eric Blake  <ebb9@byu.net>
37470
37471         fchdir: fix logic bugs
37472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37473         * tests/test-fchdir.c (main): Enhance test.
37474         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37475         is in use.
37476
37477         dup2: fix logic bugs
37478         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37479         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37480         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37481         exists.
37482         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37483
37484 2009-12-07  Eric Blake  <ebb9@byu.net>
37485
37486         unlink: fix m4 detection
37487         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37488
37489         unistd-safer: add unit test
37490         * modules/unistd-safer-tests: New file.
37491         * tests/test-dup-safer.c: Likewise.
37492         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37493         * tests/test-dup2.c (setmode): Likewise.
37494         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37495
37496         cloexec: preserve text vs. binary across dup_cloexec
37497         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37498         mode.
37499         * modules/dup2-tests (Depends-on): Add binary-io.
37500         * modules/cloexec-tests (Depends-on): Likewise.
37501         * tests/test-dup2.c (setmode, is_mode): New helpers.
37502         (main): Add tests that translation mode is preserved.
37503         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37504         Reported by Bruno Haible.
37505
37506         mgetgroups: reduce duplicate listings
37507         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37508         resulting array.
37509         * tests/test-chown.h (test_chown): Simplify client.
37510         * tests/test-lchown.h (test_lchown): Likewise.
37511
37512 2009-12-06  Bruno Haible  <bruno@clisp.org>
37513
37514         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37515         value.
37516
37517 2009-12-06  Bruno Haible  <bruno@clisp.org>
37518
37519         * lib/progname.c: Include stdio.h, stdlib.h.
37520         (set_program_name): Reject a NULL argument.
37521
37522 2009-12-05  Eric Blake  <ebb9@byu.net>
37523
37524         pipe2-safer: new module
37525         * modules/pipe2-safer: New file.
37526         * lib/unistd-safer.h (pipe2_safer): New prototype.
37527         * lib/unistd--.h (pipe2): New wrapper.
37528         * lib/pipe-safer.c (pipe2_safer): New function.
37529         * modules/pipe (Depends-on): Add pipe2-safer.
37530         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37531
37532         stdlib-safer: preserve cloexec flag for mkostemp[s]
37533         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37534         fd_safer_flag.
37535
37536         unistd-safer: allow preservation of cloexec status via flag
37537         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37538         prototypes.
37539         * lib/dup-safer.c (dup_safer_flag): New function.
37540         * lib/fd-safer.c (fd_safer_flag): Likewise.
37541         * modules/cloexec (configure.ac): Set witness.
37542
37543         test-dup2: enhance test
37544         * modules/dup2-tests (Depends-on): Add cloexec.
37545         * tests/test-dup2.c (main): Enhance test.
37546
37547         cloexec: add dup_cloexec
37548         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37549         header and comments.
37550         * lib/cloexec.c (set_cloexec_flag): Add comments.
37551         (dup_cloexec): New function, with mingw implementation borrowed
37552         from...
37553         * lib/w32spawn.h (dup_noinherit): ...here.
37554         * modules/execute (Depends-on): Add cloexec.
37555         * modules/pipe (Depends-on): Likewise.
37556         * modules/cloexec (Depends-on): Add dup2.
37557         * modules/cloexec-tests (Files): New file.
37558         * tests/test-cloexec.c: Likewise.
37559
37560         test-xalloc-die: fix test for mingw
37561         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37562         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37563         directory and .exe suffix off argv[0] output.
37564
37565         test-fseeko: fix test for mingw
37566         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37567         than undefining fseek, so test will pass on mingw.
37568
37569 2009-12-05  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/progname.h (set_program_name): Clarify specification.
37572         * lib/progname.c (set_program_name): Likewise.
37573         Reported by Jim Meyering.
37574
37575 2009-12-05  Jim Meyering  <meyering@redhat.com>
37576
37577         maint.mk: backslash-escape parens in default regexp
37578         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37579         backslash-escape the literal parentheses.
37580
37581         maint.mk: news-date-check: use grep -E
37582         * top/maint.mk (today): Define a Make variable, not a...
37583         (news-date-check): ...shell variable.
37584         (news-date-regexp): Use the Make variable.
37585         Use grep's -E option.  Change the failing diagnostic to mention
37586         the variable, $(news-date-regexp).
37587
37588 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37589
37590         maintainer-makefile: allow customization of NEWS entry format
37591         * top/maint.mk (news-date-regexp): New overridable variable.
37592         (news-date-check): Use it.
37593
37594 2009-12-04  Eric Blake  <ebb9@byu.net>
37595
37596         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37597         * lib/mgetgroups.h (xgetgroups): New prototype.
37598         * lib/mgetgroups.c (xgetgroups): New wrapper.
37599         (mgetgroups): Handle ENOSYS.
37600         * modules/mgetgroups (Depends-on): Add realloc.
37601         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37602
37603         mgetgroups: avoid argument promotion issues with -1
37604         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37605         for invalid gid_t.
37606         * tests/test-chown.h (getegid, test_chown): Likewise.
37607         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37608
37609 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37610
37611         exclude: Fix header file problems.
37612         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37613
37614 2009-12-01  Jim Meyering  <meyering@redhat.com>
37615
37616         fts: fts_open: do not let an empty string cause immediate failure
37617         This is required in support of GNU rm, for which the command
37618         "rm A '' B" must process and remove both A and B, in spite of
37619         the empty string argument.
37620         * lib/fts.c (fts_open): Do not let the presence of an empty string
37621         cause fts_open to fail immediately.  Most fts-using tools must be
37622         able to process all arguments, in order, and can be expected to
37623         diagnose such arguments themselves.
37624
37625 2009-11-30  Eric Blake  <ebb9@byu.net>
37626
37627         utimens: fix compilation error
37628         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37629         Declare variable at right scope.
37630
37631 2009-11-29  Jim Meyering  <meyering@redhat.com>
37632
37633         bootstrap: handle perl-5.11's changed --version output
37634         * build-aux/bootstrap (get_version): Handle perl separately,
37635         since perl-5.11's --version output is different.
37636
37637 2009-11-28  Jim Meyering  <meyering@redhat.com>
37638
37639         userspec: depend on the inttostr module, too
37640         * modules/userspec (Depends-on): Add inttostr.
37641
37642         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37643         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37644         number of MAXUID when it evaluates to (uid_t) -1.
37645         Likewise for group ID.  Reported by Matt McCutchen in
37646         <http://savannah.gnu.org/bugs/?28113>
37647
37648         userspec: reformat to use spaces, not TABs
37649         * lib/userspec.c: Expand TABs to spaces.
37650         Add Emacs' "indent-tabs-mode: nil" hint.
37651
37652 2009-11-27  Eric Blake  <ebb9@byu.net>
37653
37654         getopt-gnu: flush out another BSD bug
37655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37656         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37657         flush out BSD bug.
37658         * tests/test-getopt.h (test_getopt): End lists with NULL.
37659         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37660         (test_getopt_long_posix): Enhance test.
37661         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37662         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37663         getopt-gnu.
37664         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37665         Likewise.
37666
37667 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37668
37669         * modules/idpriv-droptemp-tests (Notice): Fix text.
37670
37671 2009-11-27  Jim Meyering  <meyering@redhat.com>
37672
37673         test-xalloc-die: avoid spurious failure due to libtool argv difference
37674         In a libtool-enabled project, this test would fail due to a difference
37675         in the emitted program name, e.g.,
37676         -test-xalloc-die: memory exhausted
37677         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37678         Use program to avoid that.
37679         * modules/xalloc-die-tests (Depends-on): Add progname.
37680         * tests/test-xalloc-die.c: Include progname.h".
37681         (program_name): Remove decl.
37682         (main): Call set_program_name.
37683         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37684
37685 2009-11-26  Richard Jones  <rjones@redhat.com>
37686
37687         w32sock: leave win32 error in place.
37688         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37689
37690 2009-11-26  Eric Blake  <ebb9@byu.net>
37691
37692         init.sh: suggest to use skip_ and fail_ functions in comments
37693         * tests/init.sh: Add a sentence.
37694
37695 2009-11-25  Bruno Haible  <bruno@clisp.org>
37696
37697         init.sh: add documentation in comments
37698         * tests/init.sh: Add some developer and user documentation.
37699
37700 2009-11-26  Jim Meyering  <meyering@redhat.com>
37701
37702         init.sh: accommodate even those who specify bogus srcdir manually
37703         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37704         configure-time tests to be sanitized, so that there is no need to
37705         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37706         (with no double quotes) suffices.  However, since tests may be
37707         invoked manually, and since you may explicitly set srcdir to the
37708         name of a directory containing spaces, do quote its uses here.
37709         * tests/test-pread.sh: Likewise.
37710         Suggested by Bruno Haible.
37711
37712         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37713         * tests/test-pread.sh: Write no data into the pipe, because
37714         test-pread actually reads none.  This avoids a diagnostic,
37715         "bash: echo: write error: Broken pipe", that arises in the unusual
37716         event something is ignoring SIGPIPE, and might be interpreted
37717         as some sort of failure.  Reported by Bruno Haible.
37718
37719 2009-11-25  Jim Meyering  <meyering@redhat.com>
37720
37721         test-pread: cover failure with ESPIPE and EINVAL
37722         * tests/test-pread.c (main): Test for failure, too.
37723         * tests/test-pread.sh: Invoke with stdin on a pipe.
37724         Suggested by Eric Blake.
37725
37726         pread: improvement and fix
37727         * modules/pread (Depends-on): Depend on lseek, for portability to
37728         e.g., mingw.  Suggested by Eric Blake.
37729         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37730
37731         unistd.in.h: correct declaration of pread
37732         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37733         Reported by Richard W.M. Jones.
37734
37735         test-pread.sh: distribute the test script
37736         * modules/pread-tests (Files): Include test-pread.sh.
37737
37738         test-pread.sh: clean up
37739         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37740         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37741         That is unnecessary, since it's always ".".
37742         Suggestion from Eric Blake.
37743
37744         test-pread.sh: make executable
37745         * tests/test-pread.sh: Set executable bit.
37746         Reported by Eric Blake.
37747
37748         correct typo in test-pread.sh
37749         * tests/test-pread.sh: Add #! line.
37750
37751         test pread
37752         * tests/test-pread.c: New file.
37753         * tests/test-pread.sh: Likewise.
37754         * modules/pread-tests: Likewise.
37755
37756         pread: new module
37757         * modules/pread: New file.
37758         * lib/unistd.in.h (pread): Define/declare.
37759         * lib/pread.c (pread): New file.
37760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37761         * modules/unistd (Makefile.am): Substitute witnesses.
37762         * doc/posix-functions/pread.texi (pread): Update.
37763         * MODULES.html.sh: Add pread.
37764
37765 2009-11-25  Jim Meyering  <meyering@redhat.com>
37766
37767         tests/init.sh: new file to be used via most *.sh tests
37768         * tests/init.sh: New file.
37769
37770 2009-11-25  Eric Blake  <ebb9@byu.net>
37771
37772         utimens: work around older Linux failure with symlinks
37773         * lib/utimens.c (lutimensat_works_really): New variable.
37774         (fdutimens, lutimens): Use it to manage kernels that support
37775         nanosecond times on files, but not on symlinks.
37776         Reported by OndÅ™ej Vašík.
37777
37778         utimes: fix configure grammar
37779         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37780
37781 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37782
37783         regex: Fix fastmap for multibyte character ranges.
37784         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37785         characters when a multibyte character range is included.
37786
37787 2009-11-22  Andy Wingo  <wingo@pobox.com>
37788
37789         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37790         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37791
37792 2009-11-24  Bruno Haible  <bruno@clisp.org>
37793
37794         doc: Most *_l functions exist in MacOS X 10.5.
37795         * doc/posix-functions/duplocale.texi: Update platforms list.
37796         * doc/posix-functions/freelocale.texi: Likewise.
37797         * doc/posix-functions/newlocale.texi: Likewise.
37798         * doc/posix-functions/uselocale.texi: Likewise.
37799         * doc/posix-functions/isalnum_l.texi: Likewise.
37800         * doc/posix-functions/isalpha_l.texi: Likewise.
37801         * doc/posix-functions/isblank_l.texi: Likewise.
37802         * doc/posix-functions/iscntrl_l.texi: Likewise.
37803         * doc/posix-functions/isdigit_l.texi: Likewise.
37804         * doc/posix-functions/isgraph_l.texi: Likewise.
37805         * doc/posix-functions/islower_l.texi: Likewise.
37806         * doc/posix-functions/isprint_l.texi: Likewise.
37807         * doc/posix-functions/ispunct_l.texi: Likewise.
37808         * doc/posix-functions/isspace_l.texi: Likewise.
37809         * doc/posix-functions/isupper_l.texi: Likewise.
37810         * doc/posix-functions/iswalnum_l.texi: Likewise.
37811         * doc/posix-functions/iswalpha_l.texi: Likewise.
37812         * doc/posix-functions/iswblank_l.texi: Likewise.
37813         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37814         * doc/posix-functions/iswctype_l.texi: Likewise.
37815         * doc/posix-functions/iswdigit_l.texi: Likewise.
37816         * doc/posix-functions/iswgraph_l.texi: Likewise.
37817         * doc/posix-functions/iswlower_l.texi: Likewise.
37818         * doc/posix-functions/iswprint_l.texi: Likewise.
37819         * doc/posix-functions/iswpunct_l.texi: Likewise.
37820         * doc/posix-functions/iswspace_l.texi: Likewise.
37821         * doc/posix-functions/iswupper_l.texi: Likewise.
37822         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37823         * doc/posix-functions/isxdigit_l.texi: Likewise.
37824         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37825         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37826         * doc/posix-functions/strcoll_l.texi: Likewise.
37827         * doc/posix-functions/strfmon_l.texi: Likewise.
37828         * doc/posix-functions/strftime_l.texi: Likewise.
37829         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37830         * doc/posix-functions/strxfrm_l.texi: Likewise.
37831         * doc/posix-functions/tolower_l.texi: Likewise.
37832         * doc/posix-functions/toupper_l.texi: Likewise.
37833         * doc/posix-functions/towctrans_l.texi: Likewise.
37834         * doc/posix-functions/towlower_l.texi: Likewise.
37835         * doc/posix-functions/towupper_l.texi: Likewise.
37836         * doc/posix-functions/wcscoll_l.texi: Likewise.
37837         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37838         * doc/posix-functions/wctrans_l.texi: Likewise.
37839         * doc/posix-functions/wctype_l.texi: Likewise.
37840         * doc/glibc-functions/strptime_l.texi: Likewise.
37841         * doc/glibc-functions/strtod_l.texi: Likewise.
37842         * doc/glibc-functions/strtof_l.texi: Likewise.
37843         * doc/glibc-functions/strtol_l.texi: Likewise.
37844         * doc/glibc-functions/strtold_l.texi: Likewise.
37845         * doc/glibc-functions/strtoll_l.texi: Likewise.
37846         * doc/glibc-functions/strtoul_l.texi: Likewise.
37847         * doc/glibc-functions/strtoull_l.texi: Likewise.
37848         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37849         * doc/glibc-functions/wcstod_l.texi: Likewise.
37850         * doc/glibc-functions/wcstof_l.texi: Likewise.
37851         * doc/glibc-functions/wcstol_l.texi: Likewise.
37852         * doc/glibc-functions/wcstold_l.texi: Likewise.
37853         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37854         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37855         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37856
37857 2009-11-24  Bruno Haible  <bruno@clisp.org>
37858
37859         duplocale: Fix logic bug.
37860         * lib/duplocale.c: Don't include <langinfo.h>.
37861         (_NL_LOCALE_NAME): Remove macro.
37862         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37863         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37864
37865 2009-11-23  Jim Meyering  <meyering@redhat.com>
37866
37867         test-update-copyright: don't hard-code /usr/bin/perl
37868         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37869         perl to print the current year.  Gilles Espinasse reported that
37870         the replaced use of perl was hard-coded as /usr/bin/perl.
37871
37872 2009-11-23  Bruno Haible  <bruno@clisp.org>
37873
37874         duplocale: Add support for glibc 2.3.x.
37875         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37876
37877 2009-11-22  Bruno Haible  <bruno@clisp.org>
37878
37879         vasnprintf: Tiny optimization.
37880         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37881         MacOS X.
37882
37883 2009-11-22  Bruno Haible  <bruno@clisp.org>
37884
37885         Tests for module 'duplocale'.
37886         * modules/duplocale-tests: New file.
37887         * tests/test-duplocale.c: New file.
37888
37889         New module 'duplocale'.
37890         * m4/duplocale.m4: New file.
37891         * lib/locale.in.h (duplocale): New declaration.
37892         * lib/duplocale.c: New file.
37893         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37894         gl_LOCALE_H_DEFAULTS): New macros.
37895         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37896         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37897         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37898         REPLACE_DUPLOCALE.
37899         * modules/duplocale: New file.
37900         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37901
37902 2009-11-22  Bruno Haible  <bruno@clisp.org>
37903
37904         * modules/locale-tests (configure.ac): Test for newlocale function.
37905         * tests/test-locale.c: When the system has extended locale functions,
37906         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37907
37908         locale: Make locale_t available when possible.
37909         * lib/locale.in.h: Include <xlocale.h> when it exists.
37910         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37911         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37912         * modules/locale (Depends-on): Add extensions.
37913         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37914         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37915
37916 2009-11-22  Bruno Haible  <bruno@clisp.org>
37917
37918         Add comments.
37919         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37920         invocation.
37921         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37922         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37923         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37924
37925 2009-11-22  Bruno Haible  <bruno@clisp.org>
37926
37927         error: account for the possibility of freopen (stdout).
37928         * lib/error.c: Include <unistd.h>.
37929         (flush_stdout): New function, extracted from error and error_at_line.
37930         Determine stdout's fd dynamically.
37931         (error, error_at_line): Invoke flush_stdout.
37932         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37933         * modules/error (Depends-on): Add unistd.
37934
37935 2009-11-22  Bruno Haible  <bruno@clisp.org>
37936
37937         diffseq: Add comment.
37938         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37939
37940 2009-11-22  Jim Meyering  <meyering@redhat.com>
37941
37942         c-stack: avoid defining an unused static function
37943         * lib/c-stack.c (find_stack_direction): Do not define this function
37944         when it will not be used.
37945
37946         diffseq: avoid spurious gcc warnings
37947         * lib/diffseq.h (IF_LINT2): Define.
37948         (compareseq): Use it to initialize two members of "part".
37949         This avoids two used-uninitialized warnings.
37950
37951 2009-11-21  Jim Meyering  <meyering@redhat.com>
37952
37953         c-stack: avoid "ignoring return value of `write'" warning
37954         * lib/c-stack.c: Include "ignore-value.h".
37955         (die): Explicitly ignore each write return value.
37956         * modules/c-stack (Depends-on): Add ignore-value.
37957
37958 2009-11-21  Bruno Haible  <bruno@clisp.org>
37959
37960         diffseq: reduce scope of variable 'best'.
37961         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37962         variable, earlier used for two different purposes.
37963
37964 2009-11-21  Jim Meyering  <meyering@redhat.com>
37965
37966         diffseq: remove useless assignment to "best"
37967         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37968         assignment.  At that point "best" is already guaranteed to be zero.
37969
37970 2009-11-20  Eric Blake  <ebb9@byu.net>
37971
37972         build: mention ftp redirector in release announcements
37973         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37974         values that used to come from cfg.mk; mention FTP redirect URL.
37975         * build-aux/announce-gen: Mention the mirror list.
37976         Suggested by Karl Berry.
37977
37978         nanosleep: improve port to mingw
37979         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37981         LIB_NANOSLEEP, but only when needed.
37982         * modules/select (Link): Document LIBSOCKET.
37983         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37984         enough.
37985
37986         nanosleep: work around cygwin bug
37987         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37988         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37989         bug.
37990         (getnow): Delete, not needed.
37991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37992         LIB_CLOCK_GETTIME.
37993         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37994         clock-time, gettime.
37995         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37996         bug.
37997         * modules/nanosleep-tests: New test.
37998         * tests/test-nanosleep.c: New file.
37999
38000         sleep: work around cygwin bug
38001         * lib/sleep.c (rpl_sleep): Work around the bug.
38002         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38003         (gl_PREREQ_SLEEP): Delete unused macro.
38004         * modules/sleep (Depends-on): Add verify.
38005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38006         * modules/unistd (Makefile.am): Substitute witness.
38007         * lib/unistd.in.h (sleep): Update prototype.
38008         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38009         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38010         * modules/sleep-tests (Depends-on): Check for alarm.
38011
38012 2009-11-20  Jim Meyering  <meyering@redhat.com>
38013
38014         maint.mk: improve sc_prohibit_magic_number_exit
38015         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38016         so it does not match uses like System.exit(1).
38017         Add comments showing how to correct all offenders.
38018
38019 2009-11-19  Eric Blake  <ebb9@byu.net>
38020
38021         xalloc-die-tests: add missing library
38022         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38023
38024         test-xvasprintf: silence compiler warnings
38025         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38026         empty string from gcc.
38027
38028 2009-11-19  Jim Meyering  <meyering@redhat.com>
38029
38030         xfreopen: new module, from coreutils
38031         * modules/xfreopen: New module.
38032         * lib/xfreopen.c: New file.
38033         * lib/xfreopen.h: New file.
38034         * MODULES.html.sh (File stream based Input/Output"): Add it.
38035
38036 2009-11-19  Eric Blake  <ebb9@byu.net>
38037
38038         manywarnings: depend on warnings
38039         * modules/manywarnings (Depends-on): Add warnings.
38040
38041         build: avoid compiler warnings
38042         * lib/select.c (rpl_select): Delete unused variable.
38043         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38044
38045 2009-11-18  Eric Blake  <ebb9@byu.net>
38046
38047         tests: avoid false negative with --with-packager
38048         * tests/test-version-etc.sh: Discard packager information.
38049         * tests/test-argp-version-etc-1.sh: Likewise.
38050         Reported by Mike Frysinger.
38051
38052         utimens: fix regression on Solaris
38053         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38054         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38055         can only change fd timestamps via futimesat.  Instead, use an
38056         additional witness macro to avoid BSD bug.
38057         Reported by Jim Meyering.
38058
38059 2009-11-17  Eric Blake  <ebb9@byu.net>
38060
38061         usleep: use it to simplify tests
38062         * modules/stat-time-tests (Depends-on): Add usleep.
38063         (configure.ac): Drop usleep check.
38064         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38065         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38066         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38067         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38068         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38069         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38070         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38071         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38072         Likewise.
38073         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38074         * tests/test-lchown.h (nap): Likewise.
38075         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38076         * tests/test-stat-time.c (nap): Likewise.
38077         * tests/test-utimens-common.h (nap): Update comments.
38078
38079         usleep: new module
38080         * modules/usleep: New file.
38081         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38082         * lib/usleep.c (usleep): Likewise.
38083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38084         * modules/unistd (Makefile.am): Substitute witnesses.
38085         * lib/unistd.in.h (usleep): Add declaration.
38086         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38087         * MODULES.html.sh (Date and time): Likewise.
38088         * modules/usleep-tests (Depends-on): New test.
38089         * tests/test-usleep.c: New file.
38090
38091         chown: work around OpenBSD bug
38092         * lib/chown.c (rpl_chown): Work around the bug.
38093         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38094         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38095         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38096         * modules/chown (Depends-on): Add stdbool.
38097         * modules/lchown (Depends-on): Likewise.
38098         * doc/posix-functions/chown.texi (chown): Document the bug.
38099         * doc/posix-functions/lchown.texi (lchown): Likewise.
38100         * tests/test-lchown.h (test_chown): Relax test.
38101
38102         mkstemp: avoid conflict with C++ keyword template
38103         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38104         * lib/mkostemp.c (mkostemp): Likewise.
38105         * lib/mkostemps.c (mkostemps): Likewise.
38106         * lib/mkstemp.c (mkstemp): Likewise.
38107         * lib/mkstemps.c (mkstemps): Likewise.
38108
38109         xalloc-die-tests: optimize
38110         * tests/test-xalloc-die.sh: Reduce number of processes.
38111
38112 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38113
38114         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38115         patch from ludo@gnu.org (Ludovic Courtès).
38116
38117 2009-11-17  Jim Meyering  <meyering@redhat.com>
38118
38119         version-etc: use proper license string
38120         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38121         * modules/version-etc-fsf: Likewise.
38122
38123 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38124
38125         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38126         printed to stdout.  Deal with EOL differences.
38127
38128 2009-11-17  Eric Blake  <ebb9@byu.net>
38129
38130         unsetenv: work around Solaris bug
38131         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38132         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38133         Reported by Jim Meyering.
38134
38135         vasnprintf: avoid compiler warnings
38136         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38137         variables.
38138         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38139
38140 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38141
38142         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38143         settings since xalloc-die is no longer the self test,
38144         xalloc-die.sh is.
38145
38146 2009-11-17  Jim Meyering  <meyering@redhat.com>
38147
38148         test-xalloc-die.sh: make the code agree with the commit log
38149         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38150         at the end, just in case you happen to have a test-xalloc-die
38151         program in some other PATH directory.
38152
38153         test-xalloc-die.sh: fix a portability bug
38154         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38155         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38156         Otherwise, argv[0] (as often seen in diagnostics) would be too
38157         system-dependent, sometimes with, and sometimes without the leading "./".
38158
38159         version-etc-fsf: relax license to LGPLv3+
38160         * modules/version-etc-fsf (License): Relax license.
38161
38162 2009-11-16  Eric Blake  <ebb9@byu.net>
38163
38164         xalloc-die-tests: avoid printing null pointer
38165         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38166         shell script.
38167         * tests/test-xalloc-die.c (program_name): Declare.
38168         * tests/test-xalloc-die.sh (tmpfiles): New file.
38169
38170         setenv, unsetenv: work around various bugs
38171         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38172         (setenv) [HAVE_SETENV]: Work around bugs.
38173         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38174         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38175         for bugs.
38176         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38177         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38179         * modules/stdlib (Makefile.am): Update substitutions.
38180         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38181         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38182         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38183         * modules/setenv-tests: New test.
38184         * modules/unsetenv-tests: Likewise.
38185         * tests/test-setenv.c: New file.
38186         * tests/test-unsetenv.c: Likewise.
38187
38188 2009-11-16  Jim Meyering  <meyering@redhat.com>
38189
38190         version-etc: relax license to LGPLv3+
38191         * modules/version-etc (License): Relax license.
38192
38193         better AC_REQUIRE expanded-before-required-warning avoidance
38194         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38195         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38196         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38197         which is no longer needed.
38198
38199 2009-11-16  Eric Blake  <ebb9@byu.net>
38200
38201         test-freading: clean up temporary file
38202         * tests/test-freading.c (main): Remove file on success, and use
38203         ASSERT more liberally.
38204         Reported by Jim Meyering.
38205
38206 2009-11-16  Jim Meyering  <meyering@redhat.com>
38207
38208         avoid new AC_REQUIRE expanded-before-required warnings
38209         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38210         merely using it.
38211         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38212         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38213
38214 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38215
38216         * tests/test-xalloc-die.c: New file.
38217         * modules/xalloc-die-tests: New file.
38218         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38219         XFAIL_TESTS so it can be appended by modules.
38220
38221 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38222
38223         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38224         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38225
38226 2009-11-14  Eric Blake  <ebb9@byu.net>
38227
38228         fnmatch: avoid compiler warning
38229         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38230         to silence compiler warning about mismatch signedness in ?:.
38231         Reported by Robert Millan.
38232
38233         intprops: add double-inclusion guard
38234         * lib/intprops.h: Allow idempotent includes.
38235         Suggested by Bruce Korb.
38236
38237         openat: detect Solaris fchownat bug
38238         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38239         penalizing glibc chownat when only lchownat is broken.
38240         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38241         trailing slash bugs.
38242         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38243         * modules/openat-tests (Files): Include more files.
38244         (Depends-on): Add mgetgroups, sleep, stat-time.
38245         (configure.ac): Add additional checks.
38246         (Makefile.am): Build new test.
38247         * tests/test-fchownat.c: New file.
38248
38249         lchown: detect Solaris and FreeBSD bug
38250         * lib/lchown.c (rpl_lchown): Work around bug.
38251         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38253         * modules/unistd (Makefile.am): Populate it.
38254         * lib/unistd.in.h (lchown): Update declaration.
38255         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38256         * modules/lchown-tests: New file.
38257         * tests/test-lchown.h (test_lchown): Likewise.
38258         * tests/test-lchown.c (main): Likewise.
38259
38260         chown: detect Solaris and FreeBSD bug
38261         * lib/chown.c (rpl_chown): Work around bug.
38262         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38263         (gl_PREREQ_CHOWN): Delete.
38264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38265         * modules/unistd (Makefile.am): Populate it.
38266         * lib/unistd.in.h (chown): Update declaration.
38267         * lib/lchown.c (chown): Update client.
38268         * modules/lchown (Depends-on): Add lstat.
38269         * doc/posix-functions/chown.texi (chown): Document the bug.
38270         * doc/posix-functions/getgroups.texi (getgroups): Document
38271         getgroups pitfall.
38272         * modules/chown-tests: New file.
38273         * tests/test-chown.h (test_chown): Likewise.
38274         * tests/test-chown.c (main): Likewise.
38275
38276 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38277
38278         gnulib-tool: correctly detect absence of m4 directories
38279         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38280
38281 2009-11-14  Jim Meyering  <meyering@redhat.com>
38282
38283         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38284         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38285
38286 2009-11-14  John W. Eaton  <jwe@gnu.org>
38287
38288         strftime.h: wrap funtion declaration in extern "C" block
38289         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38290
38291 2009-11-13  Eric Blake  <ebb9@byu.net>
38292
38293         getgroups: avoid compiler warning
38294         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38295
38296         getgroups: work around FreeBSD bug
38297         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38298         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38299         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38300         * tests/test-getgroups.c (main): Fix buffer overrun.
38301
38302         getgroups: avoid compilation failure
38303         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38304         * modules/getgroups (Depends-on): Add stdint.
38305
38306 2009-11-13  Jim Meyering  <meyering@redhat.com>
38307
38308         test-getgroups: avoid compilation failure
38309         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38310
38311 2009-11-13  Eric Blake  <ebb9@byu.net>
38312
38313         mgetgroups: new module, taken from coreutils
38314         * modules/mgetgroups: New file.
38315         * lib/mgetgroups.h: Likewise.
38316         * lib/mgetgroups.c (mgetgroups): Likewise.
38317         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38318         * MODULES.html.sh (Users and groups): Mention it.
38319
38320         getgroups: don't expose GETGROUPS_T to user
38321         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38322         an element at a time if GETGROUPS_T is wrong size.
38323         * lib/getugroups.h (getugroups): Change signature.
38324         * lib/unistd.in.h (getgroups): Likewise.
38325         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38326         signature needs fixing.
38327         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38328         AC_TYPE_GETGROUPS.
38329         * modules/group-member (Depends-on): Add getgroups.
38330         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38331         (group_member): Rely on getgroups replacement.
38332         * lib/getugroups.c (getugroups): Use gid_t.
38333         * tests/test-getgroups.c (main): Likewise.
38334         * NEWS: Mention the signature change.
38335         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38336         problem with signature.
38337         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38338         GETGROUPS_T is still useful for setgroups.
38339
38340         getgroups, getugroups: provide stubs for mingw
38341         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38342         * lib/getugroups.c (getugroups): Likewise.
38343         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38344         function.  Modernize replacement scheme.
38345         (gl_PREREQ_GETGROUPS): Delete.
38346         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38347         * modules/getgroups (configure.ac): Declare witness.
38348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38349         * modules/unistd (Depends-on): Substitute witness.
38350         * lib/unistd.in.h (getgroups): Declare replacement.
38351
38352         getgroups: avoid calling exit
38353         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38354         drop xalloc.
38355         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38356         dependencies.
38357         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38358         exiting, in the rare case of malloc failure.
38359
38360         getgroups: fix logic error
38361         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38362         has more than 20 groups.
38363         * modules/getgroups-tests: New test.
38364         * tests/test-getgroups.c: New file.
38365
38366 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38367
38368         * tests/test-base64.c: Improve.
38369
38370 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38371
38372         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38373         Blake <ebb9@byu.net>.
38374
38375 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38376
38377         * tests/test-xvasprintf.c: Add %s%s related checks.
38378
38379 2009-11-12  Eric Blake  <ebb9@byu.net>
38380
38381         version-etc: match standards.texi style
38382         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38383         and use <> only for URLs.
38384
38385 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38386
38387         fts: do not fail on a submount during traversal
38388         * lib/fts.c (fts_build): Read the stat info again after opening
38389         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38390         Original report at http://bugzilla.redhat.com/501848.
38391
38392 2009-11-12  Jim Meyering  <meyering@redhat.com>
38393
38394         bootstrap: sync from coreutils
38395         * build-aux/bootstrap (bootstrap_epilogue): New function.
38396         Use git_modules_config in one more place.  This make bootstrap's
38397         --gnulib-srcdir option more useful for testing.
38398
38399         bootstrap: generalize autoheader check
38400         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38401         AC_CONFIG_HEADERS.
38402
38403 2009-11-11  Eric Blake  <ebb9@byu.net>
38404
38405         mkfifoat: use new modules for Solaris and BSD bugs
38406         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38407         * lib/mkfifoat.c (mknodat): Split...
38408         * lib/mknodat.c (mknodat): ...into new file.
38409         * modules/mkfifoat (Files): Ship new file.
38410         (Depends-on): Add mkfifo, mknod.
38411         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38412         (Depends-on): Add symlink.
38413         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38414         redundant with test_mkfifo.h.
38415         (do_mkfifoat, do_mknodat): New helpers.
38416
38417         mknod: new module
38418         * modules/mknod: New file.
38419         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38420         * lib/mknod.c (mknod): Likewise.
38421         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38422         defaults.
38423         * modules/sys_stat (Makefile.am): Substitute them.
38424         * lib/sys_stat.in.h (mknod): Declare replacement.
38425         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38426         Document it.
38427         * doc/posix-functions/mknod.texi (mknod): Likewise.
38428         * modules/mknod-tests: New test.
38429         * tests/test-mknod.c: Likewise.
38430
38431         mkfifo: new module
38432         * modules/mkfifo: New file.
38433         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38434         * lib/mkfifo.c (mkfifo): Likewise.
38435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38436         defaults.
38437         * modules/sys_stat (Makefile.am): Substitute them.
38438         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38439         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38440         Document it.
38441         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38442         * modules/mkfifo-tests: New test.
38443         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38444         from test-mkfifoat.c.
38445         * tests/test-mkfifo.c: New file.
38446
38447         readlink: detect FreeBSD bug
38448         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38449         slash on symlink.
38450         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38451         * tests/test-readlink.h (test_readlink): Enhance test.
38452
38453         symlink: detect FreeBSD bug
38454         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38455         slash on symlink.
38456         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38457         * tests/test-symlink.h (test_symlink): Enhance test.
38458
38459 2009-11-10  Eric Blake  <ebb9@byu.net>
38460
38461         link: detect FreeBSD bug
38462         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38463         symlink.
38464         * doc/posix-functions/link.texi (link): Document the bug.
38465         * tests/test-link.h (test_link): Enhance test.
38466         * tests/test-linkat.c (main): Update caller.
38467
38468         unlink, remove: detect FreeBSD bug
38469         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38470         slash on symlink.
38471         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38472         * doc/posix-functions/remove.texi (remove): Likewise.
38473         * tests/test-unlink.h (test_unlink): Enhance test.
38474         * tests/test-remove.c (main): Likewise.
38475
38476 2009-11-09  Eric Blake  <ebb9@byu.net>
38477
38478         rename: detect FreeBSD bug
38479         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38480         slash on symlink.
38481         * modules/renameat-tests (Depends-on): Add filenamecat.
38482         * tests/test-rename.h (test_rename): Allow one more errno.
38483         * tests/test-renameat.c (main): Likewise.
38484         * doc/posix-functions/rename.texi (rename): Document the bug.
38485
38486         open: detect FreeBSD bug
38487         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38488         symlink.
38489         * doc/posix-functions/open.texi (open): Document the bug.
38490         * doc/posix-functions/utimes.texi (utimes): Likewise.
38491         * tests/test-open.h (test_open): Add parameters, and test symlink
38492         handling.
38493         * tests/test-open.c (main): Adjust caller.
38494         * tests/test-fcntl-safer.c (main): Likewise.
38495         * modules/open-tests (Depends-on): Add stdbool, symlink.
38496         * modules/fcntl-safer-tests (Depends-on): Likewise.
38497         * tests/test-openat.c (main): Add test-open tests.
38498
38499         stat: detect FreeBSD bug
38500         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38501         symlink.
38502         * doc/posix-functions/stat.texi (stat): Document the bug.
38503         * tests/test-stat.h (test_stat_func): Add argument.
38504         * tests/test-stat.c (main): Adjust caller.
38505         * tests/test-fstatat.c (main): Likewise.
38506         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38507         Reported by Jim Meyering.
38508
38509 2009-11-09  James Youngman  <jay@gnu.org>
38510
38511         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38512         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38513
38514 2009-11-08  Jim Meyering  <meyering@redhat.com>
38515
38516         utimens: remove invalid futimesat call
38517         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38518         It used the file descriptor of the target file as the DIR_FD
38519         parameter and NULL as the file name.  That caused failure with
38520         errno == EFAULT on FreeBSD-8.0-rc2
38521
38522 2009-11-07  Eric Blake  <ebb9@byu.net>
38523
38524         fflush, freadseek: use fseeko, not fseek
38525         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38526         (clear_ungetc_buffer): Avoid potential problems on large files.
38527         * lib/freadseek.c (freadseek): Likewise.
38528         * modules/freadseek (Depends-on): Add fseeko.
38529         * modules/fseek (configure.ac): Set a witness.
38530         * tests/test-fflush.c (main): Use fseeko.
38531         * tests/test-fpurge.c (fseek): Disable link warning.
38532         * tests/test-freadable.c (fseek): Likewise.
38533         * tests/test-freading.c (fseek): Likewise.
38534         * tests/test-fseeko.c (fseek): Likewise.
38535         * tests/test-ftell.c (fseek): Likewise.
38536         * tests/test-ftello.c (fseek): Likewise.
38537         * tests/test-fwritable.c (fseek): Likewise.
38538         * tests/test-fwriting.c (fseek): Likewise.
38539
38540 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38541
38542         * modules/memchr (Depends-on): Drop getpagesize dependency.
38543
38544 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38545
38546         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38547         Reported by Ludovic Courtès.
38548         * build-aux/pmccabe2html: Improve example usage.
38549         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38550
38551 2009-11-06  Jim Meyering  <meyering@redhat.com>
38552
38553         do-release-commit-and-tag: New module.
38554         Automate the release-commit and tag process.
38555         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38556         * modules/do-release-commit-and-tag: New file.
38557         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38558
38559 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38560
38561         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38562         because test-select.c uses inet_pton.
38563
38564 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38565
38566         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38567         GETADDRINFO_LIB.  Bump serial number.
38568         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38569         Suggested by Eric Blake <ebb9@byu.net>.
38570
38571 2009-11-05  Eric Blake  <ebb9@byu.net>
38572
38573         strtod: detect darwin bug
38574         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38575         Reported by Leo Davis.
38576
38577         freopen-safer: new module
38578         * modules/freopen-safer: New module.
38579         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38580         * lib/freopen-safer.c (freopen_safer): New file.
38581         * lib/stdio-safer.h (freopen_safer): New declaration.
38582         * lib/stdio--.h (freopen): New override.
38583         * MODULES.html.sh (File stream based Input/Output): Mention it.
38584         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38585         freopen-safer module.
38586         * doc/posix-functions/stderr.texi (stderr): Likewise.
38587         * doc/posix-functions/stdin.texi (stdin): Likewise.
38588         * doc/posix-functions/stdout.texi (stdout): Likewise.
38589         * modules/freopen-safer-tests: New test.
38590         * tests/test-reopen-safer.c: New file.
38591
38592 2009-11-05  Jim Meyering  <meyering@redhat.com>
38593
38594         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38595         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38596
38597 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38598
38599         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38600
38601 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38602
38603         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38604
38605 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38606
38607         Fix link error.
38608         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38609         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38610
38611 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38612
38613         * tests/test-func.c: Also test value of __func__.
38614
38615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38616
38617         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38618         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38619
38620 2009-11-05  Bruno Haible  <bruno@clisp.org>
38621
38622         Fix link error.
38623         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38624         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38625         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38626
38627 2009-11-05  Bruno Haible  <bruno@clisp.org>
38628
38629         Tests for module 'inet_pton'.
38630         * modules/inet_pton-tests: New file.
38631         * tests/test-inet_pton.c: New file.
38632
38633 2009-11-05  Bruno Haible  <bruno@clisp.org>
38634
38635         Tests for module 'inet_ntop'.
38636         * modules/inet_ntop-tests: New file.
38637         * tests/test-inet_ntop.c: New file.
38638
38639 2009-11-04  Eric Blake  <ebb9@byu.net>
38640
38641         stdlib-safer: wrap all mkstemp variants
38642         * modules/mkostemp (configure.ac): Set witness.
38643         * modules/mkostemps (configure.ac): Likewise.
38644         * modules/mkstemps (configure.ac): Likewise.
38645         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38646         (mkstemps_safer): Wrap more functions.
38647         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38648         wrapping.
38649         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38650         (mkstemps_safer): Implement the wrappers.
38651
38652         mkstemps, mkostemps: new modules
38653         * modules/mkostemps: New module.
38654         * modules/mkstemps: Likewise.
38655         * lib/mkostemps.c (mkostemps): New file.
38656         * lib/mkstemps.c (mkstemps): Likewise.
38657         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38658         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38660         * modules/stdlib (Makefile.am): Substitute them.
38661         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38662         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38663         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38664         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38665         * MODULES.html.sh (File system functions): Mention them.
38666
38667         tempname: resync from glibc
38668         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38669         same values for __GT_FILE as glibc.  Abort even when assertions
38670         are disabled.
38671         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38672         match its value otherwise.  Allow idempotent inclusion.
38673         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38674         * lib/mkostemp.c (mkostemp): Likewise.
38675         * lib/mkstemp.c (mkstemp): Likewise.
38676         * lib/tmpfile.c (tmpfile): Likewise.
38677         * NEWS: Document this.
38678
38679         utimens: fix use of futimens on older Linux
38680         * lib/utimens.c (fdutimens): Use updated, rather than original,
38681         timespec to avoid bug in older Linux kernel.
38682         Reported by Simon Josefsson.
38683
38684 2009-11-04  Bruno Haible  <bruno@clisp.org>
38685
38686         Make num_processors more flexible and consistent.
38687         * lib/nproc.h (enum nproc_query): New type.
38688         (num_processors): Add a 'query' argument.
38689         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38690         (num_processors): Add a 'query' argument. Test the value of the
38691         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38692         mingw, count the number of CPUs available for the current process.
38693         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38694         Check for sched_getaffinity and sched_getaffinity_np.
38695         * modules/nproc (Depends-on): Add c-ctype, extensions.
38696         * NEWS: Mention the change.
38697
38698 2009-11-03  Bruno Haible  <bruno@clisp.org>
38699
38700         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38701
38702 2009-11-03  Jim Meyering  <meyering@redhat.com>
38703
38704         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38705         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38706         if it is defined.
38707
38708 2009-11-02  Eric Blake  <ebb9@byu.net>
38709
38710         mktime, timegm: share common declaration
38711         * lib/mktime-internal.h: New file.
38712         * lib/mktime.c: Use it rather than open-coding a declaration.
38713         * lib/timegm.c: Likewise.
38714         * modules/mktime (Files): Ship it.
38715         * modules/timegm (Files): Likewise.
38716         Suggested by Bruno Haible.
38717
38718         test-update-copyright: update test to match script changes
38719         * tests/test-update-copyright.sh: Avoid hard-coding perl
38720         location.  Don't update *.bak created by earlier runs.
38721
38722 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38723             Simon Josefsson  <simon@josefsson.org>
38724             Bruno Haible  <bruno@clisp.org>
38725
38726         Fix link error on Solaris 8.
38727         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38728         also in libnsl. Define also INET_PTON_LIB.
38729         * modules/inet_pton (Link): New section.
38730
38731 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38732             Bruno Haible  <bruno@clisp.org>
38733
38734         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38735         * modules/inet_ntop (Link): New section.
38736         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38737
38738 2009-11-02  Eric Blake  <ebb9@byu.net>
38739
38740         maint: avoid compiler warnings in m4 macros
38741         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38742         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38743
38744 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38745
38746         * m4/pmccabe2html.m4: Remove file.
38747         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38748         function.  Change maintainer.
38749         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38750         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38751         Courtès).
38752
38753 2009-10-31  Eric Blake  <ebb9@byu.net>
38754
38755         fseeko: fix m4 regression
38756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38757         regression from 2009-10-27.
38758         Reported by Ralf Wildenhues.
38759
38760 2009-10-31  Jim Meyering  <meyering@redhat.com>
38761
38762         inttostr: aesthetics and improved (compile-time) safety
38763         Define inttype_is_signed rather than inttype_is_unsigned,
38764         since the sole use is via "#if inttype_is_signed".
38765         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38766         inttype_is_unsigned.
38767         * lib/offtostr.c (inttype_is_signed): Likewise.
38768         * lib/uinttostr.c (inttype_is_signed): Likewise.
38769         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38770         * lib/inttostr.c (inttostr): Use verify to cross-check the
38771         inttype_is_signed value and the signedness of the actual type.
38772         * modules/inttostr (Depends-on): Add verify.
38773
38774 2009-10-30  Eric Blake  <ebb9@byu.net>
38775
38776         build: avoid compiler warnings
38777         * lib/fchmodat.c (lchmod): Mark unused variables.
38778         * lib/getopt.c (_getopt_initialize): Likewise.
38779         * lib/mktime.c (__mktime_internal): Provide prototype.
38780         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38781         older gcc that do not understand #pragma GCC diagnostic.
38782         * lib/uinttostr.c (inttype_is_unsigned): Define.
38783         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38784
38785 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38786
38787         stat: fix compilation on AIX
38788         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38789         only see struct stat64.
38790
38791 2009-10-30  Eric Blake  <ebb9@byu.net>
38792
38793         exclude: make more robust
38794         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38795         rather than masking a coding bug.
38796         Suggested by Bruno Haible.
38797
38798 2009-10-30  Jim Meyering  <meyering@redhat.com>
38799
38800         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38801         Rather than putting #!/usr/bin/perl on the first line,
38802         start with a variant of what's recommended by "man perlrun" that
38803         invokes the first "perl" program from your shell's search path.
38804         * build-aux/gitlog-to-changelog: Replace #!... as above.
38805         Add a "Local Variables" perl mode setting.
38806         Prompted by a patch from Ludovic Courtès.
38807         Improved by Eric Blake.
38808         * build-aux/useless-if-before-free: Likewise.
38809         * build-aux/announce-gen: Likewise.
38810         * build-aux/update-copyright: Likewise.
38811
38812 2009-10-29  Eric Blake  <ebb9@byu.net>
38813
38814         filenamecat-lgpl: adjust clients
38815         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38816         filenamecat.
38817         * modules/renameat (Depends-on): Likewise.
38818
38819         filenamecat: split into filenamecat-lgpl
38820         * modules/filenamecat-lgpl: New module.
38821         * modules/filenamecat (Files): Move library-safe files into
38822         filenamecat-lgpl.
38823         (Depends-on): Add filenamecat-lgpl.
38824         (configure.ac): Declare witness.
38825         * lib/filenamecat.h (file_name_concat): Only declare when using
38826         GPL module.
38827         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38828         Move...
38829         * lib/filenamecat-lgpl.c: ...into new file.
38830         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38831         (gl_FILE_NAME_CONCAT): Use it.
38832         * MODULES.html.sh (File system functions): Mention new module.
38833
38834         argp: avoid memory leak
38835         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38836         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38837         base_name, since the latter malloc()s and can call exit().
38838         Leak introduced 2006-07-03.
38839
38840         dirname-lgpl: adjust clients that don't need full dirname
38841         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38842         * modules/filenamecat (Depends-on): Likewise.
38843         * modules/linkat (Depends-on): Likewise.
38844         * modules/mkancesdirs (Depends-on): Likewise.
38845         * modules/mkdir (Depends-on): Likewise.
38846         * modules/openat (Depends-on): Likewise.
38847         * modules/savewd (Depends-on): Likewise.
38848         * modules/rename (Depends-on): Likewise.
38849         (License): Relax license.
38850         * modules/mkdir-tests (Depends-on): Drop progname.
38851         (Makefile.am): Delete unneeded LDADD.
38852         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38853
38854         dirname: split into dirname-lgpl
38855         * modules/dirname-lgpl: New module.
38856         * modules/dirname (Files): Move library-safe files into
38857         dirname-lgpl.
38858         (Depends-on): Add dirname-lgpl.
38859         (configure.ac): Declare witness.
38860         * modules/double-slash-root (License): Relax license.
38861         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38862         module.
38863         * lib/dirname.c (dir_len, mdir_name): Move...
38864         * lib/dirname-lgpl.c: ...into new file.
38865         * lib/basename.c (last_component, base_len): Move...
38866         * lib/basename-lgpl.c: ...into new file.
38867         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38868         (gl_DIRNAME): Use it.
38869         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38870         Mention new module.
38871         * modules/dirname-tests (Depends-on): Add progname.
38872         * tests/test-dirname.c (program_name): Delete.
38873
38874         mkdir: make safe for libraries
38875         * modules/mkdir (Depends-on): Drop xalloc.
38876         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38877         exit.
38878
38879         tests: avoid some compiler warnings
38880         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38881         literals.
38882         * tests/test-memchr.c (main): Avoid type mismatch.
38883         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38884         * tests/test-base64.c (main): Likewise.
38885         * tests/test-getdelim.c (main): Likewise.
38886         * tests/test-gethostname.c (main): Likewise.
38887         * tests/test-getline.c (main): Likewise.
38888         * tests/test-netinet_in.c (main): Likewise.
38889         * tests/test-select.c (open_server_socket, main): Likewise.
38890         * tests/test-select-stdin.c (main): Likewise.
38891         * tests/test-sockets.c (main): Likewise.
38892         * tests/test-strsignal.c (main): Likewise.
38893         * tests/test-sys_select.c (main): Likewise.
38894         * tests/test-sys_socket.c (main): Likewise.
38895         * tests/test-u64.c (main): Likewise.
38896         * tests/test-xfprintf-posix.c (main): Likewise.
38897         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38898
38899         sockets: avoid compiler warning
38900         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38901
38902         maint: detect usage(1) and other suspicious exits
38903         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38904
38905 2009-10-29  Jim Meyering  <meyering@redhat.com>
38906
38907         timespec: long-to-int truncation could make timespec_cmp malfunction
38908         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38909         a multiple of 2^32 nanoseconds as no difference.
38910
38911 2009-10-28  Jim Meyering  <meyering@redhat.com>
38912
38913         fprintftime: wrap macro code argument in "do {...} while(0)"
38914         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38915         cpy macro must be a statement that can be followed by a semicolon.
38916         Now that the else clause contains a comment and is hence longer
38917         than one line, I require curly braces.  That in turn requires
38918         that we wrap this code block in the standard do...while(0).
38919
38920         fprintftime: remove stray semicolon from previous change
38921         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38922
38923         fprintftime: avoid a warning about ignored fwrite return value
38924         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38925         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38926         that is unsafe.
38927         * modules/fprintftime (Depends-on): Add ignore-value.
38928
38929         exclude: avoid an unwarranted warning
38930         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38931
38932 2009-10-27  Eric Blake  <ebb9@byu.net>
38933
38934         fseek: avoid compilation failure when fflush is replaced
38935         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38936         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38937         module is in use.
38938         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38939         module is not in use; since REPLACE_FSEEK worked otherwise.
38940         (GNULIB_FTELLO): Likewise for ftell.
38941         Reported by Ian Beckwith and others.
38942
38943 2009-10-27  Bruno Haible  <bruno@clisp.org>
38944
38945         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38946         Reported by Jim Meyering.
38947
38948 2009-10-27  Jim Meyering  <jim@meyering.net>
38949             Bruno Haible  <bruno@clisp.org>
38950
38951         Avoid warning despite dropping the return value of fwrite.
38952         * lib/unicodeio.c: Include ignore-value.h.
38953         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38954         * modules/unicodeio (Depends-on): Add ignore-value.
38955
38956 2009-10-26  Eric Blake  <ebb9@byu.net>
38957
38958         areadlinkat: fix fallback path
38959         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38960         pointer and zero.
38961
38962 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38963
38964         Use a better IO block size for modern systems
38965         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38966         * lib/md2.c: Likewise.
38967         * lib/md4.c: Likewise.
38968         * lib/md5.c: Likewise.
38969         * lib/sha1.c: Likewise.
38970         * lib/sha256.c: Likewise.
38971         * lib/sha512.c: Likewise.
38972
38973 2009-10-22  Eric Blake  <ebb9@byu.net>
38974
38975         tests: avoid several compiler warnings
38976         * tests/test-getcwd.c (main): Avoid buffer underflow.
38977         * tests/test-getdate.c (main): String literals are not safe with
38978         putenv, so use setenv.  Declare unused argument.
38979         * modules/getdate-tests (Depends-on): Add setenv.
38980         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38981         problems with string literals in char *.
38982         * tests/test-hash.c (main): Avoid shadowing declaration.
38983         (insert_new): Treat string literals as char const *.
38984         * tests/test-getopt.h (test_getopt): Likewise.
38985         (getopt_loop): Alter types to minimize casting elsewhere.
38986         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38987         (test_getopt_long_posix): Likewise.
38988         (do_getopt_long): Add wrapper to minimize casting.
38989         * tests/test-atexit.c (clear_temp_file): Use void.
38990         * tests/test-areadlink-with-size.c (main): Declare unused
38991         arguments.
38992         * tests/test-areadlink.c (main): Likewise.
38993         * tests/test-areadlinkat-with-size.c (main): Likewise.
38994         * tests/test-areadlinkat.c (main): Likewise.
38995         * tests/test-canonicalize-lgpl.c (main): Likewise.
38996         * tests/test-canonicalize.c (main): Likewise.
38997         * tests/test-dirent-safer.c (main): Likewise.
38998         * tests/test-dirname.c (main): Likewise.
38999         * tests/test-dup2.c (main): Likewise.
39000         * tests/test-fchdir.c (main): Likewise.
39001         * tests/test-fcntl-h.c (main): Likewise.
39002         * tests/test-fcntl-safer.c (main): Likewise.
39003         * tests/test-fdopendir.c (main): Likewise.
39004         * tests/test-fdutimensat.c (main): Likewise.
39005         * tests/test-fflush.c (main): Likewise.
39006         * tests/test-filenamecat.c (main): Likewise.
39007         * tests/test-filevercmp.c (main): Likewise.
39008         * tests/test-fopen-safer.c (main): Likewise.
39009         * tests/test-fopen.c (main): Likewise.
39010         * tests/test-fpending.c (main): Likewise.
39011         * tests/test-fpurge.c (main): Likewise.
39012         * tests/test-freading.c (main): Likewise.
39013         * tests/test-fstatat.c (main): Likewise.
39014         * tests/test-fsync.c (main): Likewise.
39015         * tests/test-futimens.c (main): Likewise.
39016         * tests/test-getndelim2.c (main): Likewise.
39017         * tests/test-gettimeofday.c (main): Likewise.
39018         * tests/test-getopt.c (main): Likewise.
39019         * tests/test-i-ring.c (main): Likewise.
39020         * tests/test-inttypes.c (main): Likewise.
39021         * tests/test-link.c (main): Likewise.
39022         * tests/test-lstat.c (main): Likewise.
39023         * tests/test-math.c (main): Likewise.
39024         * tests/test-md5.c (main): Likewise.
39025         * tests/test-memchr2.c (main): Likewise.
39026         * tests/test-memrchr.c (main): Likewise.
39027         * tests/test-mkdir.c (main): Likewise.
39028         * tests/test-mkdirat.c (main): Likewise.
39029         * tests/test-mkfifoat.c (main): Likewise.
39030         * tests/test-open.c (main): Likewise.
39031         * tests/test-openat-safer.c (main): Likewise.
39032         * tests/test-openat.c (main): Likewise.
39033         * tests/test-quotearg.c (main): Likewise.
39034         * tests/test-rawmemchr.c (main): Likewise.
39035         * tests/test-readlink.c (main): Likewise.
39036         * tests/test-remove.c (main): Likewise.
39037         * tests/test-rename.c (main): Likewise.
39038         * tests/test-renameat.c (main): Likewise.
39039         * tests/test-rmdir.c (main): Likewise.
39040         * tests/test-sha1.c (main): Likewise.
39041         * tests/test-signal.c (main): Likewise.
39042         * tests/test-sigaction.c (main): Likewise.
39043         * tests/test-stat.c (main): Likewise.
39044         * tests/test-stat-time.c (main): Likewise.
39045         * tests/test-stddef.c (main): Likewise.
39046         * tests/test-stdint.c (main): Likewise.
39047         * tests/test-stdio.c (main): Likewise.
39048         * tests/test-stdlib.c (main): Likewise.
39049         * tests/test-strchrnul.c (main): Likewise.
39050         * tests/test-strerror.c (main): Likewise.
39051         * tests/test-string.c (main): Likewise.
39052         * tests/test-strtod.c (main): Likewise.
39053         * tests/test-strverscmp.c (main): Likewise.
39054         * tests/test-symlink.c (main): Likewise.
39055         * tests/test-symlinkat.c (main): Likewise.
39056         * tests/test-sys_stat.c (main): Likewise.
39057         * tests/test-sys_time.c (main): Likewise.
39058         * tests/test-time.c (main): Likewise.
39059         * tests/test-unistd.c (main): Likewise.
39060         * tests/test-unlink.c (main): Likewise.
39061         * tests/test-unlinkat.c (main): Likewise.
39062         * tests/test-utimens.c (main): Likewise.
39063         * tests/test-utimensat.c (main): Likewise.
39064         * tests/test-version-etc.c (main): Likewise.
39065         * tests/test-wchar.c (main): Likewise.
39066         * tests/test-wctype.c (main): Likewise.
39067         * tests/test-xprintf-posix.c (main): Likewise.
39068         * tests/test-posixtm.c (main): Likewise.
39069         (STREQ): Delete unused macro.
39070         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39071         shadowed variables.
39072         * tests/test-memchr.c (main): Likewise.
39073
39074 2009-10-21  Eric Blake  <ebb9@byu.net>
39075
39076         areadlinkat: avoid failure on older glibc
39077         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39078         rather than mis-comparing 0 against FUNC_RESULT of char*.
39079
39080 2009-10-21  Bruno Haible  <bruno@clisp.org>
39081
39082         * modules/stpncpy (License): Relicense under LGPLv2+.
39083         Reported by David Lutterkort <lutter@redhat.com>.
39084
39085 2009-10-20  Eric Blake  <ebb9@byu.net>
39086
39087         utimensat: work around Solaris 9 bug
39088         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39089         has trailing slash bugs.
39090         * tests/test-lutimens.h (test_lutimens): Enhance test.
39091         * tests/test-utimens.h (test_utimens): Likewise.
39092         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39093         * doc/posix-functions/utimes.texi (utimes): Likewise.
39094         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39095         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39096         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39097         * doc/posix-functions/futimens.texi (futimens): Likewise.
39098
39099         fdutimensat: new module
39100         * modules/fdutimensat: New file.
39101         * lib/fdutimensat.c (fdutimensat): Likewise.
39102         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39103         * MODULES.html.sh (File system functions): Mention module.
39104         * modules/fdutimensat-tests: New test.
39105         * tests/test-fdutimensat.c: Likewise.
39106
39107         doc: regenerate INSTALL
39108         * doc/INSTALL: Reflect recent autoconf update.
39109         * doc/INSTALL.ISO: Likewise.
39110         * doc/INSTALL.UTF-8: Likewise.
39111
39112 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39113
39114         acl: warn if ACL support is not detected
39115         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39116
39117 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39118
39119         * lib/nproc.h: Add extern "C" block for C++.
39120
39121 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39122             Bruno Haible  <bruno@clisp.org>
39123
39124         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39125         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39126         * doc/posix-functions/isalpha.texi: Likewise.
39127         * doc/posix-functions/isblank.texi: Likewise.
39128         * doc/posix-functions/iscntrl.texi: Likewise.
39129         * doc/posix-functions/isdigit.texi: Likewise.
39130         * doc/posix-functions/isgraph.texi: Likewise.
39131         * doc/posix-functions/islower.texi: Likewise.
39132         * doc/posix-functions/isprint.texi: Likewise.
39133         * doc/posix-functions/ispunct.texi: Likewise.
39134         * doc/posix-functions/isspace.texi: Likewise.
39135         * doc/posix-functions/isupper.texi: Likewise.
39136         * doc/posix-functions/isxdigit.texi: Likewise.
39137
39138 2009-10-18  Bruno Haible  <bruno@clisp.org>
39139
39140         Tests for module 'isblank'.
39141         * modules/isblank-tests: New file.
39142         * tests/test-isblank.c: New file.
39143
39144         New module 'isblank'.
39145         * lib/isblank.c: New file.
39146         * m4/isblank.m4: New file.
39147         * modules/isblank: New file.
39148         * doc/posix-functions/isblank.texi: Mention the new module.
39149
39150 2009-10-18  Bruno Haible  <bruno@clisp.org>
39151
39152         New module 'ctype'.
39153         * lib/ctype.in.h: New file.
39154         * m4/ctype.m4: New file.
39155         * modules/ctype: New file.
39156         * doc/posix-headers/ctype.texi: Mention the new module.
39157
39158 2009-10-18  Jim Meyering  <meyering@redhat.com>
39159
39160         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39161         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39162         right after its initialization, rather than farther down.
39163         Keeping these in close proximity makes it easier to ensure
39164         that each such variable is initialized.  E.g.,
39165
39166             LIB_CLOCK_GETTIME=
39167             AC_SUBST([LIB_CLOCK_GETTIME])
39168
39169         This change also increments these serial numbers.
39170         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39171         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39173
39174 2009-10-18  Bruno Haible  <bruno@clisp.org>
39175
39176         Don't let environment variables perturb build.
39177         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39178         (gl_PREREQ_GETHRXTIME): ... not here.
39179
39180 2009-10-18  Bruno Haible  <bruno@clisp.org>
39181
39182         Avoid symlink attack in localcharset module.
39183         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39184         (O_NOFOLLOW): Define fallback.
39185         (get_charset_aliases): Don't open the file if it is a symbolic link.
39186         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39187         gl_FCNTL_H.
39188         (gl_FCNTL_H): Require it.
39189         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39190         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39191         Reported by Fergal Glynn <fglynn@veracode.com>.
39192
39193 2009-10-18  Bruno Haible  <bruno@clisp.org>
39194
39195         Implement nproc for mingw.
39196         * lib/nproc.c: Include <windows.h>
39197         (num_processors): On native Windows platforms, try GetSystemInfo.
39198
39199 2009-10-18  Bruno Haible  <bruno@clisp.org>
39200
39201         Implement nproc for IRIX.
39202         * lib/nproc.c: Include <sys/sysmp.h>.
39203         (num_processors): On IRIX systems, try sysmp.
39204         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39205
39206 2009-10-18  Bruno Haible  <bruno@clisp.org>
39207
39208         Implement nproc for HP-UX.
39209         * lib/nproc.c: Include <sys/pstat.h>
39210         (num_processors): On HP-UX systems, try pstat_getdynamic.
39211         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39212         pstat_getdynamic.
39213
39214 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39215             Bruno Haible  <bruno@clisp.org>
39216
39217         Implement nproc for NetBSD, OpenBSD.
39218         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39219         (ARRAY_SIZE): New macro.
39220         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39221         * m4/nproc.m4: New file.
39222         * modules/nproc (Files): Add m4/nproc.m4.
39223         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39224         (Makefile.am): Instead, augment lib_SOURCES.
39225
39226 2009-10-18  Bruno Haible  <bruno@clisp.org>
39227
39228         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39229         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39230         sys/param.h.
39231
39232 2009-10-16  Eric Blake  <ebb9@byu.net>
39233
39234         utimensat: new module
39235         * modules/utimensat: New file.
39236         * lib/utimensat.c (utimensat): Likewise.
39237         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39238         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39239         so we can work around Linux bugs.
39240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39241         * modules/sys_stat (Makefile.am): Substitute them.
39242         * lib/sys_stat.in.h (utimensat): Declare it.
39243         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39244         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39245         * modules/utimensat-tests: New test.
39246         * tests/test-utimensat.c: Likewise.
39247
39248         utimens: let lutimens work on non-symlinks
39249         * lib/utimens.c (lutimens): Fall back to utimens rather than
39250         failing with ENOSYS, when file is not a symlink.
39251         (utimens): Reduce redirection.
39252         * tests/test-lutimens.h (test_lutimens): Update test to cover
39253         non-symlinks.
39254         * tests/test-utimens.h (test_utimens): Update test to cover
39255         symlinks.
39256         * tests/test-utimens.c (main): Update caller.
39257
39258         utimens: cache whether utimensat syscall works
39259         * lib/utimens.c (utimensat_works_really): New cache variable.
39260         (fdutimens, lutimens): Use it to avoid failing syscall.
39261
39262         test-stat-time, test-utimens: improve portability
39263         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39264         ext4 on alpha, and for cygwin.
39265         * tests/test-utimens-common.h: New file.
39266         (nap): Factor delays into single function.
39267         * tests/test-lutimens.h (test_lutimens): Use new header.
39268         * tests/test-futimens.h (test_futimens): Likewise.
39269         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39270         timestamps to occur from same machine, as was done previously for
39271         test_utimens.
39272         * modules/utimens-tests (Files): Ship new file.
39273         * modules/futimens-tests (Files): Likewise.
39274         Reported in part by Jim Meyering.
39275
39276         sys_stat: sort replacement declarations
39277         * lib/sys_stat.in.h: Sort declarations.
39278         * lib/futimens.c (futimens): Fix typo.
39279
39280 2009-10-15  Jim Meyering  <meyering@redhat.com>
39281
39282         don't let environment settings perturb build
39283         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39284         could cause a configure-time and/or build-time malfunction.
39285         Typically, a configure-time function-in-library test is performed
39286         via code like this:
39287
39288           LIB_VAR=
39289           AC_SUBST([LIB_VAR])
39290           prefix_saved_LIBS=$LIBS
39291             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39292                        [test "$ac_cv_search_FUNC" = "none required" ||
39293                         LIB_VAR=$ac_cv_search_FUNC])
39294           LIBS=$prefix_saved_LIBS
39295
39296         However, in each of the files affected by this change, the LIB_VAR=
39297         initialization was omitted.  Thus, when set in the environment, its
39298         value would propagate into generated Makefiles when FUNC is not found
39299         in LIB_NAME.
39300         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39301         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39303
39304 2009-10-14  Eric Blake  <ebb9@byu.net>
39305
39306         fchdir: avoid infinite recursion in mingw
39307         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39308         recursing.
39309
39310         test-stat-time: port to mingw
39311         * tests/test-stat-time.c (force_unlink): Return a value.
39312         (test_ctime) [W32]: Fix compilation error.
39313         (nap): Don't call usleep with too large an argument.  Use
39314         force_unlink.
39315         * doc/pastposix-functions/usleep.texi (usleep): Document the
39316         portability issue.
39317
39318 2009-10-13  Jim Meyering  <meyering@redhat.com>
39319
39320         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39321         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39322         * modules/pipe-filter-ii: Likewise.
39323         * modules/sys_socket-tests: Likewise.
39324         * modules/tsearch-tests: Likewise.
39325         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39326         (check): Depend on it.
39327
39328 2009-10-12  Eric Blake  <ebb9@byu.net>
39329
39330         utimens-tests: port to NFS file systems
39331         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39332         comparisons to avoid spurious failures from timestamp drift
39333         between NFS machines.
39334
39335 2009-10-12  Eric Blake  <ebb9@byu.net>
39336
39337         stat-time-tests: minor cleanups
39338         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39339         * tests/test-stat-time.c (nap): Separate assignment from call.
39340         Suggested by Paolo Bonzini and Bruno Haible.
39341
39342         sys_stat: guarantee struct timespec
39343         * lib/sys_stat.in.h (includes): Always include <time.h>
39344         * modules/sys_stat (Depends-on): Add time.
39345         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39346         mode_t permission values.
39347         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39348         get at subsecond timestamps.
39349
39350 2009-10-10  Eric Blake  <ebb9@byu.net>
39351
39352         futimens: new module
39353         * modules/futimens: New file.
39354         * lib/futimens.c (futimens): Likewise.
39355         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39356         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39357         we can work around Linux bugs.
39358         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39359         * modules/sys_stat (Makefile.am): Substitute them.
39360         * lib/sys_stat.in.h (futimens): Declare it.
39361         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39362         * doc/posix-functions/futimens.texi (futimens): Likewise.
39363         * modules/futimens-tests: New test.
39364         * tests/test-futimens.c: Likewise.
39365
39366         utimens: introduce fdutimens
39367         * lib/utimens.h (fdutimens): New prototype.
39368         * lib/utimens.c (gl_futimens): Move guts...
39369         (fdutimens): ...to new interface.
39370         * tests/test-utimens.c (do_fdutimens): Use it.
39371
39372         utimens: add UTIME_NOW and UTIME_OMIT support
39373         * lib/utimens.c (validate_timespec, update_timespec): New helper
39374         functions.
39375         (gl_futimens, lutimens): Use them.
39376         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39377         stdbool, sys_stat.
39378         (Link): Mention resulting library dependency.
39379         * modules/utimecmp (Link): Likewise.
39380         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39381         (Makefile.am): Pick up library dependency.
39382         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39383         definition.
39384         * tests/test-sys_stat.c: Test the definitions.
39385         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39386         * NEWS: Document library dependency.
39387
39388         utimecmp: support symlink timestamps
39389         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39390         hashing when possible.  Use pathconf when available.
39391         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39392         * modules/utimecmp (Depends-on): Add lstat.
39393
39394         utimens: add lutimens interface
39395         * lib/utimens.c (lutimens): New function.
39396         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39397         * lib/utimens.h (lutimens): Declare new interface.
39398         * tests/test-utimens.c (main): Enhance test.
39399         * tests/test-lutimens.h (test_lutimens): New file.
39400         * modules/utimens-tests (Files): Distribute it.
39401         (Depends-on): Add symlink.
39402         (configure.ac): Check for usleep.
39403
39404         utimens: validate futimens usage
39405         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39406         fewer syscalls on failure later on.  Avoid compiler warning on
39407         mingw.
39408         * modules/utimens (Depends-on): Add dup2.
39409
39410         utimens: add test
39411         * modules/utimens-tests: New test.
39412         * tests/test-utimens.h: New file.
39413         * tests/test-futimens.h: Likewise.
39414         * tests/test-utimens.c: Likewise.
39415
39416         doc: mention timestamp portability issues
39417         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39418         instead.
39419         * doc/posix-functions/utime.texi (utime): Likewise.
39420         * doc/posix-functions/utimes.texi (utimes): Likewise.
39421         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39422         instead.
39423         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39424         module.
39425         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39426         Mention weakness with symlink timestamps.
39427         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39428         to utimensat/futimens instead.
39429         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39430
39431         test-dup2: enhance test
39432         * tests/test-dup2.c (main): Also check AT_FDCWD.
39433
39434         test-stat-time: avoid more spurious failures
39435         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39436         xfs; and avoid race if the two timestamps cross quantization edge.
39437
39438         relocatable: prefer 'file system' over 'filesystem'
39439         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39440         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39441         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39442         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39443         * lib/relocatable.c (compute_curr_prefix): Likewise.
39444
39445 2009-10-10  Jim Meyering  <meyering@redhat.com>
39446
39447         stat-time-tests: check for the usleep function
39448         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39449
39450 2009-10-10  Bruno Haible  <bruno@clisp.org>
39451
39452         * modules/xnanosleep: Put the Link section after the Include section.
39453
39454 2009-10-09  Eric Blake  <ebb9@byu.net>
39455
39456         dup2: work around FreeBSD 6.1 bug
39457         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39458         * doc/posix-functions/dup2.texi (dup2): Document it.
39459         Reported by Nelson H. F. Beebe and Jim Meyering.
39460
39461         test-stat-time: port to buggy NFS clients
39462         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39463         (test_ctime): Also skip test if mtime and ctime are skewed.
39464
39465         maint: prefer 'file system' over 'filesystem'
39466         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39467         * doc/posix-functions/lstat.texi (lstat): Likewise.
39468         * lib/file-has-acl.c (file_has_acl): Likewise.
39469         * lib/fwriteerror.c [TEST]: Likewise.
39470         * tests/test-areadlink.h (test_areadlink): Likewise.
39471         * tests/test-areadlinkat-with-size.c (main): Likewise.
39472         * tests/test-areadlinkat.c (main): Likewise.
39473         * tests/test-canonicalize-lgpl.c (main): Likewise.
39474         * tests/test-canonicalize.c (main): Likewise.
39475         * tests/test-fstatat.c (main): Likewise.
39476         * tests/test-linkat.c (main): Likewise.
39477         * tests/test-lstat.h (test_lstat_func): Likewise.
39478         * tests/test-mkdir.h (test_mkdir): Likewise.
39479         * tests/test-readlink.h (test_readlink): Likewise.
39480         * tests/test-remove.c (main): Likewise.
39481         * tests/test-rename.h (test_rename): Likewise.
39482         * tests/test-renameat.c (main): Likewise.
39483         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39484         * tests/test-symlink.h (test_symlink): Likewise.
39485         * tests/test-symlinkat.c (main): Likewise.
39486         * tests/test-unlink.h (test_unlink_func): Likewise.
39487         * tests/test-unlinkat.c (main): Likewise.
39488
39489         maint: make realtime library usage explicit
39490         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39491         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39492         * modules/settime (Link): Likewise.
39493         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39494
39495         test-stat-time: speed up execution
39496         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39497         warning on mingw.
39498         (nap): New helper function.
39499         (prepare_test): Use it to reduce sleep time.
39500         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39501         execution.
39502         * modules/stat-time-tests (configure.ac): Check for usleep.
39503
39504 2009-10-09  Jim Meyering  <meyering@redhat.com>
39505
39506         selinux-h: always use getfilecon wrappers
39507         * lib/getfilecon.c: New file.
39508         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39509         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39510         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39511         (fgetfilecon): Provide a stub.
39512         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39513         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39514         file unconditionally.
39515         When <selinux/selinux.h> is found, arrange to use wrappers.
39516         * modules/selinux-h (Files): Add getfilecon.c.
39517         (Makefile.am): Substitute include-next-related bits
39518         into the now-always-generated selinux/selinux.h file.
39519         * doc/glibc-functions/lgetfilecon.texi: New file.
39520         * doc/glibc-functions/fgetfilecon.texi: New file.
39521         * doc/glibc-functions/getfilecon.texi: New file.
39522         * doc/glibc-functions/getfilecon-desc.texi: New file.
39523         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39524         which to pull in the new files.
39525         * MODULES.html.sh (Misc): Add selinux-h.
39526
39527 2009-10-08  Jim Meyering  <meyering@redhat.com>
39528
39529         unistd: fix comment typo
39530         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39531
39532 2009-10-08  Eric Blake  <ebb9@byu.net>
39533
39534         areadlink: use SIZE_MAX consistently
39535         * modules/areadlink (Depends-on): Add stdint.
39536         * modules/areadlink-with-size (Depends-on): Likewise.
39537         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39538         gives NULL; drop sys/types, since unistd gives size_t; and add
39539         stdint for SIZE_MAX.
39540         (SIZE_MAX): Rely on headers.
39541         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39542         and add stdint.
39543         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39544         (SIZE_MAX): Likewise.
39545         (INITIAL_BUF_SIZE): Turn into enum.
39546         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39547
39548 2009-10-08  Jim Meyering  <meyering@redhat.com>
39549
39550         areadlinkat: avoid compilation failure
39551         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39552         Fix typo in comment.
39553
39554 2009-10-07  Eric Blake  <ebb9@byu.net>
39555
39556         areadlinkat-with-size: new module
39557         * modules/areadlinkat-with-size: New module.
39558         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39559         * lib/areadlink.h (areadlinkat): Declare it.
39560         * MODULES.html.sh (File system functions): Mention it.
39561         * modules/areadlinkat-with-size-tests: New test.
39562         * tests/test-areadlinkat-with-size.c: New file.
39563
39564         xreadlinkat: new module
39565         * modules/xreadlinkat: New module.
39566         * lib/xreadlinkat.c (xreadlinkat): New file.
39567         * lib/xreadlink.h (xreadlinkat): Declare it.
39568         * MODULES.html.sh (File system functions): Mention it.
39569
39570         areadlinkat: new module
39571         * lib/at-func.c (FUNC_FAIL): New define.
39572         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39573         * modules/areadlinkat: New module.
39574         * lib/linkat.c (areadlinkat): Move...
39575         * lib/areadlinkat.c (areadlinkat): ...to new file.
39576         * lib/areadlink.h (areadlinkat): Declare it.
39577         * modules/linkat (Depends-on): Add areadlinkat.
39578         * MODULES.html.sh (File system functions): Mention it.
39579         * modules/areadlinkat-tests: New test.
39580         * tests/test-areadlinkat.c: New file.
39581
39582         areadlink, areadlink-with-size: add tests
39583         * modules/areadlink-tests: New test.
39584         * modules/areadlink-with-size-tests: Likewise.
39585         * tests/test-areadlink.h: New file.
39586         * tests/test-areadlink.c: Likewise.
39587         * tests/test-areadlink-with-size.c: Likewise.
39588
39589         maint: minor cleanups
39590         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39591         _UNUSED_PARAMETER_ instead.
39592         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39593         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39594         * modules/linkat-tests (Files): Distribute test-link.h.
39595
39596         openat, utimens: whitespace cleanup
39597         * lib/openat.c: Prefer space throughout, rather than mix of 8
39598         spaces vs. tabs.
39599         * lib/at-func.c: Likewise.
39600         * lib/utimens.c: Likewise.
39601
39602         openat: avoid using wrong fd
39603         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39604         working directory chooses same fd.
39605         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39606
39607         mkdir, mkdirat: fix cygwin 1.5.x bug
39608         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39609         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39610         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39611         bug.
39612         (gl_PREREQ_MKDIR): Delete unused macro.
39613         * modules/mkdir (Files): Track file rename.
39614         (configure.ac): Update macro name.
39615         * modules/openat (Depends-on): Add mkdir.
39616         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39617
39618         mkdir, mkdirat: add tests
39619         * modules/mkdir-tests: New test.
39620         * tests/test-mkdir.h: New file.
39621         * tests/test-mkdir.c: Likewise.
39622         * tests/test-mkdirat.c: Likewise.
39623         * modules/openat-tests (Files): Add new files.
39624         (Makefile.am): Run new test.
39625
39626 2009-10-06  Eric Blake  <ebb9@byu.net>
39627
39628         doc: tweak *at function documentation
39629         * doc/posix-functions/faccessat.texi (faccessat): Mention
39630         known issue with replacement.
39631         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39632         * doc/posix-functions/linkat.texi (linkat): Likewise.
39633         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39634         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39635         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39636         * doc/posix-functions/renameat.texi (renameat): Likewise.
39637         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39638
39639         openat: fix GNU/Hurd bug in unlinkat
39640         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39641         broken.
39642         * doc/posix-functions/unlink.texi (unlink): Document this.
39643         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39644
39645         fdopendir: fix GNU/Hurd bug
39646         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39647         allowing non-directory fds.
39648         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39649         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39650         * modules/dirent (Makefile.am): Substitute it.
39651         * lib/dirent.in.h (fdopendir): Declare replacement.
39652         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39653         * tests/test-fdopendir.c (main): Test something other than
39654         /dev/null, since on Hurd that behaves like a directory.
39655
39656         test-symlink: port to GNU/Hurd
39657         * tests/test-symlink.h (test_symlink): Relax expected errno.
39658
39659         doc: tweak more cygwin information
39660         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39661         now compatible with glibc.
39662         * doc/posix-functions/getopt.texi (getopt): Likewise.
39663
39664         getopt-gnu: add another test
39665         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39666         guarantee behavior relied on by m4.
39667         * tests/test-getopt.c (main): Use it.
39668         * modules/getopt-posix-tests (Depends-on): Add setenv.
39669         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39670
39671         getopt: fix compilation on darwin
39672         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39673         include.
39674         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39675         Reported by Ludovic Courtès.
39676
39677 2009-10-06  Bruno Haible  <bruno@clisp.org>
39678
39679         * modules/size_max (Description): Discourage its use.
39680         Reported by Simon Josefsson.
39681
39682 2009-10-06  Jim Meyering  <meyering@redhat.com>
39683
39684         linkat: avoid compilation failure
39685         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39686
39687 2009-10-05  Eric Blake  <ebb9@byu.net>
39688
39689         linkat: support Linux 2.6.17
39690         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39691         linkat on Linux, but allow cache variable override.
39692         * lib/linkat.c (rpl_linkat): Define override.
39693         * modules/linkat (Depends-on): Add symlinkat.
39694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39695         * modules/unistd (Makefile.am): Substitute it.
39696         * lib/unistd.in.h (linkat): Declare replacement.
39697         Reported by Pádraig Brady.
39698
39699         quotearg: port test to systems with C.UTF-8 locale
39700         * tests/test-quotearg.c (struct result_strings): Add another
39701         member, differentiating between C.ASCII and C.UTF-8 handling.
39702         (compare_strings): Add parameter.
39703         (main): Adjust all callers.
39704
39705         getopt: avoid clash with FreeBSD _getopt_internal
39706         * lib/getopt.in.h (_getopt_internal): Override the name.
39707         * lib/getopt_int.h (includes): Pick up any overrides.
39708         Reported by Reuben Thomas.
39709
39710         hash: allow C89 compilation
39711         * lib/hash.c (check_tuning): Move declaration before statement.
39712         Reported by Reuben Thomas.
39713
39714 2009-10-05  Karl Berry  <karl@gnu.org>
39715
39716         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39717
39718 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39719             Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/uname.c (uname): Use a table-driven algorithm to compute
39722         Windows NT versions.
39723
39724 2009-10-04  Bruno Haible  <bruno@clisp.org>
39725
39726         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39727         program_invocation_short_name.
39728         * modules/progname (configure.ac): Test for presence of
39729         program_invocation_short_name.
39730         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39731
39732 2009-10-04  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/progname.c (set_program_name): Fix comment.
39735         Reported by Jim Meyering.
39736
39737 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39738             Bruno Haible  <bruno@clisp.org>
39739
39740         * lib/uname.c: Include <string.h>.
39741         (uname): Do only one call to GetVersionEx in the common case.
39742
39743 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39744             Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39747         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39748         (uname): Add support for Windows CE and various non-x86 CPU types.
39749
39750 2009-10-03  Bruno Haible  <bruno@clisp.org>
39751
39752         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39753         invocation to tests/configure.ac.
39754         Reported by Ian Beckwith <ianb@erislabs.net>.
39755
39756 2009-10-02  Eric Blake  <ebb9@byu.net>
39757
39758         fchdir: avoid compiler warning
39759         * lib/fchdir.c (canonicalize_file_name)
39760         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39761
39762         test-open: support mingw errno values
39763         * tests/test-open.h (test_open): Relax test.
39764         * tests/test-fopen.h (test_fopen): Likewise.
39765         * tests/test-openat-safer.c (main): Likewise.
39766
39767         open: fix opening directory on mingw
39768         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39769
39770         test-open: on GNU/Hurd, /dev/null is a directory
39771         * tests/test-fopen.h (main): Rename...
39772         (test_fopen): ...to this.  Use a guaranteed non-directory when
39773         confirming open behavior on trailing slash.
39774         * tests/test-openat-safer.c (main): Likewise.
39775         * tests/test-open.h (main): Likewise....
39776         (test_open): ...to this.
39777         * tests/test-fopen.c (main): Adjust caller.
39778         * tests/test-fopen-safer.c (main): Likewise.
39779         * tests/test-open.c (main): Likewise.
39780         * tests/test-fcntl-safer.c (main): Likewise.
39781         Reported by Samuel Thibault.
39782
39783         rename, fchdir: don't ignore chdir failure
39784         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39785         * lib/rename.c (rpl_rename) [W32]: Likewise.
39786         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39787         an empty destination directory if source cannot be renamed,
39788         although there is still possibility for failure.
39789         * doc/posix-functions/rename.texi (rename): Document the race.
39790         Reported by Jim Meyering.
39791
39792         maint: cleanup whitespace in recent commits
39793         * lib/rename.c (rpl_rename): Remove tabs.
39794         * tests/test-link.h (test_link): Likewise.
39795         * lib/fchdir.c (get_name): Likewise.
39796         Reported by Jim Meyering.
39797
39798 2009-10-02  Ben Pfaff  <blp@gnu.org>
39799
39800         relocatable-prog-wrapper: Add missing dependency on
39801         double-slash-root.
39802         * modules/relocatable-prog-wrapper: Add dependency.
39803         Reported by Ian Beckwith <ianb@erislabs.net>.
39804
39805 2009-10-02  Eric Blake  <ebb9@byu.net>
39806
39807         renameat: fix Solaris bugs
39808         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39809         needed fixing.
39810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39811         * modules/stdio (Makefile.am): Substitute it.
39812         * lib/stdio.in.h (renameat): Declare replacement.
39813         * lib/renameat.c (rpl_renameat): Implement fix.
39814
39815         renameat: new module
39816         * modules/renameat: New file.
39817         * lib/renameat.c (renameat): Likewise.
39818         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39820         * modules/stdio (Makefile.am): Substitute them.
39821         * lib/stdio.in.h (renameat): Declare it.
39822         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39823         * doc/posix-functions/renameat.texi (renameat): Likewise.
39824         * modules/renameat-tests: New test.
39825         * tests/test-renameat.c: Likewise.
39826
39827         rename: fix mingw bugs
39828         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39829         directory overwrite bugs.
39830
39831         rename: fix another cygwin 1.5 bug
39832         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39833         checks.
39834         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39835         unnecessary cygwin workarounds.  Also work around bug with moving
39836         full directory onto an empty one.
39837         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39838
39839         rename-dest-slash: merge into rename module
39840         * modules/rename-dest-slash (Status): Mark obsolete.
39841         (Depends-on): Add rename.
39842         (Files): Let rename do it all.
39843         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39844         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39845         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39846         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39847         * lib/rename.c (rpl_rename): Update comments.
39848
39849         rename: fix cygwin 1.5.x bugs
39850         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39851         * lib/rename.c (rpl_rename): Work around them.
39852         * modules/rename (Depends-on): Add same-inode.
39853
39854         rename: fix Solaris 10 bug
39855         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39856         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39857         was the only bug.
39858
39859         rename: fix Solaris 9 bug
39860         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39861         on non-directory.  Avoid calling exit.
39862         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39863         strdup.
39864         * modules/rename-tests (Depends-on): Drop lstat.
39865         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39866         (gl_PREREQ_RENAME): Delete unused macro.
39867
39868         rename-dest-slash: fix NetBSD bug
39869         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39870         links.
39871         * modules/rename-dest-slash (Depends-on): Add same-inode.
39872
39873         rename-tests: new test, exposes several platform bugs
39874         * modules/rename-tests: New file.
39875         * tests/test-rename.h: Likewise.
39876         * tests/test-rename.c: Likewise.
39877         * doc/posix-functions/rename.texi (rename): Improve documentation,
39878         including bugs that will eventually be fixed in gnulib.
39879
39880 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39881
39882         * lib/uname.c: Include <stdlib.h>
39883         (uname): Assume version info is available.
39884
39885 2009-10-02  Jim Meyering  <meyering@redhat.com>
39886
39887         gnu-web-doc-update: correct --help output
39888         * build-aux/gnu-web-doc-update: Make --help output relevant.
39889
39890         gnu-web-doc-update: add standard options
39891         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39892
39893         gnu-web-doc-update: New module.
39894         Use this script to automatically update the on-line web documentation
39895         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39896         * modules/gnu-web-doc-update: New file, from coreutils.
39897         * build-aux/gnu-web-doc-update: New script.
39898
39899 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39900
39901         link: LoadLibrary is not needed.
39902         * lib/link.c: Use GetModuleHandle.
39903
39904 2009-10-01  Eric Blake  <ebb9@byu.net>
39905
39906         getopt: bump serial number
39907         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39908         change.
39909
39910         tests: tighten link, rmdir, and remove tests
39911         * tests/test-link.h (includes): No need to use <config.h> here.
39912         Clean up if directory hard link was created, otherwise test for
39913         trailing '.'.
39914         * tests/test-linkat.c (main): Simplify.
39915         * tests/test-remove.c (main): Enhance test for trailing '.'.
39916         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39917
39918 2009-10-01  Jim Meyering  <meyering@redhat.com>
39919
39920         maint.mk: requiring "make major" was annoying, for a "minor" release.
39921         What is intended is "stable", to contrast with alpha and beta,
39922         so require "make stable", not "make major".
39923         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39924         (get_tool_versions): Likewise.
39925         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39926
39927 2009-09-30  Ben Pfaff  <blp@gnu.org>
39928
39929         Fix broken build of replacement for Windows tmpfile().
39930         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39931         flags argument added along with the 'mkostemp' module.
39932
39933 2009-09-28  Bruno Haible  <bruno@clisp.org>
39934
39935         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39936         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39937         to 'remove_elt'.
39938         (gl_list_remove): Update.
39939         * lib/gl_list.c (gl_list_remove): Update.
39940         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39941         to 'remove_elt'.
39942         (gl_oset_remove): Update.
39943         * lib/gl_list.c (gl_oset_remove): Update.
39944         Reported by Eric Blake.
39945
39946 2009-09-28  Eric Blake  <ebb9@byu.net>
39947
39948         doc: mention yet more cygwin 1.7 status
39949         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39950         cygwin.
39951         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39952         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39953
39954         argp: fix test failure
39955         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39956         that are not upper-case.  Pass correct range to tolower.
39957
39958 2009-09-27  Jim Meyering  <meyering@redhat.com>
39959
39960         test-yesno: work around sparc-dash here-document infelicity
39961         Without this change, the literal \177 byte in a here document
39962         would make dash 0.5.5.1-3 access uninitialized memory.
39963         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39964         Instead, use a marker, "@", and filter through tr to create the desired
39965         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39966
39967 2009-09-27  Bruno Haible  <bruno@clisp.org>
39968
39969         Disable untested support for new flavours of ACLs on AIX.
39970         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39971         progress.
39972         * lib/set-mode-acl.c (qset_acl): Likewise.
39973
39974 2008-12-07  Bruno Haible  <bruno@clisp.org>
39975
39976         Add support for new flavours of ACLs on AIX. (Untested.)
39977         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39978         (file_has_acl): Add support for newer AIX.
39979         * lib/set-mode-acl.c (qset_acl): Likewise.
39980         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39981         Rainer Tammer <tammer@tammer.net>.
39982
39983 2009-09-26  Eric Blake  <ebb9@byu.net>
39984
39985         argp: fix compilation of getopt
39986         * lib/getopt.in.h (includes): Use different guard than glibc.
39987         Reported by Sergey Poznyakoff.
39988
39989         doc: mention more cygwin 1.7 status
39990         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39991         bug.
39992         * doc/posix-functions/execl.texi (execl): Likewise.
39993         * doc/posix-functions/execle.texi (execle): Likewise.
39994         * doc/posix-functions/execlp.texi (execlp): Likewise.
39995         * doc/posix-functions/execv.texi (execv): Likewise.
39996         * doc/posix-functions/execve.texi (execve): Likewise.
39997         * doc/posix-functions/execvp.texi (execvp): Likewise.
39998         * doc/glibc-functions/canonicalize_file_name.texi
39999         (canonicalize_file_name): Cygwin 1.7 now provides this.
40000         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40001         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40002         on AT_SYMLINK_NOFOLLOW.
40003
40004 2009-09-24  Eric Blake  <ebb9@byu.net>
40005
40006         test-linkat: make test more robust
40007         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40008
40009         getopt: fix inclusion guards for cygwin
40010         * modules/getopt-posix (Depends-on): Add include-next.
40011         (Makefile.am): Substitute more items in replacement header.
40012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40013         <getopt.h>.
40014         * lib/getopt.in.h (includes): Use split inclusion guard, and
40015         prefer <getopt.h> over include <unistd.h> when one is present.
40016         (option): Also override name of 'struct option'.
40017
40018         same-inode: revert prior change; it is not yet ready
40019         * NEWS: Undo mention of this change.
40020         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40021         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40022         * lib/cycle-check.c (cycle_check): Likewise.
40023         * lib/same.c (same_name): Likewise.
40024         * lib/at-func2.c (at_func2): Likewise.
40025
40026 2009-09-23  Eric Blake  <ebb9@byu.net>
40027
40028         linkat: new module
40029         * modules/linkat: New file.
40030         * lib/at-func2.c (at_func2): Likewise.
40031         * lib/linkat.c (linkat): Likewise.
40032         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40033         * lib/openat-priv.h (at_func2): Add declaration.
40034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40035         * modules/unistd (Makefile.am): Substitute them.
40036         * lib/unistd.in.h (linkat): Declare it.
40037         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40038         * doc/posix-functions/linkat.texi (linkat): Likewise.
40039         * doc/posix-functions/link.texi (link): Tweak wording.
40040         * tests/test-link.c (main): Move guts...
40041         * tests/test-link.h (test_link): ...into new file.
40042         * modules/linkat-tests: New test.
40043         * tests/test-linkat.c: Likewise.
40044         * modules/link-tests (Files): Ship new file.
40045         (Depends-on): Add stdbool.
40046
40047         dirname: add library-safe mdir_name
40048         * lib/dirname.h (mdir_name): New prototype.
40049         * lib/dirname.c (dir_name): Move guts...
40050         (mdir_name): ...to new function that avoids xalloc_die.
40051
40052         fchdir: another mingw fix
40053         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40054         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40055         on mingw (where it has not yet been ported), and make it optional
40056         elsewhere.
40057         (_gl_register_fd): Use it.
40058
40059         same-inode: make SAME_INODE tri-state, to port to mingw
40060         * NEWS: Mention this change.
40061         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40062         st_ino always being 0.
40063         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40064         * lib/cycle-check.c (cycle_check): Likewise.
40065         * lib/same.c (same_name): Likewise.
40066
40067         lstat: avoid mingw compilation error
40068         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40069         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40070         lstat ourselves.
40071         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40072         was adequate.
40073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40074         the checks for lstat.
40075         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40076
40077         link: fix test failure on Solaris 9
40078         * lib/link.c (rpl_link): Don't assume link will catch bogus
40079         trailing slash on source.
40080
40081         test-symlinkat: enhance test
40082         * tests/test-readlink.c (main): Move guts...
40083         * tests/test-readlink.h (test_readlink): ...into new file.
40084         * tests/test-symlink.c (main): Move guts...
40085         * tests/test-symlink.h (test_symlink): ...into new file.
40086         * tests/test-symlinkat.c (main): Use new files for further
40087         coverage.
40088         (do_symlink, do_readlink): New helper functions.
40089         * modules/symlink-tests (Files): Ship new file.
40090         (Depends-on): Add stdbool.
40091         * modules/readlink-tests (Files): Ship new file.
40092         (Depends-on): Add stdbool.
40093         * modules/symlinkat-tests (Files): Use new files.
40094
40095 2009-09-23  Eric Blake  <ebb9@byu.net>
40096
40097         readlink: document portability issue with symlink length
40098         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40099         systems have bogus st_size on symlinks, and mention the
40100         areadlink-with-size module.
40101         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40102         * doc/posix-functions/readlink.texi (readlink): Mention the
40103         areadlink module, and ERANGE failure.
40104         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40105         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40106
40107         readlink: fix Solaris 9 bug with trailing slash
40108         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40109         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40110         * doc/posix-functions/readlink.texi (readlink): Document this.
40111         * modules/readlink-tests: New test.
40112         * tests/test-readlink.c: Likewise.
40113
40114         readlink: fix cygwin 1.5.x bug with return type
40115         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40116         * lib/unistd.in.h (readlink): Use ssize_t.
40117         * lib/readlink.c (readlink): Likewise.
40118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40119         * modules/unistd (Makefile.am): Substitute it.
40120         * lib/unistd.in.h (readlink): Declare replacement.
40121         * doc/posix-functions/readlink.texi (readlink): Document this.
40122
40123         symlink: use throughout gnulib
40124         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40125         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40126         symlink is not used.
40127         * modules/symlinkat (Depends-on): Add symlink.
40128         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40129         * modules/canonicalize-tests (Depends-on): Likewise.
40130         * modules/lstat-tests (Depends-on): Likewise.
40131         * modules/openat-tests (Depends-on): Likewise.
40132         * modules/remove-tests (Depends-on): Likewise.
40133         * modules/rmdir-tests (Depends-on): Likewise.
40134         * modules/unlink-tests (Depends-on): Likewise.
40135         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40136         * tests/test-canonicalize.c (symlink): Likewise.
40137         * tests/test-fstatat.c (symlink): Likewise.
40138         * tests/test-lstat.c (symlink): Likewise.
40139         * tests/test-remove.c (symlink): Likewise.
40140         * tests/test-rmdir.c (symlink): Likewise.
40141         * tests/test-unlink.c (symlink): Likewise.
40142         * tests/test-unlinkat.c (symlink): Likewise.
40143
40144         symlink: new module, for Solaris 9 bug
40145         * modules/symlink: New file.
40146         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40147         * lib/symlink.c: Likewise.
40148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40149         * modules/unistd (Makefile.am): Substitute them.
40150         * lib/unistd.in.h (symlink): Declare replacement.
40151         * MODULES.html.sh (File system functions): Mention it.
40152         * doc/posix-functions/symlink.texi (symlink): Likewise.
40153         * modules/symlink-tests: New test.
40154         * tests/test-symlink.c: Likewise.
40155
40156 2009-09-23  Bruno Haible  <bruno@clisp.org>
40157
40158         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40159         when needed.
40160         Test case: gnulib-tool --import --with-tests atexit inttypes.
40161         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40162
40163 2009-09-23  Bruno Haible  <bruno@clisp.org>
40164
40165         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40166         subcommand, not in a subshell.
40167
40168 2009-09-22  Eric Blake  <ebb9@byu.net>
40169
40170         unistd: sort replacement declarations
40171         * lib/unistd.in.h: Sort declarations.
40172
40173         open, openat: minor optimization
40174         * lib/open.c (open): If open succeeded, len is non-zero.
40175         * lib/openat.c (rpl_openat): Likewise.
40176
40177         link-follow: ensure correct result
40178         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40179         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40180         distinguish between possible failures.
40181
40182 2009-09-21  Eric Blake  <ebb9@byu.net>
40183
40184         fts: avoid compiler warning
40185         * lib/fts.c (dirent_inode_sort_may_be_useful)
40186         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40187
40188 2009-09-19  Bruno Haible  <bruno@clisp.org>
40189
40190         * lib/progreloc.c (canonicalize_file_name): New declaration.
40191
40192 2009-09-19  Eric Blake  <ebb9@byu.net>
40193
40194         link: fix quoting
40195         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40196
40197         openat: fix openat bugs on Solaris 9
40198         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40199         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40200         * modules/openat (Depends-on): Add open.
40201         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40202         * modules/fcntl-h (Makefile.am): Substitute it.
40203         * lib/fcntl.in.h (openat): Declare replacement.
40204         * doc/posix-functions/openat.texi (openat): Document this.
40205
40206         openat: move fstatat and unlinkat into correct files
40207         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40208         compiled.
40209         * lib/openat.c (fstatat, unlinkat): Move...
40210         * lib/fstatat.c (fstatat): ...into correct files.
40211         * lib/unlinkat.c (unlinkat): Likewise.
40212
40213         openat: fix unlinkat bugs on Solaris 9
40214         * lib/unlinkat.c (unlinkat): New file.
40215         * modules/openat (Depends-on): Add unlink.
40216         (Files): Distribute it.
40217         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40218         trailing slash behavior is broken.
40219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40220         * modules/unistd (Makefile.am): Substitute it.
40221         * lib/unistd.in.h (unlinkat): Declare replacement.
40222         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40223
40224         openat: fix fstatat bugs on Solaris 9
40225         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40226         stat.
40227         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40228
40229         test-unlinkat: enhance test, to expose Solaris 9 bug
40230         * tests/test-unlink.c (main): Factor guts...
40231         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40232         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40233         * tests/test-rmdir.c (main): Adjust caller.
40234         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40235         (unlinker): New helper function.
40236         (rmdirat): Enhance check.
40237         * modules/rmdir-tests (Depends-on): Add stdbool.
40238         * modules/unlink-tests (Depends-on): Likewise.
40239         (Files): Add test-unlink.h.
40240         * modules/openat-tests (Files): Likewise.
40241         (Depends-on): Add unlinkdir.
40242
40243         test-fstatat: new test, to expose Solaris 9 bugs
40244         * tests/test-stat.c (main): Factor guts...
40245         * tests/test-stat.h (test_stat_func): ...into new file.
40246         * tests/test-lstat.c (main): Factor guts...
40247         * tests/test-lstat.h (test_lstat_func): ...into new file.
40248         * tests/test-fstatat.c: New file.
40249         * modules/stat-tests (Files): Add test-stat.h.
40250         * modules/lstat-tests (Files): Add test-lstat.h.
40251         (Depends-on): Add stdbool.
40252         * modules/openat-tests (Depends-on): Add pathmax.
40253         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40254         (Makefile.am): Run new test.
40255
40256         remove: new module, for mingw and Solaris 9 bugs
40257         * modules/remove: New file.
40258         * lib/remove.c: Likewise.
40259         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40261         * modules/stdio (Makefile.am): Use them.
40262         * lib/stdio.in.h (remove): Declare replacement.
40263         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40264         * doc/posix-functions/remove.texi (remove): Likewise.
40265         * modules/remove-tests: New test.
40266         * tests/test-remove.c: Likewise.
40267
40268         unlink: new module, for Solaris 9 bug
40269         * modules/unlink: New file.
40270         * lib/unlink.c: Likewise.
40271         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40273         * modules/unistd (Makefile.am): Use them.
40274         * lib/unistd.in.h (stat): Declare replacement.
40275         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40276         * doc/posix-functions/unlink.texi (unlink): Likewise.
40277         * modules/unlink-tests: New test.
40278         * tests/test-unlink.c: Likewise.
40279
40280         lstat: fix Solaris 9 bug
40281         * lib/lstat.c (lstat): Also check for trailing slash on
40282         non-symlink, non-directories.  Use stat module to simplify logic.
40283         * doc/posix-functions/lstat.texi (lstat): Document it.
40284         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40285         (configure.ac): Check for symlink.
40286         * tests/test-lstat.c (main): Add more tests.
40287
40288         stat: add as dependency to other modules
40289         * modules/chown (Depends-on): Add stat.
40290         * modules/euidaccess (Depends-on): Likewise.
40291         * modules/fchdir (Depends-on): Likewise.
40292         * modules/isdir (Depends-on): Likewise.
40293         * modules/link (Depends-on): Likewise.
40294         * modules/lstat (Depends-on): Likewise.
40295         * modules/mkdir-p (Depends-on): Likewise.
40296         * modules/modechange (Depends-on): Likewise.
40297         * modules/open (Depends-on): Likewise.
40298         * modules/readlink (Depends-on): Likewise.
40299         * modules/same (Depends-on): Likewise.
40300
40301         stat: fix Solaris 9 bug
40302         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40303         slash.
40304         * lib/stat.c (rpl_stat): Work around it.
40305         * doc/posix-functions/stat.texi (stat): Update documentation.
40306
40307         stat: new module, for mingw bug
40308         * modules/stat: New file.
40309         * lib/stat.c: Likewise.
40310         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40312         * modules/sys_stat (Makefile.am): Use them.
40313         * lib/sys_stat.in.h (stat): Declare replacement.
40314         * lib/openat.c (fstatat): Deal with lstat and stat being function
40315         macros.
40316         * modules/openat (Depends-on): Add inline.
40317         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40318         * doc/posix-functions/stat.texi (stat): Likewise.
40319         * modules/stat-tests: New test.
40320         * tests/test-stat.c: Likewise.
40321
40322 2009-09-19  Jim Meyering  <meyering@redhat.com>
40323
40324         syntax-check: detect unnecessary inclusion of canonicalize.h
40325         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40326
40327 2009-09-19  Eric Blake  <ebb9@byu.net>
40328
40329         canonicalize-lgpl: adjust clients to use correct header
40330         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40331         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40332         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40333         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40334         * lib/progreloc.c (includes): Likewise.
40335
40336 2009-09-19  Jim Meyering  <meyering@redhat.com>
40337
40338         test-posixtm.c: correct a comment
40339         * tests/test-posixtm.c: Correct first-line comment.
40340         Spotted by Eric Blake.
40341
40342 2009-09-16  Jim Meyering  <meyering@redhat.com>
40343
40344         posixtm-tests: make T const-correct; add a test case
40345         * tests/test-posixtm.c (T): Declare const.
40346         Add a test for -(2^31+1).
40347         Remove useless can-succeed-only-in-2002 test.
40348
40349         posixtm-tests: adjust the sole failing test
40350         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40351         expected output matches what mktime now produces.  Cross-checked via
40352         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40353
40354         posixtm: move #ifdef'd tests into a new module
40355         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40356         * tests/test-posixtm.c: ... this new file.
40357         * modules/posixtm-tests: New module.
40358
40359 2009-09-19  Eric Blake  <ebb9@byu.net>
40360
40361         openat: simplify use of at-func.c
40362         * lib/at-func.c (includes): Include prerequisites here, to
40363         simplify requirements on client files.
40364         * lib/openat-priv.h: Add double-inclusion guard.
40365         * lib/faccessat.c (includes): Simplify.
40366         * lib/fchmodat.c (includes): Likewise.
40367         * lib/fchownat.c (includes): Likewise.
40368         * lib/mkdirat.c (includes): Likewise.
40369         * lib/mkfifoat.c (includes): Likewise.
40370         * lib/symlinkat.c (includes): Likewise.
40371
40372         openat: allow return of fd 0
40373         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40374         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40375         unistd-safer.
40376         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40377         <fcntl.h>; this module does not leak fds.
40378         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40379         must be allowed to return 0, leaving openat_safer to add the
40380         safety.
40381         (openat_permissive): Avoid writing to just-opened fd 2 if
40382         restoring the current directory fails.
40383         * lib/openat-die.c (openat_restore_fail): Add comment.
40384         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40385         (save_cwd): Guarantee safe fd, but without use of open_safer.
40386         * tests/test-openat.c: New test.
40387         * modules/openat-tests (Files, Makefile.am): Distribute and build
40388         new file.
40389
40390         relocatable-prog-wrapper: fix build
40391         * modules/relocatable-prog-wrapper (Files): Update name of
40392         canonicalize m4 file, broken on 2009-09-17.
40393         Reported by emad hajjar <aleppos@hotmail.com>.
40394
40395 2009-09-19  Bruno Haible  <bruno@clisp.org>
40396
40397         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40398         * lib/safe-alloc.c: Likewise.
40399         Reported by Ian Beckwith <ianb@erislabs.net>.
40400
40401 2009-09-18  Bruno Haible  <bruno@clisp.org>
40402
40403         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40404         Reported by <erobles@sensacd.com.mx>.
40405
40406 2009-09-17  Eric Blake  <ebb9@byu.net>
40407
40408         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40409         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40410         slashes when checking if last component is missing.
40411         * tests/test-canonicalize.c (main): Test this.
40412
40413         canonicalize, canonicalize-lgpl: honor // if distinct from /
40414         * modules/canonicalize (Files): Add double-slash-root.m4.
40415         * modules/canonicalize-lgpl (Files): Likewise.
40416         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40417         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40418         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40419         fallback definition.
40420         (canonicalize_filename_mode): Use it to protect //.
40421         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40422         (__realpath): Likewise.
40423         * tests/test-canonicalize.c (main): Test this.
40424         * tests/test-canonicalize-lgpl.c (main): Likewise.
40425         * modules/canonicalize-tests (Depends-on): Add same-inode.
40426         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40427
40428         canonicalize-lgpl: fix glibc bug with trailing slash
40429         * m4/canonicalize-lgpl.m4: Move contents...
40430         * m4/canonicalize.m4: ...here.
40431         (gl_CANONICALIZE_LGPL): Factor realpath check...
40432         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40433         glibc 2.3.5 bug, fixed 2005-04-27.
40434         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40435         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40436         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40437         * modules/canonicalize-lgpl (Files): Manage file rename.
40438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40439         * modules/stdlib (Makefile.am): Substitute witness.
40440         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40441         is needed.
40442         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40443         replacement is required.
40444         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40445         * doc/glibc-functions/canonicalize_file_name.texi
40446         (canonicalize_file_name): Document this.
40447         * doc/posix-functions/realpath.texi (realpath): Likewise.
40448
40449         canonicalize-lgpl: reject non-directory with trailing slash
40450         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40451         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40452         catches failures in glibc 2.3.5.
40453         * tests/test-canonicalize.c (main): Likewise.
40454
40455         canonicalize-lgpl: use native realpath if it works
40456         * lib/canonicalize-lgpl.c (realpath): Guard with
40457         FUNC_REALPATH_WORKS.
40458         * lib/stdlib.in.h (realpath): Make declaration optional based on
40459         HAVE_REALPATH.
40460         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40461         native realpath works.
40462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40463         * modules/stdlib (Makefile.am): Substitute witness.
40464
40465         canonicalize, canonicalize-lgpl: use <stdlib.h>
40466         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40467         (Include): Mention <stdlib.h>.
40468         (configure.ac): Mention functions we provide.
40469         * modules/canonicalize (configure.ac): Likewise.
40470         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40471         realpath if canonicalize_file_name is missing.
40472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40473         * modules/stdlib (Makefile.am): Substitute witnesses.
40474         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40475         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40476         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40477         * NEWS: Document this.
40478         * doc/glibc-functions/canonicalize_file_name.texi
40479         (canonicalize_file_name): Likewise.
40480         * doc/posix-functions/realpath.texi (realpath): Likewise.
40481         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40482
40483         test-canonicalize: consolidate into single C program
40484         * tests/test-canonicalize.sh: Delete; move setup into...
40485         * tests/test-canonicalize.c (main): ...the program, making it
40486         easier to run in debugger.  Add some tests.
40487         * modules/canonicalize-tests (Files): Remove unused file.
40488         (Depends-on): Add progname.
40489         (configure.ac, Makefile.am): Simplify.
40490
40491         test-canonicalize-lgpl: consolidate into single C program
40492         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40493         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40494         easier to run in debugger.  Add some tests.
40495         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40496         (configure.ac, Makefile.am): Simplify.
40497
40498         canonicalize: avoid resolvepath
40499         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40500         unnecessary checks.
40501         * lib/canonicalize.c (includes): Simplify.
40502         (canonicalize_file_name): Drop resolvepath implementation.
40503         * modules/canonicalize (Depends-on): Drop filenamecat.
40504
40505         canonicalize: don't lose errno
40506         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40507         over calls to free.
40508
40509         canonicalize: simplify errno handling
40510         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40511         assignment.
40512
40513         canonicalize, canonicalize-lgpl: update module dependencies
40514         * modules/canonicalize (Depends-on): Add extensions, lstat,
40515         pathmax, stdlib.
40516         (Files): Drop pathmax.h.
40517         (configure.ac): Adjust macro name.
40518         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40519         lstat, stdlib, sys_stat.
40520         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40521         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40522         extensions.
40523         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40524         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40525         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40526         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40527         declaration, if available.
40528         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40529         we can rely on the readlink module.
40530         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40531         (includes): Use <unistd.h> unconditionally.
40532
40533 2009-09-17  Eric Blake  <ebb9@byu.net>
40534
40535         maint: make Include sections of modules consistent
40536         * modules/alloca: Use only header name; no need to list #include.
40537         * modules/alloca-opt: Likewise.
40538         * modules/arpa_inet: Likewise.
40539         * modules/canon-host: Likewise.
40540         * modules/configmake: Likewise.
40541         * modules/dirent: Likewise.
40542         * modules/eealloc: Likewise.
40543         * modules/environ: Likewise.
40544         * modules/fchdir: Likewise.
40545         * modules/fcntl: Likewise.
40546         * modules/fcntl-h: Likewise.
40547         * modules/gethrxtime: Likewise.
40548         * modules/gettime: Likewise.
40549         * modules/ignore-value: Likewise.
40550         * modules/inet_ntop: Likewise.
40551         * modules/inet_pton: Likewise.
40552         * modules/inttypes: Likewise.
40553         * modules/isnand-nolibm: Likewise.
40554         * modules/isnanf-nolibm: Likewise.
40555         * modules/mbchar: Likewise.
40556         * modules/mbfile: Likewise.
40557         * modules/mbiter: Likewise.
40558         * modules/mbuiter: Likewise.
40559         * modules/netdb: Likewise.
40560         * modules/netinet_in: Likewise.
40561         * modules/nproc: Likewise.
40562         * modules/pagealign_alloc: Likewise.
40563         * modules/poll: Likewise.
40564         * modules/printf-frexp: Likewise.
40565         * modules/pthread: Likewise.
40566         * modules/putenv: Likewise.
40567         * modules/random_r: Likewise.
40568         * modules/relocatable-prog: Likewise.
40569         * modules/search: Likewise.
40570         * modules/select: Likewise.
40571         * modules/selinux-h: Likewise.
40572         * modules/settime: Likewise.
40573         * modules/signal: Likewise.
40574         * modules/size_max: Likewise.
40575         * modules/socklen: Likewise.
40576         * modules/ssize_t: Likewise.
40577         * modules/stdarg: Likewise.
40578         * modules/stdbool: Likewise.
40579         * modules/stddef: Likewise.
40580         * modules/stdint: Likewise.
40581         * modules/stdio: Likewise.
40582         * modules/stdlib: Likewise.
40583         * modules/string: Likewise.
40584         * modules/strings: Likewise.
40585         * modules/sys_file: Likewise.
40586         * modules/sys_ioctl: Likewise.
40587         * modules/sys_select: Likewise.
40588         * modules/sys_socket: Likewise.
40589         * modules/sys_stat: Likewise.
40590         * modules/sys_time: Likewise.
40591         * modules/sys_times: Likewise.
40592         * modules/sys_utsname: Likewise.
40593         * modules/sys_wait: Likewise.
40594         * modules/sysexits: Likewise.
40595         * modules/time: Likewise.
40596         * modules/times: Likewise.
40597         * modules/tmpfile: Likewise.
40598         * modules/trim: Likewise.
40599         * modules/unistd: Likewise.
40600         * modules/wchar: Likewise.
40601         * modules/wctype: Likewise.
40602
40603 2009-09-17  Bruno Haible  <bruno@clisp.org>
40604
40605         Make getdate.y compile on QNX and NetBSD 5 / i386.
40606         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40607         TIME_T_FITS_IN_LONG_INT.
40608         * lib/getdate.y (long_time_t): New type.
40609         (relative_time): Change type of 'seconds' field to long_time_t.
40610         (get_date): Update types of local variables. Check against overflow
40611         during conversion from long_time_t to time_t.
40612         Reported by Matt Kraai <kraai@ftbfs.org>
40613         and Hasso Tepper <hasso@netbsd.org>.
40614
40615 2009-09-17  Bruno Haible  <bruno@clisp.org>
40616
40617         * modules/COPYING: Update copyright years.
40618         * modules/README: Likeiwse.
40619         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40620         Reported by Ian Beckwith <ianb@erislabs.net>.
40621
40622 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40623
40624         * users.txt: Update references for gnuit package.
40625
40626 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40627
40628         * m4/getdelim.m4: Fix typo in copyright line.
40629
40630 2009-09-17  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/atoll.c: Use the standard header with GPL copyright.
40633         * lib/argz.in.h: Likewise.
40634         * lib/glob.c: Likewise.
40635         * lib/glob-libc.h: Likewise.
40636         * lib/random_r.c: Likewise.
40637         * lib/siglist.h: Likewise.
40638         * lib/strsignal.c: Likewise.
40639         Reported by Ian Beckwith <ianb@erislabs.net>.
40640
40641 2009-09-17  Eric Blake  <ebb9@byu.net>
40642
40643         rmdir: ensure correct dependency order
40644         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40645
40646 2009-09-17  Bruno Haible  <bruno@clisp.org>
40647
40648         Disable assertion that fails on NetBSD 5 / i386.
40649         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40650         Reported by Sam Steingold <sds@gnu.org>
40651         and Hasso Tepper <hasso@netbsd.org>.
40652
40653 2009-09-16  Eric Blake  <ebb9@byu.net>
40654
40655         unlinkdir: port to mingw
40656         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40657         on which no one can unlink a directory.
40658
40659         stdlib: sort witness names
40660         * modules/stdlib (Makefile.am): Sort replacements.
40661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40662         * lib/stdlib.in.h: Likewise.
40663
40664         parse-duration-tests: avoid link failure
40665         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40666         LIBINTL.
40667         Reported by Tom G. Christensen.
40668
40669         openat-tests: ensure unlinkat behaves like rmdir
40670         * tests/test-rmdir.c (main): Factor guts...
40671         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40672         * modules/rmdir-tests (Files): Ship new file.
40673         * modules/openat-tests: New test.
40674         * tests/test-unlinkat.c: Likewise.
40675
40676         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40677         * modules/rmdir-errno (Status, Notice): Now obsolete.
40678
40679         rmdir: work around cygwin 1.5.x and mingw bugs
40680         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40681         * lib/rmdir.c (rmdir): Work around it.
40682         * modules/rmdir (Status, Notice): No longer obsolete.
40683         (Files): Add dos.m4.
40684         (Depends-on): Add unistd.
40685         (configure.ac): Set witnesses.
40686         (License): Relax to LGPLv2+.
40687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40688         * modules/unistd (Makefile.am): Substitute witnesses.
40689         * lib/unistd.in.h (rmdir): Declare replacement.
40690         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40691         * modules/rmdir-tests: New tests.
40692         * tests/test-rmdir.c: Likewise.
40693
40694 2009-09-15  Eric Blake  <ebb9@byu.net>
40695
40696         fchdir: improve use of replacement functions
40697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40698         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40699         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40700         REPLACE_CLOSEDIR.
40701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40702         * modules/sys_stat (Makefile.am): Substitute correct witness.
40703         * modules/dirent (Makefile.am): Likewise.
40704         * modules/unistd (Makefile.am): Likewise.
40705         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40706         * lib/unistd.in.h (dup): Likewise.
40707         * lib/sys_stat.in.h (fstat): Likewise.
40708
40709         maint: ignore gnulib-tool temp files
40710         * .gitignore: Ignore files created during gnulib-tool --test.
40711
40712 2009-09-13  Jim Meyering  <meyering@redhat.com>
40713
40714         posixtm: don't reject a time that specify "60" as the number of seconds
40715         * lib/posixtm.c (posixtime): The code to reject invalid dates
40716         would also reject a time specified with the .60 suffix.
40717         But POSIX allows that, in order to accommodate leap seconds.
40718         So don't reject it.
40719         (main): Adjust tests accordingly.
40720         * modules/posixtm (Depends-on): Add stpcpy.
40721
40722 2009-09-11  Jim Meyering  <meyering@redhat.com>
40723
40724         announce-gen: include [$release_type] in emitted Subject:
40725         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40726         e.g., [stable] in the emitted Subject: line.
40727
40728 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40729
40730         Remove obsolete macros from several modules.
40731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40732         obsolete Autoconf macros with their modern counterparts.
40733         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40734         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40736         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40737         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40738         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40740         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40741         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40742         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40743         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40745         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40746         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40747         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40749         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40750         * m4/time_r.m4 (gl_TIME_R): Likewise.
40751         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40752         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40753         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40754
40755         Fix copyright header in build-aux scripts.
40756         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40757         recommendation.
40758         * build-aux/ncftpput-ftp: Likewise.
40759         * build-aux/update-copyright: Likewise.
40760
40761 2009-09-09  Eric Blake  <ebb9@byu.net>
40762
40763         test-link: allow Linux choice of errno
40764         * tests/test-link.c (main): Relax test for alternate error.
40765
40766         strndup: fix improper m4 caching
40767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40768         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40769         (gl_PREREQ_STRNDUP): Delete.
40770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40771         * modules/string (Makefile.am): Substitute it.
40772         * lib/string.in.h (strndup): Modernize prototype.
40773
40774         getcwd: port to mingw
40775         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40776         different from the POSIX assumptions made throughout the getcwd
40777         module; fortunately, the mingw getcwd does not need replacement.
40778         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40779         * modules/getcwd-tests: New test.
40780         * tests/test-getcwd.c: Likewise.
40781
40782         link: fix platform bugs
40783         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40784         * lib/link.c (link): Work around them.  Fix related mingw bug.
40785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40786         * modules/unistd (Makefile.am): Substitute it.
40787         * lib/unistd.in.h (link): Declare replacement.
40788         * doc/posix-functions/link.texi (link): Document this.
40789         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40790
40791         test-link: consolidate into single C program, test more cases
40792         * tests/test-link.sh: Delete.
40793         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40794         at least Cygwin and Solaris.
40795         * modules/link-tests (Files): Remove unused file.
40796         (Depends-on): Add errno, sys_stat.
40797         (Makefile.am): Simplify.
40798
40799 2009-09-08  Bruno Haible  <bruno@clisp.org>
40800
40801         Work around towlower, towupper bug on mingw.
40802         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40803         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40804         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40805         * doc/posix-functions/towupper.texi: Likewise.
40806         Reported by Eric Blake.
40807
40808 2009-09-08  Jim Meyering  <meyering@redhat.com>
40809
40810         build: don't try to run autoheader if we don't use it
40811         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40812         is not used in configure.ac.
40813
40814 2009-09-08  Eric Blake  <ebb9@byu.net>
40815
40816         euidaccess: fix compilation error
40817         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40818
40819         rawmemchr: relax license
40820         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40821         okay.
40822         Reported by Jim Meyering.
40823
40824         mkfifoat: new module
40825         * modules/mkfifoat: New file.
40826         * lib/mkfifoat.c: Likewise.
40827         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40829         * modules/sys_stat (Makefile.am): Use them.
40830         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40831         * MODULES.html.sh (File system functions): Mention module.
40832         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40833         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40834         * modules/mkfifoat-tests: New test.
40835         * tests/test-mkfifoat.c: Likewise.
40836
40837         strchrnul: relax license
40838         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40839         okay.
40840         Reported by Jim Meyering.
40841
40842 2009-09-08  Eric Blake  <ebb9@byu.net>
40843
40844         fstatat: fix compilation on Solaris
40845         * lib/fstatat.c (includes): Add fcntl.h.
40846         Reported by Pádraig Brady.
40847
40848 2009-09-07  Eric Blake  <ebb9@byu.net>
40849
40850         rename: modernize replacement
40851         * modules/rename (Depends-on): Add stdio.
40852         (configure.ac): Declare witness.
40853         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40854         stdio take care of replacement.
40855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40856         * modules/stdio (Makefile.am): Substitute them.
40857         * lib/stdio.in.h (rename): Declare replacement.
40858         * lib/rename.c (includes): Allow cross-compilation to non-windows
40859         machines.
40860         * doc/posix-functions/rename.texi (rename): Improve
40861         documentation.
40862
40863         stdio: sort witness names
40864         * modules/stdio (Makefile.am): Sort replacements.
40865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40866         * lib/stdio.in.h: Likewise.
40867
40868         getcwd: minor cleanups
40869         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40870         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40871
40872         openat: provide more convenience names
40873         * modules/faccessat (configure.ac): Add C witness.
40874         * lib/unistd.in.h (readlinkat): Fix typo.
40875         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40876         convenience wrappers.
40877         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40878         wrappers in syntax checks.
40879
40880 2009-09-06  Eric Blake  <ebb9@byu.net>
40881
40882         doc: fix comments in recent patches
40883         * lib/faccessat.c: Mention correct function.
40884         * lib/fchmodat.c: Likewise.
40885         * lib/fchownat.c: Likewise.
40886         * lib/symlinkat.c: Likewise.
40887         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40888         constants.
40889
40890         faccessat, symlinkat: continue cleanup of previous patch
40891         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40892         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40893         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40895         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40896         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40897         set.
40898
40899 2009-09-06  Bruno Haible  <bruno@clisp.org>
40900
40901         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40902         (fstatat): Declare if GNULIB_FSTATAT is set.
40903         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40904         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40905         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40906         * modules/fcntl-h (Files): Remove m4/openat.m4.
40907         * modules/sys_stat (Files): Remove m4/openat.m4.
40908         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40909         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40910         * modules/unistd (Files): Remove m4/openat.m4.
40911         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40912         GNULIB_OPENAT.
40913         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40914         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40915         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40916         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40917         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40918         gl_OPENAT_DEFAULTS.
40919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40920         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40921         Don't require gl_OPENAT_DEFAULTS.
40922         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40923         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40924         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40925         (gl_OPENAT_DEFAULTS): Remove macro.
40926
40927 2009-09-06  Bruno Haible  <bruno@clisp.org>
40928
40929         * modules/openat (configure.ac): Remove unneeded witness.
40930
40931 2009-09-06  Bruno Haible  <bruno@clisp.org>
40932
40933         Set errno to ENOSYS when a function is entirely unsupported.
40934         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40935         EOPNOTSUPP.
40936         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40937         * modules/chown (Depends-on): Remove errno.
40938
40939 2009-09-06  Bruno Haible  <bruno@clisp.org>
40940
40941         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40942
40943 2009-09-06  Bruno Haible  <bruno@clisp.org>
40944
40945         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40946
40947 2009-09-06  Ben Pfaff  <blp@gnu.org>
40948             Bruno Haible  <bruno@clisp.org>
40949
40950         Work around a glibc bug in strtok_r.
40951         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40952         Undefine if UNDEFINE_STRTOK_R is set.
40953         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40955         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40957         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40958         UNDEFINE_STRTOK_R.
40959         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40960
40961 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40962
40963         exclude: minor fix
40964         * lib/exclude.c: Include wctype.h
40965
40966 2009-09-06  Akim Demaille  <demaille@gostai.com>
40967
40968         bootstrap: improve error message
40969         * build-aux/bootstrap (find_tool): Upon failure, report the list
40970         of candidates.
40971         Honor the initial value of the envvar.
40972
40973 2009-09-05  Eric Blake  <ebb9@byu.net>
40974
40975         symlinkat: new module
40976         * modules/symlinkat: New file.
40977         * lib/symlinkat.c: Likewise.
40978         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40980         * modules/unistd (Makefile.am): Use them.
40981         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40982         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40983         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40984         * MODULES.html.sh (File system functions): Mention module.
40985         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40986         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40987         * modules/symlinkat-tests: New test.
40988         * tests/test-symlinkat.c: Likewise.
40989
40990         test-openat-safer: add more checks
40991         * tests/test-openat-safer.c (main): Check more code paths.
40992
40993 2009-09-05  Jim Meyering  <meyering@redhat.com>
40994
40995         syntax-check: detect unnecessary inclusion of openat.h
40996         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40997
40998 2009-09-05  Bruno Haible  <bruno@clisp.org>
40999
41000         Support towlower, towupper.
41001         * doc/posix-functions/towlower.texi: Mention module wctype.
41002         * doc/posix-functions/towupper.texi: Likewise.
41003         * lib/wctype.in.h (towlower, towupper): New functions.
41004         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41005         (ASSERT): New macro.
41006         (e): New variable.
41007         (main): Test also towlower, towupper. Test WEOF argument.
41008         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41009
41010 2009-09-05  Bruno Haible  <bruno@clisp.org>
41011
41012         Fix conversion behaviour when the input is invalid.
41013         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41014         mark occurring in first pass of indirect conversion.
41015         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41016         input.
41017         Found by clang's static analyzer.
41018
41019 2009-09-05  Bruno Haible  <bruno@clisp.org>
41020
41021         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41022         where direct conversion is possible.
41023
41024 2009-09-04  Eric Blake  <ebb9@byu.net>
41025
41026         openat: fail with ENOENT on empty name
41027         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41028         buffer.
41029
41030         link-follow: fix logic bug in prior patch
41031         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41032         reversed sense of yes and no in prior patch.  Avoid confusing
41033         compilation failure with desired semantics.
41034
41035         link-follow: accomodate mingw and cross-compilation
41036         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41037         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41038         cross-compilation results to -1, to make linkat easier to
41039         implement when cross-compiling.  Trivially support mingw.
41040         * modules/link-follow (configure.ac): Call new name.
41041         * NEWS: Mention this.
41042
41043 2009-09-03  Eric Blake  <ebb9@byu.net>
41044
41045         faccessat: compile replacement
41046         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41047         needed.
41048
41049         fts: fix compilation error
41050         * lib/fts.c (includes): Re-add "openat.h", for
41051         openat_needs_fchdir.
41052
41053         faccessat: new module
41054         * modules/faccessat: New file.
41055         * lib/faccessat.c: Likewise.
41056         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41058         * modules/unistd (Makefile.am): Use it.
41059         * lib/unistd.in.h (faccessat): Declare it.
41060         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41061         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41062         * MODULES.html.sh (File system functions): Mention it.
41063         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41064         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41065
41066         euidaccess: prefer POSIX over non-standard implementation
41067         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41068         * lib/euidaccess.c (euidaccess): Use it if available.
41069
41070         openat: make template easier to use
41071         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41072         AT_FUNC_F2 to be undefined.
41073         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41074         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41075         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41076         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41077         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41078         Likewise.
41079         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41080         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41081         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41082         Likewise.
41083
41084         openat: declare in POSIX headers
41085         * NEWS: Mention this.
41086         * modules/openat (configure.ac): Declare witnesses.
41087         (Depends-on): Add fcntl-h, sys_stat, unistd.
41088         (Include): Mention correct headers.
41089         * modules/fcntl-h (Depends-on): Add link-warning.
41090         (Files): Add openat.m4.
41091         (Makefile.am): Substitute witnesses.
41092         * modules/sys_stat (Files, Makefile.am): Likewise.
41093         * modules/unistd (Files, Makefile.am): Likewise.
41094         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41095         (gl_OPENAT_DEFAULTS): New macro.
41096         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41098         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41099         (SYS_STAT_H): Remove unused variable.
41100         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41101         * lib/fcntl--.h (includes): Remove unneeded header.
41102         * lib/openat-safer.c (includes): Likewise.
41103         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41104         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41105         appropriate headers.
41106         (__OPENAT_PREFIX): Delete.
41107         * lib/fcntl.in.h (openat): Provide declaration.
41108         (AT_FDCWD): Fix Solaris bug.
41109         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41110         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41111         * lib/fchmodat.c (includes):  Adjust to find declaration.
41112         * lib/fchownat.c (includes): Likewise.
41113         * lib/mkdirat.c (includes): Likewise.
41114         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41115         still visible.
41116
41117 2009-09-02  Eric Blake  <ebb9@byu.net>
41118
41119         errno: use consistently
41120         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41121         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41122         * lib/canonicalize.c (ELOOP): Likewise.
41123         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41124         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41125         * lib/lchown.c (EOPNOTSUPP): Likewise.
41126         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41127         * lib/savewd.c (ESTALE): Likewise.
41128         * lib/settime.c (ENOSYS): Likewise.
41129         * lib/utimens.c (ENOSYS): Likewise.
41130         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41131         * lib/chdir-safer.c (ELOOP): Likewise.
41132         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41133         * modules/c-stack (Depends-on): Add errno.
41134         * modules/canonicalize (Depends-on): Likewise.
41135         * modules/chdir-safer (Depends-on): Likewise.
41136         * modules/fdopendir (Depends-on): Likewise.
41137         * modules/inet_ntop (Depends-on): Likewise.
41138         * modules/inet_pton (Depends-on): Likewise.
41139         * modules/lchown (Depends-on): Likewise.
41140         * modules/openat (Depends-on): Likewise.
41141         * modules/savewd (Depends-on): Likewise.
41142         * modules/settime (Depends-on): Likewise.
41143         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41144
41145         fts: avoid leaking fds
41146         * modules/fts (Depends-on): Add cloexec.
41147         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41148         flag.
41149
41150         fts: make directory fds more robust
41151         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41152         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41153
41154         backupfile, chdir-long, fts, savedir: make safer
41155         * lib/backupfile.c (includes): Use "dirent--.h", since
41156         numbered_backup can write to stderr during readdir.
41157         * lib/savedir.c (includes): Likewise.
41158         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41159         emulation can write to stderr on failure.
41160         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41161         * lib/getcwd.c: Document why opendir_safer is unused.
41162         * lib/glob.c: Likewise.
41163         * lib/scandir.c: Likewise.
41164         * lib/openat-proc.c: Likewise, for open_safer.
41165         * modules/backupfile (Depends-on): Add dirent-safer.
41166         * modules/savedir (Depends-on): Likewise.
41167         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41168         * modules/chdir-long (Depends-on): Add openat-safer.
41169
41170         openat-safer: new module
41171         * modules/openat-safer: New file.
41172         * lib/openat-safer.c: Likewise.
41173         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41174         * lib/fcntl-safer.h (openat_safer): Declare.
41175         * lib/fcntl--.h (openat): Override.
41176         * MODULES.html.sh (File descriptor based I/O): Mention it.
41177         * lib/openat.h: Add double-inclusion guards.
41178         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41179         "fcntl--.h", so we can implement openat.
41180         * modules/openat-safer-tests: New test.
41181         * tests/test-openat-safer.c: New file.
41182
41183         dirent-safer: new module
41184         * modules/dirent-safer: New file.
41185         * lib/dirent--.h: Likewise.
41186         * lib/dirent-safer.h: Likewise.
41187         * lib/opendir-safer.c: Likewise.
41188         * m4/dirent-safer.m4: Likewise.
41189         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41190         * modules/dirent-safer-tests: New test.
41191         * tests/test-dirent-safer.c: New file.
41192         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41193
41194         fdopendir: optimize on mingw
41195         * lib/unistd.in.h (_gl_directory_name): New prototype.
41196         * lib/fchdir.c (_gl_directory_name): Implement it.
41197         (fchdir): Use it to simplify implementation.
41198         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41199         fchdir, when available, to avoid calling [f]chdir().
41200
41201         fdopendir: split into its own module
41202         * lib/openat.c (fdopendir): Move...
41203         * lib/fdopendir.c: ...into new file.
41204         * modules/fdopendir: New module.
41205         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41206         * modules/openat (Depends-on): Add fdopendir.
41207         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41208         fdopendir here.
41209         * modules/savedir (Depends-on): Only need fdopendir, not full
41210         openat.
41211         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41212         * lib/openat.h (fdopendir): Drop prototype.
41213         * lib/dirent.in.h (fdopendir): Provide prototype.
41214         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41215         * modules/dirent (Makefile.am): Substitute them.
41216         * MODULES.html.sh (File system functions): Mention it.
41217         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41218         * modules/fdopendir-tests: New file.
41219         * tests/test-fdopendir.c: Likewise.
41220
41221         fchdir: use more consistent macro convention
41222         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41223         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41224         REPLACE_FCHDIR, rather than relying on config.h macros.
41225         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41226         inside a single make-time REPLACE_FCHDIR block, rather than using
41227         the config.h FCHDIR_REPLACEMENT.
41228         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41229         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41230         Manage fstat replacement.
41231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41232         REPLACE_FCHDIR.
41233         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41234         (Makefile.am): Substitute REPLACE_FCHDIR.
41235         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41236         FCHDIR_REPLACEMENT.
41237         * lib/dup-safer.c (dup_safer): Likewise.
41238         * lib/dup2.c (rpl_dup2): Likewise.
41239         * lib/dup3.c (rpl_dup3): Likewise.
41240         * lib/open.c (rpl_open): Likewise.
41241
41242         fchdir: simplify error handling, and support dup3
41243         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41244         stdbool, malloc-posix, realloc-posix.
41245         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41246         (ensure_dirs_slot): Return false on allocation failure.
41247         (rpl_dup2): Delete.
41248         (_gl_register_dup): New function.
41249         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41250         (_gl_register_fd): Close fd on allocation failure.
41251         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41252         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41253         prototype.
41254         (rpl_dup2_fchdir): Delete prototype.
41255         * lib/open.c (open): Update caller.
41256         * lib/dup2.c (dup2): Track fchdir metadata.
41257         * lib/dup3.c (dup3): Likewise.
41258         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41260
41261 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41262
41263         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41264         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41265         don't pass arguments to AC_OUTPUT.
41266
41267 2009-09-02  Bruno Haible  <bruno@clisp.org>
41268
41269         * modules/mkdtemp (License): Relicense under LGPLv2+.
41270         Reported by Paolo Bonzini.
41271
41272 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41273
41274         Replace uses of obsolete autoconf macros in Jim's modules.
41275         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41276         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41277         can evoke a warning from autoconf when run with -Wobsolete
41278         enabled.  They were declared obsolete for good reasons (see
41279         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41280         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41281         should not continue using the deprecated macros.
41282         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41283         obsolete Autoconf macros with modern counterparts.
41284         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41285         * m4/dos.m4 (gl_AC_DOS): Likewise.
41286         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41287         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41288         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41289         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41290         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41292         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41293         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41294         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41295         Likewise.
41296         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41297         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41298         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41299         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41300         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41301         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41302
41303 2009-09-01  Eric Blake  <ebb9@byu.net>
41304
41305         fchdir: fix off-by-one bug in previous patch
41306         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41307         (_gl_unregister_fd): Delete useless if.
41308
41309 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41310
41311         maint.mk: sort the list of syntax-check rules
41312         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41313         easier to get a sense of progress when the rules are run sequentially
41314         and take a long time.
41315
41316 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41317
41318         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41319         * modules/netinet_in: Likewise.
41320         * modules/sys_file: Likewise.
41321         * modules/sys_ioctl: Likewise.
41322         * modules/sys_select: Likewise.
41323         * modules/sys_socket: Likewise.
41324         * modules/sys_stat: Likewise.
41325         * modules/sys_time: Likewise.
41326         * modules/sys_times: Likewise.
41327         * modules/sys_utsname: Likewise.
41328         * modules/sys_wait: Likewise.
41329
41330 2009-09-01  Jim Meyering  <meyering@redhat.com>
41331
41332         fts: help ensure that return values are not ignored
41333         * lib/fts_.h (__GNUC_PREREQ): Define.
41334         (__attribute_warn_unused_result__): Define.
41335         (fts_children, fts_close, fts_open, fts_read): Declare with
41336         __attribute_warn_unused_result__.
41337
41338         fts: fts_close now fails also when closing a dir file descriptor fails
41339         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41340         and propagate to caller, along with errno.
41341
41342         announce-gen: correct formatting in --help output
41343         * build-aux/announce-gen (usage): Move the one-line description in
41344         --help output "up", to where it belongs, just after Usage:.
41345
41346 2009-08-31  Eric Blake  <ebb9@byu.net>
41347
41348         fchdir: port to mingw
41349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41350         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41351         opened, then use a substitute.
41352         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41353         replacement.
41354         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41355         (_gl_register_fd): No need to check stat if open already filters
41356         all directories.
41357         (fchdir): Fix error condition to match POSIX.
41358         * modules/fchdir (Depends-on): Add sys_stat.
41359         * doc/posix-functions/open.texi (open): Document the limitation.
41360         * modules/fchdir-tests: New file.
41361         * tests/test-fchdir.c: Likewise.
41362
41363         canonicalize: allow cross-testing from cygwin to mingw
41364         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41365         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41366         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41367         Likewise.
41368         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41369         target does not support symlinks.
41370         * tests/test-canonicalize-lgpl.sh: Likewise.
41371
41372         chown: avoid compilation warning on mingw
41373         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41374         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41375         mingw.
41376         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41377         * modules/chown (Depends-on): Add errno.
41378
41379 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41380
41381         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41382         command.
41383
41384 2009-08-31  Jim Meyering  <meyering@redhat.com>
41385
41386         canonicalize: remove useless initialization
41387         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41388         initialization of local, "end".
41389
41390 2009-08-30  Bruno Haible  <bruno@clisp.org>
41391
41392         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41393         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41394         ENOSYS.
41395
41396 2009-08-30  Bruno Haible  <bruno@clisp.org>
41397
41398         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41399         /usr/xpg4/bin/tr when it exists.
41400         * tests/test-pipe-filter-gi1.sh: Likewise.
41401
41402 2009-08-30  Bruno Haible  <bruno@clisp.org>
41403
41404         Work around deficient /usr/bin/id program on Solaris.
41405         * tests/test-file-has-acl.sh (ID): New variable.
41406         * tests/test-set-mode-acl.sh (ID): Likewise.
41407         * tests/test-copy-acl.sh (ID): Likewise.
41408         * tests/test-copy-file.sh (ID): Likewise.
41409
41410 2009-08-30  Bruno Haible  <bruno@clisp.org>
41411
41412         New module 'xstriconveh'.
41413         * lib/xstriconveh.h: New file.
41414         * lib/xstriconveh.c: New file.
41415         * modules/xstriconveh: New file.
41416
41417 2009-08-30  Bruno Haible  <bruno@clisp.org>
41418
41419         Make it easier to use mem_cd_iconveh.
41420         * lib/striconveh.h (iconveh_t): New type.
41421         (iconveh_open, iconveh_close): New declarations.
41422         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41423         with a single 'const iconveh_t *' argument.
41424         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41425         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41426         with a single 'const iconveh_t *' argument.
41427         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41428         * tests/test-striconveh.c (main): Update.
41429         * NEWS: Mention the change.
41430
41431 2009-08-30  Bruno Haible  <bruno@clisp.org>
41432
41433         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41434         problem.
41435
41436 2009-08-30  Bruno Haible  <bruno@clisp.org>
41437
41438         Work around iconv_open problem on Solaris.
41439         * lib/iconv_open-solaris.gperf: New file.
41440         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41441         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41442         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41443         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41444         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41445         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41446
41447 2009-08-29  Jim Meyering  <meyering@redhat.com>
41448
41449         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41450         * top/maint.mk (cvs-check): Remove target; it was just an alias
41451         to the better-named vc-diff-check.
41452         (maintainer-distcheck): Remove rule.  It was used only from
41453         the (alpha/beta/major) target, and all of its commands but one
41454         were coreutils-specific.
41455         (vc-dist): Remove rule.
41456         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41457         Run vc-diff-check, not vc-dist.
41458         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41459
41460 2009-08-27  Bruno Haible  <bruno@clisp.org>
41461
41462         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41463         of 0.
41464
41465 2009-08-27  Bruno Haible  <bruno@clisp.org>
41466
41467         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41468         compilers.
41469         * doc/func.texi: Document the SunPRO C bug.
41470
41471 2009-08-27  Bruno Haible  <bruno@clisp.org>
41472
41473         Fix link error on Solaris.
41474         * tests/test-parse-duration.c (xstrdup): Remove function.
41475
41476 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41477
41478         ignore-value: handle pointer types, too
41479         * lib/ignore-value.h (__attribute__): Remove definition.
41480         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41481         of a more concise and more-often effective "(void) i" statement.
41482         (ignore_ptr): New function to suppress warnings from functions that
41483         return pointers, and to make it explicit that one function doesn't
41484         handle all cases.
41485
41486 2009-08-25  Bruno Haible  <bruno@clisp.org>
41487
41488         dup2: work around a Linux bug.
41489         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41490         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41491         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41492         Reported by Simon Josefsson.
41493
41494 2009-08-25  Jim Meyering  <meyering@redhat.com>
41495
41496         libguestfs uses gnulib
41497         * users.txt: Add libguestfs.
41498
41499 2009-08-24  Eric Blake  <ebb9@byu.net>
41500
41501         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41502         * lib/pipe2.c (includes): Add binary-io.h.
41503         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41504
41505 2009-08-24  Bruno Haible  <bruno@clisp.org>
41506
41507         Tolerate declared but missing accept4 syscall.
41508         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41509         available.
41510         * lib/sys_socket.in.h (accept4): If the function is already present,
41511         override it.
41512         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41513         * modules/accept4 (Makefile.am): Compile accept4.c always.
41514         Reported by Paolo Bonzini and Eric Blake.
41515
41516 2009-08-23  Bruno Haible  <bruno@clisp.org>
41517
41518         New module 'accept4'.
41519         * lib/sys_socket.in.h (accept4): New declaration.
41520         * lib/accept4.c: New file.
41521         * m4/accept4.m4: New file.
41522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41523         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41524         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41525         HAVE_ACCEPT4.
41526         * modules/accept4: New file.
41527         * doc/glibc-functions/accept4.texi: Mention the new module.
41528
41529 2009-08-24  Jim Meyering  <meyering@redhat.com>
41530
41531         progname: also set global program_invocation_name, when possible
41532         Before this change, a libtool-enabled program that calls glibc's
41533         error function would report the program name as
41534         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41535         * modules/progname (configure.ac): Check for a declaration of
41536         program_invocation_name.
41537         * lib/progname.c:  Include <errno.h>.
41538         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41539         Set program_invocation_name.
41540
41541 2009-08-23  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/dup3.c: Include <string.h>.
41544
41545 2009-08-23  Bruno Haible  <bruno@clisp.org>
41546
41547         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41548         * lib/pipe2.c (pipe2): Likewise.
41549         Suggested by Eric Blake.
41550
41551 2009-08-23  Bruno Haible  <bruno@clisp.org>
41552
41553         Tolerate declared but missing dup3 syscall.
41554         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41555         * lib/unistd.in.h (dup3): If the function is already present,
41556         override it.
41557         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41558         * modules/dup3 (Makefile.am): Compile dup3.c always.
41559         Reported by Paolo Bonzini.
41560
41561 2009-08-23  Bruno Haible  <bruno@clisp.org>
41562
41563         Tolerate declared but missing pipe2 syscall.
41564         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41565         available.
41566         * lib/unistd.in.h (pipe2): If the function is already present,
41567         override it.
41568         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41569         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41570         Reported by Paolo Bonzini.
41571
41572 2009-08-23  Bruno Haible  <bruno@clisp.org>
41573
41574         * lib/pipe2.c (pipe2): Move #ifs inside function.
41575
41576 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41577
41578         quotearg: document limitations of quote_these_too
41579         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41580         those limitations are created.
41581         * lib/quotearg.h (set_char_quoting): Document that digits and
41582         letters that are special after backslash are not permitted.
41583         (quotearg_char): Cross-reference set_char_quoting documentation.
41584
41585 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41586
41587         quotearg: implement custom_quoting_style
41588         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41589         right_quote fields.
41590         (set_custom_quoting): New public function.
41591         (quotearg_buffer_restyled): Add left_quote and right_quote
41592         arguments, handle them very much like locale quoting, and update
41593         all uses.
41594         (quotearg_n_custom): New public function.
41595         (quotearg_n_custom_mem): New public function.
41596         (quotearg_custom): New public function.
41597         (quotearg_custom_mem): New public function.
41598         * lib/quotearg.h: Prototype and document new public functions.
41599         (enum quoting_style): For escape_quoting_style and
41600         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41601         ignored even though they're otherwise like c_quoting_style.
41602         Add custom_quoting_style member and document with comparison to
41603         clocale_quoting_style.
41604         * tests/test-quotearg.c (custom_quotes): New array.
41605         (custom_results): New array.
41606         (main): Extend to test custom quoting.
41607
41608 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41609
41610         quotearg: fix right quote escaping when it's in quote_these_too
41611         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41612         quote, be sure to prepend only one backslash.
41613         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41614         (main): Test it.
41615
41616 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41617
41618         quotearg-tests: test escaping of embedded locale quotes
41619         * tests/test-quotearg.c (struct result_strings): Add member for
41620         new input.
41621         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41622         (inputs): Add new input.
41623         (results_g): Add expected results.
41624         (flag_results): Likewise.
41625         (locale_results): Likewise.
41626         (compare_strings): Check those.
41627
41628 2009-08-23  Bruno Haible  <bruno@clisp.org>
41629
41630         Tests for module 'dup3'.
41631         * modules/dup3-tests: New file.
41632         * tests/test-dup3.c: New file.
41633
41634         New module 'dup3'.
41635         * lib/unistd.in.h (dup3): New declaration.
41636         * lib/dup3.c: New file.
41637         * m4/dup3.m4: New file.
41638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41639         HAVE_DUP3.
41640         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41641         * modules/dup3: New file.
41642         * doc/glibc-functions/dup3.texi: Mention the new module.
41643
41644 2009-08-23  Bruno Haible  <bruno@clisp.org>
41645
41646         Tweak the dup2 test.
41647         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41648         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41649         the test file is still empty. Fix argument order of lseek.
41650
41651 2009-08-23  Bruno Haible  <bruno@clisp.org>
41652
41653         Avoid test link errors when the modules getopt-gnu, gettext are used.
41654         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41656
41657 2009-08-23  Bruno Haible  <bruno@clisp.org>
41658
41659         Fix getdtablesize() on mingw.
41660         * lib/getdtablesize.c (getdtablesize): Implement differently.
41661         * lib/unistd.in.h (getdtablesize): Improve comment.
41662
41663 2009-08-23  Bruno Haible  <bruno@clisp.org>
41664
41665         New module 'mkostemp'.
41666         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41667         * lib/stdlib.in.h (mksotemp): New declaration.
41668         * lib/mkostemp.c: New file, from glibc with modifications.
41669         * lib/tempname.h (GT_FILE): Remove outdated comment.
41670         (gen_tempname): Add flags argument.
41671         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41672         (__GT_FILE): Map to 1.
41673         (small_open, large_open): Remove macros.
41674         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41675         * lib/mkstemp.c (mkstemp): Update.
41676         * lib/mkdtemp.c (mkdtemp): Likewise.
41677         * m4/mkostemp.m4: New file.
41678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41679         HAVE_MKOSTEMP.
41680         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41681         HAVE_MKOSTEMP.
41682         * modules/mkostemp: New file, based on modules/mkstemp.
41683         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41684         * NEWS: Mention the change.
41685
41686 2009-08-23  Bruno Haible  <bruno@clisp.org>
41687
41688         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41689         Reported by Eric Blake.
41690
41691 2009-08-23  Bruno Haible  <bruno@clisp.org>
41692
41693         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41694         Reported by Eric Blake.
41695
41696 2009-08-23  Bruno Haible  <bruno@clisp.org>
41697
41698         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41699         * modules/pipe2 (Depends-on): Likewise.
41700
41701 2009-08-23  Eric Blake  <ebb9@byu.net>
41702
41703         fcntl-h: add O_TTY_INIT support
41704         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41705         * tests/test-fcntl-h.c (o): Test it.
41706         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41707
41708         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41709         * modules/fcntl: Move <fcntl.h> header replacement...
41710         * modules/fcntl-h: ...to new name, so as not to collide with
41711         like-named function.
41712         * tests/test-fcntl.c: Rename...
41713         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41714         * modules/fcntl-tests: Rename...
41715         * modules/fcntl-h-tests: ...to this.  Update test file name.
41716         * modules/chdir-long (Depends-on): Update clients.
41717         * modules/chdir-safer (Depends-on): Likewise.
41718         * modules/fcntl-safer (Depends-on): Likewise.
41719         * modules/fts (Depends-on): Likewise.
41720         * modules/mkancesdirs (Depends-on): Likewise.
41721         * modules/mkdir-p (Depends-on): Likewise.
41722         * modules/open (Depends-on): Likewise.
41723         * modules/savewd (Depends-on): Likewise.
41724         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41725         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41726
41727 2009-08-22  Bruno Haible  <bruno@clisp.org>
41728
41729         * modules/binary-io (License): Relicense under LGPL.
41730         * modules/pipe2 (License): Likewise.
41731
41732 2009-08-22  Bruno Haible  <bruno@clisp.org>
41733
41734         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41735         return value.
41736         * lib/pipe-filter-gi.c (filter_init): Likewise.
41737         Reported by Eric Blake.
41738
41739 2009-08-22  Bruno Haible  <bruno@clisp.org>
41740
41741         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41742         * modules/pipe (Depends-on): Add pipe2.
41743
41744 2009-08-22  Bruno Haible  <bruno@clisp.org>
41745
41746         Tests for module 'pipe2'.
41747         * modules/pipe2-tests: New file.
41748         * tests/test-pipe2.c: New file.
41749
41750         New module 'pipe2'.
41751         * lib/unistd.in.h (pipe2): New declaration.
41752         * lib/pipe2.c: New file.
41753         * m4/pipe2.m4: New file.
41754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41755         HAVE_PIPE2.
41756         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41757         * modules/pipe2: New file.
41758         * doc/glibc-functions/pipe2.texi: Mention the new module.
41759
41760 2009-08-22  Bruno Haible  <bruno@clisp.org>
41761
41762         Reference some new glibc functions.
41763         * doc/glibc-functions/accept4.texi: New file.
41764         * doc/glibc-functions/dup3.texi: New file.
41765         * doc/glibc-functions/mkostemp.texi: New file.
41766         * doc/glibc-functions/pipe2.texi: New file.
41767         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41768         (Glibc sys/socket.h): Refer to accept4.
41769         (Glibc unistd.h): Refer to dup3, pipe2.
41770         Reported by Eric Blake.
41771
41772 2009-08-22  Jim Meyering  <meyering@redhat.com>
41773             Bruno Haible  <bruno@clisp.org>
41774
41775         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41776         This makes it so packages using automake-1.11's silent-rules option
41777         can print e.g., a single "GEN    configmake.h" line, rather than
41778         the 30+ statements that perform the job.  If you want to see the
41779         actual commands, you can still run "make V=1".
41780         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41781         so that make output is abbreviated when those variables are defined
41782         appropriately.
41783         * modules/argz: Likewise.
41784         * modules/arpa_inet: Likewise.
41785         * modules/byteswap: Likewise.
41786         * modules/configmake: Likewise.
41787         * modules/dirent: Likewise.
41788         * modules/errno: Likewise.
41789         * modules/fcntl: Likewise.
41790         * modules/float: Likewise.
41791         * modules/fnmatch: Likewise.
41792         * modules/getopt-posix: Likewise.
41793         * modules/glob: Likewise.
41794         * modules/iconv_open: Likewise.
41795         * modules/inttypes: Likewise.
41796         * modules/localcharset: Likewise.
41797         * modules/locale: Likewise.
41798         * modules/math: Likewise.
41799         * modules/netdb: Likewise.
41800         * modules/netinet_in: Likewise.
41801         * modules/poll: Likewise.
41802         * modules/posix_spawnp-tests: Likewise.
41803         * modules/sched: Likewise.
41804         * modules/search: Likewise.
41805         * modules/selinux-h: Likewise.
41806         * modules/signal: Likewise.
41807         * modules/spawn: Likewise.
41808         * modules/stdarg: Likewise.
41809         * modules/stdbool: Likewise.
41810         * modules/stddef: Likewise.
41811         * modules/stdint: Likewise.
41812         * modules/stdio: Likewise.
41813         * modules/stdlib: Likewise.
41814         * modules/string: Likewise.
41815         * modules/strings: Likewise.
41816         * modules/sys_file: Likewise.
41817         * modules/sys_ioctl: Likewise.
41818         * modules/sys_select: Likewise.
41819         * modules/sys_socket: Likewise.
41820         * modules/sys_stat: Likewise.
41821         * modules/sys_time: Likewise.
41822         * modules/sys_times: Likewise.
41823         * modules/sys_utsname: Likewise.
41824         * modules/sys_wait: Likewise.
41825         * modules/sysexits: Likewise.
41826         * modules/time: Likewise.
41827         * modules/unistd: Likewise.
41828         * modules/wchar: Likewise.
41829         * modules/wctype: Likewise.
41830
41831 2009-08-22  Jim Meyering  <meyering@redhat.com>
41832
41833         announce-gen: detect write failure
41834         * build-aux/announce-gen: Add Coda at end.
41835         Remove equivalent-but-more-verbose block at top.
41836
41837 2009-08-19  Akim Demaille  <demaille@gostai.com>
41838
41839         bootstrap: --help to stdout.
41840         * bootstrap (usage): Don't send --help to stderr.
41841         Use a here doc instead of a long string.
41842
41843 2009-08-21  Eric Blake  <ebb9@byu.net>
41844
41845         test-popen-safer: split from test-popen
41846         * tests/test-popen.c (main): Move...
41847         * tests/test-popen.h: ...into new file.
41848         * tests/test-popen-safer2.c: New file.
41849         * modules/popen-tests (Files): Add test-popen.h.
41850         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41851         Suggested by Bruno Haible.
41852
41853         test-fcntl-safer: split from test-open
41854         * tests/test-open.c (main): Move...
41855         * tests/test-open.h: ...into new file.
41856         * tests/test-fcntl-safer.c: New file.
41857         * modules/open-tests (Files): Add test-open.h.
41858         * modules/fcntl-safer-tests: New file.
41859         Suggested by Bruno Haible.
41860
41861         test-fopen-safer: split from test-fopen
41862         * tests/test-fopen.c (main): Move...
41863         * tests/test-fopen.h: ...into new file.
41864         * tests/test-fopen-safer.c: New file.
41865         * modules/fopen-tests (Files): Add test-fopen.h.
41866         * modules/fopen-safer-tests: New file.
41867         Suggested by Bruno Haible.
41868
41869 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41870
41871         popen-safer: test O_CLOEXEC at run-time.
41872         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41873
41874 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41875
41876         fcntl: move more flags to the header
41877         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41878         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41879         * lib/fcntl.in.h: Do both things here.
41880
41881 2009-08-21  Jim Meyering  <meyering@redhat.com>
41882
41883         consistently remove $@-t before redirecting to it
41884         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41885         * modules/alloca-opt: Likewise.
41886         * modules/byteswap: Likewise.
41887         * modules/fnmatch: Likewise.
41888         * modules/getopt-posix: Likewise.
41889         * modules/glob: Likewise.
41890         * modules/poll: Likewise.
41891         * modules/posix_spawnp-tests: Likewise.
41892         * modules/sys_socket: Likewise.
41893         * modules/sysexits: Likewise.
41894
41895 2009-08-21  Eric Blake  <ebb9@byu.net>
41896
41897         popen: simplify access to original popen
41898         * lib/popen.c (rpl_popen): No need to worry about popen being a
41899         macro.
41900         Reported by Bruno Haible.
41901
41902 2009-08-20  Eric Blake  <ebb9@byu.net>
41903
41904         build: avoid some compiler warnings
41905         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41906         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41907         type.
41908         (new_exclude_segment, excluded_file_pattern_p)
41909         (excluded_file_name_p): Reduce scope.
41910         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41911         old-style declaration.
41912
41913 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41914
41915         * tests/test-exclude1.sh: Handle Windows EOL.
41916         * tests/test-exclude2.sh: Likewise.
41917         * tests/test-exclude3.sh: Likewise.
41918         * tests/test-exclude4.sh: Likewise.
41919         * tests/test-exclude5.sh: Likewise.
41920         * tests/test-exclude6.sh: Likewise.
41921         * tests/test-exclude7.sh: Likewise.
41922
41923 2009-08-19  Akim Demaille  <demaille@gostai.com>
41924
41925         bootstrap: find sha1sum when named gsha1sum.
41926         * bootstrap (find_tool): New.
41927         ($SHA1SUM): New.
41928         Use it.
41929
41930 2009-08-20  Jim Meyering  <meyering@redhat.com>
41931
41932         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41933         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41934         expression that converts "." in a file name to "\." in the resulting
41935         regexp.  Start with a dummy statement, so that prior shell variable
41936         definitions are expanded portably.  Reported by Simon Josefsson.
41937
41938 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41939
41940         Fix polling for writeability of a screen buffer.
41941         * lib/poll.c: Distinguish input and screen buffers for the
41942         Win32 implementation.
41943         * lib/select.c: Likewise.
41944
41945 2009-08-19  Eric Blake  <ebb9@byu.net>
41946
41947         popen-safer: prevent popen from clobbering std descriptors
41948         * modules/popen-safer: New file.
41949         * lib/popen-safer.c: Likewise.
41950         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41951         * lib/stdio--.h (popen): Provide override.
41952         * lib/stdio-safer.h (popen_safer): Provide declaration.
41953         * tests/test-popen.c (includes): Partially test this.
41954         * modules/popen-safer-tests: New file, for more tests.
41955         * tests/test-popen-safer.c: Likewise.
41956         * MODULES.html.sh (file stream based Input/Output): Mention it.
41957
41958         tests: test some of the *-safer modules
41959         * modules/fopen-safer (Depends-on): Add fopen.
41960         * modules/fcntl-safer (Depends-on): Add fcntl.
41961         * modules/stdlib-safer (Depends-on): Add stdlib.
41962         (configure.ac): Set indicator.
41963         * modules/unistd-safer (configure.ac): Likewise.
41964         * modules/tmpfile-safer (configure.ac): Likewise.
41965         (Depends-on): Add tmpfile.
41966         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41967         active.
41968         * tests/test-fopen.c (includes): Test safer versions when they are
41969         in use.
41970         * tests/test-open.c (includes): Likewise.
41971
41972         popen: fix cygwin 1.5 bug when stdin closed
41973         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41974         * modules/popen: New file.
41975         * modules/popen-tests: Likewise.
41976         * tests/test-popen.c: Likewise.
41977         * m4/popen.m4: Likewise.
41978         * lib/popen.c: Likewise.
41979         * lib/stdio.in.h (popen): New declaration.
41980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41981         * modules/stdio (Makefile.am): Likewise.
41982         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41983
41984 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41985
41986         maint.mk: give full control over update-copyright exclusions
41987         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41988         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41989         (update-copyright): Don't force inclusion of top-level
41990         ChangeLog.  Don't force exclusion of all COPYING files, but make
41991         them the default exclusion instead.
41992
41993 2009-08-16  Bruno Haible  <bruno@clisp.org>
41994
41995         Fix test failures on Solaris 10.
41996         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41997         tests when Solaris iconv() is used.
41998         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41999         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42000         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42001         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42002         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42003
42004 2009-08-16  Bruno Haible  <bruno@clisp.org>
42005
42006         Fix test failures on Solaris 10.
42007         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42008         'tr' program and pass it as first argument.
42009         * tests/test-pipe-filter-gi1.sh: Likewise.
42010         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42011         program as first argument.
42012         * tests/test-pipe-filter-gi1.c (main): Likewise.
42013
42014 2009-08-16  Eric Blake  <ebb9@byu.net>
42015
42016         fpurge: fix previous commits
42017         * modules/fpurge (Makefile.am): Make replacement conditional,
42018         partially reverting 2007-04-29 change; missed in previous
42019         attempt.
42020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42021         is missing.
42022
42023 2009-08-16  Bruno Haible  <bruno@clisp.org>
42024
42025         Clarify fpurge's effect on the file position.
42026         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42027         * tests/test-fpurge.c (main): Make a second pass for checking the file
42028         position.
42029
42030 2009-08-16  Bruno Haible  <bruno@clisp.org>
42031
42032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42033         declaration of fpurge is missing.
42034         * tests/test-fpurge.c (main): Check that the file has not more contents
42035         than expected. Close the file before removing it.
42036
42037 2009-08-15  Eric Blake  <ebb9@byu.net>
42038
42039         fpurge: don't wrap working cygwin implementation
42040         * lib/fpurge.c (fpurge): Fix comment typo.
42041         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42042         1.7 to avoid replacement.
42043         * tests/test-fpurge.c (main): Enhance test.
42044
42045 2009-08-15  Eric Blake  <ebb9@byu.net>
42046         and Jim Meyering  <meyering@redhat.com>
42047
42048         test-update-copyright: skip if perl is insufficient
42049         * tests/test-update-copyright.sh: Failure to run maintainer tool
42050         should not cause testsuite failure on cygwin 1.5.
42051
42052 2009-08-14  Eric Blake  <ebb9@byu.net>
42053
42054         doc: mention more functions added in cygwin 1.7.0
42055         * doc/posix-headers/limits.texi (limits.h): Update for recent
42056         cygwin additions.
42057         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42058         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42059         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42060         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42061         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42062
42063 2009-08-14  Eric Blake  <ebb9@byu.net>
42064
42065         maint.mk: simplify update-copyright rule
42066         * top/maint.mk (update-copyright-local): Delete, and document how
42067         to do it in cfg.mk instead.
42068         (update-copyright-exclude-regexp): Delete, and document how to do
42069         it in .x-update-copyright instead.
42070         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42071         exclude ChangeLog.
42072
42073 2009-08-14  Bruno Haible  <bruno@clisp.org>
42074
42075         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42076
42077 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42078
42079         maint.mk: support update-copyright-env
42080         * top/maint.mk (update-copyright-env): Define place-holder.
42081         (update-copyright): Expand $(update-copyright-env) before
42082         invoking update-copyright.
42083
42084 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42085
42086         update-copyright: implement forced reformatting
42087         * build-aux/update-copyright: Implement and document
42088         UPDATE_COPYRIGHT_FORCE.
42089         * tests/test-update-copyright.sh: Test it.
42090
42091 2009-08-14  Eric Blake  <ebb9@byu.net>
42092         and Bruno Haible  <bruno@clisp.org>
42093
42094         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42095         * tests/test-locale.c: Revert previous patch related to NULL.
42096         * tests/test-stdio.c: Likewise.
42097         * tests/test-stdlib.c: Likewise.
42098         * tests/test-string.c: Likewise.
42099         * tests/test-unistd.c: Likewise.
42100         * modules/time-tests (Depends-on): Add verify.
42101         * modules/wchar-tests (Depends-on): Likewise.
42102         * tests/test-time.c: Test for NULL compliance.
42103         * tests/test-wchar.c: Likewise.
42104         * modules/locale (Depends-on): Add stddef.
42105         * modules/stdio (Depends-on): Likewise.
42106         * modules/stdlib (Depends-on): Likewise.
42107         * modules/string (Depends-on): Likewise.
42108         * modules/time (Depends-on): Likewise.
42109         * modules/unistd (Depends-on): Likewise.
42110         * modules/wchar (Depends-on): Likewise.
42111         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42112         * lib/stdlib.in.h (includes): Likewise.
42113         * lib/string.in.h (includes): Likewise.
42114         * lib/time.in.h (includes): Likewise.
42115         * lib/unistd.in.h (includes): Likewise.
42116         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42117         replaced.
42118         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42119         * m4/stddef_h.m4: New file.
42120         * modules/stddef: Likewise.
42121         * lib/stddef.in.h: Likewise.
42122         * modules/stddef-tests: Likewise.
42123         * tests/test-stddef.c: Likewise.
42124         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42125         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42126         * doc/posix-headers/locale.texi (locale.h): Likewise.
42127         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42128         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42129         * doc/posix-headers/string.texi (string.h): Likewise.
42130         * doc/posix-headers/time.texi (time.h): Likewise.
42131         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42132         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42133
42134 2009-08-14  Eric Blake  <ebb9@byu.net>
42135
42136         doc: improve git diff of texinfo files
42137         * .gitattributes: Add rule for *.texi files, with hint on how to
42138         use it.
42139         Copied from m4, and based on a report by Bruno Haible.
42140
42141 2009-08-14  Bruno Haible  <bruno@clisp.org>
42142
42143         Disable multithread support by default on Cygwin 1.5.x for real.
42144         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42145
42146 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42147
42148         update-copyright: much ado about intervals
42149         * build-aux/update-copyright: Implement and document
42150         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42151         of copyright year intervals.
42152         Also, document UPDATE_COPYRIGHT_YEAR.
42153         * tests/test-update-copyright.sh: Test it.
42154
42155         update-copyright: convert 2-digit to 4-digit years
42156         * build-aux/update-copyright: Implement and document.
42157         * tests/test-update-copyright.sh: Update.
42158
42159 2009-08-14  Jim Meyering  <meyering@redhat.com>
42160
42161         test-exclude: avoid coreutils "make check" failure
42162         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42163         just as in test-argmatch.c.
42164
42165 2009-08-13  Eric Blake  <ebb9@byu.net>
42166
42167         test-dup2: fix bad assumption
42168         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42169         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42170
42171         test-version-etc: fix CRLF portability issue
42172         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42173         recognize \r.
42174         * tests/test-argp-version-etc-1.sh: Likewise.
42175
42176         getopt: update client modules
42177         * modules/argp (Depends-on): Use getopt-gnu.
42178         * modules/git-merge-changelog (Depends-on): Likewise.
42179         * modules/long-options (Depends-on): Likewise.
42180         * modules/xstrtol (Depends-on): Likewise.
42181
42182 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42183
42184         * tests/test-version-etc.sh: Don't fail on different
42185         project/version.  Don't fail on CRLF differences.  Rewrite to use
42186         multiple -e instead of multiple sed forks, suggested by Eric Blake
42187         <ebb9@byu.net>.
42188         * tests/test-argp-version-etc-1.sh: Likewise.
42189
42190 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42191
42192         * tests/test-version-etc.sh: Don't fail on different
42193         project/version.
42194
42195 2009-08-12  Bruno Haible  <bruno@clisp.org>
42196
42197         Tests for modules 'getopt-posix', 'getopt-gnu'.
42198         * modules/getopt-posix-tests: New file.
42199         * tests/test-getopt.c: New file.
42200         * tests/test-getopt.h: New file.
42201         * tests/test-getopt_long.h: New file.
42202
42203         New modules 'getopt-posix', 'getopt-gnu'.
42204         * modules/getopt-gnu: New file, renamed from modules/getopt.
42205         * modules/getopt-posix: New file.
42206         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42207         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42208         (gl_GETOPT): Remove macro.
42209         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42210         Disable the test against BSD systems that declare optreset. Test
42211         against mingw bug. Test against lack of support of optional arguments
42212         on many platforms.
42213         * doc/glibc-headers/getopt.texi: Update module name and list of
42214         relevant platforms.
42215         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42216         'getopt-gnu' and more portability problems.
42217         * NEWS: Mention the changes.
42218
42219 2009-08-12  Bruno Haible  <bruno@clisp.org>
42220
42221         Ensure that optarg etc. get declared by <unistd.h>.
42222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42223         AC_USE_SYSTEM_EXTENSIONS.
42224         * modules/getopt (Depends-on): Add 'extensions'.
42225
42226 2009-08-12  Bruno Haible  <bruno@clisp.org>
42227
42228         Avoid test link errors.
42229         * modules/pipe-filter-ii-tests (Makefile.am): Define
42230         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42231         * modules/pipe-filter-gi-tests (Makefile.am): Define
42232         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42234
42235 2009-08-12  Bruno Haible  <bruno@clisp.org>
42236
42237         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42238         gl_GETOPT_SUBSTITUTE before.
42239         (gl_GETOPT): Use it.
42240         * m4/argp.m4 (gl_ARGP): Update.
42241         Reported by Sergey Poznyakoff.
42242
42243         * m4/getopt.m4: Reorder macros.
42244         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42245         (gl_GETOPT_SUBSTITUTE): Remove macro.
42246
42247 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42248
42249         Minor improvement in gitlog-to-changelog
42250
42251         * build-aux/gitlog-to-changelog: New option `--format' makes
42252         output format string configurable.
42253
42254 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42255
42256         Optimize exclude: use hash tables for non-wildcard patterns.
42257
42258         * lib/exclude.c: Include hash.h and mbuiter.h
42259         (struct exclude_pattern, exclude_segment): New data types.
42260         (struct exclude): Rewrite.
42261         (fnmatch_pattern_has_wildcards): New function.
42262         (new_exclude_segment, free_exclude_segment): New functions.
42263         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42264         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42265         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42266         * modules/exclude: Depend on hash and mbuiter.
42267
42268         * modules/exclude-tests: New file.
42269         * tests/test-exclude.c: New file.
42270         * tests/test-exclude1.sh: New file.
42271         * tests/test-exclude2.sh: New file.
42272         * tests/test-exclude3.sh: New file.
42273         * tests/test-exclude4.sh: New file.
42274         * tests/test-exclude5.sh: New file.
42275         * tests/test-exclude6.sh: New file.
42276         * tests/test-exclude7.sh: New file.
42277
42278 2009-08-12  Bruno Haible  <bruno@clisp.org>
42279
42280         Ensure that getopt() gets declared by <unistd.h>.
42281         * lib/unistd.in.h: Conditionally include getopt.h.
42282         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42283         Set GNULIB_UNISTD_H_GETOPT.
42284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42285         GNULIB_UNISTD_H_GETOPT.
42286         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42287
42288 2009-08-12  Bruno Haible  <bruno@clisp.org>
42289
42290         Clarify logic.
42291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42292         gl_replace_getopt instead of GETOPT_H.
42293
42294 2009-08-12  Bruno Haible  <bruno@clisp.org>
42295
42296         * m4/getopt.m4: Add comments.
42297
42298 2009-08-12  Bruno Haible  <bruno@clisp.org>
42299
42300         Disable multithread support by default on Cygwin 1.5.x.
42301         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42302         set gl_use_threads=no if not specified otherwise.
42303
42304 2009-08-11  Bruno Haible  <bruno@clisp.org>
42305
42306         Avoid compilation error on NetBSD 5.0.
42307         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42308         * tests/test-stdio.c: Likewise.
42309         * tests/test-stdlib.c: Likewise.
42310         * tests/test-string.c: Likewise.
42311         * tests/test-unistd.c: Likewise.
42312         Reported by Greg Troxel <gdt@ir.bbn.com>
42313         at <https://savannah.gnu.org/support/?106973>.
42314
42315 2009-08-11  Bruno Haible  <bruno@clisp.org>
42316
42317         * modules/dup2-tests (Depends-on): Remove close.
42318
42319         Undo 2009-07-19 commit.
42320         * modules/acl-tests (Depends-on): Remove close.
42321         * modules/binary-io-tests (Depends-on): Likewise.
42322         * modules/closein-tests (Depends-on): Likewise.
42323         * modules/flock-tests (Depends-on): Likewise.
42324         * modules/fsync-tests (Depends-on): Likewise.
42325         * modules/lseek-tests (Depends-on): Likewise.
42326         * modules/pipe-tests (Depends-on): Likewise.
42327         * modules/posix_spawn-tests (Depends-on): Likewise.
42328         * modules/posix_spawnp-tests (Depends-on): Likewise.
42329         * modules/stat-time-tests (Depends-on): Likewise.
42330         * modules/yesno-tests (Depends-on): Likewise.
42331
42332 2009-08-10  Bruno Haible  <bruno@clisp.org>
42333
42334         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42335
42336 2009-08-10  Bruno Haible  <bruno@clisp.org>
42337
42338         Fix a gcc warning.
42339         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42340
42341 2009-08-10  Bruno Haible  <bruno@clisp.org>
42342
42343         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42344         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42345         not only the first time.
42346         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42347         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42348         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42349         is 1, not only the the first time.
42350
42351 2009-08-10  Bruno Haible  <bruno@clisp.org>
42352
42353         Make it possible to use module 'gethostname' without module 'close'.
42354         * lib/unistd.in.h (close): Evoke a link error only if
42355         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42357         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42358         * modules/unistd (Makefile.am): Substitute
42359         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42360         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42361         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42363         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42364         * modules/sys_ioctl (Makefile.am): Substitute
42365         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42366         * modules/socket (configure.ac): On native Windows, set
42367         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42368         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42369         Reported by Sam Steingold <sds@gnu.org>.
42370
42371 2009-08-10  Bruno Haible  <bruno@clisp.org>
42372
42373         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42374         * modules/ioctl (configure.ac): Likewise.
42375
42376 2009-08-10  Bruno Haible  <bruno@clisp.org>
42377
42378         Avoid collision between gnulib wrapper and libintl wrapper.
42379         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42380         already defined in intl/printf.c.
42381         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42382         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42383
42384 2009-08-09  Bruno Haible  <bruno@clisp.org>
42385
42386         Make <sys/select.h> really self-contained, also on Solaris 10.
42387         * lib/sys_select.in.h: Include <string.h>.
42388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42389         Solaris 10 problem.
42390         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42391         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42392         Reported by Jim Meyering.
42393
42394 2009-08-09  Bruno Haible  <bruno@clisp.org>
42395
42396         Avoid warnings from 'aclocal' that are due to a use of macro name
42397         AM_XGETTEXT_OPTION that is not defined in automake.
42398         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42399         automake.
42400         * modules/error (configure.ac): Likewise.
42401         * modules/propername (configure.ac): Likewise.
42402         * modules/vasprintf (configure.ac): Likewise.
42403         * modules/verror (configure.ac): Likewise.
42404         * modules/xprintf (configure.ac): Likewise.
42405         * modules/xvasprintf (configure.ac): Likewise.
42406
42407 2009-08-08  Bruno Haible  <bruno@clisp.org>
42408
42409         Avoid compilation error in C++ mode.
42410         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42411         Reported by Sam Steingold <sds@gnu.org>.
42412
42413 2009-08-08  Bruno Haible  <bruno@clisp.org>
42414
42415         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42416         for the various Unix platforms.
42417         * doc/posix-headers/limits.texi: Update platforms list regarding
42418         HOST_NAME_MAX.
42419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42420
42421 2009-08-07  Jim Meyering  <meyering@redhat.com>
42422
42423         selinux-at: fix typo in a comment
42424         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42425         Spotted by Paolo Bonzini.
42426
42427         selinux-at: remove redundant m4 code, add documentation
42428         * modules/selinux-at (configure.ac): Remove redundant code.
42429         LIB_SELINUX is already set via the dependent module, selinux-h.
42430         (Include): Add quotes around selinux-at.h.
42431         * lib/selinux-at.h: Add documentation.
42432         Reported by Bruno Haible in
42433         http://marc.info/?l=gnulib-bug&m=124958988300749
42434
42435 2009-08-07  Bruno Haible  <bruno@clisp.org>
42436
42437         Avoid link error on MacOS X 10.3 and 10.4.
42438         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42439         on non-ELF systems.
42440         * lib/argp-pv.c (argp_program_version): Likewise.
42441         Reported by Simon Josefsson.
42442
42443 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42444
42445         * tests/test-version-etc.sh: Use $EXEEXT.
42446
42447 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42448
42449         update-copyright: update documentation to point to maint.mk
42450         * build-aux/update-copyright: Here.
42451
42452 2009-08-06  Jim Meyering  <meyering@redhat.com>
42453
42454         maint.mk: support update-copyright-local
42455         * top/maint.mk (update-copyright-local): Define place-holder.
42456         (update-copyright): Depend on $(update-copyright-local).
42457
42458 2009-08-06  Jim Meyering  <meyering@redhat.com>
42459
42460         selinux-at: new module
42461         Initially written for coreutils, this module will soon be
42462         used by findutils, too.
42463         * MODULES.html.sh [Misc]: Add selinux-at.
42464         * lib/selinux-at.h: New file, from coreutils.
42465         * lib/selinux-at.c: Likewise.
42466         * modules/selinux-at: Likewise.
42467         (License): Change from LGPL to GPL, since it depends
42468         on the GPL'd openat module.
42469
42470         doc: update README
42471         * README: Remove references to cogito.
42472         Remove cvs-repo-updating instructions from 2007.
42473         Don't imply that CVS is better if you have limited disk space.
42474
42475 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42476
42477         update-copyright: support C-style comments
42478         * build-aux/update-copyright: Implement and document.
42479         * tests/test-update-copyright.sh: Test.
42480
42481 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42482
42483         update-copyright: support omitted "(C)"
42484         * build-aux/update-copyright: Implement and document.  Also,
42485         allow variable whitespace before "(C)".
42486         * tests/test-update-copyright.sh: Test.
42487
42488 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42489
42490         update-copyright: don't trip on non-FSF copyright statements
42491         * build-aux/update-copyright: Fix so that the first correctly
42492         formatted FSF copyright statement is recognized no matter what
42493         appears before it.  Update documentation.
42494         * tests/test-update-copyright.sh: Test that.
42495
42496 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42497
42498         update-copyright: clean up code a little
42499         * build-aux/update-copyright: Append "_re" to the name of any
42500         variable holding a regular expression.
42501         Replace "old" and "new" with "stmt" in variable names.
42502         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42503         handled correctly.
42504         Format code more consistently.
42505
42506 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42507
42508         update-copyright-tests: improve portability
42509         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42510         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42511
42512 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42513
42514         update-copyright: support @copyright{} and &copy;
42515         * build-aux/update-copyright: Implement and document.
42516         * tests/test-update-copyright.sh: Test.
42517
42518 2009-08-04  Jim Meyering  <meyering@redhat.com>
42519
42520         update-copyright-tests: correctly test EOL=\r\n handling
42521         * tests/test-update-copyright.sh: Put \r at the end of some lines
42522         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42523
42524         maint.mk: make update-copyright exclusion list more configurable
42525         * top/maint.mk (update-copyright): Default to excluding COPYING,
42526         but allow an override, in case someone does want to update that file.
42527
42528         maint.mk: don't update copyright date in COPYING
42529         * top/maint.mk (update-copyright): Exclude COPYING.
42530
42531         maint.mk: add a copyright-updating rule
42532         * top/maint.mk (update-copyright): New rule.
42533         Derived from coreutils/Makefile.am.
42534
42535         update-copyright: rename some variables
42536         * build-aux/update-copyright: Rename a few variables for clarity.
42537         Tweak syntax.  List Joel E. Denny as coauthor.
42538
42539 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42540
42541         update-copyright: fix bug for 2-digit last year and add tests
42542         * build-aux/update-copyright: Fix bug.
42543         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42544         specified.
42545         * modules/update-copyright-tests: New
42546         * tests/test-update-copyright.sh: New.
42547
42548 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42549
42550         update-copyright: handle leading tabs in line prefix
42551         * build-aux/update-copyright: Count leading tabs as 8 spaces
42552         when computing margin.  This helps with the formatting of
42553         ChangeLogs, for example.
42554         Fix documentation a little.
42555
42556 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42557
42558         update-copyright: support EOL=\r\n
42559         * build-aux/update-copyright: Implement that.
42560
42561 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42562
42563         update-copyright: automatically format copyright statements
42564         * build-aux/update-copyright: Implement that.
42565         Also, be a little more predictable and safer by always failing
42566         when the full copyright format is not perfectly recognized as an
42567         unbroken whole.  Discussed at
42568         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42569         Rewrite documentation.
42570
42571 2009-08-03  Bruno Haible  <bruno@clisp.org>
42572
42573         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42574
42575 2009-08-02  Bruno Haible  <bruno@clisp.org>
42576
42577         Tests for module 'uname'.
42578         * modules/uname-tests: New file.
42579         * tests/test-uname.c: New file.
42580
42581         New module 'uname'.
42582         * lib/uname.c: New file.
42583         * m4/uname.m4: New file.
42584         * modules/uname: New file.
42585         * doc/posix-functions/uname.texi: Mention the new module.
42586
42587 2009-08-02  Bruno Haible  <bruno@clisp.org>
42588
42589         Tests for module 'sys_utsname'.
42590         * modules/sys_utsname-tests: New file.
42591         * tests/test-sys_utsname.c: New file.
42592
42593         New module 'sys_utsname'.
42594         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42595         * m4/sys_utsname_h.m4: New file.
42596         * modules/sys_utsname: New file.
42597         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42598
42599 2009-08-02  Bruno Haible  <bruno@clisp.org>
42600
42601         Implicitly initialize the sockets library.
42602         * lib/gethostname.c: Include sockets.h.
42603         (rpl_gethostname): Invoke gl_sockets_startup.
42604         * lib/socket.c: Include sockets.h.
42605         (rpl_socket): Invoke gl_sockets_startup.
42606         * modules/gethostname (Depends-on): Add sockets.
42607         * modules/socket (Depends-on): Likewise.
42608         * tests/test-poll.c: Don't include sockets.h.
42609         (main): Don't invoke gl_sockets_startup.
42610         * tests/test-select.c: Don't include sockets.h.
42611         (main): Don't invoke gl_sockets_startup.
42612
42613 2009-08-02  Bruno Haible  <bruno@clisp.org>
42614
42615         Allow multiple calls to gl_sockets_startup.
42616         * lib/sockets.c (initialized_sockets_version): New variable.
42617         (gl_sockets_startup): Do nothing if already called for this or a higher
42618         version.
42619         (gl_sockets_cleanup): Reset initialized_sockets_version.
42620
42621 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42622
42623         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42624         different project/version.
42625
42626 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42627             Bruno Haible  <bruno@clisp.org>
42628
42629         Tests for module 'pipe-filter-gi'.
42630         * modules/pipe-filter-gi-tests: New file.
42631         * tests/test-pipe-filter-gi1.sh: New file.
42632         * tests/test-pipe-filter-gi1.c: New file.
42633         * tests/test-pipe-filter-gi2.sh: New file.
42634         * tests/test-pipe-filter-gi2-main.c: New file.
42635         * tests/test-pipe-filter-gi2-child.c: New file.
42636
42637         New module 'pipe-filter-gi'.
42638         * lib/pipe-filter-gi.c: New file.
42639         * modules/pipe-filter-gi: New file.
42640
42641 2009-08-02  Bruno Haible  <bruno@clisp.org>
42642             Paolo Bonzini  <bonzini@gnu.org>
42643
42644         Tests for module 'pipe-filter-ii'.
42645         * modules/pipe-filter-ii-tests: New file.
42646         * tests/test-pipe-filter-ii1.sh: New file.
42647         * tests/test-pipe-filter-ii1.c: New file.
42648         * tests/test-pipe-filter-ii2.sh: New file.
42649         * tests/test-pipe-filter-ii2-main.c: New file.
42650         * tests/test-pipe-filter-ii2-child.c: New file.
42651
42652         New module 'pipe-filter-ii'.
42653         * lib/pipe-filter.h: New file.
42654         * lib/pipe-filter-ii.c: New file.
42655         * lib/pipe-filter-aux.h: New file.
42656         * modules/pipe-filter-ii: New file.
42657
42658 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42659
42660         * lib/gc-libgcrypt.c: Change copyright to FSF.
42661         * lib/gc-gnulib.c: Likewise.
42662
42663 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42664
42665         * lib/gethostname.c: Include limits.h.
42666
42667 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42668             Bruno Haible  <bruno@clisp.org>
42669
42670         Ensure HOST_NAME_MAX as part of the gethostname module.
42671         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42672         define also HOST_NAME_MAX.
42673         * tests/test-gethostname.c: Include <limits.h>.
42674         (main): Check also HOST_NAME_MAX.
42675         * doc/posix-headers/limits.texi: Document the mingw problem.
42676
42677 2009-08-02  Bruno Haible  <bruno@clisp.org>
42678
42679         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42680         Add comments.
42681
42682 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42683
42684         * lib/gethostname.c: Add Windows wrapper.
42685         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42686         * modules/gethostname: Depend on sys_socket & errno, for also
42687         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42688         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42689
42690 2009-07-31  Jim Meyering  <meyering@redhat.com>
42691
42692         getloadavg: fix symbol name in comment
42693         * lib/getloadavg.c: Correct a typo I introduced when adding
42694         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42695         Matt Kraai spotted the problem.
42696
42697 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42698
42699         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42700         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42701         code also if ! defined N_NAME_POINTER.
42702         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42703         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42704         but the n_name member is a 12-byte array.
42705
42706 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42707
42708         update-copyright: generalize comment handling
42709         * build-aux/update-copyright: Handle copyright statements
42710         within more comment styles.
42711         Document usage.
42712         Report any file with an external copyright holder or parse failure.
42713
42714 2009-07-29  Jim Meyering  <meyering@redhat.com>
42715
42716         mktime: correct setting of REPLACE_MKTIME
42717         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42718
42719         update-copyright: new module
42720         * modules/update-copyright: New file.
42721         * build-aux/update-copyright: New file.
42722         * MODULES.html.sh (maint+release support): Add update-copyright.
42723
42724 2009-07-27  Bruno Haible  <bruno@clisp.org>
42725
42726         Fix compilation error when <ctime> is used and mktime is replaced.
42727         * lib/time.in.h (mktime): New declaration.
42728         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42729         REPLACE_MKTIME instead of defining mktime in config.h.
42730         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42731         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42732         Reported by Ross McFarland <rwmcfa1@neces.com>.
42733
42734 2009-07-27  Bruno Haible  <bruno@clisp.org>
42735
42736         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42737         Reported by Matt Kraai <mkraai@beckman.com>.
42738
42739 2009-07-25  Jim Meyering  <meyering@redhat.com>
42740
42741         maint.mk: avoid warnings about missing files
42742         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42743         diagnostic when .prev-version does not exist.
42744         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42745         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42746         nonexistent cfg.mk.
42747         Suggestions from Simon Josefsson.
42748
42749 2009-07-25  Bruno Haible  <bruno@clisp.org>
42750
42751         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42752         defined as macros. Needed on QNX 6.4.1.
42753         Reported by Matt Kraai <mkraai@beckman.com>.
42754
42755 2009-07-23  Jim Meyering  <meyering@redhat.com>
42756
42757         maint.mk: invoke "make dist" with a working value of XZ_OPT
42758         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42759
42760 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42761
42762         Make fseeko.c compile on QNX.
42763         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42764
42765 2009-07-22  Peter Simons  <simons@cryp.to>
42766
42767         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42768         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42769         * lib/md4.h: Likewise.
42770         * lib/md5.h: Likewise.
42771         * lib/sha1.h: Likewise.
42772         * lib/sha256.h: Likewise.
42773         * lib/sha512.h: Likewise.
42774
42775         tests-sha1: don't assign literal string to 'char *' variable
42776         * tests/test-sha1.c (main): Declare locals with "const" to match
42777         attributes of the right hand side.
42778
42779 2009-07-21  Eric Blake  <ebb9@byu.net>
42780
42781         dup2: fix more mingw problems
42782         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42783         fd to itself.
42784         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42785         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42786         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42787         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42788         care of mingw bugs.
42789
42790 2009-07-21  Jim Meyering  <meyering@redhat.com>
42791
42792         vc-list-files: avoid failure when /bin/sh is dash
42793         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42794         On some Debian based systems, /bin/sh is a symlink to dash, and running
42795         this command would omit the "/" following each 'tests' prefix:
42796           dash -x build-aux/vc-list-files -C . tests
42797         That is because bash and dash work differently:
42798           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42799           bash ok
42800           dash odd
42801
42802 2009-07-21  Eric Blake  <ebb9@byu.net>
42803
42804         dup2-tests: test previous patch
42805         * modules/dup2-tests: New file.
42806         * tests/test-dup2.c: Likewise.
42807         * tests/test-open.c (main): Avoid unspecified behavior.
42808         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42809         test.
42810
42811         dup2: work around mingw and cygwin 1.5 bug
42812         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42814         * modules/unistd (Makefile.am): Substitute it.
42815         * lib/unistd.in.h (dup2): Declare the replacement.
42816         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42817         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42818         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42819         * modules/execute (Depends-on): Add dup2.
42820         * modules/fseterr (Depends-on): Likewise.
42821         * modules/pipe (Depends-on): Likewise.
42822         * modules/posix_spawn-internal (Depends-on): Likewise.
42823
42824 2009-07-21  Bruno Haible  <bruno@clisp.org>
42825
42826         * modules/.gitattributes: New file.
42827
42828 2009-07-20  Bruno Haible  <bruno@clisp.org>
42829
42830         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42831         (main): Use it.
42832
42833 2009-07-20  Eric Blake  <ebb9@byu.net>
42834
42835         test-pipe: make a bit more robust.
42836         * tests/test-pipe.c (myerr): Allow error messages regardless of
42837         what we do to stderr.
42838         (test_pipe): Rearrange to avoid deadlock.
42839         (child_main): Try a larger read, to ensure we avoided deadlock.
42840         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42841         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42842         if misused.
42843
42844 2009-07-19  Jim Meyering  <meyering@redhat.com>
42845
42846         fts: avoid false-positive cycle-detection
42847         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42848         for each new command line argument.
42849
42850 2009-07-19  Bruno Haible  <bruno@clisp.org>
42851
42852         Fix build error on mingw with the modules sys_select and unistd.
42853         * modules/acl-tests (Depends-on): Add close.
42854         * modules/binary-io-tests (Depends-on): Likewise.
42855         * modules/closein-tests (Depends-on): Likewise.
42856         * modules/flock-tests (Depends-on): Likewise.
42857         * modules/fsync-tests (Depends-on): Likewise.
42858         * modules/lseek-tests (Depends-on): Likewise.
42859         * modules/pipe-tests (Depends-on): Likewise.
42860         * modules/posix_spawn-tests (Depends-on): Likewise.
42861         * modules/posix_spawnp-tests (Depends-on): Likewise.
42862         * modules/stat-time-tests (Depends-on): Likewise.
42863         * modules/yesno-tests (Depends-on): Likewise.
42864
42865 2009-07-19  Bruno Haible  <bruno@clisp.org>
42866
42867         Unify conditionals.
42868         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42869         macros, not at the compiler macros.
42870         * lib/pipe.c: Likewise.
42871         * lib/execute.c: Likewise.
42872         * lib/spawni.c: Likewise.
42873
42874 2009-07-19  Bruno Haible  <bruno@clisp.org>
42875
42876         Fix handling of closed stdin/stdout/stderr on mingw.
42877         * lib/w32spawn.h: Include unistd.h.
42878         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42879         file descriptor with O_NOINHERIT flag.
42880         (fd_safer_noinherit): New function, based on fd-safer.c.
42881         (dup_safer_noinherit): New function, based on dup-safer.c.
42882         (undup_safer_noinherit): New function.
42883         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42884         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42885         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42886         instead of fd_safer.
42887         * tests/test-pipe.c: Include <windows.h>.
42888         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42889         result.
42890
42891         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42892         from main.
42893         (test_pipe): Pass an extra argument for disambiguation.
42894         (main): Invoke parent_main or child_main.
42895
42896         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42897         consistently.
42898
42899 2009-07-18  Eric Blake  <ebb9@byu.net>
42900
42901         test-pipe: fix mingw build
42902         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42903
42904 2009-07-18  Bruno Haible  <bruno@clisp.org>
42905
42906         * modules/pipe-tests (Makefile.am): Fix typo.
42907
42908 2009-07-18  Eric Blake  <ebb9@byu.net>
42909
42910         error: fix mingw build
42911         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42912         Reported by Bruno Haible.
42913
42914         error: avoid undefined use of stdout
42915         * lib/error.c (error, error_at_line): Check that fd 1 is open
42916         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42917         is handling faults and the close_stdout module wants to report the
42918         detection of closed stdout as an error.
42919
42920 2009-07-17  Eric Blake  <ebb9@byu.net>
42921
42922         pipe: be robust in face of closed fds
42923         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42924         should cause child to misbehave.
42925         * modules/pipe-tests: New module.
42926         * tests/test-pipe.c: New file.
42927         * tests/test-pipe.sh: New file.
42928         Reported by Akim Demaille.
42929
42930 2009-07-14  Bruno Haible  <bruno@clisp.org>
42931
42932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42933         Reported by anonymous kc.
42934
42935 2009-07-07  Jim Meyering  <meyering@redhat.com>
42936
42937         maint.mk: don't look for translatable strings in *.m4 or *.mk
42938         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42939         when searching for translatable strings.
42940
42941 2009-07-05  Jim Meyering  <meyering@redhat.com>
42942
42943         remove superfluous parentheses in STREQ definition
42944         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42945         * lib/getugroups.c (STREQ): Likewise.
42946         * lib/fnmatch.c (STREQ): Likewise.
42947         Spotted by Bruno Haible.
42948
42949 2009-07-04  Jim Meyering  <meyering@redhat.com>
42950
42951         argv-iter: new module
42952         * MODULES.html.sh: Add argv-iter.
42953         * lib/argv-iter.c, lib/argv-iter.h: New files.
42954         * modules/argv-iter: New file.
42955         * modules/argv-iter-tests: New file.
42956         * tests/test-argv-iter.c: Test it.
42957
42958 2009-07-04  Bruno Haible  <bruno@clisp.org>
42959
42960         Fix assertion.
42961         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42962         contains more exact copies of a given entry than file2, leave the extra
42963         copies unpaired rather than aborting.
42964         Reported by Eric Blake.
42965
42966 2009-07-02  Bruno Haible  <bruno@clisp.org>
42967
42968         Speedup git-merge-changelog for git cherry-pick.
42969         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42970         (entries_mapping_get): New function, extracted from compute_mapping.
42971         (entries_mapping_reverse_get): New function.
42972         (compute_mapping): Add a 'full' argument. Return the result in a
42973         'struct entries_mapping'.
42974         (main): Update. Access the mappings through entries_mapping_get.
42975         Reported by Eric Blake.
42976
42977 2009-07-02  Bruno Haible  <bruno@clisp.org>
42978
42979         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42980         best_i.
42981
42982 2009-07-02  Bruno Haible  <bruno@clisp.org>
42983
42984         Speed up approximate search for matching ChangeLog entries.
42985         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42986         argument. Call fstrcmp_bounded instead of fstrcmp.
42987         (compute_mapping, try_split_merged_entry, main): Update callers.
42988
42989 2009-07-02  Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42992
42993 2009-06-30  Bruno Haible  <bruno@clisp.org>
42994
42995         Reduce the number of uc_is_cased calls.
42996         * lib/unicase.h (casing_suffix_context_t): Add
42997         'first_char_except_ignorable' field.
42998         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42999         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43000         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43001         Update initializer.
43002         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43003         case-ignorable characters.
43004         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43005         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43006         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43007         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43008         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43009
43010 2009-06-30  Bruno Haible  <bruno@clisp.org>
43011
43012         Tests for module 'unicase/ignorable'.
43013         * modules/unicase/ignorable-tests: New file.
43014         * tests/unicase/test-ignorable.c: New file, generated by
43015         gen-uni-tables.
43016
43017         Tests for module 'unicase/cased'.
43018         * modules/unicase/cased-tests: New file.
43019         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43020         * tests/unicase/test-predicate-part1.h: New file, derived from
43021         tests/unictype/test-predicate-part1.h.
43022         * tests/unicase/test-predicate-part2.h: New file, same as
43023         tests/unictype/test-predicate-part2.h.
43024
43025         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43026         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43027         (output_casing_properties): New function.
43028         (main): Call it.
43029         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43030         * lib/unicase/cased.c: Include unictype/bitmap.h.
43031         (uc_is_cased): Define through a bitmap lookup.
43032         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43033         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43034         (uc_is_case_ignorable): Define through a bitmap lookup.
43035         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43036         lib/unictype/bitmap.h.
43037         (Depends-on): Add inline. Clean up.
43038         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43039         lib/unictype/bitmap.h.
43040         (Depends-on): Add inline. Clean up.
43041         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43042         recognition.
43043         * tests/unicase/test-u16-tolower.c (main): Likewise.
43044         * tests/unicase/test-u32-tolower.c (main): Likewise.
43045
43046 2009-06-30  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43049         * lib/unicase/u16-casemap.c: Likewise.
43050         * lib/unicase/u32-casemap.c: Likewise.
43051
43052 2009-06-29  Bruno Haible  <bruno@clisp.org>
43053
43054         Define u32_casefold as a wrapper around u32_ct_casefold.
43055         * lib/unicase/u32-casefold.c: Update.
43056         * modules/unicase/u32-casefold (Depends-on): Add
43057         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43058         unicase/empty-suffix-context. Clean up.
43059
43060         Define u16_casefold as a wrapper around u16_ct_casefold.
43061         * lib/unicase/u16-casefold.c: Update.
43062         * modules/unicase/u16-casefold (Depends-on): Add
43063         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43064         unicase/empty-suffix-context. Clean up.
43065
43066         Define u8_casefold as a wrapper around u8_ct_casefold.
43067         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43068         * lib/unicase/u8-casefold.c: Update.
43069         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43070         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43071
43072         Define u32_totitle as a wrapper around u32_ct_totitle.
43073         * lib/unicase/u32-totitle.c: Update.
43074         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43075         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43076
43077         Define u16_totitle as a wrapper around u16_ct_totitle.
43078         * lib/unicase/u16-totitle.c: Update.
43079         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43080         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43081
43082         Define u8_totitle as a wrapper around u8_ct_totitle.
43083         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43084         functions.
43085         (FUNC): Delegate to U_CT_TOTITLE.
43086         * lib/unicase/u8-totitle.c: Update.
43087         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43088         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43089
43090         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43091         invocation.
43092         * modules/unicase/u32-tolower (Depends-on): Add
43093         unicase/empty-prefix-context, unicase/empty-suffix-context.
43094
43095         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43096         invocation.
43097         * modules/unicase/u16-tolower (Depends-on): Add
43098         unicase/empty-prefix-context, unicase/empty-suffix-context.
43099
43100         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43101         * modules/unicase/u8-tolower (Depends-on): Add
43102         unicase/empty-prefix-context, unicase/empty-suffix-context.
43103
43104         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43105         invocation.
43106         * modules/unicase/u32-toupper (Depends-on): Add
43107         unicase/empty-prefix-context, unicase/empty-suffix-context.
43108
43109         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43110         invocation.
43111         * modules/unicase/u16-toupper (Depends-on): Add
43112         unicase/empty-prefix-context, unicase/empty-suffix-context.
43113
43114         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43115         * modules/unicase/u8-toupper (Depends-on): Add
43116         unicase/empty-prefix-context, unicase/empty-suffix-context.
43117
43118         New module 'unicase/u32-ct-casefold'.
43119         * lib/unicase/u32-ct-casefold.c: New file.
43120         * modules/unicase/u32-ct-casefold: New file.
43121
43122         New module 'unicase/u16-ct-casefold'.
43123         * lib/unicase/u16-ct-casefold.c: New file.
43124         * modules/unicase/u16-ct-casefold: New file.
43125
43126         New module 'unicase/u8-ct-casefold'.
43127         * lib/unicase/u8-ct-casefold.c: New file.
43128         * lib/unicase/u-ct-casefold.h: New file, derived from
43129         lib/unicase/u-casefold.h.
43130         * modules/unicase/u8-ct-casefold: New file.
43131
43132         New module 'unicase/u32-ct-totitle'.
43133         * lib/unicase/u32-ct-totitle.c: New file.
43134         * modules/unicase/u32-ct-totitle: New file.
43135
43136         New module 'unicase/u16-ct-totitle'.
43137         * lib/unicase/u16-ct-totitle.c: New file.
43138         * modules/unicase/u16-ct-totitle: New file.
43139
43140         New module 'unicase/u8-ct-totitle'.
43141         * lib/unicase/u8-ct-totitle.c: New file.
43142         * lib/unicase/u-ct-totitle.h: New file, derived from
43143         lib/unicase/u-totitle.h.
43144         * modules/unicase/u8-ct-totitle: New file.
43145
43146         New module 'unicase/u32-ct-tolower'.
43147         * lib/unicase/u32-ct-tolower.c: New file.
43148         * modules/unicase/u32-ct-tolower: New file.
43149
43150         New module 'unicase/u16-ct-tolower'.
43151         * lib/unicase/u16-ct-tolower.c: New file.
43152         * modules/unicase/u16-ct-tolower: New file.
43153
43154         New module 'unicase/u8-ct-tolower'.
43155         * lib/unicase/u8-ct-tolower.c: New file.
43156         * modules/unicase/u8-ct-tolower: New file.
43157
43158         New module 'unicase/u32-ct-toupper'.
43159         * lib/unicase/u32-ct-toupper.c: New file.
43160         * modules/unicase/u32-ct-toupper: New file.
43161
43162         New module 'unicase/u16-ct-toupper'.
43163         * lib/unicase/u16-ct-toupper.c: New file.
43164         * modules/unicase/u16-ct-toupper: New file.
43165
43166         New module 'unicase/u8-ct-toupper'.
43167         * lib/unicase/u8-ct-toupper.c: New file.
43168         * modules/unicase/u8-ct-toupper: New file.
43169
43170         Add context arguments to u*_casemap functions.
43171         * lib/unicase/unicasemap.h: Include unicase.h.
43172         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43173         suffix_context arguments.
43174         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43175         functions.
43176         (FUNC): Add prefix_context and suffix_context arguments. Use
43177         uc_is_cased and uc_is_case_ignorable.
43178         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43179         * lib/unicase/u16-casemap.c: Likewise.
43180         * lib/unicase/u32-casemap.c: Likewise.
43181         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43182         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43183         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43184         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43185         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43186         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43187
43188         New module 'unicase/u32-suffix-context'.
43189         * lib/unicase/u32-suffix-context.c: New file.
43190         * modules/unicase/u32-suffix-context: New file.
43191
43192         New module 'unicase/u16-suffix-context'.
43193         * lib/unicase/u16-suffix-context.c: New file.
43194         * modules/unicase/u16-suffix-context: New file.
43195
43196         New module 'unicase/u8-suffix-context'.
43197         * lib/unicase/u8-suffix-context.c: New file.
43198         * lib/unicase/u-suffix-context.h: New file.
43199         * modules/unicase/u8-suffix-context: New file.
43200
43201         New module 'unicase/empty-suffix-context'.
43202         * lib/unicase/empty-suffix-context.c: New file.
43203         * modules/unicase/empty-suffix-context: New file.
43204
43205         New module 'unicase/u32-prefix-context'.
43206         * lib/unicase/u32-prefix-context.c: New file.
43207         * modules/unicase/u32-prefix-context: New file.
43208
43209         New module 'unicase/u16-prefix-context'.
43210         * lib/unicase/u16-prefix-context.c: New file.
43211         * modules/unicase/u16-prefix-context: New file.
43212
43213         New module 'unicase/u8-prefix-context'.
43214         * lib/unicase/u8-prefix-context.c: New file.
43215         * lib/unicase/u-prefix-context.h: New file.
43216         * lib/unicase/context.h: New file.
43217         * modules/unicase/u8-prefix-context: New file.
43218
43219         New module 'unicase/empty-prefix-context'.
43220         * lib/unicase/empty-prefix-context.c: New file.
43221         * modules/unicase/empty-prefix-context: New file.
43222
43223         New module 'unicase/ignorable'.
43224         * lib/unicase/ignorable.c: New file.
43225         * modules/unicase/ignorable: New file.
43226
43227         New module 'unicase/cased'.
43228         * lib/unicase/caseprop.h: New file.
43229         * lib/unicase/cased.c: New file.
43230         * modules/unicase/cased: New file.
43231
43232         New functions for case mapping of substrings.
43233         * lib/unicase.h (casing_prefix_context_t): New type.
43234         (unicase_empty_prefix_context): New variable.
43235         (u8_casing_prefix_context, u16_casing_prefix_context,
43236         u32_casing_prefix_context, u8_casing_prefixes_context,
43237         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43238         declarations.
43239         (casing_suffix_context_t): New type.
43240         (unicase_empty_suffix_context): New variable.
43241         (u8_casing_suffix_context, u16_casing_suffix_context,
43242         u32_casing_suffix_context, u8_casing_suffixes_context,
43243         u16_casing_suffixes_context, u32_casing_suffixes_context,
43244         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43245         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43246         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43247         declarations.
43248
43249 2009-06-28  Jim Meyering  <meyering@redhat.com>
43250
43251         boostrap: indent only with spaces
43252         * build-aux/bootstrap: Indent only with spaces, never TABs.
43253
43254         bootstrap: split long lines
43255         * build-aux/bootstrap: Keep line length < 80.
43256
43257         bootstrap: sync from coreutils
43258         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43259         just as autoreconf does.  Verify a list of prerequisite
43260         package-name,version-number pairs if defined in bootstrap.conf.
43261         Refer to README-prereq, if prerequisites are not satisfied.
43262
43263 2009-06-27  Eric Blake  <ebb9@byu.net>
43264
43265         tests: add test for bogus NULL definition
43266         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43267         * tests/test-stdlib.c: Likewise.
43268         * tests/test-string.c: Likewise.
43269         * tests/test-locale.c: Likewise.
43270         * tests/test-unistd.c: Likewise.
43271         * modules/stdio-tests (Depends-on): Add verify.
43272         * modules/stdlib-tests (Depends-on): Likewise.
43273         * modules/string-tests (Depends-on): Likewise.
43274         * modules/locale-tests (Depends-on): Likewise.
43275         * modules/unistd-tests (Depends-on): Likewise.
43276
43277 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43278
43279         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43280         self-explaining comment.
43281         * m4/selinux-selinux-h: Update serial.
43282         (gl_LIBSELINUX): New macro, adding a warning for missing development
43283         packages to code extracted from...
43284         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43285         Add warning for missing development packages here, too.
43286
43287 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43288
43289         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43290
43291 2009-06-25  Eric Blake  <ebb9@byu.net>
43292
43293         version-etc: fix regression
43294         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43295         gcc.
43296         (version_etc): Use it, to catch bugs with trailing NULL.
43297         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43298         (version_etc_va): Fix logic bug.
43299         * modules/version-etc-tests: Add test.
43300         * tests/test-version-etc.c: New file.
43301         * tests/test-version-etc.sh: Likewise.
43302
43303 2009-06-25  Sam Steingold  <sds@gnu.org>
43304
43305         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43306         mbtowc declaration.
43307
43308 2009-06-25  Eric Blake  <ebb9@byu.net>
43309
43310         fpurge: migrate into <stdio.h>
43311         * lib/fpurge.h: Delete...
43312         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43313         * lib/fpurge.c (fpurge): Change declaring header.
43314         * modules/fpurge (Files): Drop deleted file.
43315         (Depends-on): Add stdio.
43316         (configure.ac): Set witness.
43317         * modules/stdio (Makefile.am): Support fpurge macros.
43318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43319         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43320         * lib/fflush.c: Update client.
43321         * tests/test-fpurge.c: Likewise.
43322         * NEWS: Mention the change.
43323
43324 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43325
43326         * lib/argp-version-etc.c (program_authors): Add const
43327         qualifier.
43328         * lib/version-etc.c: Fix typos in the comments.
43329         * modules/argp-version-etc: Depends on version-etc.
43330
43331 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43332
43333         argp-version-etc: new module.
43334
43335         * lib/argp-version-etc.c: New file.
43336         * lib/argp-version-etc.h: New file.
43337         * modules/argp-version-etc: New file.
43338         * modules/argp-version-etc-tests: New file.
43339         * tests/test-argp-version-etc.c: New test.
43340         * tests/test-argp-version-etc-1.sh: New test.
43341
43342 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43343
43344         Provide additional interfaces and documentation for version-etc
43345         module.
43346
43347         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43348         interfaces.
43349         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43350         prototypes.
43351
43352 2009-06-24  Bruno Haible  <bruno@clisp.org>
43353
43354         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43355         HAVE_LIB${NAME} macro.
43356         Reported by Sam Steingold <sds@gnu.org>.
43357
43358 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43359
43360         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43361         needed.
43362
43363 2009-06-21  Bruno Haible  <bruno@clisp.org>
43364
43365         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43366         work.
43367         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43368         together with LIB${NAME}, LTLIB${NAME}.
43369         Reported by Sam Steingold <sds@gnu.org>.
43370
43371 2009-06-20  Jim Meyering  <meyering@redhat.com>
43372
43373         tests: make sc_require_test_exit_idiom more generic
43374         * top/maint.mk (Exit_witness_file): New overridable variable.
43375         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43376         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43377
43378 2009-06-19  Jim Meyering  <meyering@redhat.com>
43379
43380         hash: reverse order of src/dst parameters in an internal interface
43381         * lib/hash.c (transfer_entries): Reverse order of parameters to
43382         put DST before SRC.  Adjust callers.
43383
43384         tests: test-hash: avoid wholesale duplication
43385         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43386         Instead, use a loop and add a single conditional.
43387
43388         tests: test-hash: allow seed selection via a command line argument
43389         * tests/test-hash.c (get_seed): New function.
43390         (main): Use it.
43391
43392 2009-06-19  Eric Blake  <ebb9@byu.net>
43393
43394         hash: avoid memory leak on allocation failure
43395         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43396         failure.  Factor repeated algorithm...
43397         (transfer_entries): ...into new helper routine.
43398         (hash_delete): React to hash_rehash return value.
43399
43400         hash: reduce memory pressure in hash_rehash no-op case
43401         * lib/hash.c (next_prime): Avoid overflow.
43402         (hash_initialize): Factor bucket size computation...
43403         (compute_bucket_size): ...into new helper function.
43404         (hash_rehash): Use new function and open coding to reduce memory
43405         pressure, and avoid a memory leak in USE_OBSTACK code.
43406         Reported by Jim Meyering.
43407
43408 2009-06-18  Eric Blake  <ebb9@byu.net>
43409
43410         hash: make rotation more obvious
43411         * modules/hash (Depends-on): Add bitrotate and stdint.
43412         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43413         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43414         (SIZE_MAX): Rely on headers for definition.
43415         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43416         (raw_hasher): Use rotr_sz.
43417         Suggested by Jim Meyering.
43418
43419         hash: fix memory leak in last patch
43420         * lib/hash.c (hash_rehash): Avoid memory leak.
43421
43422         hash: avoid no-op rehashing
43423         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43424
43425         hash: provide default callback functions
43426         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43427         (hash_initialize): Use them as defaults.
43428         * tests/test-hash.c (main): Test this.
43429
43430         hash: minor optimization
43431         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43432         when possible.
43433         (hash_initialize): Document this promise.
43434         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43435         * tests/test-hash.c (hash_compare_strings): Test this.
43436
43437 2009-06-18  Bruno Haible  <bruno@clisp.org>
43438
43439         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43440         going to be replaced anyway.
43441
43442 2009-06-18  Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43445         in one place.
43446         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43447         be replaced anyway.
43448
43449 2009-06-18  Eric Blake  <ebb9@byu.net>
43450
43451         hash: check for resize before insertion
43452         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43453         threshold before insertion, so that a pathological hash_rehash
43454         that fills every bucket can still trigger another rehash.
43455
43456 2009-06-18  Jim Meyering  <meyering@redhat.com>
43457
43458         hash-tests: add a loop around the small tests
43459         * tests/test-hash.c (main): Repeat small tests with selected
43460         small initial table sizes.
43461
43462 2009-06-17  Eric Blake  <ebb9@byu.net>
43463
43464         hash: minor cleanups
43465         * lib/hash.h (hash_entry): Make opaque, by moving...
43466         * lib/hash.c (hash_entry): ...here.
43467         (hash_insert): Clarify restrictions on what can be inserted.
43468         (hash_get_next): Clarify when it is safe to remove an element
43469         during traversal.
43470         (check_tuning): Skip verification when tuning is known safe.
43471         (hash_initialize): Clarify restrictions on tuning.
43472
43473 2009-06-17  Jim Meyering  <jim@meyering.net>
43474         and Eric Blake  <ebb9@byu.net>
43475
43476         hash-tests: new module
43477         * modules/hash-tests: New file.
43478         * tests/test-hash.c: New file.
43479
43480 2009-06-17  Eric Blake  <ebb9@byu.net>
43481
43482         strstr-simple: document new module
43483         * MODULES.html.sh: Document new module.
43484
43485         strstr, strcasestr: replace on platforms with broken memchr
43486         * modules/strstr: Split into...
43487         * modules/strstr-simple: ...new module that does not care about
43488         performance, but does care about glibc bug.
43489         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43490         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43491         if platform memchr is broken, per Debian bug 521737.
43492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43493         memchr.
43494         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43495         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43496         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43497         * modules/mountlist (Depends-on): Add strstr-simple.
43498         * modules/gen-uni-tables (Depends-on): Likewise.
43499         * modules/argz (Depends-on): Add strstr.
43500
43501 2009-06-17  Bruno Haible  <bruno@clisp.org>
43502
43503         * modules/posix_spawn-internal (Depends-on): Add errno.
43504
43505 2009-06-17  Bruno Haible  <bruno@clisp.org>
43506
43507         Define missing ESTALE on Interix 3.5.
43508         * lib/errno.in.h (ESTALE): Assign a value if missing.
43509         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43510         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43511         missing.
43512         * doc/posix-headers/errno.texi: Mention the Interix bug.
43513         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43514
43515 2009-06-15  Eric Blake  <ebb9@byu.net>
43516
43517         memchr, memchr2: add valgrind exception
43518         * lib/memchr.valgrind: New file.
43519         * lib/memchr2.valgrind: New file.
43520         * modules/memchr (Files): Distribute valgrind file.
43521         * modules/memchr2 (Files): Likewise.
43522
43523         docs: memchr is no longer obsolete
43524         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43525         * lib/string.in.h (memchr): Simplify logic.
43526
43527 2009-06-14  Jim Meyering  <meyering@redhat.com>
43528
43529         link-follow: fix the "checking..." message to not mention trailing slash
43530         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43531         never considered trailing slashes.
43532
43533 2009-06-14  Bruno Haible  <bruno@clisp.org>
43534
43535         * m4/memchr.m4: Mention also the bug on IA-64.
43536         * doc/posix-functions/memchr.texi: Likewise.
43537
43538 2009-06-12  Eric Blake  <ebb9@byu.net>
43539
43540         memchr: detect broken x86_64 and alpha implementations
43541         * modules/memchr-tests (Depends-on): Move mmap detection...
43542         * modules/memchr (Depends-on): ...here.
43543         (configure.ac): Set indicator.
43544         * lib/string.in.h (memchr): Declare replacement.
43545         * modules/string (Makefile.am): Trigger replacement.
43546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43547         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43548         bugs.
43549         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43550         * modules/getpagesize (License): Relax license.
43551
43552 2009-06-11  Bruno Haible  <bruno@clisp.org>
43553
43554         * lib/idpriv.h: Add more references.
43555
43556 2009-06-08  Bruno Haible  <bruno@clisp.org>
43557
43558         Tests for module 'idpriv-droptemp'.
43559         * modules/idpriv-droptemp-tests: New file.
43560         * tests/test-idpriv-droptemp.sh: New file.
43561         * tests/test-idpriv-droptemp.su.sh: New file.
43562         * tests/test-idpriv-droptemp.c: New file.
43563
43564         New module 'idpriv-droptemp'.
43565         * lib/idpriv-droptemp.c: New file.
43566         * modules/idpriv-droptemp: New file.
43567
43568 2009-06-08  Bruno Haible  <bruno@clisp.org>
43569
43570         Tests for module 'idpriv-drop'.
43571         * modules/idpriv-drop-tests: New file.
43572         * tests/test-idpriv-drop.sh: New file.
43573         * tests/test-idpriv-drop.su.sh: New file.
43574         * tests/test-idpriv-drop.c: New file.
43575
43576         New module 'idpriv-drop'.
43577         * lib/idpriv.h: New file.
43578         * lib-idpriv-drop.c: New file.
43579         * m4/idpriv.m4: New file.
43580         * modules/idpriv-drop: New file.
43581
43582 2009-06-08  Bruno Haible  <bruno@clisp.org>
43583
43584         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43585         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43586         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43587         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43588         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43589         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43590         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43591
43592 2009-06-08  Eric Blake  <ebb9@byu.net>
43593
43594         test-strstr: use memory fence, when possible
43595         * tests/test-strstr.c (main): Use memory fence, in order to be
43596         more likely to trigger Debian bug 521737.
43597         * modules/strstr-tests (Files): Pull in additional files.
43598
43599         memchr: no longer obsolete, for wider field testing
43600         * modules/memchr (Status, Notice): Delete, this module is no
43601         longer obsolete.
43602         * modules/vasnprintf (Depends-on): Add memchr.
43603
43604 2009-06-07  Jim Meyering  <meyering@redhat.com>
43605
43606         hash: declare some functions with the warn_unused_result attribute
43607         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43608
43609 2009-06-07  Bruno Haible  <bruno@clisp.org>
43610
43611         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43612         Reported by Eric Blake.
43613
43614 2009-06-06  Eric Blake  <ebb9@byu.net>
43615
43616         test-alignof: fix typo with long double
43617         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43618         compiler error.
43619
43620 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43621
43622         Escape non-texinfo { and }s.
43623         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43624         markup error.
43625
43626 2009-06-04  Jim Meyering  <meyering@redhat.com>
43627
43628         gitlog-to-changelog: don't infloop on an empty commit log
43629         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43630         Reported by Boris Petersen <transacid@centerim.org>.
43631
43632 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43633
43634         version-etc: extend for packagers
43635         Add three new configure options, intended for packagers:
43636           --with-packager="packager name"
43637           --with-packager-version="packager-specific version"
43638           --with-packager-bug-reports="packager bug reporting"
43639         An example with coreutils:
43640           $ ./configure \
43641             --with-packager=Gentoo \
43642             --with-packager-bug-report=http://bugs.gentoo.org/ \
43643             --with-packager-version="patchset 1.6"
43644           $ ./src/ls --version | head -n2
43645           ls (GNU coreutils) 7.1-dirty
43646           Packaged by Gentoo (patchset 1.6)
43647         Note that the bug reporting info via --help doesn't show up because
43648         coreutils uses its own custom emit_bug_reporting_address() implementation
43649         in src/system.h.  If it didn't, it'd look like:
43650           $ ./src/ls --help | tail -n4
43651           Report bugs to <bug-coreutils@gnu.org>.
43652           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43653           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43654           General help using GNU software: <http://www.gnu.org/gethelp/>.
43655         * lib/version-etc.c: Print new information, if provided.
43656         * m4/version-etc.m4: New file.
43657         * modules/version-etc (Files): Add m4/version-etc.m4.
43658         (configure.ac): Add gl_VERSION_ETC.
43659
43660 2009-05-31  Bruno Haible  <bruno@clisp.org>
43661
43662         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43663         and 'int64_t'.
43664         * modules/alignof-tests (Dependencies): Add stdint.
43665         Reported by Eric Blake.
43666
43667 2009-05-31  Bruno Haible  <bruno@clisp.org>
43668
43669         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43670         restriction due to compiler bugs.
43671         Reported by Eric Blake.
43672
43673 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43674             Bruno Haible  <bruno@clisp.org>
43675
43676         Fix test-alignof failure.
43677         * lib/alignof.h (alignof_slot): New macro.
43678         (alignof_type): New macro, with the same semantics as the previous
43679         'alignof'.
43680         (alignof): Alias to alignof_slot.
43681         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43682         check that the results are usable as constant expressions.
43683
43684 2009-05-31  Bruno Haible  <bruno@clisp.org>
43685
43686         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43687         * tests/test-memchr.c (main): Check that memchr does not read past the
43688         first occurrence of the byte.
43689         * tests/test-strstr.c (main): Update comment.
43690         Suggested by Eric Blake.
43691
43692 2009-05-30  Bruno Haible  <bruno@clisp.org>
43693
43694         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43695         detail how to use dumpbin.
43696         Reported by David Byron <dbyron@dbyron.com>.
43697
43698 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43699
43700         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43701
43702 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43703
43704         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43705
43706 2009-05-28  Bruno Haible  <bruno@clisp.org>
43707
43708         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43709         build-aux/ files.
43710
43711 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43712
43713         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43714
43715 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43716
43717         * gnulib-tool (sed_transform_main_lib_file)
43718         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43719         regexps.
43720
43721 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43722
43723         * tests/test-strstr.c: Add another self-test.
43724         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43725         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43726
43727 2009-05-23  Bruno Haible  <bruno@clisp.org>
43728
43729         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43730         change.
43731
43732 2009-05-21  Bruno Haible  <bruno@clisp.org>
43733
43734         Simplify use of mode_t varargs.
43735         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43736         uses 'mode_t' or 'int'.
43737         * lib/openat.c (openat): Likewise.
43738         * lib/open-safer.c (open_safer): Likewise.
43739         * m4/mode_t.m4: New file.
43740         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43741         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43743         * modules/open (Files): Add m4/mode_t.m4.
43744         * modules/openat (Files): Likewise.
43745         * modules/fcntl-safer (Files): Likewise.
43746         Suggested by Eric Blake.
43747
43748 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43749
43750         * doc/glibc-functions/fallocate.texi: New file.
43751         * doc/gnulib.texi: Include it.
43752
43753 2009-05-21  Eric Blake  <ebb9@byu.net>
43754             Bruno Haible  <bruno@clisp.org>
43755
43756         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43757         invocations.
43758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43759
43760 2009-05-21  Eric Blake  <ebb9@byu.net>
43761             Bruno Haible  <bruno@clisp.org>
43762
43763         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43764         include_next. Fix of 2008-11-20 commit.
43765         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43766         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43767         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43768         NEXT_MATH_H.
43769         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43770         instead of NEXT_MATH_H.
43771
43772 2009-05-21  Bruno Haible  <bruno@clisp.org>
43773
43774         Avoid redefinition warnings for SIZE_MAX.
43775         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43776         Reported by Simon Josefsson.
43777
43778 2009-05-21  Bruno Haible  <bruno@clisp.org>
43779
43780         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43781         AC_CACHE_VAL.
43782
43783 2009-05-20  Bruno Haible  <bruno@clisp.org>
43784
43785         Make zeroptr.h work on mingw.
43786         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43787         mprotect.
43788         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43789         * modules/memchr2-tests (configure.ac): Likewise.
43790         * modules/memcmp-tests (configure.ac): Likewise.
43791         * modules/memmem-tests (configure.ac): Likewise.
43792         * modules/memrchr-tests (configure.ac): Likewise.
43793         Reported by Simon Josefsson.
43794
43795 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43796
43797         * tests/test-glob.c: Include string.h for strcmp prototype.
43798
43799 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43800
43801         * modules/getdelim (Depends-on): Add explicit stdint, although it
43802         was implicitly already pulled in via realloc-posix.
43803         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43804
43805 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43806
43807         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43808         G. Christensen" <tgc@jupiterrise.com>.
43809         * m4/sys_socket_h.m4: Check for sa_family_t.
43810         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43811         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43812         * tests/test-sys_socket.c: Check that sa_family_t works.
43813
43814 2009-05-18  Eric Blake  <ebb9@byu.net>
43815
43816         maint.mk: allow gnulib_dir in VPATH build
43817         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43818
43819 2009-05-15  Jim Meyering  <meyering@redhat.com>
43820
43821         maint.mk: Give gnulib_dir a default definition.
43822         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43823         Thus, most packages no longer need to specify this variable in cfg.mk
43824
43825 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43826
43827         rename.m4: fix typos that would make non-mingw cross-configure fail
43828         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43829
43830 2009-05-13  Eric Blake  <ebb9@byu.net>
43831
43832         mmap-anon: avoid out-of-order autoconf expansion
43833         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43834         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43835         * modules/memchr-tests (Depends-on): Add extensions.
43836         * modules/memchr2-tests (Depends-on): Add extensions.
43837         * modules/memcmp-tests (Depends-on): Add extensions.
43838         * modules/memmem-tests (Depends-on): Add extensions.
43839         * modules/memrchr-tests (Depends-on): Add extensions.
43840
43841 2009-05-13  Bruno Haible  <bruno@clisp.org>
43842
43843         Make some tests ISO C 99 compliant.
43844         * tests/zerosize-ptr.h: New file.
43845         * tests/test-memchr.c: Include zerosize-ptr.h.
43846         (main): Use a zero-size object pointer instead of NULL.
43847         * tests/test-memchr2.c: Include zerosize-ptr.h.
43848         (main): Use a zero-size object pointer instead of NULL.
43849         * tests/test-memcmp.c: Include zerosize-ptr.h.
43850         (main): Use a zero-size object pointer instead of NULL.
43851         * tests/test-memmem.c: Include zerosize-ptr.h.
43852         (main): Use a zero-size object pointer instead of NULL.
43853         * tests/test-memrchr.c: Include zerosize-ptr.h.
43854         (main): Use a zero-size object pointer instead of NULL.
43855         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43856         m4/mmap-anon.m4.
43857         (Depends-on): Add getpagesize.
43858         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43859         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43860         m4/mmap-anon.m4.
43861         (Depends-on): Add getpagesize.
43862         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43863         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43864         m4/mmap-anon.m4.
43865         (Depends-on): Add getpagesize.
43866         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43867         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43868         m4/mmap-anon.m4.
43869         (Depends-on): Add getpagesize.
43870         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43871         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43872         m4/mmap-anon.m4.
43873         (Depends-on): Add getpagesize.
43874         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43875
43876 2009-05-12  Bruno Haible  <bruno@clisp.org>
43877
43878         Tests for module 'alignof'.
43879         * modules/alignof-tests: New file.
43880         * tests/test-alignof.c: New file.
43881
43882 2009-05-12  Bruno Haible  <bruno@clisp.org>
43883
43884         Fix alignof macro.
43885         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43886         vendor compilers that are always correct.
43887
43888 2009-05-12  Bruno Haible  <bruno@clisp.org>
43889
43890         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43891         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43892         not whether its fully works.
43893
43894 2009-05-12  Bruno Haible  <bruno@clisp.org>
43895
43896         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43897
43898 2009-05-12  Jim Meyering  <meyering@redhat.com>
43899
43900         * top/maint.mk: Adjust backslash alignment.
43901
43902 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43903
43904         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43905
43906 2009-05-11  Eric Blake  <ebb9@byu.net>
43907
43908         argp: avoid undefined behavior
43909         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43910         macros.
43911
43912 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43913
43914         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43915         user.name to prevent git commit from complaining.
43916
43917 2009-05-10  Bruno Haible  <bruno@clisp.org>
43918
43919         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43920         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43921         it rewrites every file name only once.
43922         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43923
43924 2009-05-08  Bruno Haible  <bruno@clisp.org>
43925
43926         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43927         instead of 'max'.
43928
43929 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43930
43931         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43932         sockaddr_storage test.
43933
43934 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43935
43936         * modules/sys_socket (Makefile.am): Substitute
43937         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43938         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43939         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43940         * tests/test-sys_socket.c: Check sockaddr_storage.
43941
43942 2009-05-08  Bruno Haible  <bruno@clisp.org>
43943
43944         New module 'alignof'.
43945         * lib/alignof.h: New file.
43946         * modules/alignof: New file.
43947
43948 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43949             Bruno Haible  <bruno@clisp.org>
43950
43951         Fix test-file-has-acl on FreeBSD.
43952         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43953         mask is implicitly added.
43954         * tests/test-file-has-acl.c: Include <signal.h>.
43955         (main): Terminate the test after 5 seconds.
43956         * modules/acl-tests (configure.ac): Check for alarm function.
43957
43958 2009-05-04  Bruno Haible  <bruno@clisp.org>
43959
43960         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43961         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43962         * modules/errno (configure.ac): Drop AC_REQUIRE.
43963         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43964         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43965
43966 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43967
43968         * modules/glob-tests: New module.
43969         * tests/test-glob.c: Add.
43970
43971 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43972
43973         * modules/fnmatch-tests: New module.
43974         * tests/test-fnmatch.c: Add.
43975
43976 2009-05-04  Eric Blake  <ebb9@byu.net>
43977
43978         maint: make the new no-submodule-changes rule VPATH-safe
43979         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43980
43981 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43982             Bruno Haible  <bruno@clisp.org>
43983
43984         acl: Fix infinite loop on FreeBSD.
43985         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43986         of return value from acl_get_entry.
43987         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43988         Likewise.
43989
43990 2009-05-03  Bruno Haible  <bruno@clisp.org>
43991
43992         * lib/acl-internal.h (acl_entries): Clarify return value.
43993         * lib/acl_entries.c (acl_entries): Likewise.
43994
43995 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43996
43997         Bug fix in acl module.
43998         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43999
44000 2009-05-03  Bruno Haible  <bruno@clisp.org>
44001
44002         Create gperf-generated file in the source dir, not in the build dir.
44003         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44004         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44005         * modules/unicase/locale-language (unicase/locale-languages.h):
44006         Likewise.
44007         * modules/unicase/special-casing (unicase/special-casing-table.h):
44008         Likewise.
44009         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44010         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44011         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44012         Reported by Ralf Wildenhues.
44013
44014 2009-05-03  Bruno Haible  <bruno@clisp.org>
44015
44016         * modules/fnmatch (Description, configure.ac): Taken from
44017         fnmatch-posix.
44018         * modules/fnmatch-posix: Turn into a symbolic reference to the
44019         'fnmatch' module, and deprecate.
44020         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44021
44022 2009-05-03  Bruno Haible  <bruno@clisp.org>
44023
44024         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44025         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44026         Reported by Ralf Wildenhues.
44027
44028 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44029
44030         * m4/fnmatch.m4: Fix fnmatch re-define.
44031
44032 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44033
44034         priv-set: new module and tests; adapt write-any-file
44035         * lib/priv-set.c: New file.
44036         * lib/priv-set.h: New file.
44037         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44038         * lib/write-any-file.c: Simplify by using priv-set module.
44039         * m4/priv-set.m4: New file.
44040         * modules/priv-set: New file.
44041         * modules/unlinkdir: Add dependency on priv-set module.
44042         * modules/write-any-file: Likewise.
44043
44044         Tests for module 'priv-set'.
44045         * modules/priv-set-tests: New file.
44046         * tests/test-priv-set.c: New file.
44047
44048 2009-05-03  Jim Meyering  <meyering@redhat.com>
44049             Bruno Haible  <bruno@clisp.org>
44050
44051         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44052         use the converted UTF-8 variant of the name instead.
44053
44054 2009-05-03  Jim Meyering  <meyering@redhat.com>
44055
44056         tests: tighten some getdate tests
44057         * tests/test-getdate.c (main): Tighten tests: require equality,
44058         not just greater than.  Set TZ envvar to UTC0.
44059
44060 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44061
44062         getdate: correctly interpret "next monday" when run on a Monday
44063         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44064         that e.g., "next tues" (when run on a tuesday) results in a date
44065         that is one week in the future, and not today's date.
44066         I.e., add a week when the wday is the same as the current one.
44067         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44068         and earlier by Martin Bernreuther and Jan Minář.
44069         * tests/test-getdate.c (main): Check that "next DAY" is always in
44070         the future and that "last DAY" is always in the past.
44071
44072 2009-05-02  Jim Meyering  <meyering@redhat.com>
44073
44074         build: ensure that a release build fails when a submodule is unclean
44075         * top/maint.mk (no-submodule-changes): New rule.
44076         (alpha beta major): Depend on it.
44077
44078 2009-05-02  Bruno Haible  <bruno@clisp.org>
44079
44080         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44081         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44082         shell variable gl_fnmatch_required to detect which variant is
44083         requested.
44084         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44085         gl_FUNC_FNMATCH_POSIX.
44086         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44087         exclude fnmatch-posix.
44088
44089 2009-05-02  Bruno Haible  <bruno@clisp.org>
44090
44091         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44092         * modules/mbsrtowcs (License): Change to LGPLv2+.
44093         * modules/strnlen1 (License): Likewise.
44094         Reported by Simon Josefsson.
44095
44096 2009-05-02  Bruno Haible  <bruno@clisp.org>
44097
44098         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44099         "cross".
44100         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44101         gnulib-tool was called with option --source-base=lib.
44102
44103 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44104
44105         Use automake *-local hooks without commands, for extensibility.
44106         * modules/localcharset (Makefile.am): Rename install-exec-local
44107         rule to install-exec-localcharset, and make it a prerequisite of
44108         install-exec-local.  Likewise, rename the uninstall-local rule to
44109         uninstall-localcharset, and make it a prerequisite of the former.
44110
44111 2009-05-01  Bruno Haible  <bruno@clisp.org>
44112
44113         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44114         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44115         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44116         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44117         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44118         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44119         m4/locale-zh.m4, m4/codeset.m4.
44120
44121         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44122         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44123         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44124         m4/locale-zh.m4.
44125
44126         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44127         REPLACE_WCRTOMB if mbstate_t must be replaced.
44128         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44129         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44130
44131 2009-05-01  Bruno Haible  <bruno@clisp.org>
44132
44133         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44134         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44135         dngettext, dcngettext, textdomain, bindtextdomain,
44136         bind_textdomain_codeset): Undefine before redefining.
44137
44138 2009-04-30  Bruno Haible  <bruno@clisp.org>
44139
44140         Fix bug introduced on 2009-04-25.
44141         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44142         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44143         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44144         is defined.
44145         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44146         is defined.
44147         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44148         is defined.
44149         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44150
44151 2009-04-28  Bruno Haible  <bruno@clisp.org>
44152
44153         Comment tweaks.
44154         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44155         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44156         * lib/unicase.h (u*_casexfrm): Likewise.
44157         Reported by Paolo Bonzini.
44158
44159 2009-04-28  Bruno Haible  <bruno@clisp.org>
44160
44161         Fix a compilation error.
44162         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44163         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44164         Reported by Jim Meyering.
44165
44166 2009-04-27  Bruno Haible  <bruno@clisp.org>
44167
44168         New module 'libunistring'.
44169         * modules/libunistring: New file.
44170         * m4/libunistring.m4: New file.
44171         * MODULES.html.sh (Unicode string functions): Add it.
44172
44173 2009-04-27  Eric Blake  <ebb9@byu.net>
44174
44175         maint.mk: allow package-specific header to provide <config.h>
44176         * top/maint.mk (sc_require_config_h): New variable.
44177         (sc_require_config_h, sc_require_config_h_first): Use it.
44178
44179 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44180
44181         * top/maint.mk (sc_avoid_if_before_free): Except
44182         useless-if-before-free script.
44183
44184 2009-04-27  Eric Blake  <ebb9@byu.net>
44185
44186         maintainer-makefile: depend on all required helper scripts
44187         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44188         useless-if-before-free.
44189         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44190         version, rather than assuming gnulib checkout is available.
44191         Reported by Simen Josefsson.
44192
44193 2009-04-26  Bruno Haible  <bruno@clisp.org>
44194
44195         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44196         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44197         "../" or "..".
44198
44199 2009-04-26  Bruno Haible  <bruno@clisp.org>
44200
44201         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44202         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44203         AC_LIB_HAVE_LINKFLAGS.
44204
44205 2009-04-26  Bruno Haible  <bruno@clisp.org>
44206
44207         Simplify calling convention of u*_conv_from_encoding.
44208         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44209         u32_conv_from_encoding): Expect a resultbuf argument and return the
44210         result directly as a pointer.
44211         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44212         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44213         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44214         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44215         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44216         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44217         Update.
44218         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44219         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44220         * lib/vasnprintf.c (VASNPRINTF): Update.
44221         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44222         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44223         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44224         * NEWS: Mention the change.
44225
44226 2009-04-26  Bruno Haible  <bruno@clisp.org>
44227
44228         Simplify calling convention of u*_conv_to_encoding.
44229         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44230         u32_conv_to_encoding): Expect a resultbuf argument and return the
44231         result directly as a pointer.
44232         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44233         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44234         freeing scaled_offsets if mem_iconveha failed.
44235         * lib/unicase/u-casexfrm.h (FUNC): Update.
44236         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44237         * lib/vasnprintf.c (VASNPRINTF): Update.
44238         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44239         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44240         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44241         * NEWS: Mention the change.
44242
44243 2009-04-26  Bruno Haible  <bruno@clisp.org>
44244
44245         Avoid test failures on AIX and OSF/1.
44246         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44247         malloc(0).
44248         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44249         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44250         Likewise.
44251         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44252         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44253         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44254         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44255         * doc/posix-functions/malloc.texi: Document the portability problem
44256         related to malloc(0).
44257
44258 2009-04-26  Bruno Haible  <bruno@clisp.org>
44259
44260         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44261         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44262         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44263
44264 2009-04-25  Bruno Haible  <bruno@clisp.org>
44265
44266         Avoid link error when creating a namespace clean library.
44267         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44268         as macro with arguments if already defined as an alias.
44269         * lib/signbitf.c (gl_signbitf): Don't undefine.
44270         * lib/signbitd.c (gl_signbitd): Don't undefine.
44271         * lib/signbitl.c (gl_signbitl): Don't undefine.
44272
44273 2009-04-25  Jim Meyering  <meyering@redhat.com>
44274
44275         vc-list-files: fix another quoting bug
44276         * build-aux/vc-list-files: Avoid sed backslash expansion
44277         of pathological directory names.
44278
44279 2009-04-25  Eric Blake  <ebb9@byu.net>
44280
44281         vc-list-files: fix shell quoting error
44282         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44283         timestamp.
44284
44285 2009-04-25  Jim Meyering  <meyering@redhat.com>
44286
44287         vc-list-files: restore lost functionality with subdir argument
44288         * build-aux/vc-list-files: When given a non-"." sub-directory
44289         argument, substitute the $dir/ prefix back onto each resulting name.
44290         Otherwise, coreutils' root_tests check would fail.
44291
44292 2009-04-24  Eric Blake  <ebb9@byu.net>
44293
44294         vc-list-files: ignore git symlinks
44295         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44296         than ls-files, to ignore git symlinks.
44297
44298         maint.mk: import improvements from m4
44299         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44300         (move_if_change): Delete unused macro.
44301         (news-date-check, vc-diff-check): Support VPATH builds.
44302         (announcement): Likewise.  Split --bootstrap-tools list...
44303         (boostrap-tools): ...into separate list, which can be overridden
44304         in cfg.mk.
44305         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44306         requiring dependency on useless-if-before-free module.
44307         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44308         Support VPATH builds.
44309
44310 2009-04-24  Jim Meyering  <meyering@redhat.com>
44311
44312         maint.mk: remove coreutils-specific rules and variables
44313         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44314         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44315         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44316
44317         maint.mk: remove obsolete rule
44318         * top/maint.mk (rel-check): Remove rule.
44319         (WGET, WGETFLAGS): Remove now-unused variables.
44320
44321 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44322
44323         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44324         consistency.
44325
44326         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44327         '$(PATH_SEPARATOR)' instead of ':'.
44328
44329 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44330
44331         * lib/getopt1.c (main): Use 'const' for static array.
44332
44333 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44334
44335         * top/maint.mk: Sync with coreutils.
44336         * NEWS: Explain incompatibilities.
44337
44338 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44339             Bruno Haible  <bruno@clisp.org>
44340
44341         Fix cross-compilation results.
44342         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44343         statement, as third argument of AC_TRY_RUN.
44344         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44345         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44346         Likewise.
44347         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44348         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44349         Likewise.
44350         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44351         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44352         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44353
44354 2009-04-20  Bruno Haible  <bruno@clisp.org>
44355
44356         Avoid test failure on mingw.
44357         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44358
44359 2009-04-20  Bruno Haible  <bruno@clisp.org>
44360
44361         Avoid compilation error on mingw.
44362         * modules/localename-tests (Depends-on): Add locale.
44363
44364 2009-04-19  Bruno Haible  <bruno@clisp.org>
44365
44366         Support for building a shared library on Windows platforms.
44367         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44368         (main): Test the presence of UNINORM_NFC here.
44369         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44370         (main): Test the presence of UNINORM_NFD here.
44371         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44372         (main): Test the presence of UNINORM_NFKC here.
44373         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44374         (main): Test the presence of UNINORM_NFKD here.
44375
44376 2009-04-19  Bruno Haible  <bruno@clisp.org>
44377
44378         Avoid a compiler warning.
44379         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44380         Change type of variable 'sequence'.
44381
44382 2009-04-19  Bruno Haible  <bruno@clisp.org>
44383
44384         * modules/configmake (Makefile.am): When the contents of configmake.h
44385         does not change, arrange to preserve its modification time.
44386
44387 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44388
44389         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44390         gettext domain.
44391
44392 2009-04-16  Jim Meyering  <meyering@redhat.com>
44393
44394         useless-if-before-free: improve conversion code
44395         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44396         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44397
44398 2009-04-14  Bruno Haible  <bruno@clisp.org>
44399
44400         * modules/fcntl (Depends-on): Add extensions.
44401         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44402
44403 2009-04-12  Ben Pfaff  <blp@gnu.org>
44404
44405         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44406         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44407
44408 2009-03-20  Ben Pfaff  <blp@gnu.org>
44409
44410         Make rename replace existing destinations on Windows.
44411         * m4/rename.m4: Add test for Mingw.
44412         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44413         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44414         * doc/posix-functions/rename.texi: Document.
44415
44416 2009-04-10  Bruno Haible  <bruno@clisp.org>
44417
44418         New include file "iconveh.h".
44419         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44420         * lib/striconveh.h: Include it.
44421         (enum iconv_ilseq_handler): Remove definition.
44422         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44423         striconveh.h.
44424         * lib/striconveha.c: Include striconveh.h.
44425         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44426         * modules/striconveh (Files): Add lib/iconveh.h.
44427         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44428         lib/striconveh.h.
44429
44430 2009-04-10  Bruno Haible  <bruno@clisp.org>
44431
44432         * lib/uniconv.h: Update comment.
44433
44434 2009-04-10  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44437         always.
44438         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44439         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44440         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44441         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44442         "unistring-notinline.h", so that the function gets defined always.
44443         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44444         * lib/unistr/u8-uctomb.c: Likewise.
44445         * lib/unistr/u16-mbtouc.c: Likewise.
44446         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44447         * lib/unistr/u16-uctomb.c: Likewise.
44448         * lib/unistr/u32-mbtouc.c: Likewise.
44449         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44450         * lib/unistr/u32-uctomb.c: Likewise.
44451
44452 2009-04-10  Bruno Haible  <bruno@clisp.org>
44453
44454         Mark 'utime' obsolete.
44455         * modules/utime (Status, Notice): New sections.
44456         Suggested by Jim Meyering.
44457
44458         Fix cross-compile guess for utime test.
44459         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44460         autoconf.
44461         * doc/posix-functions/utime.texi: Give more precisions.
44462         Reported by Jan <ipif@ymail.com>.
44463
44464 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44465
44466         filevercmp: correct today's change
44467         * lib/filevercmp.c: Also handle coreutils' test inputs.
44468         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44469
44470         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44471         for reporting it.
44472         * lib/filevercmp.c: Special handle for "", "." and "..".
44473         * tests/test-filevercmp.c: Enlarge the set suite.
44474
44475 2009-04-07  Jim Meyering  <meyering@redhat.com>
44476
44477         useless-if-before-free: show how to remove braced useless free, too
44478         * build-aux/useless-if-before-free: still only in a comment, though.
44479
44480 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44481
44482         maint.mk: import changes to syntax-check macros from coreutils
44483         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44484         Use them in the relevant macros.
44485
44486 2009-04-06  Bruno Haible  <bruno@clisp.org>
44487
44488         Fix unportable use of bit-fields.
44489         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44490         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44491         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44492
44493 2009-04-06  Bruno Haible  <bruno@clisp.org>
44494
44495         Avoid test failures on AIX and OSF/1.
44496         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44497         that malloc(0) = NULL.
44498         * tests/unicase/test-u8-tolower.c (check): Likewise.
44499         * tests/unicase/test-u8-totitle.c (check): Likewise.
44500         * tests/unicase/test-u8-toupper.c (check): Likewise.
44501         * tests/unicase/test-u16-casefold.c (check): Likewise.
44502         * tests/unicase/test-u16-tolower.c (check): Likewise.
44503         * tests/unicase/test-u16-totitle.c (check): Likewise.
44504         * tests/unicase/test-u16-toupper.c (check): Likewise.
44505         * tests/unicase/test-u32-casefold.c (check): Likewise.
44506         * tests/unicase/test-u32-tolower.c (check): Likewise.
44507         * tests/unicase/test-u32-totitle.c (check): Likewise.
44508         * tests/unicase/test-u32-toupper.c (check): Likewise.
44509         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44510         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44511         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44512         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44513         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44514         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44515         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44516         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44517         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44518         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44519         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44520         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44521
44522 2009-04-05  Bruno Haible  <bruno@clisp.org>
44523
44524         Work around an autoconf limitation.
44525         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44526         comment line if it would be longer than 3 KB.
44527
44528 2009-04-05  Bruno Haible  <bruno@clisp.org>
44529
44530         Avoid test failure with libiconv-1.13.
44531         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44532         of the expected test results.
44533
44534 2009-04-05  Bruno Haible  <bruno@clisp.org>
44535
44536         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44537         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44538         that it should be installed.
44539
44540 2009-04-05  Bruno Haible  <bruno@clisp.org>
44541
44542         * gnulib-tool: New option --copy-file.
44543         (func_usage): Document it.
44544         (func_dest_tmpfilename): Moved out of func_import.
44545         (func_add_file, func_update_file): New functions, extracted from
44546         func_import.
44547         (func_import): Update.
44548
44549 2009-04-05  Karl Berry  <karl@gnu.org>
44550
44551         * README: prominently mention gnulib-tool.
44552         Rearrange sections so getting the code is near the top.
44553
44554 2009-04-05  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/unicase.h: Mention u*_cmp2.
44557         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44558         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44559         * lib/unicase/ulc-casecmp.c: Likewise.
44560         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44561         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44562         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44563         unistr/u8-cmp.
44564         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44565         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44566         unistr/u16-cmp.
44567         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44568         unistr/u32-cmp.
44569
44570         * lib/uninorm.h: Mention u*_cmp2.
44571         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44572         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44573         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44574         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44575         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44576         unistr/u8-cmp.
44577         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44578         unistr/u16-cmp.
44579         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44580         unistr/u32-cmp.
44581
44582         New module 'unistr/u32-cmp2'.
44583         * lib/unistr/u32-cmp2.c: New file.
44584         * modules/unistr/u32-cmp2: New file.
44585
44586         New module 'unistr/u16-cmp2'.
44587         * lib/unistr/u16-cmp2.c: New file.
44588         * modules/unistr/u16-cmp2: New file.
44589
44590         New module 'unistr/u8-cmp2'.
44591         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44592         * lib/unistr/u8-cmp2.c: New file.
44593         * lib/unistr/u-cmp2.h: New file.
44594         * modules/unistr/u8-cmp2: New file.
44595
44596 2009-04-05  Bruno Haible  <bruno@clisp.org>
44597
44598         * lib/unictype.h (uc_property_is_valid): New macro.
44599         * tests/unictype/test-pr_byname.c (main): Use it.
44600
44601         * lib/unistr.h: Doc fixes.
44602         * lib/uniconv.h: Doc fixes.
44603         * lib/unictype.h: Doc fixes.
44604
44605 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44606
44607         Port coreutils 7.2 to Solaris 8.
44608
44609         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44610         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44611         for Solaris 8.  This is a bit of a hack, as it means it's the
44612         caller's responsibility to add -lnsl if needed, but most likely it
44613         won't be needed since only getaddrinfo uses this and getaddrinfo
44614         isn't needed on Solaris 8.
44615
44616         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44617         problem to Solaris 8 encountered with coreutils 7.2, which
44618         resulted in a message "fnmatch.c:292: warning: passing argument 4
44619         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44620         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44621
44622 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44623
44624         * m4/ld-version-script.m4: Add FIXME comment.
44625
44626 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44627
44628         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44629         SOVERSION variable.
44630
44631 2009-04-02  Bruno Haible  <bruno@clisp.org>
44632
44633         * Makefile (info, html, dvi, pdf): Combine the rules.
44634         Suggested by Jim Meyering.
44635
44636 2009-04-01  Bruno Haible  <bruno@clisp.org>
44637
44638         * Makefile (info, html, dvi, pdf): New targets.
44639         Reported by Reuben Thomas <rrt@sc3d.org>.
44640
44641 2009-04-01  Bruno Haible  <bruno@clisp.org>
44642
44643         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44644         can be put into PATH.
44645         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44646
44647 2009-04-01  Bruno Haible  <bruno@clisp.org>
44648
44649         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44650
44651 2009-04-01  Bruno Haible  <bruno@clisp.org>
44652
44653         Rename module 'visibility'.
44654         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44655         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44656         * doc/gnulib.texi: Update.
44657         * MODULES.html.sh (Misc): Update.
44658         * NEWS: Mention the change.
44659
44660 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44661
44662         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44663         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44664         Eric Blake <ebb9@byu.net> for review.
44665         * MODULES.html.sh: Add lib-msvc-compat.
44666         * doc/gnulib.texi: Link to new section.
44667         * m4/ld-output-def.m4: New file.
44668         * doc/ld-output-def.texi: New file.
44669
44670 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44671
44672         Rename ld-version-script to lib-symbol-versions.  Suggested by
44673         Bruno Haible <bruno@clisp.org>.
44674         * modules/ld-version-script: Renamed to lib-symbol-versions.
44675         * doc/ld-version-script.texi: Fix module name.
44676         * MODULES.html.sh: Add lib-symbol-versions.
44677
44678 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44679
44680         * modules/u64-tests: New file.
44681         * tests/test-u64.c: New file.
44682
44683 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44684
44685         * MODULES.html.sh: Mention u64.
44686         * modules/u64: New module.
44687         * modules/crypto/sha512: Depend on u64 module instead of providing
44688         u64.h.
44689
44690 2009-03-27  Eric Blake  <ebb9@byu.net>
44691
44692         test-strerror: make debugging EAI_SYSTEM easier
44693         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44694         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44695         failure was EAI_SYSTEM.
44696
44697 2009-03-25  Bruno Haible  <bruno@clisp.org>
44698
44699         Fix a problem with --enable-relocatable on Solaris 7.
44700         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44701         since 2008-02-24.
44702
44703 2009-03-25  Eric Blake  <ebb9@byu.net>
44704
44705         test-sockets: avoid gcc warning
44706         * tests/test-sockets.c (main): Silence compiler warning.
44707
44708 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44709
44710         New modules nproc, pthread, contributed by Glen Lenker.
44711
44712         * MODULES.html.sh: Add pthread, nproc.
44713         * lib/nproc.c: New file.
44714         * lib/nproc.h: New file.
44715         * lib/pthread.in.h: New file.
44716         * m4/pthread.m4: New file.
44717         * modules/nproc: New file.
44718         * modules/pthread: New file.
44719
44720 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44721
44722         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44723         New variable.
44724
44725 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44726
44727         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44728         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44729         * tests/test-filevercmp.c: Add tests for backup suffixes.
44730
44731 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44732
44733         * modules/stdlib (Depends-on): Add stdint, needed when defining
44734         struct random_data on, for example, HP-UX 10.20.  Reported by
44735         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44736
44737 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44738
44739         * lib/readline.c (readline): Call fflush on stdout after printing
44740         prompt.
44741
44742 2009-03-20  Bruno Haible  <bruno@clisp.org>
44743
44744         Remove dependency from 'close' module to -lws2_32 on native Windows.
44745         * lib/close-hook.h: New file.
44746         * lib/close-hook.c: New file.
44747         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44748         w32sock.h.
44749         (_gl_close_fd_maybe_socket): Remove function.
44750         (rpl_close): Invoke execute_all_close_hooks instead of
44751         _gl_close_fd_maybe_socket.
44752         * lib/sockets.c: Include close-hook.h, w32sock.h.
44753         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44754         (close_sockets_hook): New variable.
44755         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44756         (gl_sockets_cleanup): Unregister it.
44757         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44758         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44759         * modules/close-hook: New file.
44760         * modules/close (Files): Remove lib/w32sock.h.
44761         (Depends-on): Add close-hook.
44762         (Link): Remove section.
44763         * modules/sockets (Files): Add lib/w32sock.h.
44764         (Depends-on): Add close-hook.
44765         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44766         invocation.
44767         * NEWS: Mention that LIB_CLOSE is gone.
44768
44769 2009-03-23  Eric Blake  <ebb9@byu.net>
44770
44771         signal-tests: test previous patch
44772         * tests/test-signal.c: New file.
44773         * modules/signal-tests: Likewise.
44774
44775         signal.h: always support 'volatile sig_atomic_t'
44776         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44777         (gl_SIGNAL_H_DEFAULTS): Add a default.
44778         * modules/signal (Makefile.am): Substitute if needed.
44779         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44780         users can blindly add volatile.
44781         * doc/posix-headers/signal.texi (signal.h): Document it.
44782         Reported by Matthew Woehlke.
44783
44784 2009-03-23  Jim Meyering  <meyering@redhat.com>
44785
44786         pathmax: PATH_MAX: use pathconf only when available
44787         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44788         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44789         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44790         This avoids a link failure in a PSP cross-compilation environment
44791         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44792
44793         * lib/vasnprintf.c (divide): Fix typo in comment.
44794
44795 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44796
44797         * gnulib-tool (func_filter_filelist): Fix comment.
44798
44799 2009-03-20  Bruno Haible  <bruno@clisp.org>
44800
44801         Make sockets.h self-contained.
44802         * lib/sockets.c: Include sockets.h first.
44803         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44804
44805 2009-03-19  Eric Blake  <ebb9@byu.net>
44806
44807         doc: mention more functions added in cygwin 1.7.0
44808         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44809         addition.
44810         * doc/posix-functions/log2f.texi: Likewise.
44811
44812 2009-03-19  Jim Meyering  <meyering@redhat.com>
44813
44814         fsusage: avoid syntax error due to statement-before-declaration
44815         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44816         after all declarations.  Reported by Matthew Woehlke in
44817         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44818
44819 2009-03-18  Eric Blake  <ebb9@byu.net>
44820
44821         build-aux/compile: sync from automake
44822         * build-aux/compile: New file, from automake.
44823         * config/srclist.txt: Mention build-aux/compile.
44824
44825 2009-03-17  Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/git-merge-changelog.c: Fix typo in comment.
44828         Reported by Reuben Thomas <rrt@sc3d.org>.
44829
44830 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44831
44832         * m4/regex.m4: update and improve help for
44833         --without-included-regex.
44834
44835 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44836
44837         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44838         failure on missing include files.
44839
44840 2009-03-17  Eric Blake  <ebb9@byu.net>
44841
44842         doc: mention more functions added in cygwin 1.7.0
44843         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44844         addition.
44845         * doc/posix-functions/fwscanf.texi: Likewise.
44846         * doc/posix-functions/swprintf.texi: Likewise.
44847         * doc/posix-functions/swscanf.texi: Likewise.
44848         * doc/posix-functions/vfwprintf.texi: Likewise.
44849         * doc/posix-functions/vfwscanf.texi: Likewise.
44850         * doc/posix-functions/vswprintf.texi: Likewise.
44851         * doc/posix-functions/vswscanf.texi: Likewise.
44852         * doc/posix-functions/vwprintf.texi: Likewise.
44853         * doc/posix-functions/vwscanf.texi: Likewise.
44854         * doc/posix-functions/wcscasecmp.texi: Likewise.
44855         * doc/posix-functions/wcsdup.texi: Likewise.
44856         * doc/posix-functions/wcsftime.texi: Likewise.
44857         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44858         * doc/posix-functions/wprintf.texi: Likewise.
44859         * doc/posix-functions/wscanf.texi: Likewise.
44860         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44861
44862 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44863
44864         maint.mk: really add $(AM_MAKEFLAGS)
44865         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44866         was inadvertently omitted in the last commit.
44867         Spotted by Bruno Haible.
44868
44869         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44870         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44871         $(AM_MAKEFLAGS)' rather than plain `make'.
44872
44873         gnulib-tool: execute $MAKE not make
44874         * gnulib-tool: Default $MAKE to 'make'.
44875         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44876         than make.  Initialize $MAKE in the do-autobuild script.
44877
44878         gnulib-tool: use $MAKE not make in generated files
44879         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44880         make, in generated files.  Initialize $MAKE in the do-autobuild
44881         script.
44882
44883         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44884
44885         GNUmakefile: disable parallelism only for multiple, recursive targets
44886         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44887         additions in the Makefile.
44888         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44889         by Automake.
44890         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44891         are listed on the command line and at least one of them is
44892         listed in $(ALL_RECURSIVE_TARGETS).
44893
44894 2009-03-14  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44897         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44898         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44899         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44900         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44901         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44902         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44903         unistr/u8-uctomb.
44904         * modules/unistr/u8-strchr (Depends-on): Likewise.
44905         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44906         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44907         unistr/u16-uctomb.
44908         * modules/unistr/u16-strchr (Depends-on): Likewise.
44909         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44910
44911 2009-03-12  Bruno Haible  <bruno@clisp.org>
44912
44913         Work around select() bug on Interix 3.5.
44914         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44915         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44916         * m4/select.m4: New file.
44917         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44918         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44919         * modules/select (Files): Add m4/select.m4.
44920         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44921         * modules/nanosleep (Depends-on): Add select.
44922         * modules/poll (Depends-on): Likewise.
44923         * doc/posix-functions/select.texi: Mention the Interix bug.
44924         Reported by Markus Duft <mduft@gentoo.org>.
44925
44926         * lib/select.c: Renamed from lib/winsock-select.c.
44927         * modules/select (Files): Add lib/select.c, remove
44928         lib/winsock-select.c.
44929         (configure.ac): Update.
44930
44931 2009-03-12  Jim Meyering  <meyering@redhat.com>
44932
44933         avoid gcc warnings about unused macro definitions
44934         * lib/readtokens.c (STREQ): Remove unused definition.
44935         * lib/xmalloc.c (SIZE_MAX): Likewise.
44936         * lib/openat-die.c (N_): Likewise.
44937         * lib/mountlist.c (SIZE_MAX): Remove definition.
44938         Instead, include <stdint.h>.
44939         * lib/readutmp.c: Likewise.
44940         * modules/readutmp (Depends-on): Add stdint.
44941         * modules/mountlist (Depends-on): Add stdint.
44942         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44943
44944 2009-03-10  Bruno Haible  <bruno@clisp.org>
44945
44946         Tests for module 'mbmemcasecoll'.
44947         * modules/mbmemcasecoll-tests: New file.
44948         * tests/test-mbmemcasecoll1.sh: New file.
44949         * tests/test-mbmemcasecoll2.sh: New file.
44950         * tests/test-mbmemcasecoll3.sh: New file.
44951         * tests/test-mbmemcasecoll.c: New file.
44952
44953         New module 'mbmemcasecoll'.
44954         * lib/mbmemcasecoll.h: New file.
44955         * lib/mbmemcasecoll.c: New file.
44956         * modules/mbmemcasecoll: New file.
44957
44958         * tests/test-mbmemcasecmp.h: New file, extracted from
44959         tests/test-mbmemcasecmp.c.
44960         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44961         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44962         (main): Update.
44963         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44964
44965 2009-03-09  Bruno Haible  <bruno@clisp.org>
44966
44967         Tests for module 'mbmemcasecmp'.
44968         * modules/mbmemcasecmp-tests: New file.
44969         * tests/test-mbmemcasecmp1.sh: New file.
44970         * tests/test-mbmemcasecmp2.sh: New file.
44971         * tests/test-mbmemcasecmp3.sh: New file.
44972         * tests/test-mbmemcasecmp.c: New file.
44973
44974         New module 'mbmemcasecmp'.
44975         * lib/mbmemcasecmp.h: New file.
44976         * lib/mbmemcasecmp.c: New file.
44977         * modules/mbmemcasecmp: New file.
44978
44979 2009-03-09  Bruno Haible  <bruno@clisp.org>
44980
44981         Tests for module 'unicase/ulc-casecoll'.
44982         * modules/unicase/ulc-casecoll-tests: New file.
44983         * tests/unicase/test-ulc-casecoll1.sh: New file.
44984         * tests/unicase/test-ulc-casecoll2.sh: New file.
44985         * tests/unicase/test-ulc-casecoll.c: New file.
44986
44987         New module 'unicase/ulc-casecoll'.
44988         * lib/unicase.h (ulc_casecoll): New declaration.
44989         * lib/unicase/ulc-casecoll.c: New file.
44990         * modules/unicase/ulc-casecoll: New file.
44991
44992         New module 'unicase/ulc-casexfrm'.
44993         * lib/unicase.h (ulc_casexfrm): New declaration.
44994         * lib/unicase/ulc-casexfrm.c: New file.
44995         * modules/unicase/ulc-casexfrm: New file.
44996
44997 2009-03-09  Bruno Haible  <bruno@clisp.org>
44998
44999         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45000         invocations.
45001
45002         * m4/mbscasecmp.m4: Remove file.
45003         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45004         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45005
45006         * m4/mbscasestr.m4: Remove file.
45007         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45008         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45009
45010         * m4/mbschr.m4: Remove file.
45011         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45012         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45013
45014         * m4/mbscspn.m4: Remove file.
45015         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45016         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45017
45018         * m4/mbslen.m4: Remove file.
45019         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45020         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45021
45022         * m4/mbsncasecmp.m4: Remove file.
45023         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45024         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45025
45026         * m4/mbsnlen.m4: Remove file.
45027         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45028         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45029
45030         * m4/mbspbrk.m4: Remove file.
45031         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45032         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45033
45034         * m4/mbspcasecmp.m4: Remove file.
45035         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45036         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45037
45038         * m4/mbsrchr.m4: Remove file.
45039         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45040         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45041
45042         * m4/mbssep.m4: Remove file.
45043         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45044         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45045
45046         * m4/mbsspn.m4: Remove file.
45047         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45048         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45049
45050         * m4/mbsstr.m4: Remove file.
45051         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45052         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45053
45054         * m4/mbstok_r.m4: Remove file.
45055         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45056         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45057
45058         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45059
45060         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45061         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45062
45063         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45064
45065 2009-03-08  Bruno Haible  <bruno@clisp.org>
45066
45067         Tests for module 'unicase/ulc-casecmp'.
45068         * modules/unicase/ulc-casecmp-tests: New file.
45069         * tests/unicase/test-ulc-casecmp1.sh: New file.
45070         * tests/unicase/test-ulc-casecmp2.sh: New file.
45071         * tests/unicase/test-ulc-casecmp.c: New file.
45072
45073         New module 'unicase/ulc-casecmp'.
45074         * lib/unicase.h (ulc_casecmp): New declaration.
45075         * lib/unicase/ulc-casecmp.c: New file.
45076         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45077         'const SRC_UNIT *'.
45078         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45079         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45080         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45081         * modules/unicase/ulc-casecmp: New file.
45082
45083         Tests for module 'unicase/u32-is-cased'.
45084         * modules/unicase/u32-is-cased-tests: New file.
45085         * tests/unicase/test-u32-is-cased.c: New file.
45086
45087         Tests for module 'unicase/u16-is-cased'.
45088         * modules/unicase/u16-is-cased-tests: New file.
45089         * tests/unicase/test-u16-is-cased.c: New file.
45090
45091         Tests for module 'unicase/u8-is-cased'.
45092         * modules/unicase/u8-is-cased-tests: New file.
45093         * tests/unicase/test-u8-is-cased.c: New file.
45094         * tests/unicase/test-is-cased.h: New file.
45095
45096         New module 'unicase/u32-is-cased'.
45097         * lib/unicase/u32-is-cased.c: New file.
45098         * modules/unicase/u32-is-cased: New file.
45099
45100         New module 'unicase/u16-is-cased'.
45101         * lib/unicase/u16-is-cased.c: New file.
45102         * modules/unicase/u16-is-cased: New file.
45103
45104         New module 'unicase/u8-is-cased'.
45105         * lib/unicase/u8-is-cased.c: New file.
45106         * lib/unicase/u-is-cased.h: New file.
45107         * modules/unicase/u8-is-cased: New file.
45108
45109         Tests for module 'unicase/u32-is-casefolded'.
45110         * modules/unicase/u32-is-casefolded-tests: New file.
45111         * tests/unicase/test-u32-is-casefolded.c: New file.
45112
45113         Tests for module 'unicase/u16-is-casefolded'.
45114         * modules/unicase/u16-is-casefolded-tests: New file.
45115         * tests/unicase/test-u16-is-casefolded.c: New file.
45116
45117         Tests for module 'unicase/u8-is-casefolded'.
45118         * modules/unicase/u8-is-casefolded-tests: New file.
45119         * tests/unicase/test-u8-is-casefolded.c: New file.
45120         * tests/unicase/test-is-casefolded.h: New file.
45121
45122         New module 'unicase/u32-is-casefolded'.
45123         * lib/unicase/u32-is-casefolded.c: New file.
45124         * modules/unicase/u32-is-casefolded: New file.
45125
45126         New module 'unicase/u16-is-casefolded'.
45127         * lib/unicase/u16-is-casefolded.c: New file.
45128         * modules/unicase/u16-is-casefolded: New file.
45129
45130         New module 'unicase/u8-is-casefolded'.
45131         * lib/unicase/u8-is-casefolded.c: New file.
45132         * modules/unicase/u8-is-casefolded: New file.
45133
45134         Tests for module 'unicase/u32-is-titlecase'.
45135         * modules/unicase/u32-is-titlecase-tests: New file.
45136         * tests/unicase/test-u32-is-titlecase.c: New file.
45137
45138         Tests for module 'unicase/u16-is-titlecase'.
45139         * modules/unicase/u16-is-titlecase-tests: New file.
45140         * tests/unicase/test-u16-is-titlecase.c: New file.
45141
45142         Tests for module 'unicase/u8-is-titlecase'.
45143         * modules/unicase/u8-is-titlecase-tests: New file.
45144         * tests/unicase/test-u8-is-titlecase.c: New file.
45145         * tests/unicase/test-is-titlecase.h: New file.
45146
45147         New module 'unicase/u32-is-titlecase'.
45148         * lib/unicase/u32-is-titlecase.c: New file.
45149         * modules/unicase/u32-is-titlecase: New file.
45150
45151         New module 'unicase/u16-is-titlecase'.
45152         * lib/unicase/u16-is-titlecase.c: New file.
45153         * modules/unicase/u16-is-titlecase: New file.
45154
45155         New module 'unicase/u8-is-titlecase'.
45156         * lib/unicase/u8-is-titlecase.c: New file.
45157         * modules/unicase/u8-is-titlecase: New file.
45158
45159         Tests for module 'unicase/u32-is-lowercase'.
45160         * modules/unicase/u32-is-lowercase-tests: New file.
45161         * tests/unicase/test-u32-is-lowercase.c: New file.
45162
45163         Tests for module 'unicase/u16-is-lowercase'.
45164         * modules/unicase/u16-is-lowercase-tests: New file.
45165         * tests/unicase/test-u16-is-lowercase.c: New file.
45166
45167         Tests for module 'unicase/u8-is-lowercase'.
45168         * modules/unicase/u8-is-lowercase-tests: New file.
45169         * tests/unicase/test-u8-is-lowercase.c: New file.
45170         * tests/unicase/test-is-lowercase.h: New file.
45171
45172         New module 'unicase/u32-is-lowercase'.
45173         * lib/unicase/u32-is-lowercase.c: New file.
45174         * modules/unicase/u32-is-lowercase: New file.
45175
45176         New module 'unicase/u16-is-lowercase'.
45177         * lib/unicase/u16-is-lowercase.c: New file.
45178         * modules/unicase/u16-is-lowercase: New file.
45179
45180         New module 'unicase/u8-is-lowercase'.
45181         * lib/unicase/u8-is-lowercase.c: New file.
45182         * modules/unicase/u8-is-lowercase: New file.
45183
45184         Tests for module 'unicase/u32-is-uppercase'.
45185         * modules/unicase/u32-is-uppercase-tests: New file.
45186         * tests/unicase/test-u32-is-uppercase.c: New file.
45187
45188         Tests for module 'unicase/u16-is-uppercase'.
45189         * modules/unicase/u16-is-uppercase-tests: New file.
45190         * tests/unicase/test-u16-is-uppercase.c: New file.
45191
45192         Tests for module 'unicase/u8-is-uppercase'.
45193         * modules/unicase/u8-is-uppercase-tests: New file.
45194         * tests/unicase/test-u8-is-uppercase.c: New file.
45195         * tests/unicase/test-is-uppercase.h: New file.
45196
45197         New module 'unicase/u32-is-uppercase'.
45198         * lib/unicase/u32-is-uppercase.c: New file.
45199         * modules/unicase/u32-is-uppercase: New file.
45200
45201         New module 'unicase/u16-is-uppercase'.
45202         * lib/unicase/u16-is-uppercase.c: New file.
45203         * modules/unicase/u16-is-uppercase: New file.
45204
45205         New module 'unicase/u8-is-uppercase'.
45206         * lib/unicase/u8-is-uppercase.c: New file.
45207         * modules/unicase/u8-is-uppercase: New file.
45208
45209         New module 'unicase/u32-is-invariant'.
45210         * lib/unicase/u32-is-invariant.c: New file.
45211         * modules/unicase/u32-is-invariant: New file.
45212
45213         New module 'unicase/u16-is-invariant'.
45214         * lib/unicase/u16-is-invariant.c: New file.
45215         * modules/unicase/u16-is-invariant: New file.
45216
45217         New module 'unicase/u8-is-invariant'.
45218         * lib/unicase/u8-is-invariant.c: New file.
45219         * lib/unicase/invariant.h: New file.
45220         * lib/unicase/u-is-invariant.h: New file.
45221         * modules/unicase/u8-is-invariant: New file.
45222
45223         Tests for module 'unicase/u32-casecoll'.
45224         * modules/unicase/u32-casecoll-tests: New file.
45225         * tests/unicase/test-u32-casecoll.c: New file.
45226
45227         Tests for module 'unicase/u16-casecoll'.
45228         * modules/unicase/u16-casecoll-tests: New file.
45229         * tests/unicase/test-u16-casecoll.c: New file.
45230
45231         Tests for module 'unicase/u8-casecoll'.
45232         * modules/unicase/u8-casecoll-tests: New file.
45233         * tests/unicase/test-u8-casecoll.c: New file.
45234
45235         New module 'unicase/u32-casecoll'.
45236         * lib/unicase/u32-casecoll.c: New file.
45237         * modules/unicase/u32-casecoll: New file.
45238
45239         New module 'unicase/u16-casecoll'.
45240         * lib/unicase/u16-casecoll.c: New file.
45241         * modules/unicase/u16-casecoll: New file.
45242
45243         New module 'unicase/u8-casecoll'.
45244         * lib/unicase/u8-casecoll.c: New file.
45245         * lib/unicase/u-casecoll.h: New file.
45246         * modules/unicase/u8-casecoll: New file.
45247
45248         New module 'unicase/u32-casexfrm'.
45249         * lib/unicase/u32-casexfrm.c: New file.
45250         * modules/unicase/u32-casexfrm: New file.
45251
45252         New module 'unicase/u16-casexfrm'.
45253         * lib/unicase/u16-casexfrm.c: New file.
45254         * modules/unicase/u16-casexfrm: New file.
45255
45256         New module 'unicase/u8-casexfrm'.
45257         * lib/unicase/u8-casexfrm.c: New file.
45258         * lib/unicase/u-casexfrm.h: New file.
45259         * modules/unicase/u8-casexfrm: New file.
45260
45261         Tests for module 'unicase/u32-casecmp'.
45262         * modules/unicase/u32-casecmp-tests: New file.
45263         * tests/unicase/test-u32-casecmp.c: New file.
45264
45265         Tests for module 'unicase/u16-casecmp'.
45266         * modules/unicase/u16-casecmp-tests: New file.
45267         * tests/unicase/test-u16-casecmp.c: New file.
45268
45269         Tests for module 'unicase/u8-casecmp'.
45270         * modules/unicase/u8-casecmp-tests: New file.
45271         * tests/unicase/test-u8-casecmp.c: New file.
45272         * tests/unicase/test-casecmp.h: New file.
45273
45274         New module 'unicase/u32-casecmp'.
45275         * lib/unicase/u32-casecmp.c: New file.
45276         * modules/unicase/u32-casecmp: New file.
45277
45278         New module 'unicase/u16-casecmp'.
45279         * lib/unicase/u16-casecmp.c: New file.
45280         * modules/unicase/u16-casecmp: New file.
45281
45282         New module 'unicase/u8-casecmp'.
45283         * lib/unicase/u8-casecmp.c: New file.
45284         * lib/unicase/u-casecmp.h: New file.
45285         * modules/unicase/u8-casecmp: New file.
45286
45287         Tests for module 'unicase/u32-casefold'.
45288         * modules/unicase/u32-casefold-tests: New file.
45289         * tests/unicase/test-u32-casefold.c: New file.
45290
45291         Tests for module 'unicase/u16-casefold'.
45292         * modules/unicase/u16-casefold-tests: New file.
45293         * tests/unicase/test-u16-casefold.c: New file.
45294
45295         Tests for module 'unicase/u8-casefold'.
45296         * modules/unicase/u8-casefold-tests: New file.
45297         * tests/unicase/test-u8-casefold.c: New file.
45298
45299         New module 'unicase/u32-casefold'.
45300         * lib/unicase/u32-casefold.c: New file.
45301         * modules/unicase/u32-casefold: New file.
45302
45303         New module 'unicase/u16-casefold'.
45304         * lib/unicase/u16-casefold.c: New file.
45305         * modules/unicase/u16-casefold: New file.
45306
45307         New module 'unicase/u8-casefold'.
45308         * lib/unicase/u8-casefold.c: New file.
45309         * lib/unicase/u-casefold.h: New file.
45310         * modules/unicase/u8-casefold: New file.
45311
45312         New module 'unicase/tocasefold'.
45313         * lib/unicase/casefold.h: New file.
45314         * lib/unicase/tocasefold.c: New file.
45315         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45316         * modules/unicase/tocasefold: New file.
45317
45318         Tests for module 'unicase/u32-totitle'.
45319         * modules/unicase/u32-totitle-tests: New file.
45320         * tests/unicase/test-u32-totitle.c: New file.
45321
45322         Tests for module 'unicase/u16-totitle'.
45323         * modules/unicase/u16-totitle-tests: New file.
45324         * tests/unicase/test-u16-totitle.c: New file.
45325
45326         Tests for module 'unicase/u8-totitle'.
45327         * modules/unicase/u8-totitle-tests: New file.
45328         * tests/unicase/test-u8-totitle.c: New file.
45329
45330         New module 'unicase/u32-totitle'.
45331         * lib/unicase/u32-totitle.c: New file.
45332         * modules/unicase/u32-totitle: New file.
45333
45334         New module 'unicase/u16-totitle'.
45335         * lib/unicase/u16-totitle.c: New file.
45336         * modules/unicase/u16-totitle: New file.
45337
45338         New module 'unicase/u8-totitle'.
45339         * lib/unicase/u8-totitle.c: New file.
45340         * lib/unicase/u-totitle.h: New file.
45341         * modules/unicase/u8-totitle: New file.
45342
45343         Tests for module 'unicase/u32-tolower'.
45344         * modules/unicase/u32-tolower-tests: New file.
45345         * tests/unicase/test-u32-tolower.c: New file.
45346
45347         Tests for module 'unicase/u16-tolower'.
45348         * modules/unicase/u16-tolower-tests: New file.
45349         * tests/unicase/test-u16-tolower.c: New file.
45350
45351         Tests for module 'unicase/u8-tolower'.
45352         * modules/unicase/u8-tolower-tests: New file.
45353         * tests/unicase/test-u8-tolower.c: New file.
45354
45355         New module 'unicase/u32-tolower'.
45356         * lib/unicase/u32-tolower.c: New file.
45357         * modules/unicase/u32-tolower: New file.
45358
45359         New module 'unicase/u16-tolower'.
45360         * lib/unicase/u16-tolower.c: New file.
45361         * modules/unicase/u16-tolower: New file.
45362
45363         New module 'unicase/u8-tolower'.
45364         * lib/unicase/u8-tolower.c: New file.
45365         * modules/unicase/u8-tolower: New file.
45366
45367         Tests for module 'unicase/u32-toupper'.
45368         * modules/unicase/u32-toupper-tests: New file.
45369         * tests/unicase/test-u32-toupper.c: New file.
45370
45371         Tests for module 'unicase/u16-toupper'.
45372         * modules/unicase/u16-toupper-tests: New file.
45373         * tests/unicase/test-u16-toupper.c: New file.
45374
45375         Tests for module 'unicase/u8-toupper'.
45376         * modules/unicase/u8-toupper-tests: New file.
45377         * tests/unicase/test-u8-toupper.c: New file.
45378
45379         New module 'unicase/u32-toupper'.
45380         * lib/unicase/u32-toupper.c: New file.
45381         * modules/unicase/u32-toupper: New file.
45382
45383         New module 'unicase/u16-toupper'.
45384         * lib/unicase/u16-toupper.c: New file.
45385         * modules/unicase/u16-toupper: New file.
45386
45387         New module 'unicase/u8-toupper'.
45388         * lib/unicase/u8-toupper.c: New file.
45389         * modules/unicase/u8-toupper: New file.
45390
45391         New module 'unicase/u32-casemap'.
45392         * lib/unicase/u32-casemap.c: New file.
45393         * modules/unicase/u32-casemap: New file.
45394
45395         New module 'unicase/u16-casemap'.
45396         * lib/unicase/u16-casemap.c: New file.
45397         * modules/unicase/u16-casemap: New file.
45398
45399         New module 'unicase/u8-casemap'.
45400         * lib/unicase/unicasemap.h: New file.
45401         * lib/unicase/u8-casemap.c: New file.
45402         * lib/unicase/u-casemap.h: New file.
45403         * modules/unicase/u8-casemap: New file.
45404
45405         New module 'unicase/special-casing'.
45406         * lib/unicase/special-casing.h: New file.
45407         * lib/unicase/special-casing.c: New file.
45408         * lib/unicase/special-casing-table.gperf: New file, generated by
45409         gen-uni-tables.c.
45410         * modules/unicase/special-casing: New file.
45411
45412         Tests for module 'unicase/locale-language'.
45413         * modules/unicase/locale-language-tests: New file.
45414         * tests/unicase/test-locale-language.sh: New file.
45415         * tests/unicase/test-locale-language.c: New file.
45416
45417         New module 'unicase/locale-language'.
45418         * lib/unicase/locale-language.c: New file.
45419         * lib/unicase/locale-languages.gperf: New file.
45420         * modules/unicase/locale-language: New file.
45421
45422         Generate more tables for case conversion and case folding.
45423         * lib/gen-uni-tables.c (SCC_*): New enum items.
45424         (struct special_casing_rule): New type.
45425         (casing_rules, num_casing_rules, allocated_casing_rules): New
45426         variables.
45427         (add_casing_rule, fill_casing_rules): New functions.
45428         (struct casefold_rule): New type.
45429         (casefolding_rules, num_casefolding_rules,
45430         allocated_casefolding_rules): New variables.
45431         (fill_casefolding_rules): New function.
45432         (unicode_casefold): New variable.
45433         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45434         sort_casing_rules, output_casing_rules): New functions.
45435         (main): Accept to more arguments: SpecialCasing.txt and
45436         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45437         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45438         Output mapping for casefolding.
45439
45440         * lib/unicase.h: Include stdbool.h, uninorm.h.
45441         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45442         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45443         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45444         arguments.
45445         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45446         resultp arguments.
45447         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45448         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45449         resultp arguments.
45450         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45451         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45452         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45453         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45454         declarations.
45455         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45456
45457 2009-03-08  Bruno Haible  <bruno@clisp.org>
45458
45459         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45460         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45461         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45462         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45463
45464 2009-03-07  Bruno Haible  <bruno@clisp.org>
45465
45466         Adjust u*_normcmp, u*_normcoll API.
45467         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45468         u16_normcoll, u32_normcoll): Change failure conventions.
45469         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45470         errno and return -1.
45471         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45472
45473 2009-03-07  Bruno Haible  <bruno@clisp.org>
45474
45475         Tests for module 'uninorm/u32-normcoll'.
45476         * modules/uninorm/u32-normcoll-tests: New file.
45477         * tests/uninorm/test-u32-normcoll.c: New file.
45478
45479         Tests for module 'uninorm/u16-normcoll'.
45480         * modules/uninorm/u16-normcoll-tests: New file.
45481         * tests/uninorm/test-u16-normcoll.c: New file.
45482
45483         Tests for module 'uninorm/u8-normcoll'.
45484         * modules/uninorm/u8-normcoll-tests: New file.
45485         * tests/uninorm/test-u8-normcoll.c: New file.
45486
45487 2009-03-07  Bruno Haible  <bruno@clisp.org>
45488
45489         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45490         tests/uninorm/test-u32-normcmp.c.
45491         * tests/uninorm/test-u32-normcmp.c: Include it.
45492         (test_nonascii): New function, extracted from main. Add some more
45493         tests.
45494         (main): Invoke test_ascii and test_nonascii.
45495         * modules/uninorm/u32-normcmp-tests (Files): Add
45496         tests/uninorm/test-u32-normcmp.h.
45497         (Depends-on): Remove uninorm/u32-normcmp.
45498
45499         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45500         tests/uninorm/test-u16-normcmp.c.
45501         * tests/uninorm/test-u16-normcmp.c: Include it.
45502         (test_nonascii): New function, extracted from main. Add some more
45503         tests.
45504         (main): Invoke test_ascii and test_nonascii.
45505         * modules/uninorm/u16-normcmp-tests (Files): Add
45506         tests/uninorm/test-u16-normcmp.h.
45507         (Depends-on): Remove uninorm/u16-normcmp.
45508
45509         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45510         tests/uninorm/test-u8-normcmp.c.
45511         * tests/uninorm/test-u8-normcmp.c: Include it.
45512         (test_nonascii): New function, extracted from main. Add some more
45513         tests.
45514         (main): Invoke test_ascii and test_nonascii.
45515         * modules/uninorm/u8-normcmp-tests (Files): Add
45516         tests/uninorm/test-u8-normcmp.h.
45517         (Depends-on): Remove uninorm/u8-normcmp.
45518
45519 2009-03-07  Bruno Haible  <bruno@clisp.org>
45520
45521         New module 'uninorm/u32-normcoll'.
45522         * lib/uninorm/u32-normcoll.c: New file.
45523         * modules/uninorm/u32-normcoll: New file.
45524
45525         New module 'uninorm/u16-normcoll'.
45526         * lib/uninorm/u16-normcoll.c: New file.
45527         * modules/uninorm/u16-normcoll: New file.
45528
45529         New module 'uninorm/u8-normcoll'.
45530         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45531         declarations.
45532         * lib/uninorm/u8-normcoll.c: New file.
45533         * lib/uninorm/u-normcoll.h: New file.
45534         * modules/uninorm/u8-normcoll: New file.
45535
45536         New module 'uninorm/u32-normxfrm'.
45537         * lib/uninorm/u32-normxfrm.c: New file.
45538         * modules/uninorm/u32-normxfrm: New file.
45539
45540         New module 'uninorm/u16-normxfrm'.
45541         * lib/uninorm/u16-normxfrm.c: New file.
45542         * modules/uninorm/u16-normxfrm: New file.
45543
45544         New module 'uninorm/u8-normxfrm'.
45545         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45546         declarations.
45547         * lib/uninorm/u8-normxfrm.c: New file.
45548         * lib/uninorm/u-normxfrm.h: New file.
45549         * modules/uninorm/u8-normxfrm: New file.
45550
45551 2009-03-07  Bruno Haible  <bruno@clisp.org>
45552
45553         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45554         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45555         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45556
45557 2009-03-07  Bruno Haible  <bruno@clisp.org>
45558
45559         New module 'memxfrm'.
45560         * lib/memxfrm.h: New file.
45561         * lib/memxfrm.c: New file.
45562         * modules/memxfrm: New file.
45563
45564 2009-03-07  Bruno Haible  <bruno@clisp.org>
45565
45566         New module 'memcmp2'.
45567         * lib/memcmp2.h: New file.
45568         * lib/memcmp2.c: New file.
45569         * modules/memcmp2: New file.
45570
45571 2009-03-07  Bruno Haible  <bruno@clisp.org>
45572
45573         Tests for module 'uninorm/decomposing-form'.
45574         * modules/uninorm/decomposing-form-tests: New file.
45575         * tests/uninorm/test-decomposing-form.c: New file.
45576
45577         New module 'uninorm/decomposing-form'.
45578         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45579         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45580         Add 'decomposing_variant' field.
45581         * lib/uninorm/decomposing-form.c: New file.
45582         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45583         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45584         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45585         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45586         * modules/uninorm/decomposing-form: New file.
45587         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45588         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45589
45590 2009-03-07  Bruno Haible  <bruno@clisp.org>
45591
45592         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45593         strings.
45594
45595 2009-03-06  Bruno Haible  <bruno@clisp.org>
45596
45597         Tests for module 'uninorm/u32-normcmp'.
45598         * tests/uninorm/test-u32-normcmp.c: New file.
45599         * modules/uninorm/u32-normcmp-tests: New file.
45600
45601         Tests for module 'uninorm/u16-normcmp'.
45602         * tests/uninorm/test-u16-normcmp.c: New file.
45603         * modules/uninorm/u16-normcmp-tests: New file.
45604
45605         Tests for module 'uninorm/u8-normcmp'.
45606         * tests/uninorm/test-u8-normcmp.c: New file.
45607         * modules/uninorm/u8-normcmp-tests: New file.
45608
45609         New module 'uninorm/u32-normcmp'.
45610         * lib/uninorm/u32-normcmp.c: New file.
45611         * modules/uninorm/u32-normcmp: New file.
45612
45613         New module 'uninorm/u16-normcmp'.
45614         * lib/uninorm/u16-normcmp.c: New file.
45615         * modules/uninorm/u16-normcmp: New file.
45616
45617         New module 'uninorm/u8-normcmp'.
45618         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45619         declarations.
45620         * lib/uninorm/u8-normcmp.c: New file.
45621         * lib/uninorm/u-normcmp.h: New file.
45622         * modules/uninorm/u8-normcmp: New file.
45623
45624 2009-03-06  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45627         Reported by Eric Blake.
45628
45629 2009-03-06  Eric Blake  <ebb9@byu.net>
45630             Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45633         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45634         condition.
45635         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45636         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45637         condition.
45638         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45639
45640 2009-03-06  Eric Blake  <ebb9@byu.net>
45641
45642         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45643         to avoid compiler warnings.
45644         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45645
45646 2009-03-05  Bruno Haible  <bruno@clisp.org>
45647
45648         * tests/test-ftell.c (main): Disable test beyond end of file on
45649         FreeMiNT.
45650         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45651
45652 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45653
45654         * lib/filevercmp.c: Move hidden files up in ordering.
45655         * tests/test-filevercmp.c: Add tests for hidden files.
45656
45657 2009-03-04  Bruno Haible  <bruno@clisp.org>
45658
45659         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45660         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45661         AM_CFLAGS.
45662         Reported by Simon Josefsson.
45663
45664 2009-03-03  Bruno Haible  <bruno@clisp.org>
45665
45666         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45667         Reported by Simon Josefsson.
45668
45669         * doc/ld-version-script.texi: Update node reference.
45670
45671 2009-03-03  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/visibility (License): Change to 'unlimited'.
45674         Suggested by Simon Josefsson.
45675
45676 2009-03-03  Jim Meyering  <meyering@redhat.com>
45677
45678         unlinkdir: cannot_unlink_dir may modify process state
45679         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45680         it's neither thread-safe nor appropriate for use in a library.
45681
45682 2009-03-03  Eric Blake  <ebb9@byu.net>
45683
45684         test-closein: silence test under Darwin
45685         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45686         care if it dies from EPIPE or EBADF.
45687
45688 2009-03-03  Bruno Haible  <bruno@clisp.org>
45689
45690         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45691         earlier.
45692         * doc/visibility.texi: Fix @node and @section.
45693
45694 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45695
45696         * doc/gnulib.texi: Link to sections for ld version script and
45697         visibility.
45698         * doc/visibility.texi: Add @node and @section.
45699         * modules/ld-version-script: New module.
45700         * m4/ld-version-script.m4: New file.
45701         * doc/ld-version-script.texi: New file.
45702
45703 2009-03-02  David Lutterkort  <lutter@redhat.com>
45704
45705         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45707
45708 2009-03-02  Bruno Haible  <bruno@clisp.org>
45709
45710         * doc/visibility.texi: Mention libtool's -export-symbols option.
45711
45712 2009-03-02  Jim Meyering  <meyering@redhat.com>
45713
45714         announce-gen: new option: --no-print-checksums
45715         * build-aux/announce-gen (usage): Describe it.
45716         (print_checksums): Print a newline here, not in the [*] footnote.
45717         (main): Honor it.
45718
45719 2009-03-01  Bruno Haible  <bruno@clisp.org>
45720
45721         Use socklen_t in the native Windows replacements prototypes.
45722         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45723         instead of 'int'.
45724         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45725         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45726         * modules/getsockopt (Depends-on): Add socklen.
45727         * modules/setsockopt (Depends-on): Add socklen.
45728
45729 2009-03-01  Bruno Haible  <bruno@clisp.org>
45730
45731         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45732         least 4.2.
45733
45734 2009-03-01  Eric Blake  <ebb9@byu.net>
45735             Bruno Haible  <bruno@clisp.org>
45736
45737         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45738         error messages.
45739         * lib/wait-process.c (wait_subprocess): Omit error message about
45740         deadly signal sent to the child of termsigp != NULL.
45741
45742 2009-03-01  Eric Blake  <ebb9@byu.net>
45743
45744         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45745
45746 2009-03-01  Bruno Haible  <bruno@clisp.org>
45747
45748         Avoid a gcc warning.
45749         * tests/test-sched.c (b): Make global.
45750         Reported by Eric Blake.
45751
45752 2009-01-19  Martin Lambers  <marlam@marlam.de>
45753
45754         Provide POSIX semantics for socket timeout options on W32.
45755         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45756         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45757         * modules/setsockopt: Depend on sys_time module for struct timeval.
45758         * modules/getsockopt: Depend on sys_time module for struct timeval.
45759
45760 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45761
45762         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45763         __USE_GNU, for consistency with netdb.in.h.
45764         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45765
45766 2009-03-01  Bruno Haible  <bruno@clisp.org>
45767
45768         More support for FreeMiNT.
45769         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45770         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45771
45772 2009-03-01  Bruno Haible  <bruno@clisp.org>
45773
45774         More support for FreeMiNT.
45775         * lib/fpurge.c (fpurge): Correct last commit.
45776         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45777
45778 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45779
45780         Fix unportable awk script in vc-list-files.
45781         * build-aux/vc-list-files: In the replacement awk script, use
45782         substr with a second argument of 1, not zero.
45783         Report by Simon Josefsson.
45784
45785 2009-02-28  Bruno Haible  <bruno@clisp.org>
45786
45787         More support for FreeMiNT.
45788         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45789         to FreeMiNT today.
45790         * lib/fwriting.c (fwriting): Likewise.
45791         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45792
45793 2009-02-28  Bruno Haible  <bruno@clisp.org>
45794
45795         * tests/test-freadseek.c (main): Disable test beyond end of file on
45796         FreeMiNT.
45797         * tests/test-ftello.c (main): Likewise.
45798         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45799
45800 2009-02-28  Bruno Haible  <bruno@clisp.org>
45801
45802         Add tentative support for FreeMiNT.
45803         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45804         * lib/fpurge.c (fpurge): Likewise.
45805         * lib/freadable.c (freadable): Likewise.
45806         * lib/freading.c (freading): Likewise.
45807         * lib/freadptr.c (freadptr): Likewise.
45808         * lib/freadseek.c (freadptrinc): Likewise.
45809         * lib/fseeko.c (rpl_fseeko): Likewise.
45810         * lib/fseterr.c (fseterr): Likewise.
45811         * lib/fwritable.c (fwritable): Likewise.
45812         * lib/fwriting.c (fwriting): Likewise.
45813         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45814         Hourihane.
45815         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45816
45817 2009-02-28  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45820         SIGCHLD.
45821         Reported by Jim Meyering.
45822
45823 2009-02-28  Bruno Haible  <bruno@clisp.org>
45824
45825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45826         Mention the results of these tests on various platforms.
45827         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45828         order.
45829         * doc/posix-functions/printf.texi: Likewise.
45830         * doc/posix-functions/snprintf.texi: Likewise.
45831         * doc/posix-functions/sprintf.texi: Likewise.
45832         * doc/posix-functions/vfprintf.texi: Likewise.
45833         * doc/posix-functions/vprintf.texi: Likewise.
45834         * doc/posix-functions/vsnprintf.texi: Likewise.
45835         * doc/posix-functions/vsprintf.texi: Likewise.
45836         * doc/glibc-functions/obstack_printf.texi: Likewise.
45837         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45838
45839 2009-02-28  Bruno Haible  <bruno@clisp.org>
45840
45841         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45842         Reported by Loïc Minier <lool@dooz.org>.
45843
45844 2009-02-27  Bruno Haible  <bruno@clisp.org>
45845
45846         * gnulib-tool (func_import): Make the sed expression used to create the
45847         sed script for updating the .gitignore file POSIX compliant.
45848         Reported by Eric Blake.
45849
45850 2009-02-27  Bruno Haible  <bruno@clisp.org>
45851
45852         * gnulib-tool (sed): Don't alias as "sed --posix".
45853         Reported by Eric Blake.
45854
45855 2009-02-27  Bruno Haible  <bruno@clisp.org>
45856
45857         Avoid test link errors.
45858         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45859         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45860         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45861         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45862         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45863
45864 2009-02-27  Bruno Haible  <bruno@clisp.org>
45865
45866         Avoid spurious "(cached)" in configure output.
45867         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45868         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45869         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45870         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45871         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45872         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45873         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45874         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45875         Reported by Eric Blake.
45876
45877 2009-02-27  Eric Blake  <ebb9@byu.net>
45878
45879         printf: fix regression in previous patch
45880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45881
45882 2009-02-27  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45885         value.
45886         * lib/stdint.in.h: Likewise.
45887         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45888
45889 2009-02-27  Eric Blake  <ebb9@byu.net>
45890
45891         doc: mention more functions added in cygwin 1.7.0
45892         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45893         addition.
45894         * doc/posix-functions/open_wmemstream.texi: Likewise.
45895         * doc/posix-functions/wcsnlen.texi: Likewise.
45896         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45897         * doc/posix-functions/wcstod.texi: Likewise.
45898         * doc/posix-functions/wcstof.texi: Likewise.
45899         * doc/posix-functions/wcstoimax.texi: Likewise.
45900         * doc/posix-functions/wcstok.texi: Likewise.
45901         * doc/posix-functions/wcstoumax.texi: Likewise.
45902
45903         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45905         * doc/posix-functions/fprintf.texi: Update.
45906         * doc/posix-functions/printf.texi: Update.
45907         * doc/posix-functions/snprintf.texi: Update.
45908         * doc/posix-functions/sprintf.texi: Update.
45909         * doc/posix-functions/vfprintf.texi: Update.
45910         * doc/posix-functions/vprintf.texi: Update.
45911         * doc/posix-functions/vsnprintf.texi: Update.
45912         * doc/posix-functions/vsprintf.texi: Update.
45913         * doc/glibc-functions/obstack_printf.texi: Update.
45914         * doc/glibc-functions/obstack_vprintf.texi: Update.
45915
45916 2009-02-26  Eric Blake  <ebb9@byu.net>
45917
45918         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45919         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45920         compilation bug by using runtime conversion.
45921         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45922         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45923         * modules/ceill-tests (Files): Use nan.h.
45924         * modules/floorl-tests (Files): Likewise.
45925         * modules/frexpl-tests (Files): Likewise.
45926         * modules/isnanl-tests (Files): Likewise.
45927         * modules/ldexpl-tests (Files): Likewise.
45928         * modules/roundl-tests (Files): Likewise.
45929         * modules/truncl-tests (Files): Likewise.
45930         * tests/test-ceill.c (main): Use a working NaN.
45931         * tests/test-floorl.c (main): Likewise.
45932         * tests/test-frexpl.c (main): Likewise.
45933         * tests/test-isnan.c (test_long_double): Likewise.
45934         * tests/test-isnanl.h (main): Likewise.
45935         * tests/test-ldexpl.h (main): Likewise.
45936         * tests/test-roundl.h (main): Likewise.
45937         * tests/test-truncl.h (main): Likewise.
45938         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45939
45940 2009-02-26  Eric Blake  <ebb9@byu.net>
45941             Bruno Haible  <bruno@clisp.org>
45942
45943         Work around a *printf bug with %ls on Solaris.
45944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45945         precision is specified, sprintf stops converting the wide string
45946         argument when the number of bytes that have been produced by this
45947         conversion equals or exceeds the precision.
45948         * doc/posix-functions/fprintf.texi: Update.
45949         * doc/posix-functions/printf.texi: Update.
45950         * doc/posix-functions/snprintf.texi: Update.
45951         * doc/posix-functions/sprintf.texi: Update.
45952         * doc/posix-functions/vfprintf.texi: Update.
45953         * doc/posix-functions/vprintf.texi: Update.
45954         * doc/posix-functions/vsnprintf.texi: Update.
45955         * doc/posix-functions/vsprintf.texi: Update.
45956         * doc/glibc-functions/obstack_printf.texi: Update.
45957         * doc/glibc-functions/obstack_vprintf.texi: Update.
45958
45959 2009-02-26  Eric Blake  <ebb9@byu.net>
45960
45961         stdlib: favor compiler check of random.h
45962         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45963         to avoid an ObjC random.h installed by Swarm.
45964
45965 2009-02-26  Bruno Haible  <bruno@clisp.org>
45966
45967         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45968         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45969         Reported by Gary V. Vaughan <gary@gnu.org>.
45970
45971 2009-02-26  Bruno Haible  <bruno@clisp.org>
45972
45973         Fix *printf behaviour regarding the %ls directive.
45974         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45975         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45976         NEED_PRINTF_DIRECTIVE_LS.
45977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45978         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45980         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45981         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45982         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45983         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45988         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45992         * doc/posix-functions/fprintf.texi: Update.
45993         * doc/posix-functions/printf.texi: Update.
45994         * doc/posix-functions/snprintf.texi: Update.
45995         * doc/posix-functions/sprintf.texi: Update.
45996         * doc/posix-functions/vfprintf.texi: Update.
45997         * doc/posix-functions/vprintf.texi: Update.
45998         * doc/posix-functions/vsnprintf.texi: Update.
45999         * doc/posix-functions/vsprintf.texi: Update.
46000         * doc/glibc-functions/obstack_printf.texi: Update.
46001         * doc/glibc-functions/obstack_vprintf.texi: Update.
46002         Reported by Eric Blake.
46003
46004 2009-02-25  Bruno Haible  <bruno@clisp.org>
46005
46006         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46007         with known value.
46008         Reported by Gary V. Vaughan <gary@gnu.org>.
46009
46010 2009-02-25  Bruno Haible  <bruno@clisp.org>
46011
46012         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46013         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46014         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46015         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46016         Reported by Gary V. Vaughan <gary@gnu.org>.
46017
46018 2009-02-25  Bruno Haible  <bruno@clisp.org>
46019
46020         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46021         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46022         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46023         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46024         Reported by Gary V. Vaughan <gary@gnu.org>.
46025
46026 2009-02-25  Eric Blake  <ebb9@byu.net>
46027
46028         tests: skip fseek/ftell tests if ungetc is broken
46029         * m4/ungetc.m4: New file.
46030         * modules/fseek-tests: Split test, so ungetc dependency is
46031         separate from rest of test.
46032         * modules/fseeko-tests: Likewise.
46033         * modules/ftell-tests: Likewise.
46034         * modules/ftello-tests: Likewise.
46035         * tests/test-fseek.c (main): Isolate ungetc dependency.
46036         * tests/test-fseeko.c (main): Likewise.
46037         * tests/test-ftell.c (main): Likewise.
46038         * tests/test-ftello.c (main): Likewise.
46039         * tests/test-fseek2.sh: New file.
46040         * tests/test-fseeko2.sh: Likewise.
46041         * tests/test-ftell2.sh: Likewise.
46042         * tests/test-ftello2.sh: Likewise.
46043
46044 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46045
46046         test-getaddrinfo: fix usage of skip return code 77
46047         * tests/test-gettaddrinfo.c: Return skip code 77 only
46048         for first occurance of skip (4x77 is not 77)
46049
46050 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46051
46052         strtod: avoid C99 decl-after-statement
46053         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46054
46055 2009-02-24  Eric Blake  <ebb9@byu.net>
46056
46057         strtod: detect HP-UX 11.31 bug
46058         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46059         Reported by Gary V. Vaughan.
46060
46061 2009-02-23  Bruno Haible  <bruno@clisp.org>
46062
46063         Fix invalid read past end of memory block.
46064         * lib/vasnprintf.c (DCHAR_SET): Define.
46065         (local_wcslen): Define only when needed.
46066         (local_strnlen, local_wcsnlen): New functions.
46067         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46068         directives that involve a conversion ourselves.
46069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46070         wcsnlen, mbrtowc, wcrtomb.
46071         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46072         * tests/test-vasprintf-posix.c (test_function): Likewise.
46073         * tests/test-snprintf-posix.h (test_function): Likewise.
46074         * tests/test-sprintf-posix.h (test_function): Likewise.
46075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46076
46077 2009-02-22  Bruno Haible  <bruno@clisp.org>
46078
46079         Implement new clarified decomposition of Hangul syllables.
46080         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46081         of type LTV, return only a pairwise decomposition.
46082         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46083         Likewise.
46084         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46085         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46086         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46087
46088 2009-02-22  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46091         zero-length results and shrink excess allocated memory.
46092         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46093         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46094         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46095         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46096         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46097         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46098         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46099         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46100         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46101         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46102         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46103         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46104
46105 2009-02-21  Bruno Haible  <bruno@clisp.org>
46106
46107         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46108         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46109         spaces after a period. Put a space between a macro name and its
46110         argument list. Trivial rewordings.
46111         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46112         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46113         (main): Return 0 explicitly.
46114
46115 2009-02-21  Bruno Haible  <bruno@clisp.org>
46116
46117         Tests for module 'uninorm/filter'.
46118         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46119         * modules/uninorm/filter-tests: New file.
46120
46121         New module 'uninorm/filter'.
46122         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46123         uninorm_filter_flush, uninorm_filter_free): New declarations.
46124         * lib/uninorm/uninorm-filter.c: New file.
46125         * modules/uninorm/filter: New file.
46126
46127 2009-02-21  Bruno Haible  <bruno@clisp.org>
46128
46129         Tests for module 'uninorm/nfkc'.
46130         * tests/uninorm/test-nfkc.c: New file.
46131         * tests/uninorm/test-u8-nfkc.c: New file.
46132         * tests/uninorm/test-u16-nfkc.c: New file.
46133         * tests/uninorm/test-u32-nfkc.c: New file.
46134         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46135         * tests/uninorm/test-u32-nfkc-big.c: New file.
46136         * modules/uninorm/nfkc-tests: New file.
46137
46138         New module 'uninorm/nfkc'.
46139         * lib/uninorm/nfkc.c: New file.
46140         * modules/uninorm/nfkc: New file.
46141
46142         Tests for module 'uninorm/nfkd'.
46143         * tests/uninorm/test-nfkd.c: New file.
46144         * tests/uninorm/test-u8-nfkd.c: New file.
46145         * tests/uninorm/test-u16-nfkd.c: New file.
46146         * tests/uninorm/test-u32-nfkd.c: New file.
46147         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46148         * tests/uninorm/test-u32-nfkd-big.c: New file.
46149         * modules/uninorm/nfkd-tests: New file.
46150
46151         New module 'uninorm/nfkd'.
46152         * lib/uninorm/nfkd.c: New file.
46153         * modules/uninorm/nfkd: New file.
46154
46155         Tests for module 'uninorm/nfc'.
46156         * tests/uninorm/test-nfc.c: New file.
46157         * tests/uninorm/test-u8-nfc.c: New file.
46158         * tests/uninorm/test-u16-nfc.c: New file.
46159         * tests/uninorm/test-u32-nfc.c: New file.
46160         * tests/uninorm/test-u32-nfc-big.sh: New file.
46161         * tests/uninorm/test-u32-nfc-big.c: New file.
46162         * modules/uninorm/nfc-tests: New file.
46163
46164         New module 'uninorm/nfc'.
46165         * lib/uninorm/nfc.c: New file.
46166         * modules/uninorm/nfc: New file.
46167
46168         Tests for module 'uninorm/nfd'.
46169         * tests/uninorm/test-nfd.c: New file.
46170         * tests/uninorm/test-u8-nfd.c: New file.
46171         * tests/uninorm/test-u16-nfd.c: New file.
46172         * tests/uninorm/test-u32-nfd.c: New file.
46173         * tests/uninorm/test-u32-nfd-big.sh: New file.
46174         * tests/uninorm/test-u32-nfd-big.c: New file.
46175         * tests/uninorm/test-u32-normalize-big.h: New file.
46176         * tests/uninorm/test-u32-normalize-big.c: New file.
46177         * tests/uninorm/NormalizationTest.txt: New file, created from
46178         Unicode 5.1.0 NormalizationTest.txt.
46179         * modules/uninorm/nfd-tests: New file.
46180
46181         New module 'uninorm/nfd'.
46182         * lib/uninorm/nfd.c: New file.
46183         * modules/uninorm/nfd: New file.
46184
46185         New module 'uninorm/u32-normalize'.
46186         * lib/uninorm/u32-normalize.c: New file.
46187         * modules/uninorm/u32-normalize: New file.
46188
46189         New module 'uninorm/u16-normalize'.
46190         * lib/uninorm/u16-normalize.c: New file.
46191         * modules/uninorm/u16-normalize: New file.
46192
46193         New module 'uninorm/u8-normalize'.
46194         * lib/uninorm/u8-normalize.c: New file.
46195         * lib/uninorm/normalize-internal.h: New file.
46196         * lib/uninorm/u-normalize-internal.h: New file.
46197         * modules/uninorm/u8-normalize: New file.
46198
46199         New module 'uninorm/decompose-internal'.
46200         * lib/uninorm/decompose-internal.c: New file.
46201         * modules/uninorm/decompose-internal: New file.
46202
46203         Tests for module 'uninorm/composition'.
46204         * tests/uninorm/test-composition.c: New file.
46205         * modules/uninorm/composition-tests: New file.
46206
46207         New module 'uninorm/composition'.
46208         * lib/uninorm/composition.c: New file.
46209         * lib/uninorm/composition-table.gperf: New file, generated by
46210         gen-uni-tables.
46211         * modules/uninorm/composition: New file.
46212
46213         Tests for module 'uninorm/compat-decomposition'.
46214         * tests/uninorm/test-compat-decomposition.c: New file.
46215         * modules/uninorm/compat-decomposition-tests: New file.
46216
46217         New module 'uninorm/compat-decomposition'.
46218         * lib/uninorm/decompose-internal.h: New file.
46219         * lib/uninorm/compat-decomposition.c: New file.
46220         * modules/uninorm/compat-decomposition: New file.
46221
46222         Tests for module 'uninorm/canonical-decomposition'.
46223         * tests/uninorm/test-canonical-decomposition.c: New file.
46224         * modules/uninorm/canonical-decomposition-tests: New file.
46225
46226         New module 'uninorm/canonical-decomposition'.
46227         * lib/uninorm/canonical-decomposition.c: New file.
46228         * modules/uninorm/canonical-decomposition: New file.
46229
46230         Tests for module 'uninorm/decomposition'.
46231         * tests/uninorm/test-decomposition.c: New file.
46232         * modules/uninorm/decomposition-tests: New file.
46233
46234         New module 'uninorm/decomposition'.
46235         * lib/uninorm/decomposition.c: New file.
46236         * modules/uninorm/decomposition: New file.
46237
46238         New module 'uninorm/decomposition-table'.
46239         * lib/uninorm/decomposition-table.h: New file.
46240         * lib/uninorm/decomposition-table.c: New file.
46241         * lib/uninorm/decomposition-table1.h: New file, generated by
46242         gen-uni-tables.
46243         * lib/uninorm/decomposition-table2.h: New file, generated by
46244         gen-uni-tables.
46245         * modules/uninorm/decomposition-table: New file.
46246
46247         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46248         (UC_DECOMP_*): New enumeration items.
46249         (get_decomposition): New function.
46250         (struct decomp_table): New type.
46251         (output_decomposition, output_decomposition_tables): New functions.
46252         (unicode_composition_exclusions): New variable.
46253         (fill_composition_exclusions, debug_output_composition_tables): New
46254         functions.
46255         (main): Accept one more argument. Invoke fill_composition_exclusions.
46256         Output decomposition and composition tables.
46257
46258         New module 'uninorm/base'.
46259         * lib/uninorm.h: New file.
46260         * lib/unictype.h: Update comment.
46261         * modules/uninorm/base: New file.
46262
46263 2009-02-21  David Lutterkort  <lutter@redhat.com>
46264
46265         Tests for module 'safe-alloc'.
46266         * tests/test-safe-alloc.c: New file.
46267         * modules/safe-alloc-tests: New file.
46268
46269         New module 'safe-alloc'.
46270         * lib/safe-alloc.h: New file.
46271         * lib/safe-alloc.c: New file.
46272         * m4/safe-alloc.m4: New file.
46273         * modules/safe-alloc: New file.
46274         * doc/safe-alloc.texi: New file.
46275         * doc/gnulib.texi: Include it.
46276         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46277         safe-alloc.
46278
46279 2009-02-18  Bruno Haible  <bruno@clisp.org>
46280
46281         Fix link error on non-glibc systems.
46282         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46283         variable.
46284         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46285
46286 2009-02-18  Jim Meyering  <meyering@redhat.com>
46287
46288         fts: avoid used-uninitialized error due to recent change
46289         * lib/fts.c (fts_read): Guard uses of the new member,
46290         parent->fts_n_dirs_remaining, since it's not relevant for
46291         the parent of a directory specified on the command-line.
46292
46293 2009-02-17  James Youngman  <jay@gnu.org>
46294             Bruno Haible  <bruno@clisp.org>
46295
46296         * m4/include_next.m4: Reformulate comment.
46297
46298 2009-02-16  Jim Meyering  <meyering@redhat.com>
46299
46300         fts: add #if guards so that the fts_lgpl module still builds
46301         * lib/fts.c: Guard just-added hash-table-using parts with
46302         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46303         Reported by Simon Josefsson.
46304
46305 2009-02-15  Bruno Haible  <bruno@clisp.org>
46306
46307         * modules/array-mergesort-tests: New file.
46308         * tests/test-array-mergesort.c: New file.
46309
46310         New module 'array-mergesort'.
46311         * modules/array-mergesort: New file.
46312         * lib/array-mergesort.h: New file.
46313
46314 2009-02-15  Bruno Haible  <bruno@clisp.org>
46315
46316         Fix 2009-02-07 commit.
46317         * lib/gen-uni-tables.c (output_predicate, output_category,
46318         output_combclass, output_bidi_category, output_decimal_digit,
46319         output_digit, output_numeric, output_mirror, output_scripts,
46320         output_ident_category, output_simple_mapping): Fix format directives.
46321         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46322
46323 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46324
46325         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46326         fixes are available from IBM.
46327
46328 2009-02-13  Jim Meyering  <meyering@redhat.com>
46329
46330         fts: arrange not to stat non-directories in more cases
46331         This makes GNU find (when it doesn't need to stat each file)
46332         *much* more efficient at traversing reiserfs file systems.
46333         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46334         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46335         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46336         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46337         (leaf_optimization_applies): New function.
46338         (LCO_hash, LCO_compare): New helper functions.
46339         (link_count_optimize_ok): New function.
46340         (fts_stat): Initialize new member (if dir).
46341         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46342         we've just stat'ed a directory.  Skip the stat call when possible.
46343         ---
46344         Note this AFS-related exchange:
46345         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46346         and note find's pioctl call in find/fstype.c.
46347         But that is necessary only if you want to enable the
46348         optimization for AFS, and for now, I don't.
46349
46350         fts: move a function definition "up" (no semantic change)
46351         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46352         "up" to precede upcoming use of a related function.
46353
46354 2009-02-11  Jim Meyering  <meyering@redhat.com>
46355
46356         fts: correct internal computation of nlinks (optimization-related)
46357         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46358         whether the current entry is a directory, so don't test it.
46359
46360 2009-02-10  Bruno Haible  <bruno@clisp.org>
46361
46362         Tests for module 'uniwbrk/ulc-wordbreaks'.
46363         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46364         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46365         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46366
46367         Tests for module 'uniwbrk/u32-wordbreaks'.
46368         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46369         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46370
46371         Tests for module 'uniwbrk/u16-wordbreaks'.
46372         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46373         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46374
46375         Tests for module 'uniwbrk/u8-wordbreaks'.
46376         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46377         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46378
46379 2009-02-10  Bruno Haible  <bruno@clisp.org>
46380
46381         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46382         property.
46383         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46384         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46385         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46386
46387 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46388
46389         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46390         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46391
46392 2009-02-10  Bruno Haible  <bruno@clisp.org>
46393
46394         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46395         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46396         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46397         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46398         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46399         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46400
46401 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46402
46403         * lib/sockets.h (gl_fd_to_handle): New function.
46404
46405         * tests/test-sockets.c: Call gl_fd_to_handle.
46406
46407 2009-02-09  Bruno Haible  <bruno@clisp.org>
46408
46409         * doc/havelib.texi: Document the conventions on bi-arch systems.
46410
46411 2009-02-08  Bruno Haible  <bruno@clisp.org>
46412
46413         Document the AC_LIB_LINKFLAGS macro.
46414         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46415         * doc/gnulib.texi: Include it.
46416
46417 2009-02-08  Bruno Haible  <bruno@clisp.org>
46418
46419         Fix wrong order of sections, compared to TOC.
46420         * doc/gnulib.texi: Include relocatable-maint.texi after the
46421         "Regular expressions" node, not before.
46422
46423 2009-02-08  Bruno Haible  <bruno@clisp.org>
46424
46425         Tests for module 'unicase/totitle'.
46426         * modules/unicase/totitle-tests: New file.
46427
46428         Tests for module 'unicase/tolower'.
46429         * modules/unicase/tolower-tests: New file.
46430
46431         Tests for module 'unicase/toupper'.
46432         * modules/unicase/toupper-tests: New file.
46433         * tests/unicase/test-mapping-part1.h: New file.
46434         * tests/unicase/test-mapping-part2.h: New file.
46435
46436         New module 'unicase/totitle'.
46437         * modules/unicase/totitle: New file.
46438         * lib/unicase/totitle.c: New file.
46439
46440         New module 'unicase/tolower'.
46441         * modules/unicase/tolower: New file.
46442         * lib/unicase/tolower.c: New file.
46443
46444         New module 'unicase/toupper'.
46445         * modules/unicase/toupper: New file.
46446         * lib/unicase/toupper.c: New file.
46447         * lib/unicase/simple-mapping.h: New file.
46448
46449         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46450         (mapping_table): New structure.
46451         (output_simple_mapping): New function.
46452         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46453         * modules/gen-uni-tables (Description): Update.
46454         * lib/unicase/toupper.h: New file, automatically generated by
46455         gen-uni-tables.
46456         * lib/unicase/tolower.h: New file, automatically generated by
46457         gen-uni-tables.
46458         * lib/unicase/totitle.h: New file, automatically generated by
46459         gen-uni-tables.
46460         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46461         gen-uni-tables.
46462         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46463         gen-uni-tables.
46464         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46465         gen-uni-tables.
46466
46467         New module 'unicase/base'.
46468         * modules/unicase/base: New file.
46469         * lib/unicase.h: New file.
46470
46471 2009-02-08  Bruno Haible  <bruno@clisp.org>
46472
46473         New module 'uniwbrk/ulc-wordbreaks'.
46474         * modules/uniwbrk/ulc-wordbreaks: New file.
46475         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46476
46477         New module 'uniwbrk/u32-wordbreaks'.
46478         * modules/uniwbrk/u32-wordbreaks: New file.
46479         * lib/uniwbrk/u32-wordbreaks.c: New file.
46480
46481         New module 'uniwbrk/u16-wordbreaks'.
46482         * modules/uniwbrk/u16-wordbreaks: New file.
46483         * lib/uniwbrk/u16-wordbreaks.c: New file.
46484
46485         New module 'uniwbrk/u8-wordbreaks'.
46486         * modules/uniwbrk/u8-wordbreaks: New file.
46487         * lib/uniwbrk/u8-wordbreaks.c: New file.
46488         * lib/uniwbrk/u-wordbreaks.h: New file.
46489
46490         New module 'uniwbrk/table'.
46491         * modules/uniwbrk/table: New file.
46492         * lib/uniwbrk/wbrktable.h: New file.
46493         * lib/uniwbrk/wbrktable.c: New file.
46494
46495         New module 'uniwbrk/wordbreak-property'.
46496         * modules/uniwbrk/wordbreak-property: New file.
46497         * lib/uniwbrk/wordbreak-property.c: New file.
46498
46499         * lib/gen-uni-tables.c (WBP_*): New enum items.
46500         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46501         (unicode_org_wbp): New variable.
46502         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46503         New functions.
46504         (wbp_table): New structure.
46505         (output_wbp, output_wbrk_tables): New functions.
46506         (main): Accept additional argument. Invoke fill_org_wbp,
46507         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46508         output_wbrk_tables.
46509         * modules/gen-uni-tables (Description): Update.
46510         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46511         gen-uni-tables.
46512
46513         New module 'uniwbrk/base'.
46514         * modules/uniwbrk/base: New file.
46515         * lib/uniwbrk.h: New file.
46516
46517 2009-02-08  Bruno Haible  <bruno@clisp.org>
46518
46519         Update to Unicode 5.1.0.
46520         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46521         U+2185..U+2188.
46522         (is_property_default_ignorable_code_point): Don't include characters
46523         of category Cc or Cs and not-a-characters.
46524         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46525         U+0D79, U+109E, U+109F, U+A60C.
46526         * lib/unictype/bidi_of.h: Regenerated.
46527         * lib/unictype/blocks.h: Regenerated.
46528         * lib/unictype/categ_C.h: Regenerated.
46529         * lib/unictype/categ_Cf.h: Regenerated.
46530         * lib/unictype/categ_Cn.h: Regenerated.
46531         * lib/unictype/categ_L.h: Regenerated.
46532         * lib/unictype/categ_Ll.h: Regenerated.
46533         * lib/unictype/categ_Lm.h: Regenerated.
46534         * lib/unictype/categ_Lo.h: Regenerated.
46535         * lib/unictype/categ_Lu.h: Regenerated.
46536         * lib/unictype/categ_M.h: Regenerated.
46537         * lib/unictype/categ_Mc.h: Regenerated.
46538         * lib/unictype/categ_Me.h: Regenerated.
46539         * lib/unictype/categ_Mn.h: Regenerated.
46540         * lib/unictype/categ_N.h: Regenerated.
46541         * lib/unictype/categ_Nd.h: Regenerated.
46542         * lib/unictype/categ_Nl.h: Regenerated.
46543         * lib/unictype/categ_No.h: Regenerated.
46544         * lib/unictype/categ_P.h: Regenerated.
46545         * lib/unictype/categ_Pd.h: Regenerated.
46546         * lib/unictype/categ_Pe.h: Regenerated.
46547         * lib/unictype/categ_Pf.h: Regenerated.
46548         * lib/unictype/categ_Pi.h: Regenerated.
46549         * lib/unictype/categ_Po.h: Regenerated.
46550         * lib/unictype/categ_Ps.h: Regenerated.
46551         * lib/unictype/categ_S.h: Regenerated.
46552         * lib/unictype/categ_Sk.h: Regenerated.
46553         * lib/unictype/categ_Sm.h: Regenerated.
46554         * lib/unictype/categ_So.h: Regenerated.
46555         * lib/unictype/categ_of.h: Regenerated.
46556         * lib/unictype/combining.h: Regenerated.
46557         * lib/unictype/ctype_alnum.h: Regenerated.
46558         * lib/unictype/ctype_alpha.h: Regenerated.
46559         * lib/unictype/ctype_graph.h: Regenerated.
46560         * lib/unictype/ctype_lower.h: Regenerated.
46561         * lib/unictype/ctype_print.h: Regenerated.
46562         * lib/unictype/ctype_punct.h: Regenerated.
46563         * lib/unictype/ctype_upper.h: Regenerated.
46564         * lib/unictype/decdigit.h: Regenerated.
46565         * lib/unictype/digit.h: Regenerated.
46566         * lib/unictype/mirror.h: Regenerated.
46567         * lib/unictype/numeric.h: Regenerated.
46568         * lib/unictype/pr_alphabetic.h: Regenerated.
46569         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46570         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46571         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46572         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46573         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46574         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46575         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46576         * lib/unictype/pr_combining.h: Regenerated.
46577         * lib/unictype/pr_dash.h: Regenerated.
46578         * lib/unictype/pr_decimal_digit.h: Regenerated.
46579         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46580         * lib/unictype/pr_deprecated.h: Regenerated.
46581         * lib/unictype/pr_diacritic.h: Regenerated.
46582         * lib/unictype/pr_extender.h: Regenerated.
46583         * lib/unictype/pr_format_control.h: Regenerated.
46584         * lib/unictype/pr_grapheme_base.h: Regenerated.
46585         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46586         * lib/unictype/pr_grapheme_link.h: Regenerated.
46587         * lib/unictype/pr_id_continue.h: Regenerated.
46588         * lib/unictype/pr_id_start.h: Regenerated.
46589         * lib/unictype/pr_ideographic.h: Regenerated.
46590         * lib/unictype/pr_ignorable_control.h: Regenerated.
46591         * lib/unictype/pr_lowercase.h: Regenerated.
46592         * lib/unictype/pr_math.h: Regenerated.
46593         * lib/unictype/pr_numeric.h: Regenerated.
46594         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46595         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46596         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46597         * lib/unictype/pr_other_id_continue.h: Regenerated.
46598         * lib/unictype/pr_other_lowercase.h: Regenerated.
46599         * lib/unictype/pr_other_math.h: Regenerated.
46600         * lib/unictype/pr_punctuation.h: Regenerated.
46601         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46602         * lib/unictype/pr_soft_dotted.h: Regenerated.
46603         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46604         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46605         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46606         * lib/unictype/pr_uppercase.h: Regenerated.
46607         * lib/unictype/pr_xid_continue.h: Regenerated.
46608         * lib/unictype/pr_xid_start.h: Regenerated.
46609         * lib/unictype/pr_zero_width.h: Regenerated.
46610         * lib/unictype/scripts.h: Regenerated.
46611         * lib/unictype/scripts_byname.gperf: Regenerated.
46612         * lib/unictype/sy_java_ident.h: Regenerated.
46613         * lib/unilbrk/lbrkprop1.h: Regenerated.
46614         * lib/unilbrk/lbrkprop2.h: Regenerated.
46615         * tests/unictype/test-categ_C.c: Regenerated.
46616         * tests/unictype/test-categ_Cf.c: Regenerated.
46617         * tests/unictype/test-categ_Cn.c: Regenerated.
46618         * tests/unictype/test-categ_L.c: Regenerated.
46619         * tests/unictype/test-categ_Ll.c: Regenerated.
46620         * tests/unictype/test-categ_Lm.c: Regenerated.
46621         * tests/unictype/test-categ_Lo.c: Regenerated.
46622         * tests/unictype/test-categ_Lu.c: Regenerated.
46623         * tests/unictype/test-categ_M.c: Regenerated.
46624         * tests/unictype/test-categ_Mc.c: Regenerated.
46625         * tests/unictype/test-categ_Me.c: Regenerated.
46626         * tests/unictype/test-categ_Mn.c: Regenerated.
46627         * tests/unictype/test-categ_N.c: Regenerated.
46628         * tests/unictype/test-categ_Nd.c: Regenerated.
46629         * tests/unictype/test-categ_Nl.c: Regenerated.
46630         * tests/unictype/test-categ_No.c: Regenerated.
46631         * tests/unictype/test-categ_P.c: Regenerated.
46632         * tests/unictype/test-categ_Pd.c: Regenerated.
46633         * tests/unictype/test-categ_Pe.c: Regenerated.
46634         * tests/unictype/test-categ_Pf.c: Regenerated.
46635         * tests/unictype/test-categ_Pi.c: Regenerated.
46636         * tests/unictype/test-categ_Po.c: Regenerated.
46637         * tests/unictype/test-categ_Ps.c: Regenerated.
46638         * tests/unictype/test-categ_S.c: Regenerated.
46639         * tests/unictype/test-categ_Sk.c: Regenerated.
46640         * tests/unictype/test-categ_Sm.c: Regenerated.
46641         * tests/unictype/test-categ_So.c: Regenerated.
46642         * tests/unictype/test-ctype_alnum.c: Regenerated.
46643         * tests/unictype/test-ctype_alpha.c: Regenerated.
46644         * tests/unictype/test-ctype_graph.c: Regenerated.
46645         * tests/unictype/test-ctype_lower.c: Regenerated.
46646         * tests/unictype/test-ctype_print.c: Regenerated.
46647         * tests/unictype/test-ctype_punct.c: Regenerated.
46648         * tests/unictype/test-ctype_upper.c: Regenerated.
46649         * tests/unictype/test-decdigit.h: Regenerated.
46650         * tests/unictype/test-digit.h: Regenerated.
46651         * tests/unictype/test-numeric.h: Regenerated.
46652         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46653         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46654         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46655         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46656         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46657         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46658         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46659         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46660         * tests/unictype/test-pr_combining.c: Regenerated.
46661         * tests/unictype/test-pr_dash.c: Regenerated.
46662         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46663         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46664         * tests/unictype/test-pr_deprecated.c: Regenerated.
46665         * tests/unictype/test-pr_diacritic.c: Regenerated.
46666         * tests/unictype/test-pr_extender.c: Regenerated.
46667         * tests/unictype/test-pr_format_control.c: Regenerated.
46668         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46669         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46670         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46671         * tests/unictype/test-pr_id_continue.c: Regenerated.
46672         * tests/unictype/test-pr_id_start.c: Regenerated.
46673         * tests/unictype/test-pr_ideographic.c: Regenerated.
46674         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46675         * tests/unictype/test-pr_lowercase.c: Regenerated.
46676         * tests/unictype/test-pr_math.c: Regenerated.
46677         * tests/unictype/test-pr_numeric.c: Regenerated.
46678         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46679         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46680         Regenerated.
46681         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46682         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46683         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46684         * tests/unictype/test-pr_other_math.c: Regenerated.
46685         * tests/unictype/test-pr_punctuation.c: Regenerated.
46686         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46687         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46688         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46689         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46690         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46691         * tests/unictype/test-pr_uppercase.c: Regenerated.
46692         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46693         * tests/unictype/test-pr_xid_start.c: Regenerated.
46694         * tests/unictype/test-pr_zero_width.c: Regenerated.
46695
46696         Update to Unicode 5.1.0.
46697         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46698         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46699         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46700         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46701         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46702         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46703         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46704         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46705         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46706         (nonspacing_table_ind): Update.
46707         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46708
46709         Update to Unicode 5.1.0.
46710         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46711         code transform.
46712         * lib/uniname/uniname.c (unicode_character_name,
46713         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46714         * lib/uniname/uninames.h: Regenerated.
46715         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46716
46717 2009-02-07  Bruno Haible  <bruno@clisp.org>
46718
46719         Merge gen-ctype and gen-lbrk into a single program.
46720         * lib/gen-uni-tables.c: New file, incorporating
46721         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46722         Add directory prefixes to the names of the generated files.
46723         * lib/unictype/gen-ctype.c: Remove file.
46724         * lib/unilbrk/gen-lbrk.c: Remove file.
46725         * modules/gen-uni-tables: New file.
46726         * modules/unictype/gen-ctype: Remove file.
46727         * modules/unilbrk/gen-lbrk: Remove file.
46728
46729 2009-02-07  Bruno Haible  <bruno@clisp.org>
46730
46731         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46732
46733         New module 'unistr/u32-strcoll'.
46734         * modules/unistr/u32-strcoll: New file.
46735         * lib/unistr/u32-strcoll.c: New file.
46736
46737         New module 'unistr/u16-strcoll'.
46738         * modules/unistr/u16-strcoll: New file.
46739         * lib/unistr/u16-strcoll.c: New file.
46740
46741         New module 'unistr/u8-strcoll'.
46742         * modules/unistr/u8-strcoll: New file.
46743         * lib/unistr/u8-strcoll.c: New file.
46744         * lib/unistr/u-strcoll.h: New file.
46745
46746 2009-02-07  Bruno Haible  <bruno@clisp.org>
46747
46748         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46749         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46750         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46751         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46752         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46753         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46754
46755 2009-02-07  Bruno Haible  <bruno@clisp.org>
46756
46757         Make 64-bit clean.
46758         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46759         output_combclass, output_bidi_category, output_decimal_digit,
46760         output_digit, output_numeric, output_mirror, output_scripts,
46761         output_ident_category): Use proper width specifier in format strings.
46762
46763 2009-02-07  Bruno Haible  <bruno@clisp.org>
46764
46765         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46766         failure behaviour.
46767
46768 2009-02-07  Jim Meyering  <meyering@redhat.com>
46769
46770         regex: avoid compilation failure with upcoming gcc-4.4
46771         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46772         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46773         "... error: integer overflow in preprocessor expression".
46774
46775 2009-02-05  Ben Pfaff  <blp@gnu.org>
46776
46777         Fix link errors on Windows when close module is used.
46778         * modules/close: Add $(LIB_CLOSE) to Link section.
46779         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46780         $(LIB_CLOSE) on Windows.
46781
46782 2009-02-05  Jim Meyering  <meyering@redhat.com>
46783
46784         still avoid unused-parameter warnings, but do it cleanly
46785         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46786         (get_fs_usage): Cast to void instead.
46787         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46788         (dev_from_mount_options, read_file_system_list): Cast to void.
46789         Prompted by Bruno Haible.
46790
46791 2009-02-04  Jim Meyering  <meyering@redhat.com>
46792
46793         fsusage.c: correct copyright year
46794         * lib/fsusage.c: Reflect year in which the change is pushed into
46795
46796         avoid misc. warnings
46797         * lib/fsusage.c (UNUSED_PARAM): Define.
46798         (get_fs_usage): Mark parameter "disk" as unused.
46799         * lib/getugroups.c (getgrent): Use "void" in prototype.
46800         * lib/mountlist.c: Mark unused parameters.
46801         (read_file_system_list): Declare a local with "const".
46802         * lib/nanosleep.c (getnow): Declare static.
46803         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46804
46805         dirfd: set errno upon failure
46806         * lib/dirfd.c: Include <errno.h>.
46807         Set errno to ENOTSUP when returning -1.
46808         * modules/dirfd (Depends-on): Add errno.
46809         Suggested by John Kodis <kodis@comcast.net>.
46810
46811 2009-02-01  Bruno Haible  <bruno@clisp.org>
46812
46813         Don't assume sizeof (long) >= sizeof (void *).
46814         * lib/memcmp.c: Include stdint.h.
46815         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46816         srcp2 to 'const byte *'.
46817         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46818         types to uintptr_t.
46819         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46820         * modules/memcmp (Depends-on): Add stdint.
46821         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46822
46823 2009-01-30  Eric Blake  <ebb9@byu.net>
46824
46825         fix more require-before-expand issues
46826         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46827         expand, AC_PROG_AWK.
46828         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46829
46830 2009-01-28  Eric Blake  <ebb9@byu.net>
46831
46832         version-etc: use consistent URL formatting
46833         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46834         Improve formatting.  Use fputs for string without %.
46835
46836 2009-01-28  Jim Meyering  <meyering@redhat.com>
46837
46838         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46839         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46840         "underquoted definition of NAME" from autoconf-2.59.
46841
46842 2009-01-28  Bruno Haible  <bruno@clisp.org>
46843
46844         * doc/gnulib.texi: Add "Obsolete modules" to index.
46845
46846 2009-01-28  Jim Meyering  <meyering@redhat.com>
46847
46848         useless-if-before-free: recognize more variants
46849         * build-aux/useless-if-before-free: Also recognize e.g.,
46850         if (NULL != p) free (p);
46851
46852 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46853
46854         test-getaddrinfo: skip (don't fail) this test when there's no network
46855         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46856         on the presumption that it means you lack network access.
46857
46858 2009-01-26  Jim Meyering  <meyering@redhat.com>
46859
46860         fflush: avoid warnings on modern systems
46861         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46862         pos and result, into scopes where they're used.
46863
46864 2009-01-26  Eric Blake  <ebb9@byu.net>
46865
46866         Silence warning reintroduced by recent extensions patch.
46867         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46868         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46869         autoconf.
46870
46871         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46872         * m4/00gnulib.m4: New file.
46873         * gnulib-tool (func_get_filelist): Always use it.
46874         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46875         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46876
46877 2009-01-25  Bruno Haible  <bruno@clisp.org>
46878
46879         Make test-quotearg work on MacOS X and AIX.
46880         * tests/test-quotearg.sh: New file.
46881         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46882         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46883         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46884         include <libintl.h>.
46885         (fake_locale): Remove variable.
46886         (gettext, dgettext, dcgettext): Remove functions.
46887         (main): Instead of setting a fake locale, set a real locale. Call
46888         textdomain and bindtextdomain.
46889         * modules/quotearg-tests (Files): Add the new files.
46890         (Depends-on): Add gettext, setenv, unsetenv.
46891         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46892         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46893         Augment TESTS_ENVIRONMENT.
46894
46895 2009-01-25  Bruno Haible  <bruno@clisp.org>
46896
46897         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46898         fr_FR.ISO8859-1 locale on MacOS X.
46899         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46900         ja_JP.eucJP locale on MacOS X.
46901         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46902         zh_CN.GB18030 locale on MacOS X.
46903
46904 2009-01-25  Bruno Haible  <bruno@clisp.org>
46905
46906         Avoid link errors on MacOS X 10.3.
46907         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46908         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46909
46910 2009-01-25  Bruno Haible  <bruno@clisp.org>
46911
46912         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46913         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46914         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46915         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46916         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46917         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46918         posix_spawnattr_init, posix_spawnattr_setsigmask,
46919         posix_spawnattr_setflags, posix_spawnattr_destroy.
46920
46921         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46922         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46923         * modules/execute (Files): Remove m4/posix_spawn.m4.
46924         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46925         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46926         posix_spawnattr_init, posix_spawnattr_setsigmask,
46927         posix_spawnattr_setflags, posix_spawnattr_destroy.
46928
46929 2009-01-25  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/glthread/threadlib.c: Include <stdlib.h>.
46932
46933 2009-01-25  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/glthread/threadlib.c (dummy): New declaration.
46936
46937 2009-01-25  Bruno Haible  <bruno@clisp.org>
46938
46939         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46940         multibyte characters also for the GB18030 encoding. Don't crash when
46941         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46942
46943 2009-01-25  Bruno Haible  <bruno@clisp.org>
46944
46945         Avoid redefining 'struct random_data' on OSF/1 5.1.
46946         * lib/stdlib.in.h: Include <random.h> if it exists.
46947         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46948         HAVE_RANDOM_H. Include <random.h> when testing whether
46949         'struct random_data' exists.
46950         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46951
46952 2009-01-25  Bruno Haible  <bruno@clisp.org>
46953
46954         Don't install charset.alias on MacOS X >= 10.3.
46955         * lib/localcharset.c (DARWIN7): New macro.
46956         (get_charset_aliases): Hardcode the result for Darwin7.
46957         * modules/localcharset (install-exec-local): Don't install
46958         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46959
46960 2009-01-25  Bruno Haible  <bruno@clisp.org>
46961
46962         Don't install charset.alias on mingw and Cygwin.
46963         * modules/localcharset (install-exec-local): Don't install
46964         charset.alias on mingw and Cygwin, if the file does not yet exist.
46965         The result for these platforms is hardcoded in localcharset.c.
46966
46967 2009-01-25  Bruno Haible  <bruno@clisp.org>
46968
46969         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46971         before requiring AC_USE_SYSTEM_EXTENSIONS.
46972
46973 2009-01-25  Jim Meyering  <meyering@redhat.com>
46974
46975         c-strtod: avoid warnings
46976         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46977         "assignment discards qualifiers from pointer target type" warnings.
46978
46979 2009-01-24  Bruno Haible  <bruno@clisp.org>
46980
46981         Add support for non-UTF-8 locales on MacOS X.
46982         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46983         canonical encodings. For Darwin 7 and newer, don't map traditional
46984         encodings to UTF-8.
46985         Reported by Vincent Lefevre <vincent@vinc17.org>
46986         at <http://savannah.gnu.org/bugs/?25235>.
46987
46988 2009-01-24  Bruno Haible  <bruno@clisp.org>
46989
46990         * doc/gnulib.texi (Obsolete modules): New section.
46991         Reported by Mike Frysinger <vapier@gentoo.org>.
46992
46993 2009-01-24  Bruno Haible  <bruno@clisp.org>
46994
46995         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46996         (%.dvi): New rule.
46997
46998 2009-01-24  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47001         Reported by Eric Blake.
47002
47003 2009-01-24  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47006         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47007         Reported by Gary V. Vaughan <gary@gnu.org>.
47008
47009 2009-01-24  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47012
47013 2009-01-23  Bruno Haible  <bruno@clisp.org>
47014
47015         Make c-strtod, c-strtold usable in libraries.
47016         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47017         (C_STRTOD): Call strdup instead of xstrdup.
47018         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47019         * modules/c-strtold (Depends-on): Likewise.
47020         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47021         * NEWS: Mention the change.
47022         Reported by Michael Gold <mgold@ncf.ca>.
47023
47024 2009-01-23  Jim Meyering  <meyering@redhat.com>
47025
47026         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47027         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47028         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47029
47030 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47031
47032         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47033         GNU CoreUtils.
47034         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47035         * modules/version-etc (Description): Update.
47036
47037 2009-01-22  Bruno Haible  <bruno@clisp.org>
47038
47039         Cache the C locale object.
47040         * lib/c-strtod.c (c_locale_cache): New variable.
47041         (c_locale): New function.
47042         (C_STRTOD): Use it, and don't call freelocale.
47043         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47044         Suggested by Paolo Bonzini.
47045
47046 2009-01-21  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47049         conditions other than overflow.
47050
47051 2009-01-21  Bruno Haible  <bruno@clisp.org>
47052
47053         * lib/c-strtod.c: Include errno.h.
47054         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47055         value from STRTOD_L and STRTOD.
47056
47057 2009-01-21  Bruno Haible  <bruno@clisp.org>
47058         and Jim Meyering  <meyering@redhat.com>
47059
47060         nanosleep: skip configure test (fail it) for apple universal builds
47061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47062         universal builds, assume that nanosleep does not work.
47063         * modules/nanosleep (Depends-on): Add multiarch.
47064
47065         mktime: skip configure test (fail it) for apple universal builds
47066         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47067         universal builds, assume that mktime does not work.
47068         * modules/mktime (Depends-on): Add multiarch.
47069
47070 2009-01-21  Eric Blake  <ebb9@byu.net>
47071
47072         multiarch: avoid expand-before-require warning
47073         * modules/multiarch (configure.ac): Require, rather than expand,
47074         gl_MULTIARCH.
47075         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47076         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47077         enforce that all clients require it.  Partial reversion of
47078         2008-12-29 patch.
47079
47080         error: avoid expand-before-require warning
47081         * modules/errno (configure.ac): Require, rather than expand,
47082         gl_HEADER_ERRNO_H.
47083         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47084         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47085         enforce that all clients require it.
47086
47087         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47088         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47089         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47090         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47091
47092 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47093
47094         Revert:
47095         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47096
47097         regex: do not depend on obsolete modules.
47098         * modules/regex: Remove memcmp and memmove.
47099
47100 2009-01-20  Bruno Haible  <bruno@clisp.org>
47101
47102         Make the 'link' module link on Windows NT 4.
47103         * lib/link.c (_WIN32_WINNT): Don't define.
47104         (CreateHardLinkFuncType): New type.
47105         (CreateHardLinkFunc, initialized): New variables.
47106         (initialize): New function.
47107         (link): Invoke CreateHardLink indirectly through the function pointer.
47108
47109 2009-01-20  Bruno Haible  <bruno@clisp.org>
47110
47111         Fix compilation failure on mingw.
47112         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47113
47114 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47115
47116         * doc/c-strtod.texi: Mention a couple of restrictions.
47117
47118 2009-01-20  Jim Meyering  <meyering@redhat.com>
47119
47120         gettimeofday: move more declarations out of functions
47121         * lib/gettimeofday.c: Move extern declarations of tzset and
47122         gmtime out of containing functions.  Prompted by Bruno Haible.
47123
47124 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47125
47126         regex: do not depend on obsolete modules.
47127         * modules/regex: Remove memcmp and memmove.
47128
47129 2009-01-19  Bruno Haible  <bruno@clisp.org>
47130
47131         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47132         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47133         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47134         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47135         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47136
47137 2009-01-19  Bruno Haible  <bruno@clisp.org>
47138
47139         * tests/test-link.c: Include <errno.h>.
47140         (main): Exit with code 77 when a hard link cannot be created due to
47141         the file system.
47142         * tests/test-link.sh: Skip test when a hard link cannot be created due
47143         to the file system.
47144         Suggested by Eric Blake.
47145
47146 2009-01-19  Martin Lambers  <marlam@marlam.de>
47147
47148         * modules/link-tests: New file.
47149         * tests/test-link.sh: New file.
47150         * tests/test-link.c: New file.
47151
47152 2009-01-19  Eric Blake  <ebb9@byu.net>
47153
47154         doc: mention another function added in cygwin 1.7.0
47155         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47156         Another new function in cygwin 1.7.
47157
47158 2009-01-19  Bruno Haible  <bruno@clisp.org>
47159
47160         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47161         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47162         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47163         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47164         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47165         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47166         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47167         * m4/md4.m4 (gl_MD4): Likewise.
47168         * m4/md5.m4 (gl_MD5): Likewise.
47169         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47170         * m4/sha1.m4 (gl_SHA1): Likewise.
47171         * m4/sha256.m4 (gl_SHA256): Likewise.
47172         * m4/sha512.m4 (gl_SHA512): Likewise.
47173
47174 2009-01-19  Bruno Haible  <bruno@clisp.org>
47175
47176         * modules/uniname/uniname-tests (Depends-on): Add progname.
47177         * tests/uniname/test-uninames.c: Include progname.h.
47178         (main): Call set_program_name.
47179
47180         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47181         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47182         (main): Call set_program_name.
47183
47184         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47185         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47186         (main): Call set_program_name.
47187
47188         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47189         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47190         (main): Call set_program_name.
47191
47192         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47193         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47194         (main): Call set_program_name.
47195
47196         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47197         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47198         (main): Call set_program_name.
47199
47200         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47201         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47202         (main): Call set_program_name.
47203
47204         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47205         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47206         (main): Call set_program_name.
47207
47208         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47209         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47210         (main): Call set_program_name.
47211
47212 2009-01-19  Eric Blake  <ebb9@byu.net>
47213
47214         test-unistd: test previous patch
47215         * tests/test-unistd.c: Test *_FILENO macros.
47216
47217         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47218         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47219         Guarantee a definition.
47220         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47221         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47222         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47223         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47224         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47225         Likewise.
47226         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47227         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47228         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47229         Likewise.
47230         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47231         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47232         (STDERR_FILENO): Likewise.
47233         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47234         (STDERR_FILENO): Likewise.
47235         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47236         (STDERR_FILENO): Likewise.
47237         Reported by Elbert Pol.
47238
47239 2009-01-19  Eric Blake  <ebb9@byu.net>
47240
47241         doc: mention more functions added in cygwin 1.7.0
47242         * doc/posix-functions/abort.texi (abort): Update wording related
47243         to cygwin.
47244         * doc/posix-functions/daylight.texi (daylight): Likewise.
47245         * doc/posix-functions/optarg.texi (optarg): Likewise.
47246         * doc/posix-functions/optarg.texi (opterr): Likewise.
47247         * doc/posix-functions/optarg.texi (optind): Likewise.
47248         * doc/posix-functions/optarg.texi (optopt): Likewise.
47249         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47250         worked in 1.5.x, and was withdrawn in 1.7.
47251         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47252         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47253         cygwin versions.
47254         * doc/posix-functions/perror.texi (perror): Likewise.
47255         * doc/posix-functions/printf.texi (printf): Likewise.
47256         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47257         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47258         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47259         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47260         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47261         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47262         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47263         Likewise.
47264         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47265         Likewise.
47266         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47267         this function.
47268         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47269         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47270         Likewise.
47271         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47272         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47273         * doc/posix-functions/confstr.texi (confstr): Likewise.
47274         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47275         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47276         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47277         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47278         * doc/posix-functions/fputws.texi (fputws): Likewise.
47279         * doc/posix-functions/fwide.texi (fwide): Likewise.
47280         * doc/posix-functions/getwc.texi (getwc): Likewise.
47281         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47282         * doc/posix-functions/putwc.texi (putwc): Likewise.
47283         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47284         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47285         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47286         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47287         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47288         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47289         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47290         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47291         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47292         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47293         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47294
47295 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47296
47297         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47298         * lib/ioctl.c: Include <sys/ioctl.h>.
47299
47300 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47301
47302         * modules/getdate-tests (Depends-on): Add progname.
47303         * tests/test-getdate.c: Use progname module, to avoid link errors
47304         on non-glibc systems.
47305
47306 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47307
47308         * modules/filenamecat-tests (Depends-on): Add progname.
47309         * modules/fstrcmp-tests (Depends-on): Likewise.
47310
47311         * tests/test-filenamecat.c: Use progname module, to avoid link
47312         errors on non-glibc systems.
47313         * tests/test-fstrcmp.c: Likewise.
47314
47315 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47316
47317         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47318         * lib/gettimeofday.c: Move extern declaration out of function.
47319
47320 2009-01-18  Bruno Haible  <bruno@clisp.org>
47321
47322         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47323         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47324         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47325
47326 2009-01-18  Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/strftime.c (MEMPCPY): Remove unused macro.
47329         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47330
47331 2009-01-18  Martin Lambers  <marlam@marlam.de>
47332
47333         New module 'link'.
47334         * lib/unistd.in.h (link): New declaration.
47335         * lib/link.c: New file.
47336         * m4/link.m4: New file.
47337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47338         HAVE_LINK.
47339         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47340         * modules/link: New file.
47341         * doc/posix-functions/link.texi: Mention the new module.
47342
47343 2009-01-18  Bruno Haible  <bruno@clisp.org>
47344
47345         * tests/test-avltree_list.c (main): Call set_program_name.
47346         * tests/test-avltree_oset.c (main): Likewise.
47347         * tests/test-obstack-printf.c: Include progname.h.
47348         (main): Call set_program_name.
47349         * tests/test-quotearg.c: Include progname.h.
47350         (main): Call set_program_name.
47351         * tests/test-xmemdup0.c: Include progname.h.
47352         (main): Call set_program_name.
47353
47354 2009-01-18  Bruno Haible  <bruno@clisp.org>
47355
47356         New module 'alphasort'.
47357         * lib/dirent.in.h (alphasort): New declaration.
47358         * lib/alphasort.c: New file, from glibc with modifications.
47359         * m4/alphasort.m4: New file.
47360         * modules/alphasort: New file.
47361         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47362         HAVE_ALPHASORT.
47363         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47364         HAVE_ALPHASORT.
47365         * doc/posix-functions/alphasort.texi: Mention the new module and the
47366         portability problems.
47367
47368 2009-01-18  Bruno Haible  <bruno@clisp.org>
47369
47370         New module 'scandir'.
47371         * lib/dirent.in.h (scandir): New declaration.
47372         * lib/scandir.c: New file, from glibc with modifications.
47373         * m4/scandir.m4: New file.
47374         * modules/scandir: New file.
47375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47376         HAVE_SCANDIR.
47377         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47378         HAVE_SCANDIR.
47379         * doc/posix-functions/scandir.texi: Mention the new module and the
47380         portability problems.
47381
47382 2009-01-17  Bruno Haible  <bruno@clisp.org>
47383
47384         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47385         Update documentation.
47386         (func_remove_suffix): Escape all dots in the suffix. Update
47387         documentation.
47388         (func_filter_filelist): Update documentation.
47389         Reported by Ralf Wildenhues.
47390
47391 2009-01-17  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/dprintf-posix-tests: New file.
47394         * tests/test-dprintf-posix.sh: New file.
47395         * tests/test-dprintf-posix.c: New file.
47396
47397         New modules 'dprintf', 'dprintf-posix'.
47398         * lib/stdio.in.h (dprintf): New declaration.
47399         * lib/dprintf.c: New file.
47400         * m4/dprintf.m4: New file.
47401         * m4/dprintf-posix.m4: New file.
47402         * modules/dprintf: New file.
47403         * modules/dprintf-posix: New file.
47404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47405         HAVE_DPRINTF, REPLACE_DPRINTF.
47406         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47407         HAVE_DPRINTF, REPLACE_DPRINTF.
47408         * doc/posix-functions/dprintf.texi: Mention the new modules.
47409
47410 2009-01-17  Bruno Haible  <bruno@clisp.org>
47411
47412         * modules/vdprintf-posix-tests: New file.
47413         * tests/test-vdprintf-posix.sh: New file.
47414         * tests/test-vdprintf-posix.c: New file.
47415
47416         New modules 'vdprintf', 'vdprintf-posix'.
47417         * lib/stdio.in.h (vdprintf): New declaration.
47418         * lib/vdprintf.c: New file.
47419         * m4/vdprintf.m4: New file.
47420         * m4/vdprintf-posix.m4: New file.
47421         * modules/vdprintf: New file.
47422         * modules/vdprintf-posix: New file.
47423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47424         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47425         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47426         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47427         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47428
47429 2009-01-17  Bruno Haible  <bruno@clisp.org>
47430
47431         Fix replacement of fopen on mingw.
47432         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47433         mingw.
47434
47435 2009-01-17  Bruno Haible  <bruno@clisp.org>
47436
47437         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47438         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47439
47440 2009-01-17  Bruno Haible  <bruno@clisp.org>
47441
47442         Avoid test-fflush2.sh failure on mingw.
47443         * tests/test-fflush2.c: Include binary-io.h.
47444         (main): Put standard input into binary mode.
47445         * modules/fflush-tests (Depends-on): Add binary-io.
47446
47447 2009-01-17  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/wchar.in.h: In another particular situation, include only the
47450         system's <wchar.h> file.
47451         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47452         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47453         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47454
47455 2009-01-17  Bruno Haible  <bruno@clisp.org>
47456
47457         Support for stripping executables in --enable-relocatable.
47458         * build-aux/install-reloc: Expect one more argument, or an environment
47459         variable RELOC_STRIP_PROG. If set, strip the destination program and
47460         its wrapper.
47461         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47462         RELOC_STRIP_PROG.
47463         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47464         to set RELOCATABLE_STRIP.
47465         * NEWS: Mention the new Makefile requirement.
47466
47467 2009-01-17  Bruno Haible  <bruno@clisp.org>
47468
47469         * build-aux/install-reloc: Remove debugging information left over by
47470         C compiler on MacOS X.
47471
47472 2009-01-17  Bruno Haible  <bruno@clisp.org>
47473
47474         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47475         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47476         _NSGetExecutablePath.
47477
47478 2009-01-16  Jim Meyering  <meyering@redhat.com>
47479
47480         strerror: avoid warnings about discarding "const"
47481         * lib/strerror.c (rpl_strerror): Instead of returning a const
47482         string from each and every "case", use a variable, and add a single
47483         cast after the switch.
47484
47485 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47486
47487         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47488
47489 2009-01-16  Bruno Haible  <bruno@clisp.org>
47490
47491         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47492         array initializer syntax that also works in C++ mode.
47493         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47494
47495 2009-01-16  Jim Meyering  <meyering@redhat.com>
47496
47497         poll: suppress a warning
47498         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47499         to ignore "...unsigned expression < 0 is always false" warnings.
47500
47501 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47502
47503         poll: remove declarations of unused variables
47504         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47505         sockbuf and optlen.
47506
47507 2009-01-15  Bruno Haible  <bruno@clisp.org>
47508
47509         Make fflush-after-ungetc POSIX compliant on BSD systems.
47510         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47511         (clear_ungetc_buffer): Implement also for other systems.
47512         (rpl_fflush): On glibc systems, invoke
47513         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47514         clear_ungetc_buffer after fetching the stream's position, not before.
47515
47516 2009-01-15  Bruno Haible  <bruno@clisp.org>
47517
47518         Make fflush-after-ungetc POSIX compliant on glibc systems.
47519         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47520         after ungetc.
47521         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47522         (rpl_fflush): On glibc systems, simply call the system's fflush
47523         function after clearing the ungetc buffer.
47524         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47525         Instead, lseek only to the end of file, then use the system's fseeko
47526         for the rest. On glibc systems, reset the EOF indicator bit.
47527
47528 2009-01-15  Jim Meyering  <meyering@redhat.com>
47529
47530         openmp.m4: revert quote-adding change, for portability to older autoconf
47531         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47532         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47533         Simon Josefsson noticed the problem when using autoconf-2.61.
47534
47535 2009-01-15  Bruno Haible  <bruno@clisp.org>
47536
47537         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47538         * tests/test-fflush2.c (ASSERT): Always fail.
47539         (main): Add two tests for fflush() after ungetc(), taking into account
47540         the Austin Group's clarification.
47541         Suggested by Eric Blake.
47542
47543 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47544
47545         mktime.m4: remove K&R-style function prototypes
47546         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47547         for the Sun C++ compiler.
47548
47549 2009-01-14  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47552         while including <wchar.h>.
47553         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47554         the system's <wchar.h> file.
47555         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47556
47557 2009-01-14  Bruno Haible  <bruno@clisp.org>
47558
47559         * m4/csharp.m4: Don't mention gettext on the serial number line.
47560         * m4/csharpexec.m4: Likewise.
47561         * m4/eaccess.m4: Likewise.
47562         * m4/javaexec.m4: Likewise.
47563         * m4/sig_atomic_t.m4: Likewise.
47564         * m4/tmpdir.m4: Likewise.
47565         * m4/intldir.m4: Bump gettext version.
47566         * m4/lib-ld.m4: Likewise.
47567
47568 2009-01-14  Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/progname.c (set_program_name): Add more comments.
47571         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47572
47573 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47574
47575         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47576         were sys/stat.h does not define it.
47577
47578 2009-01-14  Jim Meyering  <meyering@redhat.com>
47579
47580         many *.m4 files: improve m4 quoting
47581         99% of this change was performed by running the following commands:
47582         git ls-files | grep '\.m4$' | xargs perl -pi \
47583           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47584           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47585           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47586           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47587         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47588         The remainder were to add Copyright dates, increment serial numbers,
47589         undo some changes in comments, exclude m4/intl.m4, and add quotes
47590         around the "1" in ",1" where the unusual spacing prohibited the
47591         above regexps from doing the job.  For more details, see
47592         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47593         * m4/acl.m4: Modified.
47594         * m4/afs.m4: Likewise.
47595         * m4/alloca.m4: Likewise.
47596         * m4/argp.m4: Likewise.
47597         * m4/argz.m4: Likewise.
47598         * m4/atexit.m4: Likewise.
47599         * m4/bison-i18n.m4: Likewise.
47600         * m4/bison.m4: Likewise.
47601         * m4/byteswap.m4: Likewise.
47602         * m4/c-stack.m4: Likewise.
47603         * m4/c-strtod.m4: Likewise.
47604         * m4/calloc.m4: Likewise.
47605         * m4/canonicalize-lgpl.m4: Likewise.
47606         * m4/chown.m4: Likewise.
47607         * m4/clock_time.m4: Likewise.
47608         * m4/codeset.m4: Likewise.
47609         * m4/copy-file.m4: Likewise.
47610         * m4/csharp.m4: Likewise.
47611         * m4/csharpcomp.m4: Likewise.
47612         * m4/csharpexec.m4: Likewise.
47613         * m4/d-ino.m4: Likewise.
47614         * m4/d-type.m4: Likewise.
47615         * m4/dirfd.m4: Likewise.
47616         * m4/double-slash-root.m4: Likewise.
47617         * m4/eaccess.m4: Likewise.
47618         * m4/eealloc.m4: Likewise.
47619         * m4/environ.m4: Likewise.
47620         * m4/errno_h.m4: Likewise.
47621         * m4/euidaccess.m4: Likewise.
47622         * m4/execute.m4: Likewise.
47623         * m4/fatal-signal.m4: Likewise.
47624         * m4/fchdir.m4: Likewise.
47625         * m4/fcntl_h.m4: Likewise.
47626         * m4/fileblocks.m4: Likewise.
47627         * m4/filenamecat.m4: Likewise.
47628         * m4/findprog.m4: Likewise.
47629         * m4/flexmember.m4: Likewise.
47630         * m4/fnmatch.m4: Likewise.
47631         * m4/fopen.m4: Likewise.
47632         * m4/fpending.m4: Likewise.
47633         * m4/fprintf-posix.m4: Likewise.
47634         * m4/free.m4: Likewise.
47635         * m4/frexp.m4: Likewise.
47636         * m4/frexpl.m4: Likewise.
47637         * m4/fsusage.m4: Likewise.
47638         * m4/ftruncate.m4: Likewise.
47639         * m4/gc-camellia.m4: Likewise.
47640         * m4/gc-random.m4: Likewise.
47641         * m4/gc.m4: Likewise.
47642         * m4/getaddrinfo.m4: Likewise.
47643         * m4/getcwd-abort-bug.m4: Likewise.
47644         * m4/getcwd-path-max.m4: Likewise.
47645         * m4/getdate.m4: Likewise.
47646         * m4/getdomainname.m4: Likewise.
47647         * m4/getgroups.m4: Likewise.
47648         * m4/gethostname.m4: Likewise.
47649         * m4/gethrxtime.m4: Likewise.
47650         * m4/getline.m4: Likewise.
47651         * m4/getloadavg.m4: Likewise.
47652         * m4/getndelim2.m4: Likewise.
47653         * m4/getpass.m4: Likewise.
47654         * m4/gettext.m4: Likewise.
47655         * m4/gettime.m4: Likewise.
47656         * m4/gettimeofday.m4: Likewise.
47657         * m4/gnulib-common.m4: Likewise.
47658         * m4/group-member.m4: Likewise.
47659         * m4/host-os.m4: Likewise.
47660         * m4/iconv.m4: Likewise.
47661         * m4/iconv_open.m4: Likewise.
47662         * m4/inet_ntop.m4: Likewise.
47663         * m4/inet_pton.m4: Likewise.
47664         * m4/inline.m4: Likewise.
47665         * m4/intldir.m4: Likewise.
47666         * m4/intlmacosx.m4: Likewise.
47667         * m4/intmax.m4: Likewise.
47668         * m4/intmax_t.m4: Likewise.
47669         * m4/inttypes.m4: Likewise.
47670         * m4/inttypes_h.m4: Likewise.
47671         * m4/inttypes-pri.m4: Likewise.
47672         * m4/isapipe.m4: Likewise.
47673         * m4/isnand.m4: Likewise.
47674         * m4/isnanf.m4: Likewise.
47675         * m4/isnanl.m4: Likewise.
47676         * m4/javacomp.m4: Likewise.
47677         * m4/javaexec.m4: Likewise.
47678         * m4/jm-winsz1.m4: Likewise.
47679         * m4/jm-winsz2.m4: Likewise.
47680         * m4/lchown.m4: Likewise.
47681         * m4/lcmessage.m4: Likewise.
47682         * m4/ldexpl.m4: Likewise.
47683         * m4/lib-ld.m4: Likewise.
47684         * m4/lib-link.m4: Likewise.
47685         * m4/libsigsegv.m4: Likewise.
47686         * m4/link-follow.m4: Likewise.
47687         * m4/localcharset.m4: Likewise.
47688         * m4/locale-fr.m4: Likewise.
47689         * m4/locale-ja.m4: Likewise.
47690         * m4/locale-tr.m4: Likewise.
47691         * m4/locale-zh.m4: Likewise.
47692         * m4/lock.m4: Likewise.
47693         * m4/longlong.m4: Likewise.
47694         * m4/ls-mntd-fs.m4: Likewise.
47695         * m4/lstat.m4: Likewise.
47696         * m4/malloc.m4: Likewise.
47697         * m4/mathl.m4: Likewise.
47698         * m4/mbrtowc.m4: Likewise.
47699         * m4/mbstate_t.m4: Likewise.
47700         * m4/mbswidth.m4: Likewise.
47701         * m4/memchr.m4: Likewise.
47702         * m4/memcmp.m4: Likewise.
47703         * m4/memcpy.m4: Likewise.
47704         * m4/memmem.m4: Likewise.
47705         * m4/memmove.m4: Likewise.
47706         * m4/mempcpy.m4: Likewise.
47707         * m4/memrchr.m4: Likewise.
47708         * m4/memset.m4: Likewise.
47709         * m4/minmax.m4: Likewise.
47710         * m4/mkdir-slash.m4: Likewise.
47711         * m4/mkdtemp.m4: Likewise.
47712         * m4/mktime.m4: Likewise.
47713         * m4/mmap-anon.m4: Likewise.
47714         * m4/mountlist.m4: Likewise.
47715         * m4/nanosleep.m4: Likewise.
47716         * m4/nls.m4: Likewise.
47717         * m4/nocrash.m4: Likewise.
47718         * m4/open.m4: Likewise.
47719         * m4/openat.m4: Likewise.
47720         * m4/openmp.m4: Likewise.
47721         * m4/pathmax.m4: Likewise.
47722         * m4/perl.m4: Likewise.
47723         * m4/physmem.m4: Likewise.
47724         * m4/pipe.m4: Likewise.
47725         * m4/po.m4: Likewise.
47726         * m4/poll.m4: Likewise.
47727         * m4/posixtm.m4: Likewise.
47728         * m4/posixver.m4: Likewise.
47729         * m4/printf-frexp.m4: Likewise.
47730         * m4/printf-frexpl.m4: Likewise.
47731         * m4/printf-posix.m4: Likewise.
47732         * m4/printf-posix-rpl.m4: Likewise.
47733         * m4/printf.m4: Likewise.
47734         * m4/progtest.m4: Likewise.
47735         * m4/putenv.m4: Likewise.
47736         * m4/readline.m4: Likewise.
47737         * m4/readlink.m4: Likewise.
47738         * m4/readutmp.m4: Likewise.
47739         * m4/realloc.m4: Likewise.
47740         * m4/regex.m4: Likewise.
47741         * m4/relocatable.m4: Likewise.
47742         * m4/relocatable-lib.m4: Likewise.
47743         * m4/rename-dest-slash.m4: Likewise.
47744         * m4/rename.m4: Likewise.
47745         * m4/rmdir-errno.m4: Likewise.
47746         * m4/rmdir.m4: Likewise.
47747         * m4/roundf.m4: Likewise.
47748         * m4/roundl.m4: Likewise.
47749         * m4/rpmatch.m4: Likewise.
47750         * m4/save-cwd.m4: Likewise.
47751         * m4/selinux-selinux-h.m4: Likewise.
47752         * m4/setenv.m4: Likewise.
47753         * m4/settime.m4: Likewise.
47754         * m4/sig2str.m4: Likewise.
47755         * m4/sig_atomic_t.m4: Likewise.
47756         * m4/signalblocking.m4: Likewise.
47757         * m4/signbit.m4: Likewise.
47758         * m4/sigpipe.m4: Likewise.
47759         * m4/sockets.m4: Likewise.
47760         * m4/sockpfaf.m4: Likewise.
47761         * m4/st_dm_mode.m4: Likewise.
47762         * m4/stat-time.m4: Likewise.
47763         * m4/stdbool.m4: Likewise.
47764         * m4/stdint.m4: Likewise.
47765         * m4/stdint_h.m4: Likewise.
47766         * m4/stpcpy.m4: Likewise.
47767         * m4/stpncpy.m4: Likewise.
47768         * m4/strcase.m4: Likewise.
47769         * m4/strchrnul.m4: Likewise.
47770         * m4/strcspn.m4: Likewise.
47771         * m4/strdup.m4: Likewise.
47772         * m4/strftime.m4: Likewise.
47773         * m4/strndup.m4: Likewise.
47774         * m4/strnlen.m4: Likewise.
47775         * m4/strpbrk.m4: Likewise.
47776         * m4/strptime.m4: Likewise.
47777         * m4/strsep.m4: Likewise.
47778         * m4/strtod.m4: Likewise.
47779         * m4/strtoimax.m4: Likewise.
47780         * m4/strtok_r.m4: Likewise.
47781         * m4/strtol.m4: Likewise.
47782         * m4/strtoll.m4: Likewise.
47783         * m4/strtoul.m4: Likewise.
47784         * m4/strtoull.m4: Likewise.
47785         * m4/strtoumax.m4: Likewise.
47786         * m4/strverscmp.m4: Likewise.
47787         * m4/threadlib.m4: Likewise.
47788         * m4/timegm.m4: Likewise.
47789         * m4/tm_gmtoff.m4: Likewise.
47790         * m4/tmpdir.m4: Likewise.
47791         * m4/tmpfile.m4: Likewise.
47792         * m4/tzset.m4: Likewise.
47793         * m4/uintmax_t.m4: Likewise.
47794         * m4/unlinkdir.m4: Likewise.
47795         * m4/unlocked-io.m4: Likewise.
47796         * m4/uptime.m4: Likewise.
47797         * m4/userspec.m4: Likewise.
47798         * m4/utimbuf.m4: Likewise.
47799         * m4/utime.m4: Likewise.
47800         * m4/utimes-null.m4: Likewise.
47801         * m4/utimes.m4: Likewise.
47802         * m4/vararrays.m4: Likewise.
47803         * m4/vasnprintf.m4: Likewise.
47804         * m4/vfprintf-posix.m4: Likewise.
47805         * m4/vprintf-posix.m4: Likewise.
47806         * m4/wait-process.m4: Likewise.
47807         * m4/wchar_t.m4: Likewise.
47808         * m4/wint_t.m4: Likewise.
47809         * m4/write-any-file.m4: Likewise.
47810         * m4/yield.m4: Likewise.
47811
47812 2009-01-13  Bruno Haible  <bruno@clisp.org>
47813
47814         Avoid test-copy-file.sh failures when ACL support insufficient.
47815         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47816         TESTS_ENVIRONMENT.
47817         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47818         Reported by Jim Meyering.
47819
47820 2009-01-13  Bruno Haible  <bruno@clisp.org>
47821
47822         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47823         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47824         * modules/unistdio/u8-printf-parse (Files): Likewise.
47825         * modules/unistdio/u32-printf-parse (Files): Likewise.
47826         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47827
47828 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47829
47830         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47831         and m4/inttypes_h.m4 too.
47832
47833 2009-01-12  Eric Blake  <ebb9@byu.net>
47834
47835         tests: IRIX 6.2 cc can't compile -0.0 into .data
47836         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47837         rather than at compile-time.
47838         * tests/test-floorl.c (minus_zero): Likewise.
47839         * tests/test-frexpl.c (minus_zero): Likewise.
47840         * tests/test-isnan.c (minus_zerol): Likewise.
47841         * tests/test-isnanl.h (minus_zero): Likewise.
47842         * tests/test-ldexpl.c (minus_zero): Likewise.
47843         * tests/test-roundl.c (minus_zero): Likewise.
47844         * tests/test-signbit.c (minus_zerol): Likewise.
47845         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47846         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47847         * tests/test-truncl.c (minus_zero): Likewise.
47848         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47849         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47850         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47851
47852 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47853
47854         regex: fix glibc bug 9697
47855         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47856         handling.
47857
47858 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47859
47860         regex: fix glibc bug 697
47861         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47862         being NULL also if there are no backreferences.
47863
47864 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47865
47866         regex: merge glibc changes
47867         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47868         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47869         re_string_skip_chars, re_string_reconstruct): Likewise.
47870         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47871
47872 2009-01-07  Jim Meyering  <meyering@redhat.com>
47873
47874         poll: filter through cppi
47875         * lib/poll.c: Indent cpp directives to reflect nesting.
47876
47877 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47878
47879         poll: don't return uninitialized
47880         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47881
47882 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47883
47884         avoid compile failure on AIX 6.1
47885         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47886         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47887
47888 2009-01-04  Jim Meyering  <meyering@redhat.com>
47889
47890         remove duplicate inclusion of <stdio.h>
47891         * tests/test-fprintf-posix.c: Likewise.
47892         * tests/test-printf-posix.c: Likewise.
47893         * tests/test-snprintf-posix.c: Likewise.
47894         * tests/test-sprintf-posix.c: Likewise.
47895         * tests/test-vasprintf-posix.c: Likewise.
47896         * tests/test-vfprintf-posix.c: Likewise.
47897         * tests/test-vprintf-posix.c: Likewise.
47898         * tests/test-vsnprintf-posix.c: Likewise.
47899         * tests/test-vsprintf-posix.c: Likewise.
47900
47901 2009-01-03  Jim Meyering  <meyering@redhat.com>
47902
47903         gnulib-tool: fix sed-based filtering
47904         * gnulib-tool (func_filter_filelist): Remove extra backslash
47905         in sed_fff_filter definition.
47906
47907 2009-01-02  Jim Meyering  <meyering@redhat.com>
47908
47909         strftime: avoid compilation failure on Solaris 2.6
47910         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47911         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47912         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47913         be available.  Reported by Tom G. Christensen.  Details in
47914         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47915
47916 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47917             Bruno Haible  <bruno@clisp.org>
47918
47919         Speed up gnulib-tool by doing more string processing through shell
47920         built-ins.
47921         * gnulib-tool (fast_func_append): New variable.
47922         (func_remove_prefix, func_remove_suffix): New functions.
47923         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47924         (func_filter_filelist): New function.
47925         (func_get_dependencies): Use func_remove_suffix instead of sed.
47926         (func_get_automake_snippet): Use func_filter_filelist instead of a
47927         subshell and sed invocation.
47928
47929 2009-01-01  Bruno Haible  <bruno@clisp.org>
47930
47931         Fix a security bug.
47932         * gnulib-tool (func_import, import, update): Don't allow the characters
47933         '"', '$', '`', '\' in macro arguments that become part of commands that
47934         are evaluated.
47935
47936 2009-01-01  Bruno Haible  <bruno@clisp.org>
47937
47938         * gnulib-tool (func_reset_sigpipe): Add more comments.
47939
47940 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47941
47942         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47943         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47944         already know the answer.
47945
47946 2009-01-01  Jim Meyering  <meyering@redhat.com>
47947
47948         * lib/version-etc.c (version_etc_va): Update copyright year.
47949
47950 2008-12-30  Bruno Haible  <bruno@clisp.org>
47951
47952         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47953         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47954         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47955
47956 2008-12-29  Eric Blake  <ebb9@byu.net>
47957
47958         multiarch: avoid autoconf AC_REQUIRE bug
47959         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47960         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47961         2.63 and older.
47962         Reported by Bruno Haible, and analyzed in
47963         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47964
47965 2008-12-29  Bruno Haible  <bruno@clisp.org>
47966
47967         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47968         files in subdirectories correctly.
47969         Reported by Ralf Wildenhues.
47970
47971 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47972
47973         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47974         rather than 'join FILE -', for Solaris join.
47975
47976 2008-12-29  Bruno Haible  <bruno@clisp.org>
47977
47978         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47979         quoting.
47980         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47981         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47982         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47983         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47984         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47985         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47986         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47987         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47988         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47989         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47990         * m4/nls.m4 (AM_NLS): Likewise.
47991         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47992         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47993         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47994         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47995         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47996         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47997         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47998         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47999         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48000         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48001         * m4/xsize.m4 (gl_XSIZE): Likewise.
48002         Suggested by Jim Meyering.
48003
48004 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48005
48006         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48007         * lib/parse-duration.c: use a switch instead of cascading if's.
48008
48009 2008-12-29  Eric Blake  <ebb9@byu.net>
48010
48011         wchar.h: supply WEOF on Irix 5.3
48012         * lib/wchar.in.h (wint_t): Also supply WEOF.
48013         * lib/wctype.in.h (wint_t): Likewise.
48014         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48015         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48016         Reported by Tom G. Christensen.
48017
48018 2008-12-26  Bruno Haible  <bruno@clisp.org>
48019
48020         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48021         i486, i586, i686.
48022
48023 2008-12-26  Bruno Haible  <bruno@clisp.org>
48024
48025         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48026
48027 2008-12-26  Bruno Haible  <bruno@clisp.org>
48028
48029         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48030         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48031         not __STDC_CONSTANT_MACROS.
48032         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48033
48034 2008-12-25  Bruno Haible  <bruno@clisp.org>
48035
48036         Add support for universal builds to vasnprintf.
48037         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48038         universal builds, guess no.
48039         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48040         * modules/vasprintf-posix (Depends-on): Likewise.
48041         * modules/fprintf-posix (Depends-on): Likewise.
48042         * modules/vfprintf-posix (Depends-on): Likewise.
48043         * modules/snprintf-posix (Depends-on): Likewise.
48044         * modules/vsnprintf-posix (Depends-on): Likewise.
48045         * modules/sprintf-posix (Depends-on): Likewise.
48046         * modules/vsprintf-posix (Depends-on): Likewise.
48047         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48048         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48049         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48050         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48051         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48052         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48053         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48054
48055         Add support for universal builds to <inttypes.h>.
48056         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48057         _SCNu64_PREFIX): In Apple
48058         universal builds, define directly, using _LP64.
48059         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48060         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48061         * modules/inttypes (Depends-on): Add multiarch.
48062         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48063
48064         Add support for universal builds to <stdint.h>.
48065         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48066         universal builds, define directly, using _LP64.
48067         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48068         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48069         and size_t.
48070         * modules/stdint (Depends-on): Add multiarch.
48071         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48072
48073         New module 'multiarch'.
48074         * modules/multiarch: New file.
48075         * m4/multiarch.m4: New file.
48076
48077 2008-12-25  Bruno Haible  <bruno@clisp.org>
48078
48079         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48080
48081 2008-12-25  Bruno Haible  <bruno@clisp.org>
48082
48083         * modules/btowc (License): Relicense under LGPLv2+.
48084         * modules/mbsinit (License): Likewise.
48085         * modules/mbrtowc (License): Likewise.
48086         * modules/wcrtomb (License): Likewise.
48087         * modules/streq (License): Likewise.
48088         Reported by David Lutterkort <lutter@redhat.com>.
48089
48090 2008-12-23  Bruno Haible  <bruno@clisp.org>
48091
48092         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48093
48094 2008-12-23  Bruno Haible  <bruno@clisp.org>
48095
48096         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48098         GETADDRINFO_LIB, not in LIBS.
48099         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48100         * modules/canon-host (Link): Likewise.
48101         * NEWS: Mention the change.
48102         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48103         GETADDRINFO_LIB.
48104
48105 2008-12-22  Bruno Haible  <bruno@clisp.org>
48106
48107         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48108         * doc/posix-functions/iswalpha_l.texi: Likewise.
48109         * doc/posix-functions/iswblank_l.texi: Likewise.
48110         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48111         * doc/posix-functions/iswctype_l.texi: Likewise.
48112         * doc/posix-functions/iswdigit_l.texi: Likewise.
48113         * doc/posix-functions/iswgraph_l.texi: Likewise.
48114         * doc/posix-functions/iswlower_l.texi: Likewise.
48115         * doc/posix-functions/iswprint_l.texi: Likewise.
48116         * doc/posix-functions/iswpunct_l.texi: Likewise.
48117         * doc/posix-functions/iswspace_l.texi: Likewise.
48118         * doc/posix-functions/iswupper_l.texi: Likewise.
48119         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48120         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48121         * doc/posix-functions/open_wmemstream.texi: Likewise.
48122         * doc/posix-functions/swscanf.texi: Likewise.
48123         * doc/posix-functions/towctrans_l.texi: Likewise.
48124         * doc/posix-functions/towlower.texi: Likewise.
48125         * doc/posix-functions/towlower_l.texi: Likewise.
48126         * doc/posix-functions/towupper.texi: Likewise.
48127         * doc/posix-functions/towupper_l.texi: Likewise.
48128         * doc/posix-functions/vfwprintf.texi: Likewise.
48129         * doc/posix-functions/vfwscanf.texi: Likewise.
48130         * doc/posix-functions/vswscanf.texi: Likewise.
48131         * doc/posix-functions/vwprintf.texi: Likewise.
48132         * doc/posix-functions/vwscanf.texi: Likewise.
48133         * doc/posix-functions/wcpcpy.texi: Likewise.
48134         * doc/posix-functions/wcpncpy.texi: Likewise.
48135         * doc/posix-functions/wcscasecmp.texi: Likewise.
48136         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48137         * doc/posix-functions/wcscoll_l.texi: Likewise.
48138         * doc/posix-functions/wcsdup.texi: Likewise.
48139         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48140         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48141         * doc/posix-functions/wcsnlen.texi: Likewise.
48142         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48143         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48144         * doc/posix-functions/wctrans_l.texi: Likewise.
48145         * doc/posix-functions/wctype_l.texi: Likewise.
48146         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48147         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48148         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48149         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48150         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48151         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48152         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48153         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48154         * doc/glibc-functions/wcschrnul.texi: Likewise.
48155         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48156         * doc/glibc-functions/wcstod_l.texi: Likewise.
48157         * doc/glibc-functions/wcstof_l.texi: Likewise.
48158         * doc/glibc-functions/wcstol_l.texi: Likewise.
48159         * doc/glibc-functions/wcstold_l.texi: Likewise.
48160         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48161         * doc/glibc-functions/wcstoq.texi: Likewise.
48162         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48163         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48164         * doc/glibc-functions/wcstouq.texi: Likewise.
48165         * doc/glibc-functions/wmempcpy.texi: Likewise.
48166
48167 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48168             Eric Blake  <ebb9@byu.net>
48169             Paolo Bonzini  <bonzini@gnu.org>
48170             Bruno Haible  <bruno@clisp.org>
48171
48172         Make c-stack work on Haiku.
48173         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48174         (c_stack_action): Use SA_ONSTACK flag.
48175
48176 2008-12-22  Bruno Haible  <bruno@clisp.org>
48177
48178         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48179
48180 2008-12-22  Bruno Haible  <bruno@clisp.org>
48181
48182         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48183         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48184         being overridden.
48185         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48186         New macros.
48187         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48189         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48190         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48191
48192 2008-12-22  Bruno Haible  <bruno@clisp.org>
48193
48194         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48195         from test code.
48196
48197 2008-12-22  Eric Blake  <ebb9@byu.net>
48198
48199         Avoid gcc warnings on cygwin.
48200         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48201         Avoid unused variable.
48202         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48203         Likewise.
48204
48205 2008-12-22  Bruno Haible  <bruno@clisp.org>
48206
48207         Remove HAVE_MBRTOWC conditionals.
48208         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48209         (mbscasecmp): Assume mbrtowc function.
48210         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48211         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48212         * lib/mbschr.c: Include mbuiter.h unconditionally.
48213         (mbschr): Assume mbrtowc function.
48214         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48215         (mbscspn): Assume mbrtowc function.
48216         * lib/mbslen.c: Include mbuiter.h unconditionally.
48217         (mbslen): Assume mbrtowc function.
48218         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48219         (mbsncasecmp): Assume mbrtowc function.
48220         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48221         (mbsnlen): Assume mbrtowc function.
48222         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48223         (mbspbrk): Assume mbrtowc function.
48224         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48225         (mbspcasecmp): Assume mbrtowc function.
48226         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48227         (mbsrchr): Assume mbrtowc function.
48228         * lib/mbssep.c: Include mbuiter.h unconditionally.
48229         (mbssep): Assume mbrtowc function.
48230         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48231         (mbsspn): Assume mbrtowc function.
48232         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48233         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48234         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48235         (mbstok_r): Assume mbrtowc function.
48236         * lib/propername.c: Include mbuiter.h unconditionally.
48237         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48238         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48239         (trim2): Assume mbrtowc function.
48240         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48241         (mbsnwidth): Assume mbrtowc function.
48242         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48243         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48244         fallback definitions.
48245         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48246
48247 2008-12-22  Bruno Haible  <bruno@clisp.org>
48248
48249         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48250
48251 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48252
48253         * modules/regex: Request emulations for the mb*/wc* functions we need.
48254         * m4/regex.m4: Don't look for those functions here.
48255         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48256
48257 2008-12-22  Bruno Haible  <bruno@clisp.org>
48258
48259         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48260
48261 2008-12-21  Bruno Haible  <bruno@clisp.org>
48262
48263         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48264         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48265         (Include): Remove conditionalization.
48266         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48267         (Include): Remove conditionalization.
48268         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48269         (Include): Remove conditionalization.
48270         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48271         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48272         * NEWS: Mention the change.
48273         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48274         via Sergey Poznyakoff <gray@gnu.org.ua>.
48275
48276 2008-12-21  Bruno Haible  <bruno@clisp.org>
48277
48278         * MODULES.html.sh (Extended multibyte and wide character utilities
48279         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48280         wcrtomb, wcsrtombs.
48281         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48282         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48283         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48284         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48285
48286 2008-12-21  Bruno Haible  <bruno@clisp.org>
48287
48288         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48289
48290 2008-12-21  Bruno Haible  <bruno@clisp.org>
48291
48292         * modules/wcsnrtombs-tests: New file.
48293         * tests/test-wcsnrtombs1.sh: New file.
48294         * tests/test-wcsnrtombs2.sh: New file.
48295         * tests/test-wcsnrtombs3.sh: New file.
48296         * tests/test-wcsnrtombs4.sh: New file.
48297         * tests/test-wcsnrtombs.c: New file.
48298
48299         New module 'wcsnrtombs'.
48300         * lib/wchar.in.h (wcsnrtombs): New declaration.
48301         * lib/wcsnrtombs.c: New file.
48302         * lib/wcsrtombs-state.c: New file.
48303         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48304         (internal_state): Remove variable.
48305         * m4/wcsnrtombs.m4: New file.
48306         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48307         compilation units.
48308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48309         HAVE_WCSNRTOMBS.
48310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48311         HAVE_WCSNRTOMBS.
48312         * modules/wcsnrtombs: New file.
48313         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48314         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48315
48316 2008-12-21  Bruno Haible  <bruno@clisp.org>
48317
48318         * modules/wcsrtombs-tests: New file.
48319         * tests/test-wcsrtombs1.sh: New file.
48320         * tests/test-wcsrtombs2.sh: New file.
48321         * tests/test-wcsrtombs3.sh: New file.
48322         * tests/test-wcsrtombs4.sh: New file.
48323         * tests/test-wcsrtombs.c: New file.
48324
48325         New module 'wcsrtombs'.
48326         * lib/wchar.in.h (wcsrtombs): New declaration.
48327         * lib/wcsrtombs.c: New file.
48328         * m4/wcsrtombs.m4: New file.
48329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48330         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48332         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48333         * modules/wcsrtombs: New file.
48334         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48335         bugs.
48336
48337 2008-12-21  Bruno Haible  <bruno@clisp.org>
48338
48339         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48340         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48341         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48342         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48343         if not correct.
48344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48345         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48346         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48347         m4/locale-zh.m4, m4/codeset.m4.
48348         * doc/posix-functions/wcrtomb.texi: Document the bug.
48349
48350 2008-12-21  Bruno Haible  <bruno@clisp.org>
48351
48352         Work around a btowc() bug on IRIX 6.5.
48353         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48354         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48355         REPLACE_WTOBC if not.
48356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48357         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48358         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48359
48360 2008-12-21  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/wcrtomb-tests: New file.
48363         * tests/test-wcrtomb.sh: New file.
48364         * tests/test-wcrtomb.c: New file.
48365
48366         New module 'wcrtomb'.
48367         * lib/wchar.in.h (wcrtomb): New declaration.
48368         * lib/wcrtomb.c: New file.
48369         * m4/wcrtomb.m4: New file.
48370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48371         HAVE_WCRTOMB.
48372         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48373         HAVE_WCRTOMB.
48374         * modules/wcrtomb: New file.
48375         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48376
48377 2008-12-21  Bruno Haible  <bruno@clisp.org>
48378
48379         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48380         * modules/mbsrtowcs (Files): Likewise.
48381         * modules/wctob (Files): Likewise.
48382         * modules/c-strcase-tests (Files): Likewise.
48383         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48384         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48385         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48386         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48387         * modules/vasnprintf-posix-tests (Files): Likewise.
48388
48389 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48390
48391         gitlog-to-changelog: pass all command-line arguments to git-log
48392         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48393         it is sometimes convenient to filter the commits in various ways.
48394         gitlog-to-changelog only allows --since to specify a start date,
48395         but git-log itself supports many other filtering mechanisms.
48396         At the moment, I want to filter by branch name.  Rather than
48397         adding a --branch option to gitlog-to-changelog, it seems more
48398         flexible to simply pass all options directly to git-log and let
48399         git do the work.  Notice that this effectively makes --since a
48400         redundant option for gitlog-to-changelog, but removing it would
48401         require current usage to change since calls would then require
48402         an additional '--'.
48403
48404 2008-12-21  Bruno Haible  <bruno@clisp.org>
48405
48406         * modules/mbsnrtowcs-tests: New file.
48407         * tests/test-mbsnrtowcs1.sh: New file.
48408         * tests/test-mbsnrtowcs2.sh: New file.
48409         * tests/test-mbsnrtowcs3.sh: New file.
48410         * tests/test-mbsnrtowcs4.sh: New file.
48411         * tests/test-mbsnrtowcs.c: New file.
48412
48413         New module 'mbsnrtowcs'.
48414         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48415         * lib/mbsnrtowcs.c: New file.
48416         * lib/mbsrtowcs-state.c: New file.
48417         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48418         (internal_state): Remove variable.
48419         * m4/mbsnrtowcs.m4: New file.
48420         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48421         compilation units.
48422         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48423         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48424         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48425         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48426         * modules/mbsnrtowcs: New file.
48427         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48428         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48429         portability problem.
48430
48431 2008-12-21  Bruno Haible  <bruno@clisp.org>
48432
48433         Work around mbsrtowcs bug.
48434         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48435         (gl_FUNC_MBSRTOWCS): Invoke it.
48436         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48437         m4/locale-zh.m4.
48438         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48439
48440 2008-12-21  Bruno Haible  <bruno@clisp.org>
48441
48442         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48443
48444 2008-12-21  Bruno Haible  <bruno@clisp.org>
48445
48446         Update doc for AIX.
48447         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48448         16-bit wchar_t type.
48449         * doc/posix-functions/btowc.texi: Likewise.
48450         * doc/posix-functions/fgetwc.texi: Likewise.
48451         * doc/posix-functions/fgetws.texi: Likewise.
48452         * doc/posix-functions/fputwc.texi: Likewise.
48453         * doc/posix-functions/fputws.texi: Likewise.
48454         * doc/posix-functions/fwide.texi: Likewise.
48455         * doc/posix-functions/fwprintf.texi: Likewise.
48456         * doc/posix-functions/fwscanf.texi: Likewise.
48457         * doc/posix-functions/getwchar.texi: Likewise.
48458         * doc/posix-functions/getwc.texi: Likewise.
48459         * doc/posix-functions/iswalnum.texi: Likewise.
48460         * doc/posix-functions/iswalpha.texi: Likewise.
48461         * doc/posix-functions/iswblank.texi: Likewise.
48462         * doc/posix-functions/iswcntrl.texi: Likewise.
48463         * doc/posix-functions/iswctype.texi: Likewise.
48464         * doc/posix-functions/iswdigit.texi: Likewise.
48465         * doc/posix-functions/iswgraph.texi: Likewise.
48466         * doc/posix-functions/iswlower.texi: Likewise.
48467         * doc/posix-functions/iswprint.texi: Likewise.
48468         * doc/posix-functions/iswpunct.texi: Likewise.
48469         * doc/posix-functions/iswspace.texi: Likewise.
48470         * doc/posix-functions/iswupper.texi: Likewise.
48471         * doc/posix-functions/iswxdigit.texi: Likewise.
48472         * doc/posix-functions/mbrtowc.texi: Likewise.
48473         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48474         * doc/posix-functions/mbstowcs.texi: Likewise.
48475         * doc/posix-functions/mbtowc.texi: Likewise.
48476         * doc/posix-functions/putwchar.texi: Likewise.
48477         * doc/posix-functions/putwc.texi: Likewise.
48478         * doc/posix-functions/swprintf.texi: Likewise.
48479         * doc/posix-functions/tolower.texi: Likewise.
48480         * doc/posix-functions/toupper.texi: Likewise.
48481         * doc/posix-functions/towctrans.texi: Likewise.
48482         * doc/posix-functions/ungetwc.texi: Likewise.
48483         * doc/posix-functions/vswprintf.texi: Likewise.
48484         * doc/posix-functions/wcrtomb.texi: Likewise.
48485         * doc/posix-functions/wcscat.texi: Likewise.
48486         * doc/posix-functions/wcschr.texi: Likewise.
48487         * doc/posix-functions/wcscmp.texi: Likewise.
48488         * doc/posix-functions/wcscoll.texi: Likewise.
48489         * doc/posix-functions/wcscpy.texi: Likewise.
48490         * doc/posix-functions/wcscspn.texi: Likewise.
48491         * doc/posix-functions/wcsftime.texi: Likewise.
48492         * doc/posix-functions/wcslen.texi: Likewise.
48493         * doc/posix-functions/wcsncat.texi: Likewise.
48494         * doc/posix-functions/wcsncmp.texi: Likewise.
48495         * doc/posix-functions/wcsncpy.texi: Likewise.
48496         * doc/posix-functions/wcspbrk.texi: Likewise.
48497         * doc/posix-functions/wcsrchr.texi: Likewise.
48498         * doc/posix-functions/wcsrtombs.texi: Likewise.
48499         * doc/posix-functions/wcsspn.texi: Likewise.
48500         * doc/posix-functions/wcsstr.texi: Likewise.
48501         * doc/posix-functions/wcstod.texi: Likewise.
48502         * doc/posix-functions/wcstof.texi: Likewise.
48503         * doc/posix-functions/wcstoimax.texi: Likewise.
48504         * doc/posix-functions/wcstok.texi: Likewise.
48505         * doc/posix-functions/wcstold.texi: Likewise.
48506         * doc/posix-functions/wcstoll.texi: Likewise.
48507         * doc/posix-functions/wcstol.texi: Likewise.
48508         * doc/posix-functions/wcstombs.texi: Likewise.
48509         * doc/posix-functions/wcstoull.texi: Likewise.
48510         * doc/posix-functions/wcstoul.texi: Likewise.
48511         * doc/posix-functions/wcstoumax.texi: Likewise.
48512         * doc/posix-functions/wcswidth.texi: Likewise.
48513         * doc/posix-functions/wcsxfrm.texi: Likewise.
48514         * doc/posix-functions/wctob.texi: Likewise.
48515         * doc/posix-functions/wctomb.texi: Likewise.
48516         * doc/posix-functions/wctrans.texi: Likewise.
48517         * doc/posix-functions/wctype.texi: Likewise.
48518         * doc/posix-functions/wcwidth.texi: Likewise.
48519         * doc/posix-functions/wmemchr.texi: Likewise.
48520         * doc/posix-functions/wmemcmp.texi: Likewise.
48521         * doc/posix-functions/wmemcpy.texi: Likewise.
48522         * doc/posix-functions/wmemmove.texi: Likewise.
48523         * doc/posix-functions/wmemset.texi: Likewise.
48524         * doc/posix-functions/wprintf.texi: Likewise.
48525         * doc/posix-functions/wscanf.texi: Likewise.
48526
48527 2008-12-21  Bruno Haible  <bruno@clisp.org>
48528
48529         Update doc for HP-UX 11.11.
48530         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48531         in HP-UX version 11.00, not in all versions of HP-UX 11.
48532         * doc/posix-functions/fwide.texi: Likewise.
48533         * doc/posix-functions/fwprintf.texi: Likewise.
48534         * doc/posix-functions/fwscanf.texi: Likewise.
48535         * doc/posix-functions/inet_ntop.texi: Likewise.
48536         * doc/posix-functions/inet_pton.texi: Likewise.
48537         * doc/posix-functions/mbrlen.texi: Likewise.
48538         * doc/posix-functions/mbrtowc.texi: Likewise.
48539         * doc/posix-functions/mbsinit.texi: Likewise.
48540         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48541         * doc/posix-functions/swprintf.texi: Likewise.
48542         * doc/posix-functions/swscanf.texi: Likewise.
48543         * doc/posix-functions/towctrans.texi: Likewise.
48544         * doc/posix-functions/vfwprintf.texi: Likewise.
48545         * doc/posix-functions/vswprintf.texi: Likewise.
48546         * doc/posix-functions/vwprintf.texi: Likewise.
48547         * doc/posix-functions/wcrtomb.texi: Likewise.
48548         * doc/posix-functions/wcsrtombs.texi: Likewise.
48549         * doc/posix-functions/wcsstr.texi: Likewise.
48550         * doc/posix-functions/wctob.texi: Likewise.
48551         * doc/posix-functions/wctrans.texi: Likewise.
48552         * doc/posix-functions/wmemchr.texi: Likewise.
48553         * doc/posix-functions/wmemcmp.texi: Likewise.
48554         * doc/posix-functions/wmemcpy.texi: Likewise.
48555         * doc/posix-functions/wmemmove.texi: Likewise.
48556         * doc/posix-functions/wmemset.texi: Likewise.
48557         * doc/posix-functions/wprintf.texi: Likewise.
48558         * doc/posix-functions/wscanf.texi: Likewise.
48559
48560 2008-12-21  Bruno Haible  <bruno@clisp.org>
48561
48562         Work around a portability problem.
48563         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48564         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48565
48566 2008-12-20  Bruno Haible  <bruno@clisp.org>
48567
48568         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48569         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48570         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48571         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48572         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48573
48574         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48575         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48576         set.
48577         (GNULIB_defined_mbstate_t): New macro.
48578         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48579         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48580         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48581         reuses the system's mbrtowc function but works around the bugs.
48582         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48583         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48584         macros.
48585         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48586         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48587         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48588         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48589         REPLACE_MBSINIT if mbsinit needs to be overridden.
48590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48591         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48592         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48593         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48594         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48595         m4/locale-zh.m4.
48596         (Depends): Add mbsinit.
48597         * modules/mbsinit (Depends): Add mbrtowc.
48598         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48599
48600 2008-12-20  Bruno Haible  <bruno@clisp.org>
48601
48602         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48603         so that there are no conversion errors on AIX.
48604         * tests/test-mbsrtowcs.c (main): LIkewise.
48605
48606 2008-12-20  Bruno Haible  <bruno@clisp.org>
48607
48608         Work around wctob bug on Solaris <= 9.
48609         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48610         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48612         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48613         * modules/wctob (Files): Add m4/locale-fr.m4.
48614         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48615
48616 2008-12-20  Bruno Haible  <bruno@clisp.org>
48617
48618         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48619         /dev/null.
48620         * tests/test-select-in.sh: Likewise.
48621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48622
48623 2008-12-20  Bruno Haible  <bruno@clisp.org>
48624
48625         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48626         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48627         Cygwin 1.5.x.
48628
48629 2008-12-20  Bruno Haible  <bruno@clisp.org>
48630
48631         Ensure mbstate_t is defined on HP-UX 11.11.
48632         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48633         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48634         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48635         AC_USE_SYSTEM_EXTENSIONS.
48636         * modules/fnmatch (Depends-on): Add extensions.
48637         * modules/mbrlen (Depends-on): Likewise.
48638         * modules/mbrtowc (Depends-on): Likewise.
48639         * modules/mbsinit (Depends-on): Likewise.
48640         * modules/mbsrtowcs (Depends-on): Likewise.
48641         * modules/mbswidth (Depends-on): Likewise.
48642         * modules/quotearg (Depends-on): Likewise.
48643         * modules/strftime (Depends-on): Likewise.
48644
48645 2008-12-20  Bruno Haible  <bruno@clisp.org>
48646
48647         Ensure wctob is declared on IRIX 6.5.
48648         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48649         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48650         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48652         of HAVE_WCTOB.
48653         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48654         HAVE_WCTOB.
48655         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48656
48657 2008-12-19  Bruno Haible  <bruno@clisp.org>
48658
48659         * modules/mbsrtowcs-tests: New file.
48660         * tests/test-mbsrtowcs1.sh: New file.
48661         * tests/test-mbsrtowcs2.sh: New file.
48662         * tests/test-mbsrtowcs3.sh: New file.
48663         * tests/test-mbsrtowcs4.sh: New file.
48664         * tests/test-mbsrtowcs.c: New file.
48665
48666         New module 'mbsrtowcs'.
48667         * lib/wchar.in.h (mbsrtowcs): New declaration.
48668         * lib/mbsrtowcs.c: New file.
48669         * m4/mbsrtowcs.m4: New file.
48670         * modules/mbsrtowcs: New file.
48671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48672         HAVE_MBSRTOWCS.
48673         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48674         HAVE_MBSRTOWCS.
48675         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48676
48677 2008-12-19  Bruno Haible  <bruno@clisp.org>
48678
48679         New module 'mbrlen'.
48680         * lib/wchar.in.h (mbrlen): New declaration.
48681         * lib/mbrlen.c: New file.
48682         * m4/mbrlen.m4: New file.
48683         * modules/mbrlen: New file.
48684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48685         HAVE_MBRLEN.
48686         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48687         HAVE_MBRLEN.
48688         * doc/posix-functions/mbrlen.texi: Document the new module.
48689
48690 2008-12-19  Bruno Haible  <bruno@clisp.org>
48691
48692         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48693         * modules/mbrtowc (Depends-on): Add verify.
48694         Suggested by Paul Eggert.
48695
48696 2008-12-18  Bruno Haible  <bruno@clisp.org>
48697
48698         * modules/mbsinit-tests: New file.
48699         * tests/test-mbsinit.sh: New file.
48700         * tests/test-mbsinit.c: New file.
48701
48702 2008-12-18  Bruno Haible  <bruno@clisp.org>
48703
48704         * modules/mbrtowc-tests: New file.
48705         * tests/test-mbrtowc1.sh: New file.
48706         * tests/test-mbrtowc2.sh: New file.
48707         * tests/test-mbrtowc3.sh: New file.
48708         * tests/test-mbrtowc4.sh: New file.
48709         * tests/test-mbrtowc.c: New file.
48710
48711         New module 'mbrtowc'.
48712         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48713         mbsinit and mbrtowc.
48714         (mbrtowc): New declaration.
48715         * lib/mbrtowc.c: New file.
48716         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48717         * modules/mbrtowc: New file.
48718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48719         HAVE_MBRTOWC.
48720         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48721         HAVE_MBRTOWC.
48722         * doc/posix-functions/mbrtowc.texi: Document the new module.
48723
48724 2008-12-18  Bruno Haible  <bruno@clisp.org>
48725
48726         New module 'wctob'.
48727         * lib/wchar.in.h (wctob): New declaration.
48728         * lib/wctob.c: New file.
48729         * m4/wctob.m4: New file.
48730         * modules/wctob: New file.
48731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48732         HAVE_WCTOB.
48733         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48734         * doc/posix-functions/wctob.texi: Document the new module.
48735
48736 2008-12-18  Bruno Haible  <bruno@clisp.org>
48737
48738         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48739         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48740
48741 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48742
48743         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48744         G. Christensen" <tgc@jupiterrise.com>.
48745
48746         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48747         G. Christensen" <tgc@jupiterrise.com>.
48748
48749         * lib/flock.c: Need to include string.h.  Reported by "Tom
48750         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48751         <ebb9@byu.net>.
48752
48753 2008-12-18  Bruno Haible  <bruno@clisp.org>
48754
48755         * m4/locale-ja.m4: New file, from GNU gettext.
48756
48757 2008-12-17  Bruno Haible  <bruno@clisp.org>
48758
48759         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48760         Suggested by Eric Blake.
48761
48762 2008-12-17  Bruno Haible  <bruno@clisp.org>
48763
48764         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48765
48766 2008-12-17  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48769         * modules/mbsinit (Depends-on): Add verify.
48770         Suggested by Paul Eggert.
48771
48772 2008-12-17  Bruno Haible  <bruno@clisp.org>
48773
48774         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48775         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48776         gl_FUNC_MBRTOWC.
48777         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48778         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48779         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48780         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48781         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48782         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48783         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48784         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48785         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48786         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48787         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48788         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48789         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48790         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48791         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48792         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48793         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48794         * modules/trim (configure.ac): Likewise.
48795
48796 2008-12-17  Bruno Haible  <bruno@clisp.org>
48797
48798         * modules/btowc-tests: New file.
48799         * tests/test-btowc1.sh: New file.
48800         * tests/test-btowc2.sh: New file.
48801         * tests/test-btowc.c: New file.
48802
48803         New module 'btowc'.
48804         * lib/wchar.in.h (btowc): New declaration.
48805         * lib/btowc.c: New file.
48806         * m4/btowc.m4: New file.
48807         * modules/btowc: New file.
48808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48809         HAVE_BTOWC.
48810         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48811         * doc/posix-functions/btowc.texi: Document the new module.
48812
48813 2008-12-17  Bruno Haible  <bruno@clisp.org>
48814
48815         New module 'mbsinit'.
48816         * lib/wchar.in.h (mbsinit): New declaration.
48817         * lib/mbsinit.c: New file.
48818         * m4/mbsinit.m4: New file.
48819         * modules/mbsinit: New file.
48820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48821         HAVE_MBSINIT.
48822         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48823         HAVE_MBSINIT.
48824         * doc/posix-functions/mbsinit.texi: Document the new module.
48825
48826 2008-12-16  Bruno Haible  <bruno@clisp.org>
48827
48828         * lib/unistd.in.h: Add comment.
48829         * tests/test-environ.c: Don't include <stdlib.h>.
48830
48831 2008-12-16  Bruno Haible  <bruno@clisp.org>
48832
48833         * lib/parse-duration.h (parse_duration): Document return value
48834         convention.
48835         * lib/parse-duration.c: Include specification header first. Add
48836         comments.
48837         (_): Remove macro.
48838         (parse_year_month_day, parse_hour_minute_second): Move side effects
48839         outside of strchr call.
48840         (parse_non_iso8601): Move side effects outside of isspace call.
48841         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48842         call.
48843
48844 2008-12-16  Bruno Haible  <bruno@clisp.org>
48845
48846         * tests/test-parse-duration.sh: Produce no output when the test
48847         succeeds.
48848
48849 2008-12-16  Bruno Haible  <bruno@clisp.org>
48850
48851         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48852         expressions.
48853
48854 2008-12-15  Bruno Haible  <bruno@clisp.org>
48855
48856         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48857         * doc/glibc-functions/flistxattr.texi: Likewise.
48858         * doc/glibc-functions/fopencookie.texi: Likewise.
48859         * doc/glibc-functions/fremovexattr.texi: Likewise.
48860         * doc/glibc-functions/fsetxattr.texi: Likewise.
48861         * doc/glibc-functions/getxattr.texi: Likewise.
48862         * doc/glibc-functions/lgetxattr.texi: Likewise.
48863         * doc/glibc-functions/listxattr.texi: Likewise.
48864         * doc/glibc-functions/llistxattr.texi: Likewise.
48865         * doc/glibc-functions/lremovexattr.texi: Likewise.
48866         * doc/glibc-functions/lsetxattr.texi: Likewise.
48867         * doc/glibc-functions/removexattr.texi: Likewise.
48868         * doc/glibc-functions/setxattr.texi: Likewise.
48869         * doc/posix-functions/open_memstream.texi: Likewise.
48870
48871 2008-12-15  Eric Blake  <ebb9@byu.net>
48872
48873         Update doc for cygwin 1.7.
48874         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48875         functions.
48876         * doc/posix-functions/fchmodat.texi: Likewise.
48877         * doc/posix-functions/fchownat.texi: Likewise.
48878         * doc/posix-functions/fdopendir.texi: Likewise.
48879         * doc/posix-functions/fmemopen.texi: Likewise.
48880         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48881         * doc/posix-functions/fstatat.texi: Likewise.
48882         * doc/posix-functions/futimens.texi: Likewise.
48883         * doc/posix-functions/gai_strerror.texi: Likewise.
48884         * doc/posix-functions/getaddrinfo.texi: Likewise.
48885         * doc/posix-functions/getnameinfo.texi: Likewise.
48886         * doc/posix-functions/if_freenameindex.texi: Likewise.
48887         * doc/posix-functions/if_indextoname.texi: Likewise.
48888         * doc/posix-functions/if_nameindex.texi: Likewise.
48889         * doc/posix-functions/if_nametoindex.texi: Likewise.
48890         * doc/posix-functions/insque.texi: Likewise.
48891         * doc/posix-functions/linkat.texi: Likewise.
48892         * doc/posix-functions/llrint.texi: Likewise.
48893         * doc/posix-functions/llrintf.texi: Likewise.
48894         * doc/posix-functions/llrintl.texi: Likewise.
48895         * doc/posix-functions/lockf.texi: Likewise.
48896         * doc/posix-functions/lrintl.texi: Likewise.
48897         * doc/posix-functions/mkdirat.texi: Likewise.
48898         * doc/posix-functions/mkfifoat.texi: Likewise.
48899         * doc/posix-functions/mknodat.texi: Likewise.
48900         * doc/posix-functions/mq_close.texi: Likewise.
48901         * doc/posix-functions/mq_getattr.texi: Likewise.
48902         * doc/posix-functions/mq_notify.texi: Likewise.
48903         * doc/posix-functions/mq_open.texi: Likewise.
48904         * doc/posix-functions/mq_receive.texi: Likewise.
48905         * doc/posix-functions/mq_send.texi: Likewise.
48906         * doc/posix-functions/mq_setattr.texi: Likewise.
48907         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48908         * doc/posix-functions/mq_timedsend.texi: Likewise.
48909         * doc/posix-functions/mq_unlink.texi: Likewise.
48910         * doc/posix-functions/open_memstream.texi: Likewise.
48911         * doc/posix-functions/openat.texi: Likewise.
48912         * doc/posix-functions/posix_fadvise.texi: Likewise.
48913         * doc/posix-functions/posix_fallocate.texi: Likewise.
48914         * doc/posix-functions/posix_madvise.texi: Likewise.
48915         * doc/posix-functions/posix_memalign.texi: Likewise.
48916         * doc/posix-functions/posix_openpt.texi: Likewise.
48917         * doc/posix-functions/readlinkat.texi: Likewise.
48918         * doc/posix-functions/remque.texi: Likewise.
48919         * doc/posix-functions/renameat.texi: Likewise.
48920         * doc/posix-functions/rintl.texi: Likewise.
48921         * doc/posix-functions/sem_unlink.texi: Likewise.
48922         * doc/posix-functions/shm_open.texi: Likewise.
48923         * doc/posix-functions/shm_unlink.texi: Likewise.
48924         * doc/posix-functions/signgam.texi: Likewise.
48925         * doc/posix-functions/sigset.texi: Likewise.
48926         * doc/posix-functions/stpcpy.texi: Likewise.
48927         * doc/posix-functions/stpncpy.texi: Likewise.
48928         * doc/posix-functions/strerror.texi: Likewise.
48929         * doc/posix-functions/strtod.texi: Likewise.
48930         * doc/posix-functions/symlinkat.texi: Likewise.
48931         * doc/posix-functions/unlinkat.texi: Likewise.
48932         * doc/posix-functions/utimensat.texi: Likewise.
48933         * doc/glibc-functions/bindresvport.texi: Likewise.
48934         * doc/glibc-functions/dn_expand.texi: Likewise.
48935         * doc/glibc-functions/exp10.texi: Likewise.
48936         * doc/glibc-functions/exp10f.texi: Likewise.
48937         * doc/glibc-functions/fgetxattr.texi: Likewise.
48938         * doc/glibc-functions/flistxattr.texi: Likewise.
48939         * doc/glibc-functions/fopencookie.texi: Likewise.
48940         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48941         * doc/glibc-functions/fremovexattr.texi: Likewise.
48942         * doc/glibc-functions/fsetxattr.texi: Likewise.
48943         * doc/glibc-functions/getifaddrs.texi: Likewise.
48944         * doc/glibc-functions/getxattr.texi: Likewise.
48945         * doc/glibc-functions/lgetxattr.texi: Likewise.
48946         * doc/glibc-functions/listxattr.texi: Likewise.
48947         * doc/glibc-functions/llistxattr.texi: Likewise.
48948         * doc/glibc-functions/lremovexattr.texi: Likewise.
48949         * doc/glibc-functions/lsetxattr.texi: Likewise.
48950         * doc/glibc-functions/pow10.texi: Likewise.
48951         * doc/glibc-functions/pow10f.texi: Likewise.
48952         * doc/glibc-functions/rcmd_af.texi: Likewise.
48953         * doc/glibc-functions/removexattr.texi: Likewise.
48954         * doc/glibc-functions/res_init.texi: Likewise.
48955         * doc/glibc-functions/res_mkquery.texi: Likewise.
48956         * doc/glibc-functions/res_query.texi: Likewise.
48957         * doc/glibc-functions/res_querydomain.texi: Likewise.
48958         * doc/glibc-functions/res_send.texi: Likewise.
48959         * doc/glibc-functions/rresvport_af.texi: Likewise.
48960         * doc/glibc-functions/setxattr.texi: Likewise.
48961         * doc/glibc-functions/strcasestr.texi: Likewise.
48962
48963 2008-12-15  Bruno Haible  <bruno@clisp.org>
48964
48965         Fix compilation error on OSF/1 4.0.
48966         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48967         <sys/time.h>, simply delegate to the system header.
48968         Reported by Daniel Richard G. <oss@teragram.com>.
48969
48970 2008-12-15  Bruno Haible  <bruno@clisp.org>
48971
48972         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48973         * doc/posix-functions/fchmodat.texi: Likewise.
48974         * doc/posix-functions/fchownat.texi: Likewise.
48975         * doc/posix-functions/fdopendir.texi: Likewise.
48976         * doc/posix-functions/fstatat.texi: Likewise.
48977         * doc/posix-functions/mkdirat.texi: Likewise.
48978         * doc/posix-functions/unlinkat.texi: Likewise.
48979
48980 2008-12-14  Bruno Haible  <bruno@clisp.org>
48981
48982         Update doc for POSIX:2008.
48983         * doc/posix-functions/faccessat.texi: New file.
48984         * doc/posix-functions/fchmodat.texi: New file.
48985         * doc/posix-functions/fchownat.texi: New file.
48986         * doc/posix-functions/fdopendir.texi: New file.
48987         * doc/posix-functions/fstatat.texi: New file.
48988         * doc/posix-functions/futimens.texi: New file.
48989         * doc/posix-functions/linkat.texi: New file.
48990         * doc/posix-functions/mkdirat.texi: New file.
48991         * doc/posix-functions/mkfifoat.texi: New file.
48992         * doc/posix-functions/mknodat.texi: New file.
48993         * doc/posix-functions/open_wmemstream.texi: New file.
48994         * doc/posix-functions/openat.texi: New file.
48995         * doc/posix-functions/psiginfo.texi: New file.
48996         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48997         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48998         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48999         * doc/posix-functions/readlinkat.texi: New file.
49000         * doc/posix-functions/renameat.texi: New file.
49001         * doc/posix-functions/strerror_l.texi: New file.
49002         * doc/posix-functions/symlinkat.texi: New file.
49003         * doc/posix-functions/unlinkat.texi: New file.
49004         * doc/posix-functions/utimensat.texi: New file.
49005         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49006
49007 2008-12-14  Bruno Haible  <bruno@clisp.org>
49008
49009         Update doc for POSIX:2008.
49010         * doc/posix-functions/alphasort.texi: Renamed from
49011         doc/glibc-functions/alphasort.texi.
49012         * doc/posix-functions/dirfd.texi: Renamed from
49013         doc/glibc-functions/dirfd.texi.
49014         * doc/posix-functions/dprintf.texi: Renamed from
49015         doc/glibc-functions/dprintf.texi.
49016         * doc/posix-functions/duplocale.texi: Renamed from
49017         doc/glibc-functions/duplocale.texi.
49018         * doc/posix-functions/fexecve.texi: Renamed from
49019         doc/glibc-functions/fexecve.texi.
49020         * doc/posix-functions/fmemopen.texi: Renamed from
49021         doc/glibc-functions/fmemopen.texi.
49022         * doc/posix-functions/freelocale.texi: Renamed from
49023         doc/glibc-functions/freelocale.texi.
49024         * doc/posix-functions/getdate_err.texi: Renamed from
49025         doc/glibc-functions/getdate_err.texi.
49026         * doc/posix-functions/isalnum_l.texi: Renamed from
49027         doc/glibc-functions/isalnum_l.texi.
49028         * doc/posix-functions/isalpha_l.texi: Renamed from
49029         doc/glibc-functions/isalpha_l.texi.
49030         * doc/posix-functions/isblank_l.texi: Renamed from
49031         doc/glibc-functions/isblank_l.texi.
49032         * doc/posix-functions/iscntrl_l.texi: Renamed from
49033         doc/glibc-functions/iscntrl_l.texi.
49034         * doc/posix-functions/isdigit_l.texi: Renamed from
49035         doc/glibc-functions/isdigit_l.texi.
49036         * doc/posix-functions/isgraph_l.texi: Renamed from
49037         doc/glibc-functions/isgraph_l.texi.
49038         * doc/posix-functions/islower_l.texi: Renamed from
49039         doc/glibc-functions/islower_l.texi.
49040         * doc/posix-functions/isprint_l.texi: Renamed from
49041         doc/glibc-functions/isprint_l.texi.
49042         * doc/posix-functions/ispunct_l.texi: Renamed from
49043         doc/glibc-functions/ispunct_l.texi.
49044         * doc/posix-functions/isspace_l.texi: Renamed from
49045         doc/glibc-functions/isspace_l.texi.
49046         * doc/posix-functions/isupper_l.texi: Renamed from
49047         doc/glibc-functions/isupper_l.texi.
49048         * doc/posix-functions/iswalnum_l.texi: Renamed from
49049         doc/glibc-functions/iswalnum_l.texi.
49050         * doc/posix-functions/iswalpha_l.texi: Renamed from
49051         doc/glibc-functions/iswalpha_l.texi.
49052         * doc/posix-functions/iswblank_l.texi: Renamed from
49053         doc/glibc-functions/iswblank_l.texi.
49054         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49055         doc/glibc-functions/iswcntrl_l.texi.
49056         * doc/posix-functions/iswctype_l.texi: Renamed from
49057         doc/glibc-functions/iswctype_l.texi.
49058         * doc/posix-functions/iswdigit_l.texi: Renamed from
49059         doc/glibc-functions/iswdigit_l.texi.
49060         * doc/posix-functions/iswgraph_l.texi: Renamed from
49061         doc/glibc-functions/iswgraph_l.texi.
49062         * doc/posix-functions/iswlower_l.texi: Renamed from
49063         doc/glibc-functions/iswlower_l.texi.
49064         * doc/posix-functions/iswprint_l.texi: Renamed from
49065         doc/glibc-functions/iswprint_l.texi.
49066         * doc/posix-functions/iswpunct_l.texi: Renamed from
49067         doc/glibc-functions/iswpunct_l.texi.
49068         * doc/posix-functions/iswspace_l.texi: Renamed from
49069         doc/glibc-functions/iswspace_l.texi.
49070         * doc/posix-functions/iswupper_l.texi: Renamed from
49071         doc/glibc-functions/iswupper_l.texi.
49072         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49073         doc/glibc-functions/iswxdigit_l.texi.
49074         * doc/posix-functions/isxdigit_l.texi: Renamed from
49075         doc/glibc-functions/isxdigit_l.texi.
49076         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49077         doc/glibc-functions/mbsnrtowcs.texi.
49078         * doc/posix-functions/mkdtemp.texi: Renamed from
49079         doc/glibc-functions/mkdtemp.texi.
49080         * doc/posix-functions/newlocale.texi: Renamed from
49081         doc/glibc-functions/newlocale.texi.
49082         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49083         doc/glibc-functions/nl_langinfo_l.texi.
49084         * doc/posix-functions/open_memstream.texi: Renamed from
49085         doc/glibc-functions/open_memstream.texi.
49086         * doc/posix-functions/opterr.texi: Renamed from
49087         doc/glibc-functions/opterr.texi.
49088         * doc/posix-functions/optind.texi: Renamed from
49089         doc/glibc-functions/optind.texi.
49090         * doc/posix-functions/optopt.texi: Renamed from
49091         doc/glibc-functions/optopt.texi.
49092         * doc/posix-functions/psignal.texi: Renamed from
49093         doc/glibc-functions/psignal.texi.
49094         * doc/posix-functions/scandir.texi: Renamed from
49095         doc/glibc-functions/scandir.texi.
49096         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49097         doc/glibc-functions/sched_get_priority_min.texi.
49098         * doc/posix-functions/signgam.texi: Renamed from
49099         doc/glibc-functions/signgam.texi.
49100         * doc/posix-functions/stpcpy.texi: Renamed from
49101         doc/glibc-functions/stpcpy.texi.
49102         * doc/posix-functions/stpncpy.texi: Renamed from
49103         doc/glibc-functions/stpncpy.texi.
49104         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49105         doc/glibc-functions/strcasecmp_l.texi.
49106         * doc/posix-functions/strcoll_l.texi: Renamed from
49107         doc/glibc-functions/strcoll_l.texi.
49108         * doc/posix-functions/strfmon_l.texi: Renamed from
49109         doc/glibc-functions/strfmon_l.texi.
49110         * doc/posix-functions/strftime_l.texi: Renamed from
49111         doc/glibc-functions/strftime_l.texi.
49112         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49113         doc/glibc-functions/strncasecmp_l.texi.
49114         * doc/posix-functions/strndup.texi: Renamed from
49115         doc/glibc-functions/strndup.texi.
49116         * doc/posix-functions/strnlen.texi: Renamed from
49117         doc/glibc-functions/strnlen.texi.
49118         * doc/posix-functions/strsignal.texi: Renamed from
49119         doc/glibc-functions/strsignal.texi.
49120         * doc/posix-functions/strxfrm_l.texi: Renamed from
49121         doc/glibc-functions/strxfrm_l.texi.
49122         * doc/posix-functions/timer_gettime.texi: Renamed from
49123         doc/glibc-functions/timer_gettime.texi.
49124         * doc/posix-functions/tolower_l.texi: Renamed from
49125         doc/glibc-functions/tolower_l.texi.
49126         * doc/posix-functions/toupper_l.texi: Renamed from
49127         doc/glibc-functions/toupper_l.texi.
49128         * doc/posix-functions/towctrans_l.texi: Renamed from
49129         doc/glibc-functions/towctrans_l.texi.
49130         * doc/posix-functions/towlower_l.texi: Renamed from
49131         doc/glibc-functions/towlower_l.texi.
49132         * doc/posix-functions/towupper_l.texi: Renamed from
49133         doc/glibc-functions/towupper_l.texi.
49134         * doc/posix-functions/uselocale.texi: Renamed from
49135         doc/glibc-functions/uselocale.texi.
49136         * doc/posix-functions/vdprintf.texi: Renamed from
49137         doc/glibc-functions/vdprintf.texi.
49138         * doc/posix-functions/wcpcpy.texi:
49139         Renamed from doc/glibc-functions/wcpcpy.texi.
49140         * doc/posix-functions/wcpncpy.texi: Renamed from
49141         doc/glibc-functions/wcpncpy.texi.
49142         * doc/posix-functions/wcscasecmp.texi: Renamed from
49143         doc/glibc-functions/wcscasecmp.texi.
49144         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49145         doc/glibc-functions/wcscasecmp_l.texi.
49146         * doc/posix-functions/wcscoll_l.texi: Renamed from
49147         doc/glibc-functions/wcscoll_l.texi.
49148         * doc/posix-functions/wcsdup.texi: Renamed from
49149         doc/glibc-functions/wcsdup.texi.
49150         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49151         doc/glibc-functions/wcsncasecmp.texi.
49152         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49153         doc/glibc-functions/wcsncasecmp_l.texi.
49154         * doc/posix-functions/wcsnlen.texi: Renamed from
49155         doc/glibc-functions/wcsnlen.texi.
49156         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49157         doc/glibc-functions/wcsnrtombs.texi.
49158         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49159         doc/glibc-functions/wcsxfrm_l.texi.
49160         * doc/posix-functions/wctrans_l.texi: Renamed from
49161         doc/glibc-functions/wctrans_l.texi.
49162         * doc/posix-functions/wctype_l.texi: Renamed from
49163         doc/glibc-functions/wctype_l.texi.
49164         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49165         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49166         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49167         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49168         these subsections.
49169         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49170         Remove sections.
49171
49172 2008-12-14  Bruno Haible  <bruno@clisp.org>
49173
49174         Update doc for POSIX:2008.
49175         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49176
49177 2008-12-14  Bruno Haible  <bruno@clisp.org>
49178
49179         Update doc for POSIX:2008.
49180         * doc/pastposix-functions/bcmp.texi: Renamed from
49181         doc/posix-functions/bcmp.texi.
49182         * doc/pastposix-functions/bcopy.texi: Renamed from
49183         doc/posix-functions/bcopy.texi.
49184         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49185         doc/posix-functions/bsd_signal.texi.
49186         * doc/pastposix-functions/bzero.texi: Renamed from
49187         doc/posix-functions/bzero.texi.
49188         * doc/pastposix-functions/ecvt.texi: Renamed from
49189         doc/posix-functions/ecvt.texi.
49190         * doc/pastposix-functions/fcvt.texi: Renamed from
49191         doc/posix-functions/fcvt.texi.
49192         * doc/pastposix-functions/ftime.texi: Renamed from
49193         doc/posix-functions/ftime.texi.
49194         * doc/pastposix-functions/gcvt.texi: Renamed from
49195         doc/posix-functions/gcvt.texi.
49196         * doc/pastposix-functions/getcontext.texi: Renamed from
49197         doc/posix-functions/getcontext.texi.
49198         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49199         doc/posix-functions/gethostbyaddr.texi.
49200         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49201         doc/posix-functions/gethostbyname.texi.
49202         * doc/pastposix-functions/getwd.texi: Renamed from
49203         doc/posix-functions/getwd.texi.
49204         * doc/pastposix-functions/h_errno.texi: Renamed from
49205         doc/posix-functions/h_errno.texi.
49206         * doc/pastposix-functions/index.texi: Renamed from
49207         doc/posix-functions/index.texi.
49208         * doc/pastposix-functions/makecontext.texi: Renamed from
49209         doc/posix-functions/makecontext.texi.
49210         * doc/pastposix-functions/mktemp.texi: Renamed from
49211         doc/posix-functions/mktemp.texi.
49212         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49213         doc/posix-functions/pthread_attr_getstackaddr.texi.
49214         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49215         doc/posix-functions/pthread_attr_setstackaddr.texi.
49216         * doc/pastposix-functions/rindex.texi: Renamed from
49217         doc/posix-functions/rindex.texi.
49218         * doc/pastposix-functions/scalb.texi: Renamed from
49219         doc/posix-functions/scalb.texi.
49220         * doc/pastposix-functions/setcontext.texi: Renamed from
49221         doc/posix-functions/setcontext.texi.
49222         * doc/pastposix-functions/swapcontext.texi: Renamed from
49223         doc/posix-functions/swapcontext.texi.
49224         * doc/pastposix-functions/ualarm.texi: Renamed from
49225         doc/posix-functions/ualarm.texi.
49226         * doc/pastposix-functions/usleep.texi: Renamed from
49227         doc/posix-functions/usleep.texi.
49228         * doc/pastposix-functions/vfork.texi: Renamed from
49229         doc/posix-functions/vfork.texi.
49230         * doc/pastposix-functions/wcswcs.texi: Renamed from
49231         doc/posix-functions/wcswcs.texi.
49232         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49233         (Function Substitutes): Update.
49234
49235 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49236
49237         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49238         m4/strerror.m4.
49239
49240 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49241             Bruno Haible  <bruno@clisp.org>
49242
49243         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49244
49245 2008-12-13  Bruno Haible  <bruno@clisp.org>
49246
49247         * modules/strtoull (Depends-on): Remove unistd.
49248
49249 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49250
49251         * modules/strtoull (Depends-on): Add stdlib.
49252
49253 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49254
49255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49256
49257 2008-12-10  Jim Meyering  <meyering@redhat.com>
49258
49259         gl_ASSERT: don't say assertions are disabled when they're not
49260         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49261         "checking whether to enable assertions... no", when they are in
49262         fact enabled.  This is solely a bug in the output of configure.
49263         In spite of saying "no", NDEBUG was not defined in that case.
49264         Also, as noted by Eric Blake, leave assertions enabled upon
49265         --enable-assert=INVALID.
49266
49267 2008-12-10  Bruno Haible  <bruno@clisp.org>
49268
49269         Change MODULES.html to refer to POSIX:2008 where possible.
49270         * MODULES.html.sh (POSIX2008_URL): New variable.
49271         (posix_headers): Remove sys/timeb, ucontext.
49272         (posix2001_headers): New variable.
49273         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49274         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49275         index, makecontext, mktemp, pthread_attr_getstackaddr,
49276         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49277         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49278         (posix2001_functions): New variable.
49279         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49280         otherwise.
49281
49282 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49283
49284         add missing include to parse-duration.c
49285         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49286         * modules/parse-duration (Depends-on): Add xalloc.
49287
49288         fix sed script reading maint.mk
49289         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49290         (syntax-check-rules): Use it.
49291
49292 2008-12-09  Bruno Haible  <bruno@clisp.org>
49293
49294         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49295         MacOS X 10.4/PowerPC.
49296         Reported by Simon Josefsson.
49297
49298 2008-12-08  Jim Meyering  <meyering@redhat.com>
49299
49300         work around mingw's lack of some S_IF definitions
49301         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49302         Reported by Simon Josefsson.
49303
49304 2008-12-08  Bruno Haible  <bruno@clisp.org>
49305
49306         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49307         applied to variables. Needed on MacOS X 10.4/PowerPC.
49308         Reported by Simon Josefsson.
49309
49310 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49311         and Eric Blake  <ebb9@byu.net>
49312
49313         assert: honor --enable-assert
49314         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49315         order to honor --enable-assert, rather than treating it as a
49316         synonym for --disable-assert.
49317
49318 2008-12-08  Jim Meyering  <meyering@redhat.com>
49319
49320         * lib/posixtm.c: Remove now-useless declaration of mktime.
49321
49322         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49323
49324 2008-12-07  Bruno Haible  <bruno@clisp.org>
49325
49326         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49327         test_once): Mark functions as static.
49328         * tests/test-tls.c (test_tls): Likewise.
49329
49330 2008-12-07  Bruno Haible  <bruno@clisp.org>
49331
49332         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49333         iconv_register_autodetect.
49334
49335 2008-12-07  Jim Meyering  <meyering@redhat.com>
49336
49337         posixtm.c: avoid a warning
49338         * lib/posixtm.c (posixtime): Don't initialize tm0.
49339         It's no longer needed to placate gcc4's -Wuninitialized,
49340         and the attempt to placate would elicit a new warning.
49341
49342         unicodeio.c: mark unused parameters
49343         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49344         (fallback_failure_callback): Likewise.
49345
49346 2008-12-07  Bruno Haible  <bruno@clisp.org>
49347
49348         * gnulib-tool (func_create_testdir): When building the tests
49349         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49350         Reported by Simon Josefsson.
49351
49352 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49353
49354         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49355
49356 2008-12-06  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49359         Suggested by Eric Blake.
49360
49361 2008-12-06  Bruno Haible  <bruno@clisp.org>
49362
49363         Fix a c-stack test failure on MacOS X.
49364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49365         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49366         handler for SIGBUS as well.
49367         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49368         install a signal handler for SIGBUS as well.
49369         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49370
49371 2008-12-06  Bruno Haible  <bruno@clisp.org>
49372
49373         Advocacy documentation.
49374         * doc/gnulib-intro.texi (Benefits): New section.
49375         * doc/gnulib.texi: Update.
49376
49377 2008-12-06  Bruno Haible  <bruno@clisp.org>
49378
49379         Document the 'manywarnings' module.
49380         * doc/manywarnings.texi: New file.
49381         * doc/gnulib.texi: Include it.
49382
49383 2008-12-05  Eric Blake  <ebb9@byu.net>
49384
49385         tests: silence some gcc warnings
49386         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49387         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49388         type mismatches.
49389
49390 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49391             Bruno Haible  <bruno@clisp.org>
49392
49393         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49394
49395 2008-11-29  Jim Meyering  <meyering@redhat.com>
49396
49397         unicodeio.c: mark unused parameters
49398         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49399         (fallback_failure_callback): Likewise.
49400
49401         fts: fix a thinko
49402         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49403         (set_stat_type): Return S_IF*-valued "type" directly.
49404         Prompted by James Youngman's spotting a related bug.
49405         Confirmed by further testing through find.
49406
49407         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49408         * lib/fts.c (D_TYPE): Define.
49409         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49410         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49411         (s_ifmt_shift_bits): New function.
49412         (set_stat_type): New function.
49413         (fts_build): When not calling fts_stat, call set_stat_type
49414         to propagate dirent.d_type info to fts_read caller.
49415         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49416         fts_statp->st_mode type information may be valid.
49417
49418 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49419
49420         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49421         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49422         <sds@gnu.org>.
49423
49424 2008-11-20  Bruno Haible  <bruno@clisp.org>
49425
49426         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49427         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49428         INCLUDE_NEXT.
49429         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49430         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49431         * modules/math (Makefile.am): Substitute
49432         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49433         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49434
49435 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49436             Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/stdint.in.h: Define all type macros so that their expansion is
49439         a single typedef'ed token. Fixes a compilation failure in Boost which
49440         does "using ::int8_t;".
49441
49442 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49443
49444         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49445         gl_MANYWARN_ALL_GCC.
49446         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49447         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49448         * modules/manywarnings: New file.
49449         * MODULES.html.sh: Mention manywarnings module.
49450
49451 2008-11-18  Bruno Haible  <bruno@clisp.org>
49452
49453         * doc/gnulib-tool.texi (Unit tests): New section.
49454
49455 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49456
49457         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49458         paths like 'lib/po/foo.po'.
49459
49460 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49461
49462         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49463         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49464
49465 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49466
49467         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49468         parameter works.
49469
49470 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49471
49472         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49473
49474 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49475
49476         * modules/parse-duration-tests: New file.
49477         * tests/test-parse-duration.sh: New file.
49478         * tests/test-parse-duration.c: New file.
49479
49480         New module 'parse-duration'.
49481         * lib/parse-duration.h: New file.
49482         * lib/parse-duration.c: New file.
49483         * modules/parse-duration: New file.
49484
49485 2008-11-17  Bruno Haible  <bruno@clisp.org>
49486
49487         * tests/test-select-out.sh: Comment out the first pipe test.
49488         Reported by Simon Josefsson.
49489
49490 2008-11-17  Bruno Haible  <bruno@clisp.org>
49491
49492         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49493         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49494         gl_HOSTENT.
49495
49496 2008-11-17  Bruno Haible  <bruno@clisp.org>
49497
49498         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49499         -lnetwork and -lnet. Needed for Haiku and BeOS.
49500
49501 2008-11-16  Bruno Haible  <bruno@clisp.org>
49502
49503         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49504
49505 2008-11-16  Bruno Haible  <bruno@clisp.org>
49506
49507         Avoid test failure on Haiku.
49508         * tests/test-fsync.c: Include <errno.h>.
49509         (main): Don't require that fsync (0) fails.
49510
49511 2008-11-15  Bruno Haible  <bruno@clisp.org>
49512
49513         New module 'hostent'.
49514         * modules/hostent: New file.
49515         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49516
49517 2008-11-15  Bruno Haible  <bruno@clisp.org>
49518
49519         New module 'servent'.
49520         * modules/servent: New file.
49521         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49522
49523 2008-11-15  Bruno Haible  <bruno@clisp.org>
49524
49525         Avoid generating same test program with two different rules.
49526         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49527         test-frexp to test-frexp-nolibm.
49528         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49529         test-frexpl to test-frexpl-nolibm.
49530
49531 2008-11-15  Bruno Haible  <bruno@clisp.org>
49532
49533         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49534         $(FREXPL_LIBM).
49535
49536 2008-11-15  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/netdb.in.h: Activate the definitions also when the system's
49539         <netdb.h> has 'struct addrinfo'.
49540         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49541         EAI_OVERFLOW or AI_NUMERICSERV.
49542         * doc/posix-headers/netdb.texi: Document the problem.
49543
49544 2008-11-15  Bruno Haible  <bruno@clisp.org>
49545
49546         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49547
49548         Make the 'sched' module work on platforms where <sched.h> exists but
49549         is incomplete (such as Haiku).
49550         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49551         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49552         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49553         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49554         HAVE_STRUCT_SCHED_PARAM.
49555         * modules/sched (Depends-on): Add include_next.
49556         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49557         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49558         * doc/posix-headers/sched.texi: Document the issue.
49559
49560 2008-11-13  Jim Meyering  <meyering@redhat.com>
49561
49562         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49563         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49564         test would fail due to the difference in the Report bugs to ...
49565         line.  The expected address is empty, "<>", while the actual
49566         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49567
49568 2008-11-12  Bruno Haible  <bruno@clisp.org>
49569
49570         lstat: don't compile lstat.c on systems lacking lstat
49571         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49572         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49573         Reported by Daniel P. Berrange via Jim Meyering.
49574
49575 2008-11-12  Jim Meyering  <meyering@redhat.com>
49576
49577         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49578
49579 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49580
49581         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49582         instead.
49583
49584 2008-11-12  Bruno Haible  <bruno@clisp.org>
49585
49586         * lib/unicodeio.c: Include unistr.h.
49587         (utf8_wctomb): Remove function.
49588         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49589
49590 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49591
49592         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49593         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49594         <bruno@clisp.org>.
49595         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49596
49597 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49598
49599         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49600         * doc/gnulib.texi: Add section for warnings.
49601
49602 2008-11-11  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/sockets.h: Add a comment.
49605
49606 2008-11-11  Karl Berry  <karl@gnu.org>
49607
49608         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49609
49610 2008-11-11  Eric Blake  <ebb9@byu.net>
49611
49612         fdl.texi: avoid git symlinks
49613         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49614
49615 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49616
49617         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49618
49619 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49620
49621         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49622         (gl_WARN_ADD): Substitute $2 if literal.
49623
49624 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49625
49626         * m4/warning.m4: Remove.
49627
49628 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49629
49630         * m4/warnings.m4: Almost complete rewrite. :-)
49631
49632 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49633
49634         * modules/warnings: New module.
49635         * m4/warnings.m4: New file.
49636         * MODULES.html.sh: Mention warnings module.
49637         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49638         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49639
49640 2008-11-10  Eric Blake  <ebb9@byu.net>
49641
49642         fdl.texi: make a symlink to the latest version
49643         * doc/standards.texi: Revert today's earlier change.
49644         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49645         * doc/fdl.texi: ...and replace this with a symlink to the newer
49646         fdl-1.3.texi.
49647
49648 2008-11-10  Bruno Haible  <bruno@clisp.org>
49649
49650         * tests/test-select-fd.c (main): Accept the result file name as fourth
49651         argument.
49652         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49653         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49654
49655 2008-11-10  Bruno Haible  <bruno@clisp.org>
49656
49657         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49658         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49659         as autoconf-substituted macros.
49660         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49661         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49662         gl_NETDB_H_DEFAULTS. Set these variables.
49663         * modules/netdb (Makefile.am): Substitute these variables.
49664
49665 2008-11-10  Eric Blake  <ebb9@byu.net>
49666
49667         standards.texi: include correct file for FDL 1.3
49668         * doc/standards.texi (GNU Free Documentation License): Change
49669         include file to pull in FDL 1.3, not 1.2.
49670
49671         fdl.texi: revert accidental change to license
49672         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49673
49674 2008-11-10  Bruno Haible  <bruno@clisp.org>
49675
49676         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49677         cross-compiling guesses also when the native compile gives no result.
49678
49679 2008-11-10  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/spawni.c (__spawni): Force variable into the stack.
49682
49683 2008-11-10  Bruno Haible  <bruno@clisp.org>
49684
49685         Add support for Haiku.
49686         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49687         glibc and BeOS, but also on Haiku.
49688         * lib/fpurge.c (fpurge): Likewise.
49689         * lib/freadable.c (freadable): Likewise.
49690         * lib/freadahead.c (freadahead): Likewise.
49691         * lib/freading.c (freading): Likewise.
49692         * lib/freadptr.c (freadptr): Likewise.
49693         * lib/freadseek.c (freadptrinc): Likewise.
49694         * lib/fseeko.c (rpl_fseeko): Likewise.
49695         * lib/fseterr.c (fseterr): Likewise.
49696         * lib/fwritable.c (fwritable): Likewise.
49697         * lib/fwriting.c (fwriting): Likewise.
49698         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49699
49700 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49701
49702         * lib/config.charset: Treat Haiku like BeOS.
49703
49704 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49705
49706         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49707         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49708
49709 2008-11-08  Bruno Haible  <bruno@clisp.org>
49710
49711         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49712         AC_CACHE_CHECK.
49713
49714 2008-11-08  Bruno Haible  <bruno@clisp.org>
49715
49716         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49717
49718 2008-11-08  Bruno Haible  <bruno@clisp.org>
49719
49720         * tests/test-select-fd.c: New file.
49721         * tests/test-select-in.sh: New file.
49722         * tests/test-select-out.sh: New file.
49723         * tests/test-select-stdin.c: New file.
49724         * modules/select-tests (Files): Add the new files.
49725         (Depends-on): Add gettimeofday.
49726         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49727         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49728         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49729
49730 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49731             Bruno Haible  <bruno@clisp.org>
49732
49733         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49734
49735 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49736
49737         * build-aux/pmccabe2html: Added support for C++ source files.
49738
49739 2008-11-05  Ben Pfaff  <blp@gnu.org>
49740
49741         Fix lib/close.c build on Windows.
49742         * modules/close (Files): Add lib/w32sock.h.
49743
49744 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49745
49746         Accept Bison's NEWS format.
49747         * build-aux/announce-gen (print_news_deltas): Tweak
49748         $re_prefix.
49749
49750 2008-11-04  Bruno Haible  <bruno@clisp.org>
49751
49752         * modules/random_r (Maintainer): Add glibc.
49753
49754 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49755
49756         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49757         by karl@freefriends.org (Karl Berry).
49758         * doc/alloca.texi: Likewise.
49759         * doc/c-ctype.texi: Likewise.
49760         * doc/c-strcase.texi: Likewise.
49761         * doc/c-strcaseeq.texi: Likewise.
49762         * doc/c-strcasestr.texi: Likewise.
49763         * doc/c-strstr.texi: Likewise.
49764         * doc/c-strtod.texi: Likewise.
49765         * doc/c-strtold.texi: Likewise.
49766         * doc/ctime.texi: Likewise.
49767         * doc/error.texi: Likewise.
49768         * doc/fdl.texi: Likewise.
49769         * doc/gcd.texi: Likewise.
49770         * doc/getdate.texi: Likewise.
49771         * doc/gnulib-intro.texi: Likewise.
49772         * doc/gnulib-tool.texi: Likewise.
49773         * doc/gnulib.texi: Likewise.
49774         * doc/inet_ntoa.texi: Likewise.
49775         * doc/maintain.texi: Likewise.
49776         * doc/make-stds.texi: Likewise.
49777         * doc/quote.texi: Likewise.
49778         * doc/regexprops-generic.texi: Likewise.
49779         * doc/standards.texi: Likewise.
49780         * doc/verify.texi: Likewise.
49781         * doc/visibility.texi: Likewise.
49782         * doc/gnulib.texi (GNU Free Documentation License): Include
49783         fdl-1.3.texi instead of fdl.texi.
49784
49785 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49786
49787         * doc/fdl-1.3.texi: New file, from
49788         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49789         * modules/fdl-1.3: Add.
49790         * MODULES.html.sh: Add fdl-1.3.
49791
49792 2008-11-03  Bruno Haible  <bruno@clisp.org>
49793
49794         Make determination of absolute name of header file work with AIX xlc.
49795         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49796         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49797         preprocessing.
49798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49799         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49800
49801 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49802
49803         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49804         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49805         <ludo@gnu.org>.
49806
49807 2008-11-02  Bruno Haible  <bruno@clisp.org>
49808
49809         Mark 'strpbrk' obsolete.
49810         * modules/strpbrk (Status, Notice): New sections.
49811         * modules/strtok_r (Depends-on): Add strpbrk.
49812
49813 2008-11-02  Bruno Haible  <bruno@clisp.org>
49814
49815         Mark 'strdup' obsolete.
49816         * modules/strdup (Status, Notice): New sections.
49817         * modules/findprog (Depends-on): Add strdup.
49818         * modules/getaddrinfo (Depends-on): Likewise.
49819         * modules/localename (Depends-on): Likewise.
49820         * modules/relocatable-lib (Depends-on): Likewise.
49821         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49822         * modules/relocatable-prog (Depends-on): Likewise.
49823         * modules/trim (Depends-on): Likewise.
49824         * modules/unictype/gen-ctype (Depends-on): Likewise.
49825         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49826
49827 2008-11-02  Bruno Haible  <bruno@clisp.org>
49828
49829         Mark 'strcspn' obsolete.
49830         * modules/strcspn (Status, Notice): New sections.
49831
49832 2008-11-02  Bruno Haible  <bruno@clisp.org>
49833
49834         Mark 'rmdir' obsolete.
49835         * modules/rmdir (Status, Notice): New sections.
49836         * modules/clean-temp (Depends-on): Add rmdir.
49837         * modules/openat (Depends-on): Likewise.
49838
49839 2008-11-02  Bruno Haible  <bruno@clisp.org>
49840
49841         Mark 'raise' obsolete.
49842         * modules/raise (Status, Notice): New sections.
49843         (Include): Specify <signal.h>.
49844         * modules/stdio (Depends-on): Add raise.
49845         * modules/write (Depends-on): Likewise.
49846
49847 2008-11-02  Bruno Haible  <bruno@clisp.org>
49848
49849         Mark 'memset' obsolete.
49850         * modules/memset (Status, Notice): New sections.
49851
49852 2008-11-02  Bruno Haible  <bruno@clisp.org>
49853
49854         Mark 'memmove' obsolete.
49855         * modules/memmove (Status, Notice): New sections.
49856         * modules/argp (Depends-on): Add memmove.
49857         * modules/argz (Depends-on): Likewise.
49858         * modules/canonicalize (Depends-on): Likewise.
49859         * modules/canonicalize-lgpl (Depends-on): Likewise.
49860         * modules/fts (Depends-on): Likewise.
49861         * modules/getcwd (Depends-on): Likewise.
49862         * modules/human (Depends-on): Likewise.
49863         * modules/regex (Depends-on): Likewise.
49864         * modules/striconveh (Depends-on): Likewise.
49865         * modules/trim (Depends-on): Likewise.
49866         * modules/unistr/u8-move (Depends-on): Likewise.
49867         * modules/unistr/u16-move (Depends-on): Likewise.
49868         * modules/unistr/u32-move (Depends-on): Likewise.
49869
49870 2008-11-02  Bruno Haible  <bruno@clisp.org>
49871
49872         Mark 'memcpy' obsolete.
49873         * modules/memcpy (Status, Notice): New sections.
49874
49875 2008-11-02  Bruno Haible  <bruno@clisp.org>
49876
49877         Mark 'memcmp' obsolete.
49878         * modules/memcmp (Status, Notice): New sections.
49879         * modules/argmatch (Depends-on): Add memchr.
49880         * modules/backupfile (Depends-on): Likewise.
49881         * modules/c-strcasestr (Depends-on): Likewise.
49882         * modules/crypto/des (Depends-on): Likewise.
49883         * modules/csharpcomp (Depends-on): Likewise.
49884         * modules/fnmatch (Depends-on): Likewise.
49885         * modules/git-merge-changelog (Depends-on): Likewise.
49886         * modules/isnand (Depends-on): Likewise.
49887         * modules/isnand-nolibm (Depends-on): Likewise.
49888         * modules/isnanf (Depends-on): Likewise.
49889         * modules/isnanf-nolibm (Depends-on): Likewise.
49890         * modules/isnanl (Depends-on): Likewise.
49891         * modules/isnanl-nolibm (Depends-on): Likewise.
49892         * modules/mbchar (Depends-on): Likewise.
49893         * modules/memcoll (Depends-on): Likewise.
49894         * modules/quotearg (Depends-on): Likewise.
49895         * modules/regex (Depends-on): Likewise.
49896         * modules/relocatable-prog (Depends-on): Likewise.
49897         * modules/same (Depends-on): Likewise.
49898         * modules/signbit (Depends-on): Likewise.
49899         * modules/strcasestr-simple (Depends-on): Likewise.
49900         * modules/unictype/gen-ctype (Depends-on): Likewise.
49901         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49902         * modules/uniname/uniname (Depends-on): Likewise.
49903         * modules/unistr/u8-cmp (Depends-on): Likewise.
49904
49905 2008-11-02  Bruno Haible  <bruno@clisp.org>
49906
49907         Mark 'memchr' obsolete.
49908         * modules/memchr (Status, Notice): New sections.
49909         * modules/argp (Depends-on): Add memchr.
49910         * modules/base64 (Depends-on): Likewise.
49911         * modules/c-strcasestr (Depends-on): Likewise.
49912         * modules/chdir-long (Depends-on): Likewise.
49913         * modules/fnmatch (Depends-on): Likewise.
49914         * modules/getsubopt (Depends-on): Likewise.
49915         * modules/git-merge-changelog (Depends-on): Likewise.
49916         * modules/glob (Depends-on): Likewise.
49917         * modules/strcasestr-simple (Depends-on): Likewise.
49918         * modules/strnlen (Depends-on): Likewise.
49919
49920 2008-11-02  Bruno Haible  <bruno@clisp.org>
49921
49922         Mark 'atexit' obsolete.
49923         * modules/atexit (Status, Notice): New sections.
49924         * modules/chdir-long (Depends-on): Add atexit.
49925         * modules/wait-process (Depends-on): Likewise.
49926
49927 2008-11-02  Bruno Haible  <bruno@clisp.org>
49928
49929         * gnulib-tool: New option --with-obsolete.
49930         (func_usage): Document it.
49931         (func_modules_transitive_closure): Drop obsolete dependencies if
49932         incobsolete is not true.
49933         (func_import): Read and save the incobsolete variable to the cache.
49934
49935 2008-11-02  Bruno Haible  <bruno@clisp.org>
49936
49937         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49938         * gnulib-tool: New option --extract-status.
49939         (func_usage): Document it.
49940         (sed_extract_prog): Recognize it.
49941         (func_get_status): New function.
49942
49943 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49944
49945         * modules/sockets (License): Change from LGPL to LGPLv2+.
49946
49947 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49948
49949         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49950
49951 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49952
49953         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49954         Mention times and sys_times.
49955         * modules/sys_times, modules/sys_times-tests: New modules.
49956         * modules/times, modules/times-tests: Likewise
49957         * m4/sys_times_h.m4: New file.
49958         * lib/sys_times.in.h: Likewise
49959         * lib/times.c: Likewise.
49960         * tests/test-sys_times.c: Likewise.
49961         * tests/test-times.c: Likewise.
49962         * doc/posix-headers/sys_times.texi: Update.
49963         * doc/posix-functions/times.texi: Update.
49964
49965 2008-10-28  Jim Meyering  <meyering@redhat.com>
49966
49967         * modules/tempname (Depends-on): Add lstat.
49968
49969         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49970
49971 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49972
49973         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49974         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49975         using idiom used elsewhere in gnulib.
49976
49977 2008-10-27  Jim Meyering  <meyering@redhat.com>
49978
49979         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49980
49981 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49982
49983         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49984         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49985         programs.
49986         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49987
49988 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49989
49990         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49991
49992 2008-10-27  Bruno Haible  <bruno@clisp.org>
49993
49994         * tests/test-lstat.c: Include <stdio.h>.
49995
49996 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49997
49998         * modules/lstat-tests: New module.
49999         * tests/test-lstat.c: New file.
50000
50001 2008-10-26  Jim Meyering  <meyering@redhat.com>
50002
50003         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50004
50005 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50006             Bruno Haible  <bruno@clisp.org>
50007
50008         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50009         * modules/configmake (Include): Add a note that the include must come
50010         after all system headers.
50011         * lib/javaversion.c: Include configmake.h after all other includes.
50012
50013 2008-10-26  Bruno Haible  <bruno@clisp.org>
50014
50015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50016         HAVE_STRUCT_RANDOM_DATA to 1.
50017         (gl_STDLIB_H): Simplify.
50018
50019 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50020
50021         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50022         substitute HAVE_STRUCT_RANDOM_DATA.
50023         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50024         random_data.
50025         * modules/stdlib (Makefile.am): Substitute
50026         HAVE_STRUCT_RANDOM_DATA.
50027
50028 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50029
50030         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50031         * doc/gnulib-intro.texi (Copyright): Likewise.
50032
50033 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50034
50035         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50036         findings.
50037
50038 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50039             Bruno Haible  <bruno@clisp.org>
50040
50041         * lib/unistd.in.h: Include <winsock2.h>.
50042         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50043         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50044         Provide dummy declarations.
50045         (gethostname): Override.
50046         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50047         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50048         gl_PREREQ_SYS_H_WINSOCK2.
50049         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50050         * doc/posix-functions/gethostname.texi: More details.
50051
50052 2008-10-25  Bruno Haible  <bruno@clisp.org>
50053
50054         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50055         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50056         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50057
50058         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50059         here ...
50060         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50061         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50062         gl_UNISTD_H_DEFAULTS.
50063
50064 2008-10-25  Eric Blake  <ebb9@byu.net>
50065
50066         signbit: avoid spurious compiler failure
50067         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50068         declarations inside function.
50069
50070 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50071             Bruno Haible  <bruno@clisp.org>
50072
50073         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50074         * modules/random_r (Depends-on): Add stdint.
50075
50076 2008-10-24  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50079         Eggert.
50080         * modules/strerror (License): Likewise.
50081
50082 2008-10-24  Jim Meyering  <meyering@redhat.com>
50083
50084         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50085         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50086
50087 2008-10-24  Eric Blake  <ebb9@byu.net>
50088
50089         getgroups: fix compilation when getgroups is available
50090         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50091         but with <config.h> override of getgroups disabled.
50092
50093 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50094
50095         * doc/gnulib.texi (Header files): Add note about C++ problems.
50096         Explained by Bruno Haible <bruno@clisp.org>.
50097
50098 2008-10-23  Bruno Haible  <bruno@clisp.org>
50099
50100         Define a dummy SA_NODEFER macro on Interix.
50101         * lib/signal.in.h (SA_NODEFER): Define fallback.
50102         Reported by Aleksey Cheusov <cheusov@tut.by> via
50103         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50104
50105 2008-10-23  Bruno Haible  <bruno@clisp.org>
50106
50107         * modules/freadahead (License): Change to LGPLv2+.
50108         Suggested by Simon Josefsson.
50109
50110 2008-10-23  Jim Meyering  <meyering@redhat.com>
50111
50112         random_r: new module
50113         * modules/random_r: New file.
50114         * m4/random_r.m4: New file.
50115         * lib/random_r.c: New file, from glibc.
50116         * modules/random_r-tests: New file.
50117         * tests/test-random_r.c: New file.
50118         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50119          Declare.
50120         (RAND_MAX): Define.
50121         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50122         * modules/stdlib: Substitute them, too.
50123         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50124         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50125         * doc/glibc-functions/random_r.texi: Likewise.
50126         * doc/glibc-functions/setstate_r.texi: Likewise.
50127         * doc/glibc-functions/srandom_r.texi: Likewise.
50128         * config/srclist.txt: Mention it.
50129
50130 2008-10-23  David Lutterkort  <lutter@redhat.com>
50131
50132         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50133         link requirement
50134
50135 2008-10-23  Jim Meyering  <meyering@redhat.com>
50136
50137         selinux-h: mark parameters of stub functions as intentionally unused
50138         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50139         * lib/se-context.in.h: Likewise.
50140
50141 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50142
50143         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50144
50145 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50146
50147         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50148
50149 2008-10-22  Eric Blake  <ebb9@byu.net>
50150
50151         glthread/thread: avoid compiler warning
50152         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50153         Add unreachable abort to silence compiler.
50154
50155 2008-10-22  Eric Blake  <ebb9@byu.net>
50156
50157         netdb: also supply struct addrinfo for cygwin 1.5.x
50158         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50159         older cygwin.
50160         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50161         cygwin.
50162         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50163
50164 2008-10-22  Bruno Haible  <bruno@clisp.org>
50165
50166         * users.txt: Update entry about pspp.
50167
50168 2008-10-21  Bruno Haible  <bruno@clisp.org>
50169
50170         Simplification.
50171         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50172         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50173
50174         Simplification.
50175         * lib/ioctl.c (ioctl): Don't undefine.
50176         * lib/socket.c (socket): Don't undefine.
50177
50178         Remove unused module indicator macros.
50179         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50180         GNULIB_$1 as a C macro.
50181
50182         * doc/posix-functions/close.texi: Undo last change.
50183         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50184         Windows platforms.
50185
50186 2008-10-21  Bruno Haible  <bruno@clisp.org>
50187
50188         Add gethostname() declaration to <unistd.h>.
50189         * lib/unistd.in.h (gethostname): New declaration.
50190         * lib/gethostname.c: Include <unistd.h>.
50191         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50192         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50194         and HAVE_GETHOSTNAME.
50195         * modules/gethostname (Depends-on): Add unistd.
50196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50197         (Include): Specify <unistd.h>.
50198         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50199         HAVE_GETHOSTNAME.
50200         * tests/test-gethostname.c: Include <unistd.h> first.
50201
50202 2008-10-21  Bruno Haible  <bruno@clisp.org>
50203
50204         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50205         * modules/select-tests (Depends-on): Likewise.
50206         Reported by Simon Josefsson.
50207
50208 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50209
50210         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50211         * lib/accept.c: New file, based on winsock.c.
50212         * lib/bind.c: New file, based on winsock.c.
50213         * lib/connect.c: New file, based on winsock.c.
50214         * lib/getpeername.c: New file, based on winsock.c.
50215         * lib/getsockname.c: New file, based on winsock.c.
50216         * lib/getsockopt.c: New file, based on winsock.c.
50217         * lib/ioctl.c: New file, based on winsock.c.
50218         * lib/listen.c: New file, based on winsock.c.
50219         * lib/recv.c: New file, based on winsock.c.
50220         * lib/recvfrom.c: New file, based on winsock.c.
50221         * lib/send.c: New file, based on winsock.c.
50222         * lib/sendto.c: New file, based on winsock.c.
50223         * lib/setsockopt.c: New file, based on winsock.c.
50224         * lib/shutdown.c: New file, based on winsock.c.
50225         * lib/socket.c: New file, based on winsock.c.
50226         * lib/w32sock.h: New file, based on winsock.c.
50227         * lib/winsock.c: Remove file.
50228         * modules/accept: Likewise.
50229         * modules/bind: Likewise.
50230         * modules/connect: Likewise.
50231         * modules/getpeername: Likewise.
50232         * modules/getsockname: Likewise.
50233         * modules/getsockopt: Likewise.
50234         * modules/ioctl: Likewise.
50235         * modules/listen: Likewise.
50236         * modules/recv: Likewise.
50237         * modules/recvfrom: Likewise.
50238         * modules/send: Likewise.
50239         * modules/sendto: Likewise.
50240         * modules/setsockopt: Likewise.
50241         * modules/shutdown: Likewise.
50242         * modules/socket: Use socket.c instead of winsock.c.
50243         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50244         * doc/posix-functions/accept.texi: Doc fix.
50245         * doc/posix-functions/bind.texi: Doc fix.
50246         * doc/posix-functions/close.texi: Doc fix.
50247         * doc/posix-functions/connect.texi: Doc fix.
50248         * doc/posix-functions/getpeername.texi: Doc fix.
50249         * doc/posix-functions/getsockname.texi: Doc fix.
50250         * doc/posix-functions/getsockopt.texi: Doc fix.
50251         * doc/posix-functions/ioctl.texi: Doc fix.
50252         * doc/posix-functions/listen.texi: Doc fix.
50253         * doc/posix-functions/recv.texi: Doc fix.
50254         * doc/posix-functions/recvfrom.texi: Doc fix.
50255         * doc/posix-functions/send.texi: Doc fix.
50256         * doc/posix-functions/sendto.texi: Doc fix.
50257         * doc/posix-functions/setsockopt.texi: Doc fix.
50258         * doc/posix-functions/shutdown.texi: Doc fix.
50259         * doc/posix-functions/socket.texi: Doc fix.
50260
50261 2008-10-20  Bruno Haible  <bruno@clisp.org>
50262
50263         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50264         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50265         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50266         as an alias for SIGABRT.
50267         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50268         (sigaction): Map it to SIGABRT.
50269         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50270
50271 2008-10-20  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/fts.c: Don't include lstat.h.
50274         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50275
50276         Move the lstat() declaration to <sys/stat.h>.
50277         * lib/lstat.h: Remove file.
50278         * lib/sys_stat.in.h: Add special invocation convention.
50279         (lstat): New declaration.
50280         * lib/lstat.c (orig_lstat): New function.
50281         (rpl_lstat): Use orig_lstat instead of lstat.
50282         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50283         AC_C_INLINE. Set REPLACE_LSTAT.
50284         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50285         and REPLACE_LSTAT.
50286         * modules/lstat (Files): Remove lib/lstat.h.
50287         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50288         (Include): Specify <sys/stat.h> instead of lstat.h.
50289         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50290         REPLACE_LSTAT.
50291         * NEWS: Mention the change.
50292
50293 2008-10-20  Bruno Haible  <bruno@clisp.org>
50294
50295         * modules/posix_spawn-tests: New file.
50296         * tests/test-posix_spawn3.c: New file.
50297
50298 2008-10-20  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50301         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50302         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50303         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50304         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50305
50306 2008-10-20  Bruno Haible  <bruno@clisp.org>
50307
50308         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50309         of posix_spawn on AIX 5.3.
50310
50311 2008-10-20  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50314
50315 2008-10-20  Bruno Haible  <bruno@clisp.org>
50316
50317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50318         of AC_LANG_PROGRAM.
50319
50320 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50321
50322         * lib/netdb.in.h: Don't define GNU specific constants until they
50323         are supported or needed.  Reported by Bruno Haible
50324         <bruno@clisp.org>.
50325
50326 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50327
50328         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50329
50330 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50331
50332         * lib/getaddrinfo.h: Remove file.
50333         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50334         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50335         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50336         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50337         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50338         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50339         * tests/test-getaddrinfo.c: Likewise.
50340         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50341         * NEWS: Mention change.
50342
50343 2008-10-19  Bruno Haible  <bruno@clisp.org>
50344
50345         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50346
50347 2008-10-19  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/wait-process.c: Include simply <sys/wait.h>.
50350         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50351         WIFSTOPPED): Remove fallback definitions.
50352         * modules/wait-process (Depends-on): Add sys_wait.
50353
50354         New module 'sys_wait'.
50355         * modules/sys_wait: New file.
50356         * lib/sys_wait.in.h: New file, partially copied from
50357         lib/wait-process.c.
50358         * m4/sys_wait_h.m4: New file.
50359         * doc/posix-headers/sys_wait.texi: Mention the new module.
50360
50361 2008-10-19  Bruno Haible  <bruno@clisp.org>
50362
50363         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50364
50365 2008-10-19  Bruno Haible  <bruno@clisp.org>
50366
50367         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50368         * lib/wait-process.c (WAIT_T): Remove type.
50369         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50370         (wait_subprocess): Update.
50371
50372 2008-10-19  Bruno Haible  <bruno@clisp.org>
50373
50374         New module 'atoll'.
50375         * modules/atoll: New file.
50376         * lib/stdlib.in.h (atoll): New declaration.
50377         * lib/atoll.c: New file, from glibc with modifications.
50378         * m4/atoll.m4: New file.
50379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50380         HAVE_ATOLL.
50381         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50382         * doc/posix-functions/atoll.texi: Mention the new module.
50383
50384 2008-10-19  Bruno Haible  <bruno@clisp.org>
50385
50386         Add strtoull() declaration to <stdlib.h>.
50387         * lib/stdlib.in.h (strtoull): New declaration.
50388         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50389         Set HAVE_STRTOULL.
50390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50391         HAVE_STRTOULL.
50392         * modules/strtoull (Depends-on): Add stdlib.
50393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50394         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50395         HAVE_STRTOULL.
50396
50397 2008-10-19  Bruno Haible  <bruno@clisp.org>
50398
50399         Add strtoll() declaration to <stdlib.h>.
50400         * lib/stdlib.in.h (strtoll): New declaration.
50401         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50402         Set HAVE_STRTOLL.
50403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50404         HAVE_STRTOLL.
50405         * modules/strtoll (Depends-on): Add stdlib.
50406         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50407         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50408
50409 2008-10-19  Bruno Haible  <bruno@clisp.org>
50410
50411         * modules/bcopy (Depends-on): Add strings.
50412         (Include): Specify <strings.h>.
50413
50414 2008-10-19  Bruno Haible  <bruno@clisp.org>
50415
50416         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50417
50418 2008-10-19  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50421         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50422         mingw.
50423
50424 2008-10-19  Bruno Haible  <bruno@clisp.org>
50425
50426         * lib/atanl.c: Don't include isnanl.h.
50427         * lib/cosl.c: Likewise.
50428         * lib/ldexpl.c: Likewise.
50429         * lib/logl.c: Likewise.
50430         * lib/sinl.c: Likewise.
50431         * lib/sqrtl.c: Likewise.
50432         * lib/tanl.c: Likewise.
50433
50434         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50435         * lib/isnanf.h: Remove file.
50436         * lib/isnand.h: Remove file.
50437         * lib/isnanl.h: Remove file.
50438         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50439         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50440         macros.
50441         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50442         HAVE_ISNANF, don't define it as a C macro.
50443         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50444         HAVE_ISNAND, don't define it as a C macro.
50445         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50446         HAVE_ISNANL, don't define it as a C macro.
50447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50448         HAVE_ISNAN[FDL].
50449         * modules/isnanf (Files): Remove lib/isnanf.h.
50450         (Depends-on): Add math.
50451         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50452         (Include): Specify <math.h> instead of isnanf.h.
50453         * modules/isnand (Files): Remove lib/isnand.h.
50454         (Depends-on): Add math.
50455         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50456         (Include): Specify <math.h> instead of isnand.h.
50457         * modules/isnanl (Files): Remove lib/isnanl.h.
50458         (Depends-on): Add math.
50459         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50460         (Include): Specify <math.h> instead of isnanl.h.
50461         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50462         HAVE_ISNAN[FDL].
50463         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50464         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50465         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50466         * NEWS: Mention the change.
50467
50468 2008-10-18  Bruno Haible  <bruno@clisp.org>
50469
50470         Add getusershell(), setusershell(), endusershell() declarations to
50471         <unistd.h>.
50472         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50473         declarations.
50474         * lib/getusershell.c: Include unistd.h.
50475         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50476         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50477         HAVE_GETUSERSHELL.
50478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50479         and HAVE_GETUSERSHELL.
50480         * modules/getusershell (Depends-on): Add unistd, extensions.
50481         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50482         (Include): Specify <unistd.h>.
50483         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50484         HAVE_GETUSERSHELL.
50485
50486 2008-10-18  Bruno Haible  <bruno@clisp.org>
50487
50488         Add a getloadavg() declaration to <stdlib.h>.
50489         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50490         getloadavg declaration.
50491         (getloadavg): New declaration.
50492         * lib/getloadavg.c: Include <stdlib.h> first.
50493         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50494         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50495         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50497         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50498         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50499         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50500         (Include): Specify <stdlib.h>.
50501         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50502         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50503
50504 2008-10-18  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/dirchownmod.c: Don't include lchmod.h.
50507
50508         Move the lchmod() declaration to <sys/stat.h>.
50509         * lib/lchmod.h: Remove file.
50510         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50511         (lchmod): New declaration, moved here from lib/lchown.h.
50512         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50513         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50515         and HAVE_LCHMOD.
50516         * modules/lchmod (Files): Remove lib/lchmod.h.
50517         (Depends-on): Add sys_stat, extensions.
50518         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50519         (Include): Specify <sys/stat.h> instead of lchmod.h.
50520         * modules/sys_stat (Depends-on): Add link-warning.
50521         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50522         definition of GL_LINK_WARNING.
50523         * NEWS: Mention the change.
50524
50525 2008-10-18  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/fchdir.c: Don't include dirfd.h.
50528         * lib/fts.c: Likewise.
50529         * lib/getcwd.c: Likewise.
50530         * lib/glob.c: Likewise.
50531
50532         Move the dirfd() declaration to <dirent.h>.
50533         * lib/dirfd.h: Remove file.
50534         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50535         (dirfd): New declaration.
50536         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50537         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50538         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50539         HAVE_DECL_DIRFD.
50540         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50541         HAVE_DECL_DIRFD.
50542         * modules/dirfd (Files): Remove lib/dirfd.h.
50543         (Depends-on): Add dirent, extensions.
50544         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50545         (Include): Specify <dirent.h> instead of dirfd.h.
50546         * modules/dirent (Depends-on): Add link-warning.
50547         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50548         definition of GL_LINK_WARNING.
50549         * NEWS: Mention the change.
50550
50551 2008-10-18  Bruno Haible  <bruno@clisp.org>
50552
50553         Move the euidaccess() declaration to <unistd.h>.
50554         * lib/euidaccess.h: Remove file.
50555         * lib/unistd.in.h (euidaccess): New declaration.
50556         * lib/euidaccess.c: Don't include euidaccess.h.
50557         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50558         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50560         and HAVE_EUIDACCESS.
50561         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50562         (Depends-on): Add unistd.
50563         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50564         (Include): Specify <unistd.h> instead of euidaccess.h.
50565         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50566         HAVE_EUIDACCESS.
50567         * NEWS: Mention the change.
50568
50569 2008-10-18  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50572
50573         Move the getdomainname() declaration to <unistd.h>.
50574         * lib/getdomainname.h: Remove file.
50575         * lib/unistd.in.h (getdomainname): New declaration.
50576         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50577         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50578         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50579         HAVE_GETDOMAINNAME.
50580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50581         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50582         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50583         (Depends-on): Add unistd, extensions.
50584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50585         (Includes): Specify <unistd.h> instead of getdomainname.h.
50586         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50587         HAVE_GETDOMAINNAME.
50588         * NEWS: Mention the change.
50589
50590 2008-10-18  Bruno Haible  <bruno@clisp.org>
50591
50592         * modules/dirent: New file.
50593         * m4/dirent_h.m4: New file.
50594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50595         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50596         * modules/fchdir (Files): Remove lib/dirent.in.h.
50597         (Depends-on): Add dirent.
50598         (Makefile.am): Move rules to modules/dirent.
50599         * doc/posix-headers/dirent.texi: Mention the new module.
50600
50601 2008-10-18  Bruno Haible  <bruno@clisp.org>
50602
50603         Avoid -Wunused-parameter warnings in public gnulib header files.
50604         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50605         macro.
50606         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50607
50608 2008-10-18  Bruno Haible  <bruno@clisp.org>
50609
50610         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50611         * doc/glibc-functions/error.texi: Mention the module 'error'.
50612         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50613         * doc/glibc-functions/getdomainname.texi: Mention the module
50614         'getdomainname'.
50615         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50616         * doc/glibc-functions/getpagesize.texi: Mention the module
50617         'getpagesize'.
50618         * doc/glibc-functions/getusershell.texi: Mention the module
50619         'getusershell'.
50620         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50621         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50622         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50623         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50624         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50625         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50626         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50627         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50628         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50629         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50630         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50631         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50632         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50633         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50634
50635 2008-10-17  Bruno Haible  <bruno@clisp.org>
50636
50637         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50638         HP-UX and IRIX, use -0.0L.
50639         * tests/test-ceill.c (minus_zero): Likewise.
50640         * tests/test-floorl.c (minus_zero): Likewise.
50641         * tests/test-frexpl.c (minus_zero): Likewise.
50642         * tests/test-isnan.c (minus_zerol): Likewise.
50643         * tests/test-isnanl.h (minus_zero): Likewise.
50644         * tests/test-ldexpl.c (minus_zero): Likewise.
50645         * tests/test-roundl.c (minus_zero): Likewise.
50646         * tests/test-signbit.c (minus_zerol): Likewise.
50647         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50648         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50649         * tests/test-truncl.c (minus_zero): Likewise.
50650         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50651         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50652         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50653         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50654
50655 2008-10-17  Bruno Haible  <bruno@clisp.org>
50656
50657         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50658         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50659         that it gets activated only for gcc >= 3.0.
50660         * lib/dirent.in.h: Likewise.
50661         * lib/errno.in.h: Likewise.
50662         * lib/fcntl.in.h: Likewise.
50663         * lib/float.in.h: Likewise.
50664         * lib/iconv.in.h: Likewise.
50665         * lib/inttypes.in.h: Likewise.
50666         * lib/locale.in.h: Likewise.
50667         * lib/math.in.h: Likewise.
50668         * lib/netdb.in.h: Likewise.
50669         * lib/netinet_in.in.h: Likewise.
50670         * lib/search.in.h: Likewise.
50671         * lib/signal.in.h: Likewise.
50672         * lib/spawn.in.h: Likewise.
50673         * lib/stdarg.in.h: Likewise.
50674         * lib/stdint.in.h: Likewise.
50675         * lib/stdio.in.h: Likewise.
50676         * lib/stdlib.in.h: Likewise.
50677         * lib/string.in.h: Likewise.
50678         * lib/strings.in.h: Likewise.
50679         * lib/sys_file.in.h: Likewise.
50680         * lib/sys_ioctl.in.h: Likewise.
50681         * lib/sys_select.in.h: Likewise.
50682         * lib/sys_socket.in.h: Likewise.
50683         * lib/sys_stat.in.h: Likewise.
50684         * lib/sys_time.in.h: Likewise.
50685         * lib/sysexits.in.h: Likewise.
50686         * lib/time.in.h: Likewise.
50687         * lib/unistd.in.h: Likewise.
50688         * lib/wchar.in.h: Likewise.
50689         * lib/wctype.in.h: Likewise.
50690         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50691
50692 2008-10-17  Jim Meyering  <meyering@redhat.com>
50693
50694         ignore-value: don't depend on inline module
50695         * modules/ignore-value (Depends-on): Remove 'inline'.
50696         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50697         Suggestion from Bruno Haible.
50698
50699 2008-10-17  Bruno Haible  <bruno@clisp.org>
50700
50701         New implementation of condition variables for Win32.
50702         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50703         (gl_linked_waitqueue_t): New type.
50704         (gl_cond_t): Use it.
50705         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50706         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50707         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50708         (glthread_cond_init_func, glthread_cond_wait_func,
50709         glthread_cond_timedwait_func, glthread_cond_signal_func,
50710         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50711         Reimplemented on the basis of gl_linked_waitqueue_t.
50712         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50713         gl_waitqueue_t.
50714         (gl_rwlock_t): Update.
50715         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50716
50717 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50718
50719         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50720         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50721
50722 2008-10-17  Jim Meyering  <meyering@redhat.com>
50723
50724         ignore-value: new module
50725         * modules/ignore-value: New file.
50726         * lib/ignore-value.h: New file.
50727         * MODULES.html.sh (Compiler warning management): New section,
50728         just for this module.  More to come.
50729
50730 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50731
50732         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50733         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50734         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50735
50736 2008-10-16  Jim Meyering  <meyering@redhat.com>
50737
50738         openat-die.c: avoid 'no previous prototype' warning
50739         * lib/openat-die.c: Include "openat.h".
50740         Reported by Reuben Thomas <rrt@sc3d.org>.
50741
50742 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50743
50744         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50745         * lib/netdb.in.h: Fix typo.
50746         Reported by Bruno Haible  <bruno@clisp.org>
50747
50748         * lib/netdb.in.h: Include sys/socket.h for platforms without
50749         netdb.h, to get structures like hostent on MinGW.
50750         * modules/netdb (Depends-on): Add sys_socket.
50751
50752 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50753
50754         * modules/netdb, modules/netdb-tests: New file.
50755         * m4/netdb_h.m4: New file.
50756         * lib/netdb.in.h: Add, currently just an empty file pending
50757         definitions.
50758         * tests/test-netdb.c: New file.
50759         * doc/posix-headers/netdb.texi: Mention that we replace it if
50760         needed.
50761         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50762         netdb.
50763
50764 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50765
50766         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50767         with code.
50768
50769 2008-10-13  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/glthread/cond.c (glthread_cond_wait_func,
50772         glthread_cond_timedwait_func): Add a comment.
50773
50774 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50775
50776         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50777         * tests/test-select.c: Likewise,
50778
50779 2008-10-13  Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/glthread/cond.c (glthread_cond_wait_func,
50782         glthread_cond_timedwait_func): Fix variable name.
50783         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50784
50785 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50786
50787         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50788         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50789         struct sockaddr.sa_len.
50790         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50791
50792 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50793
50794         * build-aux/pmccabe2html: Add css and css_url parameters.
50795
50796 2008-10-12  Bruno Haible  <bruno@clisp.org>
50797
50798         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50799         calling aclx_get.
50800         Reported by Rainer Tammer <tammer@tammer.net>.
50801
50802 2008-10-12  Bruno Haible  <bruno@clisp.org>
50803
50804         Use msvcrt aware primitives for creation/termination of Win32 threads.
50805         * lib/glthread/thread.c: Include <process.h>.
50806         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50807         (wrapper_func): Update signature.
50808         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50809
50810 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50811             Bruno Haible  <bruno@clisp.org>
50812
50813         Provide a Win32 implementation of the 'cond' module.
50814         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50815         * lib/glthread/cond.c (glthread_cond_init_func,
50816         glthread_cond_wait_func, glthread_cond_timedwait_func,
50817         glthread_cond_signal_func, glthread_cond_broadcast_func,
50818         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50819         * modules/cond (Dependencies): Add gettimeofday.
50820
50821 2008-10-11  Bruno Haible  <bruno@clisp.org>
50822
50823         Make sleep work on older versions of mingw.
50824         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50825         only whether it exists.
50826         * doc/posix-functions/sleep.texi: Mention the problem with older
50827         versions of mingw.
50828
50829 2008-10-11  Bruno Haible  <bruno@clisp.org>
50830
50831         New module 'shutdown'.
50832         * modules/shutdown: New file.
50833         * lib/sys_socket.in.h (shutdown): New declaration.
50834         * lib/winsock.c (shutdown): New function.
50835         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50836         GNULIB_SHUTDOWN.
50837         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50838         * doc/posix-functions/shutdown.texi: Document the new module.
50839
50840 2008-10-11  Jim Meyering  <meyering@redhat.com>
50841
50842         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50843
50844 2008-10-11  Bruno Haible  <bruno@clisp.org>
50845
50846         New module 'fclose'.
50847         * modules/fclose: New file.
50848         * lib/stdio.in.h (fclose): New declaration.
50849         * lib/fclose.c: New file.
50850         * m4/fclose.m4: New file.
50851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50852         REPLACE_FCLOSE.
50853         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50854         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50855         REPLACE_FCLOSE.
50856         * modules/close (Depends-on): fclose.
50857         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50858
50859 2008-10-11  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50862         set errno and don't call _close.
50863
50864 2008-10-10  Bruno Haible  <bruno@clisp.org>
50865
50866         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50867         ACL, not afterwards. Fixes test failure on Cygwin.
50868
50869 2008-10-09  Ben Pfaff  <blp@gnu.org>
50870
50871         * build-aux/announce-gen: Fix gnulib version related part of usage
50872         message.  Die with a useful error message if no tarballs are
50873         found.
50874
50875 2008-10-10  Jim Meyering  <meyering@redhat.com>
50876
50877         bootstrap: use git's --depth=N option only if it's supported
50878         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50879         recognize the --depth option.  Reported by Pádraig Brady.
50880
50881 2008-10-09  Bruno Haible  <bruno@clisp.org>
50882
50883         New module 'ioctl'.
50884         * modules/ioctl: New file.
50885         * lib/sys_socket.in.h (ioctl): Remove declaration.
50886         * lib/winsock.c: Include <sys/ioctl.h>.
50887         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50888         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50889         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50890         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50891         * doc/posix-functions/ioctl.texi: Mention the new module.
50892
50893 2008-10-09  Bruno Haible  <bruno@clisp.org>
50894
50895         New module 'sys_ioctl'.
50896         * lib/sys_ioctl.in.h: New file.
50897         * m4/sys_ioctl_h.m4: New file.
50898         * modules/sys_ioctl: New file.
50899         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50900
50901 2008-10-09  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50904         * lib/winsock.c: Include <stdarg.h>.
50905         (rpl_ioctl): Change to second argument 'int' and then varargs.
50906
50907 2008-10-09  Bruno Haible  <bruno@clisp.org>
50908
50909         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50910         when the sys_socket module is present and the system has <winsock2.h>.
50911
50912 2008-10-09  Bruno Haible  <bruno@clisp.org>
50913
50914         * doc/posix-functions/close.texi: Mention module 'close' instead of
50915         module 'sys_socket'.
50916
50917 2008-10-09  Bruno Haible  <bruno@clisp.org>
50918
50919         * doc/glibc-headers/sys_ioctl.texi: New file.
50920         * doc/gnulib.texi: Include it.
50921
50922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50923             Bruno Haible  <bruno@clisp.org>
50924
50925         Combine the two replacements of 'close'.
50926         * lib/sys_socket.in.h (close): Define to a reminder to include
50927         <unistd.h>.
50928         (_gl_close_fd_maybe_socket): New declaration.
50929         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50930         * lib/winsock.c (close): Remove undefinition.
50931         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50932         needed for the gnulib module 'close'.
50933         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50934         define to an error symbol or to a warning, if suitable.
50935         * lib/close.c: Include <sys/socket.h>.
50936         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50937         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50938         UNISTD_H_HAVE_WINSOCK2_H.
50939         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50941         UNISTD_H_HAVE_WINSOCK2_H.
50942         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50943         (configure.ac): Set a module indicator.
50944         (Makefile.am): Substitute GNULIB_CLOSE.
50945         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50946         * modules/poll-tests (Depends-on): Add close.
50947         * modules/select-tests (Depends-on): Likewise.
50948
50949 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50950             Bruno Haible  <bruno@clisp.org>
50951
50952         New module 'close'.
50953         * modules/close: New file.
50954         * lib/unistd.in.h (close): Move declaration out of the
50955         FCHDIR_REPLACEMENT scope.
50956         (_gl_unregister_fd): New declaration.
50957         * lib/close.c: New file.
50958         * lib/fchdir.c (rpl_close): Remove function.
50959         * m4/close.m4: New file.
50960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50961         close.
50962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50963         REPLACE_CLOSE.
50964         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50965         REPLACE_CLOSE.
50966         * modules/fchdir (Depends-on): Add close.
50967
50968 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50969             Bruno Haible  <bruno@clisp.org>
50970
50971         * lib/fcntl.in.h (open): Simplify conditionals.
50972         (_gl_register_fd): New declaration.
50973         * lib/fchdir.c (rpl_open): Remove function.
50974         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50975         also.
50976         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50978         open.
50979
50980 2008-10-09  Jim Meyering  <meyering@redhat.com>
50981
50982         GNUmakefile: use the more name-space-friendly "_version"
50983         * top/GNUmakefile (_dummy): Update.
50984         (_version): Rename from "version".
50985
50986 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50987             Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50990         rpl_close.
50991         (_gl_register_fd): New function, extracted from rpl_open.
50992         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50993         (rpl_open, rpl_opendir): Use _gl_register_fd.
50994
50995 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50996
50997         Fix organization of 'open' replacement.
50998         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50999         (gl_FUNC_OPEN): Use it.
51000         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51001
51002 2008-10-08  Bruno Haible  <bruno@clisp.org>
51003
51004         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51005
51006 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51007
51008         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51009         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51010         listen).
51011
51012 2008-10-08  Eric Blake  <ebb9@byu.net>
51013
51014         GNUmakefile: add 'make version' target
51015         * top/GNUmakefile (_curr-ver): Split version update rules...
51016         (version): ...into a target.
51017
51018 2008-10-07  Bruno Haible  <bruno@clisp.org>
51019
51020         Use a more portable replacement expression for -0.0L.
51021         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51022         instead of -0.0L. Fix m4 quotation.
51023
51024         * tests/test-signbit.c: Include <float.h>.
51025         (minus_zero): New variable.
51026         (test_signbitl): Use minus_zero instead of -zero.
51027         * modules/signbit-tests (Depends-on): Add float.
51028
51029         * tests/test-ceill.c: Include <float.h>.
51030         (zero): Remove variable.
51031         (minus_zero): New variable.
51032         (main): Use minus_zero instead of -zero.
51033         * modules/ceill-tests (Depends-on): Add float.
51034
51035         * tests/test-floorl.c: Include <float.h>.
51036         (zero): Remove variable.
51037         (minus_zero): New variable.
51038         (main): Use minus_zero instead of -zero.
51039         * modules/floorl-tests (Depends-on): Add float.
51040
51041         * tests/test-roundl.c: Include <float.h>.
51042         (zero): Remove variable.
51043         (minus_zero): New variable.
51044         (main): Use minus_zero instead of -zero.
51045         * modules/roundl-tests (Depends-on): Add float.
51046
51047         * tests/test-truncl.c: Include <float.h>.
51048         (zero): Remove variable.
51049         (minus_zero): New variable.
51050         (main): Use minus_zero instead of -zero.
51051         * modules/truncl-tests (Depends-on): Add float.
51052
51053         * tests/test-frexpl.c (zero): Remove variable.
51054         (minus_zero): New variable.
51055         (main): Use minus_zero instead of -zero.
51056         * modules/frexpl-tests (Depends-on): Add float.
51057
51058         * tests/test-isnan.c (zerol): Remove variable.
51059         (minus_zerol): New variable.
51060         (test_long_double): Use minus_zerol instead of -zerol.
51061         * modules/isnan-tests (Depends-on): Add float.
51062
51063         * tests/test-isnanl.h (zero): Remove variable.
51064         (minus_zero): New variable.
51065         (main): Use minus_zero instead of -zero.
51066         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51067         * modules/isnanl-tests (Depends-on): Add float.
51068
51069         * tests/test-ldexpl.c (zero): Remove variable.
51070         (minus_zero): New variable.
51071         (main): Use minus_zero instead of -zero.
51072         * modules/ldexpl-tests (Depends-on): Add float.
51073
51074         * tests/test-snprintf-posix.h (zerol): Remove variable.
51075         (minus_zerol): New variable.
51076         (test_function): Use minus_zerol instead of -zerol.
51077         * modules/snprintf-posix-tests (Depends-on): Add float.
51078         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51079
51080         * tests/test-sprintf-posix.h (zerol): Remove variable.
51081         (minus_zerol): New variable.
51082         (test_function): Use minus_zerol instead of -zerol.
51083         * modules/sprintf-posix-tests (Depends-on): Add float.
51084         * modules/vsprintf-posix-tests (Depends-on): Add float.
51085
51086         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51087         (minus_zerol): New variable.
51088         (test_function): Use minus_zerol instead of -zerol.
51089         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51090
51091         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51092         (minus_zerol): New variable.
51093         (test_function): Use minus_zerol instead of -zerol.
51094         * modules/vasprintf-posix-tests (Depends-on): Add float.
51095
51096 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51097
51098         * MODULES.html.sh (Support for building documentation): Mention
51099         pmccabe2html.  Sort entries.
51100
51101         Add pmccabe2html module, from gnupdf.
51102         * build-aux/pmccabe.css: New file.
51103         * build-aux/pmccabe2html: New file.
51104         * m4/pmccabe2html.m4: New file.
51105         * modules/pmccabe2html: New file.
51106
51107 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51108
51109         flock: new module
51110         * MODULES.html.sh: Add to list of modules.
51111         * lib/flock.c: flock implementation for Windows and Unix systems
51112         which have fcntl.
51113         * doc/glibc-functions/flock.texi: Update documentation.
51114         * lib/sys_file.in.h: <sys/file.h> header file.
51115         * m4/flock.m4: M4 macros.
51116         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51117         * modules/flock: flock module.
51118         * modules/flock-tests: flock tests module.
51119         * modules/sys_file: sys/file.h module.
51120         * tests/test-flock.c: test suite for flock.
51121
51122 2008-10-06  Jim Meyering  <meyering@redhat.com>
51123
51124         bootstrap: check for LT_INIT more portably still ;-)
51125         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51126         Spotted by Bruno Haible.
51127
51128 2008-10-06  Eric Blake  <ebb9@byu.net>
51129
51130         test-signbit: avoid tripping Irix cc bug on -0.0L
51131         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51132         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51133         entire testsuite consistent and avoids an Irix 6.2 bug.
51134
51135 2008-10-05  Bruno Haible  <bruno@clisp.org>
51136             Jim Meyering  <jim@meyering.net>
51137
51138         Add an option for ignoring EPIPE during close_stdout.
51139         * lib/closeout.h: Include <stdbool.h>.
51140         (close_stdout_set_ignore_EPIPE): New declaration.
51141         * lib/closeout.c: Include <stdbool.h>.
51142         (ignore_EPIPE): New variable.
51143         (close_stdout_set_ignore_EPIPE): New function.
51144         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51145         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51146         failure.
51147         * modules/closeout (Depends-on): Add stdbool.
51148
51149 2008-10-05  Bruno Haible  <bruno@clisp.org>
51150
51151         * modules/accept: New file.
51152         * modules/bind: New file.
51153         * modules/connect: New file.
51154         * modules/getpeername: New file.
51155         * modules/getsockname: New file.
51156         * modules/getsockopt: New file.
51157         * modules/listen: New file.
51158         * modules/recv: New file.
51159         * modules/recvfrom: New file.
51160         * modules/send: New file.
51161         * modules/sendto: New file.
51162         * modules/setsockopt: New file.
51163         * modules/socket: New file.
51164         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51165         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51166         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51167         the particular module is requested. Add a link warning when the
51168         particular module is not requested.
51169         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51170         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51171         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51172         the particular module is requested.
51173         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51174         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51175         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51176         * modules/sys_socket (Depends-on): Add link-warning.
51177         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51178         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51179         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51180         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51181         GL_LINK_WARNING.
51182         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51183         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51184         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51185         * doc/posix-functions/getpeername.texi: Mention the new module
51186         'getpeername'.
51187         * doc/posix-functions/getsockname.texi: Mention the new module
51188         'getsockname'.
51189         * doc/posix-functions/getsockopt.texi: Mention the new module
51190         'getsockopt'.
51191         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51192         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51193         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51194         * doc/posix-functions/send.texi: Mention the new module 'send'.
51195         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51196         * doc/posix-functions/setsockopt.texi: Mention the new module
51197         'setsockopt'.
51198         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51199         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51200         listen, connect, accept.
51201         * modules/select-tests (Depends-on): Likewise.
51202
51203 2008-10-05  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/winsock.c (strerror): Remove unused #undef.
51206         (rpl_close): Remove unused local variable.
51207
51208         * modules/sys_socket (Depends-on); Add errno.
51209
51210 2008-10-05  Bruno Haible  <bruno@clisp.org>
51211
51212         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51213         (select): Add a link warning when the 'select' module is not used.
51214         * modules/sys_select (Depends-on): Add link-warning.
51215         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51216         Suggested by Paolo Bonzini.
51217
51218 2008-10-05  Jim Meyering  <meyering@redhat.com>
51219
51220         bootstrap: check for LT_INIT more portably
51221         * build-aux/bootstrap: Avoid using grep -E, since it's not
51222         portable enough.  Suggestion from Bruno Haible.
51223
51224 2008-10-05  Bruno Haible  <bruno@clisp.org>
51225
51226         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51227         as being fixed by gnulib.
51228
51229 2008-10-05  Bruno Haible  <bruno@clisp.org>
51230
51231         * modules/select-tests: New file, mostly copied from
51232         modules/sys_select-tests.
51233         * tests/test-select.c: New file, mostly copied from
51234         tests/test-sys_select.c.
51235         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51236         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51237         (Makefile.am): Remove test_sys_select_LDADD.
51238
51239         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51240         to an undefined symbol, for an error message.
51241         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51242         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51243         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51244         winsock-select.c here.
51245         * modules/sys_select (Files): Remove lib/winsock-select.c.
51246         (Depends-on): Remove alloca.
51247         (Makefile.am): Substitute GNULIB_SELECT.
51248         * modules/select: New file.
51249         * doc/posix-functions/select.texi: Update.
51250
51251 2008-10-05  Bruno Haible  <bruno@clisp.org>
51252
51253         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51254         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51255         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51256         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51257         getdtablesize.
51258         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51259         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51260
51261 2008-10-05  Bruno Haible  <bruno@clisp.org>
51262
51263         * modules/getdtablesize-tests: New file.
51264         * tests/test-getdtablesize.c: New file.
51265
51266         New module 'getdtablesize'.
51267         * lib/unistd.in.h (getdtablesize): New declaration.
51268         * lib/getdtablesize.c: New file.
51269         * m4/getdtablesize.m4: New file.
51270         * modules/getdtablesize: New file.
51271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51272         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51273         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51274         HAVE_GETDTABLESIZE.
51275         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51276
51277 2008-10-05  Bruno Haible  <bruno@clisp.org>
51278
51279         * modules/sched (Makefile.am): Fix typo.
51280         Reported by Simon Josefsson.
51281
51282 2008-10-05  Jim Meyering  <meyering@redhat.com>
51283
51284         bootstrap: check for LT_INIT, too
51285         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51286         are deprecated.  Suggestion from Ralf Wildenhues.
51287
51288 2008-10-05  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51291         overriding them by ours.
51292         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51293
51294 2008-10-05  Jim Meyering  <meyering@redhat.com>
51295
51296         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51297         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51298         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51299
51300 2008-10-04  Bruno Haible  <bruno@clisp.org>
51301
51302         * modules/dup2 (License): Change to LGPLv2+.
51303         * modules/sleep (License): Likewise.
51304         * modules/perror (License): Likewise.
51305         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51306         Blake.
51307         * modules/signal (License): Likewise.
51308         * modules/sigprocmask (License): Likewise.
51309         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51310         Meyering.
51311
51312 2008-10-04  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51315         Reported by Rainer Tammer <tammer@tammer.net>.
51316
51317 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51318             Bruno Haible  <bruno@clisp.org>
51319
51320         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51321         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51322         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51323
51324 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51325
51326         filevercmp: new module
51327         * lib/filevercmp.h: New function filevercmp comparing version strings.
51328         * lib/filevercmp.c: Implementation of filevercmp function.
51329         * modules/filevercmp: Module metadata.
51330         * tests/test-filevercmp.c: Unit test for new module.
51331         * modules/filevercmp-tests: Unit test metadata.
51332         * MODULES.html.sh: Add filevercmp module.
51333
51334 2008-10-03  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/c-ctype.h: Add comment.
51337         Reported by Jim Meyering.
51338
51339 2008-10-02  Bruno Haible  <bruno@clisp.org>
51340
51341         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51342
51343 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51344
51345         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51346         name of bootstrap.conf accordingly.
51347
51348 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51349
51350         * build-aux/bootstrap: Install git-merge-changelog configuration
51351         items into .gitconfig if needed.
51352
51353 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51354
51355         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51356         git repository, and initialize/update it accordingly.
51357
51358 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51359
51360         * modules/fsync-tests: New file.
51361         * tests/test-fsync.c: New file.
51362
51363         New module 'fsync'.
51364         * lib/fsync.c: New file.
51365         * m4/fsync.m4: New file.
51366         * modules/fsync: New file.
51367         * lib/unistd.in.h (fsync): New declaration.
51368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51369         GNULIB_FSYNC and HAVE_FSYNC.
51370         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51371         * MODULES.html.sh (posix_functions): Add fsync.
51372         * doc/posix-functions/fsync.texi: Mention the new module.
51373
51374 2008-10-02  Jim Meyering  <meyering@redhat.com>
51375
51376         fts.c: sync with similar code from coreutils' remove.c
51377         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51378         Guard also with "#if defined __linux__", since for now at least,
51379         this code is Linux-kernel-specific.
51380
51381 2008-10-02  Jim Meyering  <meyering@redhat.com>
51382
51383         fts: bug fixes
51384         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51385         Include <sys/vfs.h>, not <sys/statfs.h>.
51386
51387         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51388         Include <sys/vfs.h>, not <sys/statfs.h>.
51389
51390 2008-10-01  Bruno Haible  <bruno@clisp.org>
51391
51392         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51393         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51394         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51395         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51396         * doc/posix-functions/posix_spawnp.texi: Likewise.
51397         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51398         whether posix_spawn actually works.
51399         * m4/pipe.m4 (gl_PIPE): Likewise.
51400         * modules/execute (Files): Add m4/posix_spawn.m4.
51401         * modules/pipe (Files): Add m4/posix_spawn.m4.
51402         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51403
51404 2008-10-01  Jim Meyering  <meyering@redhat.com>
51405
51406         remove trailing spaces
51407         * NEWS: Likewise.
51408         * lib/poll.c (poll): Likewise.
51409         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51410         * lib/winsock.c (rpl_close): Likewise.
51411         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51412         * modules/yield: Likewise.
51413         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51414         * tests/test-sys_select.c (connect_to_socket): Likewise.
51415
51416         fts.c: adjust a new interface to be more generally useful
51417         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51418         (fts_build): Adjust caller.
51419
51420 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51421
51422         * modules/cond-tests: New file.
51423         * tests/test-cond.c: New file.
51424
51425 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51426             Bruno Haible  <bruno@clisp.org>
51427
51428         * modules/cond (Dependencies): Add errno, time.
51429         * lib/glthread/cond.h: Include <time.h>.
51430         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51431         across platforms.
51432
51433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51434             Bruno Haible  <bruno@clisp.org>
51435
51436         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51437
51438 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51439             Bruno Haible  <bruno@clisp.org>
51440
51441         * modules/tls-tests (Depends-on): Add thread, yield.
51442         (configure.ac): Remove all checks.
51443         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51444         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51445         gl_thread_self): Remove definitions. Include glthread/thread.h and
51446         glthread/yield.h instead.
51447         (test_tls): Pass an additional NULL argument to gl_thread_join.
51448
51449 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51450             Bruno Haible  <bruno@clisp.org>
51451
51452         * modules/lock-tests (Depends-on): Add thread, yield.
51453         (configure.ac): Remove all checks.
51454         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51455         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51456         gl_thread_self): Remove definitions. Include glthread/thread.h and
51457         glthread/yield.h instead.
51458         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51459         additional NULL argument to gl_thread_join.
51460
51461 2008-09-30  Bruno Haible  <bruno@clisp.org>
51462
51463         Fix the Win32 implementation of the 'thread' module.
51464         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51465         pointer type.
51466         (gl_thread_self): Invoke gl_thread_self_func.
51467         (gl_thread_self_func): New declaration.
51468         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51469         (do_init_self_key, init_self_key): New functions.
51470         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51471         Remove some fields.
51472         (running_threads, running_lock): Remove variables.
51473         (get_current_thread_handle): New function.
51474         (gl_thread_self_func, wrapper_func, glthread_create_func,
51475         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51476         simplified.
51477
51478 2008-09-30  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51481         files.
51482
51483 2008-09-30  Jim Meyering  <meyering@redhat.com>
51484
51485         fts.m4: correct the test for statfs.f_type
51486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51487         when checking for statfs.f_type.
51488
51489 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51490
51491         tests: avoid some compiler warnings
51492         * tests/test-memchr.c (main): Pass NULL indirectly.
51493         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51494
51495 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51496
51497         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51498         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51499         exactly specified dayshifts.
51500         (dayshift): New rule.
51501         (rel): Add dayshift.
51502         (relative_time_table) [tomorrow, yesterday, today, now]:
51503         Use tDAY_SHIFT in place of tDAY_UNIT.
51504         * tests/test-getdate.c: Add tests for now-disallowed countable
51505         dayshifts, e.g., "4 yesterday ago".
51506
51507 2008-09-29  Bruno Haible  <bruno@clisp.org>
51508
51509         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51510         * tests/test-posix_spawn1.in.sh: Renamed from
51511         tests/test-posix_spawn.in.sh.
51512         * tests/test-posix_spawn2.c: New file.
51513         * tests/test-posix_spawn2.in.sh: New file.
51514         * modules/posix_spawnp-tests (Files): Update.
51515         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51516
51517 2008-09-29  Bruno Haible  <bruno@clisp.org>
51518
51519         Propagate effects of putenv/setenv/unsetenv to child processes.
51520         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51521         * lib/pipe.c (create_pipe): Likewise.
51522
51523 2008-09-29  Bruno Haible  <bruno@clisp.org>
51524
51525         Enable use of shell scripts as executables in mingw.
51526         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51527         run the program as a shell script.
51528         * lib/pipe.c (create_pipe): Likewise.
51529         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51530         resulting array.
51531
51532 2008-09-29  Eric Blake  <ebb9@byu.net>
51533
51534         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51535
51536 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51537
51538         * doc/posix-functions/accept.texi: Update mingw problems.
51539         * doc/posix-functions/bind.texi: Update mingw problems.
51540         * doc/posix-functions/close.texi: Update mingw problems.
51541         * doc/posix-functions/connect.texi: Update mingw problems.
51542         * doc/posix-functions/getpeername.texi: Update mingw problems.
51543         * doc/posix-functions/getsockname.texi: Update mingw problems.
51544         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51545         * doc/posix-functions/ioctl.texi: Update mingw problems.
51546         * doc/posix-functions/listen.texi: Update mingw problems.
51547         * doc/posix-functions/recv.texi: Update mingw problems.
51548         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51549         * doc/posix-functions/select.texi: Update mingw problems.
51550         * doc/posix-functions/send.texi: Update mingw problems.
51551         * doc/posix-functions/sendto.texi: Update mingw problems.
51552         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51553         * doc/posix-functions/socket.texi: Update mingw problems.
51554
51555 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51556             Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/sys_select.in.h: Include sys/time.h.
51559         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51560         * modules/sys_select: Depend on sys_time.
51561         * tests/test-sys_select.c: Test that sys/select.h defines struct
51562         timeval fully.
51563
51564 2008-09-29  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51567         * lib/sys_select.in.h: Likewise.
51568
51569 2008-09-29  Bruno Haible  <bruno@clisp.org>
51570
51571         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51572
51573 2008-09-29  Bruno Haible  <bruno@clisp.org>
51574
51575         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51576         Set LIBSOCKET instead of augmenting LIBS.
51577         * modules/sockets (Link): New section.
51578         * modules/sockets-tests (test_sockets_LDADD): New variable.
51579         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51580         * modules/poll-tests (test_poll_LDADD): New variable.
51581         * NEWS: Document the change.
51582
51583 2008-09-29  Bruno Haible  <bruno@clisp.org>
51584
51585         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51586         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51587         ARPA_INET_H directly.
51588         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51589
51590 2008-09-28  Bruno Haible  <bruno@clisp.org>
51591
51592         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51593         from gl_HEADER_SYS_SOCKET.
51594         (gl_HEADER_SYS_SOCKET): Invoke it.
51595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51596
51597 2008-09-28  Bruno Haible  <bruno@clisp.org>
51598
51599         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51600         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51601         Needed on OSF/1 4.0.
51602
51603 2008-09-28  Bruno Haible  <bruno@clisp.org>
51604
51605         Override open more carefully.
51606         * lib/open.c (orig_open): New function.
51607         (rpl_open): Use orig_open instead of open.
51608         * lib/fcntl.in.h: Add special invocation convention.
51609         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51610         (gl_FUNC_OPEN): Invoke it.
51611
51612         Override freopen more carefully.
51613         * lib/freopen.c (orig_freopen): New function.
51614         (rpl_freopen): Use orig_freopen instead of freopen.
51615         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51616         (gl_FUNC_FREOPEN): Invoke it.
51617
51618         Override fopen more carefully.
51619         * lib/fopen.c (orig_fopen): New function.
51620         (rpl_fopen): Use orig_fopen instead of fopen.
51621         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51622         (gl_FUNC_FOPEN): Invoke it.
51623         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51624
51625 2008-09-28  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51628         SIGPIPE.
51629
51630 2008-09-28  Bruno Haible  <bruno@clisp.org>
51631
51632         * tests/test-sigaction.c (handler, main): Disable the check whether
51633         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51634         glibc systems with LinuxThreads.
51635
51636 2008-09-28  Bruno Haible  <bruno@clisp.org>
51637
51638         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51639
51640         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51641         with AIX xlc.
51642         * lib/fcntl.in.h (open): Likewise.
51643         Reported by Rainer Tammer <tammer@tammer.net>.
51644
51645 2008-09-28  Bruno Haible  <bruno@clisp.org>
51646
51647         * modules/posix_spawnp-tests: New file.
51648         * tests/test-posix_spawn.c: New file.
51649         * tests/test-posix_spawn.in.sh: New file.
51650
51651         New module 'posix_spawnp'.
51652         * modules/posix_spawnp: New file.
51653         * lib/spawnp.c: New file, from GNU libc with modifications.
51654         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51655
51656         New module 'posix_spawn'.
51657         * modules/posix_spawn: New file.
51658         * lib/spawn.c: New file, from GNU libc with modifications.
51659         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51660
51661         New module 'posix_spawnattr_destroy'.
51662         * modules/posix_spawnattr_destroy: New file.
51663         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51664         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51665         module.
51666
51667         New module 'posix_spawnattr_setsigmask'.
51668         * modules/posix_spawnattr_setsigmask: New file.
51669         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51670         modifications.
51671         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51672         new module.
51673
51674         New module 'posix_spawnattr_getsigmask'.
51675         * modules/posix_spawnattr_getsigmask: New file.
51676         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51677         modifications.
51678         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51679         new module.
51680
51681         New module 'posix_spawnattr_setsigdefault'.
51682         * modules/posix_spawnattr_setsigdefault: New file.
51683         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51684         modifications.
51685         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51686         new module.
51687
51688         New module 'posix_spawnattr_getsigdefault'.
51689         * modules/posix_spawnattr_getsigdefault: New file.
51690         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51691         modifications.
51692         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51693         new module.
51694
51695         New module 'posix_spawnattr_setschedpolicy'.
51696         * modules/posix_spawnattr_setschedpolicy: New file.
51697         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51698         modifications.
51699         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51700         new module.
51701
51702         New module 'posix_spawnattr_getschedpolicy'.
51703         * modules/posix_spawnattr_getschedpolicy: New file.
51704         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51705         modifications.
51706         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51707         new module.
51708
51709         New module 'posix_spawnattr_setschedparam'.
51710         * modules/posix_spawnattr_setschedparam: New file.
51711         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51712         modifications.
51713         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51714         new module.
51715
51716         New module 'posix_spawnattr_getschedparam'.
51717         * modules/posix_spawnattr_getschedparam: New file.
51718         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51719         modifications.
51720         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51721         new module.
51722
51723         New module 'posix_spawnattr_setpgroup'.
51724         * modules/posix_spawnattr_setpgroup: New file.
51725         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51726         modifications.
51727         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51728         module.
51729
51730         New module 'posix_spawnattr_getpgroup'.
51731         * modules/posix_spawnattr_getpgroup: New file.
51732         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51733         modifications.
51734         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51735         module.
51736
51737         New module 'posix_spawnattr_setflags'.
51738         * modules/posix_spawnattr_setflags: New file.
51739         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51740         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51741         module.
51742
51743         New module 'posix_spawnattr_getflags'.
51744         * modules/posix_spawnattr_getflags: New file.
51745         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51746         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51747         module.
51748
51749         New module 'posix_spawnattr_init'.
51750         * modules/posix_spawnattr_init: New file.
51751         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51752         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51753         module.
51754
51755         New module 'posix_spawn_file_actions_destroy'.
51756         * modules/posix_spawn_file_actions_destroy: New file.
51757         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51758         modifications.
51759         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51760         the new module.
51761
51762         New module 'posix_spawn_file_actions_addopen'.
51763         * modules/posix_spawn_file_actions_addopen: New file.
51764         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51765         modifications.
51766         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51767         the new module.
51768
51769         New module 'posix_spawn_file_actions_adddup2'.
51770         * modules/posix_spawn_file_actions_adddup2: New file.
51771         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51772         modifications.
51773         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51774         the new module.
51775
51776         New module 'posix_spawn_file_actions_addclose'.
51777         * modules/posix_spawn_file_actions_addclose: New file.
51778         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51779         modifications.
51780         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51781         the new module.
51782
51783         New module 'posix_spawn_file_actions_init'.
51784         * modules/posix_spawn_file_actions_init: New file.
51785         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51786         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51787         new module.
51788
51789         New module 'posix_spawn-internal'.
51790         * modules/posix_spawn-internal: New file.
51791         * lib/spawn_int.h: New file, from GNU libc with modifications.
51792         * lib/spawni.c: New file, from GNU libc with modifications.
51793         * m4/posix_spawn.m4: New file.
51794
51795         New module 'spawn'.
51796         * modules/spawn: New file.
51797         * lib/spawn.in.h: New file, from GNU libc with modifications.
51798         * m4/spawn_h.m4: New file.
51799         * doc/posix-headers/spawn.texi: Mention the new module.
51800
51801 2008-09-28  Bruno Haible  <bruno@clisp.org>
51802
51803         * modules/sched-tests: New file.
51804         * tests/test-sched.c: New file.
51805
51806         New module 'sched'.
51807         * modules/sched: New file.
51808         * lib/sched.in.h: New file.
51809         * m4/sched_h.m4: New file.
51810         * doc/posix-headers/sched.texi: Mention the new module.
51811
51812 2008-09-27  Eric Blake  <ebb9@byu.net>
51813
51814         Fix previous patch, and tweak references to $0.
51815         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51816         (func_version, func_gnulib_dir): Don't call this program
51817         gnulib-tool.
51818         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51819         with using $0 in function.
51820         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51821         (func_fatal_error): Reuse the name the user invoked us with.
51822
51823 2008-09-27  Bruno Haible  <bruno@clisp.org>
51824
51825         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51826         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51827         (gl_ICONV_H): Not here.
51828         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51829         instead of assigning ICONV_H directly.
51830
51831         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51833         WCHAR_H directly.
51834
51835 2008-09-27  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51838         * modules/arpa_inet (Depends-on): Add link-warning.
51839         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51840         * modules/unistd (Makefile.am): Likewise.
51841
51842 2008-09-26  Bruno Haible  <bruno@clisp.org>
51843
51844         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51845         variables.
51846         (func_version): Essentially copied from gnulib-tool.
51847         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51848         func_readlink): Copied from gnulib-tool.
51849
51850 2008-09-26  Bruno Haible  <bruno@clisp.org>
51851
51852         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51853         invoking git-version-gen.
51854
51855 2008-09-26  Bruno Haible  <bruno@clisp.org>
51856
51857         * posix-modules: Update to directory names changed on 2008-01-19.
51858         Remove commas in output before splitting into words. No more need to
51859         avoid 'ftruncate' since 2007-02-19.
51860
51861 2008-09-26  Bruno Haible  <bruno@clisp.org>
51862
51863         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51864
51865 2008-09-26  Bruno Haible  <bruno@clisp.org>
51866
51867         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51868         * modules/fwriteerror (Depends-on): Add errno.
51869
51870 2008-09-26  Bruno Haible  <bruno@clisp.org>
51871
51872         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51873         * tests/test-vc-list-files-cvs.sh: Likewise.
51874
51875 2008-09-26  Bruno Haible  <bruno@clisp.org>
51876
51877         * doc/posix-headers/sys_resource.texi: Reorder items.
51878
51879 2008-09-26  Jim Meyering  <meyering@redhat.com>
51880
51881         fts: tweak inode comparison function
51882         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51883         inode numbers, as documented.
51884
51885         fts: sort dirent entries on inode number before traversing
51886         This avoids a quadratic, seek-related performance penalty when
51887         operating on a directory containing many entries (measurable at 10k;
51888         3.5 hours at 2 million entries with a cold cache) on certain types
51889         of file systems, including ext3 and ext4, but not tmpfs.
51890         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51891         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51892         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51893         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51894         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51895         (fts_build): Set the stat.st_ino member from D_INO.
51896         If it is likely to be useful, sort dirent entries on inode number.
51897
51898         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51899         and the struct statfs.f_type member.
51900         * modules/fts (Depends-on): Add d-ino.
51901
51902 2008-09-26  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/sigpipe-die (Depends-on): Add sigpipe.
51905
51906         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51907         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51908         and GNULIB_STDIO_H_SIGPIPE are set.
51909         * lib/stdio-write.c: New file.
51910         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51911         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51912         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51913         REPLACE_STDIO_WRITE_FUNCS.
51914         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51915         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51916         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51917         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51918         * modules/stdio (Files): Add lib/stdio-write.c.
51919         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51920         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51921         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51922         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51923         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51924         REPLACE_FPRINTF_POSIX.
51925         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51926         REPLACE_PRINTF_POSIX.
51927         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51928         REPLACE_VFPRINTF_POSIX.
51929         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51930         REPLACE_VPRINTF_POSIX.
51931         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51932         SIGPIPE issue.
51933         * doc/posix-functions/fputc.texi: Likewise.
51934         * doc/posix-functions/fputs.texi: Likewise.
51935         * doc/posix-functions/fwrite.texi: Likewise.
51936         * doc/posix-functions/printf.texi: Likewise.
51937         * doc/posix-functions/putc.texi: Likewise.
51938         * doc/posix-functions/putchar.texi: Likewise.
51939         * doc/posix-functions/puts.texi: Likewise.
51940         * doc/posix-functions/vfprintf.texi: Likewise.
51941         * doc/posix-functions/vprintf.texi: Likewise.
51942
51943         * modules/safe-write (Depends-on): Add write.
51944
51945         * modules/sigpipe-tests: New file.
51946         * tests/test-sigpipe.c: New file.
51947         * tests/test-sigpipe.sh: New file.
51948
51949         * modules/write: New file.
51950         * lib/unistd.in.h: Include <sys/types.h>.
51951         (write): New declaration.
51952         * lib/write.c: New file.
51953         * m4/write.m4: New file.
51954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51955         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51956         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51957         GNULIB_WRITE, REPLACE_WRITE.
51958         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51959         and the SIGPIPE issue.
51960
51961         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51962         (raise): New declaration.
51963         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51964         (ext_signal): New function.
51965         (rpl_raise): New function.
51966         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51967         GNULIB_SIGNAL_H_SIGPIPE.
51968         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51969         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51970
51971         * modules/sigpipe: New file.
51972         * m4/sigpipe.m4: New file.
51973
51974 2008-09-25  Derek Price  <derek@ximbiot.com>
51975             Bruno Haible  <bruno@clisp.org>
51976
51977         * gnulib-tool (func_import): Report all license incompatibilities, not
51978         just the first one.
51979
51980 2008-09-25  Bruno Haible  <bruno@clisp.org>
51981
51982         * gnulib-tool (func_import): When computing the edits, consider not
51983         only the Makefile.ams that exist but also those that will be generated.
51984
51985 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51986
51987         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51988         fixes gnulib-tool --test warning about duplicate dependency.
51989
51990 2008-09-25  Bruno Haible  <bruno@clisp.org>
51991
51992         * gnulib-tool: Don't ask the user to perform edits in the generated
51993         Makefile.ams.
51994         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51995         apply to the Makefile.am being generated.
51996         (func_emit_tests_Makefile_am): Execute edits that apply to the
51997         Makefile.am being generated.
51998         (func_import): Setup list of Makefile.am edits before emitting the
51999         Makefile.ams, not at the end.
52000         (func_create_testdir): Update.
52001         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52002
52003 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52004
52005         * gnulib-tool (func_import): Store the --tests-base option in the
52006         comment in gnulib-cache.m4.
52007
52008 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52009
52010         * NEWS: Document increased portability that sys_select now provides.
52011
52012         * lib/sys_select.in.h: Install select wrapper.
52013         * lib/sys_socket.in.h: Use more descriptive name when there is no
52014         select wrapper.
52015         * lib/winsock-select.c: New.
52016         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52017         Require gl_HEADER_SYS_SOCKET.
52018         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52019         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52020         * tests/test-sys_select.c: Add functional tests.
52021
52022 2008-09-24  Eric Blake  <ebb9@byu.net>
52023
52024         open, fopen: close fd leak in last patch
52025         * lib/open.c (rpl_open): Close fd before returning error.
52026         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52027         * doc/posix-functions/open.texi (open): Document that Irix also
52028         has the bug.
52029         * doc/posix-functions/fopen.texi (fopen): Likewise.
52030         Reported by Paolo Bonzini.
52031
52032 2008-09-24  Bruno Haible  <bruno@clisp.org>
52033
52034         Ensure that a filename ending in a slash cannot be used to access a
52035         non-directory.
52036         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52037         to check whether it's really a directory.
52038         * lib/fopen.c: Include fcntl.h, unistd.h.
52039         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52040         and fdopen().
52041         * modules/fopen (Depends-on): Add unistd.
52042         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52043         * tests/test-fopen.c (main): Likewise.
52044         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52045         * doc/posix-functions/fopen.texi: Likewise.
52046         Reported by Eric Blake.
52047
52048 2008-09-23  Eric Blake  <ebb9@byu.net>
52049
52050         c-stack: avoid compiler optimizations when provoking overflow
52051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52052         recursion harder to optimize, to ensure a stack overflow occurs.
52053         * tests/test-c-stack.c (recurse): Likewise.
52054         Borrowed from libsigsegv.
52055
52056         c-stack: work around Irix sigaltstack bug
52057         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52058         whether sigaltstack uses wrong end of stack_t (copied in part from
52059         libsigsegv).
52060         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52061         Irix bug, without requiring an over-allocation.
52062         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52063         bug.
52064
52065         fopen: document mingw bug on directories
52066         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52067         not allowing a stream visiting a directory, even though reading
52068         from such a stream is not portable.
52069
52070 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52071
52072         * lib/poll.c: Rewrite.
52073         * modules/poll: Depend on alloca.
52074
52075 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52076
52077         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52078         instead define prototypes for a full set of wrappers.  Ensure
52079         that Cygwin does not use the compatibility code, which is only
52080         for MinGW.
52081         * lib/winsock.c: New.
52082         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52083         * modules/sys_socket: Add lib/winsock.c.
52084
52085         * modules/poll-tests: Add errno and perror.
52086         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52087
52088 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52089
52090         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52091
52092 2008-09-23  Bruno Haible  <bruno@clisp.org>
52093
52094         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52095         * doc/glibc-functions/*: Likewise.
52096
52097 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52098
52099         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52100         success.
52101
52102 2008-09-22  Eric Blake  <ebb9@byu.net>
52103             Bruno Haible  <bruno@clisp.org>
52104
52105         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52106         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52107         supply %A but mishandle pseudo-NaN.
52108         Reported by Simon Josefsson.
52109
52110 2008-09-21  Bruno Haible  <bruno@clisp.org>
52111
52112         * tests/test-lock.c (main): Tweak skip message.
52113         * tests/test-tls.c (main): Likewise.
52114
52115 2008-09-21  Bruno Haible  <bruno@clisp.org>
52116
52117         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52118         whether 'struct sigaction' has sa_sigaction here...
52119         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52120         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52121
52122 2008-09-21  Bruno Haible  <bruno@clisp.org>
52123
52124         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52125         section.
52126         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52127         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52128         the new section.
52129         (Support for obsolete systems lacking POSIX:2001): New section.
52130         (String handling <string.h>): Move strdup to the new section.
52131         Suggested by Simon Josefsson and Paolo Bonzini.
52132
52133 2008-09-21  Bruno Haible  <bruno@clisp.org>
52134
52135         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52136         exponents in %e and %g results on 'long double'. Needed for mingw's
52137         improved *printf functions.
52138         * tests/test-vasprintf-posix.c (test_function): Likewise.
52139         * tests/test-snprintf-posix.h (test_function): Likewise.
52140         * tests/test-sprintf-posix.h (test_function): Likewise.
52141         Reported by Eric Blake.
52142
52143 2008-09-21  Bruno Haible  <bruno@clisp.org>
52144
52145         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52146         * tests/test-sprintf-posix.h (test_function): Likewise.
52147
52148 2008-09-21  Bruno Haible  <bruno@clisp.org>
52149
52150         * modules/getpass (Depends-on): Add strdup-posix.
52151
52152         New module 'strdup-posix'.
52153         * modules/strdup-posix: New file.
52154         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52155         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52157         REPLACE_STRDUP.
52158         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52159         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52161         strdup-posix.
52162
52163         * modules/strdup (Depends-on): Remove malloc-posix.
52164
52165 2008-09-20  Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52168         Wildenhues.
52169
52170 2008-09-20  Bruno Haible  <bruno@clisp.org>
52171
52172         Ensure that wint_t gets defined on IRIX 5.3.
52173         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52174         * lib/wctype.in.h (wint_t): Likewise.
52175         (__wctype_wint_t): Remove type.
52176         (isw*): Use wint_t instead of __wctype_wint_t.
52177         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52178         * modules/wchar (Files): Add m4/wint_t.m4.
52179         (Makefile.am): Substitute HAVE_WINT_T.
52180         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52181         * tests/test-wctype.c: Check that wint_t is defined.
52182         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52183         * doc/posix-headers/wctype.texi: Likewise.
52184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52185
52186 2008-09-18  Bruno Haible  <bruno@clisp.org>
52187
52188         * gnulib-tool (func_exit): Update comment.
52189
52190 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52191
52192         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52193         assumes strdup exists and does not depend on strdup to return
52194         ENOMEM on out of memory conditions.
52195
52196 2008-09-18  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52199         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52200         digits for the exponent.
52201
52202 2008-09-18  Jim Meyering  <meyering@redhat.com>
52203             Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/vasnprintf.c (decimal_point_char): Define also if
52206         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52207
52208 2008-09-16  Bruno Haible  <bruno@clisp.org>
52209         and Eric Blake  <ebb9@byu.net>
52210
52211         vasnprintf: support Irix 5.3
52212         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52213         that mishandle long double infinity.
52214         Reported by Tom G. Christensen.
52215
52216 2008-09-16  Bruno Haible  <bruno@clisp.org>
52217
52218         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52219         Solaris 9.
52220         * doc/glibc-functions/alphasort.texi: Likewise.
52221         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52222
52223 2008-09-16  Jim Meyering  <meyering@redhat.com>
52224
52225         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52226         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52227         a umask modification leak out of a subshell.  Otherwise, the
52228         opensolaris /bin/sh would be accepted and thus cause unwarranted
52229         failures in the coreutils test suite.
52230
52231 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52232
52233         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52234         to succeed.
52235
52236 2008-09-16  Jim Meyering  <meyering@redhat.com>
52237
52238         avoid spurious test failure when library is built without ACL support
52239         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52240         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52241         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52242         * tests/test-copy-acl.sh: Likewise.
52243
52244 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52245
52246         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52247         based on character occurrence counts.
52248
52249 2008-09-15  Eric Blake  <ebb9@byu.net>
52250
52251         tests: avoid some compiler warnings
52252         * tests/test-memchr.c (main): Pass NULL indirectly.
52253         * tests/test-closein.c (main): Avoid unused variable.
52254
52255 2008-09-15  Bruno Haible  <bruno@clisp.org>
52256
52257         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52258         are missing on OpenBSD 4.0 individually.
52259         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52260
52261 2008-09-15  Bruno Haible  <bruno@clisp.org>
52262
52263         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52264         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52265         * doc/posix-functions/perror.texi: Likewise.
52266         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52267         is missing.
52268         Reported by Eric Blake.
52269
52270         * lib/errno.in.h: Use replacement values >= 2000.
52271         Reported by Eric Blake.
52272
52273 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52274
52275         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52276         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52277         limit.
52278         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52279         compareseq was aborted.
52280
52281 2008-09-14  Bruno Haible  <bruno@clisp.org>
52282
52283         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52284         yvec_edit_count.
52285         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52286         (fstrcmp_bounded): Simplify result computation accordingly.
52287
52288 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52289
52290         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52291         (fstrcmp): Define in terms of fstrcmp_bounded.
52292         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52293         lower_bound argument.
52294         Return quickly if the result is certainly < lower_bound.
52295         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52296
52297 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52298
52299         * lib/diffseq.h (EARLY_ABORT): New macro.
52300         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52301         evaluates to true.
52302
52303 2008-09-14  Bruno Haible  <bruno@clisp.org>
52304
52305         * modules/perror-tests: New file.
52306         * tests/test-perror.sh: New file.
52307         * tests/test-perror.c: New file.
52308
52309         New module 'perror'.
52310         * lib/stdio.in.h (perror): New declaration.
52311         * lib/perror.c: New file.
52312         * m4/perror.m4: New file.
52313         * modules/perror: New file.
52314         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52315         * doc/posix-functions/perror.texi: Mention the perror module.
52316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52317         REPLACE_PERROR.
52318         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52319         REPLACE_PERROR.
52320
52321 2008-09-14  Bruno Haible  <bruno@clisp.org>
52322
52323         * modules/stdio (Makefile.am): Reorder to match the order in
52324         lib/stdio.in.h.
52325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52326
52327 2008-09-13  Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52330
52331 2008-09-13  Bruno Haible  <bruno@clisp.org>
52332
52333         Extend strerror to cover the added errno values.
52334         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52335         (rpl_strerror): Provide error messages for the added errno values and
52336         for the WSA* values.
52337         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52338         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52339         strerror.
52340         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52341         * modules/strerror (Depends-on): Add errno.
52342         * doc/posix-functions/strerror.texi: Document the change.
52343         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52344         and EOVERFLOW.
52345
52346 2008-09-13  Bruno Haible  <bruno@clisp.org>
52347
52348         * modules/EOVERFLOW: Remove file.
52349         * m4/eoverflow.m4: Remove file.
52350         * modules/EOVERFLOW-tests: Remove file.
52351         * tests/test-EOVERFLOW.c: Remove file.
52352         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52353         * modules/ftell (Depends-on): Likewise.
52354         * modules/getdelim (Depends-on): Likewise.
52355         * modules/getugroups (Depends-on): Likewise.
52356         * modules/poll (Depends-on): Likewise.
52357         * modules/snprintf (Depends-on): Likewise.
52358         * modules/sprintf-posix (Depends-on): Likewise.
52359         * modules/vasnprintf (Depends-on): Likewise.
52360         * modules/vasprintf (Depends-on): Likewise.
52361         * modules/vfprintf-posix (Depends-on): Likewise.
52362         * modules/vsnprintf (Depends-on): Likewise.
52363         * modules/vsprintf-posix (Depends-on): Likewise.
52364         * modules/xvasprintf (Depends-on): Likewise.
52365         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52366         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52367         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52368         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52369         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52370         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52371         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52372         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52373         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52374         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52375         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52376         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52377         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52378         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52379         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52380         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52381         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52382         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52383         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52384         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52385         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52386         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52387         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52388         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52389         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52390         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52391         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52392         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52393         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52394         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52395         * MODULES.html.sh: Remove EOVERFLOW.
52396         * NEWS: Mention the change.
52397
52398 2008-09-13  Bruno Haible  <bruno@clisp.org>
52399
52400         * modules/errno-tests: New file.
52401         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52402
52403         * lib/errno.in.h: New file.
52404         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52405         * modules/errno: New file.
52406         * doc/posix-headers/errno.texi: Update documentation.
52407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52408
52409 2008-09-13  Bruno Haible  <bruno@clisp.org>
52410
52411         * tests/test-poll.c: Use #if for native Windows, rather than testing
52412         __MSVCRT__.
52413
52414 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52415             Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/glob.c: Don't include <pwd.h> on native Windows.
52418         (WINDOWS32): New macro.
52419         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52420
52421 2008-09-13  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52424         (ETIMEDOUT): Remove macro.
52425         (glthread_cond_timedwait_multithreaded): New declaration.
52426         (glthread_cond_timedwait): Use it.
52427         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52428         (glthread_cond_timedwait_multithreaded): New function.
52429
52430 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52431
52432         * modules/poll-tests: Do not check for io.h.
52433         * tests/test-poll.c: Check for __MSVCRT__ instead.
52434
52435 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52436
52437         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52438         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52439         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52440
52441 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52442
52443         * modules/poll-tests: New.
52444         * tests/test-poll.c: New.
52445
52446 2008-09-12  Eric Blake  <ebb9@byu.net>
52447
52448         frexp: test for NetBSD failure on -0.0
52449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52450         not all, bugs from NetBSD 3.0 have been fixed.
52451         * doc/posix-functions/frexp.texi (frexp): Document bug.
52452         Reported by Thomas Klausner.
52453
52454         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52455         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52456         literal -0.0.
52457         Reported by Jonathan C. Patschke <jp@centtech.com>.
52458
52459 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52460
52461         * lib/glthread/cond.h: Use dummy implementation also if
52462         USE_WIN32_THREADS.
52463
52464 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52465
52466         * modules/fnmatch-posix (License): Change to LGPLv2+.
52467         * modules/fnmatch-gnu (License): Likewise.
52468
52469 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52470
52471         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52472
52473 2008-09-11  Jim Meyering  <meyering@redhat.com>
52474
52475         * users.txt: Add gtk-vnc.
52476
52477 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52478
52479         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52480         rotate amounts.
52481
52482         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52483         required for 16-bit and 8-bit rotates.
52484         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52485         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52486         UINT8_MAX instead of hard-coded constants.
52487         Suggested by Paul Eggert.
52488
52489 2008-09-07  Bruno Haible  <bruno@clisp.org>
52490
52491         * tests/test-striconveh.c (main): Check behaviour when converting from
52492         UTF-7.
52493
52494         Make striconveh work better with stateful encodings.
52495         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52496         that iconv does not increment the inptr when returning -1/EINVAL.
52497
52498 2008-09-07  Bruno Haible  <bruno@clisp.org>
52499
52500         * build-aux/config.rpath: Update according to libtool-2.2.6.
52501         * build-aux/config.libpath: Likewise.
52502
52503 2008-09-06  Bruno Haible  <bruno@clisp.org>
52504
52505         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52506         * lib/freadptr.c (freadptr): Likewise.
52507         * lib/freadseek.c (freadptrinc): Likewise.
52508         Reported by Simon Josefsson.
52509
52510 2008-09-06  Bruno Haible  <bruno@clisp.org>
52511
52512         * modules/freadptr (License): Change to LGPLv2+.
52513         * modules/freadseek (License): Likewise.
52514         Suggested by Eric Blake.
52515
52516         * modules/memchr2 (License): Change to LGPLv2+.
52517         Approved by Eric Blake.
52518
52519 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52520             Bruno Haible  <bruno@clisp.org>
52521
52522         Make gnulib-tool work with native 'sed' on AIX.
52523         * gnulib-tool (sed_noop): New variable.
52524         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52525         func_add_or_update, func_create_testdir): Use it to initialize sed
52526         script variables.
52527         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52528
52529 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52530             Bruno Haible  <bruno@clisp.org>
52531
52532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52533         also works after #include directives.
52534
52535 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52536
52537         getdate.y: reject an out-of-range timezone value
52538         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52539         the range [-24...+24].  When specified with only one or two digits,
52540         * tests/test-getdate.c: Tests for the fix.
52541         * doc/getdate.texi: Document this change.
52542
52543 2008-09-03  Bruno Haible  <bruno@clisp.org>
52544
52545         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52546
52547 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52548
52549         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52550         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52551         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52552         Blake <ebb9@byu.net>.
52553
52554         * tests/test-bitrotate.c: Add more test vectors.
52555
52556 2008-09-02  Eric Blake  <ebb9@byu.net>
52557
52558         vasnprintf-posix: handle large precision via %.*d
52559         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52560         when handling it ourselves.
52561         * tests/test-vasnprintf-posix.c (test_function): Add test.
52562         * tests/test-snprintf-posix.h (test_function): Likewise.
52563         * tests/test-sprintf-posix.h (test_function): Likewise.
52564         * tests/test-vasprintf-posix.c (test_function): Likewise.
52565         Reported by Alain Guibert.
52566
52567 2008-09-01  Eric Blake  <ebb9@byu.net>
52568
52569         c-stack: make configure-time check more robust
52570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52571         successful sigaction call.
52572         Reported by Tom G. Christensen.
52573
52574 2008-09-01  Bruno Haible  <bruno@clisp.org>
52575
52576         New module 'findprog-lgpl'.
52577         * modules/findprog-lgpl: New file.
52578         * lib/findprog-lgpl.c: New file.
52579         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52580         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52581         to decide whether to use strdup or xstrdup, concatenated_filename or
52582         xconcatenated_filename.
52583
52584 2008-09-01  Bruno Haible  <bruno@clisp.org>
52585
52586         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52587         'xconcat-filename' (GPL).
52588         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52589         (License): Change to LGPLv2+.
52590         * modules/xconcat-filename: New file.
52591         * lib/concat-filename.h (concatenated_filename): Change specification.
52592         (xconcatenated_filename): New declaration.
52593         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52594         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52595         memory situations.
52596         * lib/xconcat-filename.c: New file.
52597         * NEWS: Mention the change.
52598         * lib/findprog.c: Include concat-filename.h, not filename.h.
52599         (find_in_path): Use xconcatenated_filename instead of
52600         concatenated_filename.
52601         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52602         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52603         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52604         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52605         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52606         instead of concatenated_filename.
52607         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52608         (execute_java_class): Use xconcatenated_filename instead of
52609         concatenated_filename.
52610         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52611         * modules/javacomp (Depends-on): Likewise.
52612         * modules/javaexec (Depends-on): Likewise.
52613
52614 2008-09-01  Bruno Haible  <bruno@clisp.org>
52615
52616         Split module 'filename' into 'filename' and 'concat-filename'.
52617         * modules/filename: Keep only lib/filename.h.
52618         (License): Change to LGPLv2+.
52619         * modules/concat-filename: New file, extracted from modules/filename.
52620         * lib/filename.h (concatenated_filename): Remove declaration.
52621         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52622         * lib/concat-filename.c: Include concat-filename.h.
52623         * NEWS: Mention the change.
52624
52625 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52626
52627         * lib/bitrotate.h (rotl8, rotr8): Add.
52628
52629         * modules/bitrotate (configure.ac): Need
52630         AC_REQUIRE([AC_C_INLINE]).
52631         (Description): Mention stdint.h.  Reported by Bruno Haible
52632         <bruno@clisp.org>.
52633
52634         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52635         Paolo Bonzini <bonzini@gnu.org>.
52636
52637 2008-08-31  Bruno Haible  <bruno@clisp.org>
52638
52639         Assume Solaris specific bi-arch conventions on Solaris systems.
52640         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52641         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52642         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52643         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52644         like acl_libdirstem.
52645         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52646         acl_libdirstem.
52647         * NEWS: Mention the change.
52648         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52649
52650 2008-08-31  Jim Meyering  <meyering@redhat.com>
52651
52652         * lib/strftime.h: Add comments describing the two added arguments.
52653
52654         remove duplicate #include directives
52655         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52656         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52657
52658 2008-08-31  Bruno Haible  <bruno@clisp.org>
52659
52660         New module 'sigpipe-die'.
52661         * modules/sigpipe-die: New file.
52662         * lib/sigpipe-die.h: New file.
52663         * lib/sigpipe-die.c: New file.
52664         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52665
52666 2008-08-31  Bruno Haible  <bruno@clisp.org>
52667
52668         Don't override previously installed signal handlers.
52669         * lib/fatal-signal.c (saved_sigactions): New variable.
52670         (uninstall_handlers): Reset the signal to the saved handler, not
52671         to SIG_DFL (except when ignored).
52672         (install_handlers): Save the previous handlers.
52673
52674 2008-08-30  Bruno Haible  <bruno@clisp.org>
52675
52676         * gnulib-tool (func_reset_sigpipe): New function.
52677         (func_get_automake_snippet, func_modules_transitive_closure,
52678         func_import): Invoke it before a join command that reads from stdin,
52679         to avoid "echo: write error: Broken pipe" error messages on stderr.
52680         Reported by Sam Steingold <sds@gnu.org>.
52681
52682 2008-08-30  Bruno Haible  <bruno@clisp.org>
52683
52684         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52685         Code copied from m4/open.m4.
52686         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52687         access and the filename ends in a slash. Code copied from lib/open.c.
52688         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52689         * tests/test-fopen.c (main): Check against bug with trailing slash.
52690
52691 2008-08-29  Bruno Haible  <bruno@clisp.org>
52692
52693         Avoid some "gcc -pedantic" warnings.
52694         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52695         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52696         * lib/dirent.in.h: Likewise.
52697         * lib/fcntl.in.h: Likewise.
52698         * lib/float.in.h: Likewise.
52699         * lib/iconv.in.h: Likewise.
52700         * lib/inttypes.in.h: Likewise.
52701         * lib/locale.in.h: Likewise.
52702         * lib/math.in.h: Likewise.
52703         * lib/netinet_in.in.h: Likewise.
52704         * lib/search.in.h: Likewise.
52705         * lib/signal.in.h: Likewise.
52706         * lib/stdarg.in.h: Likewise.
52707         * lib/stdint.in.h: Likewise.
52708         * lib/stdio.in.h: Likewise.
52709         * lib/stdlib.in.h: Likewise.
52710         * lib/string.in.h: Likewise.
52711         * lib/strings.in.h: Likewise.
52712         * lib/sys_select.in.h: Likewise.
52713         * lib/sys_socket.in.h: Likewise.
52714         * lib/sys_stat.in.h: Likewise.
52715         * lib/sys_time.in.h: Likewise.
52716         * lib/sysexits.in.h: Likewise.
52717         * lib/time.in.h: Likewise.
52718         * lib/unistd.in.h: Likewise.
52719         * lib/wchar.in.h: Likewise.
52720         * lib/wctype.in.h: Likewise.
52721         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52722         * modules/fchdir (Makefile.am): Likewise.
52723         * modules/fcntl (Makefile.am): Likewise.
52724         * modules/float (Makefile.am): Likewise.
52725         * modules/iconv_open (Makefile.am): Likewise.
52726         * modules/inttypes (Makefile.am): Likewise.
52727         * modules/locale (Makefile.am): Likewise.
52728         * modules/math (Makefile.am): Likewise.
52729         * modules/netinet_in (Makefile.am): Likewise.
52730         * modules/search (Makefile.am): Likewise.
52731         * modules/signal (Makefile.am): Likewise.
52732         * modules/stdarg (Makefile.am): Likewise.
52733         * modules/stdint (Makefile.am): Likewise.
52734         * modules/stdio (Makefile.am): Likewise.
52735         * modules/stdlib (Makefile.am): Likewise.
52736         * modules/string (Makefile.am): Likewise.
52737         * modules/strings (Makefile.am): Likewise.
52738         * modules/sys_select (Makefile.am): Likewise.
52739         * modules/sys_socket (Makefile.am): Likewise.
52740         * modules/sys_stat (Makefile.am): Likewise.
52741         * modules/sys_time (Makefile.am): Likewise.
52742         * modules/sysexits (Makefile.am): Likewise.
52743         * modules/time (Makefile.am): Likewise.
52744         * modules/unistd (Makefile.am): Likewise.
52745         * modules/wchar (Makefile.am): Likewise.
52746         * modules/wctype (Makefile.am): Likewise.
52747         Reported by Reuben Thomas <rrt@sc3d.org>.
52748
52749 2008-08-29  Bruno Haible  <bruno@clisp.org>
52750
52751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52752         any more.
52753
52754 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52755
52756         * MODULES.html.sh (Misc): Add bitrotate.
52757
52758         * modules/bitrotate: New file.
52759
52760         * lib/bitrotate.h: New file.
52761
52762         * modules/bitrotate-tests: New file.
52763
52764         * tests/test-bitrotate.c: New file.
52765
52766         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52767         on the bitrotate module.
52768
52769         * lib/arctwo.c: Use new bitrotate module.
52770
52771 2008-08-29  Jim Meyering  <meyering@redhat.com>
52772
52773         bootstrap: merge changes from coreutils
52774         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52775         of copied files.  Remove a kludge, now that this is fixed.
52776         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52777         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52778         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52779
52780 2008-08-29  Bruno Haible  <bruno@clisp.org>
52781
52782         * MODULES.html.sh: Remove --cvs-urls option.
52783
52784 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52785
52786         maint.mk: adjust to file name change
52787         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52788
52789 2008-08-28  Jim Meyering  <meyering@redhat.com>
52790
52791         * modules/getndelim2 (License): Relicense to LGPLv2+.
52792         Approved by Richard Stallman for the version of 1995, and by
52793         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52794
52795 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52796
52797         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52798         dummy if one is not available.  Do not touch them if
52799         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52800         (getc_maybe_unlocked): New.
52801         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52802
52803 2008-08-26  Eric Blake  <ebb9@byu.net>
52804
52805         doc/INSTALL: resync from autoconf
52806         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52807         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52808         moving...
52809         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52810         * INSTALL: Regenerate.
52811         * INSTALL.ISO: New file.
52812         * INSTALL.UTF-8: Likewise.
52813
52814 2008-08-26  Jim Meyering  <meyering@redhat.com>
52815
52816         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52817         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52818         these definitions conditional, so that they may be overridden, too.
52819
52820 2008-08-26  Bruno Haible  <bruno@clisp.org>
52821
52822         Generate INSTALL file variants with prettier quotes.
52823         * doc/Makefile (INSTALL_PRELUDE): New macro.
52824         (INSTALL): Use it.
52825         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52826
52827 2008-08-26  Bruno Haible  <bruno@clisp.org>
52828
52829         Run makeinfo in an English locale.
52830         * doc/Makefile (MAKEINFO): New variable.
52831
52832 2008-08-26  Bruno Haible  <bruno@clisp.org>
52833
52834         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52835         Suggested by Eric Blake.
52836
52837 2008-08-25  Bruno Haible  <bruno@clisp.org>
52838
52839         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52840
52841 2008-08-25  Eric Blake  <ebb9@byu.net>
52842
52843         c-stack: test that stack overflow can be caught
52844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52845         that platform allows handling stack overflow; at least OS/2 EMX
52846         has sigaltstack, but crashes before transferring control to
52847         handler on stack overflow.
52848         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52849         check for HAVE_STACK_OVERFLOW_HANDLING.
52850         Reported by Elbert Pol.
52851
52852 2008-08-25  Bruno Haible  <bruno@clisp.org>
52853
52854         * doc/posix-functions/strftime.texi: Fix description of strftime
52855         module.
52856
52857 2008-08-24  Bruno Haible  <bruno@clisp.org>
52858
52859         * tests/uniwidth/test-uc_width2.c: New file.
52860         * tests/uniwidth/test-uc_width2.sh: New file.
52861         * modules/uniwidth/width-tests (Files): Add the new files.
52862         (TESTS): Add uniwidth/test-uc_width2.sh.
52863         (TESTS_ENVIRONMENT): New variable.
52864         (check_PROGRAMS): Add test-uc_width2.
52865         (test_uc_width2_SOURCES): New variable.
52866
52867         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52868         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52869         not 0x00AB.
52870         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52871
52872 2008-08-22  Eric Blake  <ebb9@byu.net>
52873
52874         test-lock, test-tls: mention why a test is skipped
52875         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52876         skipped.
52877         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52878
52879         count-one-bits: relax license
52880         * modules/count-one-bits (License): Relicense to LGPLv2+.
52881         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52882
52883 2008-08-22  Andreas Schwab  <schwab@suse.de>
52884
52885         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52886         Remove spurious space in assignment.
52887
52888 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52889
52890         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52891         Paul Eggert <eggert@CS.UCLA.EDU>.
52892
52893 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52894
52895         * modules/gettext: Add m4/threadlib.m4.
52896
52897 2008-08-19  Eric Blake  <ebb9@byu.net>
52898
52899         test-c-stack: fix compilation failure on FreeBSD 5.0
52900         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52901         headers before <sys/resource.h>.
52902         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52903         the bug.
52904         Reported by Nelson H. F. Beebe.
52905
52906         strverscmp: migrate from "strverscmp.h" to <string.h>
52907         * modules/string (Makefile.am): Add new hooks.
52908         * modules/strverscmp (Files): Remove strverscmp.h.
52909         (Depends-on): Add string.
52910         (configure.ac): Add indicator.
52911         (Include): Mention new header.
52912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52913         defaults.
52914         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52915         results.
52916         * lib/strverscmp.h: Delete.
52917         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52918         * tests/test-strverscmp.c (includes): Adjust client.
52919         * lib/check-version.c (includes): Likewise.
52920         * NEWS: Document the change.
52921
52922         strverscmp: add unit test
52923         * modules/strverscmp-tests: New file.
52924         * tests/test-strverscmp.c: Likewise.
52925
52926 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52927
52928         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52929         regarding Windows crypto stuff, from Mono.
52930
52931 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52932
52933         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52934         if present, for intel RND.  Return error on failures.
52935
52936 2008-08-18  Ben Pfaff  <blp@gnu.org>
52937
52938         gitlog-to-changelog: give better diagnostic for failed pipe-open
52939         * build-aux/gitlog-to-changelog: Improve error message: suggest
52940         that the version of Git may be too old.
52941
52942 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52943
52944         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52945         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52946
52947 2008-08-18  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52950         pthread_in_use().
52951
52952 2008-08-18  Bruno Haible  <bruno@clisp.org>
52953
52954         * lib/glthread/threadlib.c: Include <pthread.h>.
52955
52956 2008-08-18  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52959         glthread_recursive_lock_* macros.
52960         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52961         Fix syntax error.
52962
52963 2008-08-18  Bruno Haible  <bruno@clisp.org>
52964
52965         * lib/glthread/thread.c: Avoid forcing a context switch right after
52966         thread creation.
52967
52968 2008-08-17  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52971         * lib/glthread/thread.h: Provide Win32 specific implementation.
52972         * modules/thread (Files): Add lib/glthread/thread.c.
52973         (Depends-on): Add lock.
52974         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52975
52976 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52977
52978         New module 'yield'.
52979         * modules/yield: New file.
52980         * lib/glthread/yield.h: New file.
52981         * m4/yield.m4: New file.
52982         * MODULES.html.sh (Multithreading): Add yield.
52983
52984 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52985
52986         New module 'thread'.
52987         * modules/thread: New file.
52988         * lib/glthread/thread.h: New file.
52989         * m4/thread.m4: New file.
52990         * MODULES.html.sh (Multithreading): Add thread.
52991
52992 2008-08-17  Bruno Haible  <bruno@clisp.org>
52993
52994         * lib/glthread/lock.h: Include <stdlib.h> always.
52995         * lib/glthread/tls.h: Likewise.
52996         * lib/glthread/cond.h: Likewise.
52997
52998 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52999
53000         New module 'cond'.
53001         * modules/cond: New file.
53002         * lib/glthread/cond.h: New file.
53003         * lib/glthread/cond.c: New file.
53004         * m4/cond.m4: New file.
53005         * MODULES.html.sh (Multithreading): Add cond.
53006
53007 2008-08-16  Eric Blake  <ebb9@byu.net>
53008
53009         c-stack: fix regression on Irix 5.3 from 2008-06-21
53010         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53011         sa_sigaction...
53012         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53013         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53014         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53015         * modules/signal (Makefile.am): Use the value.
53016         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53017         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53018         * doc/posix-headers/signal.texi (signal.h): Document this
53019         portability issue.
53020         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53021         Reported by Tom G. Christensen.
53022
53023 2008-08-17  Bruno Haible  <bruno@clisp.org>
53024
53025         New module 'threadlib'.
53026         * modules/threadlib: New file.
53027         * lib/glthread/threadlib.c: New file, extracted from
53028         lib/glthread/lock.c.
53029         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53030         functions.
53031         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53032         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53033         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53034         macros.
53035         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53036         (gl_DISABLE_THREADS): Remove macro.
53037         * modules/lock (Files): Remove build-aux/config.rpath.
53038         (Depends-on): Remove havelib. Add threadlib.
53039         (configure.ac-early): Remove section.
53040         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53041         * modules/tls (Depends-on): Remove lock. Add threadlib.
53042         (Link): New section, copied from threadlib.
53043         * MODULES.html.sh (Multithreading): Add threadlib.
53044
53045 2008-08-14  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53048         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53049         glthread_rwlock_unlock, glthread_rwlock_destroy,
53050         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53051         glthread_recursive_lock_destroy): Define as macros always.
53052         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53053         glthread_lock_lock.
53054         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53055         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53056         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53057         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53058         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53059         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53060         (glthread_recursive_lock_lock_func): Renamed from
53061         glthread_recursive_lock_lock.
53062         (glthread_recursive_lock_unlock_func): Renamed from
53063         glthread_recursive_lock_unlock.
53064         (glthread_recursive_lock_destroy_func): Renamed from
53065         glthread_recursive_lock_destroy.
53066
53067 2008-08-14  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/glthread/lock.h: Renamed from lib/lock.h.
53070         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53071         * lib/glthread/tls.h: Renamed from lib/tls.h.
53072         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53073         * lib/fstrcmp.c: Update includes.
53074         * lib/strsignal.c: Update includes.
53075         * modules/lock (Files, Makefile.am): Update.
53076         (Include): Change to "glthread/lock.h".
53077         * modules/tls (Files, Makefile.am): Update.
53078         (Include): Change to "glthread/tls.h".
53079         * tests/test-lock.c: Update includes.
53080         * tests/test-tls.c: Update includes.
53081         * NEWS: Mention the renamed header files.
53082
53083 2008-08-11  Jim Meyering  <meyering@redhat.com>
53084
53085         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53086
53087 2008-08-11  Eric Blake  <ebb9@byu.net>
53088
53089         test-c-stack: avoid C99-ism
53090         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53091         before statement.
53092         Reported by Alain Guibert.
53093
53094 2008-08-10  Jim Meyering  <meyering@redhat.com>
53095
53096         ensure that return value of uinttostr et al are not ignored
53097         * lib/inttostr.h (__GNUC_PREREQ): Define.
53098         (__attribute_warn_unused_result__): Define.
53099         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53100
53101 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53102
53103         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53104         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53105
53106 2008-08-07  Jim Meyering  <meyering@redhat.com>
53107
53108         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53109
53110         * modules/mkstemp (License): Relicense under LGPLv2+.
53111         * modules/tempname (License): Likewise.
53112
53113 2008-08-06  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/poll.c (poll): Further micro-optimization.
53116
53117 2008-08-06  Jim Meyering  <meyering@redhat.com>
53118
53119         inet_pton.c: use locale-independent tolower
53120         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53121         (inet_pton6): Use c_tolower rather than tolower.
53122         * modules/inet_pton (Depends-on): Add c-ctype.
53123
53124 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53125
53126         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53127         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53128
53129 2008-08-06  Jim Meyering  <meyering@redhat.com>
53130
53131         * modules/inet_pton (License): Relicense under LGPLv2+.
53132
53133 2008-08-03  Bruno Haible  <bruno@clisp.org>
53134
53135         Additional non-aborting API for lock and tls.
53136         * lib/lock.h: Include <errno.h>.
53137         (glthread_lock_init): New macro/function.
53138         (gl_lock_init): Define as wrapper around glthread_lock_init.
53139         (glthread_lock_lock): New macro/function.
53140         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53141         (glthread_lock_unlock): New macro/function.
53142         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53143         (glthread_lock_destroy): New macro/function.
53144         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53145         (glthread_rwlock_init): New macro/function.
53146         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53147         (glthread_rwlock_rdlock): New macro/function.
53148         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53149         (glthread_rwlock_wrlock): New macro/function.
53150         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53151         (glthread_rwlock_unlock): New macro/function.
53152         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53153         (glthread_rwlock_destroy): New macro/function.
53154         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53155         (glthread_recursive_lock_init): New macro/function.
53156         (gl_recursive_lock_init): Define as wrapper around
53157         glthread_recursive_lock_init.
53158         (glthread_recursive_lock_lock): New macro/function.
53159         (gl_recursive_lock_lock): Define as wrapper around
53160         glthread_recursive_lock_lock.
53161         (glthread_recursive_lock_unlock): New macro/function.
53162         (gl_recursive_lock_unlock): Define as wrapper around
53163         glthread_recursive_lock_unlock.
53164         (glthread_recursive_lock_destroy): New macro/function.
53165         (gl_recursive_lock_destroy): Define as wrapper around
53166         glthread_recursive_lock_destroy.
53167         (glthread_once): New macro/function.
53168         (gl_once): Define as wrapper around glthread_once.
53169         Update function declarations.
53170         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53171         glthread_rwlock_init. Return error code.
53172         (glthread_rwlock_rdlock_multithreaded): Renamed from
53173         glthread_rwlock_rdlock. Return error code.
53174         (glthread_rwlock_wrlock_multithreaded): Renamed from
53175         glthread_rwlock_wrlock. Return error code.
53176         (glthread_rwlock_unlock_multithreaded): Renamed from
53177         glthread_rwlock_unlock. Return error code.
53178         (glthread_rwlock_destroy_multithreaded): Renamed from
53179         glthread_rwlock_destroy. Return error code.
53180         (glthread_recursive_lock_init_multithreaded): Renamed from
53181         glthread_recursive_lock_init. Return error code.
53182         (glthread_recursive_lock_lock_multithreaded): Renamed from
53183         glthread_recursive_lock_lock. Return error code.
53184         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53185         glthread_recursive_lock_unlock. Return error code.
53186         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53187         glthread_recursive_lock_destroy. Return error code.
53188         (glthread_once_call): Make static.
53189         (glthread_once_multithreaded): Renamed from glthread_once.
53190         * lib/tls.h: Include <errno.h>.
53191         (glthread_tls_key_init): New macro/function.
53192         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53193         (glthread_tls_set): New macro/function.
53194         (gl_tls_set): Define as wrapper around glthread_tls_set.
53195         (glthread_tls_key_destroy): New macro/function.
53196         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53197         Update function declarations.
53198         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53199         glthread_tls_get.
53200         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53201
53202 2008-08-04  Eric Blake  <ebb9@byu.net>
53203
53204         gnumakefile: use space, not TAB, outside of targets
53205         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53206
53207 2008-08-02  Jim Meyering  <meyering@redhat.com>
53208
53209         getdate.y: avoid locale-dependent date parsing failure
53210         In Turkish locales, getdate would fail to recognize keywords
53211         containing a lowercase "i".  The solution is not to rely on
53212         locale-sensitive case-conversion.
53213         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53214         (lookup_word): Use c_toupper in place of toupper.
53215         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53216         Reported by Vefa Bicakci <bicave@superonline.com> in
53217         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53218         * modules/getdate (Depends-on): Add c-ctype.
53219
53220 2008-08-02  Bruno Haible  <bruno@clisp.org>
53221
53222         * gnulib-tool (func_import): When updating or creating a .gitignore
53223         file, prepend each added line with a slash, and ignore leading slashes
53224         from the existing lines.
53225         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53226
53227 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53228
53229         Portability fix for GNU make 3.79.1.
53230         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53231         versions do not understand.
53232
53233 2008-08-01  Bruno Haible  <bruno@clisp.org>
53234
53235         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53236         * tests/test-isnanf.h (zero): New variable.
53237         (main): Avoid literal -0.0f.
53238         * tests/test-isnand.h (zero): New variable.
53239         (main): Avoid literal -0.0.
53240         * tests/test-isnanl.h (zero): New variable.
53241         (main): Avoid literal -0.0L.
53242         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53243         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53244         -0.0, -0.0L.
53245         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53246         (test_signbitd): Avoid literal -0.0.
53247         (test_signbitl): Avoid literal -0.0L.
53248         * tests/test-ceilf1.c (zero): New variable.
53249         (main): Avoid literal -0.0f.
53250         * tests/test-ceill.c (zero): New variable.
53251         (main): Avoid literal -0.0L.
53252         * tests/test-floorf1.c (zero): New variable.
53253         (main): Avoid literal -0.0f.
53254         * tests/test-floorl.c (zero): New variable.
53255         (main): Avoid literal -0.0L.
53256         * tests/test-roundf1.c (zero): New variable.
53257         (main): Avoid literal -0.0f.
53258         * tests/test-round1.c (zero): New variable.
53259         (main): Avoid literal -0.0.
53260         * tests/test-roundl.c (zero): New variable.
53261         (main): Avoid literal -0.0L.
53262         * tests/test-truncf1.c (zero): New variable.
53263         (main): Avoid literal -0.0f.
53264         * tests/test-trunc1.c (zero): New variable.
53265         (main): Avoid literal -0.0.
53266         * tests/test-truncl.c (zero): New variable.
53267         (main): Avoid literal -0.0L.
53268         * tests/test-frexp.c (zero): New variable.
53269         (main): Avoid literal -0.0.
53270         * tests/test-frexpl.c (zero): New variable.
53271         (main): Avoid literal -0.0L.
53272         * tests/test-ldexpl.c (zero): New variable.
53273         (main): Avoid literal -0.0L.
53274         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53275         (zerod, zerol): New variables.
53276         (test_function): Avoid literals -0.0, -0.0L.
53277         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53278         (zerod, zerol): New variables.
53279         (test_function): Avoid literals -0.0, -0.0L.
53280         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53281         (zerod, zerol): New variables.
53282         (test_function): Avoid literals -0.0, -0.0L.
53283         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53284         (zerod, zerol): New variables.
53285         (test_function): Avoid literals -0.0, -0.0L.
53286         * tests/test-strtod.c (zero): New variable.
53287         (main): Avoid literal -0.0.
53288         Reported by Jonathan C. Patschke <jp@centtech.com>.
53289
53290 2008-07-31  Jim Meyering  <meyering@redhat.com>
53291
53292         sha256.h: correct definition of SHA224_DIGEST_SIZE
53293         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53294         Reported by Paulie Pena IV <paulie4@gmail.com>.
53295         Define as 224 / 8, rather than as a literal.
53296         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53297         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53298         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53299
53300 2008-07-31  Bruno Haible  <bruno@clisp.org>
53301
53302         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53303         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53304         Reported by Jonathan Patschke <jp@centtech.com>.
53305
53306 2008-07-31  Bruno Haible  <bruno@clisp.org>
53307
53308         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53309         Reported by Paolo Bonzini <bonzini@gnu.org>.
53310
53311 2008-07-30  Eric Blake  <ebb9@byu.net>
53312
53313         test-strtod: allow compilation without -lm
53314         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53315         Reported by Dennis Clarke <blastwave@gmail.com>.
53316
53317 2008-07-28  Jim Meyering  <meyering@redhat.com>
53318
53319         bootstrap: work also when there are no .po files in po/
53320         * build-aux/bootstrap (update_po_files): Complete the change
53321         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53322
53323 2008-07-27  Jim Meyering  <meyering@redhat.com>
53324
53325         * users.txt: Add zile.
53326
53327 2008-07-26  Ben Pfaff  <blp@gnu.org>
53328
53329         Add missing dependencies on new m4/exponent[fdl].m4 files.
53330         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53331         * modules/isnand-nolibm: Add m4/exponentd.m4.
53332         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53333         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53334         m4/isnan[fdl].m4, because the macros actually used moved.
53335         Reported by Jim Meyering.
53336
53337 2008-07-14  Ben Pfaff  <blp@gnu.org>
53338
53339         Add isinf module.
53340         * lib/isinf.c: New file.
53341         * lib/math.in.h: Define isinf macro if we have decided to replace
53342         it.
53343         * m4/isinf.m4: New file.
53344         * m4/math_h.m4: Initialize and substitute variables for isinf
53345         module.
53346         * modules/isinf: New file.
53347         * modules/isinf-tests: New file.
53348         * modules/math: Add substitutions for new module.
53349         * tests/test-isinf.c: New file.
53350         * doc/posix-functions/isinf.texi: Mention new module.
53351         * MODULES.html.sh: Mention new module.
53352
53353 2008-07-14  Ben Pfaff  <blp@gnu.org>
53354
53355         Factor out some macros for use by additional modules.
53356         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53357         exponentf.m4.
53358         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53359         exponentd.m4.
53360         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53361         file exponentl.m4.
53362         * m4/exponentf.m4: New file.
53363         * m4/exponentd.m4: New file.
53364         * m4/exponentl.m4: New file.
53365         * modules/isnanf: Use new file m4/exponentf.m4.
53366         * modules/isnand: Use new file m4/exponentd.m4.
53367         * modules/isnanl: Use new file m4/exponentl.m4.
53368
53369 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53370
53371         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53372         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53373         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53374         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53375
53376         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53377         readlink on platforms without PATH_MAX.
53378
53379 2008-07-21  Eric Blake  <ebb9@byu.net>
53380
53381         Warn, not fail, on stale version.
53382         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53383
53384         Don't allow installation with stale devel version number.
53385         * top/GNUmakefile (_is-install-target): New macro.
53386         (_curr-ver): Forbid installation with stale version number.
53387
53388 2008-07-20  Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53391         TESTS_ENVIRONMENT.
53392         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53393
53394 2008-07-20  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/c-stack.h (c_stack_action): Add documentation.
53397         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53398
53399 2008-07-20  Bruno Haible  <bruno@clisp.org>
53400
53401         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53402         * modules/readlink (License): Likewise.
53403
53404 2008-07-17  Eric Blake  <ebb9@byu.net>
53405
53406         * modules/c-stack (Link): Fix typo.
53407
53408         Make c-stack use libsigsegv, when available.
53409         * modules/c-stack (Depends-on): Add libsigsegv.
53410         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53411         needed.
53412         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53413         (segv_handler, overflow_handler, c_stack_action)
53414         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53415         implementation when libsigsegv is available, but only when using
53416         the library is necessary.
53417         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53418         comment, explaining why XSI check fails on Linux.
53419         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53420         * tests/test-c-stack2.sh: Tweak skip message.
53421         * NEWS: Document new link-time requirements.
53422
53423 2008-07-16  Eric Blake  <ebb9@byu.net>
53424
53425         c-stack: Expose false positives when not using libsigsegv.
53426         * modules/c-stack-tests (Files): Expand test.
53427         * tests/test-c-stack.c (main): Add means to conditionally trigger
53428         non-overflow SIGSEGV.
53429         * tests/test-c-stack2.sh: New file.
53430
53431 2008-07-14  Bruno Haible  <bruno@clisp.org>
53432
53433         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53434         Reported by Eric Blake.
53435
53436 2008-07-14  Sam Steingold  <sds@gnu.org>
53437             Bruno Haible  <bruno@clisp.org>
53438
53439         New module libsigsegv.
53440         * modules/libsigsegv: New file.
53441         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53442         modifications.
53443         * MODULES.html.sh (Signal handling): New section.
53444
53445 2008-07-14  Bruno Haible  <bruno@clisp.org>
53446
53447         * modules/unictype/ctype-* (Description): Add the word "function".
53448         Improves the resulting doc in MODULES.html.
53449
53450 2008-07-12  Ben Pfaff  <blp@gnu.org>
53451
53452         Add longlong module.
53453         * modules/longlong: New file.
53454
53455 2008-07-12  Bruno Haible  <bruno@clisp.org>
53456
53457         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53458         to empty.
53459
53460 2008-07-10  Ben Pfaff  <blp@gnu.org>
53461
53462         Add isnan module.
53463         * doc/posix-functions/isnan.texi: Mention new module.
53464         * lib/math.in.h: Define isnan macro if we have decided to replace
53465         it.
53466         * m4/isnan.m4: New file.
53467         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53468         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53469         also.
53470         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53471         redundancy.
53472         * m4/math_h.m4: Initialize and substitute variables for isnan
53473         module.
53474         * modules/isnan: New file.
53475         * modules/isnan-tests: New file.
53476         * modules/math: Add substitutions for new module.
53477         * tests/test-isnan.c: New file.
53478         * MODULES.html.sh: Mention new module.
53479
53480 2008-07-10  Ben Pfaff  <blp@gnu.org>
53481
53482         Add isnanf module.
53483         * lib/isnanf.m4: New file.
53484         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53485         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53486         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53487         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53488         * modules/isnanf: New file.
53489         * modules/isnanf-tests: New file.
53490         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53491         files.
53492         * tests/test-isnanf-nolibm.c: factored most of its contents into
53493         new file tests/test-isnanf.h.
53494         * tests/test-isnanf.h: New file.
53495         * tests/test-isnanf.c: New file.
53496         * MODULES.html.sh: Mention new module.
53497         * doc/glibc-functions/isnanf.texi: Mention new module.
53498
53499 2008-07-10  Ben Pfaff  <blp@gnu.org>
53500
53501         Add isnand module.
53502         * lib/isnand.h: New file.
53503         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53504         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53505         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53506         functionality also.
53507         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53508         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53509         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53510         * modules/isnand: New file.
53511         * modules/isnand-tests: New file.
53512         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53513         files.
53514         * tests/test-isnand-nolibm.c: factored most of its contents into
53515         new file tests/test-isnand.h.
53516         * tests/test-isnand.h: New file.
53517         * tests/test-isnand.c: New file.
53518         * MODULES.html.sh: Mention new module.
53519
53520 2008-07-10  Ben Pfaff  <blp@gnu.org>
53521
53522         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53523         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53524         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53525         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53526         * modules/isnanf-nolibm: Update references to renamed files.
53527         * modules/isnand-nolibm: Likewise.
53528         * modules/isnanf-nolibm-tests: Likewise.
53529         * modules/isnand-nolibm-tests: Likewise.
53530         * lib/frexp.c: Likewise.
53531         * lib/isfinite.c: Likewise.
53532         * lib/signbitd.c: Likewise.
53533         * lib/signbitf.c: Likewise.
53534         * lib/vasnprintf.c: Likewise.
53535         * tests/test-ceilf1.c: Likewise.
53536         * tests/test-ceilf2.c: Likewise.
53537         * tests/test-floorf1.c: Likewise.
53538         * tests/test-floorf2.c: Likewise.
53539         * tests/test-frexp.c: Likewise.
53540         * tests/test-round1.c: Likewise.
53541         * tests/test-round2.c: Likewise.
53542         * tests/test-roundf1.c: Likewise.
53543         * tests/test-strtod.c: Likewise.
53544         * tests/test-trunc1.c: Likewise.
53545         * tests/test-trunc2.c: Likewise.
53546         * tests/test-truncf1.c: Likewise.
53547         * tests/test-truncf2.c: Likewise.
53548         * NEWS: Mention the renamed header files.
53549
53550 2008-07-11  Jim Meyering  <meyering@redhat.com>
53551
53552         vc-list-files: make the last-resort awk code more portable
53553         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53554         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53555         does not support it.
53556
53557 2008-07-10  Eric Blake  <ebb9@byu.net>
53558
53559         Work with tar's bootstrap.
53560         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53561         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53562         an m4 comment.
53563
53564 2008-07-09  Jim Meyering  <meyering@redhat.com>
53565
53566         posix-shell.m4: fix typo that made this test malfunction
53567         * m4/posix-shell.m4: Remove capitalization in variable name.
53568
53569 2008-07-08  Bruno Haible  <bruno@clisp.org>
53570
53571         * m4/onceonly.m4: Update comments.
53572         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53573
53574 2008-07-04  Jim Meyering  <meyering@redhat.com>
53575
53576         * users.txt: Add vc-dwim.
53577         (bison, coreutils): Use the gitweb URL.
53578
53579 2008-07-03  Jim Meyering  <meyering@redhat.com>
53580
53581         * users.txt: Add libffcall.  From Sam Steingold.
53582
53583 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53584
53585         getdate.y: do not ignore TZ with relative day, month or year offset
53586         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53587         relative-date-handling, since otherwise, the latter would clobber the
53588         sole output (an updated Start value) of the tz-handling block.
53589         * tests/test-getdate.c: Tests for the fix
53590
53591 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53592
53593         Recognize 'foo_LIBRARIES += libgnu.a'.
53594         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53595         makefile snippet has already specified an installation location,
53596         also using '+='.
53597
53598 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53599
53600         getdate.y: factor out common actions
53601         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53602         Use them in place of open-coded actions.
53603
53604 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53605
53606         Add self-test for getdate module.
53607         * modules/getdate-tests: New file.
53608         * tests/test-getdate.c: New file.
53609
53610 2008-06-29  Bruno Haible  <bruno@clisp.org>
53611
53612         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53613         .gitignore.
53614         Reported by Sylvain Beucler <beuc@beuc.net>.
53615
53616 2008-06-29  Bruno Haible  <bruno@clisp.org>
53617
53618         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53619         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53620
53621 2008-06-29  Bruno Haible  <bruno@clisp.org>
53622
53623         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53624         EXTRA_DIST.
53625         Reported by Sylvain Beucler <beuc@beuc.net>.
53626
53627 2008-06-26  Jim Meyering  <meyering@redhat.com>
53628
53629         make several modules depend on the "open" module
53630         This provides slightly increased consistency when opening-for-write
53631         the name of a non-directory spelled with a trailing slash.
53632         * modules/chdir-safer: Likewise.
53633         * modules/chown: Likewise.
53634         * modules/clean-temp: Likewise.
53635         * modules/copy-file: Likewise.
53636         * modules/fchdir: Likewise.
53637         * modules/fcntl-safer: Likewise.
53638         * modules/pipe: Likewise.
53639         * modules/utime: Likewise.
53640         Prompted by Eric Blake and Bruno Haible.
53641
53642 2008-06-24  Andreas Schwab  <schwab@suse.de>
53643
53644         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53645         literals can be used as initializers for global variables.
53646
53647 2008-06-23  Eric Blake  <ebb9@byu.net>
53648
53649         Make gnulib-cache.m4 easier to diff.
53650         * gnulib-tool (func_import): Allow newlines when reading cached
53651         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53652
53653 2008-06-23  Bruno Haible  <bruno@clisp.org>
53654
53655         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53656         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53657         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53658         m4/signalblocking.m4.
53659         (gl_PREREQ_SIGACTION): Don't invoke it.
53660         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53661         gl_PREREQ_SIG_HANDLER_H.
53662         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53663         Don't check for sigaction here.
53664
53665 2008-06-23  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53668         (install_handlers): Don't set the SA_RESETHAND flag.
53669
53670 2008-06-23  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/sigaction.m4: Comment fixes.
53673         * lib/signal.in.h: Likewise.
53674
53675 2008-06-23  Eric Blake  <ebb9@byu.net>
53676
53677         Fix typo.
53678         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53679
53680         Avoid SA_ namespace.
53681         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53682         Reported by Ralf Wildenhues.
53683
53684         Avoid test failure due to SA_RESTORER.
53685         * tests/test-sigaction.c (SA_MASK): New macro.
53686         (main): Avoid failing due to extension flags being set.
53687         Reported by Jim Meyering.
53688
53689         Revert use of sig-handler.h in sigprocmask.c.
53690         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53691         it requires the existence of struct sigaction.
53692         * lib/sigprocmask.c (handler_t): Restore typedef.
53693         (rpl_signal, old_handlers): Use local type.
53694
53695 2008-06-22  Bruno Haible  <bruno@clisp.org>
53696
53697         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53698         conditionally.
53699         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53700
53701 2008-06-22  Bruno Haible  <bruno@clisp.org>
53702
53703         * doc/posix-functions/siginterrupt.texi: Move note.
53704
53705         * lib/signal.in.h (SA_RESTART): New macro.
53706         * lib/sigaction.c: Update comment.
53707
53708         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53709
53710         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53711         (gl_PREREQ_SIGPROCMASK): Invoke it.
53712         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53713
53714         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53715
53716         * lib/sigprocmask.c: Update a comment.
53717
53718 2008-06-21  Eric Blake  <ebb9@byu.net>
53719
53720         Use sigaction module rather than signal().
53721         * modules/c-stack (Depends-on): Add sigaction.
53722         * modules/fatal-signal (Depends-on): Likewise.
53723         * modules/nanosleep (Depends-on): Likewise.
53724         * modules/sigprocmask (Files): Add sig-handler.h.
53725         * modules/sigaction (Files): Likewise.
53726         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53727         Eggert.
53728         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53729         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53730         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53731         (init_fatal_signals): Likewise.
53732         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53733         (siginterrupt): Delete fallback.
53734         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53735         instead.
53736         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53737         siginterrupt.
53738
53739         New module sigaction, for mingw.
53740         * modules/sigaction: New module...
53741         * modules/sigaction-tests: ...and its test.
53742         * m4/sigaction.m4: New file.
53743         * lib/sigaction.c: Likewise.
53744         * tests/test-sigaction.c: Likewise.
53745         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53746         * modules/signal (Makefile.am): Likewise.
53747         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53748         needed.
53749         * doc/posix-headers/signal.texi (signal.h): Mention provided
53750         types.
53751         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53752         that sigaction is preferable.
53753         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53754         module.
53755         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53756         sigaction.
53757
53758         Improve robustness of sigprocmask by overriding signal.
53759         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53760         is in use.
53761         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53762         (SIGKILL, SIGSTOP): Provide fallbacks.
53763         (rpl_signal): Implement.
53764         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53765         signal can be called inside handlers.
53766
53767         Fix nanosleep module on mingw.
53768         * modules/nanosleep (Depends-on): Add sys_select.
53769         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53770
53771         Fix licensing of sigprocmask.
53772         * modules/raise (License): Relicense as LGPL.
53773
53774 2008-06-21  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53777         result if it contains question marks.
53778         Reported by Michael Geng <linux@michaelgeng.de>.
53779
53780 2008-06-19  Bruno Haible  <bruno@clisp.org>
53781
53782         Fix CVS-ism.
53783         * doc/gnulib.texi: Include updated-stamp.texi.
53784         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53785         (updated-stamp.texi): New rule.
53786         (gnulib.info): Depend on it.
53787         * doc/.gitignore: Add updated-stamp.texi.
53788         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53789
53790 2008-06-19  Bruno Haible  <bruno@clisp.org>
53791
53792         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53793         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53794
53795 2008-06-19  Eric Blake  <ebb9@byu.net>
53796
53797         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53798         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53799         Reported by Stepan Kasal.
53800
53801 2008-06-18  Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53804         Reported by Eric Blake.
53805
53806 2008-06-18  Eric Blake  <ebb9@byu.net>
53807
53808         Work around cygwin 1.5.25 strsignal bug.
53809         * tests/test-strsignal.c: Allow for const char *.
53810         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53811
53812 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53813
53814         * users.txt: Update URL to article and add author/date
53815         information.
53816
53817 2008-06-17  Bruno Haible  <bruno@clisp.org>
53818
53819         New macro gl_DISABLE_THREADS.
53820         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53821         if the user did not pass --enable-threads or --disable-threads option.
53822         (gl_DISABLE_THREADS): New macro.
53823         Reported by Eric Blake <ebb9@byu.net>.
53824
53825 2008-06-17  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53828         when the macro ignores it.
53829         Based on a patch by Eric Blake <ebb9@byu.net>.
53830
53831 2008-06-17  Bruno Haible  <bruno@clisp.org>
53832
53833         * modules/tls (License): Change to LGPLv2+.
53834         Reported by Eric Blake.
53835
53836 2008-06-17  Eric Blake  <ebb9@byu.net>
53837
53838         Simplify c-stack prerequisites.
53839         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53841         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53842         check.
53843         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53844         <sys/resource.h>.
53845
53846         Move c-stack test into testsuite.
53847         * modules/c-stack-tests: New file.
53848         * lib/c-stack.c [DEBUG]: Move test program...
53849         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53850         fail test if sigaltstack is lacking.
53851         * tests/test-c-stack.sh: New driver file.
53852
53853 2008-06-16  Eric Blake  <ebb9@byu.net>
53854
53855         Use raise module consistently.
53856         * modules/fatal-signal (Depends-on): Add raise.
53857         * modules/sigprocmask (Depends-on): Likewise.
53858         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53859         * lib/sigprocmask.c (sigprocmask): Likewise.
53860         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53861         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53862
53863         Fix compliance bug in sigpending.
53864         * lib/sigprocmask.c (sigpending): Return pending array via
53865         parameter, not return value.
53866
53867 2008-06-14  Eric Blake  <ebb9@byu.net>
53868
53869         Improve obstack-printf test code.
53870         * tests/test-obstack-printf.c (test_function): Fix comment, and
53871         simplify usage of obstack_* in macros.  Add a test for coverage.
53872         Reported by Bruno Haible.
53873
53874 2008-06-14  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53877         array size as a constant, not as a const variable.
53878         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53879         AC_USE_SYSTEM_EXTENSIONS.
53880         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53881         Test whether the obstack_printf function actually exists.
53882         * modules/obstack-printf (Depends-on): Add extensions.
53883         (Include): Remove obstack.h.
53884         * modules/obstack-printf-posix (Depends-on): Add extensions.
53885         (Include): Remove obstack.h.
53886
53887 2008-06-13  Eric Blake  <ebb9@byu.net>
53888
53889         Add obstack-printf and obstack-printf-posix modules.
53890         * modules/obstack-printf: New file.
53891         * modules/obstack-printf-posix: Likewise.
53892         * MODULES.html.sh (Misc): Mention them.
53893         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53894         Likewise.
53895         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53896         Likewise.
53897         * modules/stdio (Makefile.am): Accomodate new modules.
53898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53899         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53900         Declare.
53901         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53902         functions.
53903         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53904         (gl_REPLACE_OBSTACK_PRINTF): New macros
53905         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53906         * tests/test-obstack-printf.c: New file.
53907         * modules/obstack-printf-tests: Likewise.
53908         * modules/obstack-printf-posix-tests: Likewise.
53909
53910 2008-06-11  Bruno Haible  <bruno@clisp.org>
53911
53912         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53913         * lib/open.c: Include errno.h.
53914         (open): Fail when attempting to write to a file that has a trailing
53915         slash.
53916         * tests/test-open.c (main): Test against trailing slash bug.
53917         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53918
53919 2008-06-10  Bruno Haible  <bruno@clisp.org>
53920
53921         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53922         for $? to work inside the trap command, with various /bin/sh-s.
53923         * tests/test-vc-list-files-cvs.sh: Likewise.
53924
53925 2008-06-10  Bruno Haible  <bruno@clisp.org>
53926
53927         * lib/acl-internal.h: Don't include gettext.h here.
53928         * lib/set-mode-acl.c: Include gettext.h here.
53929         * lib/copy-acl.c: Likewise.
53930
53931 2008-06-10  Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53934         * lib/wait-process.c (wait_subprocess): Likewise.
53935         * lib/execute.h (execute): Add termsigp argument.
53936         * lib/execute.c (execute): Likewise.
53937         * lib/csharpcomp.c (compile_csharp_using_pnet,
53938         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53939         * lib/csharpexec.c (execute_csharp_using_pnet,
53940         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53941         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53942         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53943         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53944         is_jikes_present): Update.
53945         * lib/javaexec.c (execute_java_class): Update.
53946         * lib/javaversion.c (execute_and_read_line): Update.
53947         * NEWS: Document the changes.
53948         Reported by Eric Blake.
53949
53950 2008-06-10  Eric Blake  <ebb9@byu.net>
53951
53952         Add missing include.
53953         * tests/test-strstr.c (includes): Add <signal.h>.
53954         * tests/test-strcasestr.c (includes): Likewise.
53955         * tests/test-memmem.c (includes): Likewise.
53956
53957 2008-06-10  Bruno Haible  <bruno@clisp.org>
53958
53959         * lib/wait-process.c (wait_subprocess): Add an assertion.
53960
53961 2008-06-10  Bruno Haible  <bruno@clisp.org>
53962
53963         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53964
53965 2008-06-10  Bruno Haible  <bruno@clisp.org>
53966
53967         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53968         using alarm().
53969         * tests/test-strcasestr.c (main): Likewise.
53970         * tests/test-strstr.c (main): Likewise.
53971
53972 2008-06-09  Bruno Haible  <bruno@clisp.org>
53973
53974         Work around the Solaris 10 ACE ACLs ABI change.
53975         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53976         declare if ACL_NO_TRIVIAL is present.
53977         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53978         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53979         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53980         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53981         define if ACL_NO_TRIVIAL is present.
53982         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53983         and use the current ABI.
53984         (file_has_acl): Use same #if condition as elsewhere.
53985         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53986         in use, and use the current ABI.
53987         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53988         Reported by Jim Meyering.
53989
53990 2008-06-09  Eric Blake  <ebb9@byu.net>
53991
53992         Work around environments that (stupidly) ignore SIGALRM.
53993         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53994         before using alarm().
53995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53996         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53997         Reported by Ian Beckwith <ianb@erislabs.net>.
53998
53999         Produce autobuild blurb earlier in log.
54000         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54001
54002 2008-06-09  Jim Meyering  <meyering@redhat.com>
54003         and OndÅ™ej Vašík  <ovasik@redhat.com>
54004
54005         utimens.c: correct kernel bug work-around
54006         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54007         failure, not success, and the kernel bug we're trying to work
54008         around affects not just the utimensat call, but also the fallback
54009         futimens call.
54010         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54011         not success.
54012         [HAVE_FUTIMENS]: Use the same work-around, here.
54013
54014 2008-06-09  Jim Meyering  <meyering@redhat.com>
54015
54016         add more guards around definition of ACE_-related code
54017         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54018         ALLOW and ACE_OWNER are also defined.
54019
54020 2008-06-08  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/acl-internal.h: Add me as co-author.
54023         * lib/file-has-acl.c: Likewise.
54024         * lib/set-mode-acl.c: Likewise.
54025         * lib/copy-acl.c: Likewise.
54026
54027 2008-06-08  Bruno Haible  <bruno@clisp.org>
54028
54029         Add support for AIX ACLs.
54030         * lib/acl-internal.h (acl_nontrivial): New declaration.
54031         * lib/file-has-acl.c (acl_nontrivial): New function.
54032         (file_has_acl): Add implementation using AIX 4 ACL API.
54033         * lib/set-mode-acl.c (qset_acl): Likewise.
54034         * lib/copy-acl.c (qcopy_acl): Likewise.
54035
54036 2008-06-08  Bruno Haible  <bruno@clisp.org>
54037
54038         Add support for HP-UX ACLs.
54039         * lib/acl-internal.h (acl_nontrivial): New declaration.
54040         * lib/file-has-acl.c (acl_nontrivial): New function.
54041         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54042         * lib/set-mode-acl.c (qset_acl): Likewise.
54043         * lib/copy-acl.c (qcopy_acl): Likewise.
54044
54045 2008-06-08  Bruno Haible  <bruno@clisp.org>
54046
54047         Add support for Cygwin ACLs.
54048         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54049         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54050         the chmod_or_fchmod call.
54051         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54052
54053 2008-06-08  Bruno Haible  <bruno@clisp.org>
54054
54055         Fix bug with setuid modes in Solaris 10+ code.
54056         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54057         succeeded, when the mode contains some special bits.
54058
54059 2008-06-08  Bruno Haible  <bruno@clisp.org>
54060
54061         Add support for Solaris 7..10 ACLs.
54062         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54063         declarations.
54064         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54065         functions.
54066         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54067         * lib/set-mode-acl.c (qset_acl): Likewise.
54068         * lib/copy-acl.c (qcopy_acl): Likewise.
54069
54070 2008-06-08  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54073         declaration.
54074         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54075         (acl_access_nontrivial): Remove MacOS X case.
54076         (file_has_acl): Use acl_extended_nontrivial.
54077         * lib/copy-acl.c (qcopy_acl): Likewise.
54078
54079 2008-06-08  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54082
54083 2008-06-08  Jim Meyering  <meyering@redhat.com>
54084
54085         * modules/acl (Maintainer): Add Bruno Haible.
54086
54087 2008-06-07  Bruno Haible  <bruno@clisp.org>
54088
54089         Improve support for Tru64 ACLs.
54090         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54091         ACL on OSF/1.
54092
54093 2008-06-07  Bruno Haible  <bruno@clisp.org>
54094
54095         Add support for MacOS X ACLs.
54096         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54097         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54098         * lib/set-mode-acl.c (qset_acl): Likewise.
54099         * lib/copy-acl.c (qcopy_acl): Likewise.
54100
54101 2008-06-07  Bruno Haible  <bruno@clisp.org>
54102
54103         Fix memory leak introduced on 2008-05-22.
54104         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54105         use.
54106
54107 2008-06-07  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54110         to construct an empty ACL.
54111
54112 2008-06-07  Bruno Haible  <bruno@clisp.org>
54113
54114         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54115         precisely.
54116         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54117
54118 2008-06-07  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54121         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54122
54123 2008-06-07  Bruno Haible  <bruno@clisp.org>
54124
54125         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54126         regardless of POSIX.
54127         * doc/posix-functions/_longjmp.texi: Likewise.
54128         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54129         SystemV platform in this case.
54130
54131 2008-06-06  Eric Blake  <ebb9@byu.net>
54132
54133         Document abort() bugs.
54134         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54135
54136         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54137         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54138         sigsetjmp.
54139         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54140         siglongjmp, but only as a macro.
54141         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54142         is obsolete.
54143         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54144
54145         Tweak documentation to cover cygwin argz bugs.
54146         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54147         argz bug fix; no code change needed since no cygwin releases
54148         occurred between the last fix and the bug being tested.
54149         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54150         module and recently fixed cygwin bugs.
54151         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54152         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54153         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54154         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54155         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54156         Likewise.
54157         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54158         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54159         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54160         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54161         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54162         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54163         Likewise.
54164
54165         Avoid gcc warning on cygwin.
54166         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54167         !ACL_NO_TRIVIAL]: Avoid unused variable.
54168
54169 2008-06-05  Eric Blake  <ebb9@byu.net>
54170
54171         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54172         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54173         git-version-gen fails to come up with a version.
54174         Reported by Simon Josefsson.
54175
54176 2008-06-05  Jim Meyering  <meyering@redhat.com>
54177             Paul Eggert  <eggert@cs.ucla.edu>
54178
54179         utimens.c: work around a probable Linux kernel bug
54180         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54181         appears to be a kernel bug that causes utimensat to return 280
54182         instead of 0, indicating success.
54183
54184 2008-06-04  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54187         2008-06-01 commit.
54188
54189 2008-06-04  Bruno Haible  <bruno@clisp.org>
54190
54191         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54192         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54193         (file_has_acl): Use it. Save errno afterwards.
54194         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54195
54196 2008-06-03  Bruno Haible  <bruno@clisp.org>
54197
54198         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54199         draft code. Simplify #ifs.
54200         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54201         Put Solaris code after POSIX-draft code. Fix comments regarding
54202         Solaris 10, HP-UX. Mention Cygwin.
54203         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54204
54205 2008-06-03  Eric Blake  <ebb9@byu.net>
54206
54207         Provide fallback for older kernels.
54208         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54209         Provide runtime fallback if kernel lacks support.
54210         Reported by Mike Frysinger.
54211
54212 2008-06-02  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54215         it exists.
54216
54217 2008-06-02  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54220         * lib/copy-acl.c (qcopy_acl): Update comment.
54221
54222 2008-06-02  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54225         like ACL APIs.
54226
54227 2008-06-02  Bruno Haible  <bruno@clisp.org>
54228
54229         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54230         * tests/test-set-mode-acl.sh: Likewise.
54231         * tests/test-copy-acl.sh: Likewise.
54232         * tests/test-copy-file.sh: Likewise.
54233
54234 2008-06-02  Bruno Haible  <bruno@clisp.org>
54235
54236         * tests/test-file-has-acl.sh: Remove unused code.
54237
54238 2008-06-01  Bruno Haible  <bruno@clisp.org>
54239
54240         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54241         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54242         messages.
54243         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54244
54245 2008-06-01  Bruno Haible  <bruno@clisp.org>
54246
54247         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54248         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54249         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54250         APIs.
54251         * modules/acl-tests (configure.ac): Remove tests now contained in
54252         m4/acl.m4.
54253
54254 2008-06-02  Jim Meyering  <meyering@redhat.com>
54255
54256         announce-gen: use a better key-server host name
54257         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54258         it may be more consistently reliable.  Suggested by Werner Koch
54259         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54260
54261 2008-06-01  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54264         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54265
54266 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54267
54268         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54269
54270 2008-06-01  Bruno Haible  <bruno@clisp.org>
54271
54272         New ACL tests.
54273         * tests/test-file-has-acl.sh: New file.
54274         * tests/test-file-has-acl.c: New file.
54275         * tests/test-set-mode-acl.sh: New file.
54276         * tests/test-set-mode-acl.c: New file.
54277         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54278         * tests/test-copy-acl.c: New file.
54279         * modules/acl-tests: New file, based on modules/copy-file-tests.
54280         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54281         (Depends-on): Add acl-tests.
54282         (configure.ac): Remove checks.
54283         (Makefile.am): Don't create test-sameacls program here any more.
54284
54285 2008-06-01  Bruno Haible  <bruno@clisp.org>
54286
54287         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54288         * tests/test-sameacls.c: Include progname.h.
54289         (main): Invoke set_program_name. Portability fixes for MacOS X,
54290         Solaris, HP-UX.
54291
54292 2008-06-01  Bruno Haible  <bruno@clisp.org>
54293
54294         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54295         function.
54296         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54297
54298 2008-06-01  Bruno Haible  <bruno@clisp.org>
54299
54300         * modules/rpmatch (Depends-on): Add strdup.
54301
54302 2008-06-01  Bruno Haible  <bruno@clisp.org>
54303
54304         * lib/pipe.c: Include unistd-safer.h.
54305         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54306         * modules/pipe (Depends-on): Add unistd-safer.
54307
54308 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54309
54310         * modules/autobuild (configure.ac): Call AB_INIT.
54311
54312 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54313
54314         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54315         Suggested by Bruno Haible <bruno@clisp.org>.
54316
54317 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54318
54319         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54320         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54321         <bruno@clisp.org>.
54322
54323 2008-05-29  Eric Blake  <ebb9@byu.net>
54324
54325         Prefer new POSIX 200x interfaces over futimesat.
54326         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54327         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54328         when available.
54329         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54330
54331 2008-05-28  Bruno Haible  <bruno@clisp.org>
54332
54333         * modules/stpcpy (License): Change to LGPLv2+.
54334         Requested by David Lutterkort <dlutter@redhat.com>.
54335
54336 2008-05-27  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54339         current mingw.
54340         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54341
54342 2008-05-27  Bruno Haible  <bruno@clisp.org>
54343
54344         * modules/iconv_open (Link): New section, from module 'iconv'.
54345         * modules/striconv (Link): Likewise.
54346         * modules/striconveh (Link): Likewise.
54347         * modules/xstriconv (Link): Likewise.
54348         * modules/unicodeio (Link): Likewise.
54349         * modules/propername (Link): Likewise.
54350         Reported by Jim Meyering.
54351
54352 2008-05-26  Jim Meyering  <meyering@redhat.com>
54353
54354         sha256: do not artificially restrict buffer length to be < 2^32
54355         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54356         uint32_t to size_t.
54357         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54358         to match.
54359
54360         avoid unaligned access errors, e.g., on sparc
54361         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54362         direct access through a possibly-unaligned uint64* pointer.
54363         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54364         direct access through a possibly-unaligned uint32* pointer.
54365         Prompted by this patch from Tom "spot" Callaway:
54366         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54367
54368         sha512.c: fix typo in comment
54369         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54370
54371 2008-05-25  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54374         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54375         (Makefile.am): Update lib_SOURCES.
54376
54377 2008-05-25  Bruno Haible  <bruno@clisp.org>
54378
54379         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54380
54381 2008-05-25  Jim Meyering  <meyering@redhat.com>
54382
54383         useless-if-before-free: freed expr may have white-space differences
54384         * build-aux/useless-if-before-free: Recognize cases in which the
54385         freed expression differs from the tested one in embedded white
54386         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54387         $1 was used, so we can't make any regexp shy.  Improved tests now
54388         detect this.
54389
54390         useless-if-before-free: accept white space in the expression.
54391         * build-aux/useless-if-before-free: For now, any white space
54392         in the expression must be identical in the free argument.
54393
54394         useless-if-before-free: efficiency tweak
54395         * build-aux/useless-if-before-free: Make the expression-matching
54396         regexp "shy".
54397         Make the *outer* regexp shy, not the expr-matching one.
54398
54399         update code-in-comment to accept cast of free arg
54400         * build-aux/useless-if-before-free: Update regexp.
54401
54402 2008-05-25  Bruno Haible  <bruno@clisp.org>
54403
54404         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54405         * modules/copy-file-tests (Files, Makefile.am): Update.
54406         * tests/test-copy-file.c (func_test_copy): Update.
54407
54408 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54409
54410         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54411
54412 2008-05-23  Bruno Haible  <bruno@clisp.org>
54413
54414         Improve support for ACLs on OSF/1.
54415         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54416         Remove fallback for unknown flavors of ACLs.
54417
54418 2008-05-22  Bruno Haible  <bruno@clisp.org>
54419
54420         Add support for ACLs on OSF/1.
54421         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54422         replacements.
54423         (acl_free_text): New macro fallback.
54424         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54425         acl_free.
54426         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54427         acl_free_text function. Require AC_C_INLINE.
54428
54429 2008-05-22  Bruno Haible  <bruno@clisp.org>
54430
54431         Make copy_acl work on MacOS X 10.5.
54432         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54433         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54434         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54435         If MODE_INSIDE_ACL, don't assume that every system has the same text
54436         representation for ACLs as FreeBSD.
54437         * lib/copy-acl.c (copy_acl): Add support for platforms with
54438         !MODE_INSIDE_ACL.
54439         * lib/file-has-acl.c (file_has_acl): Likewise.
54440         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54441         FreeBSD, MacOS X, or IRIX, respectively.
54442
54443 2008-05-22  Bruno Haible  <bruno@clisp.org>
54444
54445         * lib/acl.h: Don't include <sys/acl.h>.
54446         (GETACLCNT): Move fallback to lib/acl-internal.h.
54447         * lib/acl-internal.h: Include <sys/acl.h> here.
54448         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54449
54450 2008-05-22  Bruno Haible  <bruno@clisp.org>
54451
54452         Split off copy_acl function to separate file.
54453         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54454         * lib/acl.c (copy_acl): Moved function to separate file.
54455         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54456         * modules/acl (Files): Add lib/copy-acl.c.
54457         (Makefiles.am): Augment lib_SOURCES.
54458
54459 2008-05-22  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/copy-file-tests: New file.
54462         * tests/test-copy-file.sh: New file.
54463         * tests/test-copy-file.c: New file.
54464         * tests/test-copy-file-sameacls.c: New file.
54465
54466 2008-05-22  Eric Blake  <ebb9@byu.net>
54467
54468         Avoid gcc warning.
54469         * tests/test-memcmp.c (main): Pass NULL indirectly.
54470
54471 2008-05-21  Bruno Haible  <bruno@clisp.org>
54472
54473         Add reference doc about ACLs.
54474         * doc/acl-resources.txt: New file.
54475         * doc/acl-cygwin.txt: New file.
54476
54477 2008-05-21  Bruno Haible  <bruno@clisp.org>
54478
54479         Avoid one more warning from gcc.
54480         * lib/vasnprintf.c (IF_LINT): Update comments.
54481         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54482
54483 2008-05-21  Jim Meyering  <meyering@redhat.com>
54484
54485         avoid a warning from gcc
54486         * lib/vasnprintf.c (IF_LINT): Define.
54487         (scale10_round_decimal_long_double):
54488         Use it to avoid a "may be used uninitialized" warning.
54489         (scale10_round_decimal_double): Likewise.
54490
54491 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54492
54493         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54494         declared.
54495
54496 2008-05-20  Bruno Haible  <bruno@clisp.org>
54497
54498         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54499         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54500
54501 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54502
54503         * modules/memcmp-tests: New file.
54504         * tests/test-memcmp.c: New file.
54505
54506 2008-05-19  Bruno Haible  <bruno@clisp.org>
54507
54508         * modules/propername (Notice, configure.ac): Put quoted "..." into
54509         --keyword option.
54510         * lib/propername.h: Update comments accordingly.
54511         Reported by Eric Blake.
54512
54513 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54514
54515         * modules/getpass-gnu (Depends-on): Add fseeko.
54516
54517 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54518
54519         * modules/base64-tests: New file.
54520
54521 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54522
54523         * lib/base64.c (base64_decode_ctx): If a decode context structure
54524         was passed in use it to ignore newlines.  If a context structure
54525         was _not_ passed in, continue to treat newlines as garbage (this
54526         is the historical behavior).  Formerly base64_decode.
54527         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54528         takes a decode context structure.
54529         * lib/base64.h (base64_decode): Macro for four-argument calls.
54530         (base64_decode_alloc): Likewise.
54531         * lib/base64.c (base64_decode_ctx): If a decode context structure
54532         was passed in use it to ignore newlines.  If a context structure
54533         was _not_ passed in, continue to treat newlines as garbage (this
54534         is the historical behavior).  Formerly base64_decode.
54535         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54536         takes a decode context structure.
54537         * lib/base64.h (base64_decode): Macro for four-argument calls.
54538         (base64_decode_alloc): Likewise.
54539
54540 2008-05-19  Jim Meyering  <meyering@redhat.com>
54541
54542         avoid a warning from gcc
54543         * lib/trim.c (IF_LINT): Define.
54544         (trim2): Use it to avoid a "may be used uninitialized" warning.
54545
54546         Fix doc typo.
54547         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54548
54549 2008-05-19  Bruno Haible  <bruno@clisp.org>
54550
54551         * doc/glibc-functions/getpass.texi: Document limits of other
54552         implementations.
54553
54554 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54555             Bruno Haible <bruno@clisp.org>
54556
54557         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54558
54559 2008-05-18  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/propername: New file, from GNU gettext.
54562         * lib/propername.h: New file, from GNU gettext.
54563         * lib/propername.c: New file, from GNU gettext.
54564         * MODULES.html.sh (Internationalization functions): Add propername.
54565
54566 2008-05-16  Jim Meyering  <meyering@redhat.com>
54567             Bruno Haible  <bruno@clisp.org>
54568
54569         Avoid some warnings from "gcc -Wshadow".
54570         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54571
54572 2008-05-15  Eric Blake  <ebb9@byu.net>
54573
54574         Extend previous patch to cygwin 1.7.0.
54575         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54576         fast implementation in cygwin >= 1.7.0.
54577         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54579
54580 2008-05-15  Bruno Haible  <bruno@clisp.org>
54581
54582         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54583         implementation in glibc >= 2.9.
54584         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54586
54587 2008-05-15  Bruno Haible  <bruno@clisp.org>
54588
54589         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54590         (Unicode string functions): Add unilbrk/*.
54591         Reported by Karl Berry.
54592
54593 2008-05-15  Eric Blake  <ebb9@byu.net>
54594
54595         Fix violation of <stdbool.h> replacement in regex.
54596         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54597         * lib/regexec.c (re_search_internal): Likewise.
54598         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54599
54600 2008-05-15  Jim Meyering  <meyering@redhat.com>
54601
54602         avoid distracting test output when git or cvs is not found
54603         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54604         * tests/test-vc-list-files-git.sh: Likewise.
54605
54606 2008-05-15  Eric Blake  <ebb9@byu.net>
54607
54608         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54609         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54610         glibc version.
54611         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54612         * doc/posix-functions/strstr.texi (strstr): Likewise.
54613         * lib/str-two-way.h (MAX): Sychronize with glibc.
54614
54615 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54616
54617         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54618         opr.ctx_type.
54619         (calc_first): Initialize constraint field.
54620         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54621         Fix grammar.
54622         (duplicate_node): Merge constraint field for all node types.
54623         (calc_eclosure_iter): Look at constraint field for all node types.
54624         * lib/regex_internal.c (create_cd_newstate): Don't look at
54625         opr.ctx_type.
54626
54627 2008-05-14  Bruno Haible  <bruno@clisp.org>
54628
54629         Help GCC to do better code generation.
54630         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54631         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54632         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54633         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54634         Declare with attribute 'malloc' if supported.
54635
54636 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54637
54638         use "echo STR|wc -c" rather than unportable "expr length STR"
54639         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54640         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54641
54642 2008-05-14  Jim Meyering  <meyering@redhat.com>
54643
54644         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54645         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54646         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54647         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54648         via Collin Lasse.
54649
54650 2008-05-14  Eric Blake  <ebb9@byu.net>
54651
54652         Avoid quadratic growth in gl_LIBSOURCES.
54653         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54654         Suggested by Bruno Haible.
54655
54656         Test xmemdup0.
54657         * modules/xmemdup0-tests: New file.
54658         * tests/test-xmemdup0.c: Likewise.
54659
54660 2008-05-13  Eric Blake  <ebb9@byu.net>
54661
54662         Split xmemdup0 into its own module.
54663         * modules/xmemdup0: New file.
54664         * lib/xmemdup0.h: Likewise.
54665         * lib/xmemdup0.c: Likewise.
54666         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54667         * lib/xalloc.h (xmemdup0): Remove.
54668         * lib/xmalloc.c (xmemdup0): Likewise.
54669
54670 2008-05-13  Eric Blake  <ebb9@byu.net>
54671             Bruno Haible  <bruno@clisp.org>
54672
54673         Reduce number of forks required during autoconf.
54674         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54675         and gl_LIBSOURCES_DIR.
54676         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54677         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54678         m4_syscmd per file.
54679         <m4_foreach_w>: Move...
54680         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54681
54682 2008-05-13  Eric Blake  <ebb9@byu.net>
54683
54684         * gnulib-tool: Fix various comment typos.
54685
54686 2008-05-12  Bruno Haible  <bruno@clisp.org>
54687
54688         Tailor the linebreaking algorithm.
54689         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54690
54691 2008-05-12  Bruno Haible  <bruno@clisp.org>
54692
54693         Update to Unicode 5.0.0.
54694         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54695         LBP_JV, LBP_JT. Redistribute values.
54696         (unilbrk_table): Change size.
54697         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54698         Unicode TR#14 rev. 22.
54699         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54700         LBP_JV, LBP_JT. Redistribute values.
54701         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54702         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54703         Update.
54704         * lib/unilbrk/lbrkprop1.h: Regenerated.
54705         * lib/unilbrk/lbrkprop2.h: Regenerated.
54706         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54707         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54708         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54709         Likewise.
54710         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54711         Likewise.
54712         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54713         result.
54714         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54715         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54716         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54717         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54718         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54719         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54720
54721 2008-05-11  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54724
54725 2008-05-11  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54728         * modules/unilbrk/gen-lbrk: New file.
54729
54730 2008-05-11  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54733         * m4/sha512.m4 (gl_SHA512): Likewise.
54734
54735 2008-05-11  Jim Meyering  <meyering@redhat.com>
54736
54737         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54738         * modules/crypto/sha256: New file.
54739         * modules/crypto/sha512: Likewise.
54740         * lib/sha256.c: Likewise.
54741         * lib/sha256.h: Likewise.
54742         * lib/sha512.c: Likewise.
54743         * lib/sha512.h: Likewise.
54744         * lib/u64.h: Likewise.
54745         * m4/sha256.m4: Likewise.
54746         * m4/sha512.m4: Likewise.
54747         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54748
54749 2008-05-10  Bruno Haible  <bruno@clisp.org>
54750
54751         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54752         (Input/Output <stdio.h>): Add xprintf.
54753         (Signal handling <signal.h>): Add strsignal.
54754         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54755         (Core language properties): Add func.
54756         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54757         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54758         strings.
54759         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54760         (Input/output): New section.
54761         (File system functions): Add openat-die, stat-macros.
54762         (Networking functions): Add sockets.
54763         (Unicode string functions): Add unictype/*.
54764         (Support for building libraries and executables): Add gperf.
54765         (Support for building documentation): Add agpl-3.0.
54766         (Misc): Add nocrash.
54767
54768 2008-05-10  Bruno Haible  <bruno@clisp.org>
54769
54770         * modules/unictype/gen-ctype: New file.
54771
54772 2008-05-10  Jim Meyering  <meyering@redhat.com>
54773
54774         Make chdir-safer.c more efficient on a system with no symlinks.
54775         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54776         also if ELOOP is zero.  Suggested by Bruno Haible.
54777
54778         Make chdir-safer.c slightly safer.
54779         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54780         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54781
54782         Avoid compile failure on systems without ELOOP (like mingw).
54783         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54784         Reported by Bruno Haible.
54785
54786 2008-05-10  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54789         (is_utf8_encoding): Use a case-insensitive comparison.
54790         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54791         streq.
54792
54793 2008-05-10  Bruno Haible  <bruno@clisp.org>
54794
54795         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54796         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54797         * lib/unilbrk/ulc-common.h (iconv_string_length,
54798         iconv_string_keeping_offsets): Remove declarations.
54799         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54800         Don't include <iconv.h>, streq.h, xsize.h.
54801         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54802         conversion.
54803         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54804         <iconv.h>, streq.h, xsize.h.
54805         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54806         conversion.
54807         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54808         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54809         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54810         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54811
54812 2008-05-10  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54815         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54816
54817         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54818         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54819
54820         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54821         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54822
54823         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54824         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54825
54826         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54827         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54828
54829         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54830         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54831
54832         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54833         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54834
54835         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54836         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54837
54838 2008-05-10  Bruno Haible  <bruno@clisp.org>
54839
54840         Split up 'linebreak' module.
54841         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54842         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54843         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54844         modifications.
54845         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54846         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54847         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54848         lib/linebreak.c.
54849         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54850         lib/linebreak.c.
54851         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54852         lib/linebreak.c.
54853         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54854         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54855         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54856         lib/linebreak.c.
54857         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54858         lib/linebreak.c.
54859         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54860         lib/linebreak.c.
54861         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54862         lib/linebreak.c.
54863         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54864         lib/linebreak.c.
54865         * modules/unilbrk/base: New file.
54866         * modules/unilbrk/tables: New file.
54867         * modules/unilbrk/u8-possible-linebreaks: New file.
54868         * modules/unilbrk/u16-possible-linebreaks: New file.
54869         * modules/unilbrk/u32-possible-linebreaks: New file.
54870         * modules/unilbrk/ulc-common: New file.
54871         * modules/unilbrk/ulc-possible-linebreaks: New file.
54872         * modules/unilbrk/u8-width-linebreaks: New file.
54873         * modules/unilbrk/u16-width-linebreaks: New file.
54874         * modules/unilbrk/u32-width-linebreaks: New file.
54875         * modules/unilbrk/ulc-width-linebreaks: New file.
54876         * lib/linebreak.h: Remove file.
54877         * lib/linebreak.c: Remove file.
54878         * m4/linebreak.m4: Remove file.
54879         * modules/linebreak: Remove file.
54880         * NEWS: Mention the changes.
54881
54882 2008-05-09  Eric Blake  <ebb9@byu.net>
54883
54884         Add xmemdup0.
54885         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54886         implementation.
54887         * lib/xmalloc.c (xmemdup0): New C implementation.
54888
54889 2008-05-08  Bruno Haible  <bruno@clisp.org>
54890
54891         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54892
54893 2008-05-07  Eric Blake  <ebb9@byu.net>
54894
54895         Support cross-compilation of <wctype.h>.
54896         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54897         AC_CACHE_CHECK.
54898
54899 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54900
54901         * build-aux/vc-list-files: Add support for bzr.
54902
54903 2008-05-03  Jim Meyering  <meyering@redhat.com>
54904
54905         avoid failed assertion with tight malloc
54906         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54907
54908 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54909
54910         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54911         are needed from arpa/inet.h.
54912         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54913         Reported by Bruno Haible.
54914
54915 2008-05-02  Jim Meyering  <meyering@redhat.com>
54916
54917         avoid compilation error on FreeBSD 6
54918         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54919
54920 2008-05-01  Jim Meyering  <meyering@redhat.com>
54921
54922         useless-if-before-free: correct --help's exit status description
54923         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54924         for one or more matches, etc.  Reported by Bruno Haible.
54925
54926         vc-list-files: make the stand-alone gnulib test work
54927         * modules/vc-list-files-tests (configure.ac):
54928         Define and AC_SUBST abs_aux_dir.
54929         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54930         $(abs_top_srcdir) to each script and having each of them
54931         duplicate the work of setting PATH, set PATH here, using
54932         the new variable, abs_aux_dir instead.
54933         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54934         * tests/test-vc-list-files-git.sh: Likewise.
54935         Reported by Bruno Haible.
54936
54937 2008-05-01  Bruno Haible  <bruno@clisp.org>
54938
54939         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54940         reallocation. Rename 'done' to 'found_delimiter'.
54941
54942 2008-05-01  Jim Meyering  <meyering@redhat.com>
54943
54944         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54945         * build-aux/vc-list-files: Use `...`, not $(...).
54946
54947 2008-04-30  Jim Meyering  <meyering@redhat.com>
54948
54949         add tests for vc-list-files
54950         * modules/vc-list-files-tests: New module.
54951         * tests/test-vc-list-files-cvs.sh: New file.
54952         * tests/test-vc-list-files-git.sh: New file.
54953
54954         avoid a warning from gcc
54955         * lib/getndelim2.c (IF_LINT): Define.
54956         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54957
54958         vc-list-files: work properly with build-aux/cvsu, too
54959         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54960         to all cvs-based clauses.
54961
54962         vc-list-files: work properly in the CVS+awk case, too
54963         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54964
54965         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54966         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54967         take more than one file argument, so .  Add quotes, just in case $dir
54968         ever contains a shell meta-character.  Prompted by Soren Hansen in
54969         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54970
54971 2008-04-29  Eric Blake  <ebb9@byu.net>
54972
54973         Optimize getndelim2 to use block operations when possible.
54974         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54975         freadseek, and memchr2.
54976         * lib/getndelim2.c (getndelim2): Use them for block reads.
54977
54978 2008-04-29  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54981         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54982         * modules/inet_ntop (Depends-on): Add extensions.
54983         * modules/inet_pton (Depends-on): Likewise.
54984         Reported by Simon Josefsson.
54985
54986 2008-04-29  Jim Meyering  <meyering@redhat.com>
54987
54988         When the is more than one match in a block, match all of them.
54989         * build-aux/useless-if-before-free: Iterate through each block
54990         until there are no more matches.
54991
54992         Fix broken useless-if-before-free script.
54993         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54994         the expression to match cast of argument to free-like function.
54995
54996 2008-04-29  Eric Blake  <ebb9@byu.net>
54997
54998         Use new header.
54999         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55000
55001 2008-04-29  Jim Meyering  <meyering@redhat.com>
55002
55003         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55004         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55005         by gnulib to exist and to declare e.g., inet_ntop.
55006         Don't include "inet_ntop.h", now removed.
55007
55008         * m4/arpa_inet_h.m4: Remove trailing blanks.
55009
55010 2008-04-29  Eric Blake  <ebb9@byu.net>
55011
55012         Silence valgrind on safe reads beyond potential array bounds.
55013         * lib/rawmemchr.valgrind: New file.
55014         * lib/strchrnul.valgrind: Likewise.
55015         * modules/rawmemchr (Files): Distribute new file.
55016         * modules/strchrnul (Files): Likewise.
55017         Suggested by Bruno Haible.
55018
55019 2008-04-29  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55022         (inet_ntop, inet_pton): Change portability warning's wording.
55023         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55024         Invoke gl_CHECK_NEXT_HEADERS.
55025         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55026         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55027         set ARPA_INET_H.
55028         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55029         * modules/arpa_inet (Description): No longer only for systems that
55030         lack it.
55031         (Depends-on): Add include_next.
55032         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55033         HAVE_ARPA_INET_H.
55034
55035 2008-04-29  Jim Meyering  <meyering@redhat.com>
55036
55037         * modules/mkdir (License): Re-license as LGPLv2+.
55038
55039 2008-04-29  Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/rawmemchr (Maintainer): Set to Eric.
55042         * modules/strchrnul (Maintainer): Likewise.
55043
55044 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55045
55046         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55047         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55048
55049         * modules/arpa_inet (arpa/inet.h): Use them.
55050
55051 2008-04-28  Eric Blake  <ebb9@byu.net>
55052
55053         Test getndelim2.
55054         * modules/getndelim2-tests: New file.
55055         * tests/test-getndelim2.c: Likewise.
55056         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55057         stream.
55058         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55059
55060         * MODULES.html.sh: Document new module.
55061
55062 2008-04-20  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/c-stack.c (die): Use raise.
55065         * modules/c-stack (Depends-on): Add raise.
55066
55067 2008-04-28  Bruno Haible  <bruno@clisp.org>
55068
55069         Expect rpmatch to be declared.
55070         * lib/yesno.c (rpmatch): Remove declaration.
55071
55072         Declare rpmatch.
55073         * lib/stdlib.in.h (rpmatch): New declaration.
55074         * lib/rpmatch.c: Include <stdlib.h> first.
55075         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55076         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55078         HAVE_RPMATCH.
55079         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55081         (Include): Set to <stdlib.h>.
55082         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55083         HAVE_RPMATCH.
55084         * NEWS: Document the change.
55085
55086 2008-04-28  Bruno Haible  <bruno@clisp.org>
55087
55088         Change rpmatch to use nl_langinfo when appropriate.
55089         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55090         (N_): New macro.
55091         (localized_pattern): New function/macro.
55092         (try): Remove match, nomatch arguments. Copy the pattern into safe
55093         memory before caching it.
55094         (rpmatch): Use localized_pattern. Add translator comments.
55095         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55096         Suggested by Eric Blake.
55097         * modules/rpmatch (Depends-on): Add stdbool.
55098
55099 2008-04-28  Eric Blake  <ebb9@byu.net>
55100
55101         Add rawmemchr module, matching glibc.
55102         * modules/string (Makefile.am): New indicator.
55103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55104         * lib/string.in.h (rawmemchr): Declare when appropriate.
55105         * modules/rawmemchr: New file.
55106         * m4/rawmemchr.m4: Likewise.
55107         * lib/rawmemchr.c: Likewise.
55108         * modules/rawmemchr-tests: Likewise.
55109         * tests/test-rawmemchr.c: Likewise.
55110         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55111         module.
55112         * modules/strchrnul (Depends-on): Add rawmemchr.
55113         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55114
55115         Whitespace cleanup.
55116         * tests/test-strchrnul.c: Reindent.
55117         * lib/strchrnul.c: Likewise.
55118
55119         Optimize and test strchrnul.
55120         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55121         * modules/strchrnul-tests: New file.
55122         * tests/test-strchrnul.c: Likewise.
55123
55124         Remove intprops dependency.
55125         * modules/memchr (Depends-on): Remove intprops.
55126         * modules/memrchr (Depends-on): Likewise.
55127         * modules/memchr2 (Depends-on): Likewise.
55128         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55129         * lib/memrchr.c (__memrchr): Likewise.
55130         * lib/memrchr2.c (memchr2): Likewise.
55131         Reported by Simon Josefsson.
55132
55133 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55134
55135         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55136         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55137
55138 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55139
55140         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55141
55142         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55143
55144         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55145
55146         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55147         declarations.
55148         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55149
55150         * m4/inet_pton.m4: Don't check for header files.
55151
55152         * m4/inet_ntop.m4: Don't check for header files.
55153
55154 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55155
55156         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55157         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55158         trigger for cygwin).
55159         Reported by Bruno Haible  <bruno@clisp.org>.
55160
55161 2008-04-28  Bruno Haible  <bruno@clisp.org>
55162
55163         * doc/posix-functions/strdup.texi: Mention mingw problem.
55164
55165 2008-04-27  Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/stat-time-tests (Depends-on): Add sleep.
55168         * tests/test-stat-time.c (force_unlink): New function.
55169         (cleanup): Use it.
55170         (test_mtime): Remove the ctime related tests.
55171         (test_ctime): New function, containing the ctime related tests.
55172         (main): Call test_ctime, except on native Windows platforms.
55173
55174 2008-04-27  Bruno Haible  <bruno@clisp.org>
55175
55176         * lib/rpmatch.c (rpmatch): Add some comments.
55177         Reported by James Youngman <jay@gnu.org>.
55178
55179 2008-04-27  Bruno Haible  <bruno@clisp.org>
55180
55181         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55182         quiet NaNs.
55183
55184 2008-04-27  Bruno Haible  <bruno@clisp.org>
55185
55186         Make test-yesno.sh work on mingw.
55187         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55188         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55189         (main): Set stdin to binary mode.
55190         * modules/yesno-tests (Depends-on): Add binary-io.
55191
55192 2008-04-27  Bruno Haible  <bruno@clisp.org>
55193
55194         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55195         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55196         argument that lie outside the IEEE 854 domain.
55197         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55198         (gl_ISFINITE): Use it.
55199         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55200
55201 2008-04-27  Bruno Haible  <bruno@clisp.org>
55202
55203         Allow local renaming in config.h.
55204         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55205
55206 2008-04-27  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/memchr.c (__memchr): Change type of 'i'.
55209         * lib/memchr2.c (memchr2): Likewise.
55210
55211 2008-04-26  Eric Blake  <ebb9@byu.net>
55212         and Bruno Haible  <bruno@clisp.org>
55213
55214         Optimize and test memrchr.
55215         * modules/memrchr (Depends-on): Add intprops.
55216         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55217         * modules/memrchr-tests: New file.
55218         * tests/test-memrchr.c: New file.
55219
55220 2008-04-26  Bruno Haible  <bruno@clisp.org>
55221
55222         Add tentative support for DragonFly BSD.
55223         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55224         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55225         fp.
55226         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55227         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55228         * lib/fpurge.c (fpurge): Likewise.
55229         * lib/freadable.c (freaadable): Likewise.
55230         * lib/freadahead.c (freadahead): Likewise.
55231         * lib/freading.c (freading): Likewise.
55232         * lib/freadptr.c (freadptr): Likewise.
55233         * lib/freadseek.c (freadptrinc): Likewise.
55234         * lib/fseeko.c (fseeko): Likewise.
55235         * lib/fseterr.c (fseterr): Likewise.
55236         * lib/fwritable.c (fwritable): Likewise.
55237         * lib/fwriting.c (fwriting): Likewise.
55238
55239 2008-04-26  Bruno Haible  <bruno@clisp.org>
55240
55241         * lib/stdio-impl.h: New file.
55242         * lib/fbufmode.c: Include stdio-impl.h.
55243         (fbufmode): Use fp_, remove redundant #defines.
55244         * lib/fflush.c: Include stdio-impl.h.
55245         (clear_ungetc_buffer): Remove redundant #defines.
55246         * lib/fpurge.c: Include stdio-impl.h.
55247         (fpurge): Remove redundant #defines.
55248         * lib/freadable.c: Include stdio-impl.h.
55249         (freadable): Remove redundant #defines.
55250         * lib/freadahead.c: Include stdio-impl.h.
55251         (freadahead): Remove redundant #defines.
55252         * lib/freading.c: Include stdio-impl.h.
55253         (freading): Remove redundant #defines.
55254         * lib/freadptr.c: Include stdio-impl.h.
55255         (freadptr): Remove redundant #defines.
55256         * lib/freadseek.c: Include stdio-impl.h.
55257         (freadptrinc): Remove redundant #defines.
55258         * lib/fseeko.c: Include stdio-impl.h.
55259         (rpl_fseeko): Remove redundant #defines.
55260         * lib/fseterr.c: Include stdio-impl.h.
55261         (fseterr): Remove redundant #defines.
55262         * lib/fwritable.c: Include stdio-impl.h.
55263         (fwritable: Remove redundant #defines.
55264         * lib/fwriting.c: Include stdio-impl.h.
55265         (fwriting): Remove redundant #defines.
55266         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55267         * modules/fflush (Files): Likewise.
55268         * modules/fpurge (Files): Likewise.
55269         * modules/freadable (Files): Likewise.
55270         * modules/freadahead (Files): Likewise.
55271         * modules/freading (Files): Likewise.
55272         * modules/freadptr (Files): Likewise.
55273         * modules/freadseek (Files): Likewise.
55274         * modules/fseeko (Files): Likewise.
55275         * modules/fseterr (Files): Likewise.
55276         * modules/fwritable (Files): Likewise.
55277         * modules/fwriting (Files): Likewise.
55278
55279 2008-04-26  Bruno Haible  <bruno@clisp.org>
55280
55281         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55282         restore_seek_optimization, update_fpos_cache): New functions, extracted
55283         from rpl_fflush.
55284         (rpl_fflush): Use them.
55285         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55286         (gl_REPLACE_FFLUSH): Use it.
55287
55288 2008-04-26  Bruno Haible  <bruno@clisp.org>
55289
55290         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55291         on Solaris.
55292         * tests/test-xstrtoimax.sh: Likewise.
55293         * tests/test-xstrtoumax.sh: Likewise.
55294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55295
55296 2008-04-26  Bruno Haible  <bruno@clisp.org>
55297
55298         * modules/memchr-tests: New file.
55299         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55300
55301 2008-04-26  Eric Blake  <ebb9@byu.net>
55302             Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/memchr.c: Include intprops.h.
55305         (__memchr): Optimize parallel detection of matching bytes. Rename local
55306         variables. Add explanatory comments.
55307
55308 2008-04-26  Bruno Haible  <bruno@clisp.org>
55309
55310         Fix module 'memchr', broken since 2000-10-28.
55311         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55312
55313 2008-04-26  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55316         comments.
55317
55318 2008-04-25  Eric Blake  <ebb9@byu.net>
55319
55320         Use native fstatat on cygwin 1.7.0.
55321         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55322         first.
55323
55324 2008-04-23  Eric Blake  <ebb9@byu.net>
55325
55326         Improve memchr2 performance.
55327         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55328         NUL bytes.
55329         * modules/memchr2 (Depends-on): Use intprops.h.
55330
55331 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55332
55333         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55334         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55335         <blp@cs.stanford.edu>.
55336
55337 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55338
55339         * lib/arpa_inet.in.h: New file.
55340
55341         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55342         (Makefile.am): Sed in substitute header file.
55343
55344         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55345         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55346
55347         * modules/inet_ntop (configure.ac): Use
55348         gl_ARPA_INET_MODULE_INDICATOR.
55349
55350         * modules/inet_pton (configure.ac): Use
55351         gl_ARPA_INET_MODULE_INDICATOR.
55352
55353 2008-04-22  Jim Meyering  <meyering@redhat.com>
55354
55355         * modules/verify (License): Re-license as LGPLv2+.
55356
55357 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55358
55359         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55360         parameter to void* as per POSIX standard (MinGW uses char*).
55361
55362 2008-04-21  Bruno Haible  <bruno@clisp.org>
55363
55364         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55365         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55366         Define to replacements if REPLACE_ISWCNTRL is 1.
55367         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55368         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55369         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55370         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55371         what it fixes.
55372         * doc/posix-functions/iswalpha.texi: Likewise.
55373         * doc/posix-functions/iswblank.texi: Likewise.
55374         * doc/posix-functions/iswcntrl.texi: Likewise.
55375         * doc/posix-functions/iswdigit.texi: Likewise.
55376         * doc/posix-functions/iswgraph.texi: Likewise.
55377         * doc/posix-functions/iswlower.texi: Likewise.
55378         * doc/posix-functions/iswprint.texi: Likewise.
55379         * doc/posix-functions/iswpunct.texi: Likewise.
55380         * doc/posix-functions/iswspace.texi: Likewise.
55381         * doc/posix-functions/iswupper.texi: Likewise.
55382         * doc/posix-functions/iswxdigit.texi: Likewise.
55383         Reported by Alain Guibert.
55384
55385 2008-04-21  Bruno Haible  <bruno@clisp.org>
55386
55387         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55388         Patch by Alain Guibert.
55389
55390 2008-04-21  Bruno Haible  <bruno@clisp.org>
55391
55392         Fix test failures on mingw.
55393         * tests/test-xstrtol.c (print_no_progname): New function.
55394         (main): Install it in error_print_progname hook.
55395         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55396         * tests/test-xstrtoimax.sh: Likewise.
55397         * tests/test-xstrtoumax.sh: Likewise.
55398
55399 2008-04-21  Bruno Haible  <bruno@clisp.org>
55400
55401         Fix test failure on mingw.
55402         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55403
55404 2008-04-21  Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55407         Actually assign a value.
55408
55409 2008-04-20  Bruno Haible  <bruno@clisp.org>
55410
55411         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55412         take 2.
55413         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55414         'canonicalize-lgpl' module is also used.
55415         * lib/canonicalize-lgpl.c: Undo last change.
55416         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55417
55418 2008-04-20  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55421         config.h. Provide _mkdir based fallback for mingw.
55422         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55423         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55424         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55425         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55426         rather than defining mkdir in config.h.
55427         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55428         (gl_SYS_STAT_H_DEFAULTS): New macro.
55429         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55430         HAVE_IO_H any more.
55431         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55432         HAVE_DECL_MKDIR and HAVE_IO_H.
55433
55434 2008-04-20  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/isapipe.c: Port to native Windows platforms.
55437
55438 2008-04-20  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55441
55442 2008-04-21  Eric Blake  <ebb9@byu.net>
55443
55444         Work around preprocessors that don't handle UINTMAX_MAX.
55445         * lib/memchr2.c (memchr2): Avoid embedded #if.
55446         Reported by Alain Guibert, fix suggested by Bruno Haible.
55447
55448 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55449
55450         * doc/posix-functions/strftime.texi (strftime): Explain better
55451         Windows incompatibility.  Suggested by Micah Cowan
55452         <micah@cowan.name>.
55453
55454 2008-04-20  Bruno Haible  <bruno@clisp.org>
55455
55456         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55457         unistr/u8-mblen.
55458
55459 2008-04-20  Bruno Haible  <bruno@clisp.org>
55460
55461         Fix test failure on platforms with non-GNU iconv.
55462         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55463         (U_TO_U8): Use it, rather than u16_to_u8.
55464         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55465         units at the end of the input string.
55466         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55467
55468 2008-04-20  Bruno Haible  <bruno@clisp.org>
55469
55470         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55471         when the resulting length is 0.
55472         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55473
55474 2008-04-20  Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55477         works.
55478         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55479
55480 2008-04-20  Bruno Haible  <bruno@clisp.org>
55481
55482         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55483         * modules/tsearch-tests (configure.ac): Test for initstate function.
55484
55485 2008-04-20  Bruno Haible  <bruno@clisp.org>
55486
55487         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55488         for nlink_t if missing.
55489         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55490
55491 2008-04-19  Bruno Haible  <bruno@clisp.org>
55492
55493         Work around snprintf bug on Linux libc5.
55494         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55496         gl_SNPRINTF_SIZE1.
55497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55498         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55499         that test failed.
55500         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55501         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55502         * modules/snprintf (Files): Add m4/printf.m4.
55503         * modules/vsnprintf (Files): Likewise.
55504         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55505         * doc/posix-functions/vsnprintf.texi: Likewise.
55506
55507 2008-04-19  Bruno Haible  <bruno@clisp.org>
55508
55509         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55510         from 0.0058 to less than 10^-7.
55511
55512 2008-04-19  Bruno Haible  <bruno@clisp.org>
55513
55514         Fix rounding when a precision is given.
55515         * lib/vasnprintf.c (is_borderline): New function.
55516         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55517         9...9x.
55518         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55519         %e, %g.
55520         * tests/test-vasprintf-posix.c (test_function): Likewise.
55521         * tests/test-snprintf-posix.h (test_function): Likewise.
55522         * tests/test-sprintf-posix.h (test_function): Likewise.
55523         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55524         * tests/test-printf-posix.h (test_function): Likewise.
55525         * tests/test-printf-posix.output: Update.
55526         Reported by John Darrington <john@darrington.wattle.id.au> via
55527         Ben Pfaff <blp@cs.stanford.edu>.
55528
55529 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55530
55531         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55532         Suggested by Bruno Haible <bruno@clisp.org>.
55533
55534 2008-04-17  Bruno Haible  <bruno@clisp.org>
55535
55536         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55537         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55538         implementation.
55539         Patch by Bruce Merry <bmerry@gmail.com>.
55540
55541 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55542
55543         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55544         doesn't work under Windows.
55545
55546 2008-04-16  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55549         New macros.
55550         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55551         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55552         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55553         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55554         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55555         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55556         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55557         macros.
55558         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55559         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55560         Northern Sotho, Uighur.
55561
55562 2008-04-16  Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55565         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55566         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55567         Reported by Daniel Bergström <daniel@octocode.com>.
55568
55569 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55570             Bruno Haible  <bruno@clisp.org>
55571
55572         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55573         function.
55574         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55575         New functions, mostly extracted from gl_locale_name_default.
55576         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55577
55578 2008-04-16  Eric Blake  <ebb9@byu.net>
55579
55580         Adjust strtod detection to catch glibc 2.7 bug.
55581         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55582         Reported by John Gatewood Ham.
55583
55584 2008-04-16  Bruno Haible  <bruno@clisp.org>
55585
55586         Add tentative support for Linux libc5.
55587         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55588         * lib/fpurge.c (fpurge): Likewise.
55589         * lib/freadable.c (freadable): Likewise.
55590         * lib/freadahead.c (freadahead): Likewise.
55591         * lib/freading.c (freading): Likewise.
55592         * lib/freadptr.c (freadptr): Likewise.
55593         * lib/freadseek.c (freadptrinc): Likewise.
55594         * lib/fseeko.c (rpl_fseeko): Likewise.
55595         * lib/fseterr.c (fseterr): Likewise.
55596         * lib/fwritable.c (fwritable): Likewise.
55597         * lib/fwriting.c (fwriting): Likewise.
55598         Reported by Alain Guibert <alguibert+bts@free.fr>.
55599
55600 2008-04-15  Bruno Haible  <bruno@clisp.org>
55601
55602         * modules/mathl (configure.ac): Define module indicator.
55603
55604 2008-04-15  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/logl.c (logl): Remove unused variables.
55607
55608 2008-04-15  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55611         fails.
55612
55613 2008-04-15  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/trim.c (trim2): Fix argument of isspace() macro.
55616
55617 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55618
55619         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55620         to 0.
55621         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55622
55623 2008-04-14  Bruno Haible  <bruno@clisp.org>
55624
55625         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55626         AC_LANG_PROGRAM argument.
55627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55628         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55630         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55631         * m4/math_h.m4 (gl_MATH_H): Likewise.
55632         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55634         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55635         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55636         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55637         * m4/regex.m4 (gl_REGEX): Likewise.
55638         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55639         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55641         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55643         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55644         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55645         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55646
55647 2008-04-14  Jim Meyering  <meyering@redhat.com>
55648
55649         test-strtod: fix typos: s/abs/fabs/
55650         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55651
55652 2008-04-13  Bruno Haible  <bruno@clisp.org>
55653
55654         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55655         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55656         module is also used and while not building the reloc-wrapper.
55657
55658 2008-04-13  Bruno Haible  <bruno@clisp.org>
55659
55660         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55661
55662 2008-04-13  Bruno Haible  <bruno@clisp.org>
55663
55664         Fix AIX compilation failure introduced on 2008-04-02.
55665         * tests/test-frexp.c (exp): Undefine before redefining.
55666         * tests/test-frexpl.c (exp): Likewise.
55667
55668 2008-04-13  Bruno Haible  <bruno@clisp.org>
55669
55670         Work around a HP-UX stdio bug.
55671         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55672         * tests/test-ftello.c (main): Likewise.
55673         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55674         * doc/posix-functions/ftello.texi: Likewise.
55675
55676 2008-04-13  Bruno Haible  <bruno@clisp.org>
55677
55678         Make test-signbit pass on HP-UX/hppa.
55679         * tests/test-signbit.c (minus_zerol): New variable.
55680         (test_signbitl): Use it.
55681
55682 2008-04-13  Bruno Haible  <bruno@clisp.org>
55683
55684         Make truncl work on OSF/1 4.0.
55685         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55686         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55687         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55689         HAVE_DECL_TRUNCL.
55690         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55691         HAVE_DECL_TRUNCL.
55692         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55693
55694 2008-04-13  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55697
55698 2008-04-13  Bruno Haible  <bruno@clisp.org>
55699
55700         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55701         expression, so as to avoid HP-UX 11 cc compiler bug.
55702
55703 2008-04-13  Bruno Haible  <bruno@clisp.org>
55704
55705         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55706
55707 2008-04-13  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/git-merge-changelog.c: Remove empty declaration outside of
55710         functions.
55711
55712 2008-04-13  Bruno Haible  <bruno@clisp.org>
55713
55714         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55715
55716 2008-04-13  Bruno Haible  <bruno@clisp.org>
55717
55718         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55719         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55720         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55721         also if it exists but lacks definitions of the SHUT_* macros.
55722         * modules/sys_socket (Description): Update.
55723         Reported by Elbert Pol <e.pol@chello.nl>.
55724
55725 2008-04-13  Bruno Haible  <bruno@clisp.org>
55726
55727         * lib/localcharset.c (OS2): Don't redefine if already defined.
55728         Reported by Elbert Pol <e.pol@chello.nl>.
55729
55730 2008-04-13  Bruno Haible  <bruno@clisp.org>
55731
55732         * lib/binary-io.h [__EMX__]: Include <io.h>.
55733         Reported by Elbert Pol <e.pol@chello.nl>.
55734
55735 2008-04-12  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/fpucw.h: Enable the definitions also for x86_64.
55738         Needed for NetBSD/x86_64.
55739         Reported by Thomas Klausner <tk@giga.or.at>.
55740
55741 2008-04-12  Bruno Haible  <bruno@clisp.org>
55742
55743         * tests/test-strtod.c: Include isnand.h.
55744         (main): Use isnand instead of isnan.
55745         Reported by Jim Meyering.
55746
55747 2008-04-12  Bruno Haible  <bruno@clisp.org>
55748
55749         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55750         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55751
55752 2008-04-12  Jim Meyering  <meyering@redhat.com>
55753
55754         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55755
55756 2008-04-12  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55759         Reported by Elbert Pol <e.pol@chello.nl>.
55760
55761 2008-04-12  Eric Blake  <ebb9@byu.net>
55762
55763         Work around Solaris 10 math.h bug.
55764         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55765         (gl_MATH_H_DEFAULTS): Set up default.
55766         * modules/math (Makefile.am): Replace new indicators.
55767         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55768         * tests/test-math.c (main): Test this.
55769         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55770         * doc/posix-headers/math.texi (math.h): Mention bug.
55771         Reported by Nelson H. F. Beebe and Jim Meyering.
55772
55773 2008-04-11  Bruno Haible  <bruno@clisp.org>
55774
55775         Adapt to future versions of Apple GCC.
55776         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55777         Reported by Peter O'Gorman <peter@pogma.com>.
55778
55779 2008-04-11  Bruno Haible  <bruno@clisp.org>
55780
55781         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55782
55783 2008-04-11  Bruno Haible  <bruno@clisp.org>
55784
55785         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55786
55787         * modules/getaddrinfo-tests (Makefile.am): Define
55788         test_getaddrinfo_LDADD.
55789
55790 2008-04-11  Bruno Haible  <bruno@clisp.org>
55791
55792         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55793         (init): Fix syntax error.
55794         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55795         is declared.
55796
55797 2008-04-11  Bruno Haible  <bruno@clisp.org>
55798
55799         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55800         * modules/glob (Depends-on): Add stdbool.
55801
55802 2008-04-11  Bruno Haible  <bruno@clisp.org>
55803
55804         * lib/trim.c: Include <string.h>.
55805
55806 2008-04-11  Eric Blake  <ebb9@byu.net>
55807
55808         Avoid compile failure on OS/2.
55809         * lib/regex_internal.h (internal_function): Disable optimization
55810         on OS/2 (__EMX__), where it caused compiler error.
55811         Reported by Elbert Pol.
55812
55813 2008-04-11  Bruno Haible  <bruno@clisp.org>
55814
55815         Flush the standard error stream before aborting. Needed on mingw.
55816         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55817         * tests/test-array_list.c (ASSERT): Likewise.
55818         * tests/test-array_oset.c (ASSERT): Likewise.
55819         * tests/test-avltree_list.c (ASSERT): Likewise.
55820         * tests/test-avltree_oset.c (ASSERT): Likewise.
55821         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55822         * tests/test-binary-io.c (ASSERT): Likewise.
55823         * tests/test-byteswap.c (ASSERT): Likewise.
55824         * tests/test-c-ctype.c (ASSERT): Likewise.
55825         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55826         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55827         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55828         * tests/test-c-strstr.c (ASSERT): Likewise.
55829         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55830         * tests/test-canonicalize.c (ASSERT): Likewise.
55831         * tests/test-carray_list.c (ASSERT): Likewise.
55832         * tests/test-ceilf1.c (ASSERT): Likewise.
55833         * tests/test-ceilf2.c (ASSERT): Likewise.
55834         * tests/test-ceill.c (ASSERT): Likewise.
55835         * tests/test-count-one-bits.c (ASSERT): Likewise.
55836         * tests/test-fbufmode.c (ASSERT): Likewise.
55837         * tests/test-fflush2.c (ASSERT): Likewise.
55838         * tests/test-floorf1.c (ASSERT): Likewise.
55839         * tests/test-floorf2.c (ASSERT): Likewise.
55840         * tests/test-floorl.c (ASSERT): Likewise.
55841         * tests/test-fopen.c (ASSERT): Likewise.
55842         * tests/test-fpending.c (ASSERT): Likewise.
55843         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55844         * tests/test-fpurge.c (ASSERT): Likewise.
55845         * tests/test-freadable.c (ASSERT): Likewise.
55846         * tests/test-freadahead.c (ASSERT): Likewise.
55847         * tests/test-freading.c (ASSERT): Likewise.
55848         * tests/test-freadptr.c (ASSERT): Likewise.
55849         * tests/test-freadptr2.c (ASSERT): Likewise.
55850         * tests/test-freadseek.c (ASSERT): Likewise.
55851         * tests/test-freopen.c (ASSERT): Likewise.
55852         * tests/test-frexp.c (ASSERT): Likewise.
55853         * tests/test-frexpl.c (ASSERT): Likewise.
55854         * tests/test-fseek.c (ASSERT): Likewise.
55855         * tests/test-fseeko.c (ASSERT): Likewise.
55856         * tests/test-fstrcmp.c (ASSERT): Likewise.
55857         * tests/test-ftell.c (ASSERT): Likewise.
55858         * tests/test-ftello.c (ASSERT): Likewise.
55859         * tests/test-func.c (ASSERT): Likewise.
55860         * tests/test-fwritable.c (ASSERT): Likewise.
55861         * tests/test-fwriting.c (ASSERT): Likewise.
55862         * tests/test-getdelim.c (ASSERT): Likewise.
55863         * tests/test-getline.c (ASSERT): Likewise.
55864         * tests/test-i-ring.c (ASSERT): Likewise.
55865         * tests/test-iconv-utf.c (ASSERT): Likewise.
55866         * tests/test-iconv.c (ASSERT): Likewise.
55867         * tests/test-isfinite.c (ASSERT): Likewise.
55868         * tests/test-isnand.c (ASSERT): Likewise.
55869         * tests/test-isnanf.c (ASSERT): Likewise.
55870         * tests/test-isnanl.h (ASSERT): Likewise.
55871         * tests/test-ldexpl.c (ASSERT): Likewise.
55872         * tests/test-linked_list.c (ASSERT): Likewise.
55873         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55874         * tests/test-localename.c (ASSERT): Likewise.
55875         * tests/test-lseek.c (ASSERT): Likewise.
55876         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55877         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55878         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55879         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55880         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55881         * tests/test-mbschr.c (ASSERT): Likewise.
55882         * tests/test-mbscspn.c (ASSERT): Likewise.
55883         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55884         * tests/test-mbspbrk.c (ASSERT): Likewise.
55885         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55886         * tests/test-mbsrchr.c (ASSERT): Likewise.
55887         * tests/test-mbsspn.c (ASSERT): Likewise.
55888         * tests/test-mbsstr1.c (ASSERT): Likewise.
55889         * tests/test-mbsstr2.c (ASSERT): Likewise.
55890         * tests/test-mbsstr3.c (ASSERT): Likewise.
55891         * tests/test-memchr2.c (ASSERT): Likewise.
55892         * tests/test-memmem.c (ASSERT): Likewise.
55893         * tests/test-open.c (ASSERT): Likewise.
55894         * tests/test-printf-frexp.c (ASSERT): Likewise.
55895         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55896         * tests/test-printf-posix.c (ASSERT): Likewise.
55897         * tests/test-quotearg.c (ASSERT): Likewise.
55898         * tests/test-rbtree_list.c (ASSERT): Likewise.
55899         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55900         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55901         * tests/test-round1.c (ASSERT): Likewise.
55902         * tests/test-roundf1.c (ASSERT): Likewise.
55903         * tests/test-roundl.c (ASSERT): Likewise.
55904         * tests/test-signbit.c (ASSERT): Likewise.
55905         * tests/test-sleep.c (ASSERT): Likewise.
55906         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55907         * tests/test-snprintf.c (ASSERT): Likewise.
55908         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55909         * tests/test-stat-time.c (ASSERT): Likewise.
55910         * tests/test-strcasestr.c (ASSERT): Likewise.
55911         * tests/test-strerror.c (ASSERT): Likewise.
55912         * tests/test-striconv.c (ASSERT): Likewise.
55913         * tests/test-striconveh.c (ASSERT): Likewise.
55914         * tests/test-striconveha.c (ASSERT): Likewise.
55915         * tests/test-strsignal.c (ASSERT): Likewise.
55916         * tests/test-strstr.c (ASSERT): Likewise.
55917         * tests/test-strtod.c (ASSERT): Likewise.
55918         * tests/test-trunc1.c (ASSERT): Likewise.
55919         * tests/test-trunc2.c (ASSERT): Likewise.
55920         * tests/test-truncf1.c (ASSERT): Likewise.
55921         * tests/test-truncf2.c (ASSERT): Likewise.
55922         * tests/test-truncl.c (ASSERT): Likewise.
55923         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55924         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55925         * tests/test-vasnprintf.c (ASSERT): Likewise.
55926         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55927         * tests/test-vasprintf.c (ASSERT): Likewise.
55928         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55929         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55930         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55931         * tests/test-vsnprintf.c (ASSERT): Likewise.
55932         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55933         * tests/test-wcwidth.c (ASSERT): Likewise.
55934         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55935         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55936         * tests/test-xvasprintf.c (ASSERT): Likewise.
55937         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55938         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55939         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55940         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55941         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55942         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55943         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55944         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55945         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55946         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55947         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55948         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55949         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55950         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55951         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55952         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55953         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55954         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55955         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55956         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55957         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55958         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55959         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55960         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55961         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55962         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55963         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55964         * tests/unictype/test-combining.c (ASSERT): Likewise.
55965         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55966         * tests/unictype/test-digit.c (ASSERT): Likewise.
55967         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55968         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55969         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55970         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55971         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55972         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55973         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55974         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55975         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55976         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55977         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55978         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55979         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55980         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55981         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55982         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55983         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55984         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55985         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55986         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55987         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55988         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55989         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55990         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55991         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55992         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55993         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55994         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55995         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55996         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55997         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55998         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55999         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56000         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56001         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56002         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56003         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56004         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56005         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56006         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56007         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56008         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56009         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56010         Reported by Eric Blake.
56011
56012 2008-04-11  Bruno Haible  <bruno@clisp.org>
56013
56014         * lib/wchar.in.h: Tweak comment.
56015
56016 2008-04-11  Bruno Haible  <bruno@clisp.org>
56017
56018         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56019         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56020         gl_COMMON.
56021         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56022
56023 2008-04-11  Bruno Haible  <bruno@clisp.org>
56024
56025         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56026
56027 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56028
56029         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56030         of attempting to use non-existing /dev/*random.  Based on patch
56031         from Adam Strzelecki <ono@java.pl> in
56032         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56033
56034 2008-04-08  Bruno Haible  <bruno@clisp.org>
56035
56036         Add tentative support for emx+gcc.
56037         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56038         * lib/fpurge.c (fpurge): Likewise.
56039         * lib/freadable.c (freadable): Likewise.
56040         * lib/freadahead.c (freadahead): Likewise.
56041         * lib/freading.c (freading): Likewise.
56042         * lib/freadptr.c (freadptr): Likewise.
56043         * lib/freadseek.c (freadptrinc): Likewise.
56044         * lib/fseeko.c (rpl_fseeko): Likewise.
56045         * lib/fseterr.c (fseterr): Likewise.
56046         * lib/fwritable.c (fwritable): Likewise.
56047         * lib/fwriting.c (fwriting): Likewise.
56048         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56049
56050 2008-04-09  Eric Blake  <ebb9@byu.net>
56051
56052         Avoid some autoconf warnings.
56053         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56054         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56055         * m4/afs.m4 (gl_AFS): Likewise.
56056         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56057         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56058         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56059         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56060         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56061         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56062         (AC_CHECK_DECLS_ONCE): Likewise.
56063         Rename file...
56064         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56065         gnulib-tool requires autoconf 2.59 or better.
56066         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56067
56068 2008-04-08  Eric Blake  <ebb9@byu.net>
56069
56070         Use 'git describe --match' if present (added in git 1.5.5).
56071         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56072         if possible.
56073
56074 2008-04-08  Bruno Haible  <bruno@clisp.org>
56075
56076         Add tentative support for OpenServer.
56077         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56078         _ptr, _cnt.
56079         * lib/fpurge.c (fpurge): Likewise.
56080         * lib/freadable.c (freadable): Likewise.
56081         * lib/freadahead.c (freadahead): Likewise.
56082         * lib/freading.c (freading): Likewise.
56083         * lib/freadptr.c (freadptr): Likewise.
56084         * lib/freadseek.c (freadptrinc): Likewise.
56085         * lib/fseeko.c (rpl_fseeko): Likewise.
56086         * lib/fseterr.c (fseterr): Likewise.
56087         * lib/fwritable.c (fwritable): Likewise.
56088         * lib/fwriting.c (fwriting): Likewise.
56089         Reported by Roger Cornelius <rac@tenzing.org> and
56090         Brian K. White <brian@aljex.com>.
56091
56092 2008-04-06  Jim Meyering  <meyering@redhat.com>
56093
56094         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56095
56096 2008-04-06  Bruno Haible  <bruno@clisp.org>
56097
56098         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56099         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56100         * tests/test-printf-posix.sh: Likewise.
56101         * tests/test-vfprintf-posix.sh: Likewise.
56102         * tests/test-vprintf-posix.sh: Likewise.
56103         * tests/test-xprintf-posix.sh: Likewise.
56104
56105 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56106
56107         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56108         hide error from 'ls', needed on OS/2.
56109         Report by Elbert Pol <elbert.pol@gmail.com>.
56110
56111 2008-04-04  Eric Blake  <ebb9@byu.net>
56112
56113         Make test-fseeko.c failures meaningful.
56114         * tests/test-fseeko.c: Print line number on failure.
56115         * tests/test-fseek.c: Likewise.
56116         Reported by Nelson H. F. Beebe.
56117
56118         Improve strtod bug detection check.
56119         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56120         required for Solaris 10.
56121         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56122
56123 2008-04-04  Bruno Haible  <bruno@clisp.org>
56124
56125         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56126         by m4/setenv.m4.
56127
56128 2008-04-03  Eric Blake  <ebb9@byu.net>
56129
56130         Ensure sane .version contents.
56131         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56132         version string.
56133         * build-aux/git-version-gen: Improve documentation.
56134
56135         Make GNU make output nicer.
56136         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56137         MAKECMDGOALS to enforce message for all command line targets.  Set
56138         srcdir for use in maint.mk.
56139
56140         Another maintainer tweak.
56141         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56142         a target that regenerates version.
56143
56144 2008-04-03  Jim Meyering  <meyering@redhat.com>
56145
56146         vc-list-files: don't cause coreutils "make po-check" failure
56147         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56148
56149 2008-04-03  Eric Blake  <ebb9@byu.net>
56150
56151         Allow VPATH usage of vc-list-files.
56152         * build-aux/vc-list-files (scriptversion): Add timestamp.
56153         (options): Add --help, --version, -C.
56154         (CVS): Support installed cvsu.
56155
56156 2008-04-02  Bruno Haible  <bruno@clisp.org>
56157
56158         Avoid some "statement with no effect" warnings from gcc.
56159         * tests/test-wctype.c (main): Explicitly ignore unused values.
56160         Reported by Jim Meyering.
56161
56162 2008-04-02  Jim Meyering  <meyering@redhat.com>
56163
56164         Avoid some warnings from "gcc -Wshadow".
56165         * tests/test-frexp.c (exp): Define to a different identifier.
56166         * tests/test-frexpl.c (exp): Likewise.
56167
56168 2008-04-03  Jim Meyering  <meyering@redhat.com>
56169
56170         bootstrap: remove dangling *.[ch] symlinks from lib
56171         * build-aux/bootstrap [dangling symlink removal]: Move find's
56172         -depth option to precede all others, to avoid a warning.
56173         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56174
56175 2008-04-02  Bruno Haible  <bruno@clisp.org>
56176
56177         Avoid some warnings from "gcc -Wshadow".
56178         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56179         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56180         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56181         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56182         Reported by Jim Meyering.
56183
56184 2008-04-01  Bruno Haible  <bruno@clisp.org>
56185
56186         Fix test to work on IRIX 6.5 with cc.
56187         * tests/test-math.c (numeric_equal): New function.
56188         (main): Use it.
56189
56190 2008-04-01  Bruno Haible  <bruno@clisp.org>
56191
56192         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56193
56194 2008-04-01  Bruno Haible  <bruno@clisp.org>
56195
56196         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56197         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56198         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56199         (Depends-on): Remove math.
56200
56201         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56202         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56203         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56204         (Depends-on): Remove math.
56205
56206         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56207         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56208         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56209         (Depends-on): Remove math.
56210         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56211         (Depends-on): Remove math.
56212
56213         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56214         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56215         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56216         (Depends-on): Remove math.
56217         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56218         (Depends-on): Remove math.
56219
56220         * tests/test-round1.c: Include nan.h.
56221         (main): Use NaNd instead of NAN.
56222         * modules/round-tests (Files): Add tests/nan.h.
56223
56224         * tests/test-trunc1.c: Include nan.h.
56225         (main): Use NaNd instead of NAN.
56226         * modules/trunc-tests (Files): Add tests/nan.h.
56227
56228         * tests/test-roundf1.c: Include nan.h.
56229         (main): Use NaNf instead of NAN.
56230         * modules/roundf-tests (Files): Add tests/nan.h.
56231
56232         * tests/test-truncf1.c: Include nan.h.
56233         (main): Use NaNf instead of NAN.
56234         * modules/truncf-tests (Files): Add tests/nan.h.
56235
56236         * tests/test-ceilf1.c: Include nan.h.
56237         (main): Use NaNf instead of NAN.
56238         * modules/ceilf-tests (Files): Add tests/nan.h.
56239
56240         * tests/test-floorf1.c: Include nan.h.
56241         (main): Use NaNf instead of NAN.
56242         * modules/floorf-tests (Files): Add tests/nan.h.
56243
56244         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56245         (main): Use NaNf instead of NAN.
56246         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56247
56248         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56249         (main): Use NaNd instead of NAN.
56250         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56251
56252         * tests/test-frexp.c: Include nan.h.
56253         (main): Use NaNd instead of NAN.
56254         * modules/frexp-tests (Files): Add tests/nan.h.
56255
56256         * lib/isnan.c: Don't include <math.h>.
56257         (FUNC): Don't use NAN macro.
56258         * modules/isnand-nolibm (Depends-on): Remove math.
56259         * modules/isnanf-nolibm (Depends-on): Remove math.
56260         * modules/isnanl (Depends-on): Remove math.
56261         * modules/isnanl-nolibm (Depends-on): Remove math.
56262
56263         * tests/nan.h: New file.
56264
56265 2008-04-01  Eric Blake  <ebb9@byu.net>
56266
56267         Fix typos.
56268         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56269         values to be the right type.
56270
56271         For now, cater to gnulib strtod inaccuracies.
56272         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56273         fractional results.  While not as nice from a QoI perspective, it
56274         is a quicker patch than correctly implementing decimal to binary
56275         rounding.
56276
56277 2008-03-31  Eric Blake  <ebb9@byu.net>
56278
56279         Guarantee a definition of NAN.
56280         * lib/math.in.h (NAN): Define if missing.
56281         * tests/test-math.c (main): Test it.
56282         * doc/posix-headers/math.texi (math.h): Document this.
56283         * lib/isnan.c (rpl_isnand): Use it.
56284         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56285         * tests/test-floorf1.c (NaN): Likewise.
56286         * tests/test-frexp.c (NaN): Likewise.
56287         * tests/test-isnand.c (NaN): Likewise.
56288         * tests/test-isnanf.c (NaN): Likewise.
56289         * tests/test-round1.c (NaN): Likewise.
56290         * tests/test-roundf1.c (NaN): Likewise.
56291         * tests/test-snprintf-posix.h (NaN): Likewise.
56292         * tests/test-sprintf-posix.h (NaN): Likewise.
56293         * tests/test-trunc1.c (NaN): Likewise.
56294         * tests/test-truncf1.c (NaN): Likewise.
56295         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56296         * tests/test-vasprintf-posix.c (NaN): Likewise.
56297         * modules/isnand-nolibm (Depends-on): Add math.
56298         * modules/isnanf-nolibm (Depends-on): Likewise.
56299         * modules/isnanl (Depends-on): Likewise.
56300         * modules/isnanl-nolibm (Depends-on): Likewise.
56301         * modules/snprintf-posix-tests (Depends-on): Likewise.
56302         * modules/sprintf-posix-tests (Depends-on): Likewise.
56303         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56304         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56305         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56306         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56307
56308 2008-03-31  Bruno Haible  <bruno@clisp.org>
56309
56310         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56311         * doc/posix-functions/strtod.texi: Likewise.
56312
56313 2008-03-31  Bruno Haible  <bruno@clisp.org>
56314
56315         * tests/test-strtod.c (main): Don't use C99 syntax.
56316
56317 2008-03-31  Bruno Haible  <bruno@clisp.org>
56318
56319         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56320         Reported by Eric Blake.
56321
56322 2008-03-31  Jim Meyering  <meyering@redhat.com>
56323
56324         Don't compare actual signbit return values.
56325         * tests/test-strtod.c (main): Rather, compare only their
56326         zero/non-zero nature.
56327
56328 2008-03-31  Eric Blake  <ebb9@byu.net>
56329
56330         More strtod documentation.
56331         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56332         failures as distinct bugs.
56333
56334 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56335
56336         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56337         Problem reported by Erik Benada in
56338         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56339
56340 2008-03-30  Bruno Haible  <bruno@clisp.org>
56341
56342         * tests/test-strtod.c: Add comments about which assertion fails on which
56343         platform.
56344         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56345
56346 2008-03-30  Eric Blake  <ebb9@byu.net>
56347
56348         Test signbit behavior on zeros.
56349         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56350         (test_signbitd, test_signbitl): Likewise.
56351
56352         More strtod touchups.
56353         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56354         sign of negative underflow, for now.  Use .5, not .1.
56355         * doc/posix-functions/strtod.texi (strtod): Mention these
56356         limitations.
56357         Reported by Jim Meyering.
56358
56359 2008-03-30  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56362         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56363
56364 2008-03-30  Bruno Haible  <bruno@clisp.org>
56365
56366         Avoid failure when attempting to return empty iconv results on some
56367         platforms.
56368         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56369         allocation, don't report ENOMEM when the resulting string is empty.
56370
56371 2008-03-30  Bruno Haible  <bruno@clisp.org>
56372
56373         Fix buffer overrun.
56374         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56375         Don't consider the width for tmp_length. Check count against tmp_length
56376         before doing the padding. Ensure enough allocation during padding.
56377
56378 2008-03-30  Eric Blake  <ebb9@byu.net>
56379
56380         strtod touchups.
56381         * lib/strtod.c (strtod): Avoid compiler warnings.
56382         Reported by Jim Meyering.
56383
56384 2008-03-30  Bruno Haible  <bruno@clisp.org>
56385
56386         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56387         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56388         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56389         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56390         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56391         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56392         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56393         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56394
56395         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56396         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56397         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56398         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56399         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56400         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56401         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56402         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56403
56404         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56405         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56406         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56407         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56408         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56409         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56410         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56411         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56412
56413         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56414         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56415
56416         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56417         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56418
56419         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56420         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56421
56422         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56423         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56424         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56425
56426         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56427         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56428         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56429
56430         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56432         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56433
56434         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56436         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56437
56438         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56439         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56441         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56442         (Depends-on): Add EOVERFLOW.
56443         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56444         (Depends-on): Add EOVERFLOW.
56445         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56446         (Depends-on): Add EOVERFLOW.
56447         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56448         (Depends-on): Add EOVERFLOW.
56449         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56450         (Depends-on): Add EOVERFLOW.
56451         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56452         (Depends-on): Add EOVERFLOW.
56453         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56454         (Depends-on): Add EOVERFLOW.
56455         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56456         (Depends-on): Add EOVERFLOW.
56457
56458         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56460         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56461
56462         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56464         * modules/snprintf (Depends-on): Add EOVERFLOW.
56465
56466         * lib/poll.c (EOVERFLOW): Remove fallback.
56467         * modules/poll (Depends-on): Add EOVERFLOW.
56468
56469         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56470         * modules/getugroups (Depends-on): Add EOVERFLOW.
56471
56472         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56473         * modules/getdelim (Depends-on): Add EOVERFLOW.
56474
56475         * lib/ftell.c (EOVERFLOW): Remove fallback.
56476         * modules/ftell (Depends-on): Add EOVERFLOW.
56477
56478         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56480         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56481
56482         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56483
56484         * modules/EOVERFLOW-tests: New file.
56485         * tests/test-EOVERFLOW.c: New file.
56486
56487         * modules/EOVERFLOW: New file.
56488         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56489
56490 2008-03-30  Bruno Haible  <bruno@clisp.org>
56491
56492         Fix bug introduced on 2007-06-10.
56493         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56494         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56495
56496 2008-03-30  Bruno Haible  <bruno@clisp.org>
56497
56498         Improve freadseek's efficiency after ungetc.
56499         * lib/freadseek.c: Include freadahead.h.
56500         (freadptrinc): New function, extracted from freadseek.
56501         (freadseek): Use it in a loop. Use freadahead to determine the number
56502         of loop iterations.
56503         * modules/freadseek (Depends-on): Add freadahead.
56504         (configure.ac): Require AC_C_INLINE.
56505
56506 2008-03-30  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/freadseek.c (freadseek): Don't ignore the return value of
56509         freadptr.
56510
56511 2008-03-29  Eric Blake  <ebb9@byu.net>
56512
56513         Add hex float support.
56514         * modules/strtod (Depends-on): Add c-ctype.
56515         (Link): Mention POW_LIB.
56516         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56517         whitespace between 'e' and exponent.
56518         * tests/test-strtod.c (main): Enable hex float tests.
56519         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56520         now provides.
56521
56522         Document various strtod bugs, with some fixes.
56523         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56524         "-0x", "inf", "nan", and hex constants.
56525         * doc/posix-functions/atof.texi (atof): Likewise.
56526         * modules/stdlib (Makefile.am): Support strtod.
56527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56528         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56529         detect additional strtod bugs.
56530         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56531         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56532         bool where appropriate.  Parse 'inf' and 'nan'.
56533         * tests/test-strtod.c: New file.
56534         * modules/strtod (Depends-on): Add stdbool, stdlib.
56535         (configure.ac): Turn on module indicator.
56536         * modules/strtod-tests: New module.
56537
56538 2008-03-29  Eric Blake  <ebb9@byu.net>
56539
56540         Fix ftell on mingw.
56541         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56542         * modules/ftell-tests (Depends-on): Add binary-io.
56543         * modules/ftello-tests (Depends-on): Likewise.
56544         * tests/test-ftell.c (main): Enhance test to cover behavior after
56545         ungetc.  Enforce binary mode.
56546         * tests/test-ftello.c (main): Likewise.
56547
56548         Pass test-freadseek on cygwin.
56549         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56550         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56551         ungetc buffer.
56552
56553         * tests/test-fflush2.c (main): Fix typo.
56554
56555 2008-03-29  Bruno Haible  <bruno@clisp.org>
56556
56557         * tests/test-fflush2.c (main): Temporarily disable the contents of
56558         this test.
56559         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56560         Reported by Eric Blake.
56561
56562 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56563
56564         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56565         (GC_SHA224_DIGEST_SIZE): Add.
56566
56567         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56568         (gc_hash_digest_length): Likewise.
56569         (gc_hash_buffer): Likewise.
56570
56571 2008-03-25  Bruno Haible  <bruno@clisp.org>
56572
56573         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56574         detail which gettext release to use.
56575         Reported by Simon Josefsson.
56576
56577 2008-03-26  Jim Meyering  <meyering@redhat.com>
56578
56579         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56580         * modules/gnumakefile (clean-GNUmakefile): Also, use
56581         test ... && ... || : syntax rather than if-then ... fi.
56582
56583         gnumakefile: Don't double-quote-expand $(VPATH) value.
56584         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56585
56586 2008-03-24  Eric Blake  <ebb9@byu.net>
56587
56588         Alter GNUmakefile to install into top directory.
56589         * modules/maintainer-makefile: Split, and add dependency...
56590         * modules/gnumakefile: to this new module.
56591         * build-aux/GNUmakefile: Move...
56592         * top/GNUmakefile: ...here.
56593         * build-aux/maint.mk: Move...
56594         * top/maint.mk: ...here.
56595         * MODULES.html.sh (Support for maintaining...): Document new
56596         module.
56597
56598 2008-03-23  Bruno Haible  <bruno@clisp.org>
56599
56600         * gnulib-tool: New options --vc-files, --no-vc-files.
56601         (func_usage): Document them.
56602         (vc_files): New variable.
56603         (func_import): Consider vc_files.
56604         (func_create_testdir): Set vc_files to empty.
56605         Suggested by Jim Meyering and Karl Berry.
56606
56607 2008-03-23  Bruno Haible  <bruno@clisp.org>
56608
56609         Fix regex compilation error on HP-UX 11.
56610         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56611         * modules/regex (Files): Add m4/mbstate_t.m4.
56612         Reported by Ton Voon <ton.voon@altinity.com>.
56613
56614 2008-03-23  Bruno Haible  <bruno@clisp.org>
56615
56616         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56617
56618 2008-03-23  Eric Blake  <ebb9@byu.net>
56619             Bruno Haible  <bruno@clisp.org>
56620
56621         Install files from top/ in the destination directory.
56622         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56623         augmentation also for the files from top/.
56624         (func_import, func_create_testdir): Rewrite file names:
56625         top/filename -> filename.
56626
56627 2008-03-23  Bruno Haible  <bruno@clisp.org>
56628
56629         Tweak "gnulib --version" output.
56630         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56631
56632 2008-03-23  Bruno Haible  <bruno@clisp.org>
56633
56634         Tweak "gnulib --version" output.
56635         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56636         rather than contents of ChangeLog, when possible.
56637
56638 2008-03-21  Eric Blake  <ebb9@byu.net>
56639
56640         More --version tweaks.
56641         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56642         date of last ChangeLog entry.
56643
56644 2008-03-21  Jim Meyering  <meyering@redhat.com>
56645
56646         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56647
56648 2008-03-20  Eric Blake  <ebb9@byu.net>
56649
56650         VPATH fix.
56651         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56652
56653 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56654
56655         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56656         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56657
56658 2008-03-20  Eric Blake  <ebb9@byu.net>
56659
56660         Sync GNUmakefile with coreutils.
56661         * build-aux/GNUmakefile (have-Makefile): Rename...
56662         (_have-Makefile): ...to this, for namespace consideration.
56663         (GNUmakefile.cfg): Include, if present.
56664         (_autoreconf): Define a default.
56665         (_is-dist-target): New rule for rebuilds to pick up intra-release
56666         version.
56667         (maint-cfg.mk): Rename...
56668         (cfg.mk): ...to this.
56669
56670 2008-03-18  Jim Meyering  <meyering@redhat.com>
56671
56672         New script and module: mktempd
56673         * MODULES.html.sh (maint+release support): Add mktempd.
56674         * build-aux/mktempd: New file.
56675         * modules/mktempd: New file.
56676
56677 2008-03-15  Jim Meyering  <meyering@redhat.com>
56678
56679         Undo last change.
56680         * lib/sha1.c, lib/md5.c: 63 != ~63.
56681         Reported by Andreas Schwab.
56682
56683         sha1.c, md5.c: Hoist a redundant expression.
56684         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56685         "ctx->buflen" only once, before calling *_process_block.
56686         * lib/md5.c (md5_process_bytes): Likewise.
56687
56688 2008-03-14  Eric Blake  <ebb9@byu.net>
56689
56690         Bump copyright year in files generated by gnulib-tool.
56691         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56692         gnulib-tool, rather than hard-coding it.
56693
56694         Fix 'gnulib-tool --version' output to work with git.
56695         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56696         (startup): ...here.
56697         (func_version): Use it to invoke git-version-gen, rather than
56698         relying on CVS keyword expansion.  Modernize wording.
56699         (cvsdatestamp, last_checkin_date, version): Kill unused
56700         variables.
56701
56702 2008-03-12  Jim Meyering  <meyering@redhat.com>
56703
56704         Recognize optional cast of the argument to free.
56705         * build-aux/useless-if-before-free: Update regexps.
56706
56707         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56708
56709 2008-03-11  Bruno Haible  <bruno@clisp.org>
56710
56711         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56712         by a single package.
56713         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56714         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56715         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56716         Reported by Sam Steingold <sds@gnu.org>.
56717
56718 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56719
56720         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56721         repositories.
56722
56723 2008-03-11  Bruno Haible  <bruno@clisp.org>
56724
56725         Avoid conflicts between local macro definitions.
56726         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56727         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56728
56729 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56730             Bruno Haible  <bruno@clisp.org>
56731
56732         Make va_copy work with some version of xlc on AIX 5.1.
56733         * lib/stdarg.in.h: New file.
56734         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56735         On AIX, use a <stdarg.h> file substitute.
56736         * modules/stdarg (Files): Add lib/stdarg.in.h.
56737         (Depends-on): Add include_next.
56738         (Makefile.am): Build a stdarg.h substitute if requested.
56739         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56740
56741 2008-03-10  Bruno Haible  <bruno@clisp.org>
56742
56743         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56745         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56746
56747 2008-03-10  Bruno Haible  <bruno@clisp.org>
56748
56749         * modules/stdlib (Depends-on): Add include_next, remove
56750         absolute-header.
56751
56752 2008-03-09  Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/freadahead.h (freadahead): Document more precisely.
56755         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56756         the sum of both buffer sizes.
56757         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56758         * NEWS: Document the change.
56759
56760 2008-03-09  Bruno Haible  <bruno@clisp.org>
56761
56762         Extend freadptr to return also the buffer size.
56763         * lib/freadptr.h (freadptr): Add sizep argument.
56764         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56765         (freadptr): Add sizep argument. Determine buffer size like freadahead
56766         does.
56767         * tests/test-freadptr.c: Don't include freadahead.h.
56768         (main): Adapt for new calling convention of freadptr.
56769         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56770         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56771         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56772         tests/test-freadptr2.sh.
56773         (Depends): Remove freadahead.
56774         (TESTS): Add test-freadptr2.sh.
56775         (check_PROGRAMS): Add test-freadptr2.
56776
56777 2008-03-09  Bruno Haible  <bruno@clisp.org>
56778
56779         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56780         Report and solution by Simon Josefsson.
56781
56782 2008-03-06  Bruno Haible  <bruno@clisp.org>
56783
56784         Make fflush after ungetc work on BSD platforms.
56785         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56786         * tests/test-fflush2.c: New file.
56787         * tests/test-fflush2.sh: New file.
56788         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56789         tests/test-fflush2.c.
56790         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56791         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56792
56793 2008-03-06  Eric Blake  <ebb9@byu.net>
56794
56795         Likewise for ftello.
56796         * modules/ftello (Dependencies): Add extensions.
56797         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56798
56799 2008-03-06  Bruno Haible  <bruno@clisp.org>
56800
56801         * modules/fseeko (Dependencies): Add extensions.
56802         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56803         Needed on glibc systems.
56804
56805 2008-03-06  Bruno Haible  <bruno@clisp.org>
56806
56807         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56808         email address.
56809         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56810
56811 2008-03-06  Bruno Haible  <bruno@clisp.org>
56812
56813         * users.txt: Add libgnupdf.
56814
56815 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56816
56817         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56818         (Header File Substitutes, Function Substitutes,
56819         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56820         (Build robot for gnulib): Fix typo.
56821
56822 2008-03-06  Bruno Haible  <bruno@clisp.org>
56823
56824         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56825         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56826
56827 2008-03-06  Bruno Haible  <bruno@clisp.org>
56828
56829         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56830         * doc/gnulib.texi: Include it.
56831
56832 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56833
56834         * modules/func (License): Change license to unlimited; there was
56835         no LGPL parts in the module anyway.
56836
56837 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56838
56839         * modules/__func__: Renamed to modules/func.
56840         * modules/__func__-tests: Renamed to modules/func-tests.
56841         * tests/test-__func__.c: Renamed to tests/test-func.c.
56842         * m4/__func__.m4: Renamed to m4/func.m4.
56843         * doc/gnulib.texi (__func__): Section renamed to func.
56844         Suggested by Eric Blake <ebb9@byu.net>.
56845
56846 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56847
56848         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56849         about __func__.  Make example self-contained.  Suggested by Eric
56850         Blake <ebb9@byu.net>.
56851
56852         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56853         Suggested by Eric Blake <ebb9@byu.net>.
56854
56855 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56856
56857         * modules/__func__: New file.
56858         * modules/__func__-tests: New file.
56859         * tests/test-__func__.c: New file.
56860         * m4/__func__.m4: New file.
56861         * doc/gnulib.texi (__func__): Document __func__ module.
56862
56863 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56864
56865         * modules/byteswap (License): Re-license as LGPLv2+.
56866
56867 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56868
56869         * doc/Makefile: Add pdf target.
56870
56871 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56872
56873         * modules/inline (License): Use 'unlimited', since there are only
56874         *.m4 files in this module.
56875
56876 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56877             Bruno Haible  <bruno@clisp.org>
56878
56879         Add support for HP C 7.1 on OpenVMS 8.3.
56880         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56881
56882 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56883
56884         Update VMS specifics.
56885         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56886
56887 2008-03-02  Jim Meyering  <meyering@redhat.com>
56888
56889         Remove the last dependency on the "free" module.
56890         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56891         Reported by Bob Proulx.
56892
56893         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56894
56895         Remove useless "if" tests before free.  Deprecate "free" module.
56896         * doc/posix-functions/free.texi: Mention that this
56897         module is no longer useful.
56898         * modules/free (Notice): Say this module is obsolete.
56899         * modules/readutmp (Depends-on): Remove free.
56900         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56901         * lib/putenv.c (putenv): Likewise.
56902         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56903         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56904         * tests/test-c-strcasestr.c (main): Likewise.
56905         * tests/test-c-strstr.c (main): Likewise.
56906         * tests/test-mbscasestr1.c (main): Likewise.
56907         * tests/test-mbscasestr2.c (main): Likewise.
56908         * tests/test-mbsstr1.c (main): Likewise.
56909         * tests/test-mbsstr2.c (main): Likewise.
56910         * tests/test-memmem.c (main): Likewise.
56911         * tests/test-strcasestr.c (main): Likewise.
56912         * tests/test-striconv.c (main): Likewise.
56913         * tests/test-striconveh.c (main): Likewise.
56914         * tests/test-striconveha.c (main): Likewise.
56915         * tests/test-strstr.c (main): Likewise.
56916
56917         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56918
56919         bootstrap: sync from coreutils again
56920         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56921
56922 2008-03-01  Jim Meyering  <meyering@redhat.com>
56923
56924         bootstrap: sync from coreutils
56925         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56926         also when the target doesn't exist.
56927
56928 2008-03-01  Eric Blake  <ebb9@byu.net>
56929
56930         Fix bugs in last patch.
56931         * lib/memchr2.c (memchr2): Fix typo.
56932         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56933         extension.
56934         Reported by Bruce Korb.
56935
56936         New module 'memchr2'.
56937         * modules/memchr2: New file.
56938         * modules/memchr2-tests: Likewise.
56939         * lib/memchr2.h: Likewise.
56940         * lib/memchr2.c: Likewise, based on memchr.c.
56941         * tests/test-memchr2.c: New test.
56942         * MODULES.html.sh (String handling): Add memchr2.
56943
56944 2008-02-29  Bruno Haible  <bruno@clisp.org>
56945
56946         * modules/freadseek-tests: New file.
56947         * tests/test-freadseek.sh: New file.
56948         * tests/test-freadseek.c: New file.
56949
56950         New module 'freadseek'.
56951         * modules/freadseek: New file.
56952         * lib/freadseek.h: New file.
56953         * lib/freadseek.c: New file.
56954         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56955
56956 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56957
56958         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56959         wydawca.
56960
56961         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56962         program_invocation_name and program_invocation_short_name are
56963         present.
56964
56965 2008-02-28  Bruno Haible  <bruno@clisp.org>
56966
56967         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56968         * tests/test-freadptr.sh: Also test non-seekable stdin.
56969
56970 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56971
56972         * build-aux/bootstrap (source_base, m4_base)
56973         (doc_base, tests_base): New variables.
56974         (gnulib_tool_options): Do not hardcode base directories, use
56975         the above variables instead.
56976
56977 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56978
56979         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56980
56981 2008-02-28  Bruno Haible  <bruno@clisp.org>
56982
56983         * modules/freadptr-tests: New file.
56984         * tests/test-freadptr.sh: New file.
56985         * tests/test-freadptr.c: New file.
56986
56987         New module 'freadptr'.
56988         * modules/freadptr: New file.
56989         * lib/freadptr.h: New file.
56990         * lib/freadptr.c: New file.
56991         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56992
56993 2008-02-26  Karl Berry  <karl@freefriends.org>
56994
56995         Sync from Libtool:
56996         * libltdl/argz.c (argz_add, argz_count): New functions.
56997         * libltdl/argz.in.h: Declare them.
56998         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56999
57000 2008-02-22  Bruno Haible  <bruno@clisp.org>
57001
57002         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57003         is a pointer type.  Needed for HP-UX 10.
57004         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57005         * doc/posix-functions/gmtime_r.texi: Likewise.
57006         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57007
57008 2008-02-24  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/environ-tests: New file.
57011         * tests/test-environ.c: New file.
57012
57013         New module 'environ'.
57014         * modules/environ: New file.
57015         * lib/unistd.in.h (environ): New declaration.
57016         * m4/environ.m4: New file.
57017         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57018         after use.
57019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57020         HAVE_DECL_ENVIRON.
57021         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57022         HAVE_DECL_ENVIRON.
57023         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57024         wrong claim that 'environ' is missing on some systems.
57025         * modules/execute (Depends-on): Add environ.
57026         * lib/execute.c (environ): Remove fallback declaration.
57027         * modules/pipe (Depends-on): Add environ.
57028         * lib/pipe.c (environ): Remove fallback declaration.
57029         * modules/setenv (Depends-on): Add environ.
57030         * lib/setenv.c (environ): Remove fallback declaration.
57031         * modules/unsetenv (Depends-on): Add environ.
57032         * lib/unsetenv.c (environ): Remove fallback declaration.
57033         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57034         m4/environ.m4.
57035         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57036         (gl_PREREQ_UNSETENV): Likewise.
57037
57038 2008-02-24  Bruno Haible  <bruno@clisp.org>
57039
57040         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57041
57042 2008-02-20  Bob Proulx  <bob@proulx.com>
57043
57044         Enable use of older two part flavor 'git describe'.
57045         * build-aux/git-version-gen: If using the older two part flavor of
57046         git version then recreate the third part now present in the
57047         newer three part flavor of git describe.
57048
57049 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57050
57051         * lib/fts.c (fts_build): Typo correction to comment.
57052
57053 2008-02-17  Bruno Haible  <bruno@clisp.org>
57054
57055         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57056         generating no-op conflicts.
57057
57058 2008-02-17  Bruno Haible  <bruno@clisp.org>
57059
57060         Speed up by 10%.
57061         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57062         result_entries, rather than an index-based loop.
57063
57064 2008-02-17  Bruno Haible  <bruno@clisp.org>
57065
57066         Speed up by 25%.
57067         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57068         'hashcode_cached'.
57069         (entry_create): New function.
57070         (entry_hashcode): Use the cached hashcode if possible.
57071         (read_changelog_file, try_split_merged_entry): Use entry_create.
57072
57073 2008-02-17  Bruno Haible  <bruno@clisp.org>
57074
57075         Speed up from O(n^2) to O(n) for long ChangeLog files.
57076         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57077         (read_changelog_file): Change implementation of entries_reversed list
57078         to rbtreehash.
57079         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57080
57081 2008-02-17  Bruno Haible  <bruno@clisp.org>
57082
57083         New option --split-merged-entry.
57084         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57085         (find_paragraph_end, try_split_merged_entry): New functions.
57086         (long_options): Add option --split-merged-entry.
57087         (usage): Document option --split-merged-entry.
57088         (main): Implement option --split-merged-entry.
57089         Reported by Eric Blake.
57090
57091 2008-02-17  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/git-merge-changelog.c: Include c-strstr.h.
57094         (main): Support the "git pull --rebase" situation.
57095         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57096         Reported by Eric Blake.
57097
57098 2008-02-16  Eric Blake  <ebb9@byu.net>
57099
57100         Avoid doubling \ in common case of "c-maybe" quoting style.
57101         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57102         eliding outer quotes.
57103         * lib/quotearg.h: Document this.
57104         * tests/test-quotearg.c (result_strings, inputs, results_g)
57105         (flag_results, locale_results): Test it by adding a new string to
57106         each test group.
57107         (compare_strings): Test new string.
57108
57109 2008-02-13  Eric Blake  <ebb9@byu.net>
57110
57111         Avoid trigraph quoting in default output.
57112         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57113         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57114         unless explicitly requested.
57115         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57116
57117 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57118
57119         Don't rely on signed integer overflowing to negative value.
57120         * lib/getugroups.c (getugroups): Include <limits.h>.
57121         Instead, compare against INT_MAX, and increment only if the test passes.
57122
57123 2008-02-13  Jim Meyering  <meyering@redhat.com>
57124         and Eric Blake  <ebb9@byu.net>
57125
57126         Avoid shadowing warning and compile errors on Linux.
57127         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57128         forwarding macros on Linux.
57129         (dcgettext): Define a stub, for Linux.
57130         (results_g, main): Avoid warnings.
57131
57132 2008-02-12  Eric Blake  <ebb9@byu.net>
57133
57134         Silence warning in last patch.
57135         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57136
57137         Quotearg part 4: add tests, fix c-maybe colon quoting.
57138         * lib/quotearg.h: Improve documentation.
57139         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57140         escapes when adding outer quotes.  When quoting trigraphs, use
57141         valid C notation.  When quoting NUL, omit extra characters if next
57142         character is not digit.  Alter prototype.
57143         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57144         callers.
57145         * modules/quotearg-tests: New module.
57146         * tests/test-quotearg.c: New test.
57147
57148 2008-02-07  Eric Blake  <ebb9@byu.net>
57149
57150         Quotearg part 3: add flag to control outer quote elision.
57151         * lib/quotearg.h (c_maybe_quoting_style): New style.
57152         (enum quoting_flags): Better documentation of flags.
57153         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57154         c-maybe style.
57155         (quotearg_buffer_restyled): Handle new flag to elide outer
57156         quotes.
57157
57158         Quotearg part 2: add flag that can control NUL elision.
57159         * lib/quotearg.h (set_quoting_flags): New prototype.
57160         * lib/quotearg.c (struct quoting_options): Add flag field.
57161         (set_quoting_flags): New function.
57162         (quotearg_buffer_restyled): Add flags parameter.
57163         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57164         (quotearg_n_options): Set the flag, since length cannot be
57165         returned.
57166         (quoting_options_from_style): Default flags correctly.
57167
57168         Quotearg part 1: more wrappers, restore quotearg_char state.
57169         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57170         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57171         (quotearg_colon_mem): New wrappers.
57172         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57173         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57174         functions.
57175         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57176         (quotearg_colon_mem): New functions.
57177
57178 2008-02-11  Bruno Haible  <bruno@clisp.org>
57179
57180         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57181         library in the current directory: it does not work with parallel make.
57182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57183
57184 2008-02-11  Bruno Haible  <bruno@clisp.org>
57185
57186         * .gitattributes: New file.
57187
57188 2008-02-11  Jim Meyering  <meyering@redhat.com>
57189
57190         useless-if-before-free: Fix reversed exit values.
57191         * build-aux/useless-if-before-free: Use correct values
57192         for EXIT_MATCH and EXIT_NO_MATCH.
57193
57194         * build-aux/useless-if-before-free: Close stdout carefully.
57195
57196 2008-02-10  Bruno Haible  <bruno@clisp.org>
57197
57198         New module 'git-merge-changelog'.
57199         * modules/git-merge-changelog: New file.
57200         * lib/git-merge-changelog.c: New file.
57201
57202 2008-02-10  Jim Meyering  <meyering@redhat.com>
57203
57204         useless-if-before-free: New option: --list (-l).
57205
57206         useless-if-before-free: Don't exit immediately upon open failure.
57207         * build-aux/useless-if-before-free: Exit 2 for errors.
57208         Upon failure to open a file, don't exit immediately.
57209         Rather, just warn and continue with any remaining files.
57210
57211 2008-02-10  Bruno Haible  <bruno@clisp.org>
57212
57213         New abstract list operation 'node_set_value'.
57214         * lib/gl_list.h (gl_list_node_set_value): New function.
57215         (struct gl_list_implementation): New field node_set_value.
57216         * lib/gl_list.c (gl_list_node_set_value): New function.
57217         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57218         (gl_array_list_implementation): Update.
57219         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57220         (gl_carray_list_implementation): Update.
57221         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57222         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57223         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57224         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57225         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57226         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57227         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57228         Update.
57229         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57230         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57231         (gl_sublist_list_implementation): Update.
57232
57233 2008-02-10  Bruno Haible  <bruno@clisp.org>
57234
57235         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57236         Needed when ELEMENT is #defined to 'some_type *'.
57237
57238 2008-02-10  Jim Meyering  <meyering@redhat.com>
57239
57240         New script and module: useless-if-before-free
57241         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57242         * build-aux/useless-if-before-free: New file.
57243         * modules/useless-if-before-free: New file.
57244
57245         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57246
57247         xstrtol_error: Fix typo.
57248         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57249         s/exit_failure/exit_status/.
57250
57251 2008-02-09  Jim Meyering  <meyering@redhat.com>
57252
57253         New script and module: gitlog-to-changelog
57254         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57255         * modules/gitlog-to-changelog: New file.
57256         * build-aux/gitlog-to-changelog: New file.
57257
57258 2008-02-08  Jim Meyering  <meyering@redhat.com>
57259
57260         Avoid two "parameter unused" warnings.
57261         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57262         Mark "st" as used.
57263
57264         Use "git COMMAND", not "git-COMMAND".
57265         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57266         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57267         * build-aux/git-version-gen: Use "git status", not "git-status".
57268
57269 2008-02-07  Bruno Haible  <bruno@clisp.org>
57270
57271         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57272         Avoids a crash on Windows Vista.
57273         Reported by Adam Strzelecki <ono@java.pl> via
57274         Simon Josefsson <simon@josefsson.org>.
57275
57276 2008-02-06  Bruno Haible  <bruno@clisp.org>
57277
57278         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57279         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57280         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57282         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57283         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57284         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57285         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57287         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57289         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57290         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57292         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57293         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57294         left-adjust flag.
57295         * tests/test-snprintf-posix.h (test_function): Likewise.
57296         * tests/test-sprintf-posix.h (test_function): Likewise.
57297         * tests/test-vasprintf-posix.c (test_function): Likewise.
57298         * doc/posix-functions/fprintf.texi: Update.
57299         * doc/posix-functions/printf.texi: Update.
57300         * doc/posix-functions/snprintf.texi: Update.
57301         * doc/posix-functions/sprintf.texi: Update.
57302         * doc/posix-functions/vfprintf.texi: Update.
57303         * doc/posix-functions/vprintf.texi: Update.
57304         * doc/posix-functions/vsnprintf.texi: Update.
57305         * doc/posix-functions/vsprintf.texi: Update.
57306         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57307
57308 2008-02-06  Bruno Haible  <bruno@clisp.org>
57309
57310         Fix bug introduced on 2008-01-26.
57311         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57312
57313 2008-02-06  Bruno Haible  <bruno@clisp.org>
57314
57315         Fix bug introduced on 2007-06-10.
57316         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57317         !NEED_PRINTF_FLAG_ZERO.
57318
57319 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57320
57321         getloadavg: use libperfstat on AIX5
57322         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57323
57324 2008-02-03  Bruno Haible  <bruno@clisp.org>
57325
57326         * lib/diffseq.h: Add comments about required #includes.
57327         Reported by Michael Biggs <gnulib@doubleplum.net>.
57328
57329 2008-02-01  Bruno Haible  <bruno@clisp.org>
57330
57331         * users.txt: Add gnuit.
57332
57333 2008-01-31  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/md4.c (set_uint32): Mark as inline.
57336         * lib/md5.c (set_uint32): Likewise.
57337         * lib/sha1.c (set_uint32): Likewise.
57338         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57339         * m4/md5.m4 (gl_MD5): Likewise.
57340         * m4/sha1.m4 (gl_SHA1): Likewise.
57341
57342 2008-01-31  Jim Meyering  <meyering@redhat.com>
57343
57344         Use "sizeof VAR", rather than a literal "4".
57345         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57346         * lib/md4.c (md4_read_ctx): Likewise.
57347         * lib/sha1.c (sha1_read_ctx): Likewise.
57348
57349 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57350
57351         * tests/test-sha1.c: New file, based on test-md5.c.
57352
57353         * modules/crypto/sha1-tests: New file.
57354
57355 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57356
57357         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57358
57359 2008-01-31  Jim Meyering  <meyering@redhat.com>
57360
57361         Prefer "sizeof v" over the equivalent "4".
57362         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57363         * lib/md5.c (set_uint32): Likewise.
57364         * lib/sha1.c (set_uint32): Likewise.
57365
57366 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57367
57368         * lib/sha1.c (set_uint32): Mark function as static.
57369
57370 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57371
57372         md2: clarify comments to say that alignment is not required.
57373         * lib/md2.h: Remove warning about alignment in comment.
57374         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57375         never been required.
57376
57377 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57378
57379         md4: adapt alignment constraint fix from sha1.
57380         * lib/md4.c (set_uint32): New function, from sha1.c
57381         (md4_read_ctx): Use it.
57382         (md4_finish_ctx): Doc fix.
57383         * lib/md4.h: Doc fix.
57384
57385 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57386
57387         md5: adapt alignment constraint fix from sha1.
57388         * lib/md5.c (set_uint32): New function, from sha1.c
57389         (md5_read_ctx): Use it.
57390         (md5_finish_ctx): Doc fix.
57391         * lib/md5.h: Doc fix.
57392
57393 2008-01-30  Peter Palfrader  <weasel@debian.org>
57394
57395         sha1: remove the result buffer alignment constraint
57396         * lib/sha1.c (set_uint32): New function.
57397         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57398         constraint.
57399         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57400         * lib/sha1.h: Likewise.
57401
57402 2008-01-30  Andreas Schwab  <schwab@suse.de>
57403             Bruno Haible  <bruno@clisp.org>
57404
57405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57406         correct definition of LDBL_MIN_EXP.
57407
57408 2008-01-30  Karl Berry  <karl@gnu.org>
57409
57410         * config/srclist-update: try to preserve x bit on updates.
57411         * config/srclistvars.sh: update for karl.
57412
57413 2008-01-29  Jim Meyering  <meyering@redhat.com>
57414
57415         vasnprintf.c: Avoid warning about unused label
57416         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57417         "overflow" label definition and associated code with the
57418         same cpp condition that guards the sole use of that label.
57419
57420 2008-01-26  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57423         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57424         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57425         * lib/isnanl-nolibm.h (isnanl): Likewise.
57426         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57427
57428 2008-01-26  Bruno Haible  <bruno@clisp.org>
57429
57430         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57431         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57432
57433 2008-01-26  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57436         GCC >= 4.0 built-in.
57437         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57438
57439 2008-01-26  Bruno Haible  <bruno@clisp.org>
57440
57441         Rename isnan, applicable to 'double' only, to isnand.
57442         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57443         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57444         (configure.ac): Update.
57445         (Include): Replace "isnan.h" with "isnand.h".
57446         * m4/isnand.m4: Renamed from m4/isnan.m4.
57447         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57448         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57449         instead of isnan.c.
57450         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57451         instead of HAVE_ISNAN_IN_LIBC.
57452         (isnand): Renamed from isnan.
57453         * lib/isnand.c: New file.
57454         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57455         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57456         (Makefile.am): Update.
57457         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57458         Include isnand.h instead of isnan.h.
57459         (main): Test isnand instead of isnan.
57460         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57461         isnan-nolibm.
57462         * modules/frexp (Depends-on): Likewise.
57463         * modules/frexp-tests (Depends-on): Likewise.
57464         * modules/frexp-nolibm (Depends-on): Likewise.
57465         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57466         * modules/isfinite (Depends-on): Likewise.
57467         * modules/round-tests (Depends-on): Likewise.
57468         * modules/signbit (Depends-on): Likewise.
57469         * modules/signbit-tests (Depends-on): Likewise.
57470         * modules/snprintf-posix (Depends-on): Likewise.
57471         * modules/sprintf-posix (Depends-on): Likewise.
57472         * modules/trunc-tests (Depends-on): Likewise.
57473         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57475         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57477         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57478         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57479         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57480         * modules/vasnprintf-posix (Depends-on): Likewise.
57481         * modules/vasprintf-posix (Depends-on): Likewise.
57482         * modules/vfprintf-posix (Depends-on): Likewise.
57483         * modules/vsnprintf-posix (Depends-on): Likewise.
57484         * modules/vsprintf-posix (Depends-on): Likewise.
57485         * lib/frexp.c: Include isnand.h instead of isnan.h.
57486         (ISNAN): Set to isnand instead of isnan.
57487         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57488         (gl_isfinited): Use isnand instead of isnan.
57489         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57490         (gl_signbitd): Use isnand instead of isnan.
57491         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57492         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57493         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57494         (main): Use isnand instead of isnan.
57495         * tests/test-round1.c: Include isnand.h.
57496         (main): Use isnand instead of isnan.
57497         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57498         (ISNAN): Set to isnand instead of isnan.
57499         * tests/test-trunc1.c: Include isnand.h.
57500         (main): Use isnand instead of isnan.
57501         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57502         (equal): Use isnand instead of isnan.
57503         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57504         isnand-nolibm.
57505         * NEWS: Mention the change.
57506
57507 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57508             Bruno Haible  <bruno@clisp.org>
57509
57510         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57511         the GCC builtins for signbits are present and set
57512         REPLACE_SIGNBIT_USING_GCC if so.
57513         * lib/math.in.h (signbit): Define using GCC builtins if
57514         REPLACE_SIGNBIT_USING_GCC is set.
57515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57516         REPLACE_SIGNBIT_USING_GCC.
57517         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57518
57519 2008-01-25  Jim Meyering  <meyering@redhat.com>
57520
57521         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57522         * lib/poll.c: Include <config.h>, not "config.h".
57523         * tests/test-getaddrinfo.c: Likewise.
57524
57525 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57526
57527         * modules/sockets-tests: New file.
57528
57529 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57530
57531         * modules/sockets: New module, can be used to call WSA_Startup and
57532         WSA_Cleanup when needed.
57533
57534         * lib/sockets.h, lib/sockets.c: New files.
57535
57536         * m4/sockets.m4: New file.
57537
57538         * tests/test-sockets.c: New file.
57539
57540 2008-01-19  Bruno Haible  <bruno@clisp.org>
57541
57542         * doc/posix-headers: Renamed from doc/headers.
57543         * doc/posix-functions: Renamed from doc/functions.
57544         * doc/gnulib.texi: Update.
57545
57546 2008-01-19  Bruno Haible  <bruno@clisp.org>
57547
57548         * doc/glibc-functions/strcasestr.texi: Include contents of
57549         doc/functions/strcasestr.texi, fixing the list of platforms.
57550         * doc/functions/strcasestr.texi: Remove file.
57551
57552 2008-01-19  Bruno Haible  <bruno@clisp.org>
57553
57554         * doc/glibc-functions/memmem.texi: Include contents of
57555         doc/functions/memmem.texi.
57556         * doc/functions/memmem.texi: Remove file.
57557
57558 2008-01-18  Bruno Haible  <bruno@clisp.org>
57559
57560         * doc/glibc-functions/*.texi: New files.
57561         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57562         to use the new files.
57563
57564 2008-01-17  Bruno Haible  <bruno@clisp.org>
57565
57566         * tests/test-gethostname.c (main): Fix printf statement.
57567
57568 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57569
57570         * modules/gethostname-tests: New file.
57571
57572         * tests/test-gethostname.c: New file.
57573
57574 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57575
57576         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57577         used by the UNAME case.  Reported by Bruno Haible
57578         <bruno@clisp.org>.
57579
57580 2008-01-17  Eric Blake  <ebb9@byu.net>
57581
57582         Convert c-strcasestr to be more efficient.
57583         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57584         (Depends-on): Add c-strcase, remove malloca, strnlen.
57585         * tests/test-c-strcasestr.c (main): Enhance test.
57586         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57587
57588 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57589
57590         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57591         Use it in creating po/Makevars.
57592
57593 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57594
57595         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57596         Applications that requires it should initialize libgcrypt
57597         manually.
57598
57599 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57600
57601         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57602
57603 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         Fix problem with getdate on mingw32 reported by Simon Josefsson
57606         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57607         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57608         tzname", when deciding whether to declare tzname.
57609         * lib/strftime.c (tzname): Likewise.
57610
57611 2008-01-15  Bruno Haible  <bruno@clisp.org>
57612
57613         Work around a MacOS X 10.5 bug in frexpl().
57614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57615         * doc/functions/frexpl.texi: Document the bug.
57616         Reported by Elias Pipping <pipping@gentoo.org>.
57617
57618 2008-01-14  Eric Blake  <ebb9@byu.net>
57619
57620         Touch up previous patch.
57621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57622         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57623
57624         Convert strcasestr module to use Two-Way algorithm.
57625         * modules/strcasestr-simple: New module, based on the old
57626         strcasestr, but with Two-Way rather than KMP.
57627         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57628         * lib/string.in.h (rpl_strcasestr): Declare.
57629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57630         performance.
57631         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57632         * modules/string (Makefile.am): Support strcasestr.
57633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57634         * modules/strcasestr-tests (Depends-on): Check for alarm.
57635         * tests/test-strcasestr.c: Augment test.
57636         * lib/str-two-way.h: Clean up stray macro.
57637         * NEWS: Document new module.
57638         * MODULES.html.sh (string handling): Likewise.
57639         * doc/functions/strcasestr.texi: New file.
57640         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57641         here, since it is not a POSIX function.
57642
57643 2008-01-14  Colin Watson  <cjwatson@debian.org>
57644             Bruno Haible  <bruno@clisp.org>
57645
57646         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57647         works fine; if not, set REPLACE_STRSIGNAL.
57648         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57650         REPLACE_STRSIGNAL.
57651         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57652         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57653         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57654
57655 2008-01-14  Bruno Haible  <bruno@clisp.org>
57656
57657         * modules/strsignal (Include): Change to <string.h>.
57658
57659 2008-01-14  Colin Watson  <cjwatson@debian.org>
57660
57661         * modules/argp (Notice): Add a notice recommending to change
57662         XGETTEXT_OPTIONS.
57663         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57664
57665 2008-01-13  Colin Watson  <cjwatson@debian.org>
57666
57667         * modules/strsignal-tests: New file.
57668         * tests/test-strsignal.c: New file.
57669
57670         * lib/strsignal.c: New file, from glibc with modifications.
57671         * lib/siglist.h: New file, from glibc with modifications.
57672         * lib/string.in.h (strsignal): New declaration.
57673         * m4/strsignal.m4: New file.
57674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57675         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57676         * modules/strsignal: New file.
57677         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57678         HAVE_DECL_STRSIGNAL.
57679
57680 2008-01-13  Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57683         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57684         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57685         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57686
57687 2008-01-13  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57690         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57691         * lib/argp.h (__attribute__): Likewise.
57692         * lib/c-stack.c (__attribute__): Likewise.
57693         * lib/error.h (__attribute__): Likewise.
57694         * lib/fts.c (__attribute__): Likewise.
57695         * lib/openat.h (__attribute__): Likewise.
57696         * lib/stdio.in.h (__attribute__): Likewise.
57697         * lib/string.in.h (__attribute__): Likewise.
57698         * lib/utimens.c (__attribute__): Likewise.
57699         * lib/vasnprintf.h (__attribute__): Likewise.
57700         * lib/xalloc.h (__attribute__): Likewise.
57701         * lib/xprintf.h (__attribute__): Likewise.
57702         * lib/xstrtol.h (__attribute__): Likewise.
57703         * lib/xvasprintf.h (__attribute__): Likewise.
57704
57705 2008-01-12  Bruno Haible  <bruno@clisp.org>
57706
57707         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57708         * doc/glibc-headers/a.out.texi: New file.
57709         * doc/glibc-headers/aliases.texi: New file.
57710         * doc/glibc-headers/alloca.texi: New file.
57711         * doc/glibc-headers/ar.texi: New file.
57712         * doc/glibc-headers/argp.texi: New file.
57713         * doc/glibc-headers/argz.texi: New file.
57714         * doc/glibc-headers/byteswap.texi: New file.
57715         * doc/glibc-headers/crypt.texi: New file.
57716         * doc/glibc-headers/endian.texi: New file.
57717         * doc/glibc-headers/envz.texi: New file.
57718         * doc/glibc-headers/err.texi: New file.
57719         * doc/glibc-headers/error.texi: New file.
57720         * doc/glibc-headers/execinfo.texi: New file.
57721         * doc/glibc-headers/fpu_control.texi: New file.
57722         * doc/glibc-headers/fstab.texi: New file.
57723         * doc/glibc-headers/fts.texi: New file.
57724         * doc/glibc-headers/getopt.texi: New file.
57725         * doc/glibc-headers/ieee754.texi: New file.
57726         * doc/glibc-headers/ifaddrs.texi: New file.
57727         * doc/glibc-headers/libintl.texi: New file.
57728         * doc/glibc-headers/mcheck.texi: New file.
57729         * doc/glibc-headers/mntent.texi: New file.
57730         * doc/glibc-headers/obstack.texi: New file.
57731         * doc/glibc-headers/paths.texi: New file.
57732         * doc/glibc-headers/printf.texi: New file.
57733         * doc/glibc-headers/pty.texi: New file.
57734         * doc/glibc-headers/resolv.texi: New file.
57735         * doc/glibc-headers/shadow.texi: New file.
57736         * doc/glibc-headers/sysexits.texi: New file.
57737         * doc/glibc-headers/ttyent.texi: New file.
57738
57739 2008-01-12  Jim Meyering  <meyering@redhat.com>
57740
57741         announce-gen: emit Gnulib's git-based version string.
57742         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57743         New option --gnulib-version=V, where V is expected to be
57744         the output of running git describe in the gnulib directory.
57745         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57746         not useful, and plan to stop publishing an xdelta file with each
57747         coreutils release.
57748
57749         * build-aux/announce-gen: Also check for lzma-compressed files.
57750
57751 2008-01-11  Bruno Haible  <bruno@clisp.org>
57752
57753         * tests/test-memmem.c (main): Increase maximum allowed time.
57754         * tests/test-strstr.c (main): Likewise.
57755
57756 2008-01-11  Bruno Haible  <bruno@clisp.org>
57757
57758         * doc/functions/memmem.texi: Add more precisions about platforms.
57759         * doc/functions/strstr.texi: Likewise.
57760
57761 2008-01-10  Eric Blake  <ebb9@byu.net>
57762
57763         * m4/strstr.m4: Delete cruft from copy-n-paste.
57764         Reported by Bruno Haible.
57765
57766 2008-01-10  Bruno Haible  <bruno@clisp.org>
57767
57768         Make c-strstr rely on strstr.
57769         * lib/c-strstr.c: Don't include str-kmp.h.
57770         (c_strstr): Define in terms of strstr.
57771         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57772         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57773
57774 2008-01-10  Bruno Haible  <bruno@clisp.org>
57775
57776         * doc/gnulib.texi (String Functions in C Locale): New section.
57777         * doc/c-ctype.texi: New file.
57778         * doc/c-strcase.texi: New file.
57779         * doc/c-strcaseeq.texi: New file.
57780         * doc/c-strcasestr.texi: New file.
57781         * doc/c-strstr.texi: New file.
57782         * doc/c-strtod.texi: New file.
57783         * doc/c-strtold.texi: New file.
57784
57785 2008-01-10  Eric Blake  <ebb9@byu.net>
57786
57787         * lib/relocatable.h: Fix a comment.
57788
57789 2008-01-10  Eric Blake  <ebb9@byu.net>
57790
57791         Share two-way algorithm.
57792         * lib/str-two-way.h: New file, merged from...
57793         * lib/memmem.c: ...here...
57794         * lib/strstr.c: ...and here.
57795         * modules/memmem (Files): Use it.
57796         * modules/strstr (Files): Likewise.
57797
57798         Avoid quadratic strstr implementations.
57799         * lib/strstr.c: New file.
57800         * m4/strstr.m4: Likewise.
57801         * modules/strstr: Likewise.
57802         * modules/strstr-tests: Likewise.
57803         * tests/test-strstr.c: Likewise.
57804         * lib/string.in.h (rpl_strstr): Declare.
57805         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57807         * modules/string (Makefile.am): Likewise.
57808         * MODULES.html.sh (string handling): Mention new module.
57809         * doc/functions/strstr.texi (strstr): Document the bug.
57810
57811 2008-01-10  Bruno Haible  <bruno@clisp.org>
57812
57813         * lib/relocatable.h (relocate): State whether result is freshly
57814         allocated or not.
57815         * lib/relocatable.c (relocate): Return a freshly allocated string
57816         instead of a pointer to a privately held string.
57817         Reported by Sylvain Beucler <beuc@gnu.org>.
57818
57819 2008-01-10  Colin Watson  <cjwatson@debian.org>
57820
57821         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57822         s/S_ISNLK/S_ISLNK/.
57823
57824 2008-01-09  Bruno Haible  <bruno@clisp.org>
57825
57826         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57827         and other files.
57828         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57829         if it's only a guess.
57830         * modules/memmem: Simplify by depending on memmem-simple.
57831
57832 2008-01-09  Bruno Haible  <bruno@clisp.org>
57833
57834         Work around OpenBSD 4.0 tdelete() bug.
57835         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57836         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57837         macros and don't redefine the enum values.
57838         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57839         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57840         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57841
57842 2008-01-09  Bruno Haible  <bruno@clisp.org>
57843
57844         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57845         (main): Don't perform the tests if setlocale did not install a UTF-8
57846         locale. Needed on OpenBSD 4.0.
57847         * modules/wcwidth-tests (Depends-on): Add localcharset.
57848
57849 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57852         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57853         * NEWS: announce this.
57854         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57855
57856 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57857         and Eric Blake  <ebb9@byu.net>
57858
57859         Add memmem-simple module.
57860         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57861         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57862         * modules/memmem-simple: New file.
57863         * modules/memmem (Description): Tweak.
57864         * MODULES.html.sh (string handling): Mention new module.
57865         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57866         addressed by memmem-simple.
57867         * NEWS: Document the difference.
57868
57869 2008-01-09  Eric Blake  <ebb9@byu.net>
57870
57871         Give gcc some memmem optimization hints.
57872         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57873         (strcasestr): Declare as pure.
57874         * modules/memmem (Maintainer): Claim my implementation.
57875
57876 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57877
57878         Support AIX 6.1 and higher.
57879         * build-aux/config.libpath: Likewise.
57880         * build-aux/config.rpath: Likewise.
57881
57882 2008-01-08  Jim Meyering  <meyering@redhat.com>
57883             Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57886         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57887         Reported by Peter Fales in
57888         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57889
57890 2008-01-08  Bruno Haible  <bruno@clisp.org>
57891
57892         * modules/unictype/category-of (Depends-on): Add
57893         unictype/category-none.
57894         * modules/unictype/category-and-tests (Depends-on): Add
57895         unictype/category-{L,N,Lu,Nd}.
57896         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57897         * modules/unictype/category-or-tests (Depends-on): Add
57898         unictype/category-{L,N}.
57899         * modules/unictype/category-name-tests (Depends-on): Add
57900         unictype/category-{Z,Nl}.
57901         Reported by Simon Josefsson.
57902
57903 2008-01-08  Bruno Haible  <bruno@clisp.org>
57904
57905         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57906         convention better.
57907         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57908         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57909         Reported by Peter Miller <millerp@canb.auug.org.au>.
57910
57911 2008-01-08  Eric Blake  <ebb9@byu.net>
57912
57913         Rewrite memmem to guarantee linear complexity without malloc.
57914         * lib/memmem.c (memmem): Use Two-Way rather than
57915         Knuth-Morris-Pratt, to allow O(1) space usage.
57916         (critical_factorization, two_way_short_needle)
57917         (two_way_long_needle): New functions.
57918         (knuth_morris_pratt): Delete.
57919         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57920         Add stdint.
57921         * tests/test-memmem.c (main): Add tests for periodic needle and
57922         sublinear performance.
57923         * doc/functions/memmem.texi (memmem): Document other deficiencies
57924         in cygwin and older glibc.
57925
57926 2008-01-08  Bruno Haible  <bruno@clisp.org>
57927
57928         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57929         augmentation.
57930
57931 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57932
57933         Add a configure time option: --disable-acl.
57934         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57935         AC_ARG_ENABLE(acl).
57936
57937 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57938
57939         * tests/test-localename.c: Don't include obsolete "setenv.h".
57940
57941         * modules/localename-tests (Depends-on): Need unsetenv.
57942
57943 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57944
57945         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57946
57947 2008-01-06  Colin Watson  <cjwatson@debian.org>
57948
57949         * users.txt: Add man-db.
57950
57951 2008-01-07  Bruno Haible  <bruno@clisp.org>
57952
57953         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57954         previous section name.
57955
57956 2008-01-07  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/progname.c (set_program_name): Don't strip off a leading
57959         "lt-" prefix outside a .libs directory.
57960         Suggested by Paul Eggert.
57961
57962 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57963             Bruno Haible  <bruno@clisp.org>
57964
57965         Improve memory cleanup in 'relocatable' module.
57966         * lib/relocatable.h (compute_curr_prefix): Change return type to
57967         'char *'.
57968         * lib/relocatable.c (compute_curr_prefix): Change return type to
57969         'char *'. Free curr_installdir after use.
57970         (relocate): Free curr_prefix_better after use.
57971         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57972
57973 2008-01-01  Bruno Haible  <bruno@clisp.org>
57974
57975         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57976         failure on older glibc systems.
57977         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57978
57979 2008-01-05  Eric Blake  <ebb9@byu.net>
57980
57981         Avoid quadratic system memmem.
57982         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57983         Reported by Ralf Wildenhues.
57984
57985         Fix memmem test for mingw.
57986         * modules/memmem-tests (configure.ac): Check for alarm.
57987         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57988         it.
57989         * doc/functions/memmem.texi: New file.
57990         * doc/gnulib.texi (Function Substitutes): Add memmem.
57991         Reported by Bruno Haible.
57992
57993 2008-01-04  Bruno Haible  <bruno@clisp.org>
57994
57995         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57996         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57997         gl_HEADER_STRING_H_DEFAULTS.
57998
57999 2008-01-04  Eric Blake  <ebb9@byu.net>
58000
58001         Shorten duration of memmem test.
58002         * tests/test-memmem.c (main): Use alarm to declare failure if test
58003         is taking too long.
58004         Reported by Ralf Wildenhues.
58005
58006 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58007
58008         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58009         string, needed by strerror.
58010
58011 2008-01-03  Colin Watson  <cjwatson@debian.org>
58012             Bruno Haible  <bruno@clisp.org>
58013
58014         * doc/gnulib-tool.texi (Localization): New section.
58015
58016 2008-01-02  Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58019         variables to 'unsigned char *' type.
58020         Reported by Paul Eggert.
58021
58022 2008-01-02  Jim Meyering  <jim@meyering.net>
58023
58024         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58025
58026 2007-12-31  Jim Meyering  <jim@meyering.net>
58027
58028         Avoid use of private FTS type name.
58029         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58030
58031 2007-12-30  Karl Berry  <karl@gnu.org>
58032
58033         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58034         work around defect in Texinfo and/or the standalone Info browser.
58035
58036 2007-12-30  Bruno Haible  <bruno@clisp.org>
58037
58038         Unify 5 copies of the KMP code.
58039         * lib/str-kmp.h: New file.
58040         * lib/c-strcasestr.c: Include str-kmp.h.
58041         (knuth_morris_pratt): Remove function.
58042         (c_strcasestr): Update.
58043         * lib/c-strstr.c: Include str-kmp.h.
58044         (knuth_morris_pratt): Remove function.
58045         (c_strcasestr): Update.
58046         * lib/mbscasestr.c: Include str-kmp.h.
58047         (knuth_morris_pratt_unibyte): Remove function.
58048         * lib/mbsstr.c: Include str-kmp.h.
58049         (knuth_morris_pratt_unibyte): Remove function.
58050         * lib/strcasestr.c: Include str-kmp.h.
58051         (knuth_morris_pratt): Remove function.
58052         (strcasestr): Update.
58053         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58054         * modules/c-strstr (Files): Likewise.
58055         * modules/mbscasestr (Files): Likewise.
58056         * modules/mbsstr (Files): Likewise.
58057         * modules/strcasestr (Files): Likewise.
58058         Suggested by Paul Eggert.
58059
58060 2007-12-30  Bruno Haible  <bruno@clisp.org>
58061
58062         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58063         defined.
58064
58065 2007-12-30  Bruno Haible  <bruno@clisp.org>
58066
58067         * lib/xmalloca.h: Include xalloc.h.
58068         (xnmalloca): New macro.
58069
58070 2007-12-30  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/malloca.h (nmalloca): New macro.
58073         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58074         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58075         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58076         knuth_morris_pratt_multibyte): Likewise.
58077         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58078         knuth_morris_pratt_multibyte): Likewise.
58079         * lib/memmem.c (knuth_morris_pratt): Likewise.
58080         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58081
58082 2007-12-25  Bruno Haible  <bruno@clisp.org>
58083
58084         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58085         * lib/glob.c: Don't include openat.h.
58086         (link_exists2_p): Add back the code that deals with the
58087         !GLOB_ALTDIRFUNC case.
58088         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58089         let it do the filename concatenation.
58090         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58091         * modules/glob (Depends-on): Remove openat.
58092
58093 2007-12-31  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/dirfd (License): Change to LGPLv2+.
58096         Approved by Jim Meyering.
58097
58098 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58099
58100         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58101         when multiplying M by sizeof (size_t).
58102
58103 2007-12-10  Martin Lambers  <marlam@marlam.de>
58104
58105         Override getpagesize on mingw.
58106         * lib/getpagesize.c: New file.
58107         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58108         * modules/getpagesize (Files): Add lib/getpagesize.c.
58109         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58111         REPLACE_GETPAGESIZE.
58112         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58113
58114 2007-12-25  Bruno Haible  <bruno@clisp.org>
58115
58116         * modules/localcharset (Notice): New field.
58117         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58118         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58119
58120 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58121             Bruno Haible  <bruno@clisp.org>
58122
58123         Avoid using the syntax symbol() in formatted documentation.
58124         * MODULES.html.sh (func_module): When replacing symbol() with a
58125         hyperlink, remove the parentheses. Show an error if some remain.
58126         Recognize and render the '...' syntax.
58127         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58128         Rework. Add paragraph about GCC's inlining.
58129         * doc/alloca.texi: Likewise.
58130         * doc/error.texi: Remove parentheses from symbol reference.
58131         * doc/gnulib-intro.texi: Likewise.
58132         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58133         * modules/fnmatch (Description): Reword to say "the ... function".
58134         * modules/full-read (Description): Likewise.
58135         * modules/full-write (Description): Likewise.
58136         * modules/safe-read (Description): Likewise.
58137         * modules/safe-write (Description): Likewise.
58138         * modules/strchrnul (Description): Likewise.
58139         * modules/trim (Description): Likewise.
58140         * modules/error (Description): Remove parentheses from symbol
58141         references.
58142         * modules/verror (Description): Likewise.
58143         Reported by Karl Berry.
58144
58145 2007-12-25  Bruno Haible  <bruno@clisp.org>
58146
58147         Fixup after 2007-10-16 commit.
58148         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58149
58150 2007-12-24  Bruno Haible  <bruno@clisp.org>
58151
58152         Make --enable-relocatable work with DESTDIR.
58153         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58154         to compute installdir from destprog.
58155         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58156         also set the RELOC_DESTDIR variable.
58157         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58158
58159 2007-12-24  Bruno Haible  <bruno@clisp.org>
58160
58161         Fix link error due to xalloc_die().
58162         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58163         of xreadlink.
58164         * lib/relocwrapper.c: Update comments.
58165         * build-aux/install-reloc: Remove xreadlink.c from file list.
58166         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58167         xreadlink.c.
58168         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58169
58170 2007-12-24  Bruno Haible  <bruno@clisp.org>
58171
58172         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58173         * lib/setenv.h: Remove file.
58174         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58175         lib/setenv.h.
58176         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58177         (Depends-on): Add stdlib.
58178         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58179         gl_FUNC_UNSETENV.
58180         (Include): Replace setenv.h with <stdlib.h>.
58181         * modules/unsetenv: New file.
58182         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58183         * lib/unsetenv.c: Include <stdlib.h> first.
58184         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58185         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58186         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58187         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58188         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58189         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58191         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58192         * doc/functions/unsetenv.texi: Update.
58193         * modules/xsetenv (Depends-on): Add unsetenv.
58194         * modules/getdate (Depends-on): Likewise.
58195         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58196         * lib/xsetenv.c: Don't include setenv.h.
58197         * lib/getdate.y: Likewise.
58198         * lib/relocwrapper.c: Likewise.
58199         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58200         (Depends-on): Add stdlib.
58201         * NEWS: Mention the changes.
58202         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58203
58204 2007-12-23  Bruno Haible  <bruno@clisp.org>
58205
58206         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58207         indentation.
58208
58209 2007-12-23  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/c-strcasestr.c: Add more comments.
58212         * lib/c-strstr.c: Likewise.
58213         * lib/mbscasestr.c: Likewise.
58214         * lib/mbsstr.c: Likewise.
58215         * lib/strcasestr.c: Likewise.
58216         * lib/memmem.c: Likewise.
58217
58218 2007-12-23  Bruno Haible  <bruno@clisp.org>
58219
58220         * tests/test-memmem.c: Include <string.h> first.
58221
58222 2007-12-22  Bruno Haible  <bruno@clisp.org>
58223
58224         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58225         the contents of $testsbase.
58226         Reported by Ralf Wildenhues.
58227
58228 2007-12-22  Bruno Haible  <bruno@clisp.org>
58229
58230         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58231         two variables local_ldadd_before, local_ldadd_last.
58232
58233 2007-12-20  Eric Blake  <ebb9@byu.net>
58234
58235         Work around circular library issue when cross-compiling.
58236         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58237         that progname.o does not need to pull in rpl_memcmp.
58238
58239 2007-12-19  Eric Blake  <ebb9@byu.net>
58240
58241         Fix memmem to avoid O(n^2) worst-case complexity.
58242         * lib/memmem.c (knuth_morris_pratt): New function.
58243         (memmem): Use it if first few naive iterations fail.
58244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58245         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58246         * modules/memchr (License): Likewise.
58247         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58248         malloca.
58249         * tests/test-memmem.c: Rewrite, borrowing ideas from
58250         test-mbsstr1.c; the old version wouldn't even compile!
58251         * modules/memmem-tests: New file.
58252         * lib/string.in.h (rpl_memmem): Add declaration.
58253         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58255         REPLACE_MEMMEM.
58256
58257 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58258
58259         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58260         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58261         before any system include files, and undef after them all.  This
58262         should fix a problem on VMS reported by John E. Malmberg in
58263         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58264
58265 2007-12-17  Eric Blake  <ebb9@byu.net>
58266
58267         Revert addition of verify, for BSD/OS.
58268         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58269         can't handle large files, for the sake of obsolete platforms.
58270         * modules/fseeko (Depends-on): Remove verify.
58271         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58272         * doc/functions/ftello.texi (ftello): Likewise.
58273         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58274         Reported by Larry Jones.
58275
58276 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58277
58278         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58279         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58280
58281 2007-12-17  Jim Meyering  <meyering@redhat.com>
58282
58283         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58284         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58285         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58286         * modules/getcwd (Depends-on): Add openat.
58287         Reported by Petr Salinger.
58288
58289 2007-12-17  Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58292         avoid a segmentation fault of the configure test on x86_64 systems.
58293
58294 2007-12-15  Jim Meyering  <meyering@redhat.com>
58295
58296         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58297
58298 2007-12-13  Eric Blake  <ebb9@byu.net>
58299
58300         Another fseek test.
58301         * tests/test-fseek.c (main): Also test ungetc handling.
58302         * tests/test-fseeko.c (main): Likewise.
58303         * modules/fseeko (Depends-on): Add verify.
58304         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58305         large.
58306         Reported by Larry Jones.
58307
58308         Fix fseeko on mingw.
58309         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58310         seek.
58311
58312         Beef up fseek tests.
58313         * tests/test-fseek.c (main): Also test eof handling.
58314         * tests/test-fseeko.c (main): Likewise.
58315         Reported by Larry Jones.
58316
58317 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58318
58319         Fix fseeko on BSD-based platforms.
58320         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58321         successful seek.
58322
58323 2007-12-12  Eric Blake  <ebb9@byu.net>
58324
58325         Allow circular dependency of separate libtests.a
58326         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58327         when use_libtests.
58328
58329 2007-12-11  Eric Blake  <ebb9@byu.net>
58330
58331         Fix bug with -0.0L in previous patch.
58332         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58333         * tests/test-isnan.c (main): Also test on zeroes.
58334         * tests/test-isnanf.c (main): Likewise.
58335         * tests/test-isnanl.h (main): Likewise.
58336
58337         Detect pseudo-denormals on x86 even when cross-compiling.
58338         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58339         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58340         invalid bit patterns that happen to satisfy ==.
58341
58342         Avoid link failures with separate libtests.a.
58343         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58344         last, to satisfy circular dependencies.
58345
58346 2007-12-11  Eric Blake  <ebb9@byu.net>
58347         and Bruno Haible  <bruno@clisp.org>
58348
58349         Fix OpenBSD 4.0 <float.h> handling of long double.
58350         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58351         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58352         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58353
58354 2007-12-11  Jim Meyering  <meyering@redhat.com>
58355
58356         * users.txt: Add libvirt.
58357
58358         Support versions of autoconf prior to 2.59c.
58359         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58360         if it is not already defined.
58361
58362 2007-12-09  Bruno Haible  <bruno@clisp.org>
58363
58364         Let 'gnulib-tool --import' collect sources needed for the tests in
58365         tests/ rather than in lib/.
58366         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58367         argument. If true, add rules to generate libtests.a, and put libtests.a
58368         into $(LDADD). Consider source files in subdirectories and set
58369         uses_subdirs.
58370         (func_emit_initmacro_start, func_emit_initmacro_end,
58371         func_emit_initmacro_done): Pass all arguments explicitly.
58372         (func_import): Determine two module lists main_modules,
58373         testsrelated_modules. Determine use_libtests. Determine two variables
58374         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58375         instead of just sed_transform_lib_file. Determine two variables
58376         main_files and testsrelated_files. Compute 'files' as the union of
58377         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58378         func_add_or_update. In the generated gnulib-comp.m4, collect the
58379         object files for tests/ in different variables than those for lib/.
58380         Substitute LIBTESTS_LIBDEPS.
58381         (func_create_testdir): Combine the uses_subdirs results from
58382         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58383
58384 2007-12-09  Bruno Haible  <bruno@clisp.org>
58385
58386         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58387         the build-aux directory.
58388
58389 2007-12-09  Bruno Haible  <bruno@clisp.org>
58390
58391         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58392         introduced on 2006-09-09.
58393
58394 2007-12-07  Jim Meyering  <meyering@redhat.com>
58395
58396         Let these macros work also with autoconf-2.59.
58397         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58398         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58399         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58400
58401 2007-12-06  Jim Meyering  <meyering@redhat.com>
58402
58403         Avoid a configure-time syntax error in gl_FUNC_ACL.
58404         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58405         function in each branch, before testing the cache variable.
58406
58407 2007-12-04  Eric Blake  <ebb9@byu.net>
58408
58409         Make scripts executable.
58410         * build-aux/config.guess: Add execute permissions.
58411         * build-aux/config.sub: Likewise.
58412         * build-aux/gendocs.sh: Likewise.
58413
58414         Fix frexp on mingw.
58415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58416         cross-compiling.
58417         * doc/functions/frexp.texi (frexp): Document the bug.
58418
58419         Make cygwin fseeko check more reliable.
58420         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58421         version numbers, rather than unrelated feature check.
58422         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58423         * doc/functions/ftello.texi (ftello): Likewise.
58424         Reported by Bruno Haible.
58425
58426         * m4/strerror.m4: Bump version number.
58427
58428 2007-12-03  Bruno Haible  <bruno@clisp.org>
58429
58430         * doc/functions/mprotect.texi: Mention the mingw problem.
58431
58432 2007-12-03  Eric Blake  <ebb9@byu.net>
58433
58434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58435         REPLACE_STRERROR is initialized before this macro.
58436
58437 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58438
58439         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58440         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58441         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58442         put -lsec in even for programs other than 'ls'.  This fixes a problem
58443         for gettext reported by Bruno Haible in
58444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58445         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58446         Add support for Solaris 10.  This isn't efficient, but should get the
58447         job done for now.
58448
58449 2007-12-03  James Youngman  <jay@gnu.org>
58450
58451         * doc/regexprops-generic.texi: change "an close-group" to "a
58452         close-group" and "illegal" to "not allowed".
58453
58454 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58455
58456         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58457         pr_byname.h. Needed for the rare case when the maintainer has done
58458         "make maintainer-clean" in the source directory and then attempts a
58459         build outside the source directory.
58460         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58461         scripts_byname.h.
58462
58463 2007-12-02  Martin Lambers <marlam@marlam.de>
58464             Bruno Haible  <bruno@clisp.org>
58465
58466         * lib/getpagesize.h: Remove file.
58467         * lib/unistd.in.h: Include declaration of getpagesize here.
58468         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58469         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58470         HAVE_SYS_PARAM_H.
58471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58472         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58473         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58474         (Depends-on): Add unistd.
58475         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58476         (Include): Use <unistd.h> instead of getpagesize.h.
58477         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58478         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58479         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58480         gl_GETPAGESIZE invocation, already handled by module dependency.
58481         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58482
58483 2007-12-02  Bruno Haible  <bruno@clisp.org>
58484
58485         * modules/strings-tests: New file.
58486         * tests/test-strings.c: New file.
58487
58488         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58489         * lib/strings.in.h: New file.
58490         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58491         * m4/strings_h.m4: New file.
58492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58493         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58494         * modules/strings: New file.
58495         * modules/string (Makefile.am): Update.
58496         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58497         Reported by Karl Berry.
58498
58499 2007-12-01  Eric Blake  <ebb9@byu.net>
58500
58501         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58502         accomodate fix in cygwin 1.5.25.
58503
58504 2007-12-01  Jim Meyering  <meyering@redhat.com>
58505
58506         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58507         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58508         that would inhibit utf8-optimization of a regexp containing line-
58509         or buffer-anchors, e.g., `^', `$'.
58510
58511 2007-11-30  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58514         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58515         glthread_recursive_lock_init.
58516         * lib/lock.c (glthread_recursive_lock_init)
58517         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58518         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58519
58520 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         New function qset_acl, like set_acl but with syscall semantics.
58523         * lib/acl.h (qset_acl): New decl.
58524         * lib/acl.c (qset_acl): New function.
58525         (set_acl): Use new function.  Use more-consistent diagnostics.
58526
58527 2007-11-28  Jim Meyering  <meyering@redhat.com>
58528
58529         * modules/physmem (License): Change from GPL to LGPLv2+.
58530
58531 2007-11-26  Bruno Haible  <bruno@clisp.org>
58532
58533         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58534         'long double' type has excess precision.
58535         Reported by Jim Meyering in
58536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58537
58538 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58539
58540         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58541         Sync from <http://gnu.org/licenses>.
58542         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58543         with license text from same location.
58544         * doc/maintain.texi, doc/standards.texi:  Sync from
58545         <http://savannah.gnu.org/projects/gnustandards>.
58546
58547 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58548         and Jim Meyering  <meyering@redhat.com>
58549
58550         Adjust getdate' grammar to accept a slightly more regular language.
58551         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58552         Before, the former was rejected.
58553         * lib/getdate.y (digits_to_date_time): New function, factored
58554         out of ...
58555         (number): ...here.  Just call digits_to_date_time.
58556         (hybrid): New non-terminal to handle an <unsigned number,
58557         signed relative offset> sequence consistently.
58558
58559 2007-11-18  Jim Meyering  <meyering@redhat.com>
58560
58561         Pull my changes from coreutils:
58562         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58563         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58564         use of $gnulib_tool_option_extras, so that it's separated from the
58565         preceding argument.
58566
58567         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58568         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58569         parent destination directories before copying a file into place.
58570
58571 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58572
58573         bootstrap: work also with 4-argument variant of AC_INIT
58574         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58575
58576 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         Port test-getaddrinfo to Solaris.
58579         Problem reported by Bruno Haible in
58580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58581         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58582         explanation of setting 'hints'.
58583         Don't reject an implementation merely because it returns EAI_SERVICE.
58584         (EAI_SERVICE): Define to 0 if not defined.
58585
58586 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58587
58588         The license of gnu-make and posix-shell is now "GPLed build tool".
58589         * modules/gnu-make (License): Likewise.
58590         * modules/posix-shell (License): Likewise.
58591
58592         New module posix-shell, for determining a POSIX shell
58593         or perhaps something that is close enough to a POSIX shell.
58594         * m4/posix-shell.m4: New file.
58595         * modules/posix-shell: New file.
58596
58597         * MODULES.html.sh: Mention new module.
58598
58599         New module gnu-make, for determining whether we're using GNU Make.
58600         * m4/gnu-make.m4: New file.
58601         * modules/gnu-make: New file.
58602         * MODULES.html.sh: Mention new module.
58603
58604 2007-11-14  Jim Meyering  <meyering@redhat.com>
58605
58606         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58607         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58608         use this macro to create a function _definition_.
58609         Remove useless "#undef ARGMATCH_DIE".
58610
58611 2007-11-14  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/config.charset: Update for OpenBSD 4.1.
58614         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58615
58616 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         Document 64-bit #if problems in stdint.texi.
58619         * doc/headers/stdint.texi (stdint.h): Mention problems with
58620         64-bit-#if, and how to work around them.
58621
58622         Don't insist on 'long long int' support in the preprocessor.  It
58623         breaks too many things.  For example, PRIdMAX still uses a 'long
58624         long int' format with the latest Sun compiler, even though
58625         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58626         preprocessor problem.  This causes the latest coreutils to dump
58627         core on Solaris 10 sparc with the Sun C compiler.
58628         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58629         the troublesome expressions at configure-time, not at #if-time.
58630         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58631         preprocessor.
58632         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58633         compile-time C checks, done at 'configure'-time.
58634         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58635         * modules/inttypes (Makefile): Substitute the new symbols that
58636         gl_INTTYPES_H now generates.
58637         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58638
58639 2007-11-12  Bruno Haible  <bruno@clisp.org>
58640
58641         Tests for Unicode character classification functions.
58642
58643         * modules/unictype/bidicategory-byname-tests: New file.
58644         * modules/unictype/bidicategory-name-tests: New file.
58645         * modules/unictype/bidicategory-of-tests: New file.
58646         * modules/unictype/bidicategory-test-tests: New file.
58647         * modules/unictype/block-list-tests: New file.
58648         * modules/unictype/block-of-tests: New file.
58649         * modules/unictype/block-test-tests: New file.
58650         * modules/unictype/category-C-tests: New file.
58651         * modules/unictype/category-Cc-tests: New file.
58652         * modules/unictype/category-Cf-tests: New file.
58653         * modules/unictype/category-Cn-tests: New file.
58654         * modules/unictype/category-Co-tests: New file.
58655         * modules/unictype/category-Cs-tests: New file.
58656         * modules/unictype/category-L-tests: New file.
58657         * modules/unictype/category-Ll-tests: New file.
58658         * modules/unictype/category-Lm-tests: New file.
58659         * modules/unictype/category-Lo-tests: New file.
58660         * modules/unictype/category-Lt-tests: New file.
58661         * modules/unictype/category-Lu-tests: New file.
58662         * modules/unictype/category-M-tests: New file.
58663         * modules/unictype/category-Mc-tests: New file.
58664         * modules/unictype/category-Me-tests: New file.
58665         * modules/unictype/category-Mn-tests: New file.
58666         * modules/unictype/category-N-tests: New file.
58667         * modules/unictype/category-Nd-tests: New file.
58668         * modules/unictype/category-Nl-tests: New file.
58669         * modules/unictype/category-No-tests: New file.
58670         * modules/unictype/category-P-tests: New file.
58671         * modules/unictype/category-Pc-tests: New file.
58672         * modules/unictype/category-Pd-tests: New file.
58673         * modules/unictype/category-Pe-tests: New file.
58674         * modules/unictype/category-Pf-tests: New file.
58675         * modules/unictype/category-Pi-tests: New file.
58676         * modules/unictype/category-Po-tests: New file.
58677         * modules/unictype/category-Ps-tests: New file.
58678         * modules/unictype/category-S-tests: New file.
58679         * modules/unictype/category-Sc-tests: New file.
58680         * modules/unictype/category-Sk-tests: New file.
58681         * modules/unictype/category-Sm-tests: New file.
58682         * modules/unictype/category-So-tests: New file.
58683         * modules/unictype/category-Z-tests: New file.
58684         * modules/unictype/category-Zl-tests: New file.
58685         * modules/unictype/category-Zp-tests: New file.
58686         * modules/unictype/category-Zs-tests: New file.
58687         * modules/unictype/category-and-not-tests: New file.
58688         * modules/unictype/category-and-tests: New file.
58689         * modules/unictype/category-byname-tests: New file.
58690         * modules/unictype/category-name-tests: New file.
58691         * modules/unictype/category-none-tests: New file.
58692         * modules/unictype/category-of-tests: New file.
58693         * modules/unictype/category-or-tests: New file.
58694         * modules/unictype/category-test-withtable-tests: New file.
58695         * modules/unictype/combining-class-tests: New file.
58696         * modules/unictype/ctype-alnum-tests: New file.
58697         * modules/unictype/ctype-alpha-tests: New file.
58698         * modules/unictype/ctype-blank-tests: New file.
58699         * modules/unictype/ctype-cntrl-tests: New file.
58700         * modules/unictype/ctype-digit-tests: New file.
58701         * modules/unictype/ctype-graph-tests: New file.
58702         * modules/unictype/ctype-lower-tests: New file.
58703         * modules/unictype/ctype-print-tests: New file.
58704         * modules/unictype/ctype-punct-tests: New file.
58705         * modules/unictype/ctype-space-tests: New file.
58706         * modules/unictype/ctype-upper-tests: New file.
58707         * modules/unictype/ctype-xdigit-tests: New file.
58708         * modules/unictype/decimal-digit-tests: New file.
58709         * modules/unictype/digit-tests: New file.
58710         * modules/unictype/mirror-tests: New file.
58711         * modules/unictype/numeric-tests: New file.
58712         * modules/unictype/property-alphabetic-tests: New file.
58713         * modules/unictype/property-ascii-hex-digit-tests: New file.
58714         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58715         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58716         * modules/unictype/property-bidi-block-separator-tests: New file.
58717         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58718         * modules/unictype/property-bidi-common-separator-tests: New file.
58719         * modules/unictype/property-bidi-control-tests: New file.
58720         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58721         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58722         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58723         * modules/unictype/property-bidi-european-digit-tests: New file.
58724         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58725         * modules/unictype/property-bidi-left-to-right-tests: New file.
58726         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58727         * modules/unictype/property-bidi-other-neutral-tests: New file.
58728         * modules/unictype/property-bidi-pdf-tests: New file.
58729         * modules/unictype/property-bidi-segment-separator-tests: New file.
58730         * modules/unictype/property-bidi-whitespace-tests: New file.
58731         * modules/unictype/property-byname-tests: New file.
58732         * modules/unictype/property-combining-tests: New file.
58733         * modules/unictype/property-composite-tests: New file.
58734         * modules/unictype/property-currency-symbol-tests: New file.
58735         * modules/unictype/property-dash-tests: New file.
58736         * modules/unictype/property-decimal-digit-tests: New file.
58737         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58738         * modules/unictype/property-deprecated-tests: New file.
58739         * modules/unictype/property-diacritic-tests: New file.
58740         * modules/unictype/property-extender-tests: New file.
58741         * modules/unictype/property-format-control-tests: New file.
58742         * modules/unictype/property-grapheme-base-tests: New file.
58743         * modules/unictype/property-grapheme-extend-tests: New file.
58744         * modules/unictype/property-grapheme-link-tests: New file.
58745         * modules/unictype/property-hex-digit-tests: New file.
58746         * modules/unictype/property-hyphen-tests: New file.
58747         * modules/unictype/property-id-continue-tests: New file.
58748         * modules/unictype/property-id-start-tests: New file.
58749         * modules/unictype/property-ideographic-tests: New file.
58750         * modules/unictype/property-ids-binary-operator-tests: New file.
58751         * modules/unictype/property-ids-trinary-operator-tests: New file.
58752         * modules/unictype/property-ignorable-control-tests: New file.
58753         * modules/unictype/property-iso-control-tests: New file.
58754         * modules/unictype/property-join-control-tests: New file.
58755         * modules/unictype/property-left-of-pair-tests: New file.
58756         * modules/unictype/property-line-separator-tests: New file.
58757         * modules/unictype/property-logical-order-exception-tests: New file.
58758         * modules/unictype/property-lowercase-tests: New file.
58759         * modules/unictype/property-math-tests: New file.
58760         * modules/unictype/property-non-break-tests: New file.
58761         * modules/unictype/property-not-a-character-tests: New file.
58762         * modules/unictype/property-numeric-tests: New file.
58763         * modules/unictype/property-other-alphabetic-tests: New file.
58764         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58765         * modules/unictype/property-other-grapheme-extend-tests: New file.
58766         * modules/unictype/property-other-id-continue-tests: New file.
58767         * modules/unictype/property-other-id-start-tests: New file.
58768         * modules/unictype/property-other-lowercase-tests: New file.
58769         * modules/unictype/property-other-math-tests: New file.
58770         * modules/unictype/property-other-uppercase-tests: New file.
58771         * modules/unictype/property-paired-punctuation-tests: New file.
58772         * modules/unictype/property-paragraph-separator-tests: New file.
58773         * modules/unictype/property-pattern-syntax-tests: New file.
58774         * modules/unictype/property-pattern-white-space-tests: New file.
58775         * modules/unictype/property-private-use-tests: New file.
58776         * modules/unictype/property-punctuation-tests: New file.
58777         * modules/unictype/property-quotation-mark-tests: New file.
58778         * modules/unictype/property-radical-tests: New file.
58779         * modules/unictype/property-sentence-terminal-tests: New file.
58780         * modules/unictype/property-soft-dotted-tests: New file.
58781         * modules/unictype/property-space-tests: New file.
58782         * modules/unictype/property-terminal-punctuation-tests: New file.
58783         * modules/unictype/property-test-tests: New file.
58784         * modules/unictype/property-titlecase-tests: New file.
58785         * modules/unictype/property-unassigned-code-value-tests: New file.
58786         * modules/unictype/property-unified-ideograph-tests: New file.
58787         * modules/unictype/property-uppercase-tests: New file.
58788         * modules/unictype/property-variation-selector-tests: New file.
58789         * modules/unictype/property-white-space-tests: New file.
58790         * modules/unictype/property-xid-continue-tests: New file.
58791         * modules/unictype/property-xid-start-tests: New file.
58792         * modules/unictype/property-zero-width-tests: New file.
58793         * modules/unictype/scripts-tests: New file.
58794         * modules/unictype/syntax-c-ident-tests: New file.
58795         * modules/unictype/syntax-c-whitespace-tests: New file.
58796         * modules/unictype/syntax-java-ident-tests: New file.
58797         * modules/unictype/syntax-java-whitespace-tests: New file.
58798         * tests/unictype/test-bidi_byname.c: New file.
58799         * tests/unictype/test-bidi_name.c: New file.
58800         * tests/unictype/test-bidi_of.c: New file.
58801         * tests/unictype/test-bidi_test.c: New file.
58802         * tests/unictype/test-block_list.c: New file.
58803         * tests/unictype/test-block_of.c: New file.
58804         * tests/unictype/test-block_test.c: New file.
58805         * tests/unictype/test-categ_and.c: New file.
58806         * tests/unictype/test-categ_and_not.c: New file.
58807         * tests/unictype/test-categ_byname.c: New file.
58808         * tests/unictype/test-categ_name.c: New file.
58809         * tests/unictype/test-categ_none.c: New file.
58810         * tests/unictype/test-categ_of.c: New file.
58811         * tests/unictype/test-categ_or.c: New file.
58812         * tests/unictype/test-categ_test_withtable.c: New file.
58813         * tests/unictype/test-combining.c: New file.
58814         * tests/unictype/test-decdigit.c: New file.
58815         * tests/unictype/test-digit.c: New file.
58816         * tests/unictype/test-mirror.c: New file.
58817         * tests/unictype/test-numeric.c: New file.
58818         * tests/unictype/test-pr_byname.c: New file.
58819         * tests/unictype/test-pr_test.c: New file.
58820         * tests/unictype/test-predicate-part1.h: New file.
58821         * tests/unictype/test-predicate-part2.h: New file.
58822         * tests/unictype/test-scripts.c: New file.
58823         * tests/unictype/test-sy_c_ident.c: New file.
58824         * tests/unictype/test-sy_java_ident.c: New file.
58825
58826         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58827         for Unicode 5.0.0.
58828         * tests/unictype/test-categ_Cc.c: Likewise.
58829         * tests/unictype/test-categ_Cf.c: Likewise.
58830         * tests/unictype/test-categ_Cn.c: Likewise.
58831         * tests/unictype/test-categ_Co.c: Likewise.
58832         * tests/unictype/test-categ_Cs.c: Likewise.
58833         * tests/unictype/test-categ_L.c: Likewise.
58834         * tests/unictype/test-categ_Ll.c: Likewise.
58835         * tests/unictype/test-categ_Lm.c: Likewise.
58836         * tests/unictype/test-categ_Lo.c: Likewise.
58837         * tests/unictype/test-categ_Lt.c: Likewise.
58838         * tests/unictype/test-categ_Lu.c: Likewise.
58839         * tests/unictype/test-categ_M.c: Likewise.
58840         * tests/unictype/test-categ_Mc.c: Likewise.
58841         * tests/unictype/test-categ_Me.c: Likewise.
58842         * tests/unictype/test-categ_Mn.c: Likewise.
58843         * tests/unictype/test-categ_N.c: Likewise.
58844         * tests/unictype/test-categ_Nd.c: Likewise.
58845         * tests/unictype/test-categ_Nl.c: Likewise.
58846         * tests/unictype/test-categ_No.c: Likewise.
58847         * tests/unictype/test-categ_P.c: Likewise.
58848         * tests/unictype/test-categ_Pc.c: Likewise.
58849         * tests/unictype/test-categ_Pd.c: Likewise.
58850         * tests/unictype/test-categ_Pe.c: Likewise.
58851         * tests/unictype/test-categ_Pf.c: Likewise.
58852         * tests/unictype/test-categ_Pi.c: Likewise.
58853         * tests/unictype/test-categ_Po.c: Likewise.
58854         * tests/unictype/test-categ_Ps.c: Likewise.
58855         * tests/unictype/test-categ_S.c: Likewise.
58856         * tests/unictype/test-categ_Sc.c: Likewise.
58857         * tests/unictype/test-categ_Sk.c: Likewise.
58858         * tests/unictype/test-categ_Sm.c: Likewise.
58859         * tests/unictype/test-categ_So.c: Likewise.
58860         * tests/unictype/test-categ_Z.c: Likewise.
58861         * tests/unictype/test-categ_Zl.c: Likewise.
58862         * tests/unictype/test-categ_Zp.c: Likewise.
58863         * tests/unictype/test-categ_Zs.c: Likewise.
58864         * tests/unictype/test-ctype_alnum.c: Likewise.
58865         * tests/unictype/test-ctype_alpha.c: Likewise.
58866         * tests/unictype/test-ctype_blank.c: Likewise.
58867         * tests/unictype/test-ctype_cntrl.c: Likewise.
58868         * tests/unictype/test-ctype_digit.c: Likewise.
58869         * tests/unictype/test-ctype_graph.c: Likewise.
58870         * tests/unictype/test-ctype_lower.c: Likewise.
58871         * tests/unictype/test-ctype_print.c: Likewise.
58872         * tests/unictype/test-ctype_punct.c: Likewise.
58873         * tests/unictype/test-ctype_space.c: Likewise.
58874         * tests/unictype/test-ctype_upper.c: Likewise.
58875         * tests/unictype/test-ctype_xdigit.c: Likewise.
58876         * tests/unictype/test-decdigit.h: Likewise.
58877         * tests/unictype/test-digit.h: Likewise.
58878         * tests/unictype/test-numeric.h: Likewise.
58879         * tests/unictype/test-pr_alphabetic.c: Likewise.
58880         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58881         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58882         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58883         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58884         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58885         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58886         * tests/unictype/test-pr_bidi_control.c: Likewise.
58887         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58888         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58889         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58890         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58891         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58892         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58893         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58894         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58895         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58896         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58897         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58898         * tests/unictype/test-pr_combining.c: Likewise.
58899         * tests/unictype/test-pr_composite.c: Likewise.
58900         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58901         * tests/unictype/test-pr_dash.c: Likewise.
58902         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58903         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58904         * tests/unictype/test-pr_deprecated.c: Likewise.
58905         * tests/unictype/test-pr_diacritic.c: Likewise.
58906         * tests/unictype/test-pr_extender.c: Likewise.
58907         * tests/unictype/test-pr_format_control.c: Likewise.
58908         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58909         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58910         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58911         * tests/unictype/test-pr_hex_digit.c: Likewise.
58912         * tests/unictype/test-pr_hyphen.c: Likewise.
58913         * tests/unictype/test-pr_id_continue.c: Likewise.
58914         * tests/unictype/test-pr_id_start.c: Likewise.
58915         * tests/unictype/test-pr_ideographic.c: Likewise.
58916         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58917         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58918         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58919         * tests/unictype/test-pr_iso_control.c: Likewise.
58920         * tests/unictype/test-pr_join_control.c: Likewise.
58921         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58922         * tests/unictype/test-pr_line_separator.c: Likewise.
58923         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58924         * tests/unictype/test-pr_lowercase.c: Likewise.
58925         * tests/unictype/test-pr_math.c: Likewise.
58926         * tests/unictype/test-pr_non_break.c: Likewise.
58927         * tests/unictype/test-pr_not_a_character.c: Likewise.
58928         * tests/unictype/test-pr_numeric.c: Likewise.
58929         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58930         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58931         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58932         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58933         * tests/unictype/test-pr_other_id_start.c: Likewise.
58934         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58935         * tests/unictype/test-pr_other_math.c: Likewise.
58936         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58937         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58938         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58939         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58940         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58941         * tests/unictype/test-pr_private_use.c: Likewise.
58942         * tests/unictype/test-pr_punctuation.c: Likewise.
58943         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58944         * tests/unictype/test-pr_radical.c: Likewise.
58945         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58946         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58947         * tests/unictype/test-pr_space.c: Likewise.
58948         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58949         * tests/unictype/test-pr_titlecase.c: Likewise.
58950         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58951         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58952         * tests/unictype/test-pr_uppercase.c: Likewise.
58953         * tests/unictype/test-pr_variation_selector.c: Likewise.
58954         * tests/unictype/test-pr_white_space.c: Likewise.
58955         * tests/unictype/test-pr_xid_continue.c: Likewise.
58956         * tests/unictype/test-pr_xid_start.c: Likewise.
58957         * tests/unictype/test-pr_zero_width.c: Likewise.
58958         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58959         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58960
58961 2007-11-12  Bruno Haible  <bruno@clisp.org>
58962
58963         Unicode character classification functions.
58964         * lib/unictype.h: New file.
58965         * modules/unictype/base: New file.
58966         * modules/unictype/category-L: New file.
58967         * modules/unictype/category-Lu: New file.
58968         * modules/unictype/category-Ll: New file.
58969         * modules/unictype/category-Lt: New file.
58970         * modules/unictype/category-Lm: New file.
58971         * modules/unictype/category-Lo: New file.
58972         * modules/unictype/category-M: New file.
58973         * modules/unictype/category-Mn: New file.
58974         * modules/unictype/category-Mc: New file.
58975         * modules/unictype/category-Me: New file.
58976         * modules/unictype/category-N: New file.
58977         * modules/unictype/category-Nd: New file.
58978         * modules/unictype/category-Nl: New file.
58979         * modules/unictype/category-No: New file.
58980         * modules/unictype/category-P: New file.
58981         * modules/unictype/category-Pc: New file.
58982         * modules/unictype/category-Pd: New file.
58983         * modules/unictype/category-Ps: New file.
58984         * modules/unictype/category-Pe: New file.
58985         * modules/unictype/category-Pi: New file.
58986         * modules/unictype/category-Pf: New file.
58987         * modules/unictype/category-Po: New file.
58988         * modules/unictype/category-S: New file.
58989         * modules/unictype/category-Sm: New file.
58990         * modules/unictype/category-Sc: New file.
58991         * modules/unictype/category-Sk: New file.
58992         * modules/unictype/category-So: New file.
58993         * modules/unictype/category-Z: New file.
58994         * modules/unictype/category-Zs: New file.
58995         * modules/unictype/category-Zl: New file.
58996         * modules/unictype/category-Zp: New file.
58997         * modules/unictype/category-C: New file.
58998         * modules/unictype/category-Cc: New file.
58999         * modules/unictype/category-Cf: New file.
59000         * modules/unictype/category-Cs: New file.
59001         * modules/unictype/category-Co: New file.
59002         * modules/unictype/category-Cn: New file.
59003         * modules/unictype/category-or: New file.
59004         * modules/unictype/category-of: New file.
59005         * modules/unictype/category-test: New file.
59006         * modules/unictype/category-test-withtable: New file.
59007         * modules/unictype/category-byname: New file.
59008         * modules/unictype/category-none: New file.
59009         * modules/unictype/category-and: New file.
59010         * modules/unictype/category-and-not: New file.
59011         * modules/unictype/category-name: New file.
59012         * modules/unictype/combining-class: New file.
59013         * modules/unictype/category-all: New file.
59014         * modules/unictype/bidicategory-all: New file.
59015         * modules/unictype/bidicategory-byname: New file.
59016         * modules/unictype/bidicategory-name: New file.
59017         * modules/unictype/bidicategory-of: New file.
59018         * modules/unictype/bidicategory-test: New file.
59019         * modules/unictype/decimal-digit: New file.
59020         * modules/unictype/digit: New file.
59021         * modules/unictype/numeric: New file.
59022         * modules/unictype/mirror: New file.
59023         * modules/unictype/property-white-space: New file.
59024         * modules/unictype/property-alphabetic: New file.
59025         * modules/unictype/property-other-alphabetic: New file.
59026         * modules/unictype/property-not-a-character: New file.
59027         * modules/unictype/property-default-ignorable-code-point: New file.
59028         * modules/unictype/property-other-default-ignorable-code-point: New
59029         file.
59030         * modules/unictype/property-deprecated: New file.
59031         * modules/unictype/property-logical-order-exception: New file.
59032         * modules/unictype/property-variation-selector: New file.
59033         * modules/unictype/property-private-use: New file.
59034         * modules/unictype/property-unassigned-code-value: New file.
59035         * modules/unictype/property-uppercase: New file.
59036         * modules/unictype/property-other-uppercase: New file.
59037         * modules/unictype/property-lowercase: New file.
59038         * modules/unictype/property-other-lowercase: New file.
59039         * modules/unictype/property-titlecase: New file.
59040         * modules/unictype/property-soft-dotted: New file.
59041         * modules/unictype/property-id-start: New file.
59042         * modules/unictype/property-other-id-start: New file.
59043         * modules/unictype/property-id-continue: New file.
59044         * modules/unictype/property-other-id-continue: New file.
59045         * modules/unictype/property-xid-start: New file.
59046         * modules/unictype/property-xid-continue: New file.
59047         * modules/unictype/property-pattern-white-space: New file.
59048         * modules/unictype/property-pattern-syntax: New file.
59049         * modules/unictype/property-join-control: New file.
59050         * modules/unictype/property-grapheme-base: New file.
59051         * modules/unictype/property-grapheme-extend: New file.
59052         * modules/unictype/property-other-grapheme-extend: New file.
59053         * modules/unictype/property-grapheme-link: New file.
59054         * modules/unictype/property-bidi-control: New file.
59055         * modules/unictype/property-bidi-left-to-right: New file.
59056         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59057         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59058         * modules/unictype/property-bidi-european-digit: New file.
59059         * modules/unictype/property-bidi-eur-num-separator: New file.
59060         * modules/unictype/property-bidi-eur-num-terminator: New file.
59061         * modules/unictype/property-bidi-arabic-digit: New file.
59062         * modules/unictype/property-bidi-common-separator: New file.
59063         * modules/unictype/property-bidi-block-separator: New file.
59064         * modules/unictype/property-bidi-segment-separator: New file.
59065         * modules/unictype/property-bidi-whitespace: New file.
59066         * modules/unictype/property-bidi-non-spacing-mark: New file.
59067         * modules/unictype/property-bidi-boundary-neutral: New file.
59068         * modules/unictype/property-bidi-pdf: New file.
59069         * modules/unictype/property-bidi-embedding-or-override: New file.
59070         * modules/unictype/property-bidi-other-neutral: New file.
59071         * modules/unictype/property-hex-digit: New file.
59072         * modules/unictype/property-ascii-hex-digit: New file.
59073         * modules/unictype/property-ideographic: New file.
59074         * modules/unictype/property-unified-ideograph: New file.
59075         * modules/unictype/property-radical: New file.
59076         * modules/unictype/property-ids-binary-operator: New file.
59077         * modules/unictype/property-ids-trinary-operator: New file.
59078         * modules/unictype/property-zero-width: New file.
59079         * modules/unictype/property-space: New file.
59080         * modules/unictype/property-non-break: New file.
59081         * modules/unictype/property-iso-control: New file.
59082         * modules/unictype/property-format-control: New file.
59083         * modules/unictype/property-dash: New file.
59084         * modules/unictype/property-hyphen: New file.
59085         * modules/unictype/property-punctuation: New file.
59086         * modules/unictype/property-line-separator: New file.
59087         * modules/unictype/property-paragraph-separator: New file.
59088         * modules/unictype/property-quotation-mark: New file.
59089         * modules/unictype/property-sentence-terminal: New file.
59090         * modules/unictype/property-terminal-punctuation: New file.
59091         * modules/unictype/property-currency-symbol: New file.
59092         * modules/unictype/property-math: New file.
59093         * modules/unictype/property-other-math: New file.
59094         * modules/unictype/property-paired-punctuation: New file.
59095         * modules/unictype/property-left-of-pair: New file.
59096         * modules/unictype/property-combining: New file.
59097         * modules/unictype/property-composite: New file.
59098         * modules/unictype/property-decimal-digit: New file.
59099         * modules/unictype/property-numeric: New file.
59100         * modules/unictype/property-diacritic: New file.
59101         * modules/unictype/property-extender: New file.
59102         * modules/unictype/property-ignorable-control: New file.
59103         * modules/unictype/property-test: New file.
59104         * modules/unictype/property-byname: New file.
59105         * modules/unictype/property-all: New file.
59106         * modules/unictype/scripts: New file.
59107         * modules/unictype/scripts-all: New file.
59108         * modules/unictype/block-of: New file.
59109         * modules/unictype/block-test: New file.
59110         * modules/unictype/block-list: New file.
59111         * modules/unictype/block-all: New file.
59112         * modules/unictype/syntax-c-whitespace: New file.
59113         * modules/unictype/syntax-java-whitespace: New file.
59114         * modules/unictype/syntax-c-ident: New file.
59115         * modules/unictype/syntax-java-ident: New file.
59116         * modules/unictype/ctype-alnum: New file.
59117         * modules/unictype/ctype-alpha: New file.
59118         * modules/unictype/ctype-cntrl: New file.
59119         * modules/unictype/ctype-digit: New file.
59120         * modules/unictype/ctype-graph: New file.
59121         * modules/unictype/ctype-lower: New file.
59122         * modules/unictype/ctype-print: New file.
59123         * modules/unictype/ctype-punct: New file.
59124         * modules/unictype/ctype-space: New file.
59125         * modules/unictype/ctype-upper: New file.
59126         * modules/unictype/ctype-xdigit: New file.
59127         * modules/unictype/ctype-blank: New file.
59128         * lib/unictype/bidi_byname.c: New file.
59129         * lib/unictype/bidi_name.c: New file.
59130         * lib/unictype/bidi_of.c: New file.
59131         * lib/unictype/bidi_test.c: New file.
59132         * lib/unictype/bitmap.h: New file.
59133         * lib/unictype/block_test.c: New file.
59134         * lib/unictype/blocks.c: New file.
59135         * lib/unictype/categ_C.c: New file.
59136         * lib/unictype/categ_Cc.c: New file.
59137         * lib/unictype/categ_Cf.c: New file.
59138         * lib/unictype/categ_Cn.c: New file.
59139         * lib/unictype/categ_Co.c: New file.
59140         * lib/unictype/categ_Cs.c: New file.
59141         * lib/unictype/categ_L.c: New file.
59142         * lib/unictype/categ_Ll.c: New file.
59143         * lib/unictype/categ_Lm.c: New file.
59144         * lib/unictype/categ_Lo.c: New file.
59145         * lib/unictype/categ_Lt.c: New file.
59146         * lib/unictype/categ_Lu.c: New file.
59147         * lib/unictype/categ_M.c: New file.
59148         * lib/unictype/categ_Mc.c: New file.
59149         * lib/unictype/categ_Me.c: New file.
59150         * lib/unictype/categ_Mn.c: New file.
59151         * lib/unictype/categ_N.c: New file.
59152         * lib/unictype/categ_Nd.c: New file.
59153         * lib/unictype/categ_Nl.c: New file.
59154         * lib/unictype/categ_No.c: New file.
59155         * lib/unictype/categ_P.c: New file.
59156         * lib/unictype/categ_Pc.c: New file.
59157         * lib/unictype/categ_Pd.c: New file.
59158         * lib/unictype/categ_Pe.c: New file.
59159         * lib/unictype/categ_Pf.c: New file.
59160         * lib/unictype/categ_Pi.c: New file.
59161         * lib/unictype/categ_Po.c: New file.
59162         * lib/unictype/categ_Ps.c: New file.
59163         * lib/unictype/categ_S.c: New file.
59164         * lib/unictype/categ_Sc.c: New file.
59165         * lib/unictype/categ_Sk.c: New file.
59166         * lib/unictype/categ_Sm.c: New file.
59167         * lib/unictype/categ_So.c: New file.
59168         * lib/unictype/categ_Z.c: New file.
59169         * lib/unictype/categ_Zl.c: New file.
59170         * lib/unictype/categ_Zp.c: New file.
59171         * lib/unictype/categ_Zs.c: New file.
59172         * lib/unictype/categ_and.c: New file.
59173         * lib/unictype/categ_and_not.c: New file.
59174         * lib/unictype/categ_byname.c: New file.
59175         * lib/unictype/categ_name.c: New file.
59176         * lib/unictype/categ_none.c: New file.
59177         * lib/unictype/categ_of.c: New file.
59178         * lib/unictype/categ_or.c: New file.
59179         * lib/unictype/categ_test.c: New file.
59180         * lib/unictype/combining.c: New file.
59181         * lib/unictype/ctype_alnum.c: New file.
59182         * lib/unictype/ctype_alpha.c: New file.
59183         * lib/unictype/ctype_blank.c: New file.
59184         * lib/unictype/ctype_cntrl.c: New file.
59185         * lib/unictype/ctype_digit.c: New file.
59186         * lib/unictype/ctype_graph.c: New file.
59187         * lib/unictype/ctype_lower.c: New file.
59188         * lib/unictype/ctype_print.c: New file.
59189         * lib/unictype/ctype_punct.c: New file.
59190         * lib/unictype/ctype_space.c: New file.
59191         * lib/unictype/ctype_upper.c: New file.
59192         * lib/unictype/ctype_xdigit.c: New file.
59193         * lib/unictype/decdigit.c: New file.
59194         * lib/unictype/digit.c: New file.
59195         * lib/unictype/identsyntaxmap.h: New file.
59196         * lib/unictype/mirror.c: New file.
59197         * lib/unictype/numeric.c: New file.
59198         * lib/unictype/pr_alphabetic.c: New file.
59199         * lib/unictype/pr_ascii_hex_digit.c: New file.
59200         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59201         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59202         * lib/unictype/pr_bidi_block_separator.c: New file.
59203         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59204         * lib/unictype/pr_bidi_common_separator.c: New file.
59205         * lib/unictype/pr_bidi_control.c: New file.
59206         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59207         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59208         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59209         * lib/unictype/pr_bidi_european_digit.c: New file.
59210         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59211         * lib/unictype/pr_bidi_left_to_right.c: New file.
59212         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59213         * lib/unictype/pr_bidi_other_neutral.c: New file.
59214         * lib/unictype/pr_bidi_pdf.c: New file.
59215         * lib/unictype/pr_bidi_segment_separator.c: New file.
59216         * lib/unictype/pr_bidi_whitespace.c: New file.
59217         * lib/unictype/pr_byname.c: New file.
59218         * lib/unictype/pr_byname.gperf: New file.
59219         * lib/unictype/pr_combining.c: New file.
59220         * lib/unictype/pr_composite.c: New file.
59221         * lib/unictype/pr_currency_symbol.c: New file.
59222         * lib/unictype/pr_dash.c: New file.
59223         * lib/unictype/pr_decimal_digit.c: New file.
59224         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59225         * lib/unictype/pr_deprecated.c: New file.
59226         * lib/unictype/pr_diacritic.c: New file.
59227         * lib/unictype/pr_extender.c: New file.
59228         * lib/unictype/pr_format_control.c: New file.
59229         * lib/unictype/pr_grapheme_base.c: New file.
59230         * lib/unictype/pr_grapheme_extend.c: New file.
59231         * lib/unictype/pr_grapheme_link.c: New file.
59232         * lib/unictype/pr_hex_digit.c: New file.
59233         * lib/unictype/pr_hyphen.c: New file.
59234         * lib/unictype/pr_id_continue.c: New file.
59235         * lib/unictype/pr_id_start.c: New file.
59236         * lib/unictype/pr_ideographic.c: New file.
59237         * lib/unictype/pr_ids_binary_operator.c: New file.
59238         * lib/unictype/pr_ids_trinary_operator.c: New file.
59239         * lib/unictype/pr_ignorable_control.c: New file.
59240         * lib/unictype/pr_iso_control.c: New file.
59241         * lib/unictype/pr_join_control.c: New file.
59242         * lib/unictype/pr_left_of_pair.c: New file.
59243         * lib/unictype/pr_line_separator.c: New file.
59244         * lib/unictype/pr_logical_order_exception.c: New file.
59245         * lib/unictype/pr_lowercase.c: New file.
59246         * lib/unictype/pr_math.c: New file.
59247         * lib/unictype/pr_non_break.c: New file.
59248         * lib/unictype/pr_not_a_character.c: New file.
59249         * lib/unictype/pr_numeric.c: New file.
59250         * lib/unictype/pr_other_alphabetic.c: New file.
59251         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59252         * lib/unictype/pr_other_grapheme_extend.c: New file.
59253         * lib/unictype/pr_other_id_continue.c: New file.
59254         * lib/unictype/pr_other_id_start.c: New file.
59255         * lib/unictype/pr_other_lowercase.c: New file.
59256         * lib/unictype/pr_other_math.c: New file.
59257         * lib/unictype/pr_other_uppercase.c: New file.
59258         * lib/unictype/pr_paired_punctuation.c: New file.
59259         * lib/unictype/pr_paragraph_separator.c: New file.
59260         * lib/unictype/pr_pattern_syntax.c: New file.
59261         * lib/unictype/pr_pattern_white_space.c: New file.
59262         * lib/unictype/pr_private_use.c: New file.
59263         * lib/unictype/pr_punctuation.c: New file.
59264         * lib/unictype/pr_quotation_mark.c: New file.
59265         * lib/unictype/pr_radical.c: New file.
59266         * lib/unictype/pr_sentence_terminal.c: New file.
59267         * lib/unictype/pr_soft_dotted.c: New file.
59268         * lib/unictype/pr_space.c: New file.
59269         * lib/unictype/pr_terminal_punctuation.c: New file.
59270         * lib/unictype/pr_test.c: New file.
59271         * lib/unictype/pr_titlecase.c: New file.
59272         * lib/unictype/pr_unassigned_code_value.c: New file.
59273         * lib/unictype/pr_unified_ideograph.c: New file.
59274         * lib/unictype/pr_uppercase.c: New file.
59275         * lib/unictype/pr_variation_selector.c: New file.
59276         * lib/unictype/pr_white_space.c: New file.
59277         * lib/unictype/pr_xid_continue.c: New file.
59278         * lib/unictype/pr_xid_start.c: New file.
59279         * lib/unictype/pr_zero_width.c: New file.
59280         * lib/unictype/scripts.c: New file.
59281         * lib/unictype/sy_c_ident.c: New file.
59282         * lib/unictype/sy_c_whitespace.c: New file.
59283         * lib/unictype/sy_java_ident.c: New file.
59284         * lib/unictype/sy_java_whitespace.c: New file.
59285
59286         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59287         Unicode 5.0.0.
59288         * lib/unictype/blocks.h: Likewise.
59289         * lib/unictype/categ_C.h: Likewise.
59290         * lib/unictype/categ_Cc.h: Likewise.
59291         * lib/unictype/categ_Cf.h: Likewise.
59292         * lib/unictype/categ_Cn.h: Likewise.
59293         * lib/unictype/categ_Co.h: Likewise.
59294         * lib/unictype/categ_Cs.h: Likewise.
59295         * lib/unictype/categ_L.h: Likewise.
59296         * lib/unictype/categ_Ll.h: Likewise.
59297         * lib/unictype/categ_Lm.h: Likewise.
59298         * lib/unictype/categ_Lo.h: Likewise.
59299         * lib/unictype/categ_Lt.h: Likewise.
59300         * lib/unictype/categ_Lu.h: Likewise.
59301         * lib/unictype/categ_M.h: Likewise.
59302         * lib/unictype/categ_Mc.h: Likewise.
59303         * lib/unictype/categ_Me.h: Likewise.
59304         * lib/unictype/categ_Mn.h: Likewise.
59305         * lib/unictype/categ_N.h: Likewise.
59306         * lib/unictype/categ_Nd.h: Likewise.
59307         * lib/unictype/categ_Nl.h: Likewise.
59308         * lib/unictype/categ_No.h: Likewise.
59309         * lib/unictype/categ_P.h: Likewise.
59310         * lib/unictype/categ_Pc.h: Likewise.
59311         * lib/unictype/categ_Pd.h: Likewise.
59312         * lib/unictype/categ_Pe.h: Likewise.
59313         * lib/unictype/categ_Pf.h: Likewise.
59314         * lib/unictype/categ_Pi.h: Likewise.
59315         * lib/unictype/categ_Po.h: Likewise.
59316         * lib/unictype/categ_Ps.h: Likewise.
59317         * lib/unictype/categ_S.h: Likewise.
59318         * lib/unictype/categ_Sc.h: Likewise.
59319         * lib/unictype/categ_Sk.h: Likewise.
59320         * lib/unictype/categ_Sm.h: Likewise.
59321         * lib/unictype/categ_So.h: Likewise.
59322         * lib/unictype/categ_Z.h: Likewise.
59323         * lib/unictype/categ_Zl.h: Likewise.
59324         * lib/unictype/categ_Zp.h: Likewise.
59325         * lib/unictype/categ_Zs.h: Likewise.
59326         * lib/unictype/categ_of.h: Likewise.
59327         * lib/unictype/combining.h: Likewise.
59328         * lib/unictype/ctype_alnum.h: Likewise.
59329         * lib/unictype/ctype_alpha.h: Likewise.
59330         * lib/unictype/ctype_blank.h: Likewise.
59331         * lib/unictype/ctype_cntrl.h: Likewise.
59332         * lib/unictype/ctype_digit.h: Likewise.
59333         * lib/unictype/ctype_graph.h: Likewise.
59334         * lib/unictype/ctype_lower.h: Likewise.
59335         * lib/unictype/ctype_print.h: Likewise.
59336         * lib/unictype/ctype_punct.h: Likewise.
59337         * lib/unictype/ctype_space.h: Likewise.
59338         * lib/unictype/ctype_upper.h: Likewise.
59339         * lib/unictype/ctype_xdigit.h: Likewise.
59340         * lib/unictype/decdigit.h: Likewise.
59341         * lib/unictype/digit.h: Likewise.
59342         * lib/unictype/mirror.h: Likewise.
59343         * lib/unictype/numeric.h: Likewise.
59344         * lib/unictype/pr_alphabetic.h: Likewise.
59345         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59346         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59347         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59348         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59349         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59350         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59351         * lib/unictype/pr_bidi_control.h: Likewise.
59352         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59353         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59354         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59355         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59356         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59357         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59358         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59359         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59360         * lib/unictype/pr_bidi_pdf.h: Likewise.
59361         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59362         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59363         * lib/unictype/pr_combining.h: Likewise.
59364         * lib/unictype/pr_composite.h: Likewise.
59365         * lib/unictype/pr_currency_symbol.h: Likewise.
59366         * lib/unictype/pr_dash.h: Likewise.
59367         * lib/unictype/pr_decimal_digit.h: Likewise.
59368         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59369         * lib/unictype/pr_deprecated.h: Likewise.
59370         * lib/unictype/pr_diacritic.h: Likewise.
59371         * lib/unictype/pr_extender.h: Likewise.
59372         * lib/unictype/pr_format_control.h: Likewise.
59373         * lib/unictype/pr_grapheme_base.h: Likewise.
59374         * lib/unictype/pr_grapheme_extend.h: Likewise.
59375         * lib/unictype/pr_grapheme_link.h: Likewise.
59376         * lib/unictype/pr_hex_digit.h: Likewise.
59377         * lib/unictype/pr_hyphen.h: Likewise.
59378         * lib/unictype/pr_id_continue.h: Likewise.
59379         * lib/unictype/pr_id_start.h: Likewise.
59380         * lib/unictype/pr_ideographic.h: Likewise.
59381         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59382         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59383         * lib/unictype/pr_ignorable_control.h: Likewise.
59384         * lib/unictype/pr_iso_control.h: Likewise.
59385         * lib/unictype/pr_join_control.h: Likewise.
59386         * lib/unictype/pr_left_of_pair.h: Likewise.
59387         * lib/unictype/pr_line_separator.h: Likewise.
59388         * lib/unictype/pr_logical_order_exception.h: Likewise.
59389         * lib/unictype/pr_lowercase.h: Likewise.
59390         * lib/unictype/pr_math.h: Likewise.
59391         * lib/unictype/pr_non_break.h: Likewise.
59392         * lib/unictype/pr_not_a_character.h: Likewise.
59393         * lib/unictype/pr_numeric.h: Likewise.
59394         * lib/unictype/pr_other_alphabetic.h: Likewise.
59395         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59396         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59397         * lib/unictype/pr_other_id_continue.h: Likewise.
59398         * lib/unictype/pr_other_id_start.h: Likewise.
59399         * lib/unictype/pr_other_lowercase.h: Likewise.
59400         * lib/unictype/pr_other_math.h: Likewise.
59401         * lib/unictype/pr_other_uppercase.h: Likewise.
59402         * lib/unictype/pr_paired_punctuation.h: Likewise.
59403         * lib/unictype/pr_paragraph_separator.h: Likewise.
59404         * lib/unictype/pr_pattern_syntax.h: Likewise.
59405         * lib/unictype/pr_pattern_white_space.h: Likewise.
59406         * lib/unictype/pr_private_use.h: Likewise.
59407         * lib/unictype/pr_punctuation.h: Likewise.
59408         * lib/unictype/pr_quotation_mark.h: Likewise.
59409         * lib/unictype/pr_radical.h: Likewise.
59410         * lib/unictype/pr_sentence_terminal.h: Likewise.
59411         * lib/unictype/pr_soft_dotted.h: Likewise.
59412         * lib/unictype/pr_space.h: Likewise.
59413         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59414         * lib/unictype/pr_titlecase.h: Likewise.
59415         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59416         * lib/unictype/pr_unified_ideograph.h: Likewise.
59417         * lib/unictype/pr_uppercase.h: Likewise.
59418         * lib/unictype/pr_variation_selector.h: Likewise.
59419         * lib/unictype/pr_white_space.h: Likewise.
59420         * lib/unictype/pr_xid_continue.h: Likewise.
59421         * lib/unictype/pr_xid_start.h: Likewise.
59422         * lib/unictype/pr_zero_width.h: Likewise.
59423         * lib/unictype/scripts.h: Likewise.
59424         * lib/unictype/scripts_byname.gperf: Likewise.
59425         * lib/unictype/sy_c_ident.h: Likewise.
59426         * lib/unictype/sy_c_whitespace.h: Likewise.
59427         * lib/unictype/sy_java_ident.h: Likewise.
59428         * lib/unictype/sy_java_whitespace.h: Likewise.
59429
59430         * lib/unictype/Makefile: New file.
59431         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59432         glibc.
59433         * lib/unictype/3level.h: New file, copied from glibc.
59434         * lib/unictype/3levelbit.h: New file.
59435
59436 2007-11-11  Bruno Haible  <bruno@clisp.org>
59437
59438         * modules/gperf: New file.
59439         * modules/iconv_open (Depends-on): Add it.
59440         (Makefile.am): Remove the GPERF definition.
59441
59442 2007-11-11  Bruno Haible  <bruno@clisp.org>
59443
59444         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59445         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59446
59447 2007-11-11  Bruno Haible  <bruno@clisp.org>
59448
59449         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59450         (usage): Remove function.
59451
59452 2007-11-11  Bruno Haible  <bruno@clisp.org>
59453
59454         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59455         gl_FUNC_CEILF_LIBS.
59456         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59457         gl_FUNC_CEIL_LIBS.
59458         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59459         gl_FUNC_CEILL_LIBS.
59460         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59461         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59462         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59463
59464 2007-11-11  Bruno Haible  <bruno@clisp.org>
59465
59466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59467         roundf were declared but do not exist on functions.
59468         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59469         roundl were declared but do not exist on functions.
59470         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59471         HAVE_FLOORL_AND_CEILL, respectively.
59472         Needed for Sun C on Solaris 10.
59473
59474 2007-11-11  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59477         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59478         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59479         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59481         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59482         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59483         HAVE_DECL_ROUNDF.
59484         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59485         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59487         of HAVE_DECL_ROUND*.
59488         * modules/math (Makefile.am): Update.
59489
59490 2007-11-10  Bruno Haible  <bruno@clisp.org>
59491
59492         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59493         ptrdiff_t as m4/intl.m4.
59494
59495 2007-11-10  Jim Meyering  <meyering@redhat.com>
59496
59497         Avoid link failure for the argmatch test.
59498         * tests/test-argmatch.c (usage): Define function to avoid a link
59499         failure: argmatch_die requires a usage function.
59500
59501 2007-11-09  Bruno Haible  <bruno@clisp.org>
59502
59503         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59504         * doc/functions/vsnprintf.texi: Likewise.
59505         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59506         with a size argument < 2.
59507
59508 2007-11-09  Bruno Haible  <bruno@clisp.org>
59509
59510         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59511         buffer. Fixes an inefficiency introduced on 2007-11-03.
59512
59513 2007-11-09  Bruno Haible  <bruno@clisp.org>
59514
59515         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59516         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59517
59518 2007-11-08  Jim Meyering  <meyering@redhat.com>
59519
59520         Change cache variable name prefix "jm_" to "gl_" everywhere.
59521         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59522         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59523         * m4/uptime.m4: s/gl_/jm_/
59524
59525 2007-11-07  Bruno Haible  <bruno@clisp.org>
59526
59527         Update to GNU gettext 0.17.
59528         * m4/intl.m4: Update to GNU gettext 0.17.
59529         * m4/po.m4: Likewise.
59530         * modules/gettext (Files): Remove m4/ulonglong.m4.
59531         (configure.ac): Require gettext infrastructure from version 0.17.
59532
59533 2007-11-06  Bruno Haible  <bruno@clisp.org>
59534
59535         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59536         symbolic values are not defined in a public header.
59537         * lib/freadable.c (freadable) [QNX]: Likewise.
59538         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59539         * lib/freading.c (freading) [QNX]: Likewise.
59540         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59541         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59542         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59543         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59544         Reported by Alain Magloire.
59545
59546         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59547
59548 2007-11-05  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59551         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59552         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59553         Reported by Eric Blake.
59554
59555 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59556             Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59559         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59560         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59561         (malloc): Undefine also before including <stdlib.h>.
59562         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59563         Needed on OSF/1 4.0.
59564
59565 2007-11-05  Jim Meyering  <meyering@redhat.com>
59566
59567         git-version-gen: sync from coreutils.
59568         * build-aux/git-version-gen: Add comments.
59569         Change the first '-' to '.' in the snapshot version string,
59570         e.g., 6.9-377-08144 -> 6.9.377-08144
59571         Remove first parameter.
59572         Don't declare a version "-dirty" merely because a time
59573         stamp has changed.
59574
59575 2007-11-04  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/lock.h: Protect all macro definitions containing an 'if'
59578         statement through a "do { ... } while (0)".
59579         * lib/tls.h: Likewise.
59580
59581 2007-11-04  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59584
59585 2007-11-04  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59588         * modules/fprintf-posix (Depends-on): Add nocrash.
59589         * modules/snprintf-posix (Depends-on): Likewise.
59590         * modules/sprintf-posix (Depends-on): Likewise.
59591         * modules/vasnprintf-posix (Depends-on): Likewise.
59592         * modules/vasprintf-posix (Depends-on): Likewise.
59593         * modules/vfprintf-posix (Depends-on): Likewise.
59594         * modules/vsnprintf-posix (Depends-on): Likewise.
59595         * modules/vsprintf-posix (Depends-on): Likewise.
59596         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59597         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59598         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59599         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59601         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59602         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59603
59604 2007-11-04  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/nocrash: New file.
59607         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59608         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59609
59610 2007-11-04  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59613         precision handling.
59614         * tests/test-vasprintf-posix.c (test_function): Likewise.
59615         * tests/test-snprintf-posix.h (test_function): Likewise.
59616         * tests/test-sprintf-posix.h (test_function): Likewise.
59617
59618         Fix *printf behaviour for large precisions on mingw and BeOS.
59619         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59620         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59622         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59624         gl_PRINTF_PRECISION and test its result. Invoke
59625         gl_PREREQ_VASNPRINTF_PRECISION.
59626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59633         * doc/functions/fprintf.texi: Update.
59634         * doc/functions/printf.texi: Update.
59635         * doc/functions/snprintf.texi: Update.
59636         * doc/functions/sprintf.texi: Update.
59637         * doc/functions/vfprintf.texi: Update.
59638         * doc/functions/vprintf.texi: Update.
59639         * doc/functions/vsnprintf.texi: Update.
59640         * doc/functions/vsprintf.texi: Update.
59641
59642 2007-11-04  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59645
59646 2007-11-04  Bruno Haible  <bruno@clisp.org>
59647
59648         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59649         Reported by Sylvain Beucler <beuc@gnu.org>.
59650
59651 2007-11-03  Bruno Haible  <bruno@clisp.org>
59652
59653         * tests/test-fprintf-posix2.sh: New file.
59654         * tests/test-fprintf-posix2.c: New file.
59655         * modules/fprintf-posix-tests (Files): Add them.
59656         (TESTS): Add test-fprintf-posix2.sh.
59657         (configure.ac): Check for getrlimit and setrlimit.
59658         (check_PROGRAMS): Add test-fprintf-posix2.
59659
59660         * tests/test-printf-posix2.sh: New file.
59661         * tests/test-printf-posix2.c: New file.
59662         * modules/printf-posix-tests (Files): Add them.
59663         (TESTS): Add test-printf-posix2.sh.
59664         (configure.ac): Check for getrlimit and setrlimit.
59665         (check_PROGRAMS): Add test-printf-posix2.
59666
59667         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59668         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59669         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59670         (decode_double): New function, copied from decode_long_double.
59671         (scale10_round_decimal_decoded): New function, extracted from
59672         scale10_round_decimal_long_double.
59673         (scale10_round_decimal_long_double): Use it.
59674         (scale10_round_decimal_double): New function.
59675         (floorlog10): New function.
59676         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59678         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59679         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59680         gl_PRINTF_ENOMEM and test its result. Invoke
59681         gl_PREREQ_VASNPRINTF_ENOMEM.
59682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59684         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59685         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59686         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59687         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59688         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59689         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59690         * modules/snprintf-posix (Depends-on): Likewise.
59691         * modules/sprintf-posix (Depends-on): Likewise.
59692         * modules/vasnprintf-posix (Depends-on): Likewise.
59693         * modules/vasprintf-posix (Depends-on): Likewise.
59694         * modules/vfprintf-posix (Depends-on): Likewise.
59695         * modules/vsnprintf-posix (Depends-on): Likewise.
59696         * modules/vsprintf-posix (Depends-on): Likewise.
59697         * doc/functions/fprintf.texi: Update.
59698         * doc/functions/printf.texi: Update.
59699         * doc/functions/snprintf.texi: Update.
59700         * doc/functions/sprintf.texi: Update.
59701         * doc/functions/vfprintf.texi: Update.
59702         * doc/functions/vprintf.texi: Update.
59703         * doc/functions/vsnprintf.texi: Update.
59704         * doc/functions/vsprintf.texi: Update.
59705
59706 2007-11-03  Bruno Haible  <bruno@clisp.org>
59707
59708         * modules/frexp-nolibm-tests: New file.
59709
59710         * modules/frexp-nolibm: New file.
59711         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59712
59713 2007-11-03  Bruno Haible  <bruno@clisp.org>
59714
59715         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59716         value is C99 compliant.
59717         Needed for OSF/1 5.1.
59718
59719 2007-11-03  Bruno Haible  <bruno@clisp.org>
59720
59721         Fix out-of-memory handling of vasnprintf.
59722         * lib/printf-parse.c: Include <errno.h>.
59723         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59724         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59725         is already set.
59726
59727 2007-11-02  Eric Blake  <ebb9@byu.net>
59728
59729         Fix tests on cygwin.
59730         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59731
59732 2007-11-01  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59735         warning.
59736         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59737         needed for POSIX compatibility.
59738
59739 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59740
59741         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59742         for compatibility with GNU.
59743
59744 2007-11-01  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59747         (putenv): Renamed from rpl_putenv. Change argument type from
59748         'const char *' to 'char *'.
59749         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59750         of defining putenv in config.h, just set REPLACE_PUTENV.
59751         * modules/putenv (Depends-on): Add stdlib.
59752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59753         (Include): Use <stdlib.h>.
59754         * lib/stdlib.in.h (putenv): New declaration.
59755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59756         REPLACE_PUTENV.
59757         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59758         REPLACE_PUTENV.
59759         Needed for MacOS X 10.5.0.
59760         Reported by Peter O'Gorman <peter@pogma.com>.
59761
59762 2007-11-01  Jim Meyering  <meyering@redhat.com>
59763
59764         Treat an empty date string exactly like "0".
59765         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59766         if the remaining date string (to be parsed) is empty, use "0".
59767         Reported by Mischa Molhoek and discussed in this thread:
59768         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59769
59770 2007-10-31  Bruno Haible  <bruno@clisp.org>
59771
59772         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59773         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59774         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59775         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59776         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59777         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59778
59779 2007-10-31  Bruno Haible  <bruno@clisp.org>
59780
59781         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59782         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59783         (AC_TYPE_LONG_LONG_INT): Use it.
59784         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59785         it as well.
59786         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59787         to m4/longlong.m4.
59788         * modules/stdint (Files): Remove m4/ulonglong.m4.
59789         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59790         m4/ulonglong.m4.
59791         * modules/strtoumax (Files): Likewise.
59792
59793 2007-10-30  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/xvasprintf-posix: New file.
59796         Suggested by Eric Blake.
59797
59798 2007-10-30  Bruno Haible  <bruno@clisp.org>
59799
59800         * modules/xprintf-posix-tests: New file.
59801         * tests/test-xprintf-posix.sh: New file.
59802         * tests/test-xprintf-posix.c: New file.
59803         * tests/test-xfprintf-posix.c: New file.
59804
59805         * modules/xprintf-posix: New file.
59806
59807 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59808
59809         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59810         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59811         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59812
59813 2007-10-29  Bruno Haible  <bruno@clisp.org>
59814
59815         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59816         contain the special marker '_cv_'.
59817         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59818         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59819         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59820         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59821         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59822         Reported by Ralf Wildenhues.
59823
59824 2007-10-29  Bruno Haible  <bruno@clisp.org>
59825
59826         * gnulib-tool (func_import): When --lgpl is not specified, set
59827         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59828         GPLv3.
59829         Reported by Simon Josefsson.
59830
59831 2007-10-28  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59834         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59835         HAVE_DECL_ISFINITE.
59836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59837         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59838         HAVE_DECL_ISFINITE.
59839
59840 2007-10-28  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59843         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59844
59845 2007-10-28  Bruno Haible  <bruno@clisp.org>
59846
59847         Fix link errors with Sun C 5.0 on Solaris 10.
59848         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59849         function is declared but not present in the compiler's libm.
59850         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59851         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59852         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59853         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59854         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59855         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59856         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59858         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59859         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59860         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59861         HAVE_DECL_FLOORL.
59862
59863 2007-10-28  Bruno Haible  <bruno@clisp.org>
59864
59865         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59866         gl_FUNC_FLOORL. Cache the result.
59867         (gl_FUNC_FLOORL): Use it.
59868         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59869         gl_FUNC_CEILL. Cache the result.
59870         (gl_FUNC_CEILL): Use it.
59871
59872         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59873         gl_FUNC_FLOOR. Cache the result.
59874         (gl_FUNC_FLOOR): Use it.
59875         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59876         gl_FUNC_CEIL. Cache the result.
59877         (gl_FUNC_CEIL): Use it.
59878
59879         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59880         gl_FUNC_FLOORF. Cache the result.
59881         (gl_FUNC_FLOORF): Use it.
59882         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59883         gl_FUNC_CEILF. Cache the result.
59884         (gl_FUNC_CEILF): Use it.
59885
59886 2007-10-28  Bruno Haible  <bruno@clisp.org>
59887
59888         * gnulib-tool: Allow specifying the LGPL version number through
59889         --lgpl=2 or --lgpl=3.
59890         (func_usage): Document --lgpl with argument.
59891         Handle --lgpl=... arguments.
59892         (func_import): Recognize also gl_LGPL calls with an argument. When
59893         --lgpl=2 is used and the module's license is just LGPL, report an
59894         error. Set sed_transform_lib_file according to the lgpl variable. In
59895         the generated files, use --lgpl or gl_LGPL invocations with argument,
59896         if necessary.
59897         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59898         an LGPv2+ license.
59899         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59900         gl_LGPL macro.
59901
59902 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59903             Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59906         (u16_uctomb_aux): Likewise.
59907         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59908         !HAVE_INLINE.
59909         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59910
59911 2007-10-28  Bruno Haible  <bruno@clisp.org>
59912
59913         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59914         Invoke AM_GETTEXT_OPTION if it exists.
59915         * modules/vasprintf: Likewise.
59916         * modules/verror: Likewise.
59917         * modules/xprintf: Likewise.
59918         * modules/xvasprintf: Likewise.
59919
59920 2007-10-27  Ben Pfaff  <blp@gnu.org>
59921
59922         * lib/math.in.h: Define isfinite macro and prototypes for
59923         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59924         implementations.
59925         * m4/math_h.m4: New substitutions for isfinite module.
59926         * lib/isfinite.c: New file.
59927         * m4/isfinite.m4: New file.
59928         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59929         * modules/isfinite: New file.
59930         * modules/isfinite-tests: New file.
59931         * tests/tests-isfinite.c: New file.
59932         * doc/functions/isfinite.texi: Mention isfinite module.
59933         * MODULES.html.sh: Mention new module.
59934
59935 2007-10-27  Ben Pfaff  <blp@gnu.org>
59936
59937         Ralf Wildenhues reported that Tru64 4.0D declares the round
59938         functions but does not have definitions.
59939         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59940         cannot be found in any library, set the output variable to
59941         "missing" instead of "".
59942         * m4/round.m4: Also use our substitute if we cannot find round in
59943         any library, even if it is declared.
59944         * m4/roundf.m4: Likewise for roundf.
59945         * m4/roundl.m4: Likewise for roundl.
59946         * lib/math.in.h: Undefine roundf, round, roundl before defining
59947         their replacements, to allow for hypothetical systems where these
59948         may be defined as macros but not available in libraries.
59949
59950 2007-10-27  Bruno Haible  <bruno@clisp.org>
59951
59952         * doc/gnulib.texi: Invoke @firstparagraphindent.
59953         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59954         changes in gnulib.
59955         (Source changes): New section.
59956
59957 2007-10-26  Bruno Haible  <bruno@clisp.org>
59958
59959         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59960         borrowed from autoconf.
59961
59962 2007-10-26  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59965         strerror returned the empty string. Needed on HP-UX 11.00.
59966
59967 2007-10-24  Micah Cowan  <micah@cowan.name>
59968
59969         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59970         * build-aux/bootstrap: Remove support for now-unnecessary option,
59971         --cvs-user, and envvars CVS_USER, CVS_RSH.
59972
59973 2007-10-24  Jim Meyering  <meyering@redhat.com>
59974
59975         Avoid diagnostics from sha1sum when there is no cached checksum.
59976         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59977         if the po.s1 file hasn't been created yet.
59978
59979         * build-aux/bootstrap: Sync from coreutils:
59980         2007-10-24  Jim Meyering  <meyering@redhat.com>
59981         Get gnulib from the git repository, not from an obsolete cvs one.
59982         * build-aux/bootstrap: Suggestion from Micah Cowan.
59983         2007-10-04  Jim Meyering  <jim@meyering.net>
59984         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59985         (update_po_files): Work also when there are no .po files in po/.
59986
59987 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59988
59989         * README: Append ".git" to git and cg examples.
59990         Problem reported by Benoit Sigoure.
59991
59992 2007-10-23  Micah Cowan  <micah@cowan.name>
59993
59994         * users.txt: Add wget.
59995
59996 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59997
59998         Fix linking of some unistdio tests on FreeBSD.
59999         * modules/unistdio/u16-vsnprintf-tests
60000         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60001         * modules/unistdio/u16-vsprintf-tests
60002         (test_u16_vsnprintf1_LDADD): Likewise.
60003         * modules/unistdio/u32-vsnprintf-tests
60004         (test_u32_vsnprintf1_LDADD): Likewise.
60005         * modules/unistdio/u32-vsprintf-tests
60006         (test_u32_vsprintf1_LDADD): Likewise.
60007         * modules/unistdio/u8-vsnprintf-tests
60008         (test_u8_vsnprintf1_LDADD): Likewise.
60009         * modules/unistdio/u8-vsprintf-tests
60010         (test_u8_vsprintf1_LDADD): Likewise.
60011         * modules/unistdio/ulc-vsnprintf-tests
60012         (test_ulc_vsnprintf1_LDADD): Likewise.
60013         * modules/unistdio/ulc-vsprintf-tests
60014         (test_ulc_vsprintf1_LDADD): Likewise.
60015
60016         Fix linking of some uniconv tests on FreeBSD.
60017         * modules/uniconv/u16-conv-from-enc-tests
60018         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60019         * modules/uniconv/u16-conv-to-enc-tests
60020         (test_u16_conv_to_enc_LDADD): Likewise.
60021         * modules/uniconv/u16-strconv-from-enc-tests
60022         (test_u16_strconv_from_enc_LDADD): Likewise.
60023         * modules/uniconv/u16-strconv-to-enc-tests
60024         (test_u16_strconv_to_enc_LDADD): Likewise.
60025         * modules/uniconv/u32-conv-from-enc-tests
60026         (test_u32_conv_from_enc_LDADD): Likewise.
60027         * modules/uniconv/u32-conv-to-enc-tests
60028         (test_u32_conv_to_enc_LDADD): Likewise.
60029         * modules/uniconv/u32-strconv-from-enc-tests
60030         (test_u32_strconv_from_enc_LDADD): Likewise.
60031         * modules/uniconv/u32-strconv-to-enc-tests
60032         (test_u32_strconv_to_enc_LDADD): Likewise.
60033         * modules/uniconv/u8-conv-from-enc-tests
60034         (test_u8_conv_from_enc_LDADD): Likewise.
60035         * modules/uniconv/u8-conv-to-enc-tests
60036         (test_u8_conv_to_enc_LDADD): Likewise.
60037         * modules/uniconv/u8-strconv-from-enc-tests
60038         (test_u8_strconv_from_enc_LDADD): Likewise.
60039         * modules/uniconv/u8-strconv-to-enc-tests
60040         (test_u8_strconv_to_enc_LDADD): Likewise.
60041
60042 2007-10-22  Bruno Haible  <bruno@clisp.org>
60043
60044         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60045         size.
60046
60047 2007-10-22  Eric Blake  <ebb9@byu.net>
60048
60049         Tweak x*printf documentation.
60050         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60051         variable name and comments.
60052         Suggested by Bruno Haible.
60053
60054 2007-10-22  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/acl.c (copy_acl): Fix file name in comment.
60057
60058 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60059
60060         Fix Tru64 problem with stdbool.h.
60061         * lib/stdbool.in.h (false, true):
60062         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60063         Don't declare as an enum in this situation; it runs afoul of Tru64.
60064         Problem reported by Steven M. Schweda in
60065         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60066
60067 2007-10-22  Eric Blake  <ebb9@byu.net>
60068
60069         Also wrap vf?printf.
60070         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60071         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60072         (xvprintf, xvfprintf): New functions.
60073
60074 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60075
60076         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60077         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60078
60079         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60080         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60081
60082 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60085         by Bruno Haible.
60086
60087 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60088
60089         * lib/getloadavg.c
60090         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60091         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60092
60093         * tests/test-i-ring.c: Work for C89.
60094
60095 2007-10-22  Bruno Haible  <bruno@clisp.org>
60096
60097         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60098         -1u, in preprocessor expression, so that we don't test for the bug
60099         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60101
60102 2007-10-22  Eric Blake  <ebb9@byu.net>
60103
60104         * tests/test-yesno.sh: Silence stderr during test.
60105
60106 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60107
60108         * modules/crypto/gc-camellia: New file.
60109
60110         * m4/gc-camellia.m4: New file.
60111
60112         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60113
60114         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60115
60116 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60117
60118         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60119         --help to stdout.  Reported by sms@antinode.org (Steven
60120         M. Schweda).
60121
60122 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60123
60124         * users.txt: Fix link to libksba.
60125
60126 2007-10-21  Ben Pfaff  <blp@gnu.org>
60127
60128         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60129         round.c roundf implementation that depends on floorf and ceilf to
60130         be tested unconditionally.
60131
60132 2007-10-21  Ben Pfaff  <blp@gnu.org>
60133
60134         * m4/check-libm-func.m4: Removed.
60135         * m4/check-math-lib.m4: New file.
60136         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60137         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60138         definition and lack of AC_LIBOBJ([roundf]).
60139         * m4/roundl.m4: Ditto, and similarly for roundl.
60140         * modules/round: Reference new m4 file.
60141         * modules/roundf: Ditto.
60142         * modules/roundl: Ditto.
60143         * tests/test-round2.c (main): Use ROUND instead of round.
60144         Bug report from Bruno Haible.
60145
60146 2007-10-21  Bruno Haible  <bruno@clisp.org>
60147
60148         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60149         context.
60150
60151 2007-10-21  Bruno Haible  <bruno@clisp.org>
60152
60153         * tests/test-wcwidth.c (main): Allow negative result for some control
60154         characters.
60155
60156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60157         Needed on OSF/1 5.1.
60158
60159 2007-10-21  Bruno Haible  <bruno@clisp.org>
60160
60161         * tests/test-floorf1.c: Include isnanf.h.
60162         (main): Use isnanf() instead of isnan().
60163         * tests/test-ceilf1.c: Include isnanf.h.
60164         (main): Use isnanf() instead of isnan().
60165         * tests/test-truncf1.c: Include isnanf.h.
60166         (main): Use isnanf() instead of isnan().
60167         * tests/test-roundf1.c: Include isnanf.h.
60168         (main): Use isnanf() instead of isnan().
60169
60170 2007-10-21  Eric Blake  <ebb9@byu.net>
60171
60172         * users.txt: Update URL for m4.
60173
60174 2007-10-21  Bruno Haible  <bruno@clisp.org>
60175
60176         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60177
60178 2007-10-21  Bruno Haible  <bruno@clisp.org>
60179
60180         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60181         Git's management files if the CVS files are not present.
60182
60183 2007-10-20  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60186         gcc-3.4.x.
60187
60188 2007-10-20  Ben Pfaff  <blp@gnu.org>
60189
60190         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60191         implementations.
60192         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60193         * lib/round.c: New file.
60194         * lib/roundf.c: New file.
60195         * lib/roundl.c: New file.
60196         * m4/round.m4: New file.
60197         * m4/roundf.m4: New file.
60198         * m4/roundl.m4: New file.
60199         * m4/check-libm-func-m4: New file.
60200         * modules/math: Replace round, roundf, roundl related @VARS@ in
60201         math.in.h.
60202         * modules/round: New file.
60203         * modules/round-tests: New file.
60204         * modules/roundf: New file.
60205         * modules/roundf-tests: New file.
60206         * modules/roundl: New file.
60207         * modules/roundl-tests: New file.
60208         * tests/test-round1.c: New file.
60209         * tests/test-round2.c: New file.
60210         * tests/test-roundf1.c: New file.
60211         * tests/test-roundf2.c: New file.
60212         * tests/test-roundl.c: New file.
60213         * doc/functions/round.texi: Mention round module.
60214         * doc/functions/roundf.texi: Mention roundf module.
60215         * doc/functions/roundl.texi: Mention roundl module.
60216         * MODULES.html.sh: Mention new modules.
60217         Thanks to Bruno Haible for suggestions.
60218
60219 2007-10-20  Jim Meyering  <meyering@redhat.com>
60220
60221         * lib/xprintf.c: Include <config.h> unconditionally.
60222
60223         Change xprintf's license to GPL.
60224         * modules/xprintf (License): s/LGPL/GPL/, since this module
60225         depends on modules (exit and exitfail) which are GPL.
60226         Suggestion from Bruno Haible.
60227
60228         xprintf fixes.
60229         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60230         Use a clearer diagnostic.
60231         Patch from Bruno Haible.
60232
60233 2007-10-20  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60236         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60238
60239 2007-10-20  Bruno Haible  <bruno@clisp.org>
60240
60241         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60242         precision in the comparison result > x - 1 or similar.
60243         * tests/test-ceilf2.c (correct_result_p): Likewise.
60244         * tests/test-truncf2.c (correct_result_p): Likewise.
60245         * tests/test-trunc2.c (correct_result_p): Likewise.
60246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60247
60248 2007-10-20  Bruno Haible  <bruno@clisp.org>
60249
60250         * modules/ceil: New file.
60251         * m4/ceil.m4: New file.
60252         * doc/functions/ceil.texi: Mention the 'ceil' module.
60253
60254 2007-10-20  Bruno Haible  <bruno@clisp.org>
60255
60256         * modules/floor: New file.
60257         * m4/floor.m4: New file.
60258         * doc/functions/floor.texi: Mention the 'floor' module.
60259
60260 2007-10-20  Bruno Haible  <bruno@clisp.org>
60261
60262         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60263         of %a.
60264         * modules/floorf-tests (Depends-on): Likewise.
60265         * modules/truncf-tests (Depends-on): Likewise.
60266         * modules/trunc-tests (Depends-on): Likewise.
60267         Reported by Ben Pfaff.
60268
60269 2007-10-19  Jim Meyering  <meyering@redhat.com>
60270
60271         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60272         Don't bother testing specific errno values.  Just test ferror.
60273
60274         New module: xprintf
60275         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60276
60277 2007-10-19  Bruno Haible  <bruno@clisp.org>
60278
60279         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60280         syntax.
60281         * modules/javaexec (Makefile.am): Likewise.
60282         * modules/relocatable-prog (Makefile.am): Likewise.
60283         Suggested by Jim Meyering.
60284
60285 2007-10-18  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60288         Reported by Jim Meyering.
60289
60290 2007-10-18  Eric Blake  <ebb9@byu.net>
60291
60292         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60293
60294 2007-10-18  Bruno Haible  <bruno@clisp.org>
60295
60296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60297         the format string into writable memory. Needed in Fortify conditions.
60298
60299 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60300             Bruno Haible  <bruno@clisp.org>
60301
60302         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60303         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60304         * modules/trim (Depends-on): Add mbchar.
60305         (configure.ac): Add gl_FUNC_MBRTOWC.
60306         (Makefile.am): Augment lib_SOURCES.
60307
60308 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         Modify glob.c to use fstatat and dirfd, to simplify it.
60311         Suggested by Eric Blake.
60312         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60313         Don't include <stdbool.h>; not used.
60314         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60315         (link_exists_p): Simplify implementation, since we can now assume
60316         dirfd and fstatat.
60317         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60318
60319 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60320
60321         * gnulib-tool (func_get_dependencies): Fix sed script to
60322         match only tests.
60323
60324 2007-10-17  Bruno Haible  <bruno@clisp.org>
60325
60326         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60327         allow locale names without encoding suffix.
60328         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60329         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60330
60331 2007-10-16  Bruno Haible  <bruno@clisp.org>
60332
60333         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60334         * lib/getgroups.c (getgroups): Likewise.
60335         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60336
60337 2007-10-16  Bruno Haible  <bruno@clisp.org>
60338
60339         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60340         * modules/malloc-posix (License): Likewise.
60341         * modules/realloc-posix (License): Likewise.
60342         * modules/calloc-posix (License): Likewise.
60343         * modules/intprops (License): Change from GPL to LGPL, with
60344         Paul Eggert's approval.
60345
60346 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60347
60348         Merge glibc changes into lib/glob.c.
60349
60350         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60351         2007-10-15 04:59:03 UTC.  Here are the changes:
60352
60353         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60354
60355         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60356
60357         * lib/glob.c: Add some branch prediction throughout.
60358
60359         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60360
60361         [BZ #5103]
60362         * lib/glob.c (glob): Recognize patterns starting \/.
60363
60364         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60365
60366         [BZ #3996]
60367         * lib/glob.c (attribute_hidden): Define if not defined.
60368         (glob): Unescape dirname, filename or username when needed and not
60369         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60370         is NULL.  Handle unescaped [ in pattern without closing ].
60371         Don't pass GLOB_CHECK down to recursive glob for directories.
60372         (__glob_pattern_type): New function.
60373         (__glob_pattern_p): Implement using __glob_pattern_type.
60374         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60375         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60376         Remove unreachable code.
60377
60378         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60379
60380         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60381         explain why there are no leaks.
60382
60383         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60384
60385         [BZ #3253]
60386         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60387         time, rather allocate increasingly bigger arrays of pointers, if
60388         possible with alloca, if too large with malloc.
60389
60390 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60393         Problem reported by H.Merijn Brand in
60394         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60395         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60396         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60397
60398 2007-10-15  Bruno Haible  <bruno@clisp.org>
60399
60400         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60401         with explicit rpl_ prefix.
60402         * lib/fopen.c (fopen): Likewise.
60403         * lib/freopen.c (freopen): Likewise.
60404         * lib/iconv.c (iconv): Likewise.
60405         * lib/iconv_close.c (iconv_close): Likewise.
60406
60407 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60408
60409         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60410
60411 2007-10-15  Bruno Haible  <bruno@clisp.org>
60412
60413         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60414         <stddef.h> instead of <stdlib.h> since we only need NULL.
60415         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60416
60417 2007-10-15  Bruno Haible  <bruno@clisp.org>
60418
60419         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60420         Replace paragraph talking about LIBOBJS.
60421         Reported by Colin Watson <cjwatson@debian.org>.
60422
60423 2007-10-15  Bruno Haible  <bruno@clisp.org>
60424
60425         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60426         <stdlib.h> before using NULL.
60427
60428 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60429
60430         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60431         Reported by Albert Chin <china@thewrittenword.com>.
60432
60433 2007-10-14  Bruno Haible  <bruno@clisp.org>
60434
60435         * modules/iconv_open-utf-tests: New file.
60436         * tests/test-iconv-utf.c: New file.
60437
60438         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60439         * modules/iconv_open-utf: New file.
60440         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60441         (iconv, iconv_close): New declarations.
60442         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60443         be defined.
60444         (iconv_open): Add special handling of conversion between UTF-8 and
60445         UTF-{16,32}{BE,LE}.
60446         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60447         * lib/iconv_close.c: New file.
60448         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60449         gl_FUNC_ICONV_OPEN.
60450         (gl_FUNC_ICONV_OPEN): Use it.
60451         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60452         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60453         and REPLACE_ICONV_UTF.
60454         * modules/iconv_open (Depends-on): Add c-strcase.
60455         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60456         ICONV_CONST.
60457         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60458
60459 2007-10-13  Albert Chin  <china@thewrittenword.com>
60460             Bruno Haible  <bruno@clisp.org>
60461
60462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60463         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60464
60465 2007-10-13  Bruno Haible  <bruno@clisp.org>
60466
60467         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60468         defined, use the ISO C99 inline semantics.
60469         * lib/argp.h (ARGP_EI): Likewise.
60470
60471 2007-10-13  Bruno Haible  <bruno@clisp.org>
60472
60473         Handle 'inline' change in gcc 4.3.0.
60474         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60475         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60476         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60477         argp_fmtstream_point): Disable 'extern' declaration if the function
60478         definition is going to be provided inline.
60479         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60480         semantics, not the ISO C99 inline semantics.
60481         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60482         'extern' declaration if the function definition is going to be provided
60483         inline.
60484         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60485         the GNU C inline semantics, not the ISO C99 inline semantics. With
60486         GCC 4.2, avoid a warning.
60487
60488 2007-10-13  Bruno Haible  <bruno@clisp.org>
60489
60490         * lib/freading.h (freading): Enable the use of __freading for
60491         glibc >= 2.7.
60492         * lib/freading.c (freading): Likewise.
60493
60494 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60495
60496         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60497         "warning: C99 inline functions are not supported; using GNU89".
60498
60499 2007-10-12  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60502         of 2.
60503         * tests/test-ceilf2.c: New file.
60504         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60505
60506         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60507         * modules/ceilf-tests: Update.
60508
60509 2007-10-12  Bruno Haible  <bruno@clisp.org>
60510
60511         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60512         of 2.
60513         * tests/test-floorf2.c: New file.
60514         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60515
60516         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60517         * modules/floorf-tests: Update.
60518
60519 2007-10-12  Bruno Haible  <bruno@clisp.org>
60520
60521         * tests/test-trunc2.c: New file.
60522         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60523
60524         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60525         * modules/trunc-tests: Update.
60526
60527 2007-10-12  Bruno Haible  <bruno@clisp.org>
60528
60529         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60530         of 2.
60531         * tests/test-truncf2.c: New file.
60532         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60533
60534         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60535         * modules/truncf-tests: Update.
60536
60537 2007-10-11  Eric Blake  <ebb9@byu.net>
60538
60539         Don't claim strerror is broken on Interix.
60540         * doc/functions/strerror.texi (strerror): Known broken systems are
60541         now Solaris 8, and not Interix.
60542         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60543         Interix on cross-compile.
60544         Reported by Martin Koeppe in
60545         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60546
60547 2007-10-11  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/i-ring-tests: New file.
60550         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60551         instead of assert.
60552
60553 2007-10-11  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/filenamecat-tests: New file.
60556         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60557         * lib/filenamecat.c: Remove test code.
60558
60559 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60560
60561         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60562
60563         * lib/strerror.c: Include <string.h> always, to test interface,
60564         and to remove the need for the dummy.
60565         Include intprops.h to compute width instead of doing it ourselves
60566         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60567         (strerror): Define it to return NULL if there's no system strerror.
60568         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60569         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60570         ancient pre-strerror Unix systems well any more.  Saying "unknown
60571         system error" is enough.
60572         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60573         simpler strerror.c implementation.
60574         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60575         Simplify the tests to reflect the simpler strerror implementation.
60576         * modules/strerror (Depends-on): Add intprops.
60577
60578 2007-10-09  Eric Blake  <ebb9@byu.net>
60579
60580         Silence test-fpending.
60581         * modules/fpending-tests (Files): Add wrapper script.
60582         * tests/test-fpending.sh: New file.
60583
60584 2007-10-09  Bruno Haible  <bruno@clisp.org>
60585
60586         * MODULES.html.sh (func_module): Don't create a hyperlink for
60587         function names like 'printf_frexp'.
60588         (Misc): Add crc, memxor.
60589         (Characteristics of floating types): New section.
60590         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60591         isnanf-nolibm, signbit, trunc, truncf, truncl.
60592         (Enhancements for ISO C 99 functions): New subsection Input/output.
60593         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60594         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60595         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60596         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60597         (Enhancements for POSIX:2001 functions): Add chdir-long.
60598         (File system functions): Add areadlink, chdir-safer, read-file.
60599         Remove cycle-check.
60600         (File system as inode set): New section.
60601         (Date and time): Add gethrxtime.
60602         (Multithreading): Add openmp.
60603         (Internationalization functions): Add localename.
60604         (Unicode string functions): Add unistr/u*-mbsnlen.
60605         (Support for maintaining and releasing projects): Add git-version-gen.
60606         (Lone files): Remove directories.
60607
60608 2007-10-08  Ben Pfaff  <blp@gnu.org>
60609
60610         * lib/xmalloca.h: Fix typo in comment.
60611
60612 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60613
60614         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60615         when avoiding problems with integer overflow.  Use a portable test
60616         instead.
60617
60618 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60619
60620         * modules/dummy (License): Change to LGPLv2+.
60621         * modules/float (License): Likewise
60622         * modules/realloc (License): Likewise
60623         * modules/stdlib (License): Likewise
60624
60625 2007-10-07  Bruno Haible  <bruno@clisp.org>
60626
60627         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60628         * floor.c (TWO_MANT_DIG): Likewise.
60629         * ceil.c (TWO_MANT_DIG): Likewise.
60630         Reported by Ben Pfaff.
60631
60632 2007-10-07  Bruno Haible  <bruno@clisp.org>
60633
60634         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60635         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60636         * lib/frexp.c (FUNC): Likewise.
60637         * lib/printf-frexp.h (printf_frexp): Likewise.
60638         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60639         * lib/printf-frexp.c (FUNC): Likewise.
60640         Suggested by Jim Meyering.
60641
60642 2007-10-07  Jim Meyering  <meyering@redhat.com>
60643
60644         Make xnanosleep's integer overflow test more robust.
60645         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60646         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60647
60648 2007-10-07  Bruno Haible  <bruno@clisp.org>
60649
60650         * NEWS: Mention the license change.
60651
60652         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60653         abbreviations in the modules files.
60654
60655         Change copyright notice from GPLv2+ to GPLv3+.
60656         * README: Change copyright notice.
60657         * MODULES.html.sh: Likewise.
60658         * build-aux/bootstrap.conf: Likewise.
60659         * build-aux/config.libpath: Likewise.
60660         * build-aux/csharpcomp.sh.in: Likewise.
60661         * build-aux/csharpexec.sh.in: Likewise.
60662         * build-aux/install-reloc: Likewise.
60663         * build-aux/javacomp.sh.in: Likewise.
60664         * build-aux/javaexec.sh.in: Likewise.
60665         * build-aux/ldd.sh.in: Likewise.
60666         * build-aux/reloc-ldflags: Likewise.
60667         * build-aux/relocatable.sh.in: Likewise.
60668         * build-aux/x-to-1.in: Likewise.
60669         * check-module: Likewise.
60670         * config/srclistvars.sh: Likewise.
60671         * gnulib-tool: Likewise.
60672         * lib/acl-internal.h: Likewise.
60673         * lib/acl.c: Likewise.
60674         * lib/acl.h: Likewise.
60675         * lib/acl_entries.c: Likewise.
60676         * lib/areadlink-with-size.c: Likewise.
60677         * lib/areadlink.c: Likewise.
60678         * lib/areadlink.h: Likewise.
60679         * lib/argmatch.c: Likewise.
60680         * lib/argmatch.h: Likewise.
60681         * lib/argp-ba.c: Likewise.
60682         * lib/argp-eexst.c: Likewise.
60683         * lib/argp-fmtstream.c: Likewise.
60684         * lib/argp-fmtstream.h: Likewise.
60685         * lib/argp-fs-xinl.c: Likewise.
60686         * lib/argp-help.c: Likewise.
60687         * lib/argp-namefrob.h: Likewise.
60688         * lib/argp-parse.c: Likewise.
60689         * lib/argp-pin.c: Likewise.
60690         * lib/argp-pv.c: Likewise.
60691         * lib/argp-pvh.c: Likewise.
60692         * lib/argp-xinl.c: Likewise.
60693         * lib/argp.h: Likewise.
60694         * lib/at-func.c: Likewise.
60695         * lib/atanl.c: Likewise.
60696         * lib/backupfile.c: Likewise.
60697         * lib/backupfile.h: Likewise.
60698         * lib/basename.c: Likewise.
60699         * lib/binary-io.h: Likewise.
60700         * lib/byteswap.in.h: Likewise.
60701         * lib/c-stack.c: Likewise.
60702         * lib/c-stack.h: Likewise.
60703         * lib/c-strcasestr.c: Likewise.
60704         * lib/c-strcasestr.h: Likewise.
60705         * lib/c-strstr.c: Likewise.
60706         * lib/c-strstr.h: Likewise.
60707         * lib/c-strtod.c: Likewise.
60708         * lib/calloc.c: Likewise.
60709         * lib/canon-host.c: Likewise.
60710         * lib/canon-host.h: Likewise.
60711         * lib/canonicalize-lgpl.c: Likewise.
60712         * lib/canonicalize.c: Likewise.
60713         * lib/canonicalize.h: Likewise.
60714         * lib/ceil.c: Likewise.
60715         * lib/ceilf.c: Likewise.
60716         * lib/ceill.c: Likewise.
60717         * lib/chdir-long.c: Likewise.
60718         * lib/chdir-long.h: Likewise.
60719         * lib/chdir-safer.c: Likewise.
60720         * lib/chdir-safer.h: Likewise.
60721         * lib/chown.c: Likewise.
60722         * lib/classpath.c: Likewise.
60723         * lib/classpath.h: Likewise.
60724         * lib/clean-temp.c: Likewise.
60725         * lib/clean-temp.h: Likewise.
60726         * lib/cloexec.c: Likewise.
60727         * lib/close-stream.c: Likewise.
60728         * lib/closein.c: Likewise.
60729         * lib/closein.h: Likewise.
60730         * lib/closeout.c: Likewise.
60731         * lib/closeout.h: Likewise.
60732         * lib/concat-filename.c: Likewise.
60733         * lib/copy-file.c: Likewise.
60734         * lib/copy-file.h: Likewise.
60735         * lib/count-one-bits.h: Likewise.
60736         * lib/crc.c: Likewise.
60737         * lib/crc.h: Likewise.
60738         * lib/creat-safer.c: Likewise.
60739         * lib/csharpcomp.c: Likewise.
60740         * lib/csharpcomp.h: Likewise.
60741         * lib/csharpexec.c: Likewise.
60742         * lib/csharpexec.h: Likewise.
60743         * lib/cycle-check.c: Likewise.
60744         * lib/cycle-check.h: Likewise.
60745         * lib/diacrit.c: Likewise.
60746         * lib/diacrit.h: Likewise.
60747         * lib/diffseq.h: Likewise.
60748         * lib/dirchownmod.c: Likewise.
60749         * lib/dirent.in.h: Likewise.
60750         * lib/dirfd.c: Likewise.
60751         * lib/dirfd.h: Likewise.
60752         * lib/dirname.c: Likewise.
60753         * lib/dirname.h: Likewise.
60754         * lib/dummy.c: Likewise.
60755         * lib/dup-safer.c: Likewise.
60756         * lib/dup2.c: Likewise.
60757         * lib/eealloc.h: Likewise.
60758         * lib/error.c: Likewise.
60759         * lib/error.h: Likewise.
60760         * lib/euidaccess.c: Likewise.
60761         * lib/exclude.c: Likewise.
60762         * lib/exclude.h: Likewise.
60763         * lib/execute.c: Likewise.
60764         * lib/execute.h: Likewise.
60765         * lib/exitfail.c: Likewise.
60766         * lib/exitfail.h: Likewise.
60767         * lib/expl.c: Likewise.
60768         * lib/fatal-signal.c: Likewise.
60769         * lib/fatal-signal.h: Likewise.
60770         * lib/fbufmode.c: Likewise.
60771         * lib/fbufmode.h: Likewise.
60772         * lib/fchdir.c: Likewise.
60773         * lib/fchmodat.c: Likewise.
60774         * lib/fchownat.c: Likewise.
60775         * lib/fcntl--.h: Likewise.
60776         * lib/fcntl-safer.h: Likewise.
60777         * lib/fcntl.in.h: Likewise.
60778         * lib/fd-safer.c: Likewise.
60779         * lib/fflush.c: Likewise.
60780         * lib/file-has-acl.c: Likewise.
60781         * lib/file-set.c: Likewise.
60782         * lib/file-type.c: Likewise.
60783         * lib/file-type.h: Likewise.
60784         * lib/fileblocks.c: Likewise.
60785         * lib/filemode.c: Likewise.
60786         * lib/filemode.h: Likewise.
60787         * lib/filename.h: Likewise.
60788         * lib/filenamecat.c: Likewise.
60789         * lib/filenamecat.h: Likewise.
60790         * lib/findprog.c: Likewise.
60791         * lib/findprog.h: Likewise.
60792         * lib/float.in.h: Likewise.
60793         * lib/floor.c: Likewise.
60794         * lib/floorf.c: Likewise.
60795         * lib/floorl.c: Likewise.
60796         * lib/fopen-safer.c: Likewise.
60797         * lib/fopen.c: Likewise.
60798         * lib/fpending.c: Likewise.
60799         * lib/fpending.h: Likewise.
60800         * lib/fprintf.c: Likewise.
60801         * lib/fprintftime.h: Likewise.
60802         * lib/fpucw.h: Likewise.
60803         * lib/fpurge.c: Likewise.
60804         * lib/fpurge.h: Likewise.
60805         * lib/freadable.c: Likewise.
60806         * lib/freadable.h: Likewise.
60807         * lib/freadahead.c: Likewise.
60808         * lib/freadahead.h: Likewise.
60809         * lib/freading.c: Likewise.
60810         * lib/freading.h: Likewise.
60811         * lib/free.c: Likewise.
60812         * lib/freopen.c: Likewise.
60813         * lib/frexp.c: Likewise.
60814         * lib/frexpl.c: Likewise.
60815         * lib/fseek.c: Likewise.
60816         * lib/fseterr.c: Likewise.
60817         * lib/fseterr.h: Likewise.
60818         * lib/fstatat.c: Likewise.
60819         * lib/fstrcmp.c: Likewise.
60820         * lib/fstrcmp.h: Likewise.
60821         * lib/fsusage.c: Likewise.
60822         * lib/fsusage.h: Likewise.
60823         * lib/ftell.c: Likewise.
60824         * lib/ftello.c: Likewise.
60825         * lib/fts-cycle.c: Likewise.
60826         * lib/fts.c: Likewise.
60827         * lib/fts_.h: Likewise.
60828         * lib/full-read.c: Likewise.
60829         * lib/full-read.h: Likewise.
60830         * lib/full-write.c: Likewise.
60831         * lib/full-write.h: Likewise.
60832         * lib/fwritable.c: Likewise.
60833         * lib/fwritable.h: Likewise.
60834         * lib/fwriteerror.c: Likewise.
60835         * lib/fwriteerror.h: Likewise.
60836         * lib/fwriting.c: Likewise.
60837         * lib/fwriting.h: Likewise.
60838         * lib/gcd.c: Likewise.
60839         * lib/gcd.h: Likewise.
60840         * lib/getcwd.c: Likewise.
60841         * lib/getdate.h: Likewise.
60842         * lib/getdate.y: Likewise.
60843         * lib/getdomainname.c: Likewise.
60844         * lib/getdomainname.h: Likewise.
60845         * lib/getgroups.c: Likewise.
60846         * lib/gethostname.c: Likewise.
60847         * lib/gethrxtime.c: Likewise.
60848         * lib/gethrxtime.h: Likewise.
60849         * lib/getloadavg.c: Likewise.
60850         * lib/getndelim2.c: Likewise.
60851         * lib/getndelim2.h: Likewise.
60852         * lib/getnline.c: Likewise.
60853         * lib/getnline.h: Likewise.
60854         * lib/getopt.c: Likewise.
60855         * lib/getopt.in.h: Likewise.
60856         * lib/getopt1.c: Likewise.
60857         * lib/getopt_int.h: Likewise.
60858         * lib/getpagesize.h: Likewise.
60859         * lib/getsubopt.c: Likewise.
60860         * lib/gettime.c: Likewise.
60861         * lib/getugroups.c: Likewise.
60862         * lib/getugroups.h: Likewise.
60863         * lib/getusershell.c: Likewise.
60864         * lib/gl_anyavltree_list1.h: Likewise.
60865         * lib/gl_anyavltree_list2.h: Likewise.
60866         * lib/gl_anyhash_list1.h: Likewise.
60867         * lib/gl_anyhash_list2.h: Likewise.
60868         * lib/gl_anylinked_list1.h: Likewise.
60869         * lib/gl_anylinked_list2.h: Likewise.
60870         * lib/gl_anyrbtree_list1.h: Likewise.
60871         * lib/gl_anyrbtree_list2.h: Likewise.
60872         * lib/gl_anytree_list1.h: Likewise.
60873         * lib/gl_anytree_list2.h: Likewise.
60874         * lib/gl_anytree_oset.h: Likewise.
60875         * lib/gl_anytreehash_list1.h: Likewise.
60876         * lib/gl_anytreehash_list2.h: Likewise.
60877         * lib/gl_array_list.c: Likewise.
60878         * lib/gl_array_list.h: Likewise.
60879         * lib/gl_array_oset.c: Likewise.
60880         * lib/gl_array_oset.h: Likewise.
60881         * lib/gl_avltree_list.c: Likewise.
60882         * lib/gl_avltree_list.h: Likewise.
60883         * lib/gl_avltree_oset.c: Likewise.
60884         * lib/gl_avltree_oset.h: Likewise.
60885         * lib/gl_avltreehash_list.c: Likewise.
60886         * lib/gl_avltreehash_list.h: Likewise.
60887         * lib/gl_carray_list.c: Likewise.
60888         * lib/gl_carray_list.h: Likewise.
60889         * lib/gl_linked_list.c: Likewise.
60890         * lib/gl_linked_list.h: Likewise.
60891         * lib/gl_linkedhash_list.c: Likewise.
60892         * lib/gl_linkedhash_list.h: Likewise.
60893         * lib/gl_list.c: Likewise.
60894         * lib/gl_list.h: Likewise.
60895         * lib/gl_oset.c: Likewise.
60896         * lib/gl_oset.h: Likewise.
60897         * lib/gl_rbtree_list.c: Likewise.
60898         * lib/gl_rbtree_list.h: Likewise.
60899         * lib/gl_rbtree_oset.c: Likewise.
60900         * lib/gl_rbtree_oset.h: Likewise.
60901         * lib/gl_rbtreehash_list.c: Likewise.
60902         * lib/gl_rbtreehash_list.h: Likewise.
60903         * lib/gl_sublist.c: Likewise.
60904         * lib/gl_sublist.h: Likewise.
60905         * lib/group-member.c: Likewise.
60906         * lib/group-member.h: Likewise.
60907         * lib/hard-locale.c: Likewise.
60908         * lib/hard-locale.h: Likewise.
60909         * lib/hash-pjw.c: Likewise.
60910         * lib/hash-pjw.h: Likewise.
60911         * lib/hash-triple.c: Likewise.
60912         * lib/hash.c: Likewise.
60913         * lib/hash.h: Likewise.
60914         * lib/human.c: Likewise.
60915         * lib/human.h: Likewise.
60916         * lib/i-ring.c: Likewise.
60917         * lib/i-ring.h: Likewise.
60918         * lib/idcache.c: Likewise.
60919         * lib/imaxabs.c: Likewise.
60920         * lib/imaxdiv.c: Likewise.
60921         * lib/inet_pton.c: Likewise.
60922         * lib/inet_pton.h: Likewise.
60923         * lib/intprops.h: Likewise.
60924         * lib/inttostr.c: Likewise.
60925         * lib/inttostr.h: Likewise.
60926         * lib/inttypes.in.h: Likewise.
60927         * lib/isapipe.c: Likewise.
60928         * lib/isdir.c: Likewise.
60929         * lib/isnan.c: Likewise.
60930         * lib/isnan.h: Likewise.
60931         * lib/isnanf.c: Likewise.
60932         * lib/isnanf.h: Likewise.
60933         * lib/isnanl-nolibm.h: Likewise.
60934         * lib/isnanl.c: Likewise.
60935         * lib/isnanl.h: Likewise.
60936         * lib/javacomp.c: Likewise.
60937         * lib/javacomp.h: Likewise.
60938         * lib/javaexec.c: Likewise.
60939         * lib/javaexec.h: Likewise.
60940         * lib/javaversion.c: Likewise.
60941         * lib/javaversion.h: Likewise.
60942         * lib/javaversion.java: Likewise.
60943         * lib/lbrkprop.h: Likewise.
60944         * lib/lchmod.h: Likewise.
60945         * lib/lchown.c: Likewise.
60946         * lib/ldexpl.c: Likewise.
60947         * lib/linebreak.c: Likewise.
60948         * lib/linebreak.h: Likewise.
60949         * lib/linebuffer.c: Likewise.
60950         * lib/linebuffer.h: Likewise.
60951         * lib/locale.in.h: Likewise.
60952         * lib/logl.c: Likewise.
60953         * lib/long-options.c: Likewise.
60954         * lib/long-options.h: Likewise.
60955         * lib/lstat.c: Likewise.
60956         * lib/lstat.h: Likewise.
60957         * lib/math.in.h: Likewise.
60958         * lib/mbchar.c: Likewise.
60959         * lib/mbchar.h: Likewise.
60960         * lib/mbfile.h: Likewise.
60961         * lib/mbiter.h: Likewise.
60962         * lib/mbscasecmp.c: Likewise.
60963         * lib/mbscasestr.c: Likewise.
60964         * lib/mbschr.c: Likewise.
60965         * lib/mbscspn.c: Likewise.
60966         * lib/mbslen.c: Likewise.
60967         * lib/mbsncasecmp.c: Likewise.
60968         * lib/mbsnlen.c: Likewise.
60969         * lib/mbspbrk.c: Likewise.
60970         * lib/mbspcasecmp.c: Likewise.
60971         * lib/mbsrchr.c: Likewise.
60972         * lib/mbssep.c: Likewise.
60973         * lib/mbsspn.c: Likewise.
60974         * lib/mbsstr.c: Likewise.
60975         * lib/mbstok_r.c: Likewise.
60976         * lib/mbswidth.c: Likewise.
60977         * lib/mbswidth.h: Likewise.
60978         * lib/mbuiter.h: Likewise.
60979         * lib/memcasecmp.c: Likewise.
60980         * lib/memcasecmp.h: Likewise.
60981         * lib/memchr.c: Likewise.
60982         * lib/memcmp.c: Likewise.
60983         * lib/memcoll.c: Likewise.
60984         * lib/memcoll.h: Likewise.
60985         * lib/memcpy.c: Likewise.
60986         * lib/memrchr.c: Likewise.
60987         * lib/mkancesdirs.c: Likewise.
60988         * lib/mkdir-p.c: Likewise.
60989         * lib/mkdir-p.h: Likewise.
60990         * lib/mkdir.c: Likewise.
60991         * lib/mkdirat.c: Likewise.
60992         * lib/mkdtemp.c: Likewise.
60993         * lib/mkstemp-safer.c: Likewise.
60994         * lib/mkstemp.c: Likewise.
60995         * lib/modechange.c: Likewise.
60996         * lib/modechange.h: Likewise.
60997         * lib/mountlist.c: Likewise.
60998         * lib/mountlist.h: Likewise.
60999         * lib/mpsort.c: Likewise.
61000         * lib/nanosleep.c: Likewise.
61001         * lib/obstack.c: Likewise.
61002         * lib/obstack.h: Likewise.
61003         * lib/open-safer.c: Likewise.
61004         * lib/open.c: Likewise.
61005         * lib/openat-die.c: Likewise.
61006         * lib/openat-priv.h: Likewise.
61007         * lib/openat-proc.c: Likewise.
61008         * lib/openat.c: Likewise.
61009         * lib/openat.h: Likewise.
61010         * lib/pagealign_alloc.c: Likewise.
61011         * lib/pagealign_alloc.h: Likewise.
61012         * lib/physmem.c: Likewise.
61013         * lib/physmem.h: Likewise.
61014         * lib/pipe-safer.c: Likewise.
61015         * lib/pipe.c: Likewise.
61016         * lib/pipe.h: Likewise.
61017         * lib/posixtm.c: Likewise.
61018         * lib/posixtm.h: Likewise.
61019         * lib/posixver.c: Likewise.
61020         * lib/printf-frexp.c: Likewise.
61021         * lib/printf-frexp.h: Likewise.
61022         * lib/printf-frexpl.c: Likewise.
61023         * lib/printf-frexpl.h: Likewise.
61024         * lib/printf.c: Likewise.
61025         * lib/progname.c: Likewise.
61026         * lib/progname.h: Likewise.
61027         * lib/progreloc.c: Likewise.
61028         * lib/putenv.c: Likewise.
61029         * lib/quote.c: Likewise.
61030         * lib/quote.h: Likewise.
61031         * lib/quotearg.c: Likewise.
61032         * lib/quotearg.h: Likewise.
61033         * lib/raise.c: Likewise.
61034         * lib/readline.c: Likewise.
61035         * lib/readline.h: Likewise.
61036         * lib/readlink.c: Likewise.
61037         * lib/readtokens.c: Likewise.
61038         * lib/readtokens.h: Likewise.
61039         * lib/readtokens0.c: Likewise.
61040         * lib/readtokens0.h: Likewise.
61041         * lib/readutmp.c: Likewise.
61042         * lib/readutmp.h: Likewise.
61043         * lib/realloc.c: Likewise.
61044         * lib/relocwrapper.c: Likewise.
61045         * lib/rename-dest-slash.c: Likewise.
61046         * lib/rename.c: Likewise.
61047         * lib/rmdir.c: Likewise.
61048         * lib/rpmatch.c: Likewise.
61049         * lib/safe-read.c: Likewise.
61050         * lib/safe-read.h: Likewise.
61051         * lib/safe-write.c: Likewise.
61052         * lib/safe-write.h: Likewise.
61053         * lib/same-inode.h: Likewise.
61054         * lib/same.c: Likewise.
61055         * lib/same.h: Likewise.
61056         * lib/save-cwd.c: Likewise.
61057         * lib/save-cwd.h: Likewise.
61058         * lib/savedir.c: Likewise.
61059         * lib/savedir.h: Likewise.
61060         * lib/savewd.c: Likewise.
61061         * lib/savewd.h: Likewise.
61062         * lib/search.in.h: Likewise.
61063         * lib/setenv.c: Likewise.
61064         * lib/setenv.h: Likewise.
61065         * lib/settime.c: Likewise.
61066         * lib/sh-quote.c: Likewise.
61067         * lib/sh-quote.h: Likewise.
61068         * lib/sig2str.c: Likewise.
61069         * lib/sig2str.h: Likewise.
61070         * lib/signal.in.h: Likewise.
61071         * lib/signbitd.c: Likewise.
61072         * lib/signbitf.c: Likewise.
61073         * lib/signbitl.c: Likewise.
61074         * lib/sigprocmask.c: Likewise.
61075         * lib/sincosl.c: Likewise.
61076         * lib/sleep.c: Likewise.
61077         * lib/sprintf.c: Likewise.
61078         * lib/sqrtl.c: Likewise.
61079         * lib/stat-time.h: Likewise.
61080         * lib/stdio--.h: Likewise.
61081         * lib/stdio-safer.h: Likewise.
61082         * lib/stdlib--.h: Likewise.
61083         * lib/stdlib-safer.h: Likewise.
61084         * lib/stdlib.in.h: Likewise.
61085         * lib/stpcpy.c: Likewise.
61086         * lib/stpncpy.c: Likewise.
61087         * lib/strchrnul.c: Likewise.
61088         * lib/strcspn.c: Likewise.
61089         * lib/strerror.c: Likewise.
61090         * lib/strftime.c: Likewise.
61091         * lib/strftime.h: Likewise.
61092         * lib/striconveh.c: Likewise.
61093         * lib/striconveh.h: Likewise.
61094         * lib/striconveha.c: Likewise.
61095         * lib/striconveha.h: Likewise.
61096         * lib/stripslash.c: Likewise.
61097         * lib/strnlen1.c: Likewise.
61098         * lib/strnlen1.h: Likewise.
61099         * lib/strtod.c: Likewise.
61100         * lib/strtoimax.c: Likewise.
61101         * lib/strtok_r.c: Likewise.
61102         * lib/strtol.c: Likewise.
61103         * lib/strtoll.c: Likewise.
61104         * lib/strtoul.c: Likewise.
61105         * lib/strtoull.c: Likewise.
61106         * lib/sysexits.in.h: Likewise.
61107         * lib/tempname.c: Likewise.
61108         * lib/tempname.h: Likewise.
61109         * lib/timespec.h: Likewise.
61110         * lib/tls.c: Likewise.
61111         * lib/tls.h: Likewise.
61112         * lib/tmpdir.c: Likewise.
61113         * lib/tmpdir.h: Likewise.
61114         * lib/tmpfile-safer.c: Likewise.
61115         * lib/tmpfile.c: Likewise.
61116         * lib/trigl.c: Likewise.
61117         * lib/trigl.h: Likewise.
61118         * lib/trim.c: Likewise.
61119         * lib/trim.h: Likewise.
61120         * lib/trunc.c: Likewise.
61121         * lib/truncf.c: Likewise.
61122         * lib/truncl.c: Likewise.
61123         * lib/tsearch.c: Likewise.
61124         * lib/unicodeio.c: Likewise.
61125         * lib/unicodeio.h: Likewise.
61126         * lib/unistd--.h: Likewise.
61127         * lib/unistd-safer.h: Likewise.
61128         * lib/unistdio/ulc-fprintf.c: Likewise.
61129         * lib/unistdio/ulc-vfprintf.c: Likewise.
61130         * lib/unlinkdir.c: Likewise.
61131         * lib/unlinkdir.h: Likewise.
61132         * lib/unlocked-io.h: Likewise.
61133         * lib/unsetenv.c: Likewise.
61134         * lib/userspec.c: Likewise.
61135         * lib/utime.c: Likewise.
61136         * lib/utimecmp.c: Likewise.
61137         * lib/utimecmp.h: Likewise.
61138         * lib/utimens.c: Likewise.
61139         * lib/verify.h: Likewise.
61140         * lib/verror.c: Likewise.
61141         * lib/verror.h: Likewise.
61142         * lib/version-etc-fsf.c: Likewise.
61143         * lib/version-etc.c: Likewise.
61144         * lib/version-etc.h: Likewise.
61145         * lib/vfprintf.c: Likewise.
61146         * lib/vprintf.c: Likewise.
61147         * lib/vsprintf.c: Likewise.
61148         * lib/w32spawn.h: Likewise.
61149         * lib/wait-process.c: Likewise.
61150         * lib/wait-process.h: Likewise.
61151         * lib/wcwidth.c: Likewise.
61152         * lib/write-any-file.c: Likewise.
61153         * lib/xalloc-die.c: Likewise.
61154         * lib/xalloc.h: Likewise.
61155         * lib/xasprintf.c: Likewise.
61156         * lib/xgetcwd.c: Likewise.
61157         * lib/xgetcwd.h: Likewise.
61158         * lib/xgetdomainname.c: Likewise.
61159         * lib/xgetdomainname.h: Likewise.
61160         * lib/xgethostname.c: Likewise.
61161         * lib/xmalloc.c: Likewise.
61162         * lib/xmalloca.c: Likewise.
61163         * lib/xmalloca.h: Likewise.
61164         * lib/xmemcoll.c: Likewise.
61165         * lib/xnanosleep.c: Likewise.
61166         * lib/xreadlink.c: Likewise.
61167         * lib/xreadlink.h: Likewise.
61168         * lib/xsetenv.c: Likewise.
61169         * lib/xsetenv.h: Likewise.
61170         * lib/xstriconv.c: Likewise.
61171         * lib/xstriconv.h: Likewise.
61172         * lib/xstrndup.c: Likewise.
61173         * lib/xstrndup.h: Likewise.
61174         * lib/xstrtod.c: Likewise.
61175         * lib/xstrtod.h: Likewise.
61176         * lib/xstrtol-error.c: Likewise.
61177         * lib/xstrtol.c: Likewise.
61178         * lib/xstrtol.h: Likewise.
61179         * lib/xtime.h: Likewise.
61180         * lib/xvasprintf.c: Likewise.
61181         * lib/xvasprintf.h: Likewise.
61182         * lib/yesno.c: Likewise.
61183         * lib/yesno.h: Likewise.
61184         * posix-modules: Likewise.
61185         * tests/test-alloca-opt.c: Likewise.
61186         * tests/test-arcfour.c: Likewise.
61187         * tests/test-arctwo.c: Likewise.
61188         * tests/test-argmatch.c: Likewise.
61189         * tests/test-argp-2.sh: Likewise.
61190         * tests/test-argp.c: Likewise.
61191         * tests/test-arpa_inet.c: Likewise.
61192         * tests/test-array_list.c: Likewise.
61193         * tests/test-array_oset.c: Likewise.
61194         * tests/test-atexit.c: Likewise.
61195         * tests/test-avltree_list.c: Likewise.
61196         * tests/test-avltree_oset.c: Likewise.
61197         * tests/test-avltreehash_list.c: Likewise.
61198         * tests/test-base64.c: Likewise.
61199         * tests/test-binary-io.c: Likewise.
61200         * tests/test-byteswap.c: Likewise.
61201         * tests/test-c-ctype.c: Likewise.
61202         * tests/test-c-strcasecmp.c: Likewise.
61203         * tests/test-c-strcasestr.c: Likewise.
61204         * tests/test-c-strncasecmp.c: Likewise.
61205         * tests/test-c-strstr.c: Likewise.
61206         * tests/test-canonicalize-lgpl.c: Likewise.
61207         * tests/test-canonicalize.c: Likewise.
61208         * tests/test-carray_list.c: Likewise.
61209         * tests/test-ceilf.c: Likewise.
61210         * tests/test-ceill.c: Likewise.
61211         * tests/test-count-one-bits.c: Likewise.
61212         * tests/test-crc.c: Likewise.
61213         * tests/test-dirname.c: Likewise.
61214         * tests/test-fbufmode.c: Likewise.
61215         * tests/test-fcntl.c: Likewise.
61216         * tests/test-fflush.c: Likewise.
61217         * tests/test-floorf.c: Likewise.
61218         * tests/test-floorl.c: Likewise.
61219         * tests/test-fopen.c: Likewise.
61220         * tests/test-fprintf-posix.c: Likewise.
61221         * tests/test-fprintf-posix.h: Likewise.
61222         * tests/test-fpurge.c: Likewise.
61223         * tests/test-freadable.c: Likewise.
61224         * tests/test-freadahead.c: Likewise.
61225         * tests/test-freading.c: Likewise.
61226         * tests/test-freopen.c: Likewise.
61227         * tests/test-frexp.c: Likewise.
61228         * tests/test-frexpl.c: Likewise.
61229         * tests/test-fseek.c: Likewise.
61230         * tests/test-fseeko.c: Likewise.
61231         * tests/test-fseterr.c: Likewise.
61232         * tests/test-fstrcmp.c: Likewise.
61233         * tests/test-ftell.c: Likewise.
61234         * tests/test-ftello.c: Likewise.
61235         * tests/test-fwritable.c: Likewise.
61236         * tests/test-fwriting.c: Likewise.
61237         * tests/test-getaddrinfo.c: Likewise.
61238         * tests/test-getpass.c: Likewise.
61239         * tests/test-gettimeofday.c: Likewise.
61240         * tests/test-hmac-md5.c: Likewise.
61241         * tests/test-hmac-sha1.c: Likewise.
61242         * tests/test-iconv.c: Likewise.
61243         * tests/test-iconvme.c: Likewise.
61244         * tests/test-inttypes.c: Likewise.
61245         * tests/test-isnan.c: Likewise.
61246         * tests/test-isnanf.c: Likewise.
61247         * tests/test-isnanl-nolibm.c: Likewise.
61248         * tests/test-isnanl.c: Likewise.
61249         * tests/test-isnanl.h: Likewise.
61250         * tests/test-ldexpl.c: Likewise.
61251         * tests/test-linked_list.c: Likewise.
61252         * tests/test-linkedhash_list.c: Likewise.
61253         * tests/test-locale.c: Likewise.
61254         * tests/test-localename.c: Likewise.
61255         * tests/test-lock.c: Likewise.
61256         * tests/test-lseek.c: Likewise.
61257         * tests/test-malloca.c: Likewise.
61258         * tests/test-math.c: Likewise.
61259         * tests/test-mbscasecmp.c: Likewise.
61260         * tests/test-mbscasestr1.c: Likewise.
61261         * tests/test-mbscasestr2.c: Likewise.
61262         * tests/test-mbscasestr3.c: Likewise.
61263         * tests/test-mbscasestr4.c: Likewise.
61264         * tests/test-mbschr.c: Likewise.
61265         * tests/test-mbscspn.c: Likewise.
61266         * tests/test-mbsncasecmp.c: Likewise.
61267         * tests/test-mbspbrk.c: Likewise.
61268         * tests/test-mbspcasecmp.c: Likewise.
61269         * tests/test-mbsrchr.c: Likewise.
61270         * tests/test-mbsspn.c: Likewise.
61271         * tests/test-mbsstr1.c: Likewise.
61272         * tests/test-mbsstr2.c: Likewise.
61273         * tests/test-mbsstr3.c: Likewise.
61274         * tests/test-md5.c: Likewise.
61275         * tests/test-memmem.c: Likewise.
61276         * tests/test-netinet_in.c: Likewise.
61277         * tests/test-open.c: Likewise.
61278         * tests/test-printf-frexp.c: Likewise.
61279         * tests/test-printf-frexpl.c: Likewise.
61280         * tests/test-printf-posix.c: Likewise.
61281         * tests/test-printf-posix.h: Likewise.
61282         * tests/test-rbtree_list.c: Likewise.
61283         * tests/test-rbtree_oset.c: Likewise.
61284         * tests/test-rbtreehash_list.c: Likewise.
61285         * tests/test-read-file.c: Likewise.
61286         * tests/test-rijndael.c: Likewise.
61287         * tests/test-search.c: Likewise.
61288         * tests/test-signbit.c: Likewise.
61289         * tests/test-sleep.c: Likewise.
61290         * tests/test-snprintf-posix.c: Likewise.
61291         * tests/test-snprintf-posix.h: Likewise.
61292         * tests/test-snprintf.c: Likewise.
61293         * tests/test-sprintf-posix.c: Likewise.
61294         * tests/test-sprintf-posix.h: Likewise.
61295         * tests/test-stat-time.c: Likewise.
61296         * tests/test-stdbool.c: Likewise.
61297         * tests/test-stdint.c: Likewise.
61298         * tests/test-stdio.c: Likewise.
61299         * tests/test-stdlib.c: Likewise.
61300         * tests/test-stpncpy.c: Likewise.
61301         * tests/test-strcasestr.c: Likewise.
61302         * tests/test-striconv.c: Likewise.
61303         * tests/test-striconveh.c: Likewise.
61304         * tests/test-striconveha.c: Likewise.
61305         * tests/test-string.c: Likewise.
61306         * tests/test-sys_select.c: Likewise.
61307         * tests/test-sys_socket.c: Likewise.
61308         * tests/test-sys_stat.c: Likewise.
61309         * tests/test-sys_time.c: Likewise.
61310         * tests/test-sysexits.c: Likewise.
61311         * tests/test-time.c: Likewise.
61312         * tests/test-tls.c: Likewise.
61313         * tests/test-trunc.c: Likewise.
61314         * tests/test-truncf.c: Likewise.
61315         * tests/test-truncl.c: Likewise.
61316         * tests/test-unistd.c: Likewise.
61317         * tests/test-vasnprintf-posix.c: Likewise.
61318         * tests/test-vasnprintf-posix2.c: Likewise.
61319         * tests/test-vasnprintf.c: Likewise.
61320         * tests/test-vasprintf-posix.c: Likewise.
61321         * tests/test-vasprintf.c: Likewise.
61322         * tests/test-verify.c: Likewise.
61323         * tests/test-vfprintf-posix.c: Likewise.
61324         * tests/test-vprintf-posix.c: Likewise.
61325         * tests/test-vsnprintf-posix.c: Likewise.
61326         * tests/test-vsnprintf.c: Likewise.
61327         * tests/test-vsprintf-posix.c: Likewise.
61328         * tests/test-wchar.c: Likewise.
61329         * tests/test-wctype.c: Likewise.
61330         * tests/test-wcwidth.c: Likewise.
61331         * tests/test-xstrtol.c: Likewise.
61332         * tests/test-xvasprintf.c: Likewise.
61333         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61334         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61335         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61336         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61337         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61338         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61339         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61340         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61341         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61342         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61343         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61344         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61345         * tests/uniname/test-uninames.c: Likewise.
61346         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61347         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61348         * tests/unistdio/test-u16-printf1.h: Likewise.
61349         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61350         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61351         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61352         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61353         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61354         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61355         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61356         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61357         * tests/unistdio/test-u32-printf1.h: Likewise.
61358         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61359         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61360         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61361         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61362         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61363         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61364         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61365         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61366         * tests/unistdio/test-u8-printf1.h: Likewise.
61367         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61368         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61369         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61370         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61371         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61372         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61373         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61374         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61375         * tests/unistdio/test-ulc-printf1.h: Likewise.
61376         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61377         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61378         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61379         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61380         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61381         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61382         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61383         * tests/uniwidth/test-u16-width.c: Likewise.
61384         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61385         * tests/uniwidth/test-u32-width.c: Likewise.
61386         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61387         * tests/uniwidth/test-u8-width.c: Likewise.
61388         * tests/uniwidth/test-uc_width.c: Likewise.
61389         * config/srclist-update: Likewise.
61390         (fixlicense): Update to GPLv3+.
61391
61392         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61393         * tests/test-tsearch.c: Change copyright notice.
61394
61395         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61396         * lib/c-strcaseeq.h: Change copyright notice.
61397         * lib/streq.h: Likewise.
61398         * lib/uniconv.h: Likewise.
61399         * lib/uniconv/u-conv-from-enc.h: Likewise.
61400         * lib/uniconv/u-conv-to-enc.h: Likewise.
61401         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61402         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61403         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61404         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61405         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61406         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61407         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61408         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61409         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61410         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61411         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61412         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61413         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61414         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61415         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61416         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61417         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61418         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61419         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61420         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61421         * lib/uniname.h: Likewise.
61422         * lib/uniname/uniname.c: Likewise.
61423         * lib/unistdio.h: Likewise.
61424         * lib/unistdio/u-asnprintf.h: Likewise.
61425         * lib/unistdio/u-asprintf.h: Likewise.
61426         * lib/unistdio/u-printf-args.c: Likewise.
61427         * lib/unistdio/u-printf-args.h: Likewise.
61428         * lib/unistdio/u-printf-parse.h: Likewise.
61429         * lib/unistdio/u-snprintf.h: Likewise.
61430         * lib/unistdio/u-sprintf.h: Likewise.
61431         * lib/unistdio/u-vasprintf.h: Likewise.
61432         * lib/unistdio/u-vsnprintf.h: Likewise.
61433         * lib/unistdio/u-vsprintf.h: Likewise.
61434         * lib/unistdio/u16-asnprintf.c: Likewise.
61435         * lib/unistdio/u16-asprintf.c: Likewise.
61436         * lib/unistdio/u16-printf-parse.c: Likewise.
61437         * lib/unistdio/u16-snprintf.c: Likewise.
61438         * lib/unistdio/u16-sprintf.c: Likewise.
61439         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61440         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61441         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61442         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61443         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61444         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61445         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61446         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61447         * lib/unistdio/u16-vasnprintf.c: Likewise.
61448         * lib/unistdio/u16-vasprintf.c: Likewise.
61449         * lib/unistdio/u16-vsnprintf.c: Likewise.
61450         * lib/unistdio/u16-vsprintf.c: Likewise.
61451         * lib/unistdio/u32-asnprintf.c: Likewise.
61452         * lib/unistdio/u32-asprintf.c: Likewise.
61453         * lib/unistdio/u32-printf-parse.c: Likewise.
61454         * lib/unistdio/u32-snprintf.c: Likewise.
61455         * lib/unistdio/u32-sprintf.c: Likewise.
61456         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61457         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61458         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61459         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61460         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61461         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61462         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61463         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61464         * lib/unistdio/u32-vasnprintf.c: Likewise.
61465         * lib/unistdio/u32-vasprintf.c: Likewise.
61466         * lib/unistdio/u32-vsnprintf.c: Likewise.
61467         * lib/unistdio/u32-vsprintf.c: Likewise.
61468         * lib/unistdio/u8-asnprintf.c: Likewise.
61469         * lib/unistdio/u8-asprintf.c: Likewise.
61470         * lib/unistdio/u8-printf-parse.c: Likewise.
61471         * lib/unistdio/u8-snprintf.c: Likewise.
61472         * lib/unistdio/u8-sprintf.c: Likewise.
61473         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61474         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61475         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61476         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61477         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61478         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61479         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61480         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61481         * lib/unistdio/u8-vasnprintf.c: Likewise.
61482         * lib/unistdio/u8-vasprintf.c: Likewise.
61483         * lib/unistdio/u8-vsnprintf.c: Likewise.
61484         * lib/unistdio/u8-vsprintf.c: Likewise.
61485         * lib/unistdio/ulc-asnprintf.c: Likewise.
61486         * lib/unistdio/ulc-asprintf.c: Likewise.
61487         * lib/unistdio/ulc-printf-parse.c: Likewise.
61488         * lib/unistdio/ulc-snprintf.c: Likewise.
61489         * lib/unistdio/ulc-sprintf.c: Likewise.
61490         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61491         * lib/unistdio/ulc-vasprintf.c: Likewise.
61492         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61493         * lib/unistdio/ulc-vsprintf.c: Likewise.
61494         * lib/unistr.h: Likewise.
61495         * lib/unistr/u-cpy-alloc.h: Likewise.
61496         * lib/unistr/u-cpy.h: Likewise.
61497         * lib/unistr/u-endswith.h: Likewise.
61498         * lib/unistr/u-move.h: Likewise.
61499         * lib/unistr/u-set.h: Likewise.
61500         * lib/unistr/u-startswith.h: Likewise.
61501         * lib/unistr/u-stpcpy.h: Likewise.
61502         * lib/unistr/u-stpncpy.h: Likewise.
61503         * lib/unistr/u-strcat.h: Likewise.
61504         * lib/unistr/u-strcpy.h: Likewise.
61505         * lib/unistr/u-strcspn.h: Likewise.
61506         * lib/unistr/u-strdup.h: Likewise.
61507         * lib/unistr/u-strlen.h: Likewise.
61508         * lib/unistr/u-strncat.h: Likewise.
61509         * lib/unistr/u-strncpy.h: Likewise.
61510         * lib/unistr/u-strnlen.h: Likewise.
61511         * lib/unistr/u-strpbrk.h: Likewise.
61512         * lib/unistr/u-strspn.h: Likewise.
61513         * lib/unistr/u-strstr.h: Likewise.
61514         * lib/unistr/u-strtok.h: Likewise.
61515         * lib/unistr/u16-check.c: Likewise.
61516         * lib/unistr/u16-chr.c: Likewise.
61517         * lib/unistr/u16-cmp.c: Likewise.
61518         * lib/unistr/u16-cpy-alloc.c: Likewise.
61519         * lib/unistr/u16-cpy.c: Likewise.
61520         * lib/unistr/u16-endswith.c: Likewise.
61521         * lib/unistr/u16-mblen.c: Likewise.
61522         * lib/unistr/u16-mbsnlen.c: Likewise.
61523         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61524         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61525         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61526         * lib/unistr/u16-mbtouc.c: Likewise.
61527         * lib/unistr/u16-mbtoucr.c: Likewise.
61528         * lib/unistr/u16-move.c: Likewise.
61529         * lib/unistr/u16-next.c: Likewise.
61530         * lib/unistr/u16-prev.c: Likewise.
61531         * lib/unistr/u16-set.c: Likewise.
61532         * lib/unistr/u16-startswith.c: Likewise.
61533         * lib/unistr/u16-stpcpy.c: Likewise.
61534         * lib/unistr/u16-stpncpy.c: Likewise.
61535         * lib/unistr/u16-strcat.c: Likewise.
61536         * lib/unistr/u16-strchr.c: Likewise.
61537         * lib/unistr/u16-strcmp.c: Likewise.
61538         * lib/unistr/u16-strcpy.c: Likewise.
61539         * lib/unistr/u16-strcspn.c: Likewise.
61540         * lib/unistr/u16-strdup.c: Likewise.
61541         * lib/unistr/u16-strlen.c: Likewise.
61542         * lib/unistr/u16-strmblen.c: Likewise.
61543         * lib/unistr/u16-strmbtouc.c: Likewise.
61544         * lib/unistr/u16-strncat.c: Likewise.
61545         * lib/unistr/u16-strncmp.c: Likewise.
61546         * lib/unistr/u16-strncpy.c: Likewise.
61547         * lib/unistr/u16-strnlen.c: Likewise.
61548         * lib/unistr/u16-strpbrk.c: Likewise.
61549         * lib/unistr/u16-strrchr.c: Likewise.
61550         * lib/unistr/u16-strspn.c: Likewise.
61551         * lib/unistr/u16-strstr.c: Likewise.
61552         * lib/unistr/u16-strtok.c: Likewise.
61553         * lib/unistr/u16-to-u32.c: Likewise.
61554         * lib/unistr/u16-to-u8.c: Likewise.
61555         * lib/unistr/u16-uctomb-aux.c: Likewise.
61556         * lib/unistr/u16-uctomb.c: Likewise.
61557         * lib/unistr/u32-check.c: Likewise.
61558         * lib/unistr/u32-chr.c: Likewise.
61559         * lib/unistr/u32-cmp.c: Likewise.
61560         * lib/unistr/u32-cpy-alloc.c: Likewise.
61561         * lib/unistr/u32-cpy.c: Likewise.
61562         * lib/unistr/u32-endswith.c: Likewise.
61563         * lib/unistr/u32-mblen.c: Likewise.
61564         * lib/unistr/u32-mbsnlen.c: Likewise.
61565         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61566         * lib/unistr/u32-mbtouc.c: Likewise.
61567         * lib/unistr/u32-mbtoucr.c: Likewise.
61568         * lib/unistr/u32-move.c: Likewise.
61569         * lib/unistr/u32-next.c: Likewise.
61570         * lib/unistr/u32-prev.c: Likewise.
61571         * lib/unistr/u32-set.c: Likewise.
61572         * lib/unistr/u32-startswith.c: Likewise.
61573         * lib/unistr/u32-stpcpy.c: Likewise.
61574         * lib/unistr/u32-stpncpy.c: Likewise.
61575         * lib/unistr/u32-strcat.c: Likewise.
61576         * lib/unistr/u32-strchr.c: Likewise.
61577         * lib/unistr/u32-strcmp.c: Likewise.
61578         * lib/unistr/u32-strcpy.c: Likewise.
61579         * lib/unistr/u32-strcspn.c: Likewise.
61580         * lib/unistr/u32-strdup.c: Likewise.
61581         * lib/unistr/u32-strlen.c: Likewise.
61582         * lib/unistr/u32-strmblen.c: Likewise.
61583         * lib/unistr/u32-strmbtouc.c: Likewise.
61584         * lib/unistr/u32-strncat.c: Likewise.
61585         * lib/unistr/u32-strncmp.c: Likewise.
61586         * lib/unistr/u32-strncpy.c: Likewise.
61587         * lib/unistr/u32-strnlen.c: Likewise.
61588         * lib/unistr/u32-strpbrk.c: Likewise.
61589         * lib/unistr/u32-strrchr.c: Likewise.
61590         * lib/unistr/u32-strspn.c: Likewise.
61591         * lib/unistr/u32-strstr.c: Likewise.
61592         * lib/unistr/u32-strtok.c: Likewise.
61593         * lib/unistr/u32-to-u16.c: Likewise.
61594         * lib/unistr/u32-to-u8.c: Likewise.
61595         * lib/unistr/u32-uctomb.c: Likewise.
61596         * lib/unistr/u8-check.c: Likewise.
61597         * lib/unistr/u8-chr.c: Likewise.
61598         * lib/unistr/u8-cmp.c: Likewise.
61599         * lib/unistr/u8-cpy-alloc.c: Likewise.
61600         * lib/unistr/u8-cpy.c: Likewise.
61601         * lib/unistr/u8-endswith.c: Likewise.
61602         * lib/unistr/u8-mblen.c: Likewise.
61603         * lib/unistr/u8-mbsnlen.c: Likewise.
61604         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61605         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61606         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61607         * lib/unistr/u8-mbtouc.c: Likewise.
61608         * lib/unistr/u8-mbtoucr.c: Likewise.
61609         * lib/unistr/u8-move.c: Likewise.
61610         * lib/unistr/u8-next.c: Likewise.
61611         * lib/unistr/u8-prev.c: Likewise.
61612         * lib/unistr/u8-set.c: Likewise.
61613         * lib/unistr/u8-startswith.c: Likewise.
61614         * lib/unistr/u8-stpcpy.c: Likewise.
61615         * lib/unistr/u8-stpncpy.c: Likewise.
61616         * lib/unistr/u8-strcat.c: Likewise.
61617         * lib/unistr/u8-strchr.c: Likewise.
61618         * lib/unistr/u8-strcmp.c: Likewise.
61619         * lib/unistr/u8-strcpy.c: Likewise.
61620         * lib/unistr/u8-strcspn.c: Likewise.
61621         * lib/unistr/u8-strdup.c: Likewise.
61622         * lib/unistr/u8-strlen.c: Likewise.
61623         * lib/unistr/u8-strmblen.c: Likewise.
61624         * lib/unistr/u8-strmbtouc.c: Likewise.
61625         * lib/unistr/u8-strncat.c: Likewise.
61626         * lib/unistr/u8-strncmp.c: Likewise.
61627         * lib/unistr/u8-strncpy.c: Likewise.
61628         * lib/unistr/u8-strnlen.c: Likewise.
61629         * lib/unistr/u8-strpbrk.c: Likewise.
61630         * lib/unistr/u8-strrchr.c: Likewise.
61631         * lib/unistr/u8-strspn.c: Likewise.
61632         * lib/unistr/u8-strstr.c: Likewise.
61633         * lib/unistr/u8-strtok.c: Likewise.
61634         * lib/unistr/u8-to-u16.c: Likewise.
61635         * lib/unistr/u8-to-u32.c: Likewise.
61636         * lib/unistr/u8-uctomb-aux.c: Likewise.
61637         * lib/unistr/u8-uctomb.c: Likewise.
61638         * lib/unitypes.h: Likewise.
61639         * lib/uniwidth.h: Likewise.
61640         * lib/uniwidth/cjk.h: Likewise.
61641         * lib/uniwidth/u16-strwidth.c: Likewise.
61642         * lib/uniwidth/u16-width.c: Likewise.
61643         * lib/uniwidth/u32-strwidth.c: Likewise.
61644         * lib/uniwidth/u32-width.c: Likewise.
61645         * lib/uniwidth/u8-strwidth.c: Likewise.
61646         * lib/uniwidth/u8-width.c: Likewise.
61647         * lib/uniwidth/width.c: Likewise.
61648
61649 2007-10-07  Bruno Haible  <bruno@clisp.org>
61650
61651         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61652         The file is still under LGPL (see modules/inttypes).
61653
61654 2007-10-06  Bruno Haible  <bruno@clisp.org>
61655
61656         * modules/trunc (Dependencies): Add 'extensions'.
61657         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61658         Reported by Ben Pfaff <blp@gnu.org>.
61659
61660 2007-10-06  Bruno Haible  <bruno@clisp.org>
61661
61662         * modules/freopen-tests: New file.
61663         * tests/test-freopen.c: New file.
61664
61665         * modules/fopen-tests: New file.
61666         * tests/test-fopen.c: New file.
61667
61668         * modules/fopen: New file.
61669         * lib/fopen.c: New file.
61670         * m4/fopen.m4: New file.
61671         * modules/freopen: New file.
61672         * lib/freopen.c: New file.
61673         * m4/freopen.m4: New file.
61674         * lib/stdio.in.h (fopen, freopen): New declarations.
61675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61676         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61677         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61678         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61679         * doc/functions/fopen.texi: Mention the 'fopen' module.
61680         * doc/functions/freopen.texi: Mention the 'freopen' module.
61681
61682 2007-10-06  Bruno Haible  <bruno@clisp.org>
61683
61684         * modules/open-tests: New file.
61685         * tests/test-open.c: New file.
61686
61687         * modules/open: New file.
61688         * lib/open.c: New file.
61689         * m4/open.m4: New file.
61690         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61691         lib/open.c does.
61692         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61693         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61694         macros.
61695         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61696         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61697         REPLACE_OPEN.
61698         * doc/functions/open.texi: Mention the 'open' module.
61699
61700 2007-10-04  Bruno Haible  <bruno@clisp.org>
61701
61702         * modules/ceill-tests: New file.
61703         * tests/test-ceill.c: New file.
61704
61705         * modules/ceill: New file.
61706         * lib/ceill.c: Replace entire file.
61707         * m4/ceill.m4: New file.
61708         * lib/math.in.h (ceill): Replace declaration.
61709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61710         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61711         * doc/functions/ceill.texi: Mention the 'ceill' module.
61712         * modules/mathl (Files): Remove lib/ceill.c.
61713         (Depends-on): Add ceill.
61714
61715 2007-10-04  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/ceilf-tests: New file.
61718         * tests/test-ceilf.c: New file.
61719
61720         * modules/ceilf: New file.
61721         * lib/ceil.c: New file.
61722         * lib/ceilf.c: New file.
61723         * m4/ceilf.m4: New file.
61724         * lib/math.in.h (ceilf): New declaration.
61725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61726         HAVE_DECL_CEILF.
61727         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61728         HAVE_DECL_CEILF.
61729         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61730
61731 2007-10-04  Bruno Haible  <bruno@clisp.org>
61732
61733         * modules/floorl-tests: New file.
61734         * tests/test-floorl.c: New file.
61735
61736         * modules/floorl: New file.
61737         * lib/floorl.c: Replace entire file.
61738         * m4/floorl.m4: New file.
61739         * lib/math.in.h (floorl): Replace declaration.
61740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61741         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61742         * doc/functions/floorl.texi: Mention the 'floorl' module.
61743         * modules/mathl (Files): Remove lib/floorl.c.
61744         (Depends-on): Add floorl.
61745
61746 2007-10-04  Bruno Haible  <bruno@clisp.org>
61747
61748         * modules/floorf-tests: New file.
61749         * tests/test-floorf.c: New file.
61750
61751         * modules/floorf: New file.
61752         * lib/floor.c: New file.
61753         * lib/floorf.c: New file.
61754         * m4/floorf.m4: New file.
61755         * lib/math.in.h (floorf): New declaration.
61756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61757         HAVE_DECL_FLOORF.
61758         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61759         HAVE_DECL_FLOORF.
61760         * doc/functions/floorf.texi: Mention the 'floorf' module.
61761
61762 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61763             Bruno Haible  <bruno@clisp.org>
61764
61765         Advertise for the Git server instead of the CVS server.
61766         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61767         repository instead of the CVS one.
61768         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61769         about all VCS systems generically.
61770         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61771
61772 2007-10-04  Bruno Haible  <bruno@clisp.org>
61773
61774         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61775         means.
61776         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61777
61778 2007-10-04  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/truncl-tests: New file.
61781         * tests/test-truncl.c: New file.
61782
61783         * modules/truncl: New file.
61784         * lib/truncl.c: New file.
61785         * m4/truncl.m4: New file.
61786         * lib/math.in.h (truncl): New declaration.
61787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61788         HAVE_DECL_TRUNCL.
61789         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61790         HAVE_DECL_TRUNCL.
61791         * doc/functions/truncl.texi: Mention the 'truncl' module.
61792
61793 2007-10-04  Bruno Haible  <bruno@clisp.org>
61794
61795         * modules/truncf-tests: New file.
61796         * tests/test-truncf.c: New file.
61797
61798         * modules/truncf: New file.
61799         * lib/trunc.c: Make paramerizable through USE_* macros.
61800         * lib/truncf.c: New file.
61801         * m4/truncf.m4: New file.
61802         * lib/math.in.h (truncf): New declaration.
61803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61804         HAVE_DECL_TRUNCF.
61805         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61806         HAVE_DECL_TRUNCF.
61807         * doc/functions/truncf.texi: Mention the 'truncf' module.
61808
61809 2007-10-03  Bruno Haible  <bruno@clisp.org>
61810
61811         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61812         augmentation also for tests modules.
61813         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61814         * modules/atexit-tests (Makefile.am): Likewise.
61815         * modules/binary-io-tests (Makefile.am): Likewise.
61816         * modules/c-strcase-tests (Makefile.am): Likewise.
61817         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61818         * modules/canonicalize-tests (Makefile.am): Likewise.
61819         * modules/closein-tests (Makefile.am): Likewise.
61820         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61821         * modules/freadahead-tests (Makefile.am): Likewise.
61822         * modules/fseek-tests (Makefile.am): Likewise.
61823         * modules/fseeko-tests (Makefile.am): Likewise.
61824         * modules/ftell-tests (Makefile.am): Likewise.
61825         * modules/ftello-tests (Makefile.am): Likewise.
61826         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61827         * modules/isnanl-tests (Makefile.am): Likewise.
61828         * modules/lseek-tests (Makefile.am): Likewise.
61829         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61830         * modules/mbscasestr-tests (Makefile.am): Likewise.
61831         * modules/mbschr-tests (Makefile.am): Likewise.
61832         * modules/mbscspn-tests (Makefile.am): Likewise.
61833         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61834         * modules/mbspbrk-tests (Makefile.am): Likewise.
61835         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61836         * modules/mbsrchr-tests (Makefile.am): Likewise.
61837         * modules/mbsspn-tests (Makefile.am): Likewise.
61838         * modules/mbsstr-tests (Makefile.am): Likewise.
61839         * modules/printf-posix-tests (Makefile.am): Likewise.
61840         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61841         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61842         * modules/tsearch-tests (Makefile.am): Likewise.
61843         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61844         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61845         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61846         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61847         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61848         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61849         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61850         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61851         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61852         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61853         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61854         * modules/xstrtol-tests (Makefile.am): Likewise.
61855         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61856         * modules/yesno-tests (Makefile.am): Likewise.
61857
61858 2007-10-03  Bruno Haible  <bruno@clisp.org>
61859
61860         * modules/trunc-tests: New file.
61861         * tests/test-trunc.c: New file.
61862
61863         * modules/trunc: New file.
61864         * lib/trunc.c: New file.
61865         * m4/trunc.m4: New file.
61866         * lib/math.in.h (trunc): New declaration.
61867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61868         HAVE_DECL_TRUNC.
61869         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61870         HAVE_DECL_TRUNC.
61871         * doc/functions/trunc.texi: Mention the 'trunc' module.
61872
61873 2007-10-03  Bruno Haible  <bruno@clisp.org>
61874
61875         * tests/test-fpending.c: New file, mostly copied
61876         from coreutils/lib/t-fpending.c.
61877         * modules/fpending-tests: New file.
61878
61879 2007-10-03  Bruno Haible  <bruno@clisp.org>
61880
61881         Port the stdio extensions to QNX (untested).
61882         * lib/fseterr.c (fseterr): Add support for QNX.
61883         * lib/fbufmode.c (fbufmode): Likewise.
61884         * lib/freadable.c (freadable): Likewise.
61885         * lib/fwritable.c (fwritable): Likewise.
61886         * lib/freading.c (freading): Likewise.
61887         * lib/fwriting.c (fwriting): Likewise.
61888         * lib/freadahead.c (freadahed): Likewise.
61889         * lib/fpurge.c (fpurge): Likewise.
61890         * lib/fseeko.c (rpl_fseeko): Likewise.
61891
61892 2007-10-03  Bruno Haible  <bruno@clisp.org>
61893             Jim Meyering  <jim@meyering.net>
61894             Eric Blake  <ebb9@byu.net>
61895
61896         * doc/relocatable.texi: Use @command instead of @program.
61897
61898 2007-10-02  Jim Meyering  <jim@meyering.net>
61899
61900         Perform one more "_.h" -> ".in.h" substitution.
61901         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61902         instead of unistd_.h here, too.
61903
61904 2007-10-01  Bruno Haible  <bruno@clisp.org>
61905
61906         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61907         Needed for the alloca-opt module.
61908
61909 2007-09-30  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61912         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61913         alloca_.h.
61914         * lib/argz.in.h: Renamed from lib/argz_.h.
61915         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61916         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61917         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61918         byteswap_.h.
61919         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61920         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61921         dirent_.h.
61922         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61923         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61924         fcntl_.h.
61925         * lib/float.in.h: Renamed from lib/float_.h.
61926         * modules/float (Files, Makefile.am): Use float.in.h instead of
61927         float_.h.
61928         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61929         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61930         fnmatch_.h.
61931         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61932         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61933         getopt_.h.
61934         * lib/glob.in.h: Renamed from lib/glob_.h.
61935         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61936         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61937         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61938         iconv_.h.
61939         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61940         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61941         inttypes_.h.
61942         * lib/locale.in.h: Renamed from lib/locale_.h.
61943         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61944         locale_.h.
61945         * lib/math.in.h: Renamed from lib/math_.h.
61946         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61947         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61948         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61949         of netinet_in_.h. Add dependency.
61950         * lib/poll.in.h: Renamed from lib/poll_.h.
61951         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61952         * lib/search.in.h: Renamed from lib/search_.h.
61953         * modules/search (Files, Makefile.am): Use search.in.h instead of
61954         search_.h.
61955         * lib/signal.in.h: Renamed from lib/signal_.h.
61956         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61957         _signal.h.
61958         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61959         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61960         stdbool_.h.
61961         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61962         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61963         stdint_.h.
61964         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61965         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61966         stdio_.h.
61967         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61968         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61969         stdlib_.h.
61970         * lib/string.in.h: Renamed from lib/string_.h.
61971         * modules/string (Files, Makefile.am): Use string.in.h instead of
61972         string_.h.
61973         * doc/gnulib-tool.texi (Initial import): Update.
61974         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61975         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61976         of sys_select_.h. Add dependency.
61977         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61978         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61979         of sys_socket_.h.
61980         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61981         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61982         sys_stat_.h.
61983         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61984         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61985         sys_time_.h.
61986         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61987         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61988         sysexits_.h.
61989         * lib/time.in.h: Renamed from lib/time_.h.
61990         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61991         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61992         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61993         unistd_.h.
61994         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61995         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61996         wchar_.h.
61997         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61998         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61999         wctype_.h.
62000         * build-aux/bootstrap (slurp): Update.
62001         * lib/.cppi-disable: Update.
62002
62003 2007-09-30  Bruno Haible  <bruno@clisp.org>
62004
62005         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62006         Needed on BeOS.
62007
62008 2007-09-30  Bruno Haible  <bruno@clisp.org>
62009
62010         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62011
62012 2007-09-29  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62015
62016 2007-09-29  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62019         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62020         * build-aux/install-reloc: Compile also areadlink.c.
62021         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62022
62023 2007-09-29  Bruno Haible  <bruno@clisp.org>
62024
62025         * gnulib-tool (func_emit_initmacro_done): Indentation.
62026
62027 2007-09-29  Bruno Haible  <bruno@clisp.org>
62028
62029         * README: Add CVS checkout update instructions.
62030         Info from Bob Proulx <bob@proulx.com>.
62031
62032 2007-09-28  Eric Blake  <ebb9@byu.net>
62033
62034         Provide move-if-change.
62035         * build-aux/move-if-change: New file, based on best practice
62036         rather than any canonical upstream location.
62037
62038 2007-09-28  Jim Meyering  <jim@meyering.net>
62039
62040         Fix canonicalize loop-detection corner case.
62041         Do not attempt to stat the symlink values stored via seen_triple.
62042         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62043         on linux-2.6.18, (but not 2.6.22).
62044         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62045         triple_compare.  The former compares dev,ino,filename, while the latter
62046         would actually stat dirname(filename) when dev and ino were equal.
62047         * lib/hash-triple.c: Install <string.h>.
62048         (STREQ): Define.
62049         (triple_compare_ino_str): New function.
62050         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62051
62052 2007-09-28  Eric Blake  <ebb9@byu.net>
62053
62054         Enforce that AC_REPLACE_FUNCS files exist.
62055         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62056         override check for typos.
62057
62058         Fix test-closein on Solaris 10.
62059         * tests/test-closein.c (main): Don't assume stdin can be inherited
62060         closed on all systems.
62061         * tests/test-closein.sh: Likewise.
62062         Reported by Piotr Tarnowski.
62063
62064 2007-09-28  Jim Meyering  <jim@meyering.net>
62065
62066         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62067
62068 2007-09-27  Jim Meyering  <jim@meyering.net>
62069
62070         canonicalize: Avoid a false-positive cycle failure.
62071         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62072         Sort.  Remove cycle-check.
62073         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62074         not cycle-check.h.
62075         (seen_triple): New function.
62076         (canonicalize_filename_mode): Use it instead of cycle-check.
62077         * tests/test-canonicalize.c: Add a test for this bug.
62078         * tests/test-canonicalize.sh: Set up and run the test.
62079
62080         New module, file-set, from coreutils.
62081         * modules/file-set: Define it.
62082         * lib/file-set.c, lib/file-set.h: Implement.
62083
62084         New module, hash-triple, from coreutils.
62085         * modules/hash-triple: Define it.
62086         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62087
62088 2007-09-25  Eric Blake  <ebb9@byu.net>
62089
62090         Fix strerror on Interix.
62091         * lib/string_.h (strerror): Declare replacement.
62092         * doc/functions/strerror.texi (strerror): Document the Interix
62093         shortcoming.
62094         * modules/string (Makefile.am): Support new hooks.
62095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62096         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62097         gl_FUNC_STRERROR_SEPARATE.
62098         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62099         * lib/strerror.c (rpl_strerror): Provide replacement.
62100         * modules/strerror (Depends-on): Add string.
62101         (configure.ac): Detect use of module.
62102         * tests/test-strerror.c: New file.
62103         * modules/strerror-tests: New test module.
62104         * modules/argp (Depends-on): Add strerror.
62105         * modules/error (Depends-on): Likewise.
62106         Reported by Martin Koeppe.
62107
62108 2007-09-24  Bruno Haible  <bruno@clisp.org>
62109
62110         * README: Update git instructions.
62111
62112 2007-09-24  Eric Blake  <ebb9@byu.net>
62113
62114         Revert fpending breakage from 2007-09-08.
62115         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62116         __fpending.c.
62117
62118 2007-09-24  Jim Meyering  <jim@meyering.net>
62119
62120         filenamecat.c: Add a test.
62121         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62122         showing how the function works when DIR is the empty string.
62123
62124 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62125
62126         * tests/test-canonicalize.sh: Turn on executable bit.
62127
62128 2007-09-19  Eric Blake  <ebb9@byu.net>
62129
62130         * README: Update CVS instructions.
62131
62132 2007-09-18  Bruno Haible  <bruno@clisp.org>
62133
62134         * modules/areadlink: New file.
62135         * lib/areadlink.h (areadlink): New declaration.
62136         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62137
62138 2007-09-17  Jim Meyering  <jim@meyering.net>
62139
62140         * lib/savewd.c (ESTALE) [!defined]: Define.
62141         Reported to be required on Interix by Martin Koeppe.
62142
62143 2007-09-17  Bruno Haible  <bruno@clisp.org>
62144
62145         * gnulib-tool (func_version): Use $version.
62146
62147 2007-09-16  Bruno Haible  <bruno@clisp.org>
62148
62149         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62150         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62151         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62152         Reported by Greg Schafer <gschafer@zip.com.au>.
62153
62154 2007-09-15  Bruno Haible  <bruno@clisp.org>
62155
62156         * gnulib-tool (sed): Try a little harder to make bash understand the
62157         alias.
62158         Reported by Bruce Korb <bruce.korb@gmail.com>.
62159
62160 2007-09-13  Eric Blake  <ebb9@byu.net>
62161
62162         * ChangeLog: Remove conflict markers.
62163
62164 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62165
62166         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62167         Reported by Bruno Haible <bruno@clisp.org>.
62168
62169 2007-09-12  Bruno Haible  <bruno@clisp.org>
62170
62171         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62172         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62173         is not defined.
62174
62175 2007-09-12  Eric Blake  <ebb9@byu.net>
62176
62177         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62178         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62179         Autoconf definition.
62180         * modules/euidaccess (Depends-on): Add extensions, for
62181         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62182         * modules/fnmatch (Depends-on): Likewise.
62183         * modules/getaddrinfo (Depends-on): Likewise.
62184         * modules/getdelim (Depends-on): Likewise.
62185         * modules/getline (Depends-on): Likewise.
62186         * modules/getsubopt (Depends-on): Likewise.
62187         * modules/gettext (Depends-on): Likewise.
62188         * modules/group-member (Depends-on): Likewise.
62189         * modules/mbchar (Depends-on): Likewise.
62190         * modules/memmem (Depends-on): Likewise.
62191         * modules/mempcpy (Depends-on): Likewise.
62192         * modules/memrchr (Depends-on): Likewise.
62193         * modules/pagealign_alloc (Depends-on): Likewise.
62194         * modules/readutmp (Depends-on): Likewise.
62195         * modules/stpcpy (Depends-on): Likewise.
62196         * modules/stpncpy (Depends-on): Likewise.
62197         * modules/strchrnul (Depends-on): Likewise.
62198         * modules/strndup (Depends-on): Likewise.
62199         * modules/strsep (Depends-on): Likewise.
62200         * modules/strverscmp (Depends-on): Likewise.
62201         * modules/vasprintf (Depends-on): Likewise.
62202         * modules/wcwidth (Depends-on): Likewise.
62203         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62204         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62205         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62206         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62207         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62208         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62209         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62210         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62211         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62212         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62214         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62215         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62216         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62217         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62218         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62219         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62220         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62221         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62222         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62223         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62224         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62225         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62226         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62227         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62229         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62230         so that lock.m4 can be used in gettext without extensions module.
62231
62232 2007-09-11  Bruno Haible  <bruno@clisp.org>
62233
62234         * m4/isc-posix.m4: Remove file.
62235         Suggested by Eric Blake.
62236
62237 2007-09-11  Eric Blake  <ebb9@byu.net>
62238
62239         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62240
62241 2007-09-10  Bruno Haible  <bruno@clisp.org>
62242
62243         * posix-modules: Fix typo in error message.
62244         Reported by Matt <mkraai@beckman.com>.
62245
62246 2007-09-09  Bruno Haible  <bruno@clisp.org>
62247
62248         * doc/functions/getdelim.texi: Update list of platforms lacking the
62249         function.
62250         * doc/functions/getline.texi: Likewise.
62251
62252 2007-09-09  Jim Meyering  <jim@meyering.net>
62253
62254         * lib/hash.c (hash_initialize): Detect calloc failure.
62255         Reported by Bruno Haible.
62256
62257 2007-09-09  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62260         malloc or realloc fails.
62261
62262 2007-09-09  Bruno Haible  <bruno@clisp.org>
62263
62264         * modules/getcwd (Depends-on): Add malloc-posix.
62265         * modules/glob (Depends-on): Likewise.
62266         * modules/putenv (Depends-on): Likewise.
62267         * modules/strdup (Depends-on): Likewise.
62268         * modules/getdelim (Depends-on): Add realloc-posix.
62269         * modules/read-file (Depends-on): Likewise.
62270
62271 2007-09-09  Bruno Haible  <bruno@clisp.org>
62272
62273         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62274         (gl_FUNC_MALLOC_POSIX): Require it.
62275         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62276         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62277         * modules/realloc (Files): Add m4/malloc.m4.
62278         * modules/calloc (Files): Likewise.
62279
62280 2007-09-09  Bruno Haible  <bruno@clisp.org>
62281
62282         * modules/malloc-posix: New file.
62283         * modules/malloc (Depends-on): Add malloc-posix.
62284         * lib/malloc.c: Include errno.h.
62285         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62286         and a POSIX-compatible malloc into a single function. Set ENOMEM
62287         when returning NULL.
62288         * m4/malloc.m4: New file.
62289         * doc/functions/malloc.texi: Mention the malloc-posix module.
62290         * lib/stdlib_.h (malloc): New declaration.
62291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62292         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62293         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62294         and HAVE_MALLOC_POSIX.
62295
62296 2007-09-09  Bruno Haible  <bruno@clisp.org>
62297
62298         * modules/realloc-posix: New file.
62299         * modules/realloc (Depends-on): Add realloc-posix.
62300         * lib/realloc.c: Include errno.h.
62301         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62302         and a POSIX-compatible realloc into a single function. Set ENOMEM
62303         when returning NULL.
62304         * m4/realloc.m4: New file.
62305         * doc/functions/realloc.texi: Mention the realloc-posix module.
62306         * lib/stdlib_.h (realloc): New declaration.
62307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62308         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62309         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62310         and HAVE_REALLOC_POSIX.
62311
62312 2007-09-09  Bruno Haible  <bruno@clisp.org>
62313
62314         * modules/calloc-posix: New file.
62315         * modules/calloc (Depends-on): Add calloc-posix.
62316         * lib/calloc.c: Include errno.h.
62317         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62318         and a POSIX-compatible calloc into a single function. Set ENOMEM
62319         when returning NULL.
62320         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62321         * doc/functions/calloc.texi: Mention the calloc-posix module.
62322         * lib/stdlib_.h (calloc): New declaration.
62323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62324         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62325         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62326         and HAVE_CALLOC_POSIX.
62327
62328 2007-09-09  Bruno Haible  <bruno@clisp.org>
62329
62330         Allow for modules to show an arbitrary notice.
62331         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62332         * gnulib-tool: New option --extract-notice.
62333         (func_usage): Document it.
62334         (sed_extract_prog): Update.
62335         (func_get_notice): New function.
62336         (func_modules_notice): New function.
62337         (func_import, func_create_testdir): Invoke it.
62338         Suggested by Jim Meyering.
62339
62340 2007-09-09  Bruno Haible  <bruno@clisp.org>
62341
62342         * gnulib-tool: New options --verbose, --quiet.
62343         (func_usage): Document them.
62344         (verbose): New variable.
62345         (func_execute_command): New function.
62346         (func_import): Don't show the module list and the file list if
62347         $verbose < 0.
62348         (func_create_testdir): Likewise. Use func_execute_command.
62349         (func_create_megatestdir): Use func_execute_command.
62350
62351 2007-09-08  Bruno Haible  <bruno@clisp.org>
62352
62353         * gnulib-tool (func_import): Prefer rsync over wget when available,
62354         for fetching the PO files.
62355
62356 2007-09-08  Bruno Haible  <bruno@clisp.org>
62357
62358         * posix-modules: New file. Portions copied from gnulib-tool.
62359         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62360
62361 2007-09-08  Jim Meyering  <jim@meyering.net>
62362
62363         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62364         * lib/fpending.h: Rename from __fpending.h.
62365         * lib/fpending.c: Rename from __fpending.c.
62366         Include "fpending.h", not "__fpending.h".
62367         * lib/__fpending.h, lib/__fpending.c: Remove files.
62368         * modules/fpending (Files): Reflect new file names.
62369         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62370
62371 2007-09-08  Bruno Haible  <bruno@clisp.org>
62372
62373         * m4/inttypes-h.m4: Remove stub file.
62374
62375 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62376
62377         * doc/headers/stdint.texi: Discuss #include_next issue.
62378
62379 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62382
62383 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62384
62385         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62386         in variable name.
62387
62388 2007-09-03  Jim Meyering  <jim@meyering.net>
62389
62390         New module: git-version-gen.
62391         * modules/git-version-gen: New file.
62392
62393         Import changes from coreutils for bootstrap script.
62394
62395         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62396
62397         bootstrap: uses rsync to download the .po files
62398         * build-aux/bootstrap (po_download_command_format): New global.
62399         (download_po_files): Use rsync.
62400         (update_po_files): Don't remove .po files after download,
62401         so future rsync runs can take advantage of the copies.
62402
62403         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62404
62405         Solve the unnecessary-.po-file-regeneration problem once and for all.
62406         * build-aux/bootstrap (download_po_files): New function, renamed from
62407         get_translations.  Now, downloads, but doesn't update LINGUAS.
62408         (update_po_files): New function.
62409
62410         bootstrap: Ignore more.
62411         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62412         uniwidth to e.g., lib/.gitignore.
62413         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62414
62415         * build-aux/bootstrap: New setting: vc_ignore.
62416         (insert_sorted_if_absent): Create $file if absent.
62417         Adapt to new, possibly empty, list: $vc_ignore.
62418
62419         bootstrap: generate more ignorable names
62420         * build-aux/bootstrap (slurp): When generating ignorable names,
62421         also map .sin to .sed, .gperf to .c, and .y to .c.
62422
62423 2007-09-03  Jim Meyering  <jim@meyering.net>
62424
62425         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62426         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62427
62428 2007-09-02  Bruno Haible  <bruno@clisp.org>
62429
62430         Fix mis-recognition of 'mcs' on QNX 6.
62431         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62432         output contains the string "Mono".
62433         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62434         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62435
62436 2007-09-01  Bruno Haible  <bruno@clisp.org>
62437
62438         Fix collision between uniwidth/* and linebreak modules.
62439         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62440         u32_width): Remove declarations.
62441         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62442         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62443         streq3, streq2, streq1, streq0): Remove functions.
62444         (STREQ): Remove macro.
62445         (is_cjk_encoding): Remove function.
62446         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62447         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62448         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62449         * NEWS: Document the change.
62450
62451 2007-09-01  Bruno Haible  <bruno@clisp.org>
62452
62453         * lib/streq.h: Add double-inclusion guard.
62454
62455 2007-09-01  Karl Berry  <karl@gnu.org>
62456
62457         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62458
62459 2007-08-28  Jim Meyering  <jim@meyering.net>
62460
62461         Rename mreadlink_with_size to areadlink_with_size.
62462         * NEWS: Document the change.
62463         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62464         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62465         * lib/mreadlink.h: Rename this to...
62466         * lib/areadlink.h: ...this.
62467         * modules/mreadlink-with-size: Rename this to...
62468         * modules/areadlink-with-size: ...this.
62469         * lib/canonicalize.c: Reflect the renaming.
62470         * modules/canonicalize: Likewise.
62471
62472 2007-08-26  Bruno Haible  <bruno@clisp.org>
62473
62474         * gnulib-tool (func_import): When deciding which files to remove,
62475         consider also dangling symbolic links.
62476         Reported by Eric Blake.
62477
62478 2007-08-26  Bruno Haible  <bruno@clisp.org>
62479
62480         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62481
62482 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62483
62484         * lib/readline.c: Don't include getline.h, the prototype is now
62485         found in stdio.h.
62486
62487 2007-08-23  Jim Meyering  <jim@meyering.net>
62488
62489         Getdelim touchup.
62490         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62491         around the funlockfile call, since funlockfile never sets errno.
62492         Don't set errno upon failed realloc.
62493
62494 2007-08-22  Eric Blake  <ebb9@byu.net>
62495
62496         Getline touchups.
62497         * lib/getdelim.c (getdelim): Revert regression that required *n to
62498         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62499         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62500         getdelim, rather than whether implementation is missing.
62501         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62502         * lib/stdio_.h (getline): Also declare if replacement is
62503         required.
62504         * doc/functions/getdelim.texi: New file.
62505         * doc/functions/getline.texi: Likewise.
62506         * doc/gnulib.texi (Function Substitutes): Add new files.
62507         Reported by Bruno Haible.
62508
62509 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62510
62511         * users.txt: Add Guile.
62512
62513 2007-08-22  Eric Blake  <ebb9@byu.net>
62514
62515         * tests/test-getdelim.c (main): Use remove, not unlink.
62516         * tests/test-getline.c (main): Likewise.
62517
62518         Move getline and getdelim into stdio.h, per POSIX 200x.
62519         * modules/getline (Files): Remove getline.h.
62520         (Depends-on): Add stdio.
62521         (configure.ac): Add module indicator.
62522         * modules/getdelim (Files): Remove getdelim.h.
62523         (Depends-on): Add stdio.
62524         (configure.ac): Add module indicator.
62525         * modules/stdio (Makefile.am): Work with new indicators.
62526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62527         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62528         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62529         * lib/getdelim.h: Delete.
62530         * lib/getline.h: Delete.
62531         * lib/stdio_.h (getdelim, getline): Declare.
62532         * modules/getdelim-tests: New module.
62533         * modules/getline-tests: Likewise.
62534         * tests/test-getdelim.c: New file.
62535         * tests/test-getline.c: Likewise.
62536         * NEWS: Document the change.
62537         * lib/getline.c: Update choice of header.
62538         * lib/csharpcomp.c: Likewise.
62539         * lib/getpass.c: Likewise.
62540         * lib/javacomp.c: Likewise.
62541         * lib/javaversion.c: Likewise.
62542         * lib/yesno.c: Likewise.
62543         * lib/getdelim.c: Likewise.
62544         (getdelim): Set errno on failure, and avoid memory leak.
62545
62546 2007-08-19  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/closein (Depends-on): Add freadahead.
62549         * lib/closein.c: Include freadahead.h.
62550         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62551         is zero.
62552
62553 2007-08-19  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/freadahead-tests: New file.
62556         * tests/test-freadahead.sh: New file.
62557         * tests/test-freadahead.c: New file.
62558
62559         * modules/freadahead: New file.
62560         * lib/freadahead.h: New file.
62561         * lib/freadahead.c: New file.
62562         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62563         fbufmode, fpurge, freadable, fwritable.
62564
62565 2007-08-19  Eric Blake  <ebb9@byu.net>
62566
62567         Test yesno in combination with closein.
62568         * lib/yesno.c (yesno): Document use of stdin.
62569         * modules/yesno-tests (Files): New module.
62570         * tests/test-yesno.c (main): New file.
62571         * tests/test-yesno.sh: Likewise.
62572
62573 2007-08-19  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62576         * lib/fseeko.c (rpl_fseeko): Likewise.
62577         * lib/fseterr.c (fseterr): Likewise.
62578
62579 2007-08-19  Bruno Haible  <bruno@clisp.org>
62580
62581         * tests/test-lseek.c (main): Disable a test for BeOS.
62582         * doc/functions/lseek.texi: Document the BeOS bug.
62583
62584 2007-08-19  Bruno Haible  <bruno@clisp.org>
62585             Eric Blake  <ebb9@byu.net>
62586
62587         * lib/lseek.c: Include <sys/stat.h>.
62588         (rpl_lseek): Add workaround code also for Unix platforms.
62589         Needed for BeOS.
62590         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62591         * doc/functions/lseek.texi: Document BeOS definiency.
62592
62593 2007-08-18  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/fstrcmp-tests: New file.
62596         * tests/test-fstrcmp.c: New file.
62597
62598 2007-08-18  Bruno Haible  <bruno@clisp.org>
62599
62600         * modules/fstrcmp: New file, from GNU gettext with modifications.
62601         * lib/fstrcmp.h: New file, from GNU gettext.
62602         * lib/fstrcmp.c: New file, from GNU gettext.
62603         * MODULES.html.sh (String handling): Add fstrcmp.
62604
62605 2007-08-18  Bruno Haible  <bruno@clisp.org>
62606
62607         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62608         'bool'.
62609         (diag, compareseq): Remove const from the ctxt argument.
62610         (USE_HEURISTIC): Undefine at the end.
62611
62612 2007-08-18  Jim Meyering  <jim@meyering.net>
62613
62614         New file: lib/idcache.h
62615         * NEWS: Mention the addition.
62616         * modules/idcache (Files): Add lib/idcache.h
62617         * lib/idcache.c: Include "idcache.h".
62618         Don't include <sys/types.h>.
62619         Add a FIXME comment.
62620         Move file-scoped "static" declarations to the top.
62621         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62622
62623 2007-08-17  Bruno Haible  <bruno@clisp.org>
62624         and Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * MODULES.html.sh: Add diffseq.
62627         * modules/diffseq: New file.
62628         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62629         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62630
62631 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         Import changes from coreutils for bootstrap script.
62634
62635         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62636
62637         * build-aux/bootstrap (slurp): Work even in environments where
62638         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62639         current code does not slurp files whose names start with ".", and
62640         this looks like it might be a troublesome area.
62641
62642         2007-07-11  Jim Meyering  <jim@meyering.net>
62643
62644         If there's a GPL vN copyright comment, require that N == 3.
62645
62646         2007-07-08  Jim Meyering  <jim@meyering.net>
62647
62648         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62649         * build-aux/bootstrap (mam_template): Move definition out of loop.
62650
62651         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62652
62653         * build-aux/bootstrap (symlink_to_dir): Rename function from
62654         symlink_to_gnulib.  Add a directory parameter.  Update all
62655         callers.
62656         (cp_mark_as_generated): Also check for -- and link to -- files in
62657         gl/.
62658
62659         2007-07-08  Jim Meyering  <jim@meyering.net>
62660
62661         Adapt to deeper hierarchy in gnulib.
62662         * build-aux/bootstrap (symlink_to_dir): If the destination
62663         directory doesn't exist, create it. This is required at least for
62664         "lib/uniwidth/cjk.h".
62665
62666         2007-05-15  Jim Meyering  <jim@meyering.net>
62667
62668         * build-aux/bootstrap: Now that generated Makefile.am files
62669         are no longer under version control, they must be created at
62670         bootstrap time.
62671
62672 2007-08-14  Ben Pfaff  <blp@gnu.org>
62673
62674         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62675
62676 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62677
62678         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62679         given the changes below.
62680         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62681         even on hosts that have padding bits beyond the supported 64.
62682
62683 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62686         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62687         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62688         depends on it.
62689         (xstrtol_error): Remove.
62690         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62691         but with a different signature.
62692         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62693         * lib/xstrtol-error.c: Include exitfail.h.
62694         (xstrtol_fatal): New function, with a different signature from the
62695         old xstrtol_error, so that the caller need not worry about passing
62696         in an exit status, or about storage management of the option argument.
62697         (xstrtol_error): Now a static function.  Redo signature to
62698         implement xstrtol_fatal.  Output the correct number of hyphens in
62699         front of the option so that the caller need not worry about
62700         storage management.
62701         (N_): New macro.
62702         (_): Remove; not used now.
62703         * modules/xstrtol: Depend on getopt.
62704         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62705         of old STRTOL_FATAL_ERROR macro.
62706         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62707         of test program.
62708         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62709         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62710
62711 2007-08-08  Eric Blake  <ebb9@byu.net>
62712
62713         * lib/xstrtol-error.c: Add missing include.
62714
62715         Move xstrtol messages into gnulib domain, when --pobase is used.
62716         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62717         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62718         * modules/xstrtol (Files): Distribute new file.
62719         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62720         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62721         * tests/test-xstrtol.c: ...into new file.
62722         * tests/test-xstrtoul.c: Also test xstrtoul.
62723         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62724         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62725         * tests/test-xstrtol.sh: Drive the tests.
62726         * tests/test-xstrtoimax.sh: Likewise.
62727         * tests/test-xstrtoumax.sh: Likewise.
62728         * modules/xstrtol-tests: New module.
62729         * modules/xstrtoimax-tests: Likewise.
62730         * modules/xstrtoumax-tests: Likewise.
62731
62732 2007-08-08  Jim Meyering  <jim@meyering.net>
62733
62734         New function: mfile_name_concat.
62735         * lib/filenamecat.c (mfile_name_concat): New function, just like
62736         file_name_concat, but return NULL upon failure rather than exiting
62737         with a diagnostic.
62738         * lib/filenamecat.h: Declare it.
62739
62740 2007-08-07  Bruno Haible  <bruno@clisp.org>
62741
62742         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62743         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62744         warning from gcc.
62745         Reported by Eric Blake.
62746
62747 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62748
62749         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62750         * modules/crypto/arcfour (License): Likewise.
62751         * modules/crypto/des-tests (License): Likewise.
62752         * modules/crypto/gc-arctwo-tests (License): Likewise.
62753         * modules/crypto/gc-des-tests (License): Likewise.
62754         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62755         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62756         * modules/crypto/gc-md2-tests (License): Likewise.
62757         * modules/crypto/gc-md4-tests (License): Likewise.
62758         * modules/crypto/gc-md5-tests (License): Likewise.
62759         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62760         * modules/crypto/gc-rijndael-tests (License): Likewise.
62761         * modules/crypto/gc-sha1-tests (License): Likewise.
62762         * modules/crypto/gc-tests (License): Likewise.
62763         * modules/crypto/hmac-md5 (License): Likewise.
62764         * modules/crypto/hmac-sha1 (License): Likewise.
62765         * modules/crypto/md2-tests (License): Likewise.
62766         * modules/crypto/md4-tests (License): Likewise.
62767         * modules/crypto/md5 (License): Likewise.
62768         * modules/crypto/rijndael (License): Likewise.
62769         * modules/crypto/sha1 (License): Likewise.
62770         * modules/memxor (License): Likewise.
62771
62772 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62773         and Bruno Haible  <bruno@clisp.org>
62774
62775         * NEWS: Describe interface changes to human, xstrtol.
62776         * lib/human.h: Include <xstrtol.h>.
62777         (human_options): Return enum strtol_error, not int.  Remove
62778         bool arg; take int * instead.
62779         * lib/human.c: Don't include "gettext.h".
62780         (_): Remove; no longer used.
62781         Don't include <xstrtol.h>, since human.h does it.
62782         (human_options): Adjust to abovementioned interface changes.
62783         Do not report error to stderr; that's now the caller's
62784         responsibility.
62785         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62786         interface change.
62787         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62788         Str, Argument_type_string.  All uses changed.  Put " argument"
62789         in diagnostics to make them clearer.  Change wording of suffix
62790         message for clarity.
62791         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62792         Argument_type_string.
62793         (STRTOL_FATAL_WARN): Remove; no longer used.
62794         * modules/human (Depends-on): Remove gettext-h.
62795
62796 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62797
62798         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62799
62800 2007-07-31  Bruno Haible  <bruno@clisp.org>
62801
62802         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62803         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62804         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62805
62806 2007-07-31  Bruno Haible  <bruno@clisp.org>
62807
62808         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62809         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62810
62811 2007-07-30  Bruno Haible  <bruno@clisp.org>
62812
62813         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62814         * modules/c-ctype (License): Likewise.
62815         * modules/c-strcase (License): Likewise.
62816         * modules/check-version (License): Likewise.
62817         * modules/iconv (License): Likewise.
62818         * modules/iconv_open (License): Likewise.
62819         * modules/read-file (License): Likewise.
62820         * modules/striconv (License): Likewise.
62821         * modules/strverscmp (License): Likewise.
62822         * modules/vasprintf (License): Likewise.
62823         * modules/crypto/des (License): Likewise.
62824         * modules/crypto/gc (License): Likewise.
62825         * modules/crypto/gc-arcfour (License): Likewise.
62826         * modules/crypto/gc-arctwo (License): Likewise.
62827         * modules/crypto/gc-des (License): Likewise.
62828         * modules/crypto/gc-hmac-md5 (License): Likewise.
62829         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62830         * modules/crypto/gc-md2 (License): Likewise.
62831         * modules/crypto/gc-md4 (License): Likewise.
62832         * modules/crypto/gc-md5 (License): Likewise.
62833         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62834         * modules/crypto/gc-random (License): Likewise.
62835         * modules/crypto/gc-rijndael (License): Likewise.
62836         * modules/crypto/gc-sha1 (License): Likewise.
62837         * modules/crypto/md2 (License): Likewise.
62838         * modules/crypto/md4 (License): Likewise.
62839
62840 2007-07-30  Jim Meyering  <jim@meyering.net>
62841
62842         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62843         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62844         it has valid stat data.  This bug would cause du not to count the
62845         sizes of inaccessible directories.
62846         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62847         in <http://bugzilla.redhat.com/250077>.
62848
62849 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62850             Bruno Haible  <bruno@clisp.org>
62851
62852         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62853         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62854         #include_next, gives a diagnostic about it, but reports no error in
62855         the exit code.
62856         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62857
62858 2007-07-24  Ben Pfaff  <blp@gnu.org>
62859
62860         Improve name: "count-one-bits" is better than "popcount".
62861         * MODULES.html.sh: Update name.
62862         * lib/popcount.h: Renamed lib/count-one-bits.h.
62863         (popcount): Renamed count_one_bits.
62864         (popcountl): Renamed count_one_bits_l.
62865         (popcountll): Renamed count_one_bits_ll.
62866         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62867         * modules/popcount: Renamed module/count-one-bits.
62868         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62869         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62870
62871 2007-07-23  Ben Pfaff  <blp@gnu.org>
62872
62873         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62874         better code generation, and add U to large constants to avoid
62875         warnings, in non-GCC case.
62876         Suggested by Bruno Haible.
62877
62878 2007-07-23  Ben Pfaff  <blp@gnu.org>
62879
62880         * lib/popcount.h: Use verify_true instead of if...abort.
62881         * modules/popcount: Depend on verify module.
62882         Suggested by Jim Meyering.
62883
62884 2007-07-23  Bruno Haible  <bruno@clisp.org>
62885
62886         * gnulib-tool (func_import): Create a .cvsignore file also when the
62887         directory is not yet in CVS but the toplevel directory is. When
62888         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62889         Reported by Karl Berry.
62890
62891 2007-07-22  Ben Pfaff  <blp@gnu.org>
62892
62893         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62894         case.
62895         Suggested by Eric Blake.
62896
62897 2007-07-22  Ben Pfaff  <blp@gnu.org>
62898
62899         New module: popcount.
62900         * MODULES.html.sh: Add popcount.
62901         * modules/popcount: New file.
62902         * modules/popcount-tests: New file.
62903         * tests/test-popcount.c: New file.
62904         * lib/popcount.h: New file.
62905         * m4/popcount.m4: New file.
62906
62907 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62908
62909         * build-aux/announce-gen: Update to GPLv3.
62910
62911         * build-aux/config.guess: Update from config.
62912
62913 2007-07-21  Bruno Haible  <bruno@clisp.org>
62914
62915         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62916         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62917
62918 2007-07-20  Jim Meyering  <jim@meyering.net>
62919
62920         * check-module: Diagnose a self-dependency.
62921
62922 2007-07-19  Bruno Haible  <bruno@clisp.org>
62923
62924         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62925         empty.
62926         Reported by Eric Blake.
62927
62928 2007-07-18  Bruno Haible  <bruno@clisp.org>
62929
62930         * gnulib-tool: New options --po-base, --po-domain.
62931         (func_usage): Document them.
62932         (pobase, po_domain): New variables.
62933         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62934         DEFAULT_TEXT_DOMAIN.
62935         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62936         (func_import): Consider pobase and po_domain. Create a po/ directory.
62937         (func_create_testdir): Set pobase and po_domain to empty.
62938         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62939         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62940
62941 2007-07-18  Bruno Haible  <bruno@clisp.org>
62942
62943         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62944         EXTRA_DIST augmentation for files in build-aux/.
62945
62946 2007-07-16  Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62949         * modules/getdelim (License): Likewise.
62950
62951 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62952
62953         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62954         * modules/d-type (License): Likewise.
62955         * modules/extensions (License): Likewise.
62956         * modules/fnmatch (License): Likewise.
62957         * modules/fseeko (License): Likewise.
62958         * modules/getaddrinfo (License): Likewise.
62959         * modules/getline (License): Likewise.
62960         * modules/getlogin_r (License): Likewise.
62961         * modules/getpass (License): Likewise.
62962         * modules/gettimeofday (License): Likewise.
62963         * modules/glob (License): Likewise.
62964         * modules/inet_ntop (License): Likewise.
62965         * modules/malloc (License): Likewise.
62966         * modules/malloca (License): Likewise.
62967         * modules/memmem (License): Likewise.
62968         * modules/mempcpy (License): Likewise.
62969         * modules/memset (License): Likewise.
62970         * modules/minmax (License): Likewise.
62971         * modules/mktime (License): Likewise.
62972         * modules/netinet_in (License): Likewise.
62973         * modules/pathmax (License): Likewise.
62974         * modules/poll (License): Likewise.
62975         * modules/regex (License): Likewise.
62976         * modules/snprintf (License): Likewise.
62977         * modules/stdbool (License): Likewise.
62978         * modules/stdint (License): Likewise.
62979         * modules/stdio (License): Likewise.
62980         * modules/strcase (License): Likewise.
62981         * modules/strcasestr (License): Likewise.
62982         * modules/strdup (License): Likewise.
62983         * modules/string (License): Likewise.
62984         * modules/strndup (License): Likewise.
62985         * modules/strnlen (License): Likewise.
62986         * modules/strpbrk (License): Likewise.
62987         * modules/strptime (License): Likewise.
62988         * modules/strsep (License): Likewise.
62989         * modules/sys_select (License): Likewise.
62990         * modules/sys_socket (License): Likewise.
62991         * modules/sys_stat (License): Likewise.
62992         * modules/sys_time (License): Likewise.
62993         * modules/time (License): Likewise.
62994         * modules/time_r (License): Likewise.
62995         * modules/timegm (License): Likewise.
62996         * modules/unistd (License): Likewise.
62997         * modules/vsnprintf (License): Likewise.
62998         * modules/wctype (License): Likewise.
62999
63000 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63001
63002         * modules/argz (License): LGPLv2+.
63003
63004 2007-07-15  Karl Berry  <karl@gnu.org>
63005
63006         * doc/gnulib.texi: revise node structure per new fdl.texi.
63007
63008 2007-07-14  Bruno Haible  <bruno@clisp.org>
63009
63010         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63011         the output file.
63012         * lib/uniname/uninames.h: Regenerated.
63013
63014 2007-07-14  Karl Berry  <karl@gnu.org>
63015
63016         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63017         omitting sectioning and index commands.
63018
63019 2007-07-13  Bruno Haible  <bruno@clisp.org>
63020
63021         New gnulib-tool option --more-symlinks.
63022         * gnulib-tool (func_usage): Document --more-symlinks.
63023         (do_copyrights): New variable.
63024         Recognize option --more-symlinks.
63025         (func_import): Don't add a copyright notice transform to
63026         sed_transform_lib_file if do_copyrights is empty.
63027
63028 2007-07-13  Bruno Haible  <bruno@clisp.org>
63029
63030         * lib/vasnprintf.c (decimal_point_char): Define also if
63031         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63032         && !NEED_PRINTF_DIRECTIVE_A.
63033         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63034         Gary V. Vaughan <gary@gnu.org>.
63035
63036 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * lib/inttypes_.h: Undo previous change, since it was fixed
63039         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63040
63041 2007-07-13  Bruno Haible  <bruno@clisp.org>
63042
63043         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63044         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63045
63046 2007-07-13  Jim Meyering  <jim@meyering.net>
63047
63048         df: Don't fail for Tru64's "file-on-file mount".
63049         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63050         so we fall through and use statfs instead.  Details here:
63051         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63052         Reported by Albert Chin.
63053
63054 2007-07-13  Bruno Haible  <bruno@clisp.org>
63055
63056         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63057         * modules/configmake (License): Likewise.
63058         * modules/gettext (License): Likewise.
63059         * modules/gettext-h (License): Likewise.
63060         * modules/include_next (License): Likewise.
63061         * modules/link-warning (License): Likewise.
63062         * modules/localcharset (License): Likewise.
63063         * modules/localename (License): Likewise.
63064         * modules/lock (License): Likewise.
63065         * modules/relocatable-lib-lgpl (License): Likewise.
63066         * modules/size_max (License): Likewise.
63067         * modules/vasnprintf (License): Likewise.
63068         * modules/wchar (License): Likewise.
63069         * modules/xsize (License): Likewise.
63070
63071 2007-07-13  Bruno Haible  <bruno@clisp.org>
63072
63073         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63074         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63075
63076 2007-07-12  Bruno Haible  <bruno@clisp.org>
63077
63078         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63079         in the modules files.
63080
63081 2007-07-11  Karl Berry  <karl@gnu.org>
63082
63083         * MODULES.html.sh (func_module): use
63084          sed -e '\|^'"${includefile}"'$|d'
63085          instead of /.../d, to avoid errors on $includefile's containing /.
63086
63087 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63088
63089         * gnulib-tool (func_import): Avoid duplication of --avoid
63090         statements
63091         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63092         names to `_' in variable names.
63093
63094 2007-07-10  Eric Blake  <ebb9@byu.net>
63095
63096         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63097         * NEWS: Document this change.
63098
63099 2007-07-08  Bruno Haible  <bruno@clisp.org>
63100
63101         Update to Unicode 5.0.
63102         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63103         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63104         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63105         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63106         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63107         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63108         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63109         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63110         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63111         U+10A3F, U+1D242..U+1D244.
63112         (nonspacing_table_ind): Update.
63113         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63114         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63115
63116 2007-07-08  Bruno Haible  <bruno@clisp.org>
63117
63118         Update to Unicode 5.0.
63119         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63120         code transform. Extend the name index field of unicode_name_to_code and
63121         unicode_code_to_name from 16 to 24 bits.
63122         * lib/uniname/uniname.c (unicode_character_name,
63123         unicode_name_character): Add the range 0x12xxx to the code transform.
63124         * lib/uniname/uninames.h: Regenerated.
63125         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63126
63127 2007-07-07  Bruno Haible  <bruno@clisp.org>
63128
63129         * modules/wcwidth-tests: New file.
63130         * tests/test-wcwidth.c: New file.
63131
63132         Work around MacOS X wcwidth() bug.
63133         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63134         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63135         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63136         original wcwidth in non-UTF-8 locales.
63137         * modules/wcwidth (Depends-on): Add localcharset, streq,
63138         uniwidth/width.
63139         * doc/functions/wcwidth.texi: Update.
63140
63141 2007-07-07  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63144         (wcwidth): New declaration.
63145         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63146         macros.
63147         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63148         here. Prepare for creating <wchar.h> unconditionally.
63149         * modules/wchar (Depends-on): Add link-warning.
63150         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63151         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63152         * lib/wcwidth.h: Remove file.
63153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63154         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63155         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63156         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63157         (Include): Replace wcwidth.h with <wchar.h>.
63158         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63159         * lib/mbchar.h: Don't include wcwidth.h.
63160         * lib/mbswidth.c: Likewise.
63161         * NEWS: Mention the change.
63162
63163 2007-07-07  Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63166         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63167         definition with an external declaration.
63168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63169         defined as a function. Remove AC_C_INLINE requirement.
63170         * modules/wcwidth (Files): Add lib/wcwidth.c.
63171         (Makefile.am): Remove redundant statement.
63172
63173 2007-07-07  Bruno Haible  <bruno@clisp.org>
63174
63175         * MODULES.html.sh (Unicode string functions): Add the new modules.
63176
63177         * tests/uniwidth/test-u32-strwidth.c: New file.
63178         * modules/uniwidth/u32-strwidth-tests: New file.
63179
63180         * lib/uniwidth/u32-strwidth.c: New file.
63181         * modules/uniwidth/u32-strwidth: New file.
63182
63183         * tests/uniwidth/test-u16-strwidth.c: New file.
63184         * modules/uniwidth/u16-strwidth-tests: New file.
63185
63186         * lib/uniwidth/u16-strwidth.c: New file.
63187         * modules/uniwidth/u16-strwidth: New file.
63188
63189         * tests/uniwidth/test-u8-strwidth.c: New file.
63190         * modules/uniwidth/u8-strwidth-tests: New file.
63191
63192         * lib/uniwidth/u8-strwidth.c: New file.
63193         * modules/uniwidth/u8-strwidth: New file.
63194
63195         * tests/uniwidth/test-u32-width.c: New file.
63196         * modules/uniwidth/u32-width-tests: New file.
63197
63198         * lib/uniwidth/u32-width.c: New file.
63199         * modules/uniwidth/u32-width: New file.
63200
63201         * tests/uniwidth/test-u16-width.c: New file.
63202         * modules/uniwidth/u16-width-tests: New file.
63203
63204         * lib/uniwidth/u16-width.c: New file.
63205         * modules/uniwidth/u16-width: New file.
63206
63207         * tests/uniwidth/test-u8-width.c: New file.
63208         * modules/uniwidth/u8-width-tests: New file.
63209
63210         * lib/uniwidth/u8-width.c: New file.
63211         * modules/uniwidth/u8-width: New file.
63212
63213         * tests/uniwidth/test-uc_width.c: New file.
63214         * modules/uniwidth/width-tests: New file.
63215
63216         * lib/uniwidth/width.c: New file, from GNU libiconv.
63217         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63218         * modules/uniwidth/width: New file.
63219
63220         * lib/uniwidth.h: New file, from GNU libiconv.
63221         * modules/uniwidth/base: New file.
63222
63223 2007-07-07  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/uniname.h: New file, from GNU gettext.
63226         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63227         * lib/uniname/uninames.h: New file, from GNU gettext.
63228         * lib/uniname/uniname.c: New file, from GNU gettext.
63229         * tests/uniname/test-uninames.sh: New file.
63230         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63231         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63232         * modules/uniname/base: New file.
63233         * modules/uniname/uniname: New file.
63234         * modules/uniname/uniname-tests: New file.
63235         * MODULES.html.sh (Unicode string functions): Add the new modules.
63236
63237 2007-07-06  Bruno Haible  <bruno@clisp.org>
63238
63239         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63240
63241 2007-07-06  Bruno Haible  <bruno@clisp.org>
63242
63243         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63244         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63245         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63246         include <sys/time.h>.
63247         Reported by Eric Blake.
63248
63249 2007-07-06  Eric Blake  <ebb9@byu.net>
63250
63251         Fix testing canonicalize on cygwin.
63252         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63253         Revert patch from 2007-06-19.
63254         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63255         canonicalize module is also in use.
63256         * tests/test-canonicalize.c: New file.
63257         * tests/test-canonicalize.sh: Likewise.
63258         * modules/canonicalize-tests: Likewise.
63259
63260 2007-07-06  Jim Meyering  <jim@meyering.net>
63261
63262         * lib/getugroups.c (getugroups): Detect getgrent failure.
63263         Adjust comment to reflect reality: this function may return -1.
63264
63265 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63266
63267         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63268         the new TP address.
63269         (usage): Fix typo
63270         (gnulib_mk): New variable.
63271
63272 2007-07-05  Jim Meyering  <jim@meyering.net>
63273
63274         Don't let endgrent clobber errno, no matter how improbable.
63275         * lib/getugroups.c (getugroups): Save and restore errno around
63276         endgrent call.
63277
63278         Close the group DB even when failing with 2^31 or more members.
63279         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63280
63281 2007-07-04  Jim Meyering  <jim@meyering.net>
63282
63283         * lib/getugroups.h: New file.
63284         * lib/getugroups.c: Include "getugroups.h".
63285         Remove uses of "register" keyword.
63286         Move local variable, "cp", down into scope where used.
63287         Give "username" parameter the "const" attribute.
63288         * modules/getugroups (Files): Add lib/getugroups.h
63289
63290 2007-07-04  Karl Berry  <karl@gnu.org>
63291
63292         * MODULES.html.sh (func_all_modules): Complete rename of
63293         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63294
63295 2007-07-02  Bruno Haible  <bruno@clisp.org>
63296
63297         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63298         mode, when inttypes.h comes from gnulib.
63299         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63300
63301 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63302
63303         * NEWS: Mention lgpl module name change.
63304
63305         * modules/lgpl-2.1: Renamed from lgpl.
63306
63307         * NEWS: Mention gpl module name change.
63308
63309         * modules/gpl-3.0: New file, based on gpl-2.0.
63310
63311         * modules/gpl-2.0: Renamed from gpl.
63312
63313         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63314         doc/gpl-2.0.texi.
63315
63316 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63317
63318         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63319         #define __STDC_LIMIT_MACROS temporarily while including
63320         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63321         Problem reported by Joel E. Denny in
63322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63323
63324 2007-07-01  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/unistdio.h: New file.
63327         * lib/unistdio/u-asnprintf.h: New file.
63328         * lib/unistdio/u-asprintf.h: New file.
63329         * lib/unistdio/u-printf-args.c: New file.
63330         * lib/unistdio/u-printf-args.h: New file.
63331         * lib/unistdio/u-printf-parse.h: New file.
63332         * lib/unistdio/u-snprintf.h: New file.
63333         * lib/unistdio/u-sprintf.h: New file.
63334         * lib/unistdio/u-vasprintf.h: New file.
63335         * lib/unistdio/u-vsnprintf.h: New file.
63336         * lib/unistdio/u-vsprintf.h: New file.
63337         * lib/unistdio/ulc-asnprintf.c: New file.
63338         * lib/unistdio/ulc-asprintf.c: New file.
63339         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63340         * lib/unistdio/ulc-printf-parse.c: New file.
63341         * lib/unistdio/ulc-snprintf.c: New file.
63342         * lib/unistdio/ulc-sprintf.c: New file.
63343         * lib/unistdio/ulc-vasnprintf.c: New file.
63344         * lib/unistdio/ulc-vasprintf.c: New file.
63345         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63346         * lib/unistdio/ulc-vsnprintf.c: New file.
63347         * lib/unistdio/ulc-vsprintf.c: New file.
63348         * lib/unistdio/u8-asnprintf.c: New file.
63349         * lib/unistdio/u8-asprintf.c: New file.
63350         * lib/unistdio/u8-printf-parse.c: New file.
63351         * lib/unistdio/u8-snprintf.c: New file.
63352         * lib/unistdio/u8-sprintf.c: New file.
63353         * lib/unistdio/u8-vasnprintf.c: New file.
63354         * lib/unistdio/u8-vasprintf.c: New file.
63355         * lib/unistdio/u8-vsnprintf.c: New file.
63356         * lib/unistdio/u8-vsprintf.c: New file.
63357         * lib/unistdio/u8-u8-asnprintf.c: New file.
63358         * lib/unistdio/u8-u8-asprintf.c: New file.
63359         * lib/unistdio/u8-u8-snprintf.c: New file.
63360         * lib/unistdio/u8-u8-sprintf.c: New file.
63361         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63362         * lib/unistdio/u8-u8-vasprintf.c: New file.
63363         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63364         * lib/unistdio/u8-u8-vsprintf.c: New file.
63365         * lib/unistdio/u16-asnprintf.c: New file.
63366         * lib/unistdio/u16-asprintf.c: New file.
63367         * lib/unistdio/u16-printf-parse.c: New file.
63368         * lib/unistdio/u16-snprintf.c: New file.
63369         * lib/unistdio/u16-sprintf.c: New file.
63370         * lib/unistdio/u16-vasnprintf.c: New file.
63371         * lib/unistdio/u16-vasprintf.c: New file.
63372         * lib/unistdio/u16-vsnprintf.c: New file.
63373         * lib/unistdio/u16-vsprintf.c: New file.
63374         * lib/unistdio/u16-u16-asnprintf.c: New file.
63375         * lib/unistdio/u16-u16-asprintf.c: New file.
63376         * lib/unistdio/u16-u16-snprintf.c: New file.
63377         * lib/unistdio/u16-u16-sprintf.c: New file.
63378         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63379         * lib/unistdio/u16-u16-vasprintf.c: New file.
63380         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63381         * lib/unistdio/u16-u16-vsprintf.c: New file.
63382         * lib/unistdio/u32-asnprintf.c: New file.
63383         * lib/unistdio/u32-asprintf.c: New file.
63384         * lib/unistdio/u32-printf-parse.c: New file.
63385         * lib/unistdio/u32-snprintf.c: New file.
63386         * lib/unistdio/u32-sprintf.c: New file.
63387         * lib/unistdio/u32-vasnprintf.c: New file.
63388         * lib/unistdio/u32-vasprintf.c: New file.
63389         * lib/unistdio/u32-vsnprintf.c: New file.
63390         * lib/unistdio/u32-vsprintf.c: New file.
63391         * lib/unistdio/u32-u32-asnprintf.c: New file.
63392         * lib/unistdio/u32-u32-asprintf.c: New file.
63393         * lib/unistdio/u32-u32-snprintf.c: New file.
63394         * lib/unistdio/u32-u32-sprintf.c: New file.
63395         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63396         * lib/unistdio/u32-u32-vasprintf.c: New file.
63397         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63398         * lib/unistdio/u32-u32-vsprintf.c: New file.
63399         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63400         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63401         * tests/unistdio/test-ulc-printf1.h: New file.
63402         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63403         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63404         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63405         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63406         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63407         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63408         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63409         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63410         * tests/unistdio/test-u8-asnprintf1.c: New file.
63411         * tests/unistdio/test-u8-asnprintf1.h: New file.
63412         * tests/unistdio/test-u8-printf1.h: New file.
63413         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63414         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63415         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63416         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63417         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63418         * tests/unistdio/test-u8-vasprintf1.c: New file.
63419         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63420         * tests/unistdio/test-u8-vsprintf1.c: New file.
63421         * tests/unistdio/test-u16-asnprintf1.c: New file.
63422         * tests/unistdio/test-u16-asnprintf1.h: New file.
63423         * tests/unistdio/test-u16-printf1.h: New file.
63424         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63425         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63426         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63427         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63428         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63429         * tests/unistdio/test-u16-vasprintf1.c: New file.
63430         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63431         * tests/unistdio/test-u16-vsprintf1.c: New file.
63432         * tests/unistdio/test-u32-asnprintf1.c: New file.
63433         * tests/unistdio/test-u32-asnprintf1.h: New file.
63434         * tests/unistdio/test-u32-printf1.h: New file.
63435         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63436         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63437         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63438         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63439         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63440         * tests/unistdio/test-u32-vasprintf1.c: New file.
63441         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63442         * tests/unistdio/test-u32-vsprintf1.c: New file.
63443         * modules/unistdio/base: New file.
63444         * modules/unistdio/u-printf-args: New file.
63445         * modules/unistdio/ulc-asnprintf: New file.
63446         * modules/unistdio/ulc-asprintf: New file.
63447         * modules/unistdio/ulc-fprintf: New file.
63448         * modules/unistdio/ulc-printf-parse: New file.
63449         * modules/unistdio/ulc-snprintf: New file.
63450         * modules/unistdio/ulc-sprintf: New file.
63451         * modules/unistdio/ulc-vasnprintf: New file.
63452         * modules/unistdio/ulc-vasprintf: New file.
63453         * modules/unistdio/ulc-vfprintf: New file.
63454         * modules/unistdio/ulc-vsnprintf: New file.
63455         * modules/unistdio/ulc-vsprintf: New file.
63456         * modules/unistdio/u8-asnprintf: New file.
63457         * modules/unistdio/u8-asprintf: New file.
63458         * modules/unistdio/u8-printf-parse: New file.
63459         * modules/unistdio/u8-snprintf: New file.
63460         * modules/unistdio/u8-sprintf: New file.
63461         * modules/unistdio/u8-vasnprintf: New file.
63462         * modules/unistdio/u8-vasprintf: New file.
63463         * modules/unistdio/u8-vsnprintf: New file.
63464         * modules/unistdio/u8-vsprintf: New file.
63465         * modules/unistdio/u8-u8-asnprintf: New file.
63466         * modules/unistdio/u8-u8-asprintf: New file.
63467         * modules/unistdio/u8-u8-snprintf: New file.
63468         * modules/unistdio/u8-u8-sprintf: New file.
63469         * modules/unistdio/u8-u8-vasnprintf: New file.
63470         * modules/unistdio/u8-u8-vasprintf: New file.
63471         * modules/unistdio/u8-u8-vsnprintf: New file.
63472         * modules/unistdio/u8-u8-vsprintf: New file.
63473         * modules/unistdio/u16-asnprintf: New file.
63474         * modules/unistdio/u16-asprintf: New file.
63475         * modules/unistdio/u16-printf-parse: New file.
63476         * modules/unistdio/u16-snprintf: New file.
63477         * modules/unistdio/u16-sprintf: New file.
63478         * modules/unistdio/u16-vasnprintf: New file.
63479         * modules/unistdio/u16-vasprintf: New file.
63480         * modules/unistdio/u16-vsnprintf: New file.
63481         * modules/unistdio/u16-vsprintf: New file.
63482         * modules/unistdio/u16-u16-asnprintf: New file.
63483         * modules/unistdio/u16-u16-asprintf: New file.
63484         * modules/unistdio/u16-u16-snprintf: New file.
63485         * modules/unistdio/u16-u16-sprintf: New file.
63486         * modules/unistdio/u16-u16-vasnprintf: New file.
63487         * modules/unistdio/u16-u16-vasprintf: New file.
63488         * modules/unistdio/u16-u16-vsnprintf: New file.
63489         * modules/unistdio/u16-u16-vsprintf: New file.
63490         * modules/unistdio/u32-asnprintf: New file.
63491         * modules/unistdio/u32-asprintf: New file.
63492         * modules/unistdio/u32-printf-parse: New file.
63493         * modules/unistdio/u32-snprintf: New file.
63494         * modules/unistdio/u32-sprintf: New file.
63495         * modules/unistdio/u32-vasnprintf: New file.
63496         * modules/unistdio/u32-vasprintf: New file.
63497         * modules/unistdio/u32-vsnprintf: New file.
63498         * modules/unistdio/u32-vsprintf: New file.
63499         * modules/unistdio/u32-u32-asnprintf: New file.
63500         * modules/unistdio/u32-u32-asprintf: New file.
63501         * modules/unistdio/u32-u32-snprintf: New file.
63502         * modules/unistdio/u32-u32-sprintf: New file.
63503         * modules/unistdio/u32-u32-vasnprintf: New file.
63504         * modules/unistdio/u32-u32-vasprintf: New file.
63505         * modules/unistdio/u32-u32-vsnprintf: New file.
63506         * modules/unistdio/u32-u32-vsprintf: New file.
63507         * modules/unistdio/ulc-asnprintf-tests: New file.
63508         * modules/unistdio/ulc-vasnprintf-tests: New file.
63509         * modules/unistdio/ulc-vasprintf-tests: New file.
63510         * modules/unistdio/ulc-vsnprintf-tests: New file.
63511         * modules/unistdio/ulc-vsprintf-tests: New file.
63512         * modules/unistdio/u8-asnprintf-tests: New file.
63513         * modules/unistdio/u8-vasnprintf-tests: New file.
63514         * modules/unistdio/u8-vasprintf-tests: New file.
63515         * modules/unistdio/u8-vsnprintf-tests: New file.
63516         * modules/unistdio/u8-vsprintf-tests: New file.
63517         * modules/unistdio/u16-asnprintf-tests: New file.
63518         * modules/unistdio/u16-vasnprintf-tests: New file.
63519         * modules/unistdio/u16-vasprintf-tests: New file.
63520         * modules/unistdio/u16-vsnprintf-tests: New file.
63521         * modules/unistdio/u16-vsprintf-tests: New file.
63522         * modules/unistdio/u32-asnprintf-tests: New file.
63523         * modules/unistdio/u32-vasnprintf-tests: New file.
63524         * modules/unistdio/u32-vasprintf-tests: New file.
63525         * modules/unistdio/u32-vsnprintf-tests: New file.
63526         * modules/unistdio/u32-vsprintf-tests: New file.
63527         * MODULES.html.sh (Unicode string functions): Add the new modules.
63528
63529 2007-07-01  Bruno Haible  <bruno@clisp.org>
63530
63531         * lib/sprintf.c (sprintf): Limit the available length estimation,
63532         to avoid address wraparound.
63533         * lib/vsprintf.c (vsprintf): Likewise.
63534         * modules/sprintf-posix (Dependencies): Add stdint.
63535         * modules/vsprintf-posix (Dependencies): Likewise.
63536
63537 2007-07-01  Bruno Haible  <bruno@clisp.org>
63538
63539         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63540         Windows PATH as well. Conservative double-quoting. Comments.
63541
63542 2007-07-01  Bruno Haible  <bruno@clisp.org>
63543             Eric Blake  <ebb9@byu.net>
63544             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63545
63546         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63547         empty components in $PATH, denoting '.'.
63548
63549 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63550
63551         * gnulib-tool: Fix indentation.
63552         (func_create_megatestdir): Likewise.
63553         Report by Bruno Haible.
63554
63555 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63556
63557         Sync from Automake.
63558         * build-aux/gnupload: Fix shell portability issues with for loops.
63559         Report by Karl Berry.
63560
63561 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63562
63563         * build-aux/maint.mk (POURL): Use translationproject.org.
63564
63565 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63566             Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63569         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63570         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63571         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63572         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63573
63574 2007-06-27  Bruno Haible  <bruno@clisp.org>
63575
63576         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63577         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63578
63579 2007-06-26  Karl Berry  <karl@gnu.org>
63580
63581         * MODULES.html.sh: remove xreadlink-with-size.
63582
63583 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63586         method that I hope also handles the double-include problem noted
63587         by Bruno Haible in
63588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63589
63590 2007-06-23  Bruno Haible  <bruno@clisp.org>
63591
63592         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63593         Don't let the 'mostlyclean' target fail if the last subdirectory could
63594         not be removed.
63595         Reported by Karl Berry.
63596
63597 2007-06-23  Bruno Haible  <bruno@clisp.org>
63598
63599         * gnulib-tool (echo): Add a speedier workaround for ksh.
63600         * tests/test-echo.sh: Likewise.
63601
63602 2007-06-23  Bruno Haible  <bruno@clisp.org>
63603
63604         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63605         * tests/test-echo.sh: Likewise.
63606
63607 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63608
63609         * gnulib-tool (IFS): Initialize early, so we don't set it to
63610         empty later.
63611         (self_abspathname): Rewrite algorithm to set it, reindent.
63612         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63613         (func_create_megatestdir): Merge some sed scripts.
63614
63615 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63616
63617         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63618         exposed by Sun Studio 11 cc on Solaris 8.
63619
63620 2007-06-22  Bruno Haible  <bruno@clisp.org>
63621
63622         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63623         backslashes.
63624         * tests/test-echo.sh: New file.
63625
63626 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63627
63628         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63629         simplify `sed_replace_build_aux' scripts, they are portable but
63630         echoing them with `echo' is not.
63631         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63632
63633 2007-06-21  Karl Berry  <karl@gnu.org>
63634
63635         * config/srclist.txt: guess we can't handle the licenses via
63636         srclist at the moment.
63637
63638 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         * MODULES.html.sh: Add include_next.
63641         * modules/include_next: New file.
63642
63643 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63646         INCLUDE_NEXT.
63647         (gl_CHECK_NEXT_HEADERS): New macro.
63648         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63649         the obsolescent gl_ABSOLUTE_HEADER.
63650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63651         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63652         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63653         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63654         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63655         * m4/math_h.m4 (gl_MATH_H): Likewise.
63656         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63657         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63658         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63659         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63660         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63661         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63662         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63666         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63667         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63668         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63669         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63670         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63671         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63672         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63673         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63674         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63675         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63676         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63677         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63678         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63679         * lib/float_.h: Likewise.
63680         * lib/inttypes_.h: Likewise.
63681         * lib/math_.h: Likewise.
63682         * lib/search_.h: Likewise.
63683         * lib/signal_.h: Likewise.
63684         * lib/stdint_.h: Likewise.
63685         * lib/stdio_.h: Likewise.
63686         * lib/stdlib_.h: Likewise.
63687         * lib/string_.h: Likewise.
63688         * lib/sys_stat_.h: Likewise.
63689         * lib/sys_time_.h: Likewise.
63690         * lib/time_.h: Likewise.
63691         * lib/unistd_.h: Likewise.
63692         * lib/wchar_.h: Likewise.
63693         * lib/wctype_.h: Likewise.
63694         * lib/dirent_.h: Likewise.
63695         * lib/iconv_.h: Likewise.
63696         * lib/locale_.h: Likewise.
63697         * lib/netinet_in_.h: Likewise.
63698         * lib/sys_select_.h: Likewise.
63699         * lib/sys_socket_.h: Likewise.
63700         * lib/sysexits_.h: Likewise.
63701         * modules/fcntl (Depends-on): Depend on include_next, not
63702         absolute_header.
63703         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63704         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63705         * modules/fchdir: Likewise.
63706         * modules/float: Likewise.
63707         * modules/iconv_open: Likewise.
63708         * modules/inttypes: Likewise.
63709         * modules/locale: Likewise.
63710         * modules/math: Likewise.
63711         * modules/netinet_in: Likewise.
63712         * modules/search: Likewise.
63713         * modules/signal: Likewise.
63714         * modules/stdint: Likewise.
63715         * modules/stdio: Likewise.
63716         * modules/stdlib: Likewise.
63717         * modules/string: Likewise.
63718         * modules/sys_select: Likewise.
63719         * modules/sys_socket: Likewise.
63720         * modules/sys_stat: Likewise.
63721         * modules/sys_time: Likewise.
63722         * modules/sysexits: Likewise.
63723         * modules/time: Likewise.
63724         * modules/unistd: Likewise.
63725         * modules/wchar: Likewise.
63726         * modules/wctype: Likewise.
63727         * modules/sys_stat: Change maintainer to "all".
63728         * modules/unistd: Likewise.
63729
63730 2007-06-20  Karl Berry  <karl@gnu.org>
63731
63732         * config/srclist.txt: track www changes in license files.
63733
63734 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63735
63736         * build-aux/bootstrap: Remove stray dot.
63737         Make sure build_aux settings are honored when linking
63738         gnulib_extra_files.
63739
63740 2007-06-19  Eric Blake  <ebb9@byu.net>
63741
63742         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63743         Allow compilation on cygwin.
63744
63745 2007-06-19  Jim Meyering  <jim@meyering.net>
63746
63747         xreadlink-with-size: Remove module.  No longer used.
63748         Ex-callers now use xreadlink or mreadlink-with-size.
63749         * modules/xreadlink-with-size: Remove module.
63750         * lib/xreadlink-with-size.c: Remove file.
63751         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63752         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63753         just before the function definition *is* accurate.
63754
63755         Eliminate one way canonicalize_filename_mode could exit.
63756         * lib/canonicalize.c (canonicalize_filename_mode):
63757         Use mreadlink_with_size, not xreadlink_with_size.
63758
63759 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         Detect porting problems to FreeBSD/arm, which has time_t wider than
63762         long int.  Original problem reported for GNU diff by Xin Li in
63763         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63764         * modules/getdate (Depends-on): Add intprops, verify.
63765         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63766         is an integer type no wider than long int.
63767
63768 2007-06-18  Jim Meyering  <jim@meyering.net>
63769
63770         New module: mreadlink-with-size.
63771         * MODULES.html.sh: Add mreadlink-with-size.
63772         * modules/mreadlink-with-size: New module
63773         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63774         not xreadlink-with-size.
63775         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63776
63777 2007-06-16  Bruno Haible  <bruno@clisp.org>
63778
63779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63780         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63781         Reported by Gary V. Vaughan <gary@gnu.org>.
63782
63783 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         Revamp lchown so that it lives in unistd.h where it belongs.
63786         * lib/lchown.h: Remove.
63787         * lib/dirchownmod.c: Don't include lib/lchown.h.
63788         * lib/fchownat.c: Likewise.
63789         * lib/openat.c: Likewise.
63790         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63791         does not follow symlinks.
63792         (EOPNOTSUPP): Define if not defined.
63793         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63794         is defined to 0.
63795         (lchown): New decl.
63796         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63797         Do not check for lchown decl.
63798         Set REPLACE_LCHOWN.
63799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63800         REPLACE_LCHOWN.
63801         * modules/chown: Make it clear it follows symlinks.
63802         * modules/lchown: Make it clear it doesn't follow symlinks.
63803         (Files): Remove lib/lchown.h
63804         (Depends-on): Add unistd.
63805         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63806         (Include): Include <unistd.h>, not "lchown.h".
63807         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63808         REPLACE_LCHOWN.
63809
63810 2007-06-15  Jim Meyering  <jim@meyering.net>
63811
63812         Change license (GPL to LGPL) of fsusage and dependents.
63813         * modules/fsusage (License): Change to LGPL.
63814         * modules/full-read (License): Likewise.
63815         * modules/full-write (License): Likewise.
63816         * modules/safe-read (License): Likewise.
63817         * modules/safe-write (License): Likewise.
63818
63819 2007-06-14  Ben Pfaff  <blp@gnu.org>
63820
63821         Missing part of allocsa -> malloca transition.
63822         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63823         gl_MALLOCA.
63824
63825 2007-06-12  Bruno Haible  <bruno@clisp.org>
63826
63827         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63828         to ia64, x86_64, i386.
63829         Reported by Eric Blake.
63830
63831 2007-06-12  Bruno Haible  <bruno@clisp.org>
63832
63833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63834         cross-compiling to x86_64.
63835
63836 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63837
63838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63839         glitch reported by Ralf Wildenhues in
63840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63841
63842         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63843         Vin Shelton.
63844
63845 2007-06-11  Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63848         replacement string.
63849         Reported by Eric Blake.
63850
63851 2007-06-10  Bruno Haible  <bruno@clisp.org>
63852
63853         Prepare vasnprintf code for use with Unicode strings.
63854         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63855         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63856         TYPE_U32_STRING.
63857         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63858         a_u32_string variants.
63859         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63860         * lib/printf-args.c: Don't include config.h and the specification
63861         header if PRINTF_FETCHARGS is already defined.
63862         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63863         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63864         TYPE_U16_STRING, TYPE_U32_STRING.
63865         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63866         u16_directive, u16_directives, u32_directive, u32_directives): New
63867         types.
63868         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63869         New declarations.
63870         * lib/printf-parse.c: Don't include config.h and the specification
63871         header if PRINTF_PARSE is already defined. Eliminate the set of
63872         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63873         them now. Include c-ctype.h.
63874         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63875         directive and CHAR_T_ONLY_ASCII.
63876         * lib/vasnprintf.c: Don't include config.h and the specification header
63877         if VASNPRINTF is already defined.
63878         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63879         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63880         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63881         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63882         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63883         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63884         code accordingly.
63885         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63886         pad_ourselves also in this case, with the 'c' and 's' directives, and
63887         with a different notion of "width".
63888         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63889
63890 2007-06-10  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/unistr/u32-mbsnlen: New file.
63893         * lib/unistr/u32-mbsnlen.c: New file.
63894
63895         * modules/unistr/u16-mbsnlen: New file.
63896         * lib/unistr/u16-mbsnlen.c: New file.
63897
63898         * modules/unistr/u8-mbsnlen: New file.
63899         * lib/unistr/u8-mbsnlen.c: New file.
63900
63901         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63902         declarations.
63903
63904 2007-06-10  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/string_.h (mbsnlen): New declaration.
63907         * lib/mbsnlen.c: New file.
63908         * m4/mbsnlen.m4: New file.
63909         * modules/mbsnlen: New file.
63910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63911         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63912         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63913
63914 2007-06-10  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63917
63918 2007-06-10  Bruno Haible  <bruno@clisp.org>
63919
63920         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63921         * lib/mbuiter.h: Likewise.
63922
63923 2007-06-10  Bruno Haible  <bruno@clisp.org>
63924
63925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63926         declaration.
63927
63928 2007-06-10  Karl Berry  <karl@gnu.org>
63929
63930         * config/srclist.txt: remove gettext entries, Bruno prefers
63931         to update individually.
63932
63933 2007-06-10  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63936         'maxlen'. Ensure only length + width bytes are allocated, not
63937         length + 1 + width.
63938
63939 2007-06-09  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63942         (CHAR_T): Remove macro.
63943         (VASNPRINTF): Update.
63944
63945 2007-06-09  Bruno Haible  <bruno@clisp.org>
63946
63947         * MODULES.html.sh (Unicode string functions): Add the new modules.
63948
63949         * modules/uniconv/u32-conv-to-enc: New file.
63950         * lib/uniconv/u32-conv-to-enc.c: New file.
63951         * modules/uniconv/u32-conv-to-enc-tests: New file.
63952         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63953
63954         * modules/uniconv/u16-conv-to-enc: New file.
63955         * lib/uniconv/u16-conv-to-enc.c: New file.
63956         * lib/uniconv/u-conv-to-enc.h: New file.
63957         * modules/uniconv/u16-conv-to-enc-tests: New file.
63958         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63959
63960         * modules/uniconv/u8-conv-to-enc: New file.
63961         * lib/uniconv/u8-conv-to-enc.c: New file.
63962         * modules/uniconv/u8-conv-to-enc-tests: New file.
63963         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63964
63965         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63966         u32_conv_to_encoding): New declarations.
63967
63968 2007-06-09  Bruno Haible  <bruno@clisp.org>
63969
63970         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63971
63972 2007-06-09  Bruno Haible  <bruno@clisp.org>
63973
63974         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63975         * modules/malloca: Renamed from modules/allocsa, updated.
63976         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63977         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63978         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63979         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63980         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63981         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63982         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63983         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63984         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63985         * modules/c-strcasestr (Depends-on): Update.
63986         * lib/c-strcasestr.c: Update.
63987         * modules/c-strstr (Depends-on): Update.
63988         * lib/c-strstr.c: Update.
63989         * modules/canonicalize-lgpl (Depends-on): Update.
63990         * lib/canonicalize-lgpl.c: Update.
63991         * modules/clean-temp (Depends-on): Update.
63992         * lib/clean-temp.c: Update.
63993         * modules/csharpcomp (Depends-on): Update.
63994         * lib/csharpcomp.c: Update.
63995         * modules/csharpexec (Depends-on): Update.
63996         * lib/csharpexec.c: Update.
63997         * modules/javacomp (Depends-on): Update.
63998         * lib/javacomp.c: Update.
63999         * modules/javaexec (Depends-on): Update.
64000         * lib/javaexec.c: Update.
64001         * modules/mbscasestr (Depends-on): Update.
64002         * lib/mbscasestr.c: Update.
64003         * modules/mbsstr (Depends-on): Update.
64004         * lib/mbsstr.c: Update.
64005         * modules/setenv (Depends-on): Update.
64006         * lib/setenv.c: Update.
64007         * modules/strcasestr (Depends-on): Update.
64008         * lib/strcasestr.c: Update.
64009         * modules/striconveha (Depends-on): Update.
64010         * lib/striconveha.c: Update.
64011         * modules/relocatable-prog-wrapper (Files): Update.
64012         * lib/relocwrapper.c: Update.
64013         * build-aux/install-reloc: Update.
64014         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64015
64016 2007-06-08  Bruno Haible  <bruno@clisp.org>
64017
64018         Port to uClibc.
64019         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64020         * lib/fpurge.c (fpurge): Likewise.
64021         * lib/freading.c (freading): Likewise.
64022         * lib/fseeko.c (rpl_fseeko): Likewise.
64023         * lib/fseterr.c (fseterr): Likewise.
64024         * lib/fwriting.c (fwriting): Likewise.
64025         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64026
64027 2007-06-08  Bruno Haible  <bruno@clisp.org>
64028
64029         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64030         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64031         * modules/gettext (Files): Add m4/intlmacosx.m4.
64032
64033 2007-06-07  Bruno Haible  <bruno@clisp.org>
64034
64035         * modules/localename-tests: New file.
64036         * tests/test-localename.c: New file.
64037
64038         New module 'localename'.
64039         * lib/localename.h: New file.
64040         * lib/localename.c: New file, from GNU gettext.
64041         * m4/localename.m4: New file.
64042         * modules/localename: New file.
64043
64044 2007-06-07  Bruno Haible  <bruno@clisp.org>
64045
64046         Work around the lack of <wchar.h> on some builds of uClibc.
64047         * doc/headers/wchar.texi: Update.
64048         * lib/wchar_.h: Include <wchar.h> only if it exists.
64049         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64050         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64051         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64052         doesn't exist.
64053         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64054         * modules/mbfile (Depends-on): Add wchar.
64055         * modules/mbiter (Depends-on): Likewise.
64056         * modules/mbuiter (Depends-on): Likewise.
64057         Reported by Simon Josefsson.
64058
64059 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         Work around problem reported by Steven M. Schweda in
64062         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64063         Tru64 5.1B with the Compaq compiler environment installed declares
64064         an 'isblank' function but does not define it in the C library.
64065         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64066         * lib/regex_internal.h (isblank): Likewise.
64067         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64068         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64069
64070 2007-06-05  Bruno Haible  <bruno@clisp.org>
64071
64072         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64073         ia64.
64074         * modules/printf-safe: New file.
64075         * modules/fprintf-posix (Depends-on): Add printf-safe.
64076         * modules/printf-posix (Depends-on): Likewise.
64077         * modules/snprintf-posix (Depends-on): Likewise.
64078         * modules/sprintf-posix (Depends-on): Likewise.
64079         * modules/vasnprintf-posix (Depends-on): Likewise.
64080         * modules/vasprintf-posix (Depends-on): Likewise.
64081         * modules/vfprintf-posix (Depends-on): Likewise.
64082         * modules/vprintf-posix (Depends-on): Likewise.
64083         * modules/vsnprintf-posix (Depends-on): Likewise.
64084         * modules/vsprintf-posix (Depends-on): Likewise.
64085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64086         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64087         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64088         "no" on i386, x86_64, ia64.
64089         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64090         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64091         on i386, x86_64, ia64.
64092         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64093         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64094         on i386, x86_64, ia64.
64095         * tests/test-vasnprintf-posix.c: Include float.h.
64096         (LDBL80_WORDS): New macro.
64097         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64098         on i386, x86_64, ia64.
64099         * tests/test-vasprintf-posix.c: Include float.h.
64100         (LDBL80_WORDS): New macro.
64101         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64102         on i386, x86_64, ia64.
64103         * tests/test-snprintf-posix.c: Include float.h.
64104         * tests/test-sprintf-posix.c: Likewise.
64105         * tests/test-vsnprintf-posix.c: Likewise.
64106         * tests/test-vsprintf-posix.c: Likewise.
64107
64108 2007-06-05  Bruno Haible  <bruno@clisp.org>
64109
64110         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64111         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64112         non-IEEE numbers on i386, x86_64, ia64.
64113         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64114         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64115         * tests/test-isnanl.h: Include float.h.
64116         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64117
64118 2007-06-05  Bruno Haible  <bruno@clisp.org>
64119
64120         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64121         also the %a / %A. Handle the %a / %A code before this extra handling.
64122
64123 2007-06-05  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64126         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64127
64128 2007-06-05  Bruno Haible  <bruno@clisp.org>
64129
64130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64131         typo in variable name.
64132
64133 2007-06-05  Eric Blake  <ebb9@byu.net>
64134
64135         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64136         Reported by Simon Josefsson.
64137
64138 2007-06-04  Bruno Haible  <bruno@clisp.org>
64139
64140         Avoid test failures on some PowerPC platforms.
64141         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64142         Define differently for PowerPC.
64143         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64144         Reported by Gary V. Vaughan <gary@gnu.org>.
64145
64146 2007-06-02  Bruno Haible  <bruno@clisp.org>
64147
64148         Fix test-stdint failure on FreeBSD/ia64.
64149         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64150         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64151         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64152         * doc/headers/stdint.texi: Update.
64153
64154 2007-06-01  Bruno Haible  <bruno@clisp.org>
64155
64156         * tests/test-binary-io.c (main): Pass a third argument to open().
64157         Reported by Gary V. Vaughan <gary@gnu.org>.
64158
64159 2007-06-01  Bruno Haible  <bruno@clisp.org>
64160
64161         * doc/functions/frexpl.texi: Update for mingw.
64162
64163 2007-06-01  Bruno Haible  <bruno@clisp.org>
64164
64165         * tests/test-lseek.c (main): Disable test of errno for invalid third
64166         argument.
64167         * doc/functions/lseek.texi: Update.
64168         Reported by Gary V. Vaughan <gary@gnu.org>.
64169
64170 2007-05-28  Bruno Haible  <bruno@clisp.org>
64171
64172         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64173
64174 2007-05-31  Eric Blake  <ebb9@byu.net>
64175
64176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64177         cross compiling.
64178
64179 2007-05-30  Eric Blake  <ebb9@byu.net>
64180         and Bruno Haible  <bruno@clisp.org>
64181
64182         Work around mingw test failures exposed by m4-1.4.9b.
64183         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64184         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64185         moment.
64186
64187 2007-05-30  Bruno Haible  <bruno@clisp.org>
64188
64189         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64190         assuming that they are closed. Needed on HP-UX 11.
64191
64192 2007-05-29  Bruno Haible  <bruno@clisp.org>
64193
64194         Fix a problem with #include_next.
64195         * lib/dirent_.h: Split the double-inclusion guard.
64196         * lib/fcntl_.h: Likewise.
64197         * lib/float_.h: Likewise.
64198         * lib/iconv_.h: Likewise.
64199         * lib/inttypes_.h: Likewise.
64200         * lib/locale_.h: Likewise.
64201         * lib/math_.h: Likewise.
64202         * lib/netinet_in_.h: Likewise.
64203         * lib/search_.h: Likewise.
64204         * lib/signal_.h: Likewise.
64205         * lib/stdint_.h: Likewise.
64206         * lib/stdio_.h: Likewise.
64207         * lib/stdlib_.h: Likewise.
64208         * lib/string_.h: Likewise.
64209         * lib/sys_select_.h: Likewise.
64210         * lib/sys_socket_.h: Likewise.
64211         * lib/sys_stat_.h: Likewise.
64212         * lib/sys_time_.h: Likewise.
64213         * lib/sysexits_.h: Likewise.
64214         * lib/time_.h: Likewise.
64215         * lib/unistd_.h: Likewise.
64216         * lib/wchar_.h: Likewise.
64217         * lib/wctype_.h: Likewise.
64218
64219 2007-05-29  Bruno Haible  <bruno@clisp.org>
64220
64221         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64222         for the moment.
64223
64224 2007-05-29  Bruno Haible  <bruno@clisp.org>
64225
64226         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64227         invocation.
64228         Reported by Eric Blake.
64229
64230 2007-05-29  Bruno Haible  <bruno@clisp.org>
64231
64232         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64233         compiling case.
64234
64235 2007-05-29  Eric Blake  <ebb9@byu.net>
64236             Bruno Haible  <bruno@clisp.org>
64237
64238         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64239         cross compiles.
64240
64241 2007-05-28  Eric Blake  <ebb9@byu.net>
64242
64243         * modules/closein-tests (test_closein_LDADD): Support test on
64244         cygwin with libtool.
64245
64246 2007-05-28  Bruno Haible  <bruno@clisp.org>
64247
64248         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64249         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64250         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64251         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64252         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64253         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64254         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64255         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64256         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64257
64258 2007-05-28  Eric Blake  <ebb9@byu.net>
64259
64260         Unconditionally include <config.h> in unit tests.
64261         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64262         * tests/test-allocsa.c, tests/test-arcfour.c,
64263         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64264         tests/test-array_list.c, tests/test-array_oset.c,
64265         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64266         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64267         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64268         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64269         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64270         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64271         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64272         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64273         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64274         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64275         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64276         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64277         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64278         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64279         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64280         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64281         test-md5.c, test-memmem.c, test-printf-posix.c,
64282         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64283         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64284         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64285         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64286         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64287         test-vasnprintf-posix2.c, test-vasnprintf.c,
64288         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64289         test-vfprintf-posix.c, test-vprintf-posix.c,
64290         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64291         test-xvasprintf.c: Likewise.
64292
64293 2007-05-28  Bruno Haible  <bruno@clisp.org>
64294
64295         * gnulib-tool (func_import): Remember the --with-tests command-line
64296         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64297         Reported by Eric Blake.
64298
64299 2007-05-28  Bruno Haible  <bruno@clisp.org>
64300
64301         * modules/ftell-tests: New file.
64302         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64303         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64304
64305         * lib/ftell.c: New file.
64306         * modules/ftell: New file.
64307         * m4/ftell.m4: New file.
64308         * doc/functions/ftell.texi: Update.
64309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64310         REPLACE_FTELL.
64311         * lib/stdio_.h (rpl_ftell): New declaration.
64312         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64313         REPLACE_FTELL.
64314
64315 2007-05-28  Eric Blake  <ebb9@byu.net>
64316
64317         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64318
64319 2007-05-28  Bruno Haible  <bruno@clisp.org>
64320
64321         * modules/fseek-tests: New file.
64322         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64323         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64324
64325         * lib/fseek.c: New file.
64326         * modules/fseek: New file.
64327         * m4/fseek.m4: New file.
64328         * doc/functions/fseek.texi: Update.
64329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64330         REPLACE_FSEEK.
64331         * lib/stdio_.h (rpl_fseek): New declaration.
64332         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64333         REPLACE_FSEEK.
64334
64335 2007-05-28  Bruno Haible  <bruno@clisp.org>
64336
64337         * lib/stdio_.h (fflush): More comments.
64338
64339 2007-05-28  Bruno Haible  <bruno@clisp.org>
64340
64341         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64342         runtime test.
64343
64344 2007-05-28  Eric Blake  <ebb9@byu.net>
64345
64346         Improve lseek module.
64347         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64348         * lib/unistd_.h (lseek): Scale back link warning message.
64349         * tests/test-lseek.c: Beef up test.
64350         * tests/test-lseek.sh: Exercise more facets of lseek.
64351         Reported by Bruno Haible.
64352
64353 2007-05-28  Bruno Haible  <bruno@clisp.org>
64354
64355         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64356         to define.
64357
64358 2007-05-27  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64361
64362 2007-05-27  Bruno Haible  <bruno@clisp.org>
64363
64364         * modules/openmp: New file.
64365         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64366         Noah Misch.
64367
64368 2007-05-26  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/chdir-long (Depends-on): Add fchdir.
64371         * modules/chdir-safer (Depends-on): Likewise.
64372         * modules/fts (Depends-on): Likewise.
64373         * modules/fts-lgpl (Depends-on): Likewise.
64374         * modules/openat (Depends-on): Likewise.
64375         * modules/savewd (Depends-on): Likewise.
64376
64377 2007-05-24  Eric Blake  <ebb9@byu.net>
64378
64379         Fix lseek on mingw.
64380         * modules/lseek: New module.
64381         * m4/lseek.m4: New file.
64382         * lib/lseek.c: New file.
64383         * modules/lseek-tests: New file.
64384         * tests/test-lseek.c: New file.
64385         * tests/test-lseek.sh: New file.
64386         * MODULES.html.sh: Document lseek module.
64387         * modules/fflush (Depends-on): Add lseek, fseeko.
64388         * modules/fseeko (Depends-on): Likewise.
64389         * modules/ftello (Depends-on): Likewise.
64390         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64391         broken.
64392         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64393         broken.
64394         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64395         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64396         * lib/ftello.c (rpl_ftello): Likewise.
64397         * tests/test-fseeko.c (main): Test this.
64398         * tests/test-fseeko.sh: Likewise.
64399         * tests/test-ftello.c (main): Likewise.
64400         * tests/test-ftello.sh: Likewise.
64401         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64402         implies replacing fseek.
64403         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64404         HAVE_FTELLO.
64405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64406         * modules/unistd (Makefile.am): Likewise.
64407         * lib/unistd_.h (lseek): Declare a replacement.
64408         * doc/functions/lseek.texi (lseek): Document this fix.
64409         * doc/functions/fseek.texi (fseek): Likewise.
64410         * doc/functions/ftell.texi (ftell): Likewise.
64411
64412 2007-05-24  Bruno Haible  <bruno@clisp.org>
64413
64414         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64415         in the printed representation of a NaN.
64416         * tests/test-vasprintf-posix.c (test_function): Likewise.
64417         * tests/test-snprintf-posix.h (test_function): Likewise.
64418         * tests/test-sprintf-posix.h (test_function): Likewise.
64419         Reported by Eric Blake.
64420
64421 2007-05-23  Eric Blake  <ebb9@byu.net>
64422
64423         Fix fseeko/ftello on cygwin 1.5.24.
64424         * doc/functions/fseeko.texi (fseeko): Document the fix.
64425         * doc/functions/ftello.texi (ftello): Document the fix.
64426         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64427         * doc/functions/stdout.text (stdout): New file.
64428         * doc/functions/stderr.text (stderr): New file.
64429         * doc/gnulib.texi (Function Substitutes): Use new files.
64430         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64431         prior to 1.7.0.
64432         * tests/test-ftello.c (main): Likewise for ftello.
64433         * tests/test-fseeko.sh: New file.
64434         * tests/test-ftello.sh: New file.
64435         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64436         with seekable stdin.
64437         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64438         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64439         (gl_REPLACE_FSEEKO): New macro.
64440         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64441         * modules/fseeko (Files): Distribute fseeko.c.
64442         * modules/ftello (Files): Distribute ftello.c.
64443         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64444         mode.
64445         * lib/ftello.c (rpl_ftello): New file.
64446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64447         fseeko, ftello.
64448         (gl_STDIN_LARGE_OFFSET): New macro.
64449         * modules/stdio (Makefile.am): Perform the replacement.
64450         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64451
64452 2007-05-23  Bruno Haible  <bruno@clisp.org>
64453
64454         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64455         GNULIB_POSIXCHECK is defined.
64456
64457 2007-05-21  Bruno Haible  <bruno@clisp.org>
64458
64459         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64460         Check also the output for NaN arguments. When cross-compiling, guess
64461         no on IRIX.
64462         * lib/vasnprintf.c: Update comments.
64463         * tests/test-vasnprintf-posix.c (strisnan): New function.
64464         (test_function): Use it.
64465         * tests/test-vasprintf-posix.c (strisnan): New function.
64466         (test_function): Use it.
64467         * tests/test-snprintf-posix.h (strisnan): New function.
64468         (test_function): Use it.
64469         * tests/test-sprintf-posix.h (strisnan): New function.
64470         (test_function): Use it.
64471         Reported by Eric Blake.
64472
64473 2007-05-20  Bruno Haible  <bruno@clisp.org>
64474
64475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64476         numbers that fails on BeOS.
64477         * doc/functions/frexpl.texi: Update.
64478
64479 2007-05-20  Jim Meyering  <jim@meyering.net>
64480
64481         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64482         forced upon us by glibc-2.6.
64483
64484 2007-05-20  Bruno Haible  <bruno@clisp.org>
64485
64486         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64487         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64488         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64489         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64490         NEED_PRINTF_INFINITE.
64491         (is_infinitel): New function.
64492         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64494         gl_PREREQ_VASNPRINTF_INFINITE.
64495         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64497         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64498         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64499         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64500         gl_PREREQ_VASNPRINTF_INFINITE.
64501         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64502         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64503         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64504         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64505         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64508         * doc/functions/fprintf.texi: Update.
64509         * doc/functions/printf.texi: Update.
64510         * doc/functions/snprintf.texi: Update.
64511         * doc/functions/sprintf.texi: Update.
64512         * doc/functions/vfprintf.texi: Update.
64513         * doc/functions/vprintf.texi: Update.
64514         * doc/functions/vsnprintf.texi: Update.
64515         * doc/functions/vsprintf.texi: Update.
64516
64517 2007-05-20  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64520         was not found in libc.
64521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64522
64523 2007-05-20  Bruno Haible  <bruno@clisp.org>
64524
64525         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64526         printed as "-nan" instead of "nan".
64527         * tests/test-vasprintf-posix.c (test_function): Likewise.
64528         * tests/test-snprintf-posix.h (test_function): Likewise.
64529         * tests/test-sprintf-posix.h (test_function): Likewise.
64530         Needed for HP-UX 11.
64531
64532 2007-05-20  Jim Meyering  <jim@meyering.net>
64533
64534         Fix buggy test for the fchownat-deref bug.
64535         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64536         symlink required for the run-test.  Without it, this test would
64537         always declare that fchownat doesn't work, and client code would
64538         unnecessarily use the replacement function with fixed libc.
64539         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64540         Reported by Greg Schafer.
64541
64542 2007-05-19  Bruno Haible  <bruno@clisp.org>
64543
64544         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64545         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64546         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64547         Needed for IRIX 6.5 and Solaris 2.5.1.
64548
64549 2007-05-19  Bruno Haible  <bruno@clisp.org>
64550
64551         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64552         (test_function): Skip tests involving -0.0 on platforms where
64553         -0.0 = 0.0.
64554         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64555         (test_function): Skip tests involving -0.0 on platforms where
64556         -0.0 = 0.0.
64557         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64558         (test_function): Skip tests involving -0.0 on platforms where
64559         -0.0 = 0.0.
64560         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64561         (test_function): Skip tests involving -0.0 on platforms where
64562         -0.0 = 0.0.
64563         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64564         tests.
64565         * tests/test-printf-posix.h (test_function): Likewise.
64566         * tests/test-printf-posix.output: Remove all -0.0 related results.
64567         Needed for IRIX 6.5.
64568
64569 2007-05-19  Bruno Haible  <bruno@clisp.org>
64570
64571         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64572         printed as "nan0x7fffffff" instead of "nan".
64573         * tests/test-vasprintf-posix.c (test_function): Likewise.
64574         * tests/test-snprintf-posix.h (test_function): Likewise.
64575         * tests/test-sprintf-posix.h (test_function): Likewise.
64576         * tests/test-fprintf-posix.h (NaN): Remove macro.
64577         (test_function): Remove all NaN related tests.
64578         * tests/test-printf-posix.h (NaN): Remove macro.
64579         (test_function): Remove all NaN related tests.
64580         * tests/test-printf-posix.output: Remove all NaN related results.
64581         Needed for IRIX 6.5.
64582
64583 2007-05-19  Bruno Haible  <bruno@clisp.org>
64584
64585         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64587
64588 2007-05-19  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/float_.h: New file.
64591         * m4/float_h.m4: New file.
64592         * modules/float: New file.
64593         * modules/isnanl (Dependencies): Add float.
64594         * modules/isnanl-nolibm (Dependencies): Likewise.
64595         * modules/mathl (Dependencies): Likewise.
64596         * modules/printf-frexpl (Dependencies): Likewise.
64597         * modules/signbit (Dependencies): Likewise.
64598         * modules/vasnprintf (Dependencies): Likewise.
64599         * doc/headers/float.texi: Update.
64600
64601 2007-05-19  Jim Meyering  <jim@meyering.net>
64602
64603         * lib/utimens.c (gl_futimens): Rename from futimens,
64604         now that glibc-2.6 declares futimens.
64605         * lib/utimens.h: Likewise.
64606
64607 2007-05-19  Bruno Haible  <bruno@clisp.org>
64608
64609         Avoid test failures on mingw.
64610         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64611         * tests/test-printf-posix.sh: Likewise.
64612         * tests/test-vfprintf-posix.sh: Likewise.
64613         * tests/test-vprintf-posix.sh: Likewise.
64614
64615 2007-05-19  Bruno Haible  <bruno@clisp.org>
64616
64617         Fix *printf result for NaN, Inf, -0.0 on mingw.
64618         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64619         * lib/vasnprintf.c: Include math.h and isnan.h.
64620         (is_infinite_or_zero): New function.
64621         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64622         values in the %f, %F, %e, %E, %g, %G directives.
64623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64624         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64625         gl_PRINTF_INFINITE and test its result. Invoke
64626         gl_PREREQ_VASNPRINTF_INFINITE.
64627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64631         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64634         * doc/functions/fprintf.texi: Update.
64635         * doc/functions/printf.texi: Update.
64636         * doc/functions/snprintf.texi: Update.
64637         * doc/functions/sprintf.texi: Update.
64638         * doc/functions/vfprintf.texi: Update.
64639         * doc/functions/vprintf.texi: Update.
64640         * doc/functions/vsnprintf.texi: Update.
64641         * doc/functions/vsprintf.texi: Update.
64642
64643 2007-05-19  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64646         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64647         Instead of multiplying with 10^k, set extra_zeroes to k.
64648         (scale10_round_long_double): Remove function.
64649
64650 2007-05-18  Bruno Haible  <bruno@clisp.org>
64651
64652         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64653         introduced on 2007-05-06.
64654
64655 2007-05-18  Bruno Haible  <bruno@clisp.org>
64656
64657         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64658         %g directives.
64659         * tests/test-vasprintf-posix.c (test_function): Likewise.
64660         * tests/test-snprintf-posix.h (test_function): Likewise.
64661         * tests/test-sprintf-posix.h (test_function): Likewise.
64662
64663 2007-05-18  Bruno Haible  <bruno@clisp.org>
64664
64665         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64666         (strmatch): New function.
64667         (test_function): Test the %f directive on numbers of various exponents.
64668         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64669         (strmatch): New function.
64670         (test_function): Test the %f directive on numbers of various exponents.
64671         * tests/test-snprintf-posix.h (strmatch): New function.
64672         (test_function): Test the %f directive on numbers of various exponents.
64673         * tests/test-sprintf-posix.h (strmatch): New function.
64674         (test_function): Test the %f directive on numbers of various exponents.
64675         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64676         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64677         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64678         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64679
64680 2007-05-18  Bruno Haible  <bruno@clisp.org>
64681
64682         Add support for 'long double' number output.
64683         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64684         * lib/vasnprintf.c: Include math.h and float+.h.
64685         (mp_limb_t): New type.
64686         (GMP_LIMB_BITS): New macro.
64687         (mp_twolimb_t): New type.
64688         (GMP_TWOLIMB_BITS): New macro.
64689         (mpn_t): New type.
64690         (multiply, divide, convert_to_decimal, decode_long_double,
64691         scale10_round_long_double, scale10_round_decimal_long_double,
64692         floorlog10l): New functions.
64693         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64694         for the %f, %F, %e, %E, %g, %G directives.
64695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64697         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64698         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64706         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64707         * modules/snprintf-posix (Depends-on): Likewise.
64708         * modules/sprintf-posix (Depends-on): Likewise.
64709         * modules/vasnprintf-posix (Depends-on): Likewise.
64710         * modules/vasprintf-posix (Depends-on): Likewise.
64711         * modules/vfprintf-posix (Depends-on): Likewise.
64712         * modules/vsnprintf-posix (Depends-on): Likewise.
64713         * modules/vsprintf-posix (Depends-on): Likewise.
64714         * modules/vasnprintf (Files): Add lib/float+.h.
64715         * doc/functions/fprintf.texi: Update.
64716         * doc/functions/printf.texi: Update.
64717         * doc/functions/snprintf.texi: Update.
64718         * doc/functions/sprintf.texi: Update.
64719         * doc/functions/vfprintf.texi: Update.
64720         * doc/functions/vprintf.texi: Update.
64721         * doc/functions/vsnprintf.texi: Update.
64722         * doc/functions/vsprintf.texi: Update.
64723
64724 2007-05-18  Bruno Haible  <bruno@clisp.org>
64725
64726         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64727
64728 2007-05-18  Bruno Haible  <bruno@clisp.org>
64729
64730         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64731         for printing 64-bit integers. Needed for mingw.
64732
64733 2007-05-18  Bruno Haible  <bruno@clisp.org>
64734
64735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64736         gl_FUNC_FREXPL_WORKS.
64737         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64738
64739 2007-05-18  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/frexpl-nolibm-tests: New file.
64742
64743         * modules/frexpl-nolibm: New file.
64744         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64745
64746 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64749         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64750         GCC 4.2, which otherwise issues a lot of warnings.
64751         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64752         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64753         Likewise.
64754         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64755         * modules/iconv_open (iconv.h): Likewise.
64756         * modules/locale (locale.h): Likewise.
64757         * modules/netinet_in (netinet/in.h): Likewise.
64758         * modules/sys_select (sys_select.h): Likewise.
64759         * modules/sys_socket (sys/socket.h): Likewise.
64760         * modules/sys_stat (sys/stat.h): Likewise.
64761         * modules/sysexits (sysexits.h): Likewise.
64762         * modules/unistd (unistd.h): Likewise.
64763
64764 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64765
64766         * modules/closein-tests (Makefile.am): Distribute
64767         `test-closein.sh'.
64768
64769 2007-05-17  Bruno Haible  <bruno@clisp.org>
64770
64771         * tests/test-printf-posix.output: Renamed from
64772         tests/test-fprintf-posix.out.
64773         * modules/fprintf-posix-tests: Update.
64774         * modules/printf-posix-tests: Update.
64775         * modules/vfprintf-posix-tests: Update.
64776         * modules/vprintf-posix-tests: Update.
64777         * tests/test-fprintf-posix.sh: Update.
64778         * tests/test-printf-posix.sh: Update.
64779         * tests/test-vfprintf-posix.sh: Update.
64780         * tests/test-vprintf-posix.sh: Update.
64781         Reported by Ralf Wildenhues.
64782
64783 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64786         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64787         GCC 4.2, which otherwise issues a lot of warnings.
64788         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64789         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64790         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64791         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64792         it should no longer be needed.
64793         * lib/string_.h: Likewise.
64794         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64795         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64796         * modules/inttypes (inttypes.h): Likewise.
64797         * modules/math (math.h): Likewise.
64798         * modules/search (search.h): Likewise.
64799         * modules/signal (signal.h): Likewise.
64800         * modules/stdint (stdint.h): Likewise.
64801         * modules/stdio (stdio.h): Likewise.
64802         * modules/stdlib (stdlib.h): Likewise.
64803         * modules/string (string.h): Likewise.
64804         * modules/sys_time (sys/time.h): Likewise.
64805         * modules/time (time.h): Likewise.
64806         * modules/wchar (wchar.h): Likewise.
64807         * modules/wctype (wtype.h): Likewise.
64808
64809 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64810
64811         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64812
64813 2007-05-13  Bruno Haible  <bruno@clisp.org>
64814
64815         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64816         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64817         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64818         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64819         (gl_PREREQ_STRTOK_R): Don't require it here.
64820
64821 2007-05-13  Bruno Haible  <bruno@clisp.org>
64822
64823         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64824         when used in C++ mode.
64825
64826 2007-05-12  Bruno Haible  <bruno@clisp.org>
64827
64828         * lib/linebuffer.h: Tweak doc.
64829         * lib/linebuffer.c: Likewise.
64830
64831 2007-05-12  James Youngman  <jay@gnu.org>
64832
64833         * lib/linebuffer.c (readlinebuffer_delim): New function,
64834         like readlinebuffer, but use a caller-specified delimiter.
64835         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64836         as the delimiter.
64837         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64838
64839 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64840
64841         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64842         * modules/openat (Files): Remove openat-die.c.
64843         (Depends-on): Add openat-die.
64844         * modules/openat-die: New module.
64845
64846 2007-05-06  Bruno Haible  <bruno@clisp.org>
64847
64848         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64849         Update with info about Cygwin.
64850         * doc/functions/fprintf.texi: Update.
64851         * doc/functions/printf.texi: Update.
64852         * doc/functions/snprintf.texi: Update.
64853         * doc/functions/sprintf.texi: Update.
64854         * doc/functions/vfprintf.texi: Update.
64855         * doc/functions/vprintf.texi: Update.
64856         * doc/functions/vsnprintf.texi: Update.
64857         * doc/functions/vsprintf.texi: Update.
64858         Reported by Eric Blake.
64859
64860 2007-05-06  Bruno Haible  <bruno@clisp.org>
64861
64862         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64863         padding ourselves for the floating-point directives.
64864         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64867         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64868         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64869         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64870         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64873         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64875         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64876         * tests/test-snprintf-posix.h (test_function): Also check the width
64877         and some flags in the %f directive.
64878         * tests/test-sprintf-posix.h (test_function): Likewise.
64879         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64880         * tests/test-vasprintf-posix.c (test_function): Likewise.
64881         * doc/functions/fprintf.texi: Update.
64882         * doc/functions/printf.texi: Update.
64883         * doc/functions/snprintf.texi: Update.
64884         * doc/functions/sprintf.texi: Update.
64885         * doc/functions/vfprintf.texi: Update.
64886         * doc/functions/vprintf.texi: Update.
64887         * doc/functions/vsnprintf.texi: Update.
64888         * doc/functions/vsprintf.texi: Update.
64889
64890 2007-05-06  Bruno Haible  <bruno@clisp.org>
64891
64892         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64893         pass the ' flag character to sprintf or snprintf.
64894         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64896         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64897         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64898         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64900         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64901         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64902         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64903         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64906         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64907         flag.
64908         * tests/test-sprintf-posix.h (test_function): Likewise.
64909         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64910         * tests/test-vasprintf-posix.c (test_function): Likewise.
64911         * doc/functions/fprintf.texi: Update.
64912         * doc/functions/printf.texi: Update.
64913         * doc/functions/snprintf.texi: Update.
64914         * doc/functions/sprintf.texi: Update.
64915         * doc/functions/vfprintf.texi: Update.
64916         * doc/functions/vprintf.texi: Update.
64917         * doc/functions/vsnprintf.texi: Update.
64918         * doc/functions/vsprintf.texi: Update.
64919
64920 2007-05-01  Bruno Haible  <bruno@clisp.org>
64921
64922         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64923
64924 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64927         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64928
64929 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64930
64931         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64932         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64934
64935 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64936
64937         * lib/argp-help.c (struct hol_entry): New member `ord'.
64938         (HOL_ENTRY_PTRCMP): Use ord for comparison
64939         (hol_sort): Initialize ord.
64940
64941 2007-05-01  Bruno Haible  <bruno@clisp.org>
64942
64943         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64944         Reported by Eric Blake.
64945         * doc/gnulib.texi (Function Substitutes): Update.
64946
64947 2007-05-01  Bruno Haible  <bruno@clisp.org>
64948
64949         * doc/functions.texi: Remove file, now redundant through
64950         doc/functions/*.texi.
64951
64952 2007-05-01  Bruno Haible  <bruno@clisp.org>
64953
64954         * modules/argp (Depends-on): Add sleep.
64955
64956 2007-05-01  Bruno Haible  <bruno@clisp.org>
64957
64958         * modules/sleep-tests: New file.
64959         * tests/test-sleep.c: New file.
64960
64961         * modules/sleep: New file.
64962         * lib/sleep.c: New file.
64963         * m4/sleep.m4: New file.
64964         * lib/unistd_.h (sleep): New declaration.
64965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64966         HAVE_SLEEP.
64967         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64968         * doc/functions/sleep.texi: Document the sleep module.
64969
64970 2007-05-01  Bruno Haible  <bruno@clisp.org>
64971
64972         * lib/sigprocmask.h: Remove file.
64973         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64974         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64975         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64976         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64977         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64978         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64979         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64980         HAVE_SIGSET_T as a shell variable.
64981         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64982         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64983         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64984         (Depends-on): Add signal. Remove verify.
64985         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64986         (Include): Mention <signal.h> instead of sigprocmask.h.
64987         * NEWS: Mention the change.
64988         * lib/fatal-signal.c: Don't include sigprocmask.h.
64989
64990 2007-05-01  Bruno Haible  <bruno@clisp.org>
64991
64992         * modules/signal: New file.
64993         * lib/signal_.h: New file.
64994         * m4/signal_h.m4: New file.
64995
64996 2007-05-01  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64999         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65000         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65001         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65002
65003 2007-05-01  Bruno Haible  <bruno@clisp.org>
65004
65005         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65006         configure time.
65007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65008         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65009         * modules/sys_stat (Makefile.am): Substitute their values into
65010         sys/stat.h.
65011
65012 2007-05-01  Bruno Haible  <bruno@clisp.org>
65013
65014         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65015         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65016         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65017
65018 2007-05-01  Bruno Haible  <bruno@clisp.org>
65019
65020         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65021         'assert' module here.
65022
65023 2007-05-01  Bruno Haible  <bruno@clisp.org>
65024
65025         * doc/functions/*.texi: New files.
65026         * doc/functions/google-ranking.txt: New file.
65027         * doc/gnulib.texi (Function Substitutes): New chapter.
65028         (ctime, inet_ntoa): Remove sections.
65029         * doc/ctime.texi: Remove file.
65030         * doc/inet_ntoa.texi: Remove file.
65031         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65032         dependencies.
65033         (%.info): New rule, specifying a --reference-limit.
65034
65035 2007-05-01  Bruno Haible  <bruno@clisp.org>
65036
65037         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65038
65039 2007-05-01  Bruno Haible  <bruno@clisp.org>
65040
65041         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65042         the portability of 'mkdir' to mingw systems.
65043
65044 2007-05-01  Bruno Haible  <bruno@clisp.org>
65045
65046         * doc/headers/google-ranking.txt: New file.
65047
65048 2007-04-30  Eric Blake  <ebb9@byu.net>
65049
65050         Prefer fseeko to fseek.
65051         * modules/getpass (Depends-on): Add fseeko.
65052         * lib/getpass.c (getpass): Use fseeko, not fseek.
65053
65054 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65055
65056         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65057         assumes the sorting is stable, while most qsort implementations
65058         are not.  Use argument addresses to ensure they never compare as
65059         equal.
65060
65061         * tests/test-argp-2.sh (usage-indent test): Fix output
65062         (func_compare): Restore diff options
65063         * tests/test-argp.c: Restore #include "progname.h"
65064
65065 2007-04-29  Bruno Haible  <bruno@clisp.org>
65066
65067         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65069         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65071         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65072         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65073         (TESTS, check_PROGRAMS): Add test-snprintf.
65074         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65075         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65076         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65077         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65078         assertions that fail on HP-UX, OSF/1, or IRIX.
65079         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65080
65081 2007-04-29  Bruno Haible  <bruno@clisp.org>
65082
65083         * MODULES.html.sh (posix_functions): Remove 'contents'.
65084
65085 2007-04-29  Karl Berry  <karl@gnu.org>
65086
65087         * config/srclist.txt (gendocs_template_min): new entry.
65088
65089 2007-04-29  Bruno Haible  <bruno@clisp.org>
65090
65091         Work around fpurge bug on BSD systems.
65092         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65093         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65094         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65095         fpurge to rpl_fpurge if the system already has this function.
65096         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65097         the case where the system already has this function. Correct invariants
65098         on BSD systems.
65099         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65100         BSD systems.
65101
65102 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65103
65104         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65105         proposed by Sven Verdoolaege.
65106
65107         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65108         options.
65109         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65110         (usage and help tests): Update
65111
65112 2007-04-29  Bruno Haible  <bruno@clisp.org>
65113
65114         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65115         Print more information in case of failure. Disable a test on BeOS.
65116
65117 2007-04-29  Bruno Haible  <bruno@clisp.org>
65118
65119         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65120         This helps debugging on systems on which no gdb is available.
65121
65122 2007-04-29  Bruno Haible  <bruno@clisp.org>
65123
65124         * lib/freading.h: Improve comments.
65125         * lib/fwriting.h: Likewise.
65126         * tests/test-freading.c (main): Don't check freading immediately after
65127         repositioning. Needed for glibc.
65128
65129 2007-04-29  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/freading.c (freading): Trivial simplification.
65132
65133 2007-04-28  Bruno Haible  <bruno@clisp.org>
65134
65135         * tests/test-fwriting.c (main): Also test the interaction between
65136         fflush and fwriting.
65137         * modules/fwriting-tests (Depends-on): Add fflush.
65138
65139         * tests/test-freading.c (main): Also test the interaction between
65140         fflush and freading.
65141         * modules/freading-tests (Depends-on): Add fflush.
65142
65143 2007-04-28  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65146         fseeko and ftello.
65147         Suggested by Eric Blake.
65148
65149 2007-04-28  Jim Meyering  <jim@meyering.net>
65150
65151         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65152         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65153         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65154
65155 2007-04-27  Eric Blake  <ebb9@byu.net>
65156
65157         * doc/headers/assert.texi (assert.h): Document assert module use.
65158
65159 2007-04-27  Bruno Haible  <bruno@clisp.org>
65160
65161         * doc/headers/*.texi: New files.
65162         * doc/gnulib.texi (Header File Substitutes): New chapter.
65163         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65164         dependencies.
65165         (standards.info ,standards.html, standards.dvi): Update dependencies.
65166         (mostlyclean, clean): New targets.
65167
65168 2007-04-27  Bruno Haible  <bruno@clisp.org>
65169
65170         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65171         * modules/sysexits (Files, Makefile.am): Update.
65172
65173         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65174         * modules/sys_socket (Files, Makefile.am): Update.
65175
65176         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65177         * modules/sys_stat (Files, Makefile.am): Update.
65178
65179 2007-04-27  Eric Blake  <ebb9@byu.net>
65180
65181         * lib/freading.h: Improve comments.
65182         * lib/fwriting.h: Likewise.
65183         * lib/fflush.c: Likewise.
65184
65185         Fix closein for mingw.
65186         * modules/closein-tests: Add tests for closein.
65187         * tests/test-closein.c: New file.
65188         * tests/test-closein.sh: Likewise.
65189         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65190         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65191
65192 2007-04-27  Bruno Haible  <bruno@clisp.org>
65193
65194         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65195         version is < 6.
65196         * lib/math_.h [__DECC]: Likewise.
65197         * lib/stdio_.h [__DECC]: Likewise.
65198         * lib/stdlib_.h [__DECC]: Likewise.
65199         * lib/string_.h [__DECC]: Likewise.
65200         * lib/time_.h [__DECC]: Likewise.
65201         * lib/wchar_.h [__DECC]: Likewise.
65202         * lib/wctype_.h [__DECC]: Likewise.
65203
65204 2007-04-27  Bruno Haible  <bruno@clisp.org>
65205
65206         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65207
65208 2007-04-27  Bruno Haible  <bruno@clisp.org>
65209
65210         * lib/fflush.c: Add comments.
65211         * modules/fpurge-tests (Depends-on): Add fflush.
65212         * modules/freadable-tests (Depends-on): Likewise.
65213         * modules/fwritable-tests (Depends-on): Likewise.
65214
65215 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65216
65217         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65218         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65219         Report by Bruno Haible <bruno@clisp.org>.
65220
65221 2007-04-26  Eric Blake  <ebb9@byu.net>
65222
65223         Fix fflush on mingw.
65224         * modules/fflush (Depends-on): Add freading.
65225         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65226         but unread data.
65227
65228 2007-04-26  Eric Blake  <ebb9@byu.net>
65229         and Bruno Haible  <bruno@clisp.org>
65230
65231         Implement freading and fwriting.
65232         * lib/freading.c: New file.
65233         * lib/freading.h: Likewise.
65234         * m4/freading.m4: Likewise.
65235         * modules/freading: Likewise.
65236         * modules/freading-tests: Likewise.
65237         * tests/test-freading.c: Likewise.
65238         * lib/fwriting.c: New file.
65239         * lib/fwriting.h: Likewise.
65240         * m4/fwriting.m4: Likewise.
65241         * modules/fwriting: Likewise.
65242         * modules/fwriting-tests: Likewise.
65243         * tests/test-fwriting.c: Likewise.
65244         * MODULES.html.sh (File stream based Input/Output): Mention them.
65245
65246 2007-04-26  Bruno Haible  <bruno@clisp.org>
65247
65248         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65249         'long' when we assume it.
65250         Suggested by Eric Blake.
65251
65252 2007-04-26  Bruno Haible  <bruno@clisp.org>
65253
65254         Ensure fseeko, ftello are declared on glibc systems.
65255         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65256         * modules/fseeko (configure.ac-early): Likewise.
65257         * modules/ftello (configure.ac-early): Likewise.
65258         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65259         AC_FUNC_FSEEKO for this.
65260         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65261         (gl_CHECK_FSEEKO): Remove macro.
65262
65263 2007-04-26  Bruno Haible  <bruno@clisp.org>
65264
65265         * tests/test-fflush.c (main): Also check the ftell result after
65266         fflush and fseek/fseeko.
65267         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65268         file descriptor position cache in the stream.
65269         * lib/fseeko.c (rpl_fseeko): Likewise.
65270
65271 2007-04-26  Bruno Haible  <bruno@clisp.org>
65272
65273         * modules/fflush-tests (Depends-on): Add fseeko.
65274
65275 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65276             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65277
65278         * lib/argz_.h: ensure error_t definition is obtained in same
65279         mechanism system argz.h would have.
65280         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65281         argz facilities are known bad.  Err on the side of caution if
65282         cross-compiling.
65283
65284 2007-04-25  Eric Blake  <ebb9@byu.net>
65285
65286         * lib/fpurge.c (includes): Use stdlib.h for free.
65287         * tests/test-fflush.c (main): Also test fflush-fseeko.
65288
65289 2007-04-25  Bruno Haible  <bruno@clisp.org>
65290
65291         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65292         * lib/fseeko.c: New file.
65293         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65294         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65295         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65296         gl_FUNC_FSEEKO.
65297         (gl_FUNC_FSEEKO): Invoke it.
65298         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65299         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65300         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65301
65302 2007-04-25  Bruno Haible  <bruno@clisp.org>
65303
65304         * modules/fflush (Depends-on): Add ftello.
65305
65306 2007-04-25  Bruno Haible  <bruno@clisp.org>
65307
65308         * modules/ftello-tests: New file.
65309         * tests/test-ftello.c: New file.
65310
65311         * modules/ftello: New file.
65312         * m4/ftello.m4: New file.
65313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65314         HAVE_FTELLO.
65315         * lib/stdio_.h (ftello): New declaration.
65316         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65317         HAVE_FTELLO.
65318
65319 2007-04-25  Bruno Haible  <bruno@clisp.org>
65320
65321         * modules/fseeko-tests: New file.
65322         * tests/test-fseeko.c: New file.
65323
65324         * modules/fseeko: New file.
65325         * m4/fseeko.m4: New file.
65326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65327         HAVE_FSEEKO.
65328         * lib/stdio_.h (fseeko): New declaration.
65329         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65330         HAVE_FSEEKO.
65331
65332 2007-04-25  Bruno Haible  <bruno@clisp.org>
65333
65334         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65335
65336 2007-04-25  Bruno Haible  <bruno@clisp.org>
65337
65338         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65339         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65340         * tests/test-unistd.c: Likewise.
65341         * tests/test-fcntl.c: Likewise.
65342
65343 2007-04-23  Eric Blake  <ebb9@byu.net>
65344
65345         * lib/fflush.c: Fix missing include.
65346         Reported by Bruno Haible.
65347
65348 2007-04-23  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65351         Reported by Eric Blake.
65352
65353 2007-04-23  Bruno Haible  <bruno@clisp.org>
65354
65355         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65356
65357 2007-04-23  Bruno Haible  <bruno@clisp.org>
65358
65359         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65360
65361 2007-04-23  Bruno Haible  <bruno@clisp.org>
65362
65363         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65364         Needed on HP-UX 11.
65365
65366 2007-04-16  Eric Blake  <ebb9@byu.net>
65367
65368         Make fflush rely on fpurge.
65369         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65370         open coding all variants.
65371         * modules/fflush (Depends-on): Add fpurge and unistd.
65372         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65373         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65374
65375         Fix --with-tests compilation on cygwin.
65376         * modules/argmatch-tests (Makefile.am): List gnulib library first
65377         in LDADD.
65378         * modules/argp-tests (Makefile.am): Likewise.
65379         * modules/array-list-tests (Makefile.am): Likewise.
65380         * modules/array-oset-tests (Makefile.am): Likewise.
65381         * modules/avltree-list-tests (Makefile.am): Likewise.
65382         * modules/avltree-oset-tests (Makefile.am): Likewise.
65383         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65384         * modules/carray-list-tests (Makefile.am): Likewise.
65385         * modules/dirname-tests (Makefile.am): Likewise.
65386         * modules/frexp-tests (Makefile.am): Likewise.
65387         * modules/isnanl-tests (Makefile.am): Likewise.
65388         * modules/linked-list-tests (Makefile.am): Likewise.
65389         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65390         * modules/lock-tests (Makefile.am): Likewise.
65391         * modules/rbtree-list-tests (Makefile.am): Likewise.
65392         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65393         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65394         * modules/tls-tests (Makefile.am): Likewise.
65395         * modules/tsearch-tests (Makefile.am): Likewise.
65396         * modules/xvasprintf-tests (Makefile.am): Likewise.
65397
65398         Fix fpurge for cygwin.
65399         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65400         value.
65401         * modules/fpurge-tests (Depends-on): Clean up trash.
65402
65403 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65404
65405         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65406
65407         * m4/autobuild.m4: Re-indent.
65408
65409 2007-04-13  Bruno Haible  <bruno@clisp.org>
65410
65411         * modules/fpurge-tests: New file.
65412         * tests/test-fpurge.c: New file.
65413
65414         * modules/fpurge: New file.
65415         * lib/fpurge.h: New file.
65416         * lib/fpurge.c: New file.
65417         * m4/fpurge.m4: New file.
65418
65419 2007-04-13  Bruno Haible  <bruno@clisp.org>
65420
65421         * modules/fbufmode-tests: New file.
65422         * tests/test-fbufmode.c: New file.
65423
65424         * modules/fbufmode: New file.
65425         * lib/fbufmode.h: New file.
65426         * lib/fbufmode.c: New file.
65427         * m4/fbufmode.m4: New file.
65428
65429 2007-04-13  Bruno Haible  <bruno@clisp.org>
65430
65431         * modules/fwritable-tests: New file.
65432         * tests/test-fwritable.c: New file.
65433
65434         * modules/fwritable: New file.
65435         * lib/fwritable.h: New file.
65436         * lib/fwritable.c: New file.
65437         * m4/fwritable.m4: New file.
65438
65439 2007-04-13  Bruno Haible  <bruno@clisp.org>
65440
65441         * modules/freadable-tests: New file.
65442         * tests/test-freadable.c: New file.
65443
65444         * modules/freadable: New file.
65445         * lib/freadable.h: New file.
65446         * lib/freadable.c: New file.
65447         * m4/freadable.m4: New file.
65448
65449 2007-04-13  Bruno Haible  <bruno@clisp.org>
65450
65451         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65452         MOSTLYCLEANFILES.
65453
65454 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65455
65456         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65457         gzip bootstrap.conf to avoid dragging in i18n machinery.
65458         (gnulib_tool_option): Use it.
65459
65460 2007-04-13  Bruno Haible  <bruno@clisp.org>
65461
65462         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65463         %F directives.
65464         * tests/test-vasprintf-posix.c (test_function): Likewise.
65465         * tests/test-snprintf-posix.h (test_function): Likewise.
65466         * tests/test-sprintf-posix.h (test_function): Likewise.
65467         * tests/test-fprintf-posix.h (test_function): Likewise.
65468         * tests/test-printf-posix.h (test_function): Likewise.
65469         * tests/test-fprintf-posix.out: Likewise.
65470
65471 2007-04-13  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65474         * modules/tls-tests (configure.ac): Likewise.
65475         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65476
65477 2007-04-13  Bruno Haible  <bruno@clisp.org>
65478
65479         * lib/tls.c (glthread_tls_get): Fix return type.
65480         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65481
65482 2007-04-12  Eric Blake  <ebb9@byu.net>
65483
65484         * modules/gettime (Depends-on): Remove gettime.
65485         Reported by Dmitry V. Levin.
65486
65487 2007-04-12  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/fflush (Include): Mention <stdio.h>.
65490         * modules/strtoimax (Include): Mention <inttypes.h>.
65491         * modules/strtoumax (Include): Likewise.
65492
65493 2007-04-12  Eric Blake  <ebb9@byu.net>
65494
65495         * .cvsignore: New file.
65496         * .gitignore: Likewise.
65497
65498 2007-04-12  Bruno Haible  <bruno@clisp.org>
65499
65500         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65501         not before, since $(LDADD) often contains libgnu.a.
65502         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65503         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65504         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65505         Needed on Cygwin.
65506
65507 2007-04-12  Eric Blake  <ebb9@byu.net>
65508
65509         Work around glibc's failure to flush stdin on fclose.
65510         * lib/closein.c (close_stdin): Flush stdin before closing.
65511
65512         Work around glibc's failure to reset seekable stdin on exit.
65513         * modules/closein: New module.
65514         * lib/closein.c: New file.
65515         * lib/closein.h: Likewise.
65516         * m4/closein.m4: Likewise.
65517         * MODULES.html.sh (File stream based Input/Output): Document it.
65518
65519 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65520
65521         * gnulib-tool: Rename generated 'autobuild' script to
65522         'do-autobuild' in --create-megatestdir output.
65523
65524         * doc/gnulib.texi (Build robot for gnulib): Fix.
65525
65526 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65527
65528         * modules/sysexits (Depends-on): Add absolute-header.
65529
65530 2007-04-12  Eric Blake  <ebb9@byu.net>
65531
65532         No need to preserve errno on success.
65533         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65534         Reported by Bruno Haible.
65535
65536 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65537
65538         * MODULES.html.sh (Support for maintaining and releasing
65539         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65540
65541 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65542
65543         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65544
65545 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65546
65547         * modules/autobuild: New module.
65548
65549         * m4/autobuild.m4: New file.
65550
65551 2007-04-11  Bruno Haible  <bruno@clisp.org>
65552
65553         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65554         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65558         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65559         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65561         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65562         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65563         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65564         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65565         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65567         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65568         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65569         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65570         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65571         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65572         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65573         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65574         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
65582
65583 2007-04-11  Bruno Haible  <bruno@clisp.org>
65584
65585         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65586
65587 2007-04-10  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65590         for NaN and Infinity. Needed on FreeBSD 6.1.
65591         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65592         regarding results for "%010a" of Infinity and NaN.
65593         * tests/test-vasprintf-posix.c (test_function): Likewise.
65594         * tests/test-snprintf-posix.h (test_function): Likewise.
65595         * tests/test-sprintf-posix.h (test_function): Likewise.
65596         * tests/test-fprintf-posix.h (test_function): Likewise.
65597         * tests/test-printf-posix.h (test_function): Likewise.
65598         * tests/test-fprintf-posix.out: Likewise.
65599
65600 2007-04-10  Bruno Haible  <bruno@clisp.org>
65601
65602         * modules/locale-tests: New file.
65603         * tests/test-locale.c: New file.
65604
65605         * modules/locale: New file.
65606         * lib/locale_.h: New file.
65607         * m4/locale_h.m4: New file.
65608
65609 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65610             Bruno Haible  <bruno@clisp.org>
65611
65612         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65613         be determined, test for availability of the copysignf, copysign,
65614         copysignl functions.
65615         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65616         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65617         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65618
65619 2007-04-09  Eric Blake  <ebb9@byu.net>
65620
65621         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65622         * modules/stdio (Makefile.am): Support fflush.
65623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65624         * modules/fflush: New file.
65625         * lib/fflush.c: Likewise.
65626         * m4/fflush.m4: Likewise.
65627         * modules/fflush-tests: New test.
65628         * tests/test-fflush.c: Likewise.
65629         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65630
65631 2007-04-06  Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65634         (VASNPRINTF): Use signbit for faster determination whether to print a
65635         minus sign.
65636         * modules/vasnprintf (Files): Remove lib/float+.h.
65637         * modules/fprintf-posix (Depends-on): Add signbit.
65638         * modules/snprintf-posix (Depends-on): Likewise.
65639         * modules/sprintf-posix (Depends-on): Likewise.
65640         * modules/vasnprintf-posix (Depends-on): Likewise.
65641         * modules/vasprintf-posix (Depends-on): Likewise.
65642         * modules/vfprintf-posix (Depends-on): Likewise.
65643         * modules/vsnprintf-posix (Depends-on): Likewise.
65644         * modules/vsprintf-posix (Depends-on): Likewise.
65645
65646 2007-04-06  Bruno Haible  <bruno@clisp.org>
65647
65648         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65649         * tests/test-frexpl.c (main): Likewise.
65650         * tests/test-ldexpl.c (main): Likewise.
65651         * modules/frexp-tests (Depends-on): Add signbit.
65652         * modules/frexpl-tests (Depdends-on): Likewise.
65653         * modules/ldexpl-tests (Depdends-on): Likewise.
65654
65655 2007-04-06  Bruno Haible  <bruno@clisp.org>
65656
65657         * modules/signbit-tests: New file.
65658         * tests/test-signbit.c: New file.
65659
65660         * modules/signbit: New file.
65661         * lib/signbitf.c: New file.
65662         * lib/signbitd.c: New file.
65663         * lib/signbitl.c: New file.
65664         * m4/signbit.m4: New file.
65665         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65666         (signbit): New macro.
65667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65668         REPLACE_SIGNBIT.
65669         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65670         REPLACE_FREXPL into math.h.
65671
65672 2007-04-06  Bruno Haible  <bruno@clisp.org>
65673
65674         * modules/isnanf-nolibm-tests: New file.
65675         * tests/test-isnanf.c: New file.
65676
65677         * modules/isnanf-nolibm: New file.
65678         * lib/isnanf.h: New file.
65679         * lib/isnanf.c: New file.
65680         * lib/isnan.c: Consider the USE_FLOAT macro.
65681         * m4/isnanf.m4: New file.
65682
65683 2007-04-06  Bruno Haible  <bruno@clisp.org>
65684
65685         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65686         (Link): New section.
65687
65688         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65689
65690 2007-04-06  Bruno Haible  <bruno@clisp.org>
65691
65692         Assume the 'long double' type.
65693         * m4/longdouble.m4: Remove file.
65694         * config/srclist.txt: Don't mention longdouble.m4.
65695         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65696         * lib/float+.h: Likewise.
65697         * lib/frexp.c: Likewise.
65698         * lib/printf-args.h: Likewise.
65699         * lib/printf-args.c: Likewise.
65700         * lib/printf-frexp.c: Likewise.
65701         * lib/printf-parse.c: Likewise.
65702         * lib/vasnprintf.c: Likewise.
65703         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65704         * m4/intl.m4: Likewise.
65705         * m4/isnanl.m4: Likewise.
65706         * m4/printf.m4: Likewise.
65707         * m4/printf-frexpl.m4: Likewise.
65708         * m4/vasnprintf.m4: Likewise.
65709         * modules/allocsa (Files): Remove m4/longdouble.m4.
65710         * modules/gettext (Files): Likewise.
65711         * modules/relocatable-prog-wrapper (Files): Likewise.
65712         * modules/vasnprintf (Files): Likewise.
65713         * modules/isnanl (Files): Likewise.
65714         (Include): Simplify.
65715         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65716         (Include): Simplify.
65717         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65718         (Include): Simplify.
65719         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65720         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65721         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65722         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65723         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65724         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65725         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65726         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65727         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65728         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65729         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65730         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65731         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65732         * tests/test-isnanl.c: Likewise.
65733         * tests/test-snprintf-posix.h: Likewise.
65734         * tests/test-sprintf-posix.h: Likewise.
65735         * tests/test-vasnprintf-posix.c: Likewise.
65736         * tests/test-vasnprintf-posix2.c: Likewise.
65737         * tests/test-vasprintf-posix.c: Likewise.
65738
65739 2007-04-06  Bruno Haible  <bruno@clisp.org>
65740
65741         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65742         * lib/math_.h [__DECC]: Include the overridden include file through
65743         #include_next, outside the double-inclusion guard.
65744         * lib/stdio_.h [__DECC]: Likewise.
65745         * lib/stdlib_.h [__DECC]: Likewise.
65746         * lib/string_.h [__DECC]: Likewise.
65747         * lib/time_.h [__DECC]: Likewise.
65748         * lib/wchar_.h [__DECC]: Likewise.
65749         * lib/wctype_.h [__DECC]: Likewise.
65750         * lib/inttypes_.h [__DECC]: Likewise.
65751         Reported by Albert Chin <china@thewrittenword.com> in
65752         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65753
65754 2007-04-04  Eric Blake  <ebb9@byu.net>
65755
65756         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65757         1.5.x.
65758
65759 2007-04-04  Bruno Haible  <bruno@clisp.org>
65760
65761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65762         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65763
65764 2007-04-04  Bruno Haible  <bruno@clisp.org>
65765
65766         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65767         results for "%010a" of Infinity and NaN.
65768         * tests/test-vasprintf-posix.c (test_function): Likewise.
65769         * tests/test-snprintf-posix.h (test_function): Likewise.
65770         * tests/test-sprintf-posix.h (test_function): Likewise.
65771         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65772         * tests/test-printf-posix.h (test_function): Likewise.
65773         * tests/test-fprintf-posix.out: Update.
65774         Needed for FreeBSD 6.1.
65775
65776 2007-04-04  Bruno Haible  <bruno@clisp.org>
65777
65778         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65779         directly used by the gnulib modules nor by gnulib-tool.
65780
65781 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * DEPENDENCIES: Give overall description of version dependency
65784         desirability.  Use more-typical names for apps.
65785         Add shell, coreutils, diffutils, grep, tar, gzip.
65786
65787 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65788
65789         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65790
65791 2007-04-04  Karl Berry  <karl@gnu.org>
65792
65793         * MODULES.html.sh (func_module): missing '.
65794
65795 2007-04-03  Bruno Haible  <bruno@clisp.org>
65796
65797         * modules/argmatch-tests (Makefile.am): New variable
65798         test_argmatch_LDADD.
65799         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65800         * modules/array-list-tests (Makefile.am): New variable
65801         test_array_list_LDADD.
65802         * modules/array-oset-tests (Makefile.am): New variable
65803         test_array_oset_LDADD.
65804         * modules/avltree-list-tests (Makefile.am): New variable
65805         test_avltree_list_LDADD.
65806         * modules/avltree-oset-tests (Makefile.am): New variable
65807         test_avltree_oset_LDADD.
65808         * modules/avltreehash-list-tests (Makefile.am): New variable
65809         test_avltreehash_list_LDADD.
65810         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65811         test_canonicalize_lgpl_LDADD.
65812         * modules/carray-list-tests (Makefile.am): New variable
65813         test_carray_list_LDADD.
65814         * modules/dirname-tests (Makefile.am): New variable
65815         test_dirname_LDADD.
65816         * modules/linked-list-tests (Makefile.am): New variable
65817         test_linked_list_LDADD.
65818         * modules/linkedhash-list-tests (Makefile.am): New variable
65819         test_linkedhash_list_LDADD.
65820         * modules/rbtree-list-tests (Makefile.am): New variable
65821         test_rbtree_list_LDADD.
65822         * modules/rbtree-oset-tests (Makefile.am): New variable
65823         test_rbtree_oset_LDADD.
65824         * modules/rbtreehash-list-tests (Makefile.am): New variable
65825         test_rbtreehash_list_LDADD.
65826         * modules/xvasprintf-tests (Makefile.am): New variable
65827         test_xvasprintf_LDADD.
65828         Reported by Eric Blake.
65829
65830 2007-04-03  Eric Blake  <ebb9@byu.net>
65831
65832         * DEPENDENCIES: Weaken m4 requirements.
65833
65834 2007-04-03  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65837         * modules/isnanl-tests (configure.ac): Likewise.
65838
65839 2007-04-03  Ben Pfaff  <blp@gnu.org>
65840
65841         * modules/iconv_open: Add $(srcdir)/ to source directory
65842         references in Makefile fragments that call gperf, to fix VPATH
65843         builds.
65844
65845 2007-04-03  Bruno Haible  <bruno@clisp.org>
65846
65847         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65848         * lib/ldexpl.c: Undo last change.
65849
65850 2007-04-03  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/printf-frexpl (Depends-on): Undo last change.
65853         (Files): Add m4/ldexpl.m4.
65854
65855 2007-04-03  Bruno Haible  <bruno@clisp.org>
65856
65857         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65858         * modules/isnanl (Link): New section.
65859
65860         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65861         * modules/frexp (Link): New section.
65862
65863         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65864         * modules/frexpl (Link): New section.
65865
65866         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65867         * modules/ldexpl (Link): New section.
65868
65869 2007-04-03  Bruno Haible  <bruno@clisp.org>
65870
65871         * modules/TEMPLATE-EXTENDED: New file.
65872         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65873
65874 2007-04-03  Bruno Haible  <bruno@clisp.org>
65875
65876         * DEPENDENCIES: New file.
65877         Suggested by Simon Josefsson.
65878
65879 2007-04-03  Bruno Haible  <bruno@clisp.org>
65880
65881         * doc/gnulib.texi: Escape @.
65882
65883 2007-04-03  James Youngman  <jay@gnu.org>
65884         and Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65887         birthtime on all systems that have birthtime, not just those which
65888         use st_birthtimensec rather than st_birthtim.  Putting zero in
65889         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65890         that the birth time is not available for files on an NFS mount.
65891
65892 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65893
65894         * modules/memxor: Move back from crypto/, suggested by Bruno.
65895         * modules/crypto/hmac-sha1: Fix memxor dependency.
65896
65897         * modules/crypto/gc: Moved from ../.
65898
65899 2007-04-02  Eric Blake  <ebb9@byu.net>
65900
65901         * lib/ldexpl.c (includes): Avoid libm.
65902
65903         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65904
65905 2007-04-02  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65908         on IRIX.
65909
65910 2007-04-02  Bruno Haible  <bruno@clisp.org>
65911
65912         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65913         x86 or x86_64 platforms running MacOS X.
65914         Reported by Ryan Schmidt <@ryandesign.com>.
65915
65916 2007-04-02  Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65919         i386.
65920
65921 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65922
65923         * modules/crypto/arcfour: Moved from ../.
65924         * modules/crypto/arcfour-tests: Moved from ../.
65925         * modules/crypto/arctwo: Moved from ../.
65926         * modules/crypto/arctwo-tests: Moved from ../.
65927         * modules/crypto/des: Moved from ../.
65928         * modules/crypto/des-tests: Moved from ../.
65929         * modules/crypto/gc-arcfour: Moved from ../.
65930         * modules/crypto/gc-arcfour-tests: Moved from ../.
65931         * modules/crypto/gc-arctwo: Moved from ../.
65932         * modules/crypto/gc-arctwo-tests: Moved from ../.
65933         * modules/crypto/gc-des: Moved from ../.
65934         * modules/crypto/gc-des-tests: Moved from ../.
65935         * modules/crypto/gc-hmac-md5: Moved from ../.
65936         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65937         * modules/crypto/gc-hmac-sha1: Moved from ../.
65938         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65939         * modules/crypto/gc-md2: Moved from ../.
65940         * modules/crypto/gc-md2-tests: Moved from ../.
65941         * modules/crypto/gc-md4: Moved from ../.
65942         * modules/crypto/gc-md4-tests: Moved from ../.
65943         * modules/crypto/gc-md5: Moved from ../.
65944         * modules/crypto/gc-md5-tests: Moved from ../.
65945         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65946         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65947         * modules/crypto/gc-random: Moved from ../.
65948         * modules/crypto/gc-rijndael: Moved from ../.
65949         * modules/crypto/gc-rijndael-tests: Moved from ../.
65950         * modules/crypto/gc-sha1: Moved from ../.
65951         * modules/crypto/gc-sha1-tests: Moved from ../.
65952         * modules/crypto/gc-tests: Moved from ../.
65953         * modules/crypto/hmac-md5: Moved from ../.
65954         * modules/crypto/hmac-md5-tests: Moved from ../.
65955         * modules/crypto/hmac-sha1: Moved from ../.
65956         * modules/crypto/hmac-sha1-tests: Moved from ../.
65957         * modules/crypto/md2: Moved from ../.
65958         * modules/crypto/md2-tests: Moved from ../.
65959         * modules/crypto/md4: Moved from ../.
65960         * modules/crypto/md4-tests: Moved from ../.
65961         * modules/crypto/md5: Moved from ../.
65962         * modules/crypto/md5-tests: Moved from ../.
65963         * modules/crypto/memxor: Moved from ../.
65964         * modules/crypto/rijndael: Moved from ../.
65965         * modules/crypto/rijndael-tests: Moved from ../.
65966         * modules/crypto/sha1: Moved from ../.
65967
65968 2007-03-30  James Youngman  <jay@gnu.org>
65969
65970         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65971         rename() to change the ctime of a file (because ctime is unaffected
65972         by rename on jfs2 on AIX 5.1).
65973         (main): Start by doing cleanup, in case a previous run failed leaving
65974         test files behind.
65975
65976 2007-03-31  Bruno Haible  <bruno@clisp.org>
65977
65978         Support old proprietary implementations of iconv.
65979         * modules/iconv_open: New file.
65980         * lib/iconv_.h: New file.
65981         * m4/iconv_h.m4: New file.
65982         * lib/iconv_open.c: New file.
65983         * lib/iconv_open-aix.gperf: New file.
65984         * lib/iconv_open-hpux.gperf: New file.
65985         * lib/iconv_open-irix.gperf: New file.
65986         * lib/iconv_open-osf.gperf: New file.
65987         * m4/iconv_open.m4: New file.
65988         * modules/linebreak (Depends-on): Add iconv_open.
65989         * modules/striconv (Depends-on): Likewise.
65990         * modules/striconveh (Depends-on): Likewise.
65991         * modules/unicodeio (Depends-on): Likewise.
65992         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65993         (iconv_t)(-1).
65994         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65995         conversion if cd is (iconv_t)(-1).
65996         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65997         is not possible.
65998
65999 2007-03-31  Bruno Haible  <bruno@clisp.org>
66000
66001         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66002         work on Solaris either. Protect also second use of "autodetect_jp".
66003
66004 2007-03-31  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66007         the function is not present.
66008
66009 2007-03-31  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66012         the function is not present.
66013
66014 2007-03-31  Bruno Haible  <bruno@clisp.org>
66015
66016         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66017         a bug in HP-UX iconv_open().
66018
66019 2007-03-31  Bruno Haible  <bruno@clisp.org>
66020
66021         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66022         (Mathematics <math.h>): New section, add fpieee.
66023         (Input/output <stdio.h>): Add fseterr.
66024         (Mathematics <math.h>): New section, add printf-frexp.
66025         (Container data structures): Add sublist.
66026         (Core language properties): Add fpucw, inline.
66027         (Functions for greatest-width integer types <inttypes.h>): Add
66028         imaxabs, imaxdiv, inttypes.
66029         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66030         isnanl-nolibm, ldexp.
66031         (Mathematics <math.h>): New section, add printf-frexpl.
66032         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66033         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66034         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66035         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66036         (Unicode string functions): Add unistr/u*-mbtoucr.
66037         (Java): Add javacomp-script, javaexec-script.
66038         (C#): Add csharpcomp-script, csharpexec-script.
66039         (Support for building libraries and executables): Add havelib,
66040         relocatable-*.
66041         (Support for maintaining and releasing projects): Renamed from
66042         'Support for maintaining and release projects'. Add announce-gen.
66043
66044 2007-03-31  Bruno Haible  <bruno@clisp.org>
66045
66046         * README: Talk primarily about git.
66047         (git and CVS): Renamed from CVS.
66048         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66049         gnulib is available through git.
66050         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66051
66052 2007-03-30  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66055         * lib/poll_.h: Likewise.
66056         * lib/stat_.h: Likewise.
66057         * lib/sys_time_.h: Likewise.
66058         * lib/sysexit_.h: Likewise.
66059         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66060         * lib/stdbool_.h: Likewise.
66061         * lib/byteswap_.h: Add double-inclusion guard.
66062
66063 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66064
66065         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66066
66067 2007-03-30  Karl Berry  <karl@gnu.org>
66068
66069         * config/srclist-update: double space after USA in the license
66070         substitution, since that's how it's usually (?) written.
66071
66072 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66075         reported by Bruno Haible.
66076
66077 2007-03-29  Bruno Haible  <bruno@clisp.org>
66078
66079         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66080         a bug in AIX iconv().
66081
66082 2007-03-29  Bruno Haible  <bruno@clisp.org>
66083
66084         * modules/ldexpl-tests: New file.
66085         * tests/test-ldexpl.c: New file.
66086
66087 2007-03-29  Bruno Haible  <bruno@clisp.org>
66088
66089         * lib/ldexpl.c: Include fpucw.h.
66090         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66091         multiplication.
66092         * modules/ldexpl (Depends-on): Add fpucw.
66093
66094 2007-03-29  Bruno Haible  <bruno@clisp.org>
66095
66096         * modules/ldexpl: New file.
66097         * m4/ldexpl.m4: New file.
66098         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66099         set.
66100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66101         REPLACE_LDEXPL.
66102         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66103         REPLACE_LDEXPL.
66104         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66105         gl_FUNC_LDEXPL_WORKS.
66106         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66107         * modules/mathl (Files): Remove lib/ldexpl.c.
66108         (Depends-on): Add ldexpl.
66109
66110 2007-03-29  Bruno Haible  <bruno@clisp.org>
66111
66112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66113
66114 2007-03-29  Bruno Haible  <bruno@clisp.org>
66115
66116         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66117         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66118         and possibly also HP-UX.
66119         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66120         work on AIX, IRIX, HP-UX, OSF/1.
66121         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66122         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66123         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66124         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66125         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66126         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66127
66128 2007-03-29  Bruno Haible  <bruno@clisp.org>
66129
66130         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66131
66132 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66133
66134         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66135         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66136
66137 2007-03-29  Eric Blake  <ebb9@byu.net>
66138
66139         * lib/acl-internal.h: Remove redundant include.
66140         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66141         Cygwin when a file is locked.
66142
66143 2007-03-29  Bruno Haible  <bruno@clisp.org>
66144
66145         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66146         file.
66147         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66148
66149 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66152         try to remove a parent directory if the child couldn't be removed
66153         (except for the first rmdir, which could fail because the child
66154         doesn't exist).  Problem reported by Jeff Blaine in
66155         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66156
66157 2007-03-28  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/striconveh.c (utf8conv_carefully): New function.
66160         (mem_cd_iconveh_internal): Invoke it.
66161
66162 2007-03-28  Bruno Haible  <bruno@clisp.org>
66163
66164         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66165         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66166         input.
66167         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66168         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66169         unistr/u8-uctomb.
66170
66171 2007-03-28  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/unistr/u8-mbtoucr: New file.
66174         * lib/unistr/u8-mbtoucr.c: New file.
66175         * modules/unistr/u16-mbtoucr: New file.
66176         * lib/unistr/u16-mbtoucr.c: New file.
66177         * modules/unistr/u16-mbtoucr: New file.
66178         * lib/unistr/u16-mbtoucr.c: New file.
66179         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66180
66181 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66182             Bruno Haible  <bruno@clisp.org>
66183
66184         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66185         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66186         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66187
66188         * m4/stdio_h.m4: Add stubs for vasprintf too.
66189
66190         * modules/stdio: Support vasprintf in sed command.
66191
66192         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66193         vasprintf.h.  Add stdio module indicator.
66194
66195         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66196         vasprintf.h.
66197
66198         * lib/vasprintf.h: File removed.
66199
66200         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66201         * lib/vasprintf.c: Ditto.
66202         * lib/xvasprintf.c: Ditto.
66203         * tests/test-vasprintf-posix.c: Ditto.
66204         * tests/test-vasprintf.c: Ditto.
66205
66206 2007-03-27  Bruno Haible  <bruno@clisp.org>
66207
66208         Make vasnprintf multithread-safe.
66209         * lib/vasnprintf.c (decimal_point_char): New function.
66210         (VASNPRINTF): Use it.
66211         Suggested by Simon Josefsson.
66212
66213 2007-03-27  Eric Blake  <ebb9@byu.net>
66214
66215         Support sub-second birthtime on cygwin.
66216         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66217         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66218         (get_stat_birthtime): Also work with st_birthtim.
66219
66220 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66221
66222         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66223         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66224         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66225         (get_stat_birthtime_ns): Simplify compile-time tests.
66226         (get_stat_birthtime): Change the API to look like
66227         get_stat_mtime etc., except return a negative tv_nsec on error.
66228         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66229         Don't check for "spare" fields.
66230         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66231         or for struct stat.st_birthtime, as these tests aren't used.
66232         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66233
66234 2007-03-27  Bruno Haible  <bruno@clisp.org>
66235
66236         * lib/stat-time.h: Include <sys/stat.h>.
66237
66238 2007-03-27  James Youngman  <jay@gnu.org>
66239
66240         * lib/stat-time.h (get_stat_birthtime): New function for
66241           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66242         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66243           and its variants.
66244         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66245         * modules/stat-time-test: New file.
66246         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66247
66248 2007-03-26  Bruno Haible  <bruno@clisp.org>
66249
66250         Better support of signalling NaNs.
66251         * lib/atanl.c: Include isnanl.h.
66252         (atanl): Perform test for NaN at the beginning of the function and
66253         through a call to isnanl.
66254         * lib/cosl.c: Include isnanl.h.
66255         (cosl): Perform test for NaN at the beginning of the function and
66256         through a call to isnanl.
66257         * lib/ldexpl.c: Include isnanl.h.
66258         (ldexpl): Perform test for NaN through a call to isnanl.
66259         * lib/logl.c: Include isnanl.h.
66260         (logl): Perform test for NaN at the beginning of the function and
66261         through a call to isnanl.
66262         * lib/sinl.c: Include isnanl.h.
66263         (sinl): Perform test for NaN at the beginning of the function and
66264         through a call to isnanl.
66265         * lib/sqrtl.c: Include isnanl.h.
66266         (sqrtl): Perform test for NaN at the beginning of the function and
66267         through a call to isnanl.
66268         * lib/tanl.c: Include isnanl.h.
66269         (tanl): Perform test for NaN at the beginning of the function and
66270         through a call to isnanl.
66271         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66272         * modules/mathl (Depends-on): Add isnanl.
66273
66274 2007-03-26  Eric Blake  <ebb9@byu.net>
66275
66276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66277         regression in logic sense of previous patch.
66278
66279 2007-03-26  Bruno Haible  <bruno@clisp.org>
66280
66281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66282         unportable shell command "if ! ...".
66283         Reported by Ralf Wildenhues.
66284
66285 2007-03-25  Bruno Haible  <bruno@clisp.org>
66286
66287         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66288         <sysexits.h> file, and only add EX_CONFIG.
66289         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66290         absolute file name and whether it is sufficient. Substitute also
66291         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66292         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66293         ABSOLUTE_SYSEXITS_H into sysexits.h.
66294
66295 2007-03-25  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66298         hints is NULL.
66299
66300 2007-03-25  Bruno Haible  <bruno@clisp.org>
66301
66302         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66303         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66304
66305 2007-03-25  Bruno Haible  <bruno@clisp.org>
66306
66307         * lib/vasnprintf.c: Include langinfo.h.
66308         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66309         multithread-safe.
66310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66319         Reported by Simon Josefsson.
66320
66321 2007-03-25  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66324         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66325         * modules/vasnprintf (Depends-on): Add stdint.
66326
66327 2007-03-25  Bruno Haible  <bruno@clisp.org>
66328
66329         * modules/fpieee: New file.
66330         * m4/fpieee.m4: New file.
66331         * modules/isnan-nolibm (Depends-on): Add fpieee.
66332         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66333         * modules/isnanl (Depends-on): Add fpieee.
66334
66335 2007-03-25  Bruno Haible  <bruno@clisp.org>
66336
66337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66338
66339 2007-03-25  Bruno Haible  <bruno@clisp.org>
66340
66341         Avoid test failures on IRIX 6.5.
66342         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66343         (main): Use it.
66344         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66345         macros.
66346         (main): Use them.
66347
66348 2007-03-25  Bruno Haible  <bruno@clisp.org>
66349
66350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66351         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66352         exists but doesn't work.
66353         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66354         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66356         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66357         math.h.
66358
66359 2007-03-25  Bruno Haible  <bruno@clisp.org>
66360
66361         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66362         returns inf. Needed on IRIX 6.5.
66363
66364 2007-03-25  Bruno Haible  <bruno@clisp.org>
66365
66366         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66367         (main): Use isnanl instead of x != x idiom.
66368         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66369
66370         * tests/test-frexp.c: Include isnan.h.
66371         (main): Use isnan instead of x != x idiom.
66372         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66373
66374 2007-03-25  Bruno Haible  <bruno@clisp.org>
66375
66376         * tests/test-frexp.c (NaN): New function/macro.
66377         (main): Use it instead of 0.0 / 0.0.
66378         * tests/test-isnan.c (NaN): New function/macro.
66379         (main): Use it instead of 0.0 / 0.0.
66380         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66381         (test_function): Use it instead of 0.0 / 0.0.
66382         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66383         (test_function): Use it instead of 0.0 / 0.0.
66384         * tests/test-snprintf-posix.h (NaN): New function/macro.
66385         (test_function): Use it instead of 0.0 / 0.0.
66386         * tests/test-sprintf-posix.h (NaN): New function/macro.
66387         (test_function): Use it instead of 0.0 / 0.0.
66388         * tests/test-fprintf-posix.h (NaN): New function/macro.
66389         (test_function): Use it instead of 0.0 / 0.0.
66390         * tests/test-printf-posix.h (NaN): New function/macro.
66391         (test_function): Use it instead of 0.0 / 0.0.
66392
66393         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66394
66395 2007-03-25  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66398
66399 2007-03-25  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/regexec.c (merge_state_with_log): Make static.
66402
66403 2007-03-25  Bruno Haible  <bruno@clisp.org>
66404
66405         * lib/trigl.c (kernel_rem_pio2): Make static.
66406
66407 2007-03-25  Bruno Haible  <bruno@clisp.org>
66408
66409         * lib/sincosl.c (sincosl_table): Make static.
66410
66411 2007-03-25  Bruno Haible  <bruno@clisp.org>
66412
66413         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66414         if the compiler does not support C99.
66415
66416 2007-03-25  Bruno Haible  <bruno@clisp.org>
66417
66418         * modules/time (Makefile.am): Ensure all rule action lines start with a
66419         tab.
66420
66421 2007-03-24  Bruno Haible  <bruno@clisp.org>
66422
66423         * modules/tsearch-tests: New file.
66424         * tests/test-tsearch.sh: New file.
66425         * tests/test-tsearch.c: New file, mostly copied from glibc.
66426
66427         * modules/search-tests: New file.
66428         * tests/test-search.c: New file.
66429
66430         * modules/search: New file.
66431         * lib/search_.h: New file, incorporating lib/tsearch.h.
66432         * m4/search_h.m4: New file.
66433         * lib/tsearch.h: Remove file.
66434         * lib/tsearch.c: Include search.h instead of tsearch.h.
66435         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66436         HAVE_TSEARCH.
66437         * modules/tsearch (Files): Remove lib/tsearch.h.
66438         (Depends-on): Add search.
66439         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66440         (Include): Change tsearch.h into search.h.
66441
66442 2007-03-24  Bruno Haible  <bruno@clisp.org>
66443
66444         * modules/fpucw: New file.
66445         * lib/fpucw.h: New file.
66446         * lib/frexp.c: Include fpucw.h.
66447         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66448         (FUNC): Use them.
66449         * lib/printf-frexp.c: Include fpucw.h.
66450         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66451         (FUNC): Use them.
66452         * lib/vasnprintf.c: Include fpucw.h.
66453         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66454         'long double' calculations.
66455         * tests/test-frexpl.c: Include fpucw.h.
66456         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66457         * tests/test-printf-frexpl.c: Include fpucw.h.
66458         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66459         * modules/frexpl (Depends-on): Add fpucw.
66460         * modules/printf-frexpl (Depends-on): Likewise.
66461         * modules/fprintf-posix (Depends-on): Likewise.
66462         * modules/snprintf-posix (Depends-on): Likewise.
66463         * modules/sprintf-posix (Depends-on): Likewise.
66464         * modules/vasnprintf-posix (Depends-on): Likewise.
66465         * modules/vasprintf-posix (Depends-on): Likewise.
66466         * modules/vfprintf-posix (Depends-on): Likewise.
66467         * modules/vsnprintf-posix (Depends-on): Likewise.
66468         * modules/vsprintf-posix (Depends-on): Likewise.
66469         * modules/frexpl-tests (Depends-on): Likewise.
66470         * modules/printf-frexpl-tests (Depends-on): Likewise.
66471
66472 2007-03-24  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/float+.h: New file.
66475         * lib/isnan.c: Include float+.h.
66476         (SIZE): New macro.
66477         (FUNC): Compare only SIZE bytes of the value.
66478         * lib/vasnprintf.c: Include float+.h.
66479         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66480         SIZEOF_LDBL or SIZEOF_DBL bytes.
66481         * modules/isnan-nolibm (Files): Add lib/float+.h.
66482         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66483         * modules/isnanl (Files): Add lib/float+.h.
66484         * modules/vasnprintf (Files): Add lib/float+.h.
66485
66486 2007-03-24  Bruno Haible  <bruno@clisp.org>
66487
66488         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66489         include isnanl-nolibm.h.
66490
66491 2007-03-24  Bruno Haible  <bruno@clisp.org>
66492
66493         * tests/test-read-file.c (main): Don't produce spurious output for
66494         expected situations. Make the test fail if it encountered unexpected
66495         results.
66496
66497 2007-03-24  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66500         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66501
66502 2007-03-24  Bruno Haible  <bruno@clisp.org>
66503
66504         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66505
66506 2007-03-24  Bruno Haible  <bruno@clisp.org>
66507
66508         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66509         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66510
66511         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66512         * modules/utf8-ucs4: Turn into a symbolic link to module
66513         unistr/u8-mbtouc.
66514
66515         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66516         utf8-ucs4-unsafe.
66517         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66518         unistr/u8-mbtouc-unsafe.
66519
66520         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66521         * modules/utf16-ucs4: Turn into a symbolic link to module
66522         unistr/u16-mbtouc.
66523
66524         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66525         utf16-ucs4-unsafe.
66526         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66527         unistr/u16-mbtouc-unsafe.
66528
66529         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66530         * modules/ucs4-utf8: Turn into a symbolic link to module
66531         unistr/u8-ubtomb.
66532
66533         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66534         * modules/ucs4-utf16: Turn into a symbolic link to module
66535         unistr/u16-ubtomb.
66536
66537 2007-03-24  Bruno Haible  <bruno@clisp.org>
66538
66539         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66540         Enable the function only if HAVE_INLINE.
66541         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66542         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66543         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66544         Enable the function only if HAVE_INLINE.
66545         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66546         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66547         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66548         Enable the function only if HAVE_INLINE.
66549         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66550         Enable the function only if HAVE_INLINE.
66551         * modules/utf8-ucs4: Update.
66552         * modules/utf8-ucs4-unsafe: Update.
66553         * modules/utf16-ucs4: Update.
66554         * modules/utf16-ucs4-unsafe: Update.
66555         * modules/ucs4-utf8: Update.
66556         * modules/ucs4-utf16: Update.
66557
66558 2007-03-24  Bruno Haible  <bruno@clisp.org>
66559
66560         * lib/utf8-ucs4.h: Remove file.
66561         * lib/utf8-ucs4-unsafe.h: Remove file.
66562         * lib/utf16-ucs4.h: Remove file.
66563         * lib/utf16-ucs4-unsafe.h: Remove file.
66564         * lib/ucs4-utf8.h: Remove file.
66565         * lib/ucs4-utf16.h: Remove file.
66566         * lib/unistr.h: Include their previous contents.
66567         * m4/utf-ucs4.m4: Remove file.
66568         * m4/ucs4-utf.m4: Remove file.
66569         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66570         (Depends-on): Add unistr/base.
66571         (configure.ac): Remove gl_UTF_UCS4.
66572         (Makefile.am): Update.
66573         (Include): Change to unistr.h.
66574         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66575         (Depends-on): Add unistr/base.
66576         (configure.ac): Remove gl_UTF_UCS4.
66577         (Makefile.am): Update.
66578         (Include): Change to unistr.h.
66579         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66580         (Depends-on): Add unistr/base.
66581         (configure.ac): Remove gl_UTF_UCS4.
66582         (Makefile.am): Update.
66583         (Include): Change to unistr.h.
66584         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66585         (Depends-on): Add unistr/base.
66586         (configure.ac): Remove gl_UTF_UCS4.
66587         (Makefile.am): Update.
66588         (Include): Change to unistr.h.
66589         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66590         (Depends-on): Add unistr/base.
66591         (configure.ac): Remove gl_UCS4_UTF.
66592         (Makefile.am): Update.
66593         (Include): Change to unistr.h.
66594         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66595         (Depends-on): Add unistr/base.
66596         (configure.ac): Remove gl_UCS4_UTF.
66597         (Makefile.am): Update.
66598         (Include): Change to unistr.h.
66599         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66600         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66601         utf8-ucs4-unsafe.h.
66602         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66603         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66604         utf16-ucs4-unsafe.h.
66605         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66606         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66607         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66608         * lib/unistr/u8-strchr.c: Likewise.
66609         * lib/unistr/u8-strrchr.c: Likewise.
66610         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66611         * lib/unistr/u16-strchr.c: Likewise.
66612         * lib/unistr/u16-strrchr.c: Likewise.
66613         * lib/striconveh.c: Update.
66614         * lib/linebreak.c: Update.
66615
66616 2007-03-24  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66619         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66620
66621 2007-03-22  Bruno Haible  <bruno@clisp.org>
66622
66623         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66624
66625 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * MODULES.html.sh (File system functions): New module write-any-file.
66628         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66629         * m4/write-any-file.m4: New files.
66630
66631 2007-03-23  Eric Blake  <ebb9@byu.net>
66632
66633         * gnulib-tool: Rearrange space-tab sequences, since some editors
66634         like to eat them.
66635
66636 2007-03-23  Eric Blake  <ebb9@byu.net>
66637
66638         * lib/version-etc.c (version_etc_va): Update license wording to
66639         be more concise.  Recommended by Richard Stallman.
66640
66641 2007-03-22  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/poll.c (MSG_PEEK): New fallback definition.
66644
66645 2007-03-22  Bruno Haible  <bruno@clisp.org>
66646
66647         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66648         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66649         (main): Update.
66650         Fixes a compilation error on BeOS.
66651
66652 2007-03-22  Bruno Haible  <bruno@clisp.org>
66653
66654         * modules/frexpl-tests: New file.
66655         * tests/test-frexpl.c: New file.
66656
66657         * modules/frexpl: New file.
66658         * m4/frexpl.m4: New file.
66659         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66660         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66662         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66663         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66664         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66665
66666 2007-03-22  Bruno Haible  <bruno@clisp.org>
66667
66668         * lib/frexpl.c: Share code with lib/frexp.c.
66669         * modules/mathl (Files): Add lib/frexp.c.
66670         (Depends-on): Add isnanl-nolibm.
66671
66672 2007-03-22  Bruno Haible  <bruno@clisp.org>
66673
66674         * modules/printf-frexp (Files): Add m4/frexp.m4.
66675         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66676         only if the found frexp function actually works.
66677
66678 2007-03-22  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/frexp.c: Remove older implementation that uses divisions.
66681
66682 2007-03-21  Bruno Haible  <bruno@clisp.org>
66683
66684         * modules/frexp-tests: New file.
66685         * tests/test-frexp.c: New file.
66686
66687         * modules/frexp: New file.
66688         * lib/frexp.c: New file.
66689         * m4/frexp.m4: New file.
66690         * lib/math_.h (frexp): New declaration.
66691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66692         REPLACE_FREXP.
66693         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66694
66695 2007-03-21  Bruno Haible  <bruno@clisp.org>
66696
66697         * modules/isnanl-tests: New file.
66698         * tests/test-isnanl.c: New file.
66699
66700         * modules/isnanl: New file.
66701         * lib/isnanl.h: New file.
66702         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66703         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66704         gl_FUNC_ISNANL_WORKS.
66705         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66706         New macros.
66707
66708 2007-03-21  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66711         lib/isnanl.h.
66712         (Include): Update.
66713         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66714         * lib/vasnprintf.c: Update.
66715         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66716         tests/test-isnanl.h, remove tests/test-isnanl.c.
66717         (Makefile.am): Update.
66718         * tests/test-isnanl-nolibm.c: New file.
66719         * tests/test-isnanl.h: New file.
66720         * tests/test-isnanl.c: Remove file.
66721
66722 2007-03-21  Jim Meyering  <jim@meyering.net>
66723
66724         When trying to open ".", treat ESTALE like EACCES.
66725         * lib/savewd.c (savewd_save): Resort to forking not just upon
66726         failure with EACCES, but also when errno is ESTALE.
66727
66728 2007-03-20  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66731         Needed on AIX 5.1. Reported by Matthew Woehlke.
66732
66733 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66734
66735         Suggestions by Bruno Haible:
66736         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66737         our own.
66738         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66739         * modules/acl (Depends-on): Add gettext.
66740
66741 2007-03-19  Bruno Haible  <bruno@clisp.org>
66742
66743         * modules/iconvme: Remove file.
66744         * lib/iconvme.h: Remove file.
66745         * lib/iconvme.c: Remove file.
66746         * m4/iconvme.m4: Remove file.
66747
66748 2007-03-19  Bruno Haible  <bruno@clisp.org>
66749
66750         * doc/relocatable-maint.texi: Break long shell script line.
66751         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66752
66753 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66756         handle file_has_acl.
66757         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66758         * lib/acl.c: Move header inclusions and related macro defns into
66759         lib/acl-internal.h.
66760         (S_ISLNK): Remove defn, since that's now done for us.
66761         (file_has_acl): Move to lib/file-has-acl.c.
66762         Call acl_trivial if available.  This is the crucial part of the fix.
66763         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66764         shared within the library.  Rewrite a bit, partly to make it compatible
66765         with the GNU coding style.
66766         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66767         Remove unnecessary double-quotes.
66768         Don't test for acl_to_text; the build will catch that.
66769         Replace acl_entries if it doesn't exist and it is needed.
66770         Check for -lsec and acl_trivial (as used on Solaris 10).
66771         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66772         lib/file-has-acl.c.
66773         (Depends-on): Add sys_stat, for S_ISLNK.
66774
66775 2007-03-19  Ben Pfaff  <blp@gnu.org>
66776
66777         * doc/gnulib.texi: Fix typos.
66778         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66779
66780 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66783         If size is zero here, buf must be zero.
66784
66785 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66786
66787         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66788         <bruno@clisp.org>.
66789
66790 2007-03-18  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66793         Suggested by Eric Blake.
66794
66795 2007-03-18  Ben Pfaff  <blp@gnu.org>
66796
66797         * doc/relocatable.texi: Recommend using as prefix a directory
66798         that does not exist and will never be created.  Based on
66799         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66800         and others.
66801
66802 2007-03-17  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/fchownat.c: Include lchown.h.
66805
66806 2007-03-17  Bruno Haible  <bruno@clisp.org>
66807
66808         Fix endless loop when the given allocated size was > INT_MAX.
66809         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66810         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66811         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66812         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66813         * lib/sprintf.c (sprintf): Likewise.
66814
66815 2007-03-17  Bruno Haible  <bruno@clisp.org>
66816
66817         * tests/test-argp-2.sh (func_compare): Output a context diff.
66818
66819 2007-03-17  Bruno Haible  <bruno@clisp.org>
66820
66821         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66822         locale's decimal-point character.
66823
66824 2007-03-17  Bruno Haible  <bruno@clisp.org>
66825
66826         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66827         before comparing it. Needed because on some platforms (e.g. x86) a
66828         'long double' occupies less bytes than sizeof (long double).
66829
66830 2007-03-17  Bruno Haible  <bruno@clisp.org>
66831
66832         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66833         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66834         * tests/test-getaddrinfo.c (simple): Likewise.
66835         * tests/test-read-file.c (main): Likewise.
66836
66837 2007-03-17  Bruno Haible  <bruno@clisp.org>
66838
66839         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66840
66841 2007-03-17  Bruno Haible  <bruno@clisp.org>
66842
66843         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66844         unused variable.
66845
66846 2007-03-17  Bruno Haible  <bruno@clisp.org>
66847
66848         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66849         * tests/test-c-strncasecmp.c: Likewise.
66850
66851 2007-03-17  Bruno Haible  <bruno@clisp.org>
66852
66853         * modules/stdlib (Depends-on): Add unistd.
66854         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66855         Needed for MacOS X 10.3.
66856
66857 2007-03-17  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66860
66861 2007-03-17  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66864
66865 2007-03-17  Bruno Haible  <bruno@clisp.org>
66866
66867         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66868         to reflect files copied from gnulib (with or without modifications).
66869         Suggested by Jim Meyering.
66870
66871 2007-03-17  Eric Blake  <ebb9@byu.net>
66872
66873         * NEWS: Document stdlib change from 2007-02-18.
66874
66875 2007-03-17  Jim Meyering  <jim@meyering.net>
66876
66877         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66878         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66879         someone uses a name containing shell meta-characters.
66880         Reported by Alfred M. Szmidt.
66881
66882         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66883
66884 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66885
66886         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66887         and copy gettext configuration files only if configure.ac contains
66888         a use of AM_GNU_GETTEXT_VERSION.
66889
66890 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66891
66892         * build-aux/bootstrap (gnulib_name): New variable.
66893         (gnulib_tool_options): Use it.
66894
66895 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66896
66897         * tests/test-des.c: Use new namespace.
66898
66899 2007-03-15  Bruno Haible  <bruno@clisp.org>
66900
66901         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66902         Reported by James Youngman <jay@gnu.org>.
66903
66904 2007-03-15  Bruno Haible  <bruno@clisp.org>
66905
66906         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66907         declared prototype. Needed with cc on OSF/1 5.1.
66908
66909 2007-03-15  Bruno Haible  <bruno@clisp.org>
66910
66911         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66912         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66913         (struct gl_list_implementation): Add dispose_fn argument to the
66914         'create_empty', 'create' methods.
66915         (struct gl_list_impl_base): Add field 'dispose_fn'.
66916         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66917         argument.
66918         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66919         dispose_fn argument.
66920         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66921         dispose_fn on the dropped values.
66922         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66923         dispose_fn argument.
66924         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66925         dropped values.
66926         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66927         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66928         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66929         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66930         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66931         argument.
66932         (gl_tree_list_free): Call dispose_fn on the dropped values.
66933         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66934         the dropped values.
66935         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66936         Add dispose_fn argument.
66937         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66938         Call dispose_fn on the dropped values.
66939         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66940         Add dispose_fn argument.
66941         (gl_sublist_create): Initialize the 'dispose_fn' field.
66942         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66943         * tests/test-array_list.c (main): Update.
66944         * tests/test-carray_list.c (main): Update.
66945         * tests/test-avltree_list.c (main): Update.
66946         * tests/test-rbtree_list.c (main): Update.
66947         * tests/test-avltreehash_list.c (main): Update.
66948         * tests/test-rbtreehash_list.c (main): Update.
66949         * tests/test-linked_list.c (main): Update.
66950         * tests/test-linkedhash_list.c (main): Update.
66951         * tests/test-array_oset.c (main): Update.
66952
66953 2007-03-15  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66956         (gl_oset_create_empty): Add dispose_fn argument.
66957         (struct gl_oset_implementation): Add dispose_fn argument to
66958         'create_empty' method.
66959         (struct gl_oset_impl_base): Add dispose_fn field.
66960         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66961         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66962         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66963         values.
66964         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66965         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66966         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66967         dropped value.
66968         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66969         dropped value.
66970         * tests/test-array_oset.c (main): Update.
66971         * tests/test-avltree_oset.c (main): Update.
66972         * tests/test-rbtree_oset.c (main): Update.
66973         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66974
66975 2007-03-13  Bruno Haible  <bruno@clisp.org>
66976
66977         * tests/test-stdbool.c (i): Update after last patch.
66978
66979 2007-03-12  Bruno Haible  <bruno@clisp.org>
66980
66981         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66982         the iswprint macro. Needed on Solaris 2.5.1.
66983
66984 2007-03-12  Bruno Haible  <bruno@clisp.org>
66985
66986         * tests/test-printf-frexp.c (main): Declare x as volatile.
66987
66988 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66989
66990         * doc/gnulib.texi (Build robot for gnulib): New section.
66991
66992 2007-03-12  Jim Meyering  <jim@meyering.net>
66993
66994         * build-aux/bootstrap: New file.
66995         * build-aux/bootstrap.conf: New file, from coreutils.
66996
66997 2007-03-11  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67000
67001 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67002
67003         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67004         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67005         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67006
67007 2007-03-11  Bruno Haible  <bruno@clisp.org>
67008
67009         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67010         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67011
67012 2007-03-11  Bruno Haible  <bruno@clisp.org>
67013
67014         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67015         formula. Needed for SunPRO C 5.0.
67016
67017 2007-03-11  Bruno Haible  <bruno@clisp.org>
67018
67019         * modules/long-options (Depends-on): Add getopt.
67020
67021 2007-03-11  Bruno Haible  <bruno@clisp.org>
67022
67023         * modules/modechange (Depends-on): Add stdbool.
67024
67025 2007-03-11  Bruno Haible  <bruno@clisp.org>
67026
67027         * modules/i-ring (Depends-on): Add stdbool.
67028
67029 2007-03-11  Bruno Haible  <bruno@clisp.org>
67030
67031         * modules/gc-des (Depends-on): Add stdbool.
67032
67033 2007-03-11  Bruno Haible  <bruno@clisp.org>
67034
67035         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67036
67037 2007-03-11  Bruno Haible  <bruno@clisp.org>
67038
67039         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67040
67041 2007-03-11  Bruno Haible  <bruno@clisp.org>
67042
67043         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67044
67045 2007-03-11  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/vasnprintf.c (sprintf): Undefine.
67048
67049 2007-03-11  Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67052         initializers in SunPRO C and Compaq C compilers.
67053
67054 2007-03-11  Bruno Haible  <bruno@clisp.org>
67055
67056         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67057         decrementing code ANSI C compliant.
67058
67059 2007-03-11  Bruno Haible  <bruno@clisp.org>
67060
67061         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67062         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67063
67064 2007-03-11  Bruno Haible  <bruno@clisp.org>
67065
67066         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67067         <stdbool.h> substitute doesn't pass.
67068
67069 2007-03-11  Bruno Haible  <bruno@clisp.org>
67070
67071         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67072
67073 2007-03-11  Bruno Haible  <bruno@clisp.org>
67074
67075         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67076         script, for submission to autobuild.josefsson.org.
67077
67078 2007-03-10  Bruno Haible  <bruno@clisp.org>
67079
67080         * modules/canonicalize-lgpl-tests: New file.
67081         * tests/test-canonicalize-lgpl.sh: New file.
67082         * tests/test-canonicalize-lgpl.c: New file.
67083
67084         * modules/c-strcase-tests: New file.
67085         * tests/test-c-strcase.sh: New file.
67086         * tests/test-c-strcasecmp.c: New file.
67087         * tests/test-c-strncasecmp.c: New file.
67088
67089         * modules/atexit-tests: New file.
67090         * tests/test-atexit.sh: New file.
67091         * tests/test-atexit.c: New file.
67092
67093 2007-03-10  Bruno Haible  <bruno@clisp.org>
67094
67095         * tests/test-binary-io.sh: Use temporary filenames that are not so
67096         likely to clash with those of other tests (in a parallel make).
67097         * tests/test-binary-io.c: Likewise.
67098
67099 2007-03-10  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67102         fallback; use #error instead.
67103         Suggested by Simon Josefsson.
67104
67105 2007-03-10  Bruno Haible  <bruno@clisp.org>
67106
67107         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67108         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67109         first and the last.
67110
67111 2007-03-10  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67114
67115 2007-03-10  Bruno Haible  <bruno@clisp.org>
67116
67117         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67118         "make distcheck".
67119         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67120         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67121         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67122
67123 2007-03-10  Bruno Haible  <bruno@clisp.org>
67124
67125         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67126         variable.
67127         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67128         variable.
67129
67130 2007-03-09  Eric Blake  <ebb9@byu.net>
67131         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67132
67133         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67134         types are not being provided by gnulib.
67135         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67136         types are supported.
67137
67138 2007-03-10  Bruno Haible  <bruno@clisp.org>
67139
67140         * lib/stdio_.h (__attribute__): New macro.
67141         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67142         vsprintf): Specify __attribute__ __format__ for GCC.
67143         Suggested by Eric Blake.
67144
67145 2007-03-09  Bruno Haible  <bruno@clisp.org>
67146
67147         * modules/printf-posix-tests: New file.
67148         * tests/test-printf-posix.sh: New file.
67149         * tests/test-printf-posix.c: New file.
67150
67151         * modules/printf-posix: New file.
67152         * lib/printf.c: New file.
67153         * m4/printf-posix-rpl.m4: New file.
67154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67155         REPLACE_PRINTF.
67156         * lib/stdio_.h (printf): New declaration.
67157         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67158         ____strfmon____): New macros.
67159         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67160         REPLACE_PRINTF.
67161
67162 2007-03-09  Bruno Haible  <bruno@clisp.org>
67163
67164         * tests/test-vasnprintf-posix2.sh: New file.
67165         * tests/test-vasnprintf-posix2.c: New file.
67166         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67167         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67168         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67169
67170         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67171         a locale dependent decimal point, rather than always '.'.
67172
67173 2007-03-09  Eric Blake  <ebb9@byu.net>
67174
67175         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67176         spite of platforms like Tandem/NSK that define it to -1.
67177
67178 2007-03-08  Bruno Haible  <bruno@clisp.org>
67179
67180         * modules/vprintf-posix-tests: New file.
67181         * tests/test-vprintf-posix.sh: New file.
67182         * tests/test-vprintf-posix.c: New file.
67183         * tests/test-printf-posix.h: New file.
67184
67185         * modules/vprintf-posix: New file.
67186         * lib/vprintf.c: New file.
67187         * m4/vprintf-posix.m4: New file.
67188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67189         REPLACE_VPRINTF.
67190         * lib/stdio_.h (vprintf): New declaration.
67191         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67192         REPLACE_VPRINTF.
67193
67194 2007-03-08  Bruno Haible  <bruno@clisp.org>
67195
67196         * modules/fprintf-posix-tests: New file.
67197         * tests/test-fprintf-posix.sh: New file.
67198         * tests/test-fprintf-posix.c: New file.
67199
67200         * modules/fprintf-posix: New file.
67201         * lib/fprintf.c: New file.
67202         * m4/fprintf-posix.m4: New file.
67203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67204         REPLACE_FPRINTF.
67205         * lib/stdio_.h (fprintf): New declaration.
67206         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67207         REPLACE_FPRINTF.
67208
67209 2007-03-08  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/vfprintf-posix-tests: New file.
67212         * tests/test-vfprintf-posix.sh: New file.
67213         * tests/test-vfprintf-posix.c: New file.
67214         * tests/test-fprintf-posix.h: New file.
67215         * tests/test-fprintf-posix.out: New file.
67216
67217         * modules/vfprintf-posix: New file.
67218         * lib/vfprintf.c: New file.
67219         * m4/vfprintf-posix.m4: New file.
67220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67221         REPLACE_VFPRINTF.
67222         * lib/stdio_.h (vfprintf): New declaration.
67223         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67224         REPLACE_VFPRINTF.
67225
67226 2007-03-08  Bruno Haible  <bruno@clisp.org>
67227
67228         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67229
67230 2007-03-08  Bruno Haible  <bruno@clisp.org>
67231
67232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67233         instead of 'expr' invocations.
67234         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67239         Suggested by Paul Eggert.
67240
67241 2007-03-08  Bruno Haible  <bruno@clisp.org>
67242
67243         * modules/fseterr-tests: New file.
67244         * tests/test-fseterr.c: New file.
67245
67246         * modules/fseterr: New file.
67247         * lib/fseterr.h: New file.
67248         * lib/fseterr.c: New file.
67249
67250 2007-03-08  Bruno Haible  <bruno@clisp.org>
67251
67252         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67253         * lib/getopt_.h: Likewise.
67254         * lib/mbswidth.h: Likewise.
67255         * lib/setenv.h: Likewise.
67256         * lib/vasnprintf.h: Likewise.
67257         * lib/vasprintf.h: Likewise.
67258         * lib/verror.h: Likewise.
67259         * lib/xsetenv.h: Likewise.
67260         * lib/xvasprintf.h: Likewise.
67261
67262 2007-03-08  Jim Meyering  <jim@meyering.net>
67263
67264         * users.txt: Add parted.
67265
67266         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67267
67268 2007-03-07  Bruno Haible  <bruno@clisp.org>
67269
67270         * m4/printf.m4: Make the shell script snippets copy&pastable.
67271
67272 2007-03-02  Bruno Haible  <bruno@clisp.org>
67273
67274         * lib/netinet_in_.h: New file.
67275         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67276         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67277         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67278         (Depends-on): Add absolute-header.
67279         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67280         into netinet/in.h.
67281
67282 2007-03-03  Bruno Haible  <bruno@clisp.org>
67283
67284         * lib/sys_select_.h: New file.
67285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67286         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67287         * modules/sys_select (Files): Add lib/sys_select_.h.
67288         (Depends-on): Add absolute-header.
67289         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67290         into sys/select.h.
67291
67292 2007-03-02  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67295         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67296         values.
67297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67298         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67299         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67300         * modules/sys_socket (Depends-on): Add absolute-header.
67301         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67302         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67303         (Include): Remove requirement of inclusion of <sys/types.h>.
67304
67305 2007-03-02  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/byteswap_.h (bswap_32): Fix formula.
67308
67309 2007-03-06  Bruno Haible  <bruno@clisp.org>
67310
67311         * modules/sprintf-posix-tests: New file.
67312         * tests/test-sprintf-posix.c: New file.
67313
67314         * modules/sprintf-posix: New file.
67315         * lib/sprintf.c: New file.
67316         * m4/sprintf-posix.m4: New file.
67317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67318         REPLACE_SPRINTF.
67319         * lib/stdio_.h (sprintf): New declaration.
67320         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67321         REPLACE_SPRINTF.
67322
67323 2007-03-06  Bruno Haible  <bruno@clisp.org>
67324
67325         * modules/vsprintf-posix-tests: New file.
67326         * tests/test-vsprintf-posix.c: New file.
67327         * tests/test-sprintf-posix.h: New file.
67328
67329         * modules/vsprintf-posix: New file.
67330         * lib/vsprintf.c: New file.
67331         * m4/vsprintf-posix.m4: New file.
67332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67333         REPLACE_VSPRINTF.
67334         * lib/stdio_.h (vsprintf): New declaration.
67335         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67336         REPLACE_VSPRINTF.
67337
67338 2007-03-06  Bruno Haible  <bruno@clisp.org>
67339
67340         * modules/vsnprintf (Depend-on): Remove minmax.
67341
67342 2007-03-06  Bruno Haible  <bruno@clisp.org>
67343
67344         * modules/snprintf-posix-tests: New file.
67345         * tests/test-snprintf-posix.c: New file.
67346
67347         * modules/snprintf-posix: New file.
67348         * m4/snprintf-posix.m4: New file.
67349         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67350         gl_FUNC_SNPRINTF.
67351         (gl_FUNC_SNPRINTF): Invoke it.
67352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67353         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67354         is set.
67355         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67356
67357 2007-03-06  Bruno Haible  <bruno@clisp.org>
67358
67359         * modules/vsnprintf-posix-tests: New file.
67360         * tests/test-vsnprintf-posix.c: New file.
67361         * tests/test-snprintf-posix.h: New file.
67362
67363         * modules/vsnprintf-posix: New file.
67364         * m4/vsnprintf-posix.m4: New file.
67365         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67366         gl_FUNC_VSNPRINTF.
67367         (gl_FUNC_VSNPRINTF): Invoke it.
67368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67369         * lib/stdio_.h (vsnprintf): Define as a replacement if
67370         REPLACE_VSNPRINTF is set.
67371         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67372
67373 2007-03-06  Bruno Haible  <bruno@clisp.org>
67374
67375         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67377
67378 2007-03-06  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67381         (asinl): Declare also if HAVE_DECL_ASINL is set.
67382         (atanl): Declare also if HAVE_DECL_ATANL is set.
67383         (ceill): Declare also if HAVE_DECL_CEILL is set.
67384         (cosl): Declare also if HAVE_DECL_COSL is set.
67385         (expl): Declare also if HAVE_DECL_EXPL is set.
67386         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67387         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67388         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67389         (logl): Declare also if HAVE_DECL_LOGL is set.
67390         (sinl): Declare also if HAVE_DECL_SINL is set.
67391         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67392         (tanl): Declare also if HAVE_DECL_TANL is set.
67393         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67395         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67396         declaration of frexpl, ldexpl.
67397         * modules/printf-frexpl (Depends-on): Add math.
67398         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67399
67400 2007-03-05  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67403         frexpl and ldexpl are declared.
67404         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67405
67406 2007-03-05  Bruno Haible  <bruno@clisp.org>
67407
67408         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67409         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67410
67411 2007-03-05  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/stdio_.h: Include <stddef.h>.
67414
67415 2007-03-05  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67418
67419 2007-03-05  Bruno Haible  <bruno@clisp.org>
67420
67421         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67422         NetBSD 4, from Ralf Wildenhues.
67423
67424 2007-03-04  Bruno Haible  <bruno@clisp.org>
67425
67426         * lib/vasprintf.h: Update #if logic for the case when the functions
67427         exist but are overridden.
67428
67429 2007-03-04  Bruno Haible  <bruno@clisp.org>
67430
67431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67432         implementations: glibc-2.4 and MacOS X 10.3.
67433         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67434         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67435         * tests/test-vasprintf-posix.c (test_function): Likewise.
67436
67437 2007-03-04  Bruno Haible  <bruno@clisp.org>
67438
67439         * modules/vasprintf-posix-tests: New file.
67440         * tests/test-vasprintf-posix.c: New file.
67441
67442         * modules/vasprintf-posix: New file.
67443         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67444         defined.
67445         * m4/vasprintf-posix.m4: New file.
67446         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67447         gl_FUNC_VASPRINTF.
67448         (gl_FUNC_VASPRINTF): Invoke it.
67449         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67450         here.
67451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67452
67453 2007-03-04  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67456         REPLACE_GETTIMEOFDAY.
67457         * modules/sys_time (Makefile.am): Likewise.
67458         * m4/sys_time_h.m4: Likewise.
67459         * m4/gettimeofday.m4: Likewise.
67460
67461 2007-03-04  Bruno Haible  <bruno@clisp.org>
67462
67463         * modules/vasnprintf-posix-tests: New file.
67464         * tests/test-vasnprintf-posix.c: New file.
67465
67466         * modules/vasnprintf-posix: New file.
67467         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67468         printf-frexpl.h.
67469         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67470         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67471         REPLACE_VASNPRINTF is defined.
67472         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67473         gl_FUNC_VASNPRINTF.
67474         (gl_FUNC_VASNPRINTF): Invoke it.
67475         * m4/vasnprintf-posix.m4: New file.
67476         * m4/printf.m4: New file.
67477
67478 2007-03-04  Bruno Haible  <bruno@clisp.org>
67479
67480         Compile progreloc.c only if --enable-relocatable is specified.
67481         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67482         if --enable-relocatable was specified.
67483         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67484         lib_SOURCES.
67485
67486 2007-03-04  Jim Meyering  <jim@meyering.net>
67487
67488         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67489         Use it consistently, rather than enumerating errno constants.
67490
67491 2007-03-04  Bruno Haible  <bruno@clisp.org>
67492
67493         * modules/xvasprintf-tests: New file.
67494         * tests/test-xvasprintf.c: New file.
67495
67496         * modules/vasprintf-tests: New file.
67497         * tests/test-vasprintf.c: New file.
67498
67499         * modules/vasnprintf-tests: New file.
67500         * tests/test-vasnprintf.c: New file.
67501
67502         * modules/vsnprintf-tests: New file.
67503         * tests/test-vsnprintf.c: New file.
67504
67505         * modules/snprintf-tests: New file.
67506         * tests/test-snprintf.c: New file.
67507
67508 2007-03-04  Bruno Haible  <bruno@clisp.org>
67509
67510         Compile relocatable.c only if --enable-relocatable is specified.
67511         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67512         gl_RELOCATABLE_LIBRARY.
67513         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67514         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67515         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67516         gl_RELOCATABLE_LIBRARY.
67517         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67518         (Makefile.am): Remove lib_SOURCES.
67519         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67520         gl_RELOCATABLE_LIBRARY.
67521         (Makefile.am): Remove lib_SOURCES.
67522         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67523         always.
67524         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67525         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67526
67527 2007-03-04  Bruno Haible  <bruno@clisp.org>
67528
67529         * modules/argmatch-tests: New file.
67530         * tests/test-argmatch.c: New file.
67531
67532         * tests/test-allocsa.c (main): Halve the number of loop runs.
67533
67534         * modules/alloca-opt-tests: New file.
67535         * tests/test-alloca-opt.c: New file.
67536
67537 2007-03-04  Jim Meyering  <jim@meyering.net>
67538
67539         Work around difference between Linux ACLs and Solaris 10 ZFS.
67540         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67541         for EINVAL.
67542
67543 2007-03-03  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/relocatable-prog (Depends-on): Add back progreloc's
67546         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67547
67548 2007-03-03  Bruno Haible  <bruno@clisp.org>
67549
67550         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67551         * modules/relocatable-lib: New file.
67552
67553 2007-03-03  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/relocatable-prog: Renamed from modules/relocatable.
67556         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67557
67558 2007-03-03  Bruno Haible  <bruno@clisp.org>
67559
67560         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67561         m4/relocatable-lib.m4.
67562         (Depends-on): Remove 'relocatable'.
67563         (configure.ac): Add gl_RELOCATABLE_NOP.
67564
67565 2007-03-03  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/relocatable-prog-wrapper: New file.
67568         * modules/relocatable (Depends-on): Add it. Remove all other
67569         dependencies except progname.
67570         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67571
67572         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67573         (gl_FUNC_STRERROR): Nop.
67574         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67575
67576         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67577         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67578
67579         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67580         (gl_FUNC_READLINK): Update.
67581
67582         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67583
67584 2007-03-03  Bruno Haible  <bruno@clisp.org>
67585
67586         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67587         * modules/xreadlink (Depends-on): Add unistd.
67588         * modules/xreadlink-with-size (Depends-on): Likewise.
67589
67590 2007-03-03  Bruno Haible  <bruno@clisp.org>
67591
67592         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67593         extracted from gt_FUNC_SETENV.
67594         (gt_FUNC_SETENV): Remove macro.
67595         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67596         remove gt_FUNC_SETENV.
67597
67598 2007-03-03  Bruno Haible  <bruno@clisp.org>
67599
67600         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67601         ENABLE_RELOCATABLE here.
67602         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67603
67604 2007-03-03  Bruno Haible  <bruno@clisp.org>
67605
67606         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67607         * tests/test-rbtreehash_list.c: Include progname.h.
67608         (main): Call set_program_name.
67609
67610         * modules/rbtree-oset-tests (Depends-on): Add progname.
67611         * tests/test-rbtree_oset.c: Include progname.h.
67612         (main): Call set_program_name.
67613
67614         * modules/rbtree-list-tests (Depends-on): Add progname.
67615         * tests/test-rbtree_list.c: Include progname.h.
67616         (main): Call set_program_name.
67617
67618         * modules/linked-list-tests (Depends-on): Add progname.
67619         * tests/test-linked_list.c: Include progname.h.
67620         (main): Call set_program_name.
67621
67622 2007-03-03  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67625         All uses of __restrict changed to _Restrict_.
67626         * lib/glob_.h (__restrict): Remove macro.
67627
67628 2007-03-02  Bruno Haible  <bruno@clisp.org>
67629
67630         * modules/gettext (configure.ac): Require gettext infrastructure
67631         from version 0.16.1.
67632
67633 2007-03-02  Bruno Haible  <bruno@clisp.org>
67634
67635         * modules/linkedhash-list-tests (Depends-on): Add progname.
67636         * tests/test-linkedhash_list.c: Include progname.h.
67637         (main): Call set_program_name.
67638
67639         * modules/carray-list-tests (Depends-on): Add progname.
67640         * tests/test-carray_list.c: Include progname.h.
67641         (main): Call set_program_name.
67642
67643         * modules/avltreehash-list-tests (Depends-on): Add progname.
67644         * tests/test-avltreehash_list.c: Include progname.h.
67645         (main): Call set_program_name.
67646
67647         * modules/avltree-oset-tests (Depends-on): Add progname.
67648         * tests/test-avltree_oset.c: Include progname.h.
67649         (main): Call set_program_name.
67650
67651         * modules/avltree-list-tests (Depends-on): Add progname.
67652         * tests/test-avltree_list.c: Include progname.h.
67653         (main): Call set_program_name.
67654
67655         * modules/array-oset-tests (Depends-on): Add progname.
67656         * tests/test-array_oset.c: Include progname.h.
67657         (main): Call set_program_name.
67658
67659         * modules/array-list-tests (Depends-on): Add progname.
67660         * tests/test-array_list.c: Include progname.h.
67661         (main): Call set_program_name.
67662
67663         * modules/argp-tests (Depends-on): Add progname.
67664         * tests/test-argp.c: Include argp.h first. Include progname.h.
67665         (main): Call set_program_name.
67666
67667 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * doc/gnulib-tool.texi (Initial import): Reword description of
67670         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67671         limited effect even if defined after the first system include.
67672
67673 2007-03-01  Bruno Haible  <bruno@clisp.org>
67674
67675         * build-aux/config.libpath: Update to libtool-1.5.22.
67676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67677
67678 2007-03-01  Bruno Haible  <bruno@clisp.org>
67679
67680         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67681         foo_CFLAGS.
67682         Reported by Ralf Wildenhues.
67683
67684 2007-03-01  Bruno Haible  <bruno@clisp.org>
67685
67686         * build-aux/install-reloc: Remove object files left over by some
67687         compilers.
67688         Reported by Ralf Wildenhues.
67689
67690 2007-03-01  Bruno Haible  <bruno@clisp.org>
67691
67692         * build-aux/install-reloc: Break long lines.
67693
67694 2007-03-01  Bruno Haible  <bruno@clisp.org>
67695
67696         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67697         Reported by Ralf Wildenhues.
67698
67699 2007-03-01  Bruno Haible  <bruno@clisp.org>
67700
67701         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67702         include ordering constraints.
67703
67704 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67708         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67709         as another example.
67710         * lib/time_.h: Fix misspelling.
67711         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67712         Require gl_HEADER_TIME_H_DEFAULTS.
67713         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67714         * m4/time_r.m4 (gl_TIME_R): Likewise.
67715         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67716
67717 2007-03-01  Bruno Haible  <bruno@clisp.org>
67718
67719         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67720         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67721
67722 2007-03-01  Jim Meyering  <jim@meyering.net>
67723
67724         * modules/xreadlink (Maintainer): Add my name.
67725         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67726
67727 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67728             Bruno Haible  <bruno@clisp.org>
67729
67730         * build-aux/install-reloc: Compile also c-ctype.c.
67731         * build-aux/relocatable.sh.in: New file.
67732         * doc/relocatable.texi: New file.
67733         * doc/relocatable-maint.texi: New file.
67734         * doc/gnulib.texi: Include relocatable-maint.texi.
67735         * lib/progreloc.c: Include unistd.h unconditionally.
67736         * lib/relocwrapper.c: Include unistd.h unconditionally.
67737         Include c-ctype.h.
67738         (add_dotbin): Use c_tolower.
67739         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67740         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67741         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67742         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67743         to m4/relocatable-lib.m4.
67744         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67745         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67746         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67747         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67748         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67749         * modules/relocatable: New file.
67750         * modules/relocatable-lib: New file.
67751         * modules/relocatable-script: New file.
67752
67753 2007-02-28  Bruno Haible  <bruno@clisp.org>
67754
67755         Import --enable-relocatable infrastructure.
67756         * build-aux/config.libpath: New file, from GNU gettext.
67757         * build-aux/install-reloc: New file, from GNU gettext.
67758         * build-aux/reloc-ldflags: New file, from GNU gettext.
67759         * lib/relocatable.h: New file, from GNU gettext.
67760         * lib/relocatable.c: New file, from GNU gettext.
67761         * lib/relocwrapper.c: New file, from GNU gettext.
67762         * m4/relocatable.m4: New file, from GNU gettext.
67763
67764 2007-02-28  Bruno Haible  <bruno@clisp.org>
67765
67766         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67767
67768         * modules/xreadlink: New file, from GNU gettext with modifications.
67769         * lib/xreadlink.c: New file, from GNU gettext.
67770         * lib/xreadlink.h: Add comments.
67771         (xreadlink): New declaration.
67772
67773         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67774         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67775         lib/xreadlink-with-size.c.
67776         (configure.ac): Remove gl_XREADLINK invocation.
67777         (Makefile.am): Augment lib_SOURCES.
67778         * m4/xreadlink.m4: Remove file.
67779         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67780         (xreadlink_with_size): Renamed from xreadink.
67781         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67782         * modules/canonicalize (Depends-on): Replace xreadlink with
67783         xreadlink-with-size.
67784         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67785
67786 2007-02-25  Jim Meyering  <jim@meyering.net>
67787
67788         * build-aux/announce-gen: When complaining about excess arguments,
67789         list them.
67790
67791 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67792
67793         * README: Document signed integer overflow situation more
67794         accurately.
67795
67796 2007-02-25  Bruno Haible  <bruno@clisp.org>
67797
67798         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67799         'a' or 'A' conversion.
67800
67801 2007-02-25  Bruno Haible  <bruno@clisp.org>
67802
67803         * modules/filename: Renamed from modules/pathname.
67804         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67805         lib/concatpath.c with lib/concat-filename.c.
67806         (Makefile.am): Update.
67807         (Include): Replace pathname.h with filename.h.
67808         * lib/filename.h: Renamed from lib/pathname.h.
67809         (concatenated_filename): Renamed from concatenated_pathname.
67810         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67811         (concatenated_filename): Renamed from concatenated_pathname.
67812         * lib/findprog.c: Include filename.h instead of pathname.h.
67813         (find_in_path): Update.
67814         * lib/javacomp.c: Include filename.h instead of pathname.h.
67815         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67816         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67817         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67818         is_oldgcj_14_13_usable, is_javac_usable): Update.
67819         * lib/javaexec.c: Include filename.h instead of pathname.h.
67820         (execute_java_class): Update.
67821         * modules/findprog: Update.
67822         * modules/javacomp: Update.
67823         * modules/javaexec: Update.
67824         * MODULES.html.sh (File system functions): Add 'filename', remove
67825         'pathname'.
67826
67827 2007-02-25  Bruno Haible  <bruno@clisp.org>
67828
67829         * modules/printf-frexpl-tests: New file.
67830         * tests/test-printf-frexpl.c: New file.
67831
67832         * modules/printf-frexpl: New file.
67833         * lib/printf-frexpl.h: New file.
67834         * lib/printf-frexpl.c: New file.
67835         * m4/printf-frexpl.m4: New file.
67836
67837 2007-02-25  Bruno Haible  <bruno@clisp.org>
67838
67839         * modules/printf-frexp-tests: New file.
67840         * tests/test-printf-frexp.c: New file.
67841
67842         * modules/printf-frexp: New file.
67843         * lib/printf-frexp.h: New file.
67844         * lib/printf-frexp.c: New file.
67845         * m4/printf-frexp.m4: New file.
67846
67847 2007-02-25  Bruno Haible  <bruno@clisp.org>
67848
67849         Assume automake >= 1.10 for the tests.
67850         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67851         * modules/arctwo-tests: Likewise.
67852         * modules/argp-tests: Likewise.
67853         * modules/avltree-list-tests: Likewise.
67854         * modules/avltree-oset-tests: Likewise.
67855         * modules/avltreehash-list-tests: Likewise.
67856         * modules/carray-list-tests: Likewise.
67857         * modules/crc-tests: Likewise.
67858         * modules/des-tests: Likewise.
67859         * modules/gc-arcfour-tests: Likewise.
67860         * modules/gc-arctwo-tests: Likewise.
67861         * modules/gc-des-tests: Likewise.
67862         * modules/gc-hmac-md5-tests: Likewise.
67863         * modules/gc-hmac-sha1-tests: Likewise.
67864         * modules/gc-md2-tests: Likewise.
67865         * modules/gc-md4-tests: Likewise.
67866         * modules/gc-md5-tests: Likewise.
67867         * modules/gc-pbkdf2-sha1-tests: Likewise.
67868         * modules/gc-rijndael-tests: Likewise.
67869         * modules/gc-sha1-tests: Likewise.
67870         * modules/gc-tests: Likewise.
67871         * modules/getaddrinfo-tests: Likewise.
67872         * modules/hmac-md5-tests: Likewise.
67873         * modules/hmac-sha1-tests: Likewise.
67874         * modules/linked-list-tests: Likewise.
67875         * modules/linkedhash-list-tests: Likewise.
67876         * modules/lock-tests: Likewise.
67877         * modules/md2-tests: Likewise.
67878         * modules/md4-tests: Likewise.
67879         * modules/md5-tests: Likewise.
67880         * modules/rbtree-list-tests: Likewise.
67881         * modules/rbtree-oset-tests: Likewise.
67882         * modules/rbtreehash-list-tests: Likewise.
67883         * modules/read-file-tests: Likewise.
67884         * modules/rijndael-tests: Likewise.
67885         * modules/stdint-tests: Likewise.
67886         * modules/tls-tests: Likewise.
67887
67888 2007-02-24  Bruno Haible  <bruno@clisp.org>
67889
67890         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67891         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67892         function; instead check whether isnan with a double argument links.
67893         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67894         function; instead check whether isnan with a 'long double' argument
67895         links.
67896         Reported by Eric Blake <ebb9@byu.net>.
67897
67898 2007-02-24  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67901         defined.
67902         * lib/isnanl.c: Remove all code. Just include isnan.c.
67903         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67904
67905 2007-02-25  Jim Meyering  <jim@meyering.net>
67906
67907         Avoid conflicting types for 'unsetenv' on FreeBSD.
67908         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67909         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67910         in stdlib.h.
67911
67912 2007-02-24  Bruno Haible  <bruno@clisp.org>
67913
67914         * modules/isnanl-nolibm-tests: New file.
67915         * tests/test-isnanl.c: New file.
67916
67917         * modules/isnanl-nolibm: New file.
67918         * lib/isnanl.h: New file.
67919         * lib/isnanl.c: New file.
67920         * m4/isnanl.m4: New file.
67921
67922 2007-02-24  Bruno Haible  <bruno@clisp.org>
67923
67924         * modules/isnan-nolibm-tests: New file.
67925         * tests/test-isnan.c: New file.
67926
67927         * modules/isnan-nolibm: New file.
67928         * lib/isnan.h: New file.
67929         * lib/isnan.c: New file.
67930         * m4/isnan.m4: New file.
67931
67932 2007-02-24  Bruno Haible  <bruno@clisp.org>
67933
67934         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67935         assume that an exponent fits in 20 bits.
67936
67937 2007-02-24  Jim Meyering  <jim@meyering.net>
67938
67939         * m4/regex.m4: Update the description of the configure-time option,
67940         --without-included-regex, to state accurately what the defaults are,
67941         and perhaps to give people an idea why using this option is risky.
67942
67943 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67944
67945         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67946         loops on small arguments.  This attempts to avoid the problem
67947         Bruno Haible reported for AIX 4.3.2 in
67948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67949
67950 2007-02-23  Bruno Haible  <bruno@clisp.org>
67951
67952         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67953         Needed for help2man.
67954
67955 2007-02-23  Karl Berry  <karl@gnu.org>
67956
67957         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67958         exists, foo.h should be cvs-ignored, not committed.
67959
67960 2007-02-23  Eric Blake  <ebb9@byu.net>
67961
67962         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67963         * lib/stat-time.h (includes): Likewise.
67964         * lib/utimecmp.c (includes): Likewise.
67965         * lib/utimens.h (includes): Likewise.
67966         * lib/getdate.y (includes): Also include "timespec.h" for use
67967         internal to the module.
67968         * modules/utimens (Depends-on): Revert yesterday's patch.
67969         * modules/nanosleep (Depends-on): Add missing dependency.
67970
67971 2007-02-22  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/glob.c: Don't include getlogin_r.h.
67974
67975 2007-02-22  Jim Meyering  <jim@meyering.net>
67976
67977         * modules/utimens (Depends-on): Add timespec, required for
67978         utimens.h's inclusion of timespec.h.
67979
67980 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67983         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67984         Schwab in
67985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67986         I'll try to think of a better way to fix the Solaris problem.
67987
67988         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67989         like glibc; on Solaris 10, it fails with errno == EINVAL.
67990         POSIX says the behavior is unspecified if the first argument is NULL,
67991         so play it safe and never pass NULL to the system getcwd.
67992
67993 2007-02-21  Jim Meyering  <jim@meyering.net>
67994
67995         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67996         of gettimeofday.  It would conflict with the one now always
67997         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67998         an IRIX 6.5 build failure.
67999
68000 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         Minor fixups to port to Solaris 10 with Sun C 5.8.
68003         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68004         * modules/getcwd (Depends-on): Add dirfd.
68005         * lib/putenv.c (putenv): #undef it.
68006         (rpl_putenv): New decl.
68007         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68008
68009 2007-02-20  Bruno Haible  <bruno@clisp.org>
68010
68011         * modules/stdio-tests: New file.
68012         * tests/test-stdio.c: New file.
68013
68014         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68015         (Depends-on): Add stdio.
68016         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68017         (Include): Use <stdio.h> instead of vsnprintf.h.
68018         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68019         HAVE_DECL_VSNPRINTF.
68020         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68021
68022         * modules/snprintf (Files): Remove lib/snprintf.h.
68023         (Depends-on): Add stdio.
68024         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68025         (Include): Use <stdio.h> instead of snprintf.h.
68026         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68027         HAVE_DECL_SNPRINTF.
68028         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68029         * lib/getaddrinfo.c: Likewise.
68030
68031         * modules/stdio: New file.
68032         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68033         * lib/snprintf.h: Remove file.
68034         * lib/vsnprintf.h: Remove file.
68035         * lib/.cppi-disable: Remove snprintf.h.
68036         * m4/stdio_h.m4: New file.
68037         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68038
68039 2007-02-20  Jim Meyering  <jim@meyering.net>
68040
68041         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68042         used by e.g., mingw.  From Bruno Haible.
68043
68044 2007-02-19  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68047         warnings.
68048         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68049
68050 2007-02-19  Bruno Haible  <bruno@clisp.org>
68051
68052         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68053         from mingw users.
68054
68055 2007-02-19  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68058         warnings.
68059         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68060
68061 2007-02-19  Jim Meyering  <jim@meyering.net>
68062
68063         Don't use FD after a successful "fdopendir (fd)".
68064         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68065         Reset it by calling dirfd on the just-obtained DIR*.
68066
68067         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68068         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68069
68070 2007-02-18  Bruno Haible  <bruno@clisp.org>
68071
68072         * lib/readlink.c: Include <unistd.h>.
68073         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68074         HAVE_READLINK.
68075         * modules/readlink (Depends-on): Add unistd.
68076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68077         (Include): Add <unistd.h>.
68078
68079         * lib/getlogin_r.h: Remove file.
68080         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68081         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68082         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68083         HAVE_DECL_GETLOGIN_R.
68084         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68085         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68086         (Include): Use <unistd.h> instead of getlogin_r.h.
68087
68088         * lib/getcwd.h: Remove file.
68089         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68090         * lib/xgetcwd.c: Likewise.
68091         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68092         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68093         * modules/getcwd (Files): Remove lib/getcwd.h.
68094         (Depends-on): Add unistd.
68095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68096         (Include): Use <unistd.h> instad of getcwd.h.
68097
68098         * lib/ftruncate.c: Include <unistd.h> first.
68099         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68100         Set HAVE_FTRUNCATE.
68101         * modules/ftruncate (Depends-on): Add unistd.
68102         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68103
68104         * lib/fchdir.c: Include <unistd.h> first.
68105         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68107         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68108         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68109         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68110
68111         * lib/dup2.c: Include <unistd.h> first.
68112         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68113         HAVE_DUP2.
68114         * modules/dup2 (Depends-on): Add unistd.
68115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68116
68117         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68118         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68119         REPLACE_CHOWN. Don't define chown as a macro here.
68120         * modules/chown (Depends-on): Add unistd.
68121         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68122
68123         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68124         Add definition for GL_LINK_WARNING.
68125         (chown, dup2): New declarations.
68126         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68127         link warning.
68128         (ftruncate): New declaration.
68129         (getcwd): New declaration, taken from old getcwd.h.
68130         (getlogin_r): New declaration, taken from old getlogin_r.h.
68131         (readlink): New declaration.
68132         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68133         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68134         (gl_PREREQ_UNISTD): Remove macro.
68135         (gl_UNISTD_MODULE_INDICATOR): New macro.
68136         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68137         many new variables. Don't set UNISTD_H.
68138         * modules/unistd (Description): Change.
68139         (Depends-on): Add link-warning.
68140         (configure.ac): Update.
68141         (Makefile.am): Create unistd.h always. Substitute many new variables
68142         into it.
68143
68144 2007-02-18  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68147         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68148         HAVE_GETSUBOPT.
68149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68150         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68151         * lib/getsubopt.h: Remove file.
68152         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68153         (Depends-on): Add stdlib.
68154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68155         (Includes): Use <stdlib.h> instead of getsubopt.h.
68156         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68157         Set HAVE_GETSUBOPT.
68158         * lib/getsubopt.c: Don't include getsubopt.h.
68159
68160 2007-02-18  Bruno Haible  <bruno@clisp.org>
68161
68162         * modules/fchdir (Depends-on): Add dup2.
68163
68164 2007-02-18  Bruno Haible  <bruno@clisp.org>
68165
68166         * lib/stdlib_.h: Handle glibc's special invocation convention
68167         specially.
68168
68169 2007-02-18  Bruno Haible  <bruno@clisp.org>
68170
68171         * modules/stdlib-tests: New file.
68172         * tests/test-stdlib.c: New file.
68173
68174         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68175         (Depends-on): Add stdlib.
68176         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68177         (Includes): Use <stdlib.h> instead of mkstemp.h.
68178         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68179         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68180         * lib/mkstemp.c: Don't include mkstemp.h.
68181         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68182         * lib/stdlib--.h: Don't include mkstemp.h.
68183
68184         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68185         (Depends-on): Add stdlib.
68186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68187         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68188         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68189         HAVE_MKDTEMP.
68190         * lib/mkdtemp.c: Don't include mkdtemp.h.
68191         * lib/clean-temp.c: Don't include mkdtemp.h.
68192
68193         * modules/exit (Files): Remove lib/exit.h.
68194         (Depends-on): Add stdlib.
68195         (Makefile.am): Remove lib_SOURCES.
68196         (Include): Use <stdlib.h> instead of exit.h.
68197         * lib/argmatch.c: Don't include exit.h.
68198         * lib/execute.c: Likewise.
68199         * lib/pagealign_alloc.c: Likewise.
68200         * lib/pipe.c: Likewise.
68201         * lib/wait-process.c: Likewise.
68202         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68203         * lib/exitfail.c: Likewise.
68204         * lib/savewd.c: Likewise.
68205         * lib/xsetenv.c: Likewise.
68206
68207         * modules/stdlib: New file.
68208         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68209         and extra comments about mkstemp().
68210         * lib/exit.h: Remove file.
68211         * lib/mkdtemp.h: Remove file.
68212         * lib/mkstemp.h: Remove file.
68213         * m4/stdlib_h.m4: New file.
68214         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68215
68216 2007-02-18  Bruno Haible  <bruno@clisp.org>
68217
68218         * modules/math-tests: New file.
68219         * tests/test-math.c: New file.
68220
68221         * modules/math: New file.
68222         * modules/mathl (Files): Remove lib/mathl.h.
68223         (Depends-on): Add math.
68224         (Makefile.am): Don't mention mathl.h.
68225         (Include): Use <math.h> instead of mathl.h.
68226         * lib/math_.h: New file.
68227         * lib/mathl.h: Remove file.
68228         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68229         mathl.h.
68230         * lib/asinl.c: Likewise.
68231         * lib/atanl.c: Likewise.
68232         * lib/ceill.c: Likewise.
68233         * lib/cosl.c: Likewise.
68234         * lib/expl.c: Likewise.
68235         * lib/floorl.c: Likewise.
68236         * lib/frexpl.c: Likewise.
68237         * lib/ldexpl.c: Likewise.
68238         * lib/logl.c: Likewise.
68239         * lib/sincosl.c: Likewise.
68240         * lib/sinl.c: Likewise.
68241         * lib/sqrtl.c: Likewise.
68242         * lib/tanl.c: Likewise.
68243         * lib/trigl.c: Likewise.
68244         * m4/math_h.m4: New file.
68245         * MODULES.html.sh (Mathematics): Add math.
68246
68247 2007-02-17  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/wctype-tests: New file.
68250         * tests/test-wctype.c: New file.
68251
68252         * modules/wchar-tests: New file.
68253         * tests/test-wchar.c: New file.
68254
68255         * modules/unistd-tests: New file.
68256         * tests/test-unistd.c: New file.
68257
68258         * modules/time-tests: New file.
68259         * tests/test-time.c: New file.
68260
68261         * modules/sysexits-tests: New file.
68262         * tests/test-sysexits.c: New file.
68263
68264         * modules/sys_time-tests: New file.
68265         * tests/test-sys_time.c: New file.
68266
68267         * modules/sys_stat-tests: New file.
68268         * tests/test-sys_stat.c: New file.
68269
68270         * modules/sys_socket-tests: New file.
68271         * tests/test-sys_socket.c: New file.
68272
68273         * modules/sys_select-tests: New file.
68274         * tests/test-sys_select.c: New file.
68275
68276         * modules/string-tests: New file.
68277         * tests/test-string.c: New file.
68278
68279         * modules/stdbool-tests: New file.
68280         * tests/test-stdbool.c: New file.
68281
68282         * modules/netinet_in-tests: New file.
68283         * tests/test-netinet_in.c: New file.
68284
68285         * modules/inttypes-tests: New file.
68286         * tests/test-inttypes.c: New file.
68287
68288         * modules/fcntl-tests: New file.
68289         * tests/test-fcntl.c: New file.
68290
68291         * modules/byteswap-tests: New file.
68292         * tests/test-byteswap.c: New file.
68293
68294         * modules/arpa_inet-tests: New file.
68295         * tests/test-arpa_inet.c: New file.
68296
68297 2007-02-17  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68300         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68301         if the corresponding module is not enabled. Emit link warnings if
68302         the function is used nevertheless.
68303         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68304         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68305         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68306         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68307         * modules/inttypes (Depends-on): Add link-warning.
68308         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68309         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68310         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68311         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68312         * modules/imaxdiv (configure.ac): Likewise.
68313         * modules/strtoimax (configure.ac): Likewise.
68314         * modules/strtoumax (configure.ac): Likewise.
68315
68316 2007-02-17  Bruno Haible  <bruno@clisp.org>
68317
68318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68319         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68320         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68321         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68322
68323 2007-02-17  Bruno Haible  <bruno@clisp.org>
68324
68325         * modules/link-warning: New file.
68326         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68327         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68328         * modules/string (Depends-on): Add link-warning.
68329         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68330         string.h.
68331         * MODULES.html.sh (Support for building libraries and executables): Add
68332         link-warning.
68333
68334 2007-02-17  Bruno Haible  <bruno@clisp.org>
68335
68336         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68337         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68338         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68339         long lines.
68340
68341 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68342             Bruno Haible  <bruno@clisp.org>
68343
68344         * modules/tmpfile: New file.
68345         * lib/tmpfile.c: New file.
68346         * m4/tmpfile.m4: New file.
68347         * MODULES.html.sh (func_all_modules): New section "Input/output".
68348
68349 2007-02-15  Bruno Haible  <bruno@clisp.org>
68350
68351         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68352         (supports_delete_on_close): New function.
68353         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68354
68355 2007-02-14  Bruno Haible  <bruno@clisp.org>
68356
68357         * modules/mbspcasecmp-tests: New file.
68358         * tests/test-mbspcasecmp.sh: New file.
68359         * tests/test-mbspcasecmp.c: New file.
68360
68361         New module mbspcasecmp.
68362         * modules/mbspcasecmp: New file.
68363         * lib/mbspcasecmp.c: New file.
68364         * lib/string_.h (strncasecmp): Change warning message.
68365         (mbspcasecmp): New declaration.
68366         * m4/mbspcasecmp.m4: New file.
68367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68368         GNULIB_MBSPCASECMP.
68369         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68370         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68371
68372 2007-02-14  Bruno Haible  <bruno@clisp.org>
68373
68374         * modules/mbsncasecmp-tests: New file.
68375         * tests/test-mbsncasecmp.sh: New file.
68376         * tests/test-mbsncasecmp.c: New file.
68377
68378         New module mbsncasecmp.
68379         * modules/mbsncasecmp: New file.
68380         * lib/mbsncasecmp.c: New file.
68381         * lib/string_.h (mbsncasecmp): New declaration.
68382         * m4/mbsncasecmp.m4: New file.
68383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68384         GNULIB_MBSNCASECMP.
68385         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68386         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68387
68388 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68391         Verify that it doesn't overlap with our flags.
68392         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68393         do not have the desired effect in multibyte locales; instead, use
68394         mbscasecmp.
68395         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68396         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68397         we don't require GNU fnmatch ourselves (if our users require it, they
68398         should do so explicitly).
68399
68400         Fix regex code so it doesn't rely on strcasecmp.
68401         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68402         Otherwise, include gnulib's langinfo.h.
68403         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68404         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68405         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68406         * modules/regex (FILES): Remove m4/codeset.m4.
68407         (Depends-on): Add localcharset.  Remove strcase.
68408
68409 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68410
68411         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68412         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68413
68414 2007-02-13  Bruno Haible  <bruno@clisp.org>
68415
68416         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68418
68419 2007-02-12  Bruno Haible  <bruno@clisp.org>
68420
68421         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68422         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68423         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68424         time warning rather than a link error.
68425
68426 2007-02-12  Bruno Haible  <bruno@clisp.org>
68427
68428         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68431
68432 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68435         args, not 2.
68436
68437 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         New module 'time', so that apps can include <time.h> as per
68440         POSIX and GNU instead of separate include files like time_r.h
68441         and timegm.h.  This implementation tries out a simpler approach
68442         for replacing decls in standard include files (as compared to
68443         the string module), somewhat as an experiment.
68444
68445         * config/srclist.txt: Comment out mktime.c for now.
68446         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68447         since it doesn't apply any more.  Use generic wording instead.
68448         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68449         'time'.
68450         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68451         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68452         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68453         Don't include <sys/types.h>; no longer needed since we assume C89.
68454         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68455         * lib/strftime.c: Likewise.
68456         * lib/time_r.c: Likewise.
68457         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68458         * lib/nanosleep.c: Include <time.h> first, to check interface.
68459         * lib/strptime.c: Likewise.
68460         * lib/time_r.c: Likewise.
68461         * lib/timegm.c: Likewise.
68462         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68463         needed.
68464         * lib/timegm.c: Don't include timegm.h; no longer needed.
68465         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68466         time.h now handles any problems in that area.
68467         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68468         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68469         that time.h defines struct timespec.
68470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68471         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68472         handles that.
68473         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68474         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68475         needed.  Set REPLACE_LOCALTIME.
68476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68477         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68478         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68479         nanosleep; time_h.m4 now does that.  Don't require
68480         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68481         module handles this now.
68482         * modules/getdate (Depends-on): Remove timespec.  Add time.
68483         * modules/nanosleep (Depends-on): Likewise.
68484         * modules/stat-time (Depends-on): Likewise.
68485         * modules/nanosleep (Include): Include time.h, not timespec.h.
68486         * modules/strptime (Files): Remove lib/strptime.h.
68487         (Depends-on): Add extensions, time.
68488         (Include): Include time.h, not strptime.h.
68489         * modules/time_r (Files): Remove lib/time_r.h.
68490         (Depends-on): Add time.
68491         (Include): Include time.h, not time_r.h.
68492         * modules/timegm: Likewise.
68493         * modules/timespec (Description): Now does timespec-related decls
68494         of our own, instead of struct timespec itself.
68495         (Depends-on): Add time; remove extensions.
68496         (Maintainer): Add self.
68497         * modules/utimecmp (Depends-on): Add time; remove timespec.
68498         * modules/utimens (Depends-on): Likewise.
68499         * modules/xnanosleep (Depends-on): Likewise.
68500
68501 2007-02-11  Bruno Haible  <bruno@clisp.org>
68502
68503         * lib/c-strstr.c: Include allocsa.h.
68504         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68505         * lib/c-strcasestr.c: Include allocsa.h.
68506         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68507         * lib/strcasestr.c: Include allocsa.h.
68508         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68509         * lib/mbsstr.c: Include allocsa.h.
68510         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68511         allocsa/freesa instead of malloc/free.
68512         * lib/mbscasestr.c: Include allocsa.h.
68513         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68514         allocsa/freesa instead of malloc/free.
68515         * modules/c-strstr (Depends-on): Add allocsa.
68516         * modules/c-strcasestr (Depends-on): Likewise.
68517         * modules/strcasestr (Depends-on): Likewise.
68518         * modules/mbsstr (Depends-on): Likewise.
68519         * modules/mbscasestr (Depends-on): Likewise.
68520
68521 2007-02-11  Bruno Haible  <bruno@clisp.org>
68522
68523         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68524
68525         * modules/mbsspn-tests: New file.
68526         * tests/test-mbsspn.sh: New file.
68527         * tests/test-mbsspn.c: New file.
68528
68529 2007-02-11  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68532
68533         * modules/mbspbrk-tests: New file.
68534         * tests/test-mbspbrk.sh: New file.
68535         * tests/test-mbspbrk.c: New file.
68536
68537 2007-02-11  Bruno Haible  <bruno@clisp.org>
68538
68539         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68540         unneeded cast.
68541
68542         * modules/mbscspn-tests: New file.
68543         * tests/test-mbscspn.sh: New file.
68544         * tests/test-mbscspn.c: New file.
68545
68546 2007-02-11  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/mbscasecmp-tests: New file.
68549         * tests/test-mbscasecmp.sh: New file.
68550         * tests/test-mbscasecmp.c: New file.
68551
68552 2007-02-11  Bruno Haible  <bruno@clisp.org>
68553
68554         Ensure O(n) worst-case complexity of mbscasestr.
68555         * lib/mbscasestr.c: Include stdbool.h.
68556         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68557         functions.
68558         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68559         the bookkeeping indicates that it's worth it.
68560         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68561
68562         * modules/mbscasestr-tests: New file.
68563         * tests/test-mbscasestr1.c: New file.
68564         * tests/test-mbscasestr2.sh: New file.
68565         * tests/test-mbscasestr2.c: New file.
68566         * tests/test-mbscasestr3.sh: New file.
68567         * tests/test-mbscasestr3.c: New file.
68568         * tests/test-mbscasestr4.sh: New file.
68569         * tests/test-mbscasestr4.c: New file.
68570         * m4/locale-tr.m4: New file.
68571
68572 2007-02-11  Bruno Haible  <bruno@clisp.org>
68573
68574         Ensure O(n) worst-case complexity of mbsstr.
68575         * lib/mbsstr.c: Include stdbool.h.
68576         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68577         functions.
68578         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68579         bookkeeping indicates that it's worth it.
68580         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68581
68582         * modules/mbsstr-tests: New file.
68583         * tests/test-mbsstr1.c: New file.
68584         * tests/test-mbsstr2.sh: New file.
68585         * tests/test-mbsstr2.c: New file.
68586         * tests/test-mbsstr3.sh: New file.
68587         * tests/test-mbsstr3.c: New file.
68588         * m4/locale-fr.m4: New file.
68589
68590 2007-02-11  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/mbsrchr.c (mbsrchr): Fix bug.
68593
68594         * modules/mbsrchr-tests: New file.
68595         * tests/test-mbsrchr.sh: New file.
68596         * tests/test-mbsrchr.c: New file.
68597
68598 2007-02-11  Bruno Haible  <bruno@clisp.org>
68599
68600         * lib/mbschr.c (mbschr): Fix bug.
68601
68602         * modules/mbschr-tests: New file.
68603         * tests/test-mbschr.sh: New file.
68604         * tests/test-mbschr.c: New file.
68605         * m4/locale-zh.m4: New file.
68606
68607 2007-02-11  Bruno Haible  <bruno@clisp.org>
68608
68609         Support for copying multibyte string iterators.
68610         * lib/mbiter.h: Include <string.h>.
68611         (mbiter_multi_copy): New function.
68612         (mbi_copy): New macro.
68613         * lib/mbuiter.h: Include <string.h>.
68614         (mbuiter_multi_copy): New function.
68615         (mbui_copy): New macro.
68616
68617 2007-02-11  Bruno Haible  <bruno@clisp.org>
68618
68619         New module mbslen.
68620         * modules/mbslen: New file.
68621         * lib/mbslen.c: New file.
68622         * lib/string_.h (mbslen): New declaration.
68623         * m4/mbslen.m4: New file.
68624         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68625         GNULIB_MBSLEN.
68626         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68627         * MODULES.html.sh (Internationalization functions): Add mbslen.
68628
68629 2007-02-11  Bruno Haible  <bruno@clisp.org>
68630
68631         Ensure O(n) worst-case complexity of strcasestr substitute.
68632         * lib/strcasestr.c: Include stdbool.h.
68633         (knuth_morris_pratt): New function.
68634         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68635         bookkeeping indicates that it's worth it.
68636         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68637
68638         * modules/strcasestr-tests: New file.
68639         * tests/test-strcasestr.c: New file.
68640
68641 2007-02-11  Bruno Haible  <bruno@clisp.org>
68642
68643         Ensure O(n) worst-case complexity of c_strcasestr.
68644         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68645         (knuth_morris_pratt): New function.
68646         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68647         the bookkeeping indicates that it's worth it.
68648         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68649
68650         * modules/c-strcasestr-tests: New file.
68651         * tests/test-c-strcasestr.c: New file.
68652
68653 2007-02-11  Bruno Haible  <bruno@clisp.org>
68654
68655         Ensure O(n) worst-case complexity of c_strstr.
68656         * lib/c-strstr.c: Include stdbool.h, string.h.
68657         (knuth_morris_pratt): New function.
68658         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68659         bookkeeping indicates that it's worth it.
68660         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68661
68662         * lib/c-strstr.c: Complete rewrite for maintainability.
68663
68664         * modules/c-strstr-tests: New file.
68665         * tests/test-c-strstr.c: New file.
68666
68667 2007-02-11  Bruno Haible  <bruno@clisp.org>
68668
68669         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68670         5.2.1 and earlier, whereby \055 was treated just like the range
68671         delimiter '-'.
68672         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68673
68674 2007-02-08  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/regex (Depends-on): Add stdbool.
68677         Reported by Dalibor Topic <robilad@kaffe.org>.
68678
68679 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68682         Prefer returning from main to exiting from it.
68683         Remove unnecessary parens after sizeof.
68684
68685 2007-02-05  Bruno Haible  <bruno@clisp.org>
68686
68687         New module mbssep.
68688         * modules/mbssep: New file.
68689         * lib/mbssep.c: New file.
68690         * lib/string_.h (strsep): Add a conditional link warning.
68691         (mbssep): New declaration.
68692         * m4/mbssep.m4: New file.
68693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68694         GNULIB_MBSSEP.
68695         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68696         * MODULES.html.sh (Internationalization functions): Add mbssep.
68697
68698 2007-02-05  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68701         Optimize search in case of 1 delimiter.
68702
68703 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68704
68705         * lib/acl.h: Include sys/types.h before sys/acl.h.
68706
68707 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68708
68709         Merge upstream fix for glibc bugzilla #3957:
68710
68711         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68712
68713         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68714         bit for RE_HAT_LISTS_NOT_NEWLINE.
68715         (build_charclass_op): Remove bogus comment.
68716
68717 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68718
68719         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68720
68721 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68724         * lib/memmem.c [!defined _LIBC]: Include config.h.
68725
68726 2007-02-04  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68729         warning message.
68730
68731 2007-02-04  Bruno Haible  <bruno@clisp.org>
68732
68733         New module mbstok_r.
68734         * modules/mbstok_r: New file.
68735         * lib/mbstok_r.c: New file.
68736         * lib/string_.h (strtok_r): Change argument names to match the
68737         comments. Add a conditional link warning.
68738         (mbstok_r): New declaration.
68739         * m4/mbstok_r.m4: New file.
68740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68741         GNULIB_MBSTOK_R.
68742         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68743         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68744
68745 2007-02-04  Bruno Haible  <bruno@clisp.org>
68746
68747         New module mbsspn.
68748         * modules/mbsspn: New file.
68749         * lib/mbsspn.c: New file.
68750         * lib/string_.h (strspn): Add a conditional link warning.
68751         (mbsspn): New declaration.
68752         * m4/mbsspn.m4: New file.
68753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68754         GNULIB_MBSSPN.
68755         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68756         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68757
68758 2007-02-04  Bruno Haible  <bruno@clisp.org>
68759
68760         New module mbspbrk.
68761         * modules/mbspbrk: New file.
68762         * lib/mbspbrk.c: New file.
68763         * lib/string_.h (strpbrk): Add a conditional link warning.
68764         (mbspbrk): New declaration.
68765         * m4/mbspbrk.m4: New file.
68766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68767         GNULIB_MBSPBRK.
68768         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68769         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68770
68771 2007-02-04  Bruno Haible  <bruno@clisp.org>
68772
68773         New module mbscspn.
68774         * modules/mbscspn: New file.
68775         * lib/mbscspn.c: New file.
68776         * lib/string_.h (strcspn): Add a conditional link warning.
68777         (mbscspn): New declaration.
68778         * m4/mbscspn.m4: New file.
68779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68780         GNULIB_MBSCSPN.
68781         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68782         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68783
68784 2007-02-04  Bruno Haible  <bruno@clisp.org>
68785
68786         New module mbscasestr, reduced goal of strcasestr.
68787         * modules/mbscasestr: New file.
68788         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68789         (mbscasestr): Renamed from strcasestr.
68790         * lib/strcasestr.c: Don't include mbuiter.h.
68791         (strcasestr): Remove support for multibyte locales.
68792         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68793         Change the conditional link warning.
68794         (mbscasestr): New declaration.
68795         * m4/mbscasestr.m4: New file.
68796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68797         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68798         REPLACE_STRCASESTR.
68799         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68801         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68802         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68803         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68804         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68805         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68806         (Depends-on): Remove mbuiter.
68807         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68808
68809 2007-02-04  Bruno Haible  <bruno@clisp.org>
68810
68811         Simplify handling of strncasecmp.
68812         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68813         the conditional link warning.
68814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68815         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68817         * modules/strcase (configure.ac): Don't invoke
68818         gl_STRING_MODULE_INDICATOR.
68819         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68820
68821 2007-02-04  Bruno Haible  <bruno@clisp.org>
68822
68823         New module mbscasecmp, reduced goal of strcasecmp.
68824         * modules/mbscasecmp: New file.
68825         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68826         (mbscasecmp): Renamed from strcasecmp.
68827         * lib/strcasecmp.c: Don't include mbuiter.h.
68828         (strcasecmp): Remove support for multibyte locales.
68829         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68830         Change the conditional link warning.
68831         (mbscasecmp): New declaration.
68832         * m4/mbscasecmp.m4: New file.
68833         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68834         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68835         REPLACE_STRCASECMP.
68836         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68838         GNULIB_MBSCASECMP.
68839         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68840         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68841         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68842         (Depends-on): Remove mbuiter.
68843         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68844
68845 2007-02-04  Bruno Haible  <bruno@clisp.org>
68846
68847         New module mbsstr. Remove module strstr.
68848         * modules/mbsstr: New file.
68849         * modules/strstr: Remove file.
68850         * lib/mbsstr.c: Renamed from lib/strstr.c.
68851         (mbsstr): Renamed from strstr.
68852         * lib/string_.h (strstr): Remove declaration. Change the conditional
68853         link warning.
68854         (mbsstr): New declaration.
68855         * m4/mbsstr.m4: New file.
68856         * m4/strstr.m4: Remove file.
68857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68858         REPLACE_STRSTR.
68859         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68860         Don't initialize GNULIB_STRSTR.
68861         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68862         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68863         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68864         (Support for systems lacking ANSI C 89): Remove strstr.
68865
68866 2007-02-04  Bruno Haible  <bruno@clisp.org>
68867
68868         New module mbsrchr.
68869         * modules/mbsrchr: New file.
68870         * lib/mbsrchr.c: New file.
68871         * lib/string_.h (strrchr): Add a conditional link warning.
68872         (mbsrchr): New declaration.
68873         * m4/mbsrchr.m4: New file.
68874         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68875         GNULIB_MBSRCHR.
68876         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68877         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68878
68879 2007-02-04  Bruno Haible  <bruno@clisp.org>
68880
68881         New module mbschr.
68882         * modules/mbschr: New file.
68883         * lib/mbschr.c: New file.
68884         * lib/string_.h (strchr): Add a conditional link warning.
68885         (mbschr): New declaration.
68886         * m4/mbschr.m4: New file.
68887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68888         GNULIB_MBSCHR.
68889         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68890         * MODULES.html.sh (Internationalization functions): Add mbschr.
68891
68892 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68895
68896         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68897
68898 2007-02-04  Bruno Haible  <bruno@clisp.org>
68899
68900         New module description section 'configure.ac-early'.
68901         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68902         (func_get_autoconf_early_snippet): New function.
68903         (func_import, func_create_testdir): Use it. Remove special cases for
68904         modules 'extensions' and 'lock'.
68905         * modules/extensions (configure.ac-early): Require
68906         gl_USE_SYSTEM_EXTENSIONS.
68907         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68908
68909 2007-02-04  Bruno Haible  <bruno@clisp.org>
68910
68911         Make use of gcj-4.3's -fsource and -ftarget option.
68912         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68913         and if so try the options -fsource and -ftarget.
68914         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68915         source_version, ftarget_option, target_version arguments.
68916         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68917         (is_envjavac_oldgcj_14_14_usable): Renamed from
68918         is_envjavac_gcj_14_14_usable.
68919         (is_envjavac_oldgcj_14_13_usable): Renamed from
68920         is_envjavac_gcj_14_13_usable.
68921         (is_gcj_present): Update.
68922         (is_gcj_43, is_gcj43_usable): New functions.
68923         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68924         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68925         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68926         try the options -fsource and -ftarget.
68927
68928 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68931         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68932         larger value.
68933
68934 2007-02-03  Jim Meyering  <jim@meyering.net>
68935
68936         Give tools a better chance to allocate space for very large buffers.
68937         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68938
68939         Make pwd and readlink work also when run with an unreadable parent dir
68940         on systems with openat support.
68941         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68942         provided getcwd function, even when we have openat support.
68943         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68944
68945 2007-02-02  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68948         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68949         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68950         portability problems if one of these functions is only used on specific
68951         platforms.
68952         Reported by Paul Eggert.
68953
68954 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68957         is causing more trouble than it's curing.
68958         * lib/regex_internal.h (__mempcpy): Remove.
68959         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68960         (and make the code a tad smaller to boot).
68961         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68962
68963 2007-02-02  Jim Meyering  <jim@meyering.net>
68964
68965         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68966         section, not in the Makefile.am: one.
68967
68968 2007-02-02  Eric Blake  <ebb9@byu.net>
68969
68970         * lib/strchrnul.c: Always include config.h first.
68971
68972         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68973         gnulib strstr is not necessary here.
68974
68975 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68976
68977         * m4/socklen.m4: Fix typo.
68978
68979 2007-02-02  Eric Blake  <ebb9@byu.net>
68980
68981         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68982         * modules/netinet_in (Makefile.am): Likewise.
68983
68984 2007-02-01  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/string_.h (GL_LINK_WARNING): New macro.
68987         (strcasecmp, strstr, strcasestr): If provided by the system,
68988         conditionally define as a macro that leads to a warning instead of to
68989         an error.
68990         (strncasecmp): Conditionally define as a macro that leads to a warning.
68991
68992 2007-02-01  Karl Berry  <karl@gnu.org>
68993
68994         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68995
68996 2007-02-01  Bruno Haible  <bruno@clisp.org>
68997
68998         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68999         renamings.
69000
69001 2007-02-01  Eric Blake  <ebb9@byu.net>
69002
69003         * modules/regex (Depends-on): Revert dependence on mempcpy.
69004         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69005         module's definition of mempcpy.
69006         Reported by Paul Eggert.
69007
69008 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69011         the symbol XYZ before redefining it.  This fixes a problem with
69012         programs that don't use XYZ, when compiled on systems that define
69013         XYZ to something else.
69014
69015 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69018         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69019         writeable to group or other and (2) is intended to have a special
69020         mode bit that is set or cleared.  In such a case, the directory
69021         should be neither group- nor other-writeable until the special
69022         mode bits are right.
69023
69024 2007-01-31  Eric Blake  <ebb9@byu.net>
69025
69026         * modules/mountlist (Depends-on): Add strstr.
69027
69028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69029         bug.
69030         * modules/string (Makefile.am): Remove redundant replacement.
69031         * modules/regex (Depends-on): Add mempcpy.
69032
69033 2007-01-31  Bruno Haible  <bruno@clisp.org>
69034
69035         New module description field 'Link'.
69036         * gnulib-tool (func_usage): Document --extract-link-directive.
69037         (sed_extract_prog): Recognize 'Link' directive.
69038         (func_get_link_directive): New function.
69039         (func_import): Show summary of link directives.
69040         Handle --extract-link-directive option.
69041         * modules/acl (Link): New section.
69042         * modules/clock-time (Link): New section.
69043         * modules/euidaccess (Link): New section.
69044         * modules/gettext (Link): New section.
69045         * modules/iconv (Link): New section.
69046         * modules/lock (Link): New section.
69047         * modules/nanosleep (Link): New section.
69048         * modules/readline (Link): New section.
69049
69050 2007-01-27  Bruno Haible  <bruno@clisp.org>
69051
69052         Enforce the use of gnulib modules for unportable <string.h> functions.
69053         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69054         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69055         (gl_HEADER_STRING_H_BODY): Require it.
69056         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69057         the symbol XYZ to one that gives a link error.
69058         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69059         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69060         * modules/mempcpy (configure.ac): Likewise.
69061         * modules/memrchr (configure.ac): Likewise.
69062         * modules/stpcpy (configure.ac): Likewise.
69063         * modules/stpncpy (configure.ac): Likewise.
69064         * modules/strcase (configure.ac): Likewise.
69065         * modules/strcasestr (configure.ac): Likewise.
69066         * modules/strchrnul (configure.ac): Likewise.
69067         * modules/strdup (configure.ac): Likewise.
69068         * modules/strndup (configure.ac): Likewise.
69069         * modules/strnlen (configure.ac): Likewise.
69070         * modules/strpbrk (configure.ac): Likewise.
69071         * modules/strsep (configure.ac): Likewise.
69072         * modules/strstr (configure.ac): Likewise.
69073         * modules/strtok_r (configure.ac): Likewise.
69074
69075 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69076
69077         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69078
69079 2007-01-30  Jim Meyering  <jim@meyering.net>
69080
69081         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69082
69083 2007-01-29  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69086         * lib/execute.c: Likewise.
69087         * lib/pipe.c: Likewise.
69088         * lib/printf-args.h: Likewise.
69089         * lib/printf-args.c: Likewise.
69090         * lib/printf-parse.c: Likewise.
69091         * lib/vasnprintf.c: Likewise.
69092
69093 2007-01-29  Eric Blake  <ebb9@byu.net>
69094
69095         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69096         declaration.
69097
69098 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * lib/strptime.h (strptime): Use 'restrict' for args where
69101         POSIX requires this.
69102         * lib/strptime.c (strptime): Likewise.
69103         Change license notice from LGPL to GPL, since gnulib-tool will
69104         change this as needed.
69105         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69106         defined.
69107         Include "strptime.h" first, to check interface.
69108         Do not #undef _LIBC and _NL_CURRENT.
69109         Do not include <stdlib.h>; no longer needed.
69110         Include "time_r.h" and declare ptime_locale_status
69111         only if _LIBC is not defined.
69112         (__P): Remove unused macro.
69113         (match_string): Bring back glibc version, but use it only if _LIBC
69114         is defined.
69115         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69116         Remove unnecessary assertion and abort() call.
69117         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69118         * m4/strptime.m4: Fix serial number comment.
69119         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69120         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69121         (Depends-on): Add time_r.
69122
69123 2007-01-29  Bruno Haible  <bruno@clisp.org>
69124
69125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69126         strptime.
69127         * modules/strptime (Depends-on): Add stdbool.
69128         * lib/strptime.h: Include <time.h> always. Add comments.
69129
69130 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69131
69132         * modules/strptime: New file.
69133         * lib/strptime.h: New file.
69134         * lib/strptime.c: New file.
69135         * m4/strptime.m4: New file.
69136
69137 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * MODULES.html.sh: New module mpsort.
69140         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69141
69142         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69143         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69145         All uses changed.
69146         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69147         All uses changed.
69148         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69149         to _Restrict_.
69150         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69151         the parameter matches the prototype.
69152
69153 2007-01-28  Jim Meyering  <jim@meyering.net>
69154
69155         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69156         sys/time.h here, reverting that part of the previous patch:
69157         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69158
69159 2007-01-28  Bruno Haible  <bruno@clisp.org>
69160
69161         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69162         value of $(SYS_TIME_H).
69163         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69164         remove it conditionally, too. [added by Jim Meyering]
69165         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69166         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69167         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69168         GETTIMEOFDAY_REPLACEMENT to 1.
69169
69170 2007-01-28  Bruno Haible  <bruno@clisp.org>
69171
69172         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69173         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69175         Set UNISTD_H instead of UNISTD_H2.
69176         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69177
69178 2007-01-28  Bruno Haible  <bruno@clisp.org>
69179
69180         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69181         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69182
69183 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69184
69185         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69186         (func_create_testdir): Ensure C locale for `grep' and `tr'
69187         character ranges.
69188         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69189         ACLOCAL_AMFLAGS parsing state machine.
69190
69191 2007-01-27  Bruno Haible  <bruno@clisp.org>
69192
69193         * modules/unistr/base: Update.
69194
69195 2007-01-27  Bruno Haible  <bruno@clisp.org>
69196
69197         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69198         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69199         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69200         modules/unistr/u32-mbtouc.
69201         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69202         * lib/unistr.h: Update.
69203         * lib/linebreak.c: Update.
69204         * modules/unistr/u32-mbtouc: Renamed from
69205         modules/unistr/u32-mbtouc-safe.
69206         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69207         * lib/unistr.h: Update.
69208         * lib/unistr/u32-to-u8.c: Update.
69209         * lib/unistr/u32-to-u16.c: Update.
69210
69211 2007-01-27  Bruno Haible  <bruno@clisp.org>
69212
69213         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69214         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69215         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69216         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69217         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69218         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69219         modules/unistr/u16-mbtouc.
69220         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69221         * lib/unistr.h: Update.
69222         * lib/linebreak.c: Update.
69223         * modules/linebreak: Update.
69224         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69225         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69226         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69227         * modules/unistr/u16-mbtouc: Renamed from
69228         modules/unistr/u16-mbtouc-safe.
69229         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69230         * lib/unistr.h: Update.
69231         * lib/unistr/u16-to-u8.c: Update.
69232         * modules/unistr/u16-to-u8: Update.
69233         * lib/unistr/u16-to-u32.c: Update.
69234         * modules/unistr/u16-to-u32: Update.
69235
69236 2007-01-27  Bruno Haible  <bruno@clisp.org>
69237
69238         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69239         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69240         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69241         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69242         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69243         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69244         modules/unistr/u8-mbtouc.
69245         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69246         * lib/unistr.h: Update.
69247         * lib/striconveh.c: Update.
69248         * modules/striconveh: Update.
69249         * lib/linebreak.c: Update.
69250         * modules/linebreak: Update.
69251         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69252         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69253         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69254         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69255         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69256         * lib/unistr.h: Update.
69257         * lib/striconveh.c: Update.
69258         * modules/striconveh: Update.
69259         * lib/unistr/u8-to-u16.c: Update.
69260         * modules/unistr/u8-to-u16: Update.
69261         * lib/unistr/u8-to-u32.c: Update.
69262         * modules/unistr/u8-to-u32: Update.
69263
69264 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69265
69266         Sync from Libtool.
69267         * lib/argz.c: Do not include strings.h nor memory.h, include
69268         string.h unconditionally.  Patch by Simon Josefsson.
69269
69270 2007-01-27  Bruno Haible  <bruno@clisp.org>
69271
69272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69273         from gl_HEADER_STRING_H_BODY.
69274         (gl_HEADER_STRING_H_BODY): Require it.
69275         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69276         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69278         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69280         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69282         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69283         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69284         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69285         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69286         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69287         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69288         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69289         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69290
69291 2007-01-27  Bruno Haible  <bruno@clisp.org>
69292
69293         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69294         check_PROGRAMS into noinst_PROGRAMS.
69295         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69296         check_PROGRAMS in this case.
69297         (func_import): Set for_test to false.
69298         (func_create_testdir): Set for_test to true.
69299
69300 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69301             Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69304         (Depends-on): Add string.
69305         (Includes): Use <string.h> instead of strcasestr.h.
69306         * modules/string (Makefile.am): Also substitute the value of
69307         REPLACE_STRCASESTR.
69308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69309         assume strcasestr is declared in <string.h> not <strings.h>. Also
69310         set REPLACE_STRCASESTR.
69311         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69312         REPLACE_STRCASESTR.
69313         * lib/strcasestr.h: Remove file.
69314         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69315         * lib/string_.h (strcasestr): New declaration.
69316
69317 2007-01-27  Bruno Haible  <bruno@clisp.org>
69318
69319         * lib/string_.h: Use 'extern'.
69320
69321 2007-01-27  Jim Meyering  <jim@meyering.net>
69322
69323         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69324         of set-but-not-used local, "q".
69325
69326         * lib/mempcpy.c: Include <config.h> before <string.h>.
69327         This fixes a compilation error on HP-UX, due to the system's
69328         "restrict"-using mempcpy prototype.
69329
69330 2007-01-26  Bruno Haible  <bruno@clisp.org>
69331
69332         Small optimization.
69333         * lib/javacomp.c: Include c-strstr.h.
69334          (is_envjavac_gcj): Use c_strstr instead of strstr.
69335         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69336
69337 2007-01-26  Bruno Haible  <bruno@clisp.org>
69338
69339         * MODULES.html.sh (Unicode string functions): Add the new modules.
69340
69341         * modules/uniconv/u32-strconv-to-locale: New file.
69342         * lib/uniconv/u32-strconv-to-locale.c: New file.
69343
69344         * modules/uniconv/u16-strconv-to-locale: New file.
69345         * lib/uniconv/u16-strconv-to-locale.c: New file.
69346
69347         * modules/uniconv/u8-strconv-to-locale: New file.
69348         * lib/uniconv/u8-strconv-to-locale.c: New file.
69349
69350         * modules/uniconv/u32-strconv-from-locale: New file.
69351         * lib/uniconv/u32-strconv-from-locale.c: New file.
69352
69353         * modules/uniconv/u16-strconv-from-locale: New file.
69354         * lib/uniconv/u16-strconv-from-locale.c: New file.
69355
69356         * modules/uniconv/u8-strconv-from-locale: New file.
69357         * lib/uniconv/u8-strconv-from-locale.c: New file.
69358
69359         * modules/uniconv/u32-strconv-to-enc: New file.
69360         * lib/uniconv/u32-strconv-to-enc.c: New file.
69361         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69362         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69363
69364         * modules/uniconv/u16-strconv-to-enc: New file.
69365         * lib/uniconv/u16-strconv-to-enc.c: New file.
69366         * lib/uniconv/u-strconv-to-enc.h: New file.
69367         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69368         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69369
69370         * modules/uniconv/u8-strconv-to-enc: New file.
69371         * lib/uniconv/u8-strconv-to-enc.c: New file.
69372         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69373         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69374
69375         * modules/uniconv/u32-strconv-from-enc: New file.
69376         * lib/uniconv/u32-strconv-from-enc.c: New file.
69377         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69378         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69379
69380         * modules/uniconv/u16-strconv-from-enc: New file.
69381         * lib/uniconv/u16-strconv-from-enc.c: New file.
69382         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69383         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69384
69385         * modules/uniconv/u8-strconv-from-enc: New file.
69386         * lib/uniconv/u8-strconv-from-enc.c: New file.
69387         * lib/uniconv/u-strconv-from-enc.h: New file.
69388         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69389         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69390
69391         * modules/uniconv/u32-conv-from-enc: New file.
69392         * lib/uniconv/u32-conv-from-enc.c: New file.
69393         * modules/uniconv/u32-conv-from-enc-tests: New file.
69394         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69395
69396         * modules/uniconv/u16-conv-from-enc: New file.
69397         * lib/uniconv/u16-conv-from-enc.c: New file.
69398         * lib/uniconv/u-conv-from-enc.h: New file.
69399         * modules/uniconv/u16-conv-from-enc-tests: New file.
69400         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69401
69402         * modules/uniconv/u8-conv-from-enc: New file.
69403         * lib/uniconv/u8-conv-from-enc.c: New file.
69404         * modules/uniconv/u8-conv-from-enc-tests: New file.
69405         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69406
69407         * modules/uniconv/base: New file.
69408         * lib/uniconv.h: New file.
69409
69410 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69411
69412         * doc/gnulib-tool.texi (Initial import): Update to match current
69413         behavior with strdup module.
69414         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69415         * lib/memmem.h: Remove; all uses removed.  This is now done
69416         by <string.h>.
69417         * lib/mempcpy.h: Likewise.
69418         * lib/memrchr.h: Likewise.
69419         * lib/stpcpy.h: Likewise.
69420         * lib/stpncpy.h: Likewise.
69421         * lib/strcase.h: Likewise.
69422         * lib/strchrnul.h: Likewise.
69423         * lib/strdup.h: Likewise.
69424         * lib/strndup.h: Likewise.
69425         * lib/strnlen.h: Likewise.
69426         * lib/strpbrk.h: Likewise.
69427         * lib/strsep.h: Likewise.
69428         * lib/strstr.h: Likewise.
69429         * lib/strtok_r.h: Likewise.
69430         * lib/string_.h: New file.
69431         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69432         Rely on <string.h> instead.
69433         * lib/canon-host.c: Likewise.
69434         * lib/chdir-long.c: Likewise.
69435         * lib/concatpath.c: Likewise.
69436         * lib/exclude.c: Likewise.
69437         * lib/fchdir.c: Likewise.
69438         * lib/getaddrinfo.c: Likewise.
69439         * lib/getcwd.c: Likewise.
69440         * lib/getsubopt.c: Likewise.
69441         * lib/glob.c: Likewise.
69442         * lib/hard-locale.c: Likewise.
69443         * lib/iconvme.c: Likewise.
69444         * lib/javacomp.c: Likewise.
69445         * lib/mempcpy.c: Likewise.
69446         * lib/memrchr.c: Likewise.
69447         * lib/regex_internal.h: Likewise.
69448         * lib/stpncpy.c: Likewise.
69449         * lib/strcasecmp.c: Likewise.
69450         * lib/strchrnul.c: Likewise.
69451         * lib/strdup.c: Likewise.
69452         * lib/striconv.c: Likewise.
69453         * lib/striconveh.c: Likewise.
69454         * lib/striconveha.c: Likewise.
69455         * lib/strncasecmp.c: Likewise.
69456         * lib/strndup.c: Likewise.
69457         * lib/strnlen.c: Likewise.
69458         * lib/strsep.c: Likewise.
69459         * lib/strstr.c: Likewise.
69460         * lib/strtok_r.c: Likewise.
69461         * lib/userspec.c: Likewise.
69462         * lib/w32spawn.h: Likewise.
69463         * lib/xstrndup.c: Likewise.
69464         * lib/mountlist.c (strstr): Remove decl.
69465         * m4/string_h.m4: New file.
69466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69467         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69470         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69471         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69472         Set REPLACE_STRCASECMP if necessary.
69473         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69474         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69475         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69476         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69477         HAVE_DECL_STRDUP if necessary.
69478         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69479         since gl_FUNC_STRNDUP does that now.
69480         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69481         Check for decl here...
69482         (gl_PREREQ_STRNLEN): ... not here.
69483         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69484         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69485         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69486         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69487         necessary.
69488         * modules/string: New file.
69489         * modules/memmem (Files): Remove special-purpose include file.
69490         (Depends-on): Add string.
69491         (Include): Include <string.h>, not the removed file.
69492         * modules/mempcpy: Likewise.
69493         * modules/memrchr: Likewise.
69494         * modules/stpcpy: Likewise.
69495         * modules/stpncpy: Likewise.
69496         * modules/strcase: Likewise.
69497         * modules/strchrnul: Likewise.
69498         * modules/strdup: Likewise.
69499         * modules/strndup: Likewise.
69500         * modules/strnlen: Likewise.
69501         * modules/strpbrk: Likewise.
69502         * modules/strsep: Likewise.
69503         * modules/strstr: Likewise.
69504         * modules/strtok_r: Likewise.
69505         * tests/test-dirname.c: Don't include "strdup.h", since
69506         <string.h> now suffices.
69507         * tests/test-memmem.c: Don't include "memmem.h", since
69508         <string.h> now suffices.
69509
69510 2007-01-25  Bruno Haible  <bruno@clisp.org>
69511
69512         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69513         *resultp is 0.
69514
69515         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69516         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69517         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69518         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69519
69520         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69521         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69522         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69523         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69524         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69525         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69526
69527 2007-01-24  Bruno Haible  <bruno@clisp.org>
69528
69529         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69531         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69532         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69533         gl_FUNC_FTS_CORE.
69534         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69535         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69536         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69537         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69538         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69539         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69540         gl_FUNC_FCHOWNAT.
69541         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69542         gl_FUNC_STRFTIME.
69543         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69544         Reported by Ralf Wildenhues.
69545
69546 2007-01-24  Bruno Haible  <bruno@clisp.org>
69547
69548         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69549         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69550         gl_GETADDRINFO.
69551         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69552         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69553         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69554
69555 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69558         Don't use 'exit'; just return from 'main'.
69559         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69560
69561         * lib/fnmatch_.h: Readjust white space and comments to match
69562         glibc, to avoid spurious diffs.
69563
69564 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69567         2004-12-01 change by Jakub Jelinek, since this code won't compile
69568         if !LIBC.  Problem reported by Bob Proulx.
69569
69570 2007-01-23  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/striconveh.c: Include c-strcaseeq.h.
69573         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69574         * modules/striconveh (Depends-on): Add c-strcaseeq.
69575
69576 2007-01-23  Bruno Haible  <bruno@clisp.org>
69577
69578         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69579
69580         * modules/c-strcaseeq: New file.
69581         * lib/c-strcaseeq.h: New file.
69582
69583         * modules/streq: New file.
69584         * lib/streq.h: New file.
69585
69586 2007-01-23  Bruno Haible  <bruno@clisp.org>
69587
69588         * modules/striconveha-tests: New file.
69589         * tests/test-striconveha.c: New file.
69590
69591         * lib/striconveha.h: Include <stdbool.h>.
69592         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69593         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69594         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69595         (mem_iconveha): New function.
69596         (str_iconveha_notranslit): Renamed from str_iconveha.
69597         (str_iconveha): New function.
69598         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69599         c-strcase.
69600
69601 2007-01-23  Bruno Haible  <bruno@clisp.org>
69602
69603         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69604         encodings without forgiving before trying any encoding with handler.
69605         (str_iconveha): Try all encodings without forgiving before trying any
69606         encoding with handler.
69607
69608 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         Import the following changes from libc.
69611
69612         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69613
69614         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69615
69616         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69617
69618         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69619         normal_bracket label.
69620
69621         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69622
69623         [BZ #361]
69624         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69625         to normal_bracket after fetching the next character.
69626
69627 2007-01-22  Bruno Haible  <bruno@clisp.org>
69628
69629         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69630         argument.
69631         * lib/striconveh.c (iconv_carefully_1): New function.
69632         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69633         argument.
69634         (str_cd_iconveh): Update.
69635         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69636         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69637         * tests/test-striconveh.c (MAGIC): New macro.
69638         (new_offsets): New function.
69639         (main): Test call with and without offsets.
69640
69641 2007-01-22  Bruno Haible  <bruno@clisp.org>
69642
69643         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69644         * modules/sys_select (Makefile.am): Likewise.
69645         * modules/sys_socket (Makefile.am): Likewise.
69646         * modules/sys_time (Makefile.am): Likewise.
69647
69648 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         * modules/gettimeofday (License): Change from GPL to LGPL, since
69651         gettimeofday is a library function.
69652
69653 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69654
69655         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69656
69657 2007-01-21  Bruno Haible  <bruno@clisp.org>
69658
69659         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69660
69661 2007-01-21  Bruno Haible  <bruno@clisp.org>
69662
69663         * modules/striconveha: New file.
69664         * lib/striconveha.h: New file.
69665         * lib/striconveha.c: New file.
69666         * MODULES.html.sh (Internationalization functions): Add striconveha.
69667         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69668         string.
69669         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69670
69671 2007-01-21  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69674         * lib/striconveh.c (str_iconveh): Likewise.
69675
69676 2007-01-21  Bruno Haible  <bruno@clisp.org>
69677
69678         * lib/striconveh.h (mem_iconveh): New declaration.
69679         * lib/striconveh.c (mem_iconveh): New function.
69680         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69681
69682 2007-01-21  Bruno Haible  <bruno@clisp.org>
69683
69684         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69685
69686         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69687         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69688         original result buffer.
69689         (str_cd_iconveh): Update.
69690         * tests/test-striconveh.c (main): Update.
69691
69692         * lib/striconv.h (mem_cd_iconv): Change specification.
69693         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69694         result buffer.
69695         (str_cd_iconv): Update.
69696         * tests/test-striconv.c (main): Update.
69697
69698 2007-01-21  Bruno Haible  <bruno@clisp.org>
69699
69700         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69701
69702 2007-01-20  Jim Meyering  <jim@meyering.net>
69703
69704         * lib/userspec.c (parse_with_separator): If a user or group string
69705         starts with "+", skip the corresponding name-to-ID look-up, since
69706         such a look-up must fail: user and group names may not include "+".
69707
69708 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69709
69710         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69711         since we now assume the sys_time module.
69712         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69713         check for sys/time.h; no longer needed.
69714         * modules/poll (Depends-on): Depend on sys_time.
69715
69716 2007-01-18  Bruno Haible  <bruno@clisp.org>
69717
69718         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69719         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69720
69721         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69722         gettimeofday.
69723
69724         * tests/test-gettimeofday.c: Include <time.h>.
69725         (dummy): Remove variable.
69726
69727         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69728         gl_HEADER_SYS_TIME_H.
69729         (gl_HEADER_SYS_TIME_H): New macro.
69730
69731         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69732         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69734         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69735         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69736         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69737         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69738         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69739         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69740         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69741         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69742
69743         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69744         last change; it caused a compilation error when cross-compiling to
69745         Cygwin.
69746
69747 2007-01-18  Jim Meyering  <jim@meyering.net>
69748
69749         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69750         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69751         than the race-prone "test -d sys || mkdir sys".
69752         (configure.ac): Use AC_PROG_MKDIR_P.
69753         * modules/sys_select: Likewise.
69754         * modules/sys_socket: Likewise.
69755         * modules/sys_time: Likewise.
69756
69757 2007-01-18  Eric Blake  <ebb9@byu.net>
69758
69759         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69760         replace gettimeofday.
69761         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69762         name, to avoid infinite recursion.
69763
69764 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69767         module sys_time.
69768         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69769         assume timespec.h defines struct timeval.
69770         * lib/settime.c: Likewise.
69771         * lib/utimens.c: Likewise.
69772         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69773         since we now assume the gettimeofday module.
69774         * lib/tempname.c (__gen_tempname): Likewise.
69775         * lib/gettimeofday.h: Remove.
69776         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69777         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69778         Include <time.h>, for 'time()'.
69779         (localtime_buffer_addr): Also use this workaround if
69780         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69781         to simplify the uses.  All uses changed.
69782         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69783         that #undef is inside {}, and 'const' follows type name consistently.
69784         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69785         (gettimeofday): Do not use the maximum possible value for
69786         tv->tv_usec, since that might break usages other than ls.c.
69787         Instead, we'll leave ls.c alone.  This undoes today's patch
69788         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69789         we've never observed the problem but might as well keep the
69790         canary.
69791         * lib/nanosleep.c: Include timespec.h first, for interface check.
69792         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69793         now assume the sys_time module.
69794         * lib/tempname.c: Likewise.
69795         * lib/timespec.h: Likewise.
69796         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69797         needed.
69798         * lib/strftime.c: Likewise.
69799         * lib/timespec.h: Likewise.
69800         * lib/posixtm.c: Include posixtm.h first, for interface check.
69801         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69802         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69803         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69804         * lib/sys_time_.h: New file.
69805         * lib/timespec.h (struct timespec): Use long int, not long.
69806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69807         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69808         Remove obsolescent call to AC_HEADER_TIME.
69809         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69811         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69812         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69813         Likewise.
69814         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69815         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69817         into the sys_time module.  Check for gettimeofday just once.
69818         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69819         for gettimeofday signature to just check the signature.  Merely
69820         compile it, since linking doesn't test signature.  Improve test for
69821         whether gettimeofday.o is actually needed.
69822         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69823         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69824         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69825         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69826         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69827         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69828         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69829         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69830         than worrying about sys/time.h.
69831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69832         Don't bother worrying about TIME_WITH_SYS_TIME.
69833         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69834         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69835         * m4/sys_time_h.m4: New file.
69836         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69837         Don't include sys/time.h.  Return from main rather than exiting.
69838         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69839         all uses changed.
69840         * modules/gethrxtime (Depends-on): Add sys_time.
69841         * modules/gettime (Depends-on): Likewise.
69842         * modules/gettimeofday (Depends-on): Likewise.
69843         * modules/nanosleep (Depends-on): Likewise.
69844         * modules/settime (Depends-on): Likewise.
69845         * modules/tempname (Depends-on): Likewise.
69846         * modules/utimens (Depends-on): Likewise.
69847         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69848         (Include): Change back to <sys/time.h>.
69849         (Maintainer): Add self.
69850         * modules/sys_time: New file.
69851         * modules/tempname (Depends-on): Add gettimeofday.
69852         * tests/test-gettimeofday.c: Include <sys/time.h>
69853         rather than gettimeofday.h.
69854
69855 2007-01-17  Bruno Haible  <bruno@clisp.org>
69856
69857         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69858         the license default to GPL.
69859         (func_create_testdir): Don't complain if a module is LGPL and its
69860         tests module depends on GPLed modules.
69861
69862 2007-01-17  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/gettimeofday.c (gettimeofday): Add code for the case
69865         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69866         maximum possible value for tv->tv_usec, rather than the minimum one.
69867
69868 2005-10-08  Martin Lambers  <marlam@marlam.de>
69869 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69870 2007-01-16  Bruno Haible  <bruno@clisp.org>
69871
69872         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69873         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69874         gl_FUNC_GETTIMEOFDAY.
69875         (Include): Add gettimeofday.h.
69876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69877         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69878         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69879         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69880         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69881         * lib/gettimeofday.h: New file.
69882         * lib/gettimeofday.c: Include <sys/timeb.h>.
69883         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69884         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69885         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69886         fall back on time().
69887
69888         * tests/test-gettimeofday.c: New file.
69889         * modules/gettimeofday-tests: New file.
69890
69891 2007-01-16  Eric Blake  <ebb9@byu.net>
69892
69893         * modules/fnmatch (Depends-on): Depend on wchar.
69894         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69895         * m4/fnmatch.m4: Likewise.
69896         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69897         * m4/mbchar.m4: Likewise.
69898         * modules/mbswidth (Depends-on): Depend on wchar.
69899         * lib/mbswidth.c: Assume <wchar.h>.
69900         * m4/mbswidth.m4: Likewise.
69901         * modules/quotearg (Depends-on): Depend on wchar.
69902         * lib/quotearg.c: Assume <wchar.h>.
69903         * m4/quotearg.m4: Likewise.
69904         * modules/regex (Depends-on): Depend on wchar.
69905         * lib/regex_internal.h: Assume <wchar.h>.
69906         * m4/regex.m4: Likewise.
69907         * modules/stdint (Depends-on): Depend on wchar.
69908         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69909         * m4/stdint.m4: Likewise.
69910         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69911         * modules/strftime (Depends-on): Depend on wchar.
69912         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69913         * modules/strtol (Depends-on): Depend on wchar.
69914         * lib/strtol.c: Assume <wchar.h>.
69915         * modules/wcwidth (Depends-on): Depend on wchar.
69916         * lib/wcwidth.h: Assume <wchar.h>.
69917         * m4/wcwidth.m4: Likewise.
69918
69919 2007-01-16  Bruno Haible  <bruno@clisp.org>
69920
69921         * modules/csharpexec-script: New, created from...
69922         * modules/csharpexec: ... this.
69923
69924 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69925
69926         * modules/javaexec-script: New, created from...
69927         * modules/javaexec: ... this.
69928
69929 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69930
69931         * modules/poll (Dependencies): Add sys_select.
69932
69933 2007-01-15  Jim Meyering  <jim@meyering.net>
69934
69935         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69936         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69937         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69938         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69939
69940 2007-01-15  Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/striconveh: New file.
69943         * lib/striconveh.h: New file.
69944         * lib/striconveh.c: New file.
69945         * MODULES.html.sh (Internationalization functions): Add striconveh.
69946
69947         * modules/striconveh-tests: New file.
69948         * tests/test-striconveh.c: New file.
69949
69950 2007-01-15  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69953         not from GNU libiconv or GNU libc.
69954
69955 2007-01-15  Bruno Haible  <bruno@clisp.org>
69956
69957         * doc/gnulib-intro.texi (Copyright): Explain the different license
69958         terms for module descriptions, autoconf macros, tests, documentation.
69959
69960 2007-01-14  Bruno Haible  <bruno@clisp.org>
69961
69962         * modules/striconv-tests: New file.
69963         * tests/test-striconv.c: New file.
69964
69965 2007-01-14  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/iconv-tests: New file.
69968         * tests/test-iconv.c: New file.
69969
69970 2007-01-14  Bruno Haible  <bruno@clisp.org>
69971
69972         * gnulib-tool (func_get_license): For test modules, use the license of
69973         the main module.
69974
69975 2007-01-14  Bruno Haible  <bruno@clisp.org>
69976
69977         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69978         if iconv is found to exist.
69979
69980 2007-01-14  Bruno Haible  <bruno@clisp.org>
69981
69982         * modules/c-ctype-tests: New file.
69983         * tests/test-c-ctype.c: New file.
69984
69985 2007-01-14  Bruno Haible  <bruno@clisp.org>
69986
69987         * modules/binary-io-tests: New file.
69988         * tests/test-binary-io.sh: New file.
69989         * tests/test-binary-io.c: New file.
69990
69991 2007-01-14  Bruno Haible  <bruno@clisp.org>
69992
69993         * modules/array-oset-tests: New file.
69994         * tests/test-array_oset.c: New file.
69995
69996 2007-01-14  Bruno Haible  <bruno@clisp.org>
69997
69998         * modules/array-list-tests: New file.
69999         * tests/test-array_list.c: New file.
70000
70001 2007-01-14  Bruno Haible  <bruno@clisp.org>
70002
70003         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70004         and make.
70005         Reported by Simon Josefsson in
70006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70007
70008 2007-01-14  Bruno Haible  <bruno@clisp.org>
70009
70010         * modules/allocsa-tests: New file.
70011         * tests/test-allocsa.c: New file.
70012
70013 2007-01-14  Bruno Haible  <bruno@clisp.org>
70014
70015         * modules/fchdir (Depends-on): Add absolute-header.
70016         * modules/unistd (Depends-on): Likewise.
70017
70018 2006-12-30  Bruno Haible  <bruno@clisp.org>
70019
70020         * modules/fchdir: New file.
70021         * modules/unistd (Files): Add lib/unistd_.h.
70022         (Makefile.am): Generate unistd.h from unistd_.h.
70023         * lib/fchdir.c: New file.
70024         * lib/dirent_.h: New file.
70025         * lib/unistd_.h: New file.
70026         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70027         * m4/fchdir.m4: New file.
70028         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70029         (gl_HEADER_UNISTD): Invoke it.
70030         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70031         function.
70032         * lib/backupfile.c (opendir, closedir): Undefine.
70033         * lib/chown.c (open, close): Undefine.
70034         * lib/clean-temp.c (open, close): Undefine.
70035         * lib/copy-file.c (open, close): Undefine.
70036         * lib/execute.c (open, close): Undefine.
70037         * lib/fsusage.c (open, close): Undefine.
70038         * lib/gc-gnulib.c (open, close): Undefine.
70039         * lib/getcwd.c (opendir, closedir): Undefine.
70040         * lib/glob.c (opendir, closedir): Undefine.
70041         * lib/javacomp.c (open, close): Undefine.
70042         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70043         * lib/openat-proc.c (open, close): Undefine.
70044         * lib/pagealign_alloc.c (open, close): Undefine.
70045         * lib/pipe.c (open, close): Undefine.
70046         * lib/progreloc.c (open, close): Undefine.
70047         * lib/savedir.c (opendir, closedir): Undefine.
70048         * lib/utime.c (open, close): Undefine.
70049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70050
70051 2007-01-10  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70054
70055 2007-01-12  Eric Blake  <ebb9@byu.net>
70056
70057         Provide a robust <wchar.h>.  Further simplifications are now
70058         possible in other modules, but not included here.
70059         * modules/wchar: New module.
70060         * m4/wchar.m4: New file.
70061         * lib/wchar_.h: Likewise.
70062         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70063         of the new module.
70064         * MODULES.html.sh (Extended multibyte and wide character utilities):
70065         New section.
70066
70067 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70070         to a reasonable default for memory allocation.
70071         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70072         file system that reports garbage st_size values for symlinks.
70073         Problem reported by Liyang Hu.
70074
70075 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70076
70077         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70078         Emacs .#* auto-save files).
70079
70080 2007-01-11  Bruno Haible  <bruno@clisp.org>
70081
70082         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70083         directory.
70084
70085 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         Use @...@ consistently in lib/wctype_.h.
70088         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70089         on it being set to 1 or 0.
70090         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70091         go back to AC_SUBSTing it.
70092         * modules/wctype (Makefile.am): Undo previous change.
70093
70094 2007-01-10  Eric Blake  <ebb9@byu.net>
70095
70096         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70097         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70098         * modules/wctype (Makefile.am): Likewise.
70099         Reported by Chris McGuire.
70100
70101 2007-01-10  Jim Meyering  <jim@meyering.net>
70102
70103         fts.c: a small readability/maintainability improvement
70104         * lib/fts.c (fts_read): Make this code slightly more readable and
70105         maintainable by hoisting the "sp->fts_cur = p" assignments to
70106         immediately follow the statements that set P.  Derived from
70107         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70108
70109 2007-01-10  Eric Blake  <ebb9@byu.net>
70110
70111         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70112         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70114         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70115         Reported by Chris McGuire.
70116
70117 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70118
70119         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70120         in sed script.
70121
70122 2007-01-09  Bruno Haible  <bruno@clisp.org>
70123
70124         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70125         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70126         variables.
70127         (func_module): Use them.
70128
70129 2007-01-09  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/unistr/base: New file.
70132         * lib/unistr.h: New file.
70133
70134         * modules/unistr/u8-to-u16: New file.
70135         * lib/unistr/u8-to-u16.c: New file.
70136
70137         * modules/unistr/u8-to-u32: New file.
70138         * lib/unistr/u8-to-u32.c: New file.
70139
70140         * modules/unistr/u16-to-u8: New file.
70141         * lib/unistr/u16-to-u8.c: New file.
70142
70143         * modules/unistr/u16-to-u32: New file.
70144         * lib/unistr/u16-to-u32.c: New file.
70145
70146         * modules/unistr/u32-to-u8: New file.
70147         * lib/unistr/u32-to-u8.c: New file.
70148
70149         * modules/unistr/u32-to-u16: New file.
70150         * lib/unistr/u32-to-u16.c: New file.
70151
70152         * modules/unistr/u8-check: New file.
70153         * modules/unistr/u16-check: New file.
70154         * modules/unistr/u32-check: New file.
70155         * lib/unistr/u8-check.c: New file.
70156         * lib/unistr/u16-check.c: New file.
70157         * lib/unistr/u32-check.c: New file.
70158
70159         * modules/unistr/u8-chr: New file.
70160         * modules/unistr/u16-chr: New file.
70161         * modules/unistr/u32-chr: New file.
70162         * lib/unistr/u8-chr.c: New file.
70163         * lib/unistr/u16-chr.c: New file.
70164         * lib/unistr/u32-chr.c: New file.
70165
70166         * modules/unistr/u8-cmp: New file.
70167         * modules/unistr/u16-cmp: New file.
70168         * modules/unistr/u32-cmp: New file.
70169         * lib/unistr/u8-cmp.c: New file.
70170         * lib/unistr/u16-cmp.c: New file.
70171         * lib/unistr/u32-cmp.c: New file.
70172
70173         * modules/unistr/u8-cpy: New file.
70174         * modules/unistr/u16-cpy: New file.
70175         * modules/unistr/u32-cpy: New file.
70176         * lib/unistr/u8-cpy.c: New file.
70177         * lib/unistr/u16-cpy.c: New file.
70178         * lib/unistr/u32-cpy.c: New file.
70179         * lib/unistr/u-cpy.h: New file.
70180
70181         * modules/unistr/u8-cpy-alloc: New file.
70182         * modules/unistr/u16-cpy-alloc: New file.
70183         * modules/unistr/u32-cpy-alloc: New file.
70184         * lib/unistr/u8-cpy-alloc.c: New file.
70185         * lib/unistr/u16-cpy-alloc.c: New file.
70186         * lib/unistr/u32-cpy-alloc.c: New file.
70187         * lib/unistr/u-cpy-alloc.h: New file.
70188
70189         * modules/unistr/u8-endswith: New file.
70190         * modules/unistr/u16-endswith: New file.
70191         * modules/unistr/u32-endswith: New file.
70192         * lib/unistr/u8-endswith.c: New file.
70193         * lib/unistr/u16-endswith.c: New file.
70194         * lib/unistr/u32-endswith.c: New file.
70195         * lib/unistr/u-endswith.h: New file.
70196
70197         * modules/unistr/u8-mblen: New file.
70198         * modules/unistr/u16-mblen: New file.
70199         * modules/unistr/u32-mblen: New file.
70200         * lib/unistr/u8-mblen.c: New file.
70201         * lib/unistr/u16-mblen.c: New file.
70202         * lib/unistr/u32-mblen.c: New file.
70203
70204         * modules/unistr/u8-mbtouc: New file.
70205         * modules/unistr/u16-mbtouc: New file.
70206         * modules/unistr/u32-mbtouc: New file.
70207         * lib/unistr/u8-mbtouc.c: New file.
70208         * lib/unistr/u16-mbtouc.c: New file.
70209         * lib/unistr/u32-mbtouc.c: New file.
70210
70211         * modules/unistr/u8-mbtouc-safe: New file.
70212         * modules/unistr/u16-mbtouc-safe: New file.
70213         * modules/unistr/u32-mbtouc-safe: New file.
70214         * lib/unistr/u8-mbtouc-safe.c: New file.
70215         * lib/unistr/u16-mbtouc-safe.c: New file.
70216         * lib/unistr/u32-mbtouc-safe.c: New file.
70217
70218         * modules/unistr/u8-move: New file.
70219         * modules/unistr/u16-move: New file.
70220         * modules/unistr/u32-move: New file.
70221         * lib/unistr/u8-move.c: New file.
70222         * lib/unistr/u16-move.c: New file.
70223         * lib/unistr/u32-move.c: New file.
70224         * lib/unistr/u-move.h: New file.
70225
70226         * modules/unistr/u8-next: New file.
70227         * modules/unistr/u16-next: New file.
70228         * modules/unistr/u32-next: New file.
70229         * lib/unistr/u8-next.c: New file.
70230         * lib/unistr/u16-next.c: New file.
70231         * lib/unistr/u32-next.c: New file.
70232
70233         * modules/unistr/u8-prev: New file.
70234         * modules/unistr/u16-prev: New file.
70235         * modules/unistr/u32-prev: New file.
70236         * lib/unistr/u8-prev.c: New file.
70237         * lib/unistr/u16-prev.c: New file.
70238         * lib/unistr/u32-prev.c: New file.
70239
70240         * modules/unistr/u8-set: New file.
70241         * modules/unistr/u16-set: New file.
70242         * modules/unistr/u32-set: New file.
70243         * lib/unistr/u8-set.c: New file.
70244         * lib/unistr/u16-set.c: New file.
70245         * lib/unistr/u32-set.c: New file.
70246         * lib/unistr/u-set.h: New file.
70247
70248         * modules/unistr/u8-startswith: New file.
70249         * modules/unistr/u16-startswith: New file.
70250         * modules/unistr/u32-startswith: New file.
70251         * lib/unistr/u8-startswith.c: New file.
70252         * lib/unistr/u16-startswith.c: New file.
70253         * lib/unistr/u32-startswith.c: New file.
70254         * lib/unistr/u-startswith.h: New file.
70255
70256         * modules/unistr/u8-stpcpy: New file.
70257         * modules/unistr/u16-stpcpy: New file.
70258         * modules/unistr/u32-stpcpy: New file.
70259         * lib/unistr/u8-stpcpy.c: New file.
70260         * lib/unistr/u16-stpcpy.c: New file.
70261         * lib/unistr/u32-stpcpy.c: New file.
70262         * lib/unistr/u-stpcpy.h: New file.
70263
70264         * modules/unistr/u8-stpncpy: New file.
70265         * modules/unistr/u16-stpncpy: New file.
70266         * modules/unistr/u32-stpncpy: New file.
70267         * lib/unistr/u8-stpncpy.c: New file.
70268         * lib/unistr/u16-stpncpy.c: New file.
70269         * lib/unistr/u32-stpncpy.c: New file.
70270         * lib/unistr/u-stpncpy.h: New file.
70271
70272         * modules/unistr/u8-strcat: New file.
70273         * modules/unistr/u16-strcat: New file.
70274         * modules/unistr/u32-strcat: New file.
70275         * lib/unistr/u8-strcat.c: New file.
70276         * lib/unistr/u16-strcat.c: New file.
70277         * lib/unistr/u32-strcat.c: New file.
70278         * lib/unistr/u-strcat.h: New file.
70279
70280         * modules/unistr/u8-strchr: New file.
70281         * modules/unistr/u16-strchr: New file.
70282         * modules/unistr/u32-strchr: New file.
70283         * lib/unistr/u8-strchr.c: New file.
70284         * lib/unistr/u16-strchr.c: New file.
70285         * lib/unistr/u32-strchr.c: New file.
70286
70287         * modules/unistr/u8-strcmp: New file.
70288         * modules/unistr/u16-strcmp: New file.
70289         * modules/unistr/u32-strcmp: New file.
70290         * lib/unistr/u8-strcmp.c: New file.
70291         * lib/unistr/u16-strcmp.c: New file.
70292         * lib/unistr/u32-strcmp.c: New file.
70293
70294         * modules/unistr/u8-strcpy: New file.
70295         * modules/unistr/u16-strcpy: New file.
70296         * modules/unistr/u32-strcpy: New file.
70297         * lib/unistr/u8-strcpy.c: New file.
70298         * lib/unistr/u16-strcpy.c: New file.
70299         * lib/unistr/u32-strcpy.c: New file.
70300         * lib/unistr/u-strcpy.h: New file.
70301
70302         * modules/unistr/u8-strcspn: New file.
70303         * modules/unistr/u16-strcspn: New file.
70304         * modules/unistr/u32-strcspn: New file.
70305         * lib/unistr/u8-strcspn.c: New file.
70306         * lib/unistr/u16-strcspn.c: New file.
70307         * lib/unistr/u32-strcspn.c: New file.
70308         * lib/unistr/u-strcspn.h: New file.
70309
70310         * modules/unistr/u8-strdup: New file.
70311         * modules/unistr/u16-strdup: New file.
70312         * modules/unistr/u32-strdup: New file.
70313         * lib/unistr/u8-strdup.c: New file.
70314         * lib/unistr/u16-strdup.c: New file.
70315         * lib/unistr/u32-strdup.c: New file.
70316         * lib/unistr/u-strdup.h: New file.
70317
70318         * modules/unistr/u8-strlen: New file.
70319         * modules/unistr/u16-strlen: New file.
70320         * modules/unistr/u32-strlen: New file.
70321         * lib/unistr/u8-strlen.c: New file.
70322         * lib/unistr/u16-strlen.c: New file.
70323         * lib/unistr/u32-strlen.c: New file.
70324         * lib/unistr/u-strlen.h: New file.
70325
70326         * modules/unistr/u8-strmblen: New file.
70327         * modules/unistr/u16-strmblen: New file.
70328         * modules/unistr/u32-strmblen: New file.
70329         * lib/unistr/u8-strmblen.c: New file.
70330         * lib/unistr/u16-strmblen.c: New file.
70331         * lib/unistr/u32-strmblen.c: New file.
70332
70333         * modules/unistr/u8-strmbtouc: New file.
70334         * modules/unistr/u16-strmbtouc: New file.
70335         * modules/unistr/u32-strmbtouc: New file.
70336         * lib/unistr/u8-strmbtouc.c: New file.
70337         * lib/unistr/u16-strmbtouc.c: New file.
70338         * lib/unistr/u32-strmbtouc.c: New file.
70339
70340         * modules/unistr/u8-strncat: New file.
70341         * modules/unistr/u16-strncat: New file.
70342         * modules/unistr/u32-strncat: New file.
70343         * lib/unistr/u8-strncat.c: New file.
70344         * lib/unistr/u16-strncat.c: New file.
70345         * lib/unistr/u32-strncat.c: New file.
70346         * lib/unistr/u-strncat.h: New file.
70347
70348         * modules/unistr/u8-strncmp: New file.
70349         * modules/unistr/u16-strncmp: New file.
70350         * modules/unistr/u32-strncmp: New file.
70351         * lib/unistr/u8-strncmp.c: New file.
70352         * lib/unistr/u16-strncmp.c: New file.
70353         * lib/unistr/u32-strncmp.c: New file.
70354
70355         * modules/unistr/u8-strncpy: New file.
70356         * modules/unistr/u16-strncpy: New file.
70357         * modules/unistr/u32-strncpy: New file.
70358         * lib/unistr/u8-strncpy.c: New file.
70359         * lib/unistr/u16-strncpy.c: New file.
70360         * lib/unistr/u32-strncpy.c: New file.
70361         * lib/unistr/u-strncpy.h: New file.
70362
70363         * modules/unistr/u8-strnlen: New file.
70364         * modules/unistr/u16-strnlen: New file.
70365         * modules/unistr/u32-strnlen: New file.
70366         * lib/unistr/u8-strnlen.c: New file.
70367         * lib/unistr/u16-strnlen.c: New file.
70368         * lib/unistr/u32-strnlen.c: New file.
70369         * lib/unistr/u-strnlen.h: New file.
70370
70371         * modules/unistr/u8-strpbrk: New file.
70372         * modules/unistr/u16-strpbrk: New file.
70373         * modules/unistr/u32-strpbrk: New file.
70374         * lib/unistr/u8-strpbrk.c: New file.
70375         * lib/unistr/u16-strpbrk.c: New file.
70376         * lib/unistr/u32-strpbrk.c: New file.
70377         * lib/unistr/u-strpbrk.h: New file.
70378
70379         * modules/unistr/u8-strrchr: New file.
70380         * modules/unistr/u16-strrchr: New file.
70381         * modules/unistr/u32-strrchr: New file.
70382         * lib/unistr/u8-strrchr.c: New file.
70383         * lib/unistr/u16-strrchr.c: New file.
70384         * lib/unistr/u32-strrchr.c: New file.
70385
70386         * modules/unistr/u8-strspn: New file.
70387         * modules/unistr/u16-strspn: New file.
70388         * modules/unistr/u32-strspn: New file.
70389         * lib/unistr/u8-strspn.c: New file.
70390         * lib/unistr/u16-strspn.c: New file.
70391         * lib/unistr/u32-strspn.c: New file.
70392         * lib/unistr/u-strspn.h: New file.
70393
70394         * modules/unistr/u8-strstr: New file.
70395         * modules/unistr/u16-strstr: New file.
70396         * modules/unistr/u32-strstr: New file.
70397         * lib/unistr/u8-strstr.c: New file.
70398         * lib/unistr/u16-strstr.c: New file.
70399         * lib/unistr/u32-strstr.c: New file.
70400         * lib/unistr/u-strstr.h: New file.
70401
70402         * modules/unistr/u8-strtok: New file.
70403         * modules/unistr/u16-strtok: New file.
70404         * modules/unistr/u32-strtok: New file.
70405         * lib/unistr/u8-strtok.c: New file.
70406         * lib/unistr/u16-strtok.c: New file.
70407         * lib/unistr/u32-strtok.c: New file.
70408         * lib/unistr/u-strtok.h: New file.
70409
70410         * modules/unistr/u8-uctomb: New file.
70411         * modules/unistr/u16-uctomb: New file.
70412         * modules/unistr/u32-uctomb: New file.
70413         * lib/unistr/u8-uctomb.c: New file.
70414         * lib/unistr/u16-uctomb.c: New file.
70415         * lib/unistr/u32-uctomb.c: New file.
70416
70417         * MODULES.html.sh (Unicode string functions): Add the new modules.
70418
70419 2007-01-08  Bruno Haible  <bruno@clisp.org>
70420
70421         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70422         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70423         subdirectories.
70424
70425 2007-01-08  Karl Berry  <karl@gnu.org>
70426
70427         * doc/error.texi: mention that main() fns must set program_name
70428         when progname is used.
70429
70430 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70433         WCTYPE_H is empty, for the benefit of builds from non-distclean
70434         directories.  Problem reported by Eric Blake in
70435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70436
70437 2007-01-08  Bruno Haible  <bruno@clisp.org>
70438
70439         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70440         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70441         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70442         PROVIDE_CANONICALIZE_FILENAME_MODE.
70443         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70444
70445 2007-01-08  Bruno Haible  <bruno@clisp.org>
70446
70447         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70448         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70449         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70450         * lib/fts.c: Likewise.
70451         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70452
70453 2006-12-25  Bruno Haible  <bruno@clisp.org>
70454
70455         * modules/utf8-ucs4-safe: New file.
70456         * lib/utf8-ucs4-safe.h: New file.
70457         * lib/unistr/utf8-ucs4-safe.c: New file.
70458
70459         * modules/utf16-ucs4-safe: New file.
70460         * lib/utf16-ucs4-safe.h: New file.
70461         * lib/unistr/utf16-ucs4-safe.c: New file.
70462
70463         * MODULES.html.sh (Unicode string functions): Add the new modules.
70464
70465 2007-01-08  Bruno Haible  <bruno@clisp.org>
70466
70467         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70468         (Depends-on): Add unitypes.
70469         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70470         (u8_mbtouc_aux): Move out to separate file.
70471         (u8_mbtouc): Use ucs4_t, uint8_t types.
70472         * lib/unistr/utf8-ucs4.c: New file.
70473
70474         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70475         (Depends-on): Add unitypes.
70476         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70477         (u16_mbtouc_aux): Move out to separate file.
70478         (u16_mbtouc): Use ucs4_t, uint16_t types.
70479         * lib/unistr/utf16-ucs4.c: New file.
70480
70481         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70482         (Depends-on): Add unitypes.
70483         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70484         (u8_uctomb_aux): Move out to separate file.
70485         (u8_uctomb): Use ucs4_t, uint8_t types.
70486         * lib/unistr/ucs4-utf8.c: New file.
70487
70488         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70489         (Depends-on): Add unitypes.
70490         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70491         (u16_uctomb_aux): Move out to separate file.
70492         (u16_uctomb): Use ucs4_t, uint16_t types.
70493         * lib/unistr/ucs4-utf16.c: New file.
70494
70495 2006-12-25  Bruno Haible  <bruno@clisp.org>
70496
70497         * modules/unitypes: New file.
70498         * lib/unitypes.h: New file.
70499         * MODULES.html.sh (func_all_modules): New section "Unicode string
70500         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70501         this section. Add unitypes.
70502
70503 2007-01-08  Bruno Haible  <bruno@clisp.org>
70504
70505         Avoid variable names that conflict with those from libtool.
70506         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70507         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70508         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70509         library_names_spec to acl_library_names_spec, hardcode_* to
70510         acl_hardcode_*.
70511         Reported by Ralf Wildenhues.
70512
70513 2007-01-08  Bruno Haible  <bruno@clisp.org>
70514
70515         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70516         definition.
70517         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70518         definition.
70519         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70520         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70521         definition.
70522         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70523         definition.
70524         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70525         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70526         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70527         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70528         definition.
70529         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70530         definition.
70531         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70532         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70533         GC_USE_<algorithm>.
70534         * lib/gc-libgcrypt.c: Likewise.
70535         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70536         * modules/gc-arctwo (configure.ac): Likewise.
70537         * modules/gc-des (configure.ac): Likewise.
70538         * modules/gc-hmac-md5 (configure.ac): Likewise.
70539         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70540         * modules/gc-md2 (configure.ac): Likewise.
70541         * modules/gc-md4 (configure.ac): Likewise.
70542         * modules/gc-md5 (configure.ac): Likewise.
70543         * modules/gc-random (configure.ac): Likewise.
70544         * modules/gc-rijndael (configure.ac): Likewise.
70545         * modules/gc-sha1 (configure.ac): Likewise.
70546
70547 2007-01-08  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70550         macro definition.
70551         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70552         definition.
70553         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70554         definition.
70555         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70556         * modules/fcntl-safer (configure.ac): Likewise.
70557         * modules/fopen-safer (configure.ac): Likewise.
70558         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70559         GNULIB_FWRITEERROR macro definition.
70560
70561 2007-01-08  Bruno Haible  <bruno@clisp.org>
70562
70563         * m4/gnulib-common.m4: New file.
70564         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70565         (func_get_filelist): Add m4/gnulib-common.m4.
70566
70567 2007-01-08  Bruno Haible  <bruno@clisp.org>
70568
70569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70570         command.
70571
70572 2007-01-08  Jim Meyering  <jim@meyering.net>
70573
70574         Use a more robust test for a "can't happen" condition.
70575         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70576         narrowed the st_size value.  Presuming the "can't happen" condition
70577         is true, that narrowing could conceivably convert an invalid st_size
70578         value into a valid one.  Instead, use a change based on Matthew
70579         Woehlke's original patch.
70580
70581         Slight readability improvement: use an assert-like macro
70582         in place of literal "abort ()" uses.
70583         * lib/fts.c (fts_assert): Define.
70584         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70585         Use this macro instead of a bare 'abort'.
70586
70587 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70590         simply work around them.
70591         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70592         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70593         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70594         declaring.
70595         Don't bother to define as macros, since the standard doesn't require it.
70596         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70597         longer worry about IRIX 5.3.
70598         (HAVE_WCTYPE_CTMP_BUG): Remove.
70599
70600 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70603         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70604         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70605         Problems reported by Georg Schwarz for IRIX 5.3.
70606
70607         * gnulib-tool (autoconf_minversion): Take the maximum version number
70608         found, not the minimum.  Problem reported by James Youngman.
70609
70610 2007-01-03  Karl Berry  <karl@gnu.org>
70611
70612         * doc/error.texi: new file, explaining interaction with progname.
70613         * doc/gnulib.texi: include it.  Update copyright.
70614
70615 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70616
70617         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70618         AC_CANONICAL_HOST, to improve autobuild outputs.
70619
70620 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70621             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70622
70623         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70624         sockets, server sockets, and other file descriptors.  Count errors
70625         to compute the return value.  Reorder the code a bit to be easier
70626         to follow.  Don't set event bits that were not requested (except
70627         POLLERR and POLLHUP).
70628
70629 2007-01-01  Bruno Haible  <bruno@clisp.org>
70630
70631         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70632
70633 2007-01-03  Jim Meyering  <jim@meyering.net>
70634
70635         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70636
70637 2007-01-02  Bruno Haible  <bruno@clisp.org>
70638
70639         * modules/settime (Include): Require timespec.h.
70640         * modules/nanosleep (Include): Likewise.
70641
70642 2007-01-01  Bruno Haible  <bruno@clisp.org>
70643
70644         * gnulib-tool (func_emit_copyright_notice): Bump year.
70645         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70646
70647 2007-01-01  Bruno Haible  <bruno@clisp.org>
70648
70649         Improve support for OpenBSD.
70650         * build-aux/config.rpath (libname_spec): Export.
70651         (library_names_spec): New variable. Export.
70652         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70653         library_names_spec from the config.rpath output. Locate shared library
70654         through the name pattern in library_names_spec.
70655
70656 2007-01-01  Eric Blake  <ebb9@byu.net>
70657
70658         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70659
70660 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70661
70662         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70663         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70664         assume the C locale, and avoid an "eval" that could cause trouble.
70665         Problem with SORT reported by Bob Proulx.
70666
70667         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70668         Define.  Trivial patch from Henning Nielsen Lund, originally
70669         sent to bug-grep@gnu.org today.
70670
70671 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70672
70673         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70674         struct stat.  Problem reported by Henning Nielsen Lund.
70675         * lib/acl.c: Include acl.h first, to check interface.  Don't
70676         bother to include sys/types.h and sys/stat.h again.
70677
70678 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         Import the following change from libc; problem reported by
70681         Sven Verdoolaege.
70682
70683         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70684
70685         [BZ #1373]
70686         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70687
70688 2006-12-28  Jim Meyering  <jim@meyering.net>
70689
70690         * build-aux/announce-gen: Do not assume that the package
70691         builds any of tar.gz, tar.bz2, and .xdelta files.
70692         Suggestion from Simon Josefsson.
70693
70694 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70695
70696         * modules/announce-gen: New file.
70697
70698 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70701         handles its gotchas now.
70702         * lib/mbswidth.c: Likewise.
70703         * lib/wcwidth.h: Likewise.
70704         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70705         and iswcntrl; the wctype module does this stuff now.
70706         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70708         * modules/mbchar (Depends-on): Add wctype.
70709         * modules/mbswidth (Depends-on): Likewise.
70710         * modules/wcwidth (Depends-on): Likewise.
70711
70712 2006-12-27  Eric Blake  <ebb9@byu.net>
70713
70714         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70715         module uses more than what <wctype.h> is required to provide.
70716
70717 2006-12-26  Eric Blake  <ebb9@byu.net>
70718
70719         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70720
70721 2006-12-26  Eric Blake  <ebb9@byu.net>
70722
70723         * modules/absolute-header: New module.
70724         * modules/fcntl (Depends-on): Depend on it.
70725         * modules/inttypes (Depends-on): Likewise.
70726         * modules/stdint (Depends-on): Likewise.
70727         * modules/sys_stat (Depends-on): Likewise.
70728         * modules/wctype (Depends-on): Likewise.
70729         * MODULES.html.sh (Support for building libraries and
70730         executables): Document it.
70731
70732 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * gnulib-tool (SED): Remove, undoing previous change.
70735         The problem was that it broke coreutils on Solaris, because
70736         "sed --posix" leaked into a makefile.
70737         (sed): New alias, if 'alias' and GNU sed.
70738
70739 2006-12-24  Jim Meyering  <jim@meyering.net>
70740
70741         Work around an fchownat bug in glibc-2.4:
70742         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70743         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70744         in spite of the -P option.
70745         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70746         New macros.
70747         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70748         * modules/openat (Files): Add lib/fchownat.c.
70749         * lib/openat.c (fchownat): Don't define here.  Move to...
70750         * lib/fchownat.c: ...this new file.
70751
70752 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70753
70754         Fix bug reported by Bruno Haible in
70755         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70756         where quotearg.c didn't compile on Mac OS X 10.2 because it
70757         lacks <wchar.h> and wint_t.
70758         * lib/wctype_.h (__wctype_wint_t): New type.
70759         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70760         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70761         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70762         Arg is now of type __wctype_wint_t, not wint_t.
70763         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70764         substitute HAVE_WINT_T.
70765         * modules/wctype (Files): Add m4/wint_t.m4.
70766         (wctype.h): Substitute HAVE_WINT_T.
70767
70768 2006-12-23  Bruno Haible  <bruno@clisp.org>
70769
70770         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70771
70772 2006-12-23  Bruno Haible  <bruno@clisp.org>
70773
70774         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70775         S_ISLNK.
70776         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70777         mingw.
70778
70779 2006-12-22  Bruno Haible  <bruno@clisp.org>
70780
70781         * lib/copy-file.c: Include acl.h.
70782         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70783         Close the file descriptors only after being done with copy_acl.
70784         * modules/copy-file (Depends-on): Add acl.
70785
70786 2006-12-22  Bruno Haible  <bruno@clisp.org>
70787
70788         * gnulib-tool (SED): New variable.
70789         Use $SED instead of sed everywhere.
70790
70791 2006-12-22  Bruno Haible  <bruno@clisp.org>
70792
70793         * modules/no-c++: New file.
70794         * m4/no-c++.m4: New file.
70795         * MODULES.html.sh (Support for building libraries and executables):
70796         Add no-c++.
70797
70798 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70801         Include <limits.h>, and use its INT_MAX to rewrite the
70802         j loop so that it does not overflow 'int'.  Problem reported by
70803         Ralf Wildenhues in
70804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70805         Play it safe by shifting left by 1 rather than multiplying by 2,
70806         as GCC is less likely to optimize this away when the value
70807         is signed (when it assumes overflow leads to undefined behavior).
70808         Also, don't assume time_t uses two's complement.
70809
70810 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * MODULES.html.sh: New module wctype.
70813         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70814         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70815         <wctype.h>, since the new wctype module should fix this.
70816         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70817         the wctype module should arrange for it.
70818         * lib/regex_internal.h: Likewise.
70819         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70820         since the wctype module should handle this now.
70821         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70822         * modules/fnmatch (Depends-on): Add wctype.
70823         * modules/quotearg (Depends-on): Likewise.
70824         * modules/regex (Depends-on): Likewise.
70825
70826 2006-12-19  Bruno Haible  <bruno@clisp.org>
70827
70828         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70829         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70830
70831 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70832
70833         * modules/savewd (Depends-on): Fix dependency on fcntl.
70834
70835 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70838         conforms to C99, rather than relying on the user's environment
70839         setting of STDINT_H.
70840
70841 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70842         and Eric Blake  <ebb9@byu.net>
70843
70844         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70845         This is more consistent with the other defines here.
70846         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70847         Port to z/OS.  Problem reported by Paul Gilmartin.
70848         Change local vars to use gl_ prefix rather than ac_.
70849         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70850         with other defines.
70851         * modules/double-slash-root: New module.
70852         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70853         (Depends-on): Add double-slash-root.
70854         * MODULES.html.sh (File system functions): Mention new module.
70855
70856 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70859         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70860         This is for the benefit of gzip, which doesn't do i18n.
70861
70862 2006-12-12  Jim Meyering  <jim@meyering.net>
70863
70864         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70865         Reported by Andreas Schwab <schwab@suse.de>.
70866
70867 2006-12-12  Bruno Haible  <bruno@clisp.org>
70868
70869         Merge these changes.
70870         2006-09-05  Bruno Haible  <bruno@clisp.org>
70871         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70872         iconv_alloc succeeded.
70873         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70874         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70875         test for " && dest " at the end - dest is always != NULL there. Call
70876         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70877         with 2xNULL arguments, also to flush the state storage. Handle the
70878         IRIX iconv behaviour. Realloc the final result, to throw away unused
70879         memory.
70880
70881 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70884         and fchmodat unconditionally, since glibc 2.4 has them.
70885         Problem reported by Arkadiusz Miskiewicz.
70886
70887 2006-12-10  Bruno Haible  <bruno@clisp.org>
70888
70889         * gnulib-tool (func_import): Show the include files only for those
70890         modules that are copied and specified.
70891         Reported by Karl Berry.
70892
70893 2006-12-08  Jim Meyering  <jim@meyering.net>
70894
70895         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70896         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70897
70898         * build-aux/announce-gen: Add two new options, both optional:
70899         --bootstrap-tools=TOOL_LIST
70900               a comma-separated list of tools, e.g.,
70901               autoconf,automake,bison,gnulib
70902         --gnulib-snapshot-date=DATE
70903               if gnulib is in the bootstrap tool list,
70904               then report this as the snapshot date.
70905               If not specified, use the current date/time.
70906               If you specify a date here, be sure it's UTC.
70907
70908 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70909
70910         * tests/test-argp-2.sh: Fix test to match actual output.
70911         (func_compare): Fix sed script to be portable.
70912
70913 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70916         workaround for this case.  It is not autoconfigured now; offhand
70917         it's hard to see how to autoconfigure it.
70918
70919 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70922         a directory that is about to be chowned.  Such a directory's
70923         initial file permissions should permit the owner only and this
70924         should not be changed until after the chown, since the group and
70925         other bits would be incorrect if they granted permission before
70926         the chown.
70927
70928         Fix porting problem for iswctype reported by Georg Schwarz in:
70929         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70930         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70931         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70932         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70933         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70934
70935 2006-12-03  Jim Meyering  <jim@meyering.net>
70936
70937         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70938         p->fts_statp may not yet be defined.
70939         (fts_read): Instead, set it in the caller, once p->fts_statp is
70940         sure to be defined, and corresponds to a top-level directory.
70941         This bug made du -x fail.  Here's the coreutils test case:
70942         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70943         Reported by Mike Frysinger.
70944
70945 2006-12-01  Jim Meyering  <jim@meyering.net>
70946
70947         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70948         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70949         Reported by Simon Josefsson.
70950
70951 2006-11-30  Jim Meyering  <jim@meyering.net>
70952
70953         * m4/warning.m4: Use the all-permissive copyright notice
70954         recommended by RMS (rather than LGPL).
70955         * m4/vararrays.m4: Likewise.
70956         * m4/flexmember.m4: Likewise.
70957
70958 2006-11-29  Bruno Haible  <bruno@clisp.org>
70959
70960         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70961         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70962         using +=.
70963         Reported by Simon Josefsson <simon@josefsson.org>.
70964
70965 2006-11-28  James Youngman <jay@gnu.org>
70966
70967         * README: Advise users that they might find the bug-gnulib@gnu.org
70968         and autotools-announce@gnu.org mailing lists useful.
70969
70970 2006-11-28  Bruno Haible  <bruno@clisp.org>
70971
70972         * m4/ptrdiff_max.m4: Remove file.
70973
70974 2006-11-21  Bruno Haible  <bruno@clisp.org>
70975
70976         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70977         _AC_COMPUTE_INT.
70978         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70979         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70980         _AC_COMPUTE_INT.
70981         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70982         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70983         _AC_COMPUTE_INT.
70984         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70985
70986 2006-11-28  Jim Meyering  <jim@meyering.net>
70987
70988         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70989         warning from "gcc -Wshadow" about shadowing the builtin.
70990
70991 2006-11-27  Bruno Haible  <bruno@clisp.org>
70992
70993         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70994         _AC_COMPUTE_INT.
70995         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70996
70997 2006-11-27  Bruno Haible  <bruno@clisp.org>
70998             Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71001
71002 2006-11-26  Bruno Haible  <bruno@clisp.org>
71003
71004         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71005         noinst_LTLIBRARIES.
71006
71007 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71008             Bruno Haible  <bruno@clisp.org>
71009
71010         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71011         if compiling with "gcc -ansi".
71012
71013 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71014
71015         Fix some incompatibilities with gcc -ansi -pedantic.
71016         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71017         if compiling pedantically with GCC, unless it's C99 or later.
71018         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71019         it mishandles gcc -ansi -pedantic as well.
71020         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71021         if gcc -pedantic.
71022         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71023         initializers for struct if -pedantic, unless it's C99 or later.
71024
71025 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71026
71027         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71028         Don't close an fd more than once. Identical atimes indicate
71029         success, not failure.
71030
71031 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71032
71033         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71034
71035 2006-11-23  Jim Meyering  <jim@meyering.net>
71036
71037         * build-aux/announce-gen: New file.  From coreutils.
71038
71039 2006-11-22  Jim Meyering  <jim@meyering.net>
71040
71041         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71042         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71043         (fts_read): Use a temporary to narrow the overused st_size member
71044         before using it in a switch statement.  Reported by Matthew Woehlke.
71045
71046         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71047         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71048
71049 2006-11-20  Bruno Haible  <bruno@clisp.org>
71050
71051         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71052         changequote instead of pairs of brackets.
71053         Reported by Andreas Schwab <schwab@suse.de>.
71054
71055 2006-11-21  Jim Meyering  <jim@meyering.net>
71056
71057         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71058         so as to remain compatible with older compilers.
71059         Patch from Michael Deutschmann.
71060
71061 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * MODULES.html.sh (File system functions): Add openat.
71064
71065         * lib/openat.h (rpl_fstatat): New macro, if
71066         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71067         (fstatat): Define to rpl_fstatat under the same conditions,
71068         unless COMPILING_FSTATAT.
71069         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71070         seems to have the bug.
71071         * lib/fstatat.c: New file.
71072         * modules/openat (Files): Add it.
71073
71074 2006-11-20  Bruno Haible  <bruno@clisp.org>
71075
71076         * Makefile: New file.
71077
71078 2006-11-20  Jim Meyering  <jim@meyering.net>
71079
71080         The beginnings of syntax-related checks for gnulib.
71081         * lib/Makefile: New file.
71082         * lib/t-idcache: New script.  Ensure that the two halves of
71083         idcache.c stay in sync.
71084
71085         * lib/idcache.c: Adjust comments in user- and group- portions to
71086         be more accurate, and to be consistent with one another.
71087
71088 2006-11-20  Jim Meyering  <jim@meyering.net>
71089
71090         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71091         continue using the flexible array member (thus, this module performs
71092         half as many malloc calls), with the addition that...
71093         (getgroup, getuser): Consistently record a non-match via an empty
71094         "name" string, and map an empty string match to a NULL return value.
71095         * modules/idcache (Depends-on): Re-add flexmember.
71096
71097         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71098         (getuidbyname, getgroup, getgidbyname): Likewise.
71099
71100         Use cleaner syntax: NULL rather than 0.
71101         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71102
71103 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71106         It mishandled the case where the group was missing.
71107         Problem reported by Greg Schafer.
71108         * modules/idcache: Likewise.
71109
71110 2006-11-18  Jim Meyering  <jim@meyering.net>
71111
71112         * check-module (%exempt_header): Add exception for some
71113         conditionally-included headers.
71114
71115         * modules/i-ring (Depends-on): Add verify.
71116         (License): Change to LGPL.
71117
71118 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71121         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71122         and inttostr.h.  Use snprintf rather than uinttostr, so that
71123         LGPLed code doesn't depend on GPLed.
71124
71125 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * modules/inline (License): Change from GPL to LGPL.
71128
71129 2006-11-17  Jim Meyering  <jim@meyering.net>
71130
71131         * modules/d-type (License): Switch to LGPL.
71132
71133 2006-11-15  Bruno Haible  <bruno@clisp.org>
71134
71135         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71136
71137 2006-11-15  Eric Blake  <ebb9@byu.net>
71138
71139         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71140         the module dependency.
71141
71142 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71143             Bruno Haible  <bruno@clisp.org>
71144
71145         * gnulib-tool (func_create_testdir): Add license consistency check.
71146
71147 2006-11-15  Eric Blake  <ebb9@byu.net>
71148
71149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71150         random "(cached)" in configure output.
71151
71152 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71153
71154         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71155         test for conforming inttypes.h is both announced and cached.
71156
71157         * MODULES.html.sh (seen_modules, seen_files): New variables.
71158         (func_module): Rewrite to use a few less gnulib-tool and sed
71159         invocations.  Avoid a couple of quadratic algorithms for ...
71160         (missed_modules, missed_files): ... these, with ...
71161         (func_append, func_tmpdir): ... these new functions, from
71162         gnulib-tool.  Analogously, install traps for cleanup.
71163
71164         * tests/test-gc.c (main): Remove unused variables.
71165         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71166
71167 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * modules/inttostr (License): Change to LGPL.
71170
71171 2006-11-14  Eric Blake  <ebb9@byu.net>
71172
71173         * modules/tempname (License): Change to LGPL.
71174
71175 2006-11-14  Eric Blake  <ebb9@byu.net>
71176
71177         * doc/functions.texi (Function Portability): *printf functions on
71178         Cygwin now understand all POSIX size specifiers.
71179
71180 2006-11-14  Bruno Haible  <bruno@clisp.org>
71181
71182         * modules/c-ctype (License): Change to LGPL.
71183
71184 2006-11-12  Bruno Haible  <bruno@clisp.org>
71185
71186         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71187         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71188         for GNOME libraries, for which the include files are installed in
71189         subdirectories of $prefix/include.
71190
71191 2006-11-12  Bruno Haible  <bruno@clisp.org>
71192
71193         * m4/lib-link.m4: Require at least autoconf-2.54.
71194         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71195         name to underscores for the --with option.
71196
71197 2006-11-13  Bruno Haible  <bruno@clisp.org>
71198
71199         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71200         the tests directory.
71201         Reported by Ralf Wildenhues.
71202
71203 2006-11-13  Bruno Haible  <bruno@clisp.org>
71204
71205         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71206         (func_emit_initmacro_end): Undo the override here.
71207         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71208         Works around the famous automake error in coreutils.
71209
71210 2006-11-13  Eric Blake  <ebb9@byu.net>
71211
71212         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71213         element, not its node.
71214
71215 2006-11-12  Bruno Haible  <bruno@clisp.org>
71216
71217         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71218         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71219
71220 2006-11-12  Bruno Haible  <bruno@clisp.org>
71221
71222         * gnulib-tool: New option --local-symlink.
71223         (func_usage): Document it.
71224         (lsymbolic): New variable.
71225         (func_import, func_create_testdir): If --symlink was not specified,
71226         test whether --local-symlink was specified and the file comes from
71227         the local_gnulib_dir.
71228
71229 2006-11-12  Bruno Haible  <bruno@clisp.org>
71230
71231         * gnulib-tool (func_ln): New function.
71232         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71233
71234 2006-11-12  Bruno Haible  <bruno@clisp.org>
71235
71236         Finish support for source files in subdirectories.
71237         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71238         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71239         AUTOMAKE_OPTIONS.
71240         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71241
71242 2006-11-12  Bruno Haible  <bruno@clisp.org>
71243
71244         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71245         EXTRA_lib_SOURCES augmentation.
71246         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71247
71248 2006-11-12  Jim Meyering  <jim@meyering.net>
71249
71250         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71251         file descriptors.  This also averts a failure on systems with
71252         native openat support when a traversed directory lacks "x" access.
71253         * lib/fts_.h: Include "i-ring.h"
71254         (struct FTS) [fts_fd_ring]: New member.
71255         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71256         (FCHDIR): Add parentheses.
71257         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71258         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71259         When descending, rather than simply closing the previous
71260         fts_cwd_fd value, push that file descriptor onto the ring.
71261         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71262         (fts_open): Initialize the new fd_ring member.
71263         (fts_close): Clear the ring.
71264         (fts_safe_changedir): When possible, use our new fd_ring to skip
71265         the diropen and fstat and dev/ino comparison that would normally
71266         accompany a virtual `chdir ("..")'.
71267
71268         * modules/fts (Depends-on): Add i-ring.
71269         * modules/i-ring: New module.
71270         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71271         * m4/i-ring.m4: New file.
71272
71273 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71274
71275         * gnulib-tool (func_create_testdir): Fix replacement of
71276         `build-aux' in configure.ac.  Run autotools in gltests
71277         subdirectory.
71278         (func_create_testdir, func_create_megatestdir, test): There is
71279         no need for '--force' in most autotool invocations in a new
71280         tree.  Actually fail the whole test if any of the tools, or the
71281         configure or make stages fail.
71282
71283         Sync from Automake.
71284         * build-aux/gnupload: Revert last change.  Add pointer to upload
71285         instructions of the GNU Maintenance Instructions.
71286         Suggestion by Karl Berry.
71287
71288 2006-11-10  Jim Meyering  <jim@meyering.net>
71289
71290         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71291
71292 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71295         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71296         (bind_textdomain_codeset) [! ENABLE_NLS]:
71297         Evaluate all the arguments.  That way, callers get compatible behavior
71298         if the arguments have side effects.  Also, it avoids some GCC
71299         diagnostics in some cases; Joel E. Denny reported problems when Bison
71300         was configured with --enable-gcc-warnigs.
71301
71302 2006-11-10  Jim Meyering  <jim@meyering.net>
71303
71304         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71305         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71306         account.
71307
71308 2006-11-10  Jim Meyering  <jim@meyering.net>
71309
71310         * modules/inline: New file/module.
71311         * modules/xalloc (Files): Remove m4/inline.m4.
71312         (Depends-on): Add inline, instead.
71313         * modules/oset: Likewise.
71314         * modules/list: Likewise.
71315
71316 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71317
71318         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71319         Problem reported by Matthew Woehlke.
71320
71321 2006-11-09  Bruno Haible  <bruno@clisp.org>
71322
71323         * lib/tempname.c (gen_tempname): Remove variant that invokes
71324         __gen_tempname.
71325         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71326         __gen_tempname.
71327
71328 2006-11-08  Bruno Haible  <bruno@clisp.org>
71329
71330         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71331         to 'yes' instead of 'cross-compiling'.
71332
71333 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71334
71335         * lib/quotearg.h (quotearg_free): New decl.
71336         * lib/quotearg.c (quotearg_free): New function.
71337         (slot0, nslots, slotvec0, slotvec):
71338         Now file-scope so that quotearg_free can get at them.
71339
71340 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71341
71342         Sync from Automake.
71343         * build-aux/gnupload: Add missing 'gnu' to example URL.
71344         Report by Karl Berry.
71345
71346 2006-11-08  Bruno Haible  <bruno@clisp.org>
71347
71348         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71349         Suggested by Paul Eggert.
71350
71351 2006-11-08  Jim Meyering  <jim@meyering.net>
71352
71353         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71354         It's already included if !_LIBC.
71355         (fts_safe_changedir): Add a comment.
71356
71357 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71360         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71361         Matthew Woehlke.
71362
71363         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71364         definitions up, to avoid colliding with change below.
71365         (static_inline) [HAVE_INLINE]: New macro.
71366         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71367         Provide extern decls when !HAVE_INLINE.  Do not define unless
71368         static_inline is defined, either by us or by xmalloc.c.  Use
71369         static_inline rather than static inline.
71370         (XCALLOC): Optimize sizeof(T) = 1 case.
71371         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71372
71373 2006-11-07  Bruno Haible  <bruno@clisp.org>
71374
71375         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71376         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71377         AC_C_INLINE.
71378         * modules/xalloc (Files): Add m4/inline.m4.
71379
71380 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71381
71382         * README: Fix typo.
71383         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71384         (Miscellanous Notes): ...from this.
71385
71386 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71389         Mention that offsetof should be used instead of sizeof.
71390         From Bruno Haible.
71391
71392 2006-11-07  Bruno Haible  <bruno@clisp.org>
71393
71394         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71395
71396 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71399         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71400         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71401         (gl_tree_add_before, gl_tree_add_after):
71402         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71403         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71404         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71405         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71406         (gl_linked_add_after, gl_linked_add_at): Likewise.
71407         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71408         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71409         (gl_tree_add_before, gl_tree_add_after): Likewise.
71410         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71411         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71412         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71413
71414 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71415
71416         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71417
71418 2006-11-06  Bruno Haible  <bruno@clisp.org>
71419
71420         * m4/inline.m4: New file.
71421         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71422         * modules/list (Files): Add m4/inline.m4.
71423         * modules/oset (Files): Likewise.
71424
71425 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         * lib/idcache.c: Include <stddef.h>, for offsetof.
71428         (struct userid.name): Change from char * to a flexible array member.
71429         All uses changed.
71430         * modules/idcache (Depends-on): Add flexmember.
71431
71432         * MODULES.html.sh (Core language properties): New module flexmember.
71433         * modules/flexmember, m4/flexmember.m4: New files.
71434
71435         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71436         inline functions that are identical with the old xnmalloc_inline,
71437         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71438         that we can avoid some unnecessary integer multiplications and
71439         divisions in the common case where the element size is known at
71440         compile time.
71441         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71442         needed.
71443         (xnboundedmalloc): Remove.
71444         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71445         arguments, for consistency with rest of this header.
71446         (xcharalloc): Rewrite using XNMALLOC.
71447         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71448         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71449         versions have been moved to lib/xalloc.h and renamed to be the
71450         non-*_inline versions.
71451         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71452         and xnrealloc functions, since those functions are now inline and
71453         now call us.
71454         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71455         renaming described above.
71456         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71457         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71458         captures the dependency in AC_C_INLINE.
71459
71460         New module canonicalize-lgpl, proposed by Charles Wilson in
71461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71462         with a few small changes afterwards.
71463         * MODULES.html.sh (File system functions): New module
71464         canonicalize-lgpl.
71465         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71466         and canonicalize_file_name.
71467         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71468         * modules/canonicalize-lgpl: New files.
71469
71470 2006-11-05  Bruno Haible  <bruno@clisp.org>
71471
71472         * gnulib-tool (func_import, func_create_testdir): Create directories
71473         also for files in subdirectories of lib/.
71474
71475 2006-11-05  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71478         ANSI C compliant.
71479
71480 2006-11-03  Bruno Haible  <bruno@clisp.org>
71481
71482         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71483         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71484         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71485         (xnboundedmalloc): New inline function.
71486         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71487         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71488         xmalloc.
71489         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71490         xmalloc.
71491         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71492         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71493         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71494         xmalloc.
71495         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71496         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71497         xmalloc.
71498         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71499         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71500         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71501         xmalloc.
71502         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71503         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71504         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71505         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71506         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71507         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71508         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71509
71510 2006-11-03  Bruno Haible  <bruno@clisp.org>
71511
71512         * lib/c-ctype.h [C++]: Define functions without name mangling.
71513         * lib/fwriteerror.h [C++]: Likewise.
71514         * lib/gcd.h [C++]: Likewise.
71515         * lib/linebreak.h [C++]: Likewise.
71516
71517 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71520         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71521         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71522         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71523         Check for functions and headers just once.
71524         Check for declaration of canonicalize_file_name.
71525         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71526
71527 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71528
71529         * gnulib-tool (func_import): Fix typo in actioncmd.
71530
71531 2006-11-02  Bruno Haible  <bruno@clisp.org>
71532
71533         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71534         newline sequence in the Makefile.am snippet as a space, like "make"
71535         does.
71536         Reported by Roger Persson <perrog@gmail.com>.
71537
71538 2006-11-01  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71541         already declared in <string.h>.
71542         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71543
71544 2006-11-01  Bruno Haible  <bruno@clisp.org>
71545
71546         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71547         * lib/strcase.h: Include <string.h>.
71548         (strcasecmp): Define to rpl_strcasecmp here.
71549
71550 2006-11-01  Bruno Haible  <bruno@clisp.org>
71551
71552         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71553
71554 2006-11-01  Eric Blake  <ebb9@byu.net>
71555
71556         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71557
71558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71559
71560 2006-10-29  Bruno Haible  <bruno@clisp.org>
71561
71562         Make it compile in C++ mode.
71563         * lib/full-write.c (full_rw): Add a cast.
71564
71565 2006-11-01  Bruno Haible  <bruno@clisp.org>
71566
71567         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71568         be POSIX compliant.
71569         Reported by Roger Persson <perrog@gmail.com>.
71570
71571 2006-11-01  Eric Blake  <ebb9@byu.net>
71572
71573         * lib/getopt_.h: Fix comments.
71574
71575 2006-10-31  Eric Blake  <ebb9@byu.net>
71576
71577         * modules/tmpdir (Depends-on): Add sys_stat.
71578         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71579         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71580         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71581         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71582         tempname.
71583
71584 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         Avoid some C++ diagnostics reported by Bruno Haible.
71587         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71588         xmalloc.
71589         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71590         (struct slotvec): Move to top level.
71591         (quotearg_n_options): Rewrite to avoid xmalloc.
71592         * lib/xalloc.h (xcharalloc): New function.
71593         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71594         [defined __cplusplus]: Add function template that provides result
71595         type propagation.  This part of the change is from Bruno Haible.
71596
71597 2006-10-29  Bruno Haible  <bruno@clisp.org>
71598
71599         Make it compile in C++ mode.
71600         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71601         * lib/strnlen1.c (strnlen1): Cast memchr result.
71602         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71603         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71604         (create_temp_dir): Rename local variable 'template'.
71605         (compile_csharp_using_sscli): Add cast.
71606         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71607         * lib/findprog.c (find_in_path): Likewise.
71608         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71609         * lib/wait-process.c (register_slave_subprocess): Likewise.
71610
71611 2006-10-22  Bruno Haible  <bruno@clisp.org>
71612
71613         * modules/tsearch: New file.
71614         * lib/tsearch.h: New file.
71615         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71616         * m4/tsearch.m4: New file.
71617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71618
71619 2006-10-29  Eric Blake  <ebb9@byu.net>
71620
71621         * lib/arcfour.c: Assume config.h.
71622         * lib/arctwo.c: Likewise.
71623         * lib/base64.c: Likewise.
71624         * lib/check-version.c: Likewise.
71625         * lib/crc.c: Likewise.
71626         * lib/des.c: Likewise.
71627         * lib/gc-gnulib.c: Likewise.
71628         * lib/gc-libgcrypt.c: Likewise.
71629         * lib/gc-pbkdf2-sha1.c: Likewise.
71630         * lib/getaddrinfo.c: Likewise.
71631         * lib/getdelim.c: Likewise.
71632         * lib/getline.c: Likewise.
71633         * lib/hmac-md5.c: Likewise.
71634         * lib/hmac-sha1.c: Likewise.
71635         * lib/iconvme.c: Likewise.
71636         * lib/md2.c: Likewise.
71637         * lib/md4.c: Likewise.
71638         * lib/memxor.c: Likewise.
71639         * lib/read-file.c: Likewise.
71640         * lib/readline.c: Likewise.
71641         * lib/rijndael-alg-fst.c: Likewise.
71642         * lib/rijndael-api-fst.c: Likewise.
71643         * lib/xgetdomainname.c: Likewise.
71644
71645 2006-10-28  Eric Blake  <ebb9@byu.net>
71646
71647         * lib/xstrndup.c: Assume config.h.
71648
71649 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71650
71651         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71652         stat-macros.h is now for our own macros, whereas stat_h is for
71653         macros in the <sys/stat.h> name space.
71654         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71655         (STAT_MACROS_H): Remove.
71656         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71657         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71658         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71659         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71660         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71661         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71662         Move these macros to ...
71663         * lib/stat_.h: here.  Don't include stat-macros.h.
71664         * lib/canonicalize.c: Don't include stat-macros.h.
71665         * lib/chown.c: Likewise.
71666         * lib/euidaccess.c: Likewise.
71667         * lib/file-type.c: Likewise.
71668         * lib/filemode.c: Likewise.
71669         * lib/glob.c: Likewise.
71670         * lib/isapipe.c: Likewise.
71671         * lib/lchown.c: Likewise.
71672         * lib/lstat.c: Likewise.
71673         * lib/mkdir-p.c: Likewise.
71674         * lib/rmdir.c: Likewise.
71675         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71677         unless mkdir isn't declared, to speed up 'configure'.
71678         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71679         would define all the S_* symbols.
71680         * modules/canonicalize (Depends-on):
71681         Depend on sys_stat, not stat-macros.
71682         * modules/chown: Likewise.
71683         * modules/euidaccess: Likewise.
71684         * modules/filemode: Likewise.
71685         * modules/file-type: Likewise.
71686         * modules/glob: Likewise.
71687         * modules/isapipe: Likewise.
71688         * modules/lchown: Likewise.
71689         * modules/lstat: Likewise.
71690         * modules/mkancesdirs: Likewise.
71691         * modules/rmdir: Likewise.
71692         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71693         * modules/modechange: Likewise.
71694         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71695         (configure.ac): Remove gl_STAT_MACROS.
71696         * modules/sys_stat (Depends-on): Remove stat-macros.
71697
71698 2006-10-27  Bruno Haible  <bruno@clisp.org>
71699
71700         * m4/signed.m4: Remove file.
71701         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71702         invocation.
71703         * modules/vasnprintf (Files): Remove m4/signed.m4.
71704
71705 2006-10-27  Bruno Haible  <bruno@clisp.org>
71706
71707         Update to GNU gettext 0.16.
71708         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71709         m4/inttypes-h.m4, m4/signed.m4.
71710         * m4/gettext.m4: Update to GNU gettext 0.16.
71711         * m4/intl.m4: New file, from GNU gettext.
71712         * m4/intldir.m4: New file, from GNU gettext.
71713         * config/srclist.txt: Update
71714
71715 2006-10-27  Eric Blake  <ebb9@byu.net>
71716
71717         * MODULES.html.sh: Document tempname.
71718         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71719         dependencies.
71720         (Files): Move lib/tempname.c...
71721         * modules/tempname: ...to this new module.
71722         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71723         (gl_PREREQ_TEMPNAME): Move...
71724         * m4/tempname.m4: ...to this new file.
71725         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71726         * modules/sys_stat (Depends-on): Add stat-macros.
71727         * lib/stat_.h (includes): Pick up stat macros.
71728         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71729         if stat macros are broken.
71730         * lib/tempname.c (includes): No need to include "stat-macros.h".
71731         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71732         (direxists, __path_search) [!_LIBC]: Don't compile these in
71733         gnulib; the tmpdir module covers that.
71734         * lib/tempname.h: New file.
71735
71736 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * COPYING: Explain how gnulib-tool converts licence headers.
71739         Almost all wording by Eric Blake.
71740
71741 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         * lib/mbchar.h (is_basic_table): Make read-only.
71744         * lib/mbchar.c (is_basic_table): Likewise.
71745         Reported by John Darrington.
71746
71747 2006-10-25  Bruno Haible  <bruno@clisp.org>
71748
71749         * lib/progname.h (set_program_name): Undefine before defining.
71750
71751 2006-10-25  Bruno Haible  <bruno@clisp.org>
71752
71753         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71754         false for non-gcc C++ compilers.
71755         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71756
71757 2006-10-24  Bruno Haible  <bruno@clisp.org>
71758
71759         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71760         iconv implementations like Irix iconv.
71761
71762 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * modules/vararrays: New file.
71765         * m4/vararrays.m4: New file, taken from diffutils.
71766         * MODULES.html.sh: New module vararrays.
71767
71768 2006-10-24  Karl Berry  <karl@gnu.org>
71769
71770         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71771         Don't call GNU Unix.
71772
71773 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71774
71775         * users.txt: Add Libtool.
71776
71777         Sync from Libtool:
71778
71779         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71782         to gnulib's policy of including config.h unconditionally.
71783
71784 2006-10-24  Bruno Haible  <bruno@clisp.org>
71785
71786         * modules/wcwidth (Files): Add m4/wint_t.m4.
71787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71788         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71789
71790 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71793         to pacify GCC with some -W flags enabled.  Problem reported by
71794         Bruno Haible.
71795
71796 2006-10-24  Jim Meyering  <jim@meyering.net>
71797
71798         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71799         Reported by Karl Berry.
71800
71801 2006-10-23  Bruno Haible  <bruno@clisp.org>
71802
71803         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71804
71805 2006-10-24  Bruno Haible  <bruno@clisp.org>
71806
71807         * lib/gl_list.h: Use C comment style, not C++ comment style.
71808
71809 2006-10-23  Eric Blake  <ebb9@byu.net>
71810
71811         * lib/getaddrinfo.c (includes): Add missing include.
71812
71813 2006-10-23  Bruno Haible  <bruno@clisp.org>
71814             Paul Eggert  <eggert@cs.ucla.edu>
71815
71816         Ability to rename obstack_free.
71817         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71818         obstack_free.
71819         (obstack_free): Invoke the __obstack_free macro.
71820         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71821
71822 2006-10-23  Bruno Haible  <bruno@clisp.org>
71823             Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71826         __argc, __argv from the declaration. (They are defined as macros on
71827         mingw.)
71828
71829 2006-10-22  Bruno Haible  <bruno@clisp.org>
71830
71831         * doc/gnulib-intro.texi: New file.
71832         * doc/gnulib.texi: Include it.
71833
71834 2006-10-21  Bruno Haible  <bruno@clisp.org>
71835
71836         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71837         "Introduction", "Miscellanous Notes", "Particular Modules".
71838
71839 2006-10-21  Bruno Haible  <bruno@clisp.org>
71840
71841         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71842         Change mostlyclean-local rule to avoid sh syntax error from bash
71843         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71844
71845 2006-10-23  Jim Meyering  <jim@meyering.net>
71846
71847         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71848         in place of snprintf.
71849
71850         * modules/inttostr (Files): Add lib/uinttostr.c.
71851         * lib/uinttostr.c (inttostr): New file/function.
71852         * lib/inttostr.h (uinttostr): Declare.
71853         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71854         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71855         Add uinttostr.
71856         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71857
71858 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         * lib/canonicalize.c (ELOOP): Define if not already defined.
71861         Problem reported by Bruno Haible in
71862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71863
71864 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71867         Problem reported by Perry Smith and Ville Laurikari.
71868
71869         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71870         uses.
71871
71872 2006-10-19  Bruno Haible  <bruno@clisp.org>
71873
71874         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71875         for mingw.
71876
71877 2006-10-19  Bruno Haible  <bruno@clisp.org>
71878
71879         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71880         Needed for mingw.
71881
71882 2006-10-19  Bruno Haible  <bruno@clisp.org>
71883
71884         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71885
71886 2006-10-19  Bruno Haible  <bruno@clisp.org>
71887
71888         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71889         it.
71890
71891 2006-10-19  Bruno Haible  <bruno@clisp.org>
71892
71893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71894         invocation.
71895
71896 2006-10-19  Bruno Haible  <bruno@clisp.org>
71897
71898         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71899         mountlist by default.
71900
71901 2006-10-16  Bruno Haible  <bruno@clisp.org>
71902
71903         * lib/c-strstr.c: Include c-strstr.h.
71904
71905 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71906
71907         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71908         in a slash.
71909
71910 2006-10-18  Bruno Haible  <bruno@clisp.org>
71911
71912         * lib/lock.h [C++]: Wrap definitions in extern "C".
71913
71914 2006-10-18  Bruno Haible  <bruno@clisp.org>
71915
71916         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71917         gl_LIBOBJS list.
71918
71919 2006-10-18  Bruno Haible  <bruno@clisp.org>
71920
71921         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71922
71923 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * lib/xstrtol.h: Include gettext.h.
71926         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71927         Problem reported by Eric Blake.
71928         * modules/xstrtol (Depends-on): Add gettext-h.
71929
71930 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71931
71932         * lib/strftime.c (advance): New macro.
71933         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71934         incomplete type, so you can't add 0 to it.  Problem and patch
71935         reported by Eelco Dolstra for dietlibc.
71936
71937 2006-10-18  Jim Meyering  <jim@meyering.net>
71938
71939         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71940         type for a local, and rename it: s/up/user_proc/.
71941
71942 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71943
71944         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71945         READ_UTMP_USER_PROCESS.
71946         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71947
71948 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71951         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71952
71953 2006-10-17  Eric Blake  <ebb9@byu.net>
71954
71955         * lib/sigprocmask.c (sigprocmask): Fix typo.
71956
71957         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71958
71959         * modules/clean-temp (Makefile.am): Don't add to make output...
71960         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71961         config.h.
71962
71963 2006-10-17  Bruno Haible  <bruno@clisp.org>
71964
71965         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71966         differently if DEFAULT_TEXT_DOMAIN is set.
71967
71968 2006-10-16  Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/clean-temp.c: Include fwriteerror.h.
71971
71972 2006-10-16  Bruno Haible  <bruno@clisp.org>
71973
71974         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71975
71976 2006-10-16  Bruno Haible  <bruno@clisp.org>
71977
71978         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71979         * lib/sigprocmask.h: Include <sys/types.h>.
71980         (sigset_t): Use the system's definition if present.
71981
71982 2006-10-17  Eric Blake  <ebb9@byu.net>
71983
71984         * lib/xvasprintf.c (includes): Assume config.h.
71985         * lib/xasprintf.c (includes): Likewise.
71986
71987 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71990         at least as wide as intmax_t.
71991
71992 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71993
71994         (Imported from Automake.)
71995         * build-aux/gnupload: Update to version 1.1 of directive file.
71996
71997 2006-10-16  Eric Blake  <ebb9@byu.net>
71998
71999         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72000         match Automake 1.10a.
72001
72002 2006-10-14  Bruno Haible  <bruno@clisp.org>
72003
72004         * modules/sigprocmask: New file.
72005         * lib/sigprocmask.h: New file.
72006         * lib/sigprocmask.c: New file.
72007         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72008         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72009         request sigprocmask.o.
72010         (gl_PREREQ_SIGPROCMASK): New macro.
72011         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72012         (Depends-on): Add sigprocmask.
72013         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72014         gt_SIGNALBLOCKING. Test for 'raise' only once.
72015         * lib/fatal-signal.c: Include sigprocmask.h.
72016         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72017         unblock_fatal_signals): Define always.
72018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72019         sigprocmask.
72020
72021 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         Sync from Automake.
72024         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72025         which incorrectly sets the mode of an existing destination
72026         directory.  In some cases the unpatched install-sh could do the
72027         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72028         system.  We hope this is rare in practice, but it's clearly worth
72029         fixing.  Problem reported by Alex Unleashed in
72030         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72031         Also, don't bother to check for -m bugs unless we're using -m;
72032         suggested by Stepan Kasal.
72033
72034 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72035
72036         Sync from Automake.
72037         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72038         `-c' flag, so they appear at the same position as in %FASTDEP%
72039         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72040         which ignores unknown options only after the first non-option.
72041         Bug report against M4 by Nelson H. F. Beebe.
72042
72043 2006-10-13  Jim Meyering  <jim@meyering.net>
72044
72045         Fix a bug in yesterday's change.
72046         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72047         p->fts_statp->st_dev would be used uninitialized.
72048         Ensures that we always call fts_stat on the very first entry.
72049         Miklos Szeredi reported that find -xdev stopped working.
72050
72051 2006-10-12  Bruno Haible  <bruno@clisp.org>
72052
72053         * gnulib-tool (func_get_automake_snippet): Append an automatically
72054         computed EXTRA_DIST augmentation.
72055         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72056         * modules/alloca-opt (Makefile.am): Likewise.
72057         * modules/allocsa (Makefile.am): Likewise.
72058         * modules/arcfour (Makefile.am): Likewise.
72059         * modules/arctwo (Makefile.am): Likewise.
72060         * modules/argmatch (Makefile.am): Likewise.
72061         * modules/argz (Makefile.am): Likewise.
72062         * modules/atexit (Makefile.am): Likewise.
72063         * modules/backupfile (Makefile.am): Likewise.
72064         * modules/byteswap (Makefile.am): Likewise.
72065         * modules/c-strtod (Makefile.am): Likewise.
72066         * modules/c-strtold (Makefile.am): Likewise.
72067         * modules/calloc (Makefile.am): Likewise.
72068         * modules/canon-host (Makefile.am): Likewise.
72069         * modules/canonicalize (Makefile.am): Likewise.
72070         * modules/chdir-long (Makefile.am): Likewise.
72071         * modules/chdir-safer (Makefile.am): Likewise.
72072         * modules/check-version (Makefile.am): Likewise.
72073         * modules/chown (Makefile.am): Likewise.
72074         * modules/cloexec (Makefile.am): Likewise.
72075         * modules/close-stream (Makefile.am): Likewise.
72076         * modules/closeout (Makefile.am): Likewise.
72077         * modules/crc (Makefile.am): Likewise.
72078         * modules/csharpexec (Makefile.am): Likewise.
72079         * modules/cycle-check (Makefile.am): Likewise.
72080         * modules/des (Makefile.am): Likewise.
72081         * modules/dev-ino (Makefile.am): Likewise.
72082         * modules/dirfd (Makefile.am): Likewise.
72083         * modules/dirname (Makefile.am): Likewise.
72084         * modules/dup2 (Makefile.am): Likewise.
72085         * modules/eealloc (Makefile.am): Likewise.
72086         * modules/error (Makefile.am): Likewise.
72087         * modules/euidaccess (Makefile.am): Likewise.
72088         * modules/exclude (Makefile.am): Likewise.
72089         * modules/exitfail (Makefile.am): Likewise.
72090         * modules/fcntl-safer (Makefile.am): Likewise.
72091         * modules/fcntl (Makefile.am): Likewise.
72092         * modules/file-type (Makefile.am): Likewise.
72093         * modules/fileblocks (Makefile.am): Likewise.
72094         * modules/filemode (Makefile.am): Likewise.
72095         * modules/filenamecat (Makefile.am): Likewise.
72096         * modules/fnmatch (Makefile.am): Likewise.
72097         * modules/fopen-safer (Makefile.am): Likewise.
72098         * modules/fpending (Makefile.am): Likewise.
72099         * modules/fprintftime (Makefile.am): Likewise.
72100         * modules/free (Makefile.am): Likewise.
72101         * modules/fsusage (Makefile.am): Likewise.
72102         * modules/ftruncate (Makefile.am): Likewise.
72103         * modules/fts (Makefile.am): Likewise.
72104         * modules/gc-arcfour (Makefile.am): Likewise.
72105         * modules/gc-des (Makefile.am): Likewise.
72106         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72107         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72108         * modules/gc-md4 (Makefile.am): Likewise.
72109         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72110         * modules/gc-sha1 (Makefile.am): Likewise.
72111         * modules/gc (Makefile.am): Likewise.
72112         * modules/getaddrinfo (Makefile.am): Likewise.
72113         * modules/getcwd (Makefile.am): Likewise.
72114         * modules/getdelim (Makefile.am): Likewise.
72115         * modules/getdomainname (Makefile.am): Likewise.
72116         * modules/getgroups (Makefile.am): Likewise.
72117         * modules/gethostname (Makefile.am): Likewise.
72118         * modules/gethrxtime (Makefile.am): Likewise.
72119         * modules/getline (Makefile.am): Likewise.
72120         * modules/getloadavg (Makefile.am): Likewise.
72121         * modules/getlogin_r (Makefile.am): Likewise.
72122         * modules/getndelim2 (Makefile.am): Likewise.
72123         * modules/getopt (Makefile.am): Likewise.
72124         * modules/getpagesize (Makefile.am): Likewise.
72125         * modules/getpass-gnu (Makefile.am): Likewise.
72126         * modules/getpass (Makefile.am): Likewise.
72127         * modules/getsubopt (Makefile.am): Likewise.
72128         * modules/gettime (Makefile.am): Likewise.
72129         * modules/gettimeofday (Makefile.am): Likewise.
72130         * modules/getugroups (Makefile.am): Likewise.
72131         * modules/getusershell (Makefile.am): Likewise.
72132         * modules/glob (Makefile.am): Likewise.
72133         * modules/group-member (Makefile.am): Likewise.
72134         * modules/hard-locale (Makefile.am): Likewise.
72135         * modules/hash (Makefile.am): Likewise.
72136         * modules/hmac-md5 (Makefile.am): Likewise.
72137         * modules/hmac-sha1 (Makefile.am): Likewise.
72138         * modules/human (Makefile.am): Likewise.
72139         * modules/idcache (Makefile.am): Likewise.
72140         * modules/imaxabs (Makefile.am): Likewise.
72141         * modules/imaxdiv (Makefile.am): Likewise.
72142         * modules/inet_ntop (Makefile.am): Likewise.
72143         * modules/inet_pton (Makefile.am): Likewise.
72144         * modules/intprops (Makefile.am): Likewise.
72145         * modules/inttostr (Makefile.am): Likewise.
72146         * modules/inttypes (Makefile.am): Likewise.
72147         * modules/isapipe (Makefile.am): Likewise.
72148         * modules/javaversion (Makefile.am): Likewise.
72149         * modules/lchmod (Makefile.am): Likewise.
72150         * modules/lchown (Makefile.am): Likewise.
72151         * modules/localcharset (Makefile.am): Likewise.
72152         * modules/long-options (Makefile.am): Likewise.
72153         * modules/lstat (Makefile.am): Likewise.
72154         * modules/malloc (Makefile.am): Likewise.
72155         * modules/mathl (Makefile.am): Likewise.
72156         * modules/mbchar (Makefile.am): Likewise.
72157         * modules/md2 (Makefile.am): Likewise.
72158         * modules/md4 (Makefile.am): Likewise.
72159         * modules/md5 (Makefile.am): Likewise.
72160         * modules/memcasecmp (Makefile.am): Likewise.
72161         * modules/memchr (Makefile.am): Likewise.
72162         * modules/memcmp (Makefile.am): Likewise.
72163         * modules/memcoll (Makefile.am): Likewise.
72164         * modules/memcpy (Makefile.am): Likewise.
72165         * modules/memmem (Makefile.am): Likewise.
72166         * modules/memmove (Makefile.am): Likewise.
72167         * modules/mempcpy (Makefile.am): Likewise.
72168         * modules/memrchr (Makefile.am): Likewise.
72169         * modules/memset (Makefile.am): Likewise.
72170         * modules/memxor (Makefile.am): Likewise.
72171         * modules/mkancesdirs (Makefile.am): Likewise.
72172         * modules/mkdir-p (Makefile.am): Likewise.
72173         * modules/mkdir (Makefile.am): Likewise.
72174         * modules/mkdtemp (Makefile.am): Likewise.
72175         * modules/mkstemp (Makefile.am): Likewise.
72176         * modules/mktime (Makefile.am): Likewise.
72177         * modules/modechange (Makefile.am): Likewise.
72178         * modules/mountlist (Makefile.am): Likewise.
72179         * modules/nanosleep (Makefile.am): Likewise.
72180         * modules/obstack (Makefile.am): Likewise.
72181         * modules/openat (Makefile.am): Likewise.
72182         * modules/pagealign_alloc (Makefile.am): Likewise.
72183         * modules/pathmax (Makefile.am): Likewise.
72184         * modules/physmem (Makefile.am): Likewise.
72185         * modules/poll (Makefile.am): Likewise.
72186         * modules/posixtm (Makefile.am): Likewise.
72187         * modules/posixver (Makefile.am): Likewise.
72188         * modules/putenv (Makefile.am): Likewise.
72189         * modules/quote (Makefile.am): Likewise.
72190         * modules/quotearg (Makefile.am): Likewise.
72191         * modules/raise (Makefile.am): Likewise.
72192         * modules/read-file (Makefile.am): Likewise.
72193         * modules/readline (Makefile.am): Likewise.
72194         * modules/readlink (Makefile.am): Likewise.
72195         * modules/readtokens (Makefile.am): Likewise.
72196         * modules/readutmp (Makefile.am): Likewise.
72197         * modules/realloc (Makefile.am): Likewise.
72198         * modules/regex (Makefile.am): Likewise.
72199         * modules/rename-dest-slash (Makefile.am): Likewise.
72200         * modules/rename (Makefile.am): Likewise.
72201         * modules/rijndael (Makefile.am): Likewise.
72202         * modules/rmdir (Makefile.am): Likewise.
72203         * modules/rpmatch (Makefile.am): Likewise.
72204         * modules/safe-read (Makefile.am): Likewise.
72205         * modules/safe-write (Makefile.am): Likewise.
72206         * modules/same-inode (Makefile.am): Likewise.
72207         * modules/same (Makefile.am): Likewise.
72208         * modules/save-cwd (Makefile.am): Likewise.
72209         * modules/savedir (Makefile.am): Likewise.
72210         * modules/setenv (Makefile.am): Likewise.
72211         * modules/settime (Makefile.am): Likewise.
72212         * modules/sha1 (Makefile.am): Likewise.
72213         * modules/sig2str (Makefile.am): Likewise.
72214         * modules/snprintf (Makefile.am): Likewise.
72215         * modules/stat-macros (Makefile.am): Likewise.
72216         * modules/stat-time (Makefile.am): Likewise.
72217         * modules/stdbool (Makefile.am): Likewise.
72218         * modules/stdint (Makefile.am): Likewise.
72219         * modules/stdlib-safer (Makefile.am): Likewise.
72220         * modules/stpcpy (Makefile.am): Likewise.
72221         * modules/stpncpy (Makefile.am): Likewise.
72222         * modules/strcase (Makefile.am): Likewise.
72223         * modules/strcasestr (Makefile.am): Likewise.
72224         * modules/strchrnul (Makefile.am): Likewise.
72225         * modules/strcspn (Makefile.am): Likewise.
72226         * modules/strdup (Makefile.am): Likewise.
72227         * modules/strerror (Makefile.am): Likewise.
72228         * modules/strftime (Makefile.am): Likewise.
72229         * modules/strndup (Makefile.am): Likewise.
72230         * modules/strnlen (Makefile.am): Likewise.
72231         * modules/strpbrk (Makefile.am): Likewise.
72232         * modules/strsep (Makefile.am): Likewise.
72233         * modules/strstr (Makefile.am): Likewise.
72234         * modules/strtod (Makefile.am): Likewise.
72235         * modules/strtoimax (Makefile.am): Likewise.
72236         * modules/strtok_r (Makefile.am): Likewise.
72237         * modules/strtol (Makefile.am): Likewise.
72238         * modules/strtoll (Makefile.am): Likewise.
72239         * modules/strtoul (Makefile.am): Likewise.
72240         * modules/strtoull (Makefile.am): Likewise.
72241         * modules/strtoumax (Makefile.am): Likewise.
72242         * modules/strverscmp (Makefile.am): Likewise.
72243         * modules/sys_socket (Makefile.am): Likewise.
72244         * modules/sys_stat (Makefile.am): Likewise.
72245         * modules/sysexits (Makefile.am): Likewise.
72246         * modules/time_r (Makefile.am): Likewise.
72247         * modules/timegm (Makefile.am): Likewise.
72248         * modules/timespec (Makefile.am): Likewise.
72249         * modules/tmpfile-safer (Makefile.am): Likewise.
72250         * modules/trim (Makefile.am): Likewise.
72251         * modules/unistd-safer (Makefile.am): Likewise.
72252         * modules/unlinkdir (Makefile.am): Likewise.
72253         * modules/unlocked-io (Makefile.am): Likewise.
72254         * modules/userspec (Makefile.am): Likewise.
72255         * modules/utime (Makefile.am): Likewise.
72256         * modules/utimecmp (Makefile.am): Likewise.
72257         * modules/utimens (Makefile.am): Likewise.
72258         * modules/vasnprintf (Makefile.am): Likewise.
72259         * modules/vasprintf (Makefile.am): Likewise.
72260         * modules/vsnprintf (Makefile.am): Likewise.
72261         * modules/xalloc (Makefile.am): Likewise.
72262         * modules/xgetcwd (Makefile.am): Likewise.
72263         * modules/xnanosleep (Makefile.am): Likewise.
72264         * modules/xreadlink (Makefile.am): Likewise.
72265         * modules/xstrtod (Makefile.am): Likewise.
72266         * modules/xstrtol (Makefile.am): Likewise.
72267         * modules/xstrtold (Makefile.am): Likewise.
72268         * modules/yesno (Makefile.am): Likewise.
72269         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72270
72271 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * modules/error (Makefile.am): Distribute files through
72274         EXTRA_DIST, not lib_SOURCES.
72275
72276 2006-10-12  Eric Blake  <ebb9@byu.net>
72277
72278         * modules/error (Makefile.am): Distribute files in /lib.
72279         * modules/obstack (Makefile.am): Likewise.
72280
72281 2006-10-12  Bruno Haible  <bruno@clisp.org>
72282
72283         * modules/acl (Makefile.am): Distribute all files in lib/ through
72284         EXTRA_DIST.
72285         * modules/arcfour (Makefile.am): Likewise.
72286         * modules/arctwo (Makefile.am): Likewise.
72287         * modules/argmatch (Makefile.am): Likewise.
72288         * modules/argz (Makefile.am): Likewise.
72289         * modules/atexit (Makefile.am): Likewise.
72290         * modules/backupfile (Makefile.am): Likewise.
72291         * modules/c-strtod (Makefile.am): Likewise.
72292         * modules/c-strtold (Makefile.am): Likewise.
72293         * modules/calloc (Makefile.am): Likewise.
72294         * modules/canon-host (Makefile.am): Likewise.
72295         * modules/canonicalize (Makefile.am): Likewise.
72296         * modules/chdir-long (Makefile.am): Likewise.
72297         * modules/chdir-safer (Makefile.am): Likewise.
72298         * modules/check-version (Makefile.am): Likewise.
72299         * modules/chown (Makefile.am): Likewise.
72300         * modules/cloexec (Makefile.am): Likewise.
72301         * modules/close-stream (Makefile.am): Likewise.
72302         * modules/closeout (Makefile.am): Likewise.
72303         * modules/crc (Makefile.am): Likewise.
72304         * modules/cycle-check (Makefile.am): Likewise.
72305         * modules/des (Makefile.am): Likewise.
72306         * modules/dirfd (Makefile.am): Likewise.
72307         * modules/dirname (Makefile.am): Likewise.
72308         * modules/dup2 (Makefile.am): Likewise.
72309         * modules/euidaccess (Makefile.am): Likewise.
72310         * modules/exclude (Makefile.am): Likewise.
72311         * modules/exitfail (Makefile.am): Likewise.
72312         * modules/fcntl-safer (Makefile.am): Likewise.
72313         * modules/file-type (Makefile.am): Likewise.
72314         * modules/fileblocks (Makefile.am): Likewise.
72315         * modules/filemode (Makefile.am): Likewise.
72316         * modules/filenamecat (Makefile.am): Likewise.
72317         * modules/fnmatch (Makefile.am): Likewise.
72318         * modules/fopen-safer (Makefile.am): Likewise.
72319         * modules/fpending (Makefile.am): Likewise.
72320         * modules/fprintftime (Makefile.am): Likewise.
72321         * modules/free (Makefile.am): Likewise.
72322         * modules/fsusage (Makefile.am): Likewise.
72323         * modules/ftruncate (Makefile.am): Likewise.
72324         * modules/fts (Makefile.am): Likewise.
72325         * modules/gc (Makefile.am): Likewise.
72326         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72327         * modules/getaddrinfo (Makefile.am): Likewise.
72328         * modules/getcwd (Makefile.am): Likewise.
72329         * modules/getdelim (Makefile.am): Likewise.
72330         * modules/getdomainname (Makefile.am): Likewise.
72331         * modules/getgroups (Makefile.am): Likewise.
72332         * modules/gethostname (Makefile.am): Likewise.
72333         * modules/gethrxtime (Makefile.am): Likewise.
72334         * modules/getline (Makefile.am): Likewise.
72335         * modules/getloadavg (Makefile.am): Likewise.
72336         * modules/getlogin_r (Makefile.am): Likewise.
72337         * modules/getopt (Makefile.am): Likewise.
72338         * modules/getpass (Makefile.am): Likewise.
72339         * modules/getpass-gnu (Makefile.am): Likewise.
72340         * modules/getsubopt (Makefile.am): Likewise.
72341         * modules/gettime (Makefile.am): Likewise.
72342         * modules/gettimeofday (Makefile.am): Likewise.
72343         * modules/getugroups (Makefile.am): Likewise.
72344         * modules/getusershell (Makefile.am): Likewise.
72345         * modules/glob (Makefile.am): Likewise.
72346         * modules/group-member (Makefile.am): Likewise.
72347         * modules/hard-locale (Makefile.am): Likewise.
72348         * modules/hash (Makefile.am): Likewise.
72349         * modules/hmac-md5 (Makefile.am): Likewise.
72350         * modules/hmac-sha1 (Makefile.am): Likewise.
72351         * modules/human (Makefile.am): Likewise.
72352         * modules/idcache (Makefile.am): Likewise.
72353         * modules/imaxabs (Makefile.am): Likewise.
72354         * modules/imaxdiv (Makefile.am): Likewise.
72355         * modules/inet_ntop (Makefile.am): Likewise.
72356         * modules/inet_pton (Makefile.am): Likewise.
72357         * modules/inttostr (Makefile.am): Likewise.
72358         * modules/isapipe (Makefile.am): Likewise.
72359         * modules/lchown (Makefile.am): Likewise.
72360         * modules/long-options (Makefile.am): Likewise.
72361         * modules/lstat (Makefile.am): Likewise.
72362         * modules/malloc (Makefile.am): Likewise.
72363         * modules/mathl (Makefile.am): Likewise.
72364         * modules/mbchar (Makefile.am): Likewise.
72365         * modules/md2 (Makefile.am): Likewise.
72366         * modules/md4 (Makefile.am): Likewise.
72367         * modules/md5 (Makefile.am): Likewise.
72368         * modules/memcasecmp (Makefile.am): Likewise.
72369         * modules/memchr (Makefile.am): Likewise.
72370         * modules/memcmp (Makefile.am): Likewise.
72371         * modules/memcoll (Makefile.am): Likewise.
72372         * modules/memcpy (Makefile.am): Likewise.
72373         * modules/memmem (Makefile.am): Likewise.
72374         * modules/memmove (Makefile.am): Likewise.
72375         * modules/mempcpy (Makefile.am): Likewise.
72376         * modules/memrchr (Makefile.am): Likewise.
72377         * modules/memset (Makefile.am): Likewise.
72378         * modules/memxor (Makefile.am): Likewise.
72379         * modules/mkancesdirs (Makefile.am): Likewise.
72380         * modules/mkdir (Makefile.am): Likewise.
72381         * modules/mkdir-p (Makefile.am): Likewise.
72382         * modules/mkdtemp (Makefile.am): Likewise.
72383         * modules/mkstemp (Makefile.am): Likewise.
72384         * modules/mktime (Makefile.am): Likewise.
72385         * modules/modechange (Makefile.am): Likewise.
72386         * modules/mountlist (Makefile.am): Likewise.
72387         * modules/nanosleep (Makefile.am): Likewise.
72388         * modules/openat (Makefile.am): Likewise.
72389         * modules/pagealign_alloc (Makefile.am): Likewise.
72390         * modules/physmem (Makefile.am): Likewise.
72391         * modules/poll (Makefile.am): Likewise.
72392         * modules/posixtm (Makefile.am): Likewise.
72393         * modules/posixver (Makefile.am): Likewise.
72394         * modules/putenv (Makefile.am): Likewise.
72395         * modules/quote (Makefile.am): Likewise.
72396         * modules/quotearg (Makefile.am): Likewise.
72397         * modules/raise (Makefile.am): Likewise.
72398         * modules/read-file (Makefile.am): Likewise.
72399         * modules/readline (Makefile.am): Likewise.
72400         * modules/readlink (Makefile.am): Likewise.
72401         * modules/readtokens (Makefile.am): Likewise.
72402         * modules/readutmp (Makefile.am): Likewise.
72403         * modules/realloc (Makefile.am): Likewise.
72404         * modules/regex (Makefile.am): Likewise.
72405         * modules/rename (Makefile.am): Likewise.
72406         * modules/rename-dest-slash (Makefile.am): Likewise.
72407         * modules/rijndael (Makefile.am): Likewise.
72408         * modules/rmdir (Makefile.am): Likewise.
72409         * modules/rpmatch (Makefile.am): Likewise.
72410         * modules/safe-read (Makefile.am): Likewise.
72411         * modules/safe-write (Makefile.am): Likewise.
72412         * modules/same (Makefile.am): Likewise.
72413         * modules/save-cwd (Makefile.am): Likewise.
72414         * modules/savedir (Makefile.am): Likewise.
72415         * modules/setenv (Makefile.am): Likewise.
72416         * modules/settime (Makefile.am): Likewise.
72417         * modules/sha1 (Makefile.am): Likewise.
72418         * modules/sig2str (Makefile.am): Likewise.
72419         * modules/snprintf (Makefile.am): Likewise.
72420         * modules/stdlib-safer (Makefile.am): Likewise.
72421         * modules/stpcpy (Makefile.am): Likewise.
72422         * modules/stpncpy (Makefile.am): Likewise.
72423         * modules/strcase (Makefile.am): Likewise.
72424         * modules/strcasestr (Makefile.am): Likewise.
72425         * modules/strchrnul (Makefile.am): Likewise.
72426         * modules/strcspn (Makefile.am): Likewise.
72427         * modules/strdup (Makefile.am): Likewise.
72428         * modules/strerror (Makefile.am): Likewise.
72429         * modules/strftime (Makefile.am): Likewise.
72430         * modules/strndup (Makefile.am): Likewise.
72431         * modules/strnlen (Makefile.am): Likewise.
72432         * modules/strpbrk (Makefile.am): Likewise.
72433         * modules/strsep (Makefile.am): Likewise.
72434         * modules/strstr (Makefile.am): Likewise.
72435         * modules/strtod (Makefile.am): Likewise.
72436         * modules/strtoimax (Makefile.am): Likewise.
72437         * modules/strtok_r (Makefile.am): Likewise.
72438         * modules/strtol (Makefile.am): Likewise.
72439         * modules/strtoll (Makefile.am): Likewise.
72440         * modules/strtoul (Makefile.am): Likewise.
72441         * modules/strtoull (Makefile.am): Likewise.
72442         * modules/strtoumax (Makefile.am): Likewise.
72443         * modules/strverscmp (Makefile.am): Likewise.
72444         * modules/time_r (Makefile.am): Likewise.
72445         * modules/timegm (Makefile.am): Likewise.
72446         * modules/tmpfile-safer (Makefile.am): Likewise.
72447         * modules/unistd-safer (Makefile.am): Likewise.
72448         * modules/unlinkdir (Makefile.am): Likewise.
72449         * modules/userspec (Makefile.am): Likewise.
72450         * modules/utime (Makefile.am): Likewise.
72451         * modules/utimecmp (Makefile.am): Likewise.
72452         * modules/utimens (Makefile.am): Likewise.
72453         * modules/vasnprintf (Makefile.am): Likewise.
72454         * modules/vasprintf (Makefile.am): Likewise.
72455         * modules/vsnprintf (Makefile.am): Likewise.
72456         * modules/xalloc (Makefile.am): Likewise.
72457         * modules/xgetcwd (Makefile.am): Likewise.
72458         * modules/xnanosleep (Makefile.am): Likewise.
72459         * modules/xreadlink (Makefile.am): Likewise.
72460         * modules/xstrtod (Makefile.am): Likewise.
72461         * modules/xstrtol (Makefile.am): Likewise.
72462         * modules/xstrtold (Makefile.am): Likewise.
72463         * modules/yesno (Makefile.am): Likewise.
72464
72465 2006-10-12  Jim Meyering  <jim@meyering.net>
72466
72467         * m4/getloadavg.m4: Revert the change below.
72468
72469         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72470         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72471         fail with a symlink, which is what coreutils' ./bootstrap now
72472         creates by default.
72473
72474 2006-10-12  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72477         mingw.
72478         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72479         MSVC and mingw explicitly.
72480
72481 2006-10-11  Simon Josefsson  <jas@extundo.com>
72482             Bruno Haible  <bruno@clisp.org>
72483
72484         Add support for multiple gnulib-tool invocations in the scope of a
72485         single configure.ac file.
72486         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72487         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72488         with the same contents as the _LIBADD variable.
72489         (func_emit_initmacro_start, func_emit_initmacro_end,
72490         func_emit_initmacro_done): New functions.
72491         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72492         gl_LIBOBJS and gl_LTLIBOBJS.
72493
72494 2006-10-11  Bruno Haible  <bruno@clisp.org>
72495
72496         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72497         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72498         autoreconf. Instead, invoke autopoint explicitly but move back the
72499         *.m4 files from gnulib.
72500
72501 2006-10-11  Bruno Haible  <bruno@clisp.org>
72502
72503         * gnulib-tool (func_usage): Make module names after --create-testdir
72504         optional.
72505         (func_create_testdir): If no module was specified, use nearly all
72506         modules.
72507
72508 2006-10-12  Jim Meyering  <jim@meyering.net>
72509
72510         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72511         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72512         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72513         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72514         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72515         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72516         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72517         (fts_set_stat_required): New function.
72518         (fts_open): Defer the calls to fts_stat, if possible or requested.
72519         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72520         into fts_stat itself.
72521         (fts_read): Perform any required (deferred) fts_stat call.
72522         (fts_build): Likewise, for the directory we're about to open and read.
72523         In the readdir loop, carefully decide whether each entry will require
72524         an eventual call to fts_stat, using dirent.d_type info if available.
72525         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72526         a command line argument into this function.  Update all callers.
72527         Map a return value of FTS_DOT to FTS_D for a command line argument.
72528         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72529         Thanks to Miklos Szeredi for his tenacity and for the initial
72530         bug report about "find" failing on a FUSE-based file system.
72531
72532         * lib/fts.c (fts_open): Use consistent indentation.
72533
72534 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72537         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72538         reported by Jim Meyering.  All uses of cache variables renamed
72539         to match Autoconf's.
72540         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72541         the other one.
72542
72543         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72544         Fix misspelling in diagnostic.
72545
72546 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72549         defined.  Problem reported by Matthew Woehlke.
72550
72551         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72552         Add support for Tandem NonStop R series.
72553         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72554         Use new macro.
72555
72556         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72557         (has_trailing_slash): Omit size arg; all callers changed.
72558         Omit 'inline', since it doesn't help performance and we'd
72559         need to configure it.
72560         Don't count //, ///, etc. as having a trailing slash.
72561         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72562         (rpl_rename_dest_slash): On failure, use rename's errno rather
72563         than (in some cases) an incorrect or junk errno.
72564         Simplify code by removing need to compute length; this does
72565         cause it to make two passes instead of one over the file name,
72566         but it's worth it.
72567
72568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72569         change, since Autoconf's version may no longer be appropriate now
72570         that we are using CVS Autoconf's version.  Add support for Tandem.
72571
72572 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72573             Bruno Haible  <bruno@clisp.org>
72574
72575         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72576         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72577         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72578         gl_AC_TYPE_LONG_LONG.
72579
72580         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72581         instead of HAVE_LONG_LONG.
72582         * lib/printf-args.c (printf_fetchargs): Likewise.
72583         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72584         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72585         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72586         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72587         gl_AC_TYPE_LONG_LONG.
72588
72589 2006-10-11  Bruno Haible  <bruno@clisp.org>
72590
72591         * m4/longlong.m4: Add comments.
72592         * m4/ulonglong.m4: Likewise.
72593
72594 2006-10-10  Bruno Haible  <bruno@clisp.org>
72595
72596         Make it possible to #define stpcpy, strdup to aliases.
72597         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72598         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72599
72600 2006-10-10  Bruno Haible  <bruno@clisp.org>
72601
72602         Make it possible to #define gcd to an alias.
72603         * lib/gcd.c: Include config.h.
72604
72605 2006-10-10  Bruno Haible  <bruno@clisp.org>
72606
72607         Make it possible to #define c_isascii to an alias.
72608         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72609         defined. Undefine the macros before defining them, to avoid gcc
72610         warnings.
72611         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72612         define NO_C_CTYPE_MACROS early.
72613
72614 2006-10-10  Bruno Haible  <bruno@clisp.org>
72615
72616         Make it possible to #define set_program_name to an alias.
72617         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72618         ENABLE_RELOCATABLE early.
72619
72620 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72623         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72624         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72625         More generally, don't assume that 64-bit signed int is available
72626         if unsigned int is, and vice versa.
72627         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72628         unsigned symbols, not on their signed counterparts.
72629         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72630         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72631         (UINT64_C, UINTMAX_C):
72632         Likewise.
72633         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72634         unsigned counterparts.
72635         (Have_long_long, Unsigned): New macros.
72636         (Int): Renamed from INT.
72637         (strtoimax): Use the new macros.
72638         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72639         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72640         * modules/inttypes (inttypes.h): Substitute
72641         HAVE_UNSIGNED_LONG_LONG_INT.
72642         * modules/stdint (stdint.h): Likewise.
72643         (Files): Add m4/ulonglong.m4.
72644
72645 2006-10-10  Bruno Haible  <bruno@clisp.org>
72646
72647         Fix a gcc -Wshadow warning.
72648         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72649         to 'bucket'.
72650         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72651         gl_linked_indexof_from_to): Likewise.
72652         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72653         Likewise.
72654         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72655         Likewise.
72656         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72657         Reported by Eric Blake.
72658
72659 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72662         for NetBSD.  Problem reported by Bruno Haible.
72663
72664 2006-10-09  Jim Meyering  <jim@meyering.net>
72665
72666         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72667         Patch from Bruno Haible.
72668
72669 2006-10-09  Jim Meyering  <jim@meyering.net>
72670
72671         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72672         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72673         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72674
72675 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72676
72677         Don't include <config.h> twice; this doesn't work in some cases,
72678         e.g., when config.h has "#define intmax_t long long int" and
72679         we include <config.h>, <inttypes.h>, <config.h> in that order.
72680         Problem reported by Matthew Woehlke in:
72681         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72682         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72683         * lib/fts-cycle.c: Don't include config.h.
72684         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72685         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72686         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72687         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72688         inttypes.h.
72689         * lib/xstrtoumax.c: Likewise.
72690         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72691         __strtol and the like, so that this module is more like its siblings.
72692         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72693         Remove; no longer needed now that we assume gnulib inttypes.h.
72694
72695 2006-10-08  Bruno Haible  <bruno@clisp.org>
72696
72697         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72698         option.
72699
72700 2006-10-07  Jim Meyering  <jim@meyering.net>
72701
72702         * modules/inttypes (inttypes.h): Revert what seems to have been
72703         an inadvertent part of today's change: use "|", not "/" in the
72704         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72705
72706 2006-10-07  Bruno Haible  <bruno@clisp.org>
72707
72708         * modules/sublist: New file.
72709
72710 2006-10-07  Bruno Haible  <bruno@clisp.org>
72711
72712         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72713         * modules/argz (argz.h): Likewise.
72714         * modules/arpa_inet (arpa/inet.h): Likewise.
72715         * modules/byteswap (byteswap.h): Likewise.
72716         * modules/configmake (configmake.h): Likewise.
72717         * modules/fcntl (fcntl.h): Likewise.
72718         * modules/fnmatch (fnmatch.h): Likewise.
72719         * modules/getopt (getopt.h): Likewise.
72720         * modules/glob (glob.h): Likewise.
72721         * modules/inttypes (inttypes.h): Likewise.
72722         * modules/netinet_in (netinet/in.h): Likewise.
72723         * modules/poll (poll.h): Likewise.
72724         * modules/stdbool (stdbool.h): Likewise.
72725         * modules/stdint (stdint.h): Likewise.
72726         * modules/sys_select (sys/select.h): Likewise.
72727         * modules/sys_socket (sys/socket.h): Likewise.
72728         * modules/sys_stat (sys/stat.h): Likewise.
72729         * modules/sysexits (sysexits.h): Likewise.
72730         * modules/unistd (unistd.h): Likewise.
72731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72732         Add a "DO NOT EDIT" comment to the generated file.
72733         (func_import): Likewise for gnulib-comp.m4.
72734
72735 2006-10-07  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/gl_sublist.h: New file.
72738         * lib/gl_sublist.c: New file.
72739
72740 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72743         name (relative to the original working directory) and the file
72744         name component (relative to the temporary working directory).  All
72745         callers changed.
72746         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72747         * lib/mkdir-p.c (make_dir_parents): Likewise.
72748         * lib/mkdir-p.h (make_dir_parents): Likewise.
72749
72750 2006-10-06  Eric Blake  <ebb9@byu.net>
72751
72752         Define several macros for use by the clean-temp module.
72753         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72754         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72755         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72756
72757         * lib/clean-temp.h (close_stream_temp): New declaration.
72758         * lib/clean-temp.c (includes): Pull in headers according to what
72759         other modules are in use.
72760         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72761
72762 2006-10-06  Bruno Haible  <bruno@clisp.org>
72763
72764         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72765         instead of fopen, fwriteerror.
72766
72767 2006-10-06  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72770         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72771         int.
72772         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72773         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72774         Return an error indicator.
72775         Suggested by Eric Blake.
72776
72777 2006-10-06  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72780         Reported by Eric Blake.
72781
72782 2006-10-06  Bruno Haible  <bruno@clisp.org>
72783
72784         * modules/closeout (Description): Mention stderr too.
72785
72786 2006-10-06  Bruno Haible  <bruno@clisp.org>
72787         and Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * lib/closeout.c (close_stdout): Also close stderr.
72790         * lib/closeout.h: Update comment.
72791
72792 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72795         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72796         * lib/dirchownmod.c: Include lchown.h.
72797         * lib/lchown.c: Don't include files that lchown.h now includes.
72798         Don't declare chown, since lchown.h now does that.
72799         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72800         (lchown): Define to rpl_chown if lchown is declared but
72801         does not exist.  Declare using a prototype if lchown is not
72802         declared.  Add a copyright notice.
72803         * lib/mkstemp.h: Include <unistd.h>.
72804         * lib/openat.c: Include lchown.h.
72805
72806         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72807         we now test for that separately.
72808         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72809         rather than O_NOFOLLOW, when testing whether it's possible to
72810         avoid a race condition reliably.
72811         * lib/savewd.c (savewd_chdir): Likewise.
72812
72813         Remove macros that are no longer needed now that stdint.h is
72814         reliable.
72815         * lib/fsusage.c (UINTMAX_MAX): Remove.
72816         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72817         * lib/utimecmp.c (SIZE_MAX): Remove.
72818
72819         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72820
72821         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72822         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72823         O_NOATIME works.
72824
72825 2006-10-05  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/gl_list.h (gl_sortedlist_search_from_to,
72828         gl_sortedlist_indexof_from_to): New declarations.
72829         (gl_list_implementation): New fields sortedlist_search_from_to,
72830         sortedlist_indexof_from_to.
72831         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72832         inline functions.
72833         * lib/gl_list.c (gl_sortedlist_search_from_to,
72834         gl_sortedlist_indexof_from_to): New functions.
72835         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72836         function.
72837         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72838         (gl_array_sortedlist_search_from_to): New function.
72839         (gl_array_list_implementation): Update.
72840         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72841         function.
72842         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72843         (gl_carray_sortedlist_search_from_to): New function.
72844         (gl_carray_list_implementation): Update.
72845         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72846         gl_linked_sortedlist_indexof_from_to): New functions.
72847         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72848         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72849         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72850         gl_tree_sortedlist_indexof_from_to): New functions.
72851         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72852         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72853         Update.
72854         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72855         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72856         Update.
72857
72858 2006-10-05  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72861         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72862         (struct gl_list_implementation): Add fields search_from_to,
72863         indexof_from_to. Remove fields search, indexof.
72864         (gl_list_search): Use the search_from_to method.
72865         (gl_list_search_from, gl_list_search_from_to): New functions.
72866         (gl_list_indexof): Use the indexof_from_to method.
72867         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72868         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72869         (gl_list_search_from, gl_list_search_from_to): New functions.
72870         (gl_list_indexof): Use the indexof_from_to method.
72871         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72872         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72873         gl_array_indexof. Add start_index, end_index arguments.
72874         (gl_array_search_from_to): Renamed from gl_array_search. Add
72875         start_index, end_index arguments.
72876         (gl_array_remove, gl_array_list_implementation): Update.
72877         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72878         gl_carray_indexof. Add start_index, end_index arguments.
72879         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72880         start_index, end_index arguments.
72881         (gl_carray_remove, gl_carray_list_implementation): Update.
72882         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72883         gl_linked_search. Add start_index, end_index arguments.
72884         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72885         start_index, end_index arguments.
72886         (gl_linked_remove): Update.
72887         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72888         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72889         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72890         field to 'size_t'.
72891         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72892         gl_tree_search. Add start_index, end_index arguments.
72893         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72894         start_index, end_index arguments.
72895         (gl_tree_remove): Update.
72896         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72897         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72898         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72899         function.
72900         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72901         gl_tree_search. Add start_index, end_index arguments.
72902         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72903         start_index, end_index arguments.
72904         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72905         Update.
72906         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72907
72908 2006-10-05  Bruno Haible  <bruno@clisp.org>
72909
72910         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72911
72912         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72913         fwriteerror_temp): New declarations.
72914         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72915         (descriptors): New variable.
72916         (cleanup): First, close the descriptors.
72917         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72918         fclose_temp, fwriteerror_temp): New functions.
72919
72920 2006-10-04  Jim Meyering  <jim@meyering.net>
72921
72922         * lib/fts.c (fts_open): Tiny comment change.
72923
72924 2006-10-04  Bruno Haible  <bruno@clisp.org>
72925
72926         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72927         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72928         gl_LOCK_BODY.
72929         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72930         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72931         gl_LOCK_EARLY_BODY.
72932         (gl_LOCK): Require gl_LOCK_BODY.
72933
72934 2006-10-04  Bruno Haible  <bruno@clisp.org>
72935
72936         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72937         (gl_oset_search_atleast): New declaration.
72938         (struct gl_oset_implementation): Add field 'search_atleast'.
72939         (gl_oset_search_atleast): New inline function.
72940         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72941         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72942         (gl_array_oset_implementation): Update.
72943         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72944         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72945         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72946
72947 2006-10-04  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72950
72951 2006-10-03  Bruno Haible  <bruno@clisp.org>
72952
72953         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72954         from gl_avltreehash_list_implementation.
72955
72956 2006-10-03  Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/gl_oset.c (gl_oset_add): Fix return type.
72959
72960 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72961
72962         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72963
72964 2006-10-02  Eric Blake  <ebb9@byu.net>
72965
72966         * modules/strnlen (Depends-on): Add extensions.
72967
72968 2006-10-02  Eric Blake  <ebb9@byu.net>
72969
72970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72971         definition in 2.60+.
72972
72973 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72974
72975         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72976         checks.
72977
72978 2006-10-02  Bruno Haible  <bruno@clisp.org>
72979
72980         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72981         to the AUTOMAKE_OPTIONS.
72982         Reported by Jim Meyering.
72983
72984 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         Work around bug in Solaris 10 /proc file system:
72987         /proc/self/fd/NNN/.. isn't the parent directory of
72988         the directory whose file descriptor is NNN.  This needs to
72989         be worked around at run time, not compile time, since a
72990         program might be built on Solaris 8, where things work, and
72991         run on Solaris 10.
72992         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72993         to use the following interface instead:
72994         (OPENAT_BUFFER_SIZE): New macro.
72995         (openat_proc_name): New function.
72996         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72997         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72998         Likewise.
72999         * lib/openat-proc.c: New file.
73000         * modules/openat (Files): Add lib/openat-proc.c.
73001         (Depends-on): Add same-inode, stdbool.
73002         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73003
73004 2006-09-29  Bruno Haible  <bruno@clisp.org>
73005
73006         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73007         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73008         argument. Set stdout_closed before testing for ferror, not after.
73009         (fwriteerror, fwriteerror_no_ebadf): New functions.
73010
73011 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73012
73013         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73014
73015 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73016
73017         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73018         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73019
73020 2006-09-28  Jim Meyering  <jim@meyering.net>
73021
73022         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73023         Include <unistd.h>.
73024
73025 2006-09-28  Bruno Haible  <bruno@clisp.org>
73026
73027         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73028         * modules/linkedhash-list (Depends-on): Likewise.
73029         * modules/rbtreehash-list (Depends-on): Likewise.
73030
73031 2006-09-28  Bruno Haible  <bruno@clisp.org>
73032
73033         * lib/strndup.h: Simplify the redefinition of strndup.
73034         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73035         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73036
73037 2006-09-28  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73040         * lib/gl_linkedhash_list.c: Likewise.
73041         * lib/gl_rbtreehash_list.c: Likewise.
73042
73043 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73046         getaddrinfo.
73047
73048         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73049         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73050         it causes <stdio_ext.h> to cause a compile-time error.
73051         Problem reported by Nelson H. F. Beebe.
73052         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73053         of HAVE_DECL___PENDING.
73054
73055         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73056         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73057         declaration.
73058
73059 2006-09-27  Jim Meyering  <jim@meyering.net>
73060
73061         This file could end up with a definition for a function
73062         named __strndup, rather than rpl_strndup on a system with
73063         incomplete weak_alias support.
73064         * lib/strndup.c (strndup): Rename from __strndup.
73065         Remove #defines that used to map __strndup to strndup.
73066         Don't use K&R prototypes.
73067         Remove LIBC-related code, since this file is not sync'd with glibc.
73068         * lib/strndup.h: Revamp, accordingly.
73069         * m4/strndup.m4: Modernize.
73070
73071 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * modules/savewd (Depends-on): Add 'raise'.
73074         * lib/savewd.c: Include <signal.h>, for 'raise'.
73075
73076 2006-09-26  Jim Meyering  <jim@meyering.net>
73077
73078         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73079         when we detect Darwin 8.7.0's acl_get_file bug.
73080         Rearrange to perform the new (below) run-test while $LIBS
73081         contains any acl-related library.  Set USE_ACL at the end.
73082         (gl_ACL_GET_FILE): New function.
73083
73084 2006-09-26  Eric Blake  <ebb9@byu.net>
73085
73086         * lib/verror.c: Include <config.h> unconditionally.
73087
73088 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * modules/clock-time (Maintainer): Add self.
73091         * modules/getlogin_r (Depends-on): Add extensions.
73092
73093 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73094
73095         * modules/clock-time: New module.
73096         * modules/nanosleep (Depends-on): Add clock-time.
73097         * modules/gethrxtime (Depends-on): Likewise.
73098         * modules/gettime (Depends-on): Likewise.
73099         * modules/settime (Depends-on): Likewise.
73100
73101         * modules/fts-lgpl: Depend on openat.
73102         * modules/mkancesdirs: Depend on savewd.
73103         * modules/mkdir-p: Likewise.
73104
73105 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73106
73107         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73108
73109         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73110         `gl_have_arbitrary_file_name_length_limit' to
73111         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73112         actually works between configure runs.
73113
73114 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73115             Bruno Haible  <bruno@clisp.org>
73116
73117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73118
73119 2006-09-25  Jim Meyering  <jim@meyering.net>
73120
73121         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73122         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73123
73124 2006-09-25  Eric Blake  <ebb9@byu.net>
73125
73126         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73127         exec's in 2006-09-18 patch when shuffling fds.
73128
73129 2006-09-25  Bruno Haible  <bruno@clisp.org>
73130
73131         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73132         Reported by Jim Meyering.
73133
73134 2006-09-24  Jim Meyering  <jim@meyering.net>
73135
73136         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73137         compare a pointer against a literal "0".  That caused failures with
73138         at least HP-UX's hpcc.
73139
73140 2006-09-22  Simon Josefsson  <jas@extundo.com>
73141
73142         * modules/gc-sha1:
73143         * modules/gc-md4:
73144         * modules/gc-hmac-sha1:
73145         * modules/gc-hmac-md5:
73146         * modules/gc-des:
73147         * modules/gc-arcfour: Distribute more files.
73148
73149 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73150
73151         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73152         (gl_linked_iterator_from_to): Initialize struct completely.
73153         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73154         (gl_tree_iterator_from_to): Likewise
73155         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73156         * lib/gl_array_list.c [lint] (gl_array_iterator)
73157         (gl_array_iterator_from_to): Likewise.
73158         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73159         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73160         (gl_carray_iterator_from_to): Likewise.
73161
73162         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73163         * lib/md4.c (md4_process_block): Remove unused variable.
73164         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73165         parentheses for clarity.
73166
73167 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73168
73169         * modules/bison-i18n (Depends-on): Add gettext.
73170
73171 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73172
73173         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73174         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73175         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73176         also add missing comma that caused broken test.
73177         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73178         stdlib.h, for `abort'.
73179         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73180         variables.
73181         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73182         include unistd.h if present, for `rmdir'.
73183         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73184         variables.
73185         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73186         in the process include standard headers for prototypes.
73187         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73188         gets declared on GNU/Linux.
73189         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73190         unistd.h, for `rmdir'.
73191         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73192
73193         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73194         always true.
73195         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73196
73197         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73198
73199 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73200
73201         * gnulib-tool (func_version): Create output all at once.  This
73202         may help avoid triggering unnecessary SIGPIPEs, and at any
73203         rate it doesn't hurt.
73204
73205 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73206             Bruno Haible  <bruno@clisp.org>
73207
73208         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73209         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73210         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73211
73212         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73213         (gl_FUNC_VASPRINTF): Invoke it.
73214
73215 2006-09-22  Bruno Haible  <bruno@clisp.org>
73216
73217         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73218         getloadavg.c as first argument.
73219
73220 2006-09-22  Bruno Haible  <bruno@clisp.org>
73221
73222         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73223         at the beginning of the gl_INIT macro.
73224         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73225         gl_GETLOADAVG.
73226
73227 2006-09-22  Bruno Haible  <bruno@clisp.org>
73228
73229         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73230         module.
73231         Suggested by Ralf Wildenhues.
73232
73233 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         Import this patch from libc:
73236
73237         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73238
73239         * lib/regex_internal.c (re_string_reconstruct): Handle
73240         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73241         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73242         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73243         re_string_context_at.
73244
73245         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73246         now requires it.
73247         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73248         gl_REGEX now does it for us.
73249         (gl_REGEX): Add test taken from
73250         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73251
73252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73253         Check that large offsets work.  Modernize Autoconf usages.
73254         Prefer "yes" to mean a good thing rather than a bad.
73255         Don't put "#define mkstemp" in config.h, as this might interfere
73256         with standard system headers that "#define mkstemp mkstemp64".
73257
73258         * modules/mkstemp (Depends-on): Add extensions, so that
73259         mkstemp is visible on some platforms.
73260         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73261         (Include): Change to "mkstemp.h" from <stdlib.h>.
73262         (Files): Add mkstemp.h.
73263
73264         * lib/mkstemp.h: New file, since some standard headers
73265         #define mkstemp.
73266         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73267         Include "mkstemp.h".
73268         Make the _LIBC code resemble glibc original more,
73269         e.g., use K&R style.
73270         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73271         (mkstemp): Remove, since mkstemp.h does this for us.
73272         * lib/stdlib--.h: Include mkstemp.h.
73273
73274         Import this patch from libc:
73275
73276         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73277
73278         * lib/tempname.c (__gen_tempname): Change attempts_min
73279         into a macro.  Use preprocessor to decide how to initialize
73280         attempts [Coverity CID 67].
73281
73282 2006-09-20  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/mkdtemp.c: Import from libc.
73285         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73286                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73287                 attempts_min into a macro.  Use preprocessor to decide how to
73288                 initialize attempts [Coverity CID 67].
73289         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73290                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73291                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73292
73293 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73294
73295         * gnulib-tool (func_exit): New function, to allow to pass the
73296         exit status portably through the trap.  Use everywhere.
73297         (--help, --version): Signal a write error.
73298         (trap): catch SIGPIPE, for write errors.
73299         Exit at the end of the trap, with the correct exit status.
73300
73301 2006-09-19  Karl Berry  <karl@gnu.org>
73302
73303         * doc/gnulib.texi: note about the license texinfo files.
73304
73305 2006-09-19  Eric Blake  <ebb9@byu.net>
73306
73307         * gnulib-tool: Avoid space-tab.
73308
73309 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73310
73311         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73312         that prevented coreutils 6.1 from building.  Problem reported
73313         by Petter Reinholdtsen.
73314
73315 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         * gnulib-tool (avoidlist): Fix typo that broke options like
73318         --avoid=lock that are used by coreutils bootstrap.
73319
73320 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73321
73322         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73323         more systematically.
73324
73325 2006-09-18  Jim Meyering  <jim@meyering.net>
73326
73327         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73328
73329 2006-09-18  Bruno Haible  <bruno@clisp.org>
73330
73331         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73332
73333 2006-09-18  Bruno Haible  <bruno@clisp.org>
73334
73335         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73336         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73337         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73338         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73339         * m4/gettext.m4: Require autoconf >= 2.52.
73340         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73341         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73342         of gl_cv_header_inttypes_h.
73343
73344 2006-09-18  Bruno Haible  <bruno@clisp.org>
73345
73346         * lib/javaversion.c: Include configmake.h.
73347
73348 2006-09-18  Bruno Haible  <bruno@clisp.org>
73349
73350         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73351         avoid that the while loops be executed in a subshell.
73352
73353 2006-09-18  Bruno Haible  <bruno@clisp.org>
73354
73355         * MODULES.html.sh (func_module): Break long lines.
73356         Suggested by Bruce Korb <bkorb@gnu.org>.
73357
73358 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73359
73360         Speed up by a factor of 1.12.
73361         * gnulib-tool (nl): New variable.
73362         (func_import): Rewrite include directive extraction to only read each
73363         directive once.
73364
73365 2006-09-17  Bruno Haible  <bruno@clisp.org>
73366
73367         * modules/javaversion (Makefile.am): Remove DEFS setting.
73368         (Depends-on): Add configmake, for PKGDATADIR definition.
73369
73370 2006-09-17  Bruno Haible  <bruno@clisp.org>
73371
73372         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73373
73374 2006-09-17  Bruno Haible  <bruno@clisp.org>
73375
73376         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73377         (func_modules_transitive_closure, func_modules_add_dummy,
73378         func_modules_to_filelist, func_import, func_create_testdir,
73379         func_create_megatestdir, ...): Use it wherever possible.
73380         Suggested by Ralf Wildenhues.
73381
73382 2006-09-16  Karl Berry  <karl@gnu.org>
73383
73384         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73385         to avoid sectioning errors.
73386         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73387         [ifinfo]: blank line after @center-ed titles.
73388         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73389         Spell FSF address consistently with others.
73390         (These changes approved by rms.)
73391
73392 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73393
73394         Speed up by a factor of 1.61.
73395         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73396         already checked module names again.
73397
73398 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73399
73400         Speed up by a factor of 1.13.
73401         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73402         for new_files, and the input to func_add_or_update.
73403
73404 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73405
73406         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73407         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73408
73409 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73410
73411         * modules/mkancesdirs (Depends-on): Add fcntl.
73412         * modules/savewd: New file.
73413         * MODULES.html.sh (File system functions): Add savewd.
73414
73415         * modules/configmake (Makefile.am): Add support for the
73416         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73417
73418 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * m4/savewd.m4: New file.
73421
73422 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73425         (dirchownmod): New arg FD.  All callers changed.
73426         Use FD rather than opening the directory ourself, as opening is
73427         now the caller's responsibility.
73428         * lib/dirchownmod.h: Likewise.
73429         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73430         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73431         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73432         (test_dir): Remove.
73433         (mkancesdirs): Return length of prefix of FILE that has already
73434         been made, or -2 if there is a child doing the work.  Redo
73435         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73436         ".", and treat ".." specially since it might stray back into
73437         already-created areas.  Use a subprocess if necessary.  New arg
73438         WD; all users changed.  MAKE_DIR function should now return 1
73439         if it creates a directory that is not readable.  Return -2 if
73440         a child process is spun off.
73441         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73442         Adjust signature to match code.
73443         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73444         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73445         all users changed.
73446         * lib/savewd.c, lib/savewd.h: New files.
73447
73448 2006-09-15  Jim Meyering  <jim@meyering.net>
73449
73450         * modules/rename-dest-slash: New module.
73451         * MODULES.html.sh (posix_compat): Add it here.
73452
73453         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73454
73455 2006-09-15  Jim Meyering  <jim@meyering.net>
73456
73457         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73458         file.
73459
73460         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73461
73462 2006-09-15  Jim Meyering  <jim@meyering.net>
73463
73464         * lib/rename-dest-slash.c (has_trailing_slash): Use
73465         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73466         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73467         test before testing whether SRC is a directory.
73468         Suggestions from Bruno Haible.
73469
73470         Avoid a warning about an unused variable.
73471         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73472         into the #ifdef block where it's used.
73473
73474         * lib/rename-dest-slash.c: New file.
73475
73476 2006-09-14  Bruno Haible  <bruno@clisp.org>
73477
73478         * lib/allocsa.c: Include <config.h> unconditionally.
73479         * lib/asnprintf.c: Likewise.
73480         * lib/asprintf.c: Likewise.
73481         * lib/c-strcasecmp.c: Likewise.
73482         * lib/c-strcasestr.c: Likewise.
73483         * lib/c-strncasecmp.c: Likewise.
73484         * lib/c-strstr.c: Likewise.
73485         * lib/classpath.c: Likewise.
73486         * lib/clean-temp.c: Likewise.
73487         * lib/concatpath.c: Likewise.
73488         * lib/copy-file.c: Likewise.
73489         * lib/csharpcomp.c: Likewise.
73490         * lib/csharpexec.c: Likewise.
73491         * lib/execute.c: Likewise.
73492         * lib/fatal-signal.c: Likewise.
73493         * lib/findprog.c: Likewise.
73494         * lib/fwriteerror.c: Likewise.
73495         * lib/gl_array_list.c: Likewise.
73496         * lib/gl_array_oset.c: Likewise.
73497         * lib/gl_avltree_list.c: Likewise.
73498         * lib/gl_avltree_oset.c: Likewise.
73499         * lib/gl_avltreehash_list.c: Likewise.
73500         * lib/gl_carray_list.c: Likewise.
73501         * lib/gl_linked_list.c: Likewise.
73502         * lib/gl_linkedhash_list.c: Likewise.
73503         * lib/gl_list.c: Likewise.
73504         * lib/gl_oset.c: Likewise.
73505         * lib/gl_rbtree_list.c: Likewise.
73506         * lib/gl_rbtree_oset.c: Likewise.
73507         * lib/gl_rbtreehash_list.c: Likewise.
73508         * lib/imaxabs.c: Likewise.
73509         * lib/imaxdiv.c: Likewise.
73510         * lib/javacomp.c: Likewise.
73511         * lib/javaexec.c: Likewise.
73512         * lib/javaversion.c: Likewise.
73513         * lib/linebreak.c: Likewise.
73514         * lib/localcharset.c: Likewise.
73515         * lib/lock.c: Likewise.
73516         * lib/mbchar.c: Likewise.
73517         * lib/mbswidth.c: Likewise.
73518         * lib/mkdtemp.c: Likewise.
73519         * lib/pipe.c: Likewise.
73520         * lib/printf-args.c: Likewise.
73521         * lib/printf-parse.c: Likewise.
73522         * lib/progname.c: Likewise.
73523         * lib/progreloc.c: Likewise.
73524         * lib/readlink.c: Likewise.
73525         * lib/sh-quote.c: Likewise.
73526         * lib/stpcpy.c: Likewise.
73527         * lib/stpncpy.c: Likewise.
73528         * lib/strcasecmp.c: Likewise.
73529         * lib/strcasestr.c: Likewise.
73530         * lib/strcspn.c: Likewise.
73531         * lib/striconv.c: Likewise.
73532         * lib/strncasecmp.c: Likewise.
73533         * lib/strnlen1.c: Likewise.
73534         * lib/strstr.c: Likewise.
73535         * lib/strtok_r.c: Likewise.
73536         * lib/tls.c: Likewise.
73537         * lib/tmpdir.c: Likewise.
73538         * lib/unicodeio.c: Likewise.
73539         * lib/unsetenv.c: Likewise.
73540         * lib/vasnprintf.c: Likewise.
73541         * lib/vasprintf.c: Likewise.
73542         * lib/wait-process.c: Likewise.
73543         * lib/xallocsa.c: Likewise.
73544         * lib/xsetenv.c: Likewise.
73545         * lib/xstriconv.c: Likewise.
73546
73547 2006-09-13  Simon Josefsson  <jas@extundo.com>
73548
73549         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73550         that internally, suggested by Ralf Wildenhues
73551         <Ralf.Wildenhues@gmx.de>.
73552
73553 2006-09-13  Simon Josefsson  <jas@extundo.com>
73554
73555         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73556         @LIBOBJS@.
73557         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73558
73559 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73562         longer worry about uses that don't define HAVE_CONFIG_H.
73563         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73564         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73565         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73566         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73567         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73568         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73569         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73570         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73571         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73572         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73573         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73574         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73575         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73576         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73577         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73578         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73579         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73580         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73581         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73582         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73583         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73584         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73585         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73586         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73587         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73588         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73589         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73590         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73591         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73592         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73593         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73594         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73595         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73596         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73597         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73598         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73599         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73600         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73601         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73602         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73603         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73604         Likewise.
73605
73606 2006-09-13  Eric Blake  <ebb9@byu.net>
73607
73608         * lib/getopt.c: Fix typo in last commit.
73609
73610 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73611
73612         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73613         dgettext.
73614
73615 2006-09-12  Jim Meyering  <jim@meyering.net>
73616
73617         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73618         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73619         Reported by Nelson H. F. Beebe.
73620
73621 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73622
73623         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73624         program_invocation_name and program_invocation_short_name are
73625         initialized.
73626         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73627         and program_invocation_short_name to argp.h, so they are visible
73628         to user programs.
73629         * lib/argp.h: Likewise
73630
73631 2006-09-10  Bruno Haible  <bruno@clisp.org>
73632
73633         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73634         m4/inttypes_h.m4, m4/uintmax_t.m4.
73635
73636 2006-09-10  Bruno Haible  <bruno@clisp.org>
73637
73638         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73639         gl_AC_TYPE_UINTMAX_T.
73640
73641 2006-09-10  Bruno Haible  <bruno@clisp.org>
73642
73643         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73644
73645 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73646
73647         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73648         convention.  Text proposed by Bruno Haible.
73649         (struct argp_option): Document the use of N_() wrappers.
73650
73651         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73652         '\v', and translate the two parts separately, instead of feeding
73653         the whole string to gettext.  This allows to exclude
73654         '\v' from the strings visible to the translator by writing doc
73655         strings as N_("..") "\v" N_("..").
73656
73657 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73658
73659         * config/srclist.txt: Undo latest change; the bug was fixed.
73660
73661 2006-09-09  Bruno Haible  <bruno@clisp.org>
73662
73663         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73664         assignments if building a library without libtool.
73665         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73666         in func_emit_lib_Makefile_am.
73667         (func_import): When building a static library libfoo.a, arrange to
73668         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73669         (func_create_testdir): Likewise.
73670         * modules/gc (configure.ac, Makefile.am): If building statically,
73671         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73672         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73673         * modules/striconv (configure.ac, Makefile.am): Likewise.
73674         Based on a suggestion by Ralf Wildenhues.
73675
73676 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73679         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73680         Also:
73681
73682         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73683         Add year_2050_test to catch glibc bug 2821
73684         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73685
73686         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73687         Prefer #ifdef to #if.
73688
73689         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73690         Return from 'main' instead of calling 'exit'.
73691
73692 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73695         returned the maximum time_t value rather than (time_t) -1.
73696         Problem originally reported by William Bardwell
73697         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73698
73699         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73700         Moved to here ...
73701         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73702         ... from here.
73703
73704 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73705
73706         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73707         2821 is fixed.
73708
73709 2006-09-08  Jim Meyering  <jim@meyering.net>
73710
73711         Don't make generated files read-only.  That would bother too many
73712         people.  However, do retain the ability to work when targets are
73713         read-only: remove the destination and temporary files before writing
73714         them (when generated via sed or echo), or by using the -f option for
73715         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73716         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73717         * modules/byteswap, modules/configmake, modules/fcntl:
73718         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73719         * modules/localcharset, modules/netinet_in, modules/poll:
73720         * modules/stdbool, modules/stdint, modules/sys_select:
73721         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73722
73723 2006-09-08  Jim Meyering  <jim@meyering.net>
73724
73725         Avoid new build failure on FreeBSD 6.0.
73726         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73727         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73728         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73729
73730 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73731
73732         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73733
73734 2006-09-07  Jim Meyering  <jim@meyering.net>
73735
73736         Fix global typo in last change: use chmod u-w, not chmod u-x.
73737         Spotted by Paul Eggert and Bruce Korb.
73738         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73739         * modules/byteswap, modules/configmake, modules/fcntl:
73740         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73741         * modules/localcharset, modules/netinet_in, modules/poll:
73742         * modules/stdbool, modules/stdint, modules/sys_select:
73743         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73744
73745 2006-09-06  Jim Meyering  <jim@meyering.net>
73746
73747         Make generated files be read-only.
73748         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73749         Ensure that each generated file is now read-only.
73750         * modules/argz: Likewise.
73751         * modules/arpa_inet: Likewise.
73752         * modules/byteswap: Likewise.
73753         * modules/configmake: Likewise.
73754         * modules/fcntl: Likewise.
73755         * modules/fnmatch: Likewise.
73756         * modules/getopt: Likewise.
73757         * modules/glob: Likewise.
73758         * modules/inttypes: Likewise.
73759         * modules/netinet_in: Likewise.
73760         * modules/poll: Likewise.
73761         * modules/stdbool: Likewise.
73762         * modules/stdint: Likewise.
73763         * modules/sys_select: Likewise.
73764         * modules/sys_socket: Likewise.
73765         * modules/sys_stat: Likewise.
73766         * modules/sysexits: Likewise.
73767         * modules/localcharset: Same as above, but continue using temporary
73768         file named "t-$@" (why different?) rather than the "$@-t" used
73769         everywhere else.
73770
73771         * modules/sysexits (Makefile.am): Replace literal occurrences
73772         of "sysexit.h" more readable, and more consistent, "$@".
73773
73774 2006-09-06  Bruno Haible  <bruno@clisp.org>
73775
73776         * modules/striconv: New file.
73777         * modules/xstriconv: New file.
73778         * MODULES.html.sh (Internationalization functions): Add striconv,
73779         xstriconv.
73780
73781 2006-09-06  Bruno Haible  <bruno@clisp.org>
73782
73783         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73784         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73785         not using libtool correctly.
73786
73787 2006-09-06  Bruno Haible  <bruno@clisp.org>
73788
73789         * lib/striconv.h: New file.
73790         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73791         iconvstring.c.
73792         * lib/xstriconv.h: New file.
73793         * lib/xstriconv.c: New file.
73794
73795 2006-09-06  Bruno Haible  <bruno@clisp.org>
73796
73797         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73798         lib_..._LDFLAGS.
73799
73800 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73801
73802         * lib/argz_.h: Sync from Libtool.
73803
73804         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73805                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73806
73807         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73808
73809 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73810
73811         * modules/trim: New file.
73812
73813 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73814
73815         * lib/trim.h: New file.
73816         * lib/trim.c: New file.
73817
73818 2006-09-05  Bruno Haible  <bruno@clisp.org>
73819
73820         * MODULES.html.sh (String handling): Add trim.
73821
73822 2006-09-04  Karl Berry  <karl@gnu.org>
73823
73824         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73825         until next release.
73826
73827 2006-09-03  Bruno Haible  <bruno@clisp.org>
73828
73829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73830         correctly.
73831
73832 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73835         not gl_GETLOADAVG.  Omit unneeded semicolons.
73836         Problems reported by Ralf Wildenhues in
73837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73838         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73839         at the end, which is the usual gnulib style.
73840
73841         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73842         of doing all the work ourselves.
73843         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73844         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73845
73846 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73849         Problem reported by Ralf Wildenhues in
73850         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73851
73852         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73853         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73854
73855 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73858         yesterday's patch by changing test -n to test -z.
73859
73860 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73863         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73864         the former is now obsolescent.
73865
73866         * modules/chdir-long (Depends-on): Add fcntl.
73867
73868 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73871         obsolescent, and programs should use gnulib instead.
73872         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73873         but with prefixes changed.
73874
73875 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73878         or stdbool.h, because they might not exist while configuring.
73879
73880         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73881         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73882         does that for us.
73883         (O_DIRECTORY): Remove.
73884
73885 2006-08-31  Eric Blake  <ebb9@byu.net>
73886
73887         * gnulib-tool: Don't let emacs change spaces to TAB.
73888
73889 2006-08-31  Bruno Haible  <bruno@clisp.org>
73890
73891         * gnulib-tool: When calling func_import more than once, do it in a
73892         subshell.
73893         Reported by Eric Blake <ebb9@byu.net>.
73894
73895 2006-08-31  Bruno Haible  <bruno@clisp.org>
73896
73897         * gnulib-tool (nl): Remove variable.
73898         (sed_transform_lib_file): Use more robust test for config-h module.
73899         (func_import): Fix typo in 2006-08-25 patch.
73900
73901 2006-08-31  Bruno Haible  <bruno@clisp.org>
73902
73903         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73904         specified, augment Makefile.am variables instead of assigning them.
73905
73906 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         Work around a bug in both the Linux and SunOS 64-bit kernels:
73909         nanosleep mishandles sleeps for longer than 2**31 seconds.
73910         Problem reported by Frank v Waveren in
73911         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73913         Check for nanosleep bug.
73914         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73915
73916 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73917
73918         Work around a bug in both the Linux and SunOS 64-bit kernels:
73919         nanosleep mishandles sleeps for longer than 2**31 seconds.
73920         Problem reported by Frank v Waveren in
73921         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73922         * lib/nanosleep.c (BILLION): New constant.
73923         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73924         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73925         implementation.
73926
73927 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * modules/nanosleep (Depends-on): Add gettime.
73930
73931 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73932         and Simon Josefsson  <jas@extundo.com>
73933         and Oskar Liljeblad  <oskar@osk.mine.nu>
73934
73935         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73936         * gnulib-tool (func_import): New license type 'unmodifiable license
73937         text'.
73938         * modules/fdl: Use it.  Longer description.
73939         * module/gpl, module/lgpl: New files.
73940
73941 2006-08-30  Jim Meyering  <jim@meyering.net>
73942
73943         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73944         shadowing the parameter.
73945
73946 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73947
73948         Sync from Libtool:
73949
73950         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73951
73952         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73953         sharing with gnulib.  Report by Eric Blake.
73954
73955 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73956
73957         * modules/isapipe: New file.
73958         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73959
73960 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73961
73962         * modules/configmake (Makefile.am): Add a comment, and omit
73963         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73964         by Bruno Haible.
73965
73966 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * m4/isapipe.m4: New file.
73969
73970 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * lib/isapipe.c, lib/isapipe.h: New files.
73973
73974 2006-08-29  Jim Meyering  <jim@meyering.net>
73975
73976         * modules/configmake (Makefile.am): Make configmake.h depend on
73977         Makefile.  Otherwise, a stale configmake.h could hang around.
73978
73979 2006-08-29  Eric Blake  <ebb9@byu.net>
73980
73981         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73982         resolution of upstream bug 3044.
73983
73984 2006-08-29  Bruno Haible  <bruno@clisp.org>
73985
73986         * modules/localcharset (Depends-on): Add configmake.
73987         (Makefile.am): Remove setting of LIBDIR through DEFS.
73988
73989 2006-08-29  Bruno Haible  <bruno@clisp.org>
73990
73991         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73992         defined.
73993
73994 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * modules/fcntl: New file.
73997         * modules/chdir-safer (Depends-on): Add fcntl.
73998         * modules/fts: Likewise.
73999         * modules/mkdir-p: Likewise.
74000
74001         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74002         This undoes the most recent change, since we're now addressing the
74003         problem in a different way.
74004
74005         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74006         into output, since the output might be called Makefile.am even
74007         if $makefile_name is something different.
74008         (func_import): Use $makefile_am rather than
74009         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74010         empty.
74011
74012         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74013
74014 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74017         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74018         recent change to stdint.m4, since we're now addressing the problem in a
74019         different way.
74020
74021 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * m4/fcntl_h.m4: New file.
74024
74025 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * lib/fcntl_.h: New file.
74028         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74029         the fcntl module.
74030         * lib/dirchownmod.c: Likewise.
74031         * lib/fts.c: Likewise.
74032
74033         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74034         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74035         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74036         just before including <inttypes.h>, to avoid circular inclusion.
74037
74038 2006-08-28  Jim Meyering  <jim@meyering.net>
74039
74040         * doc/visibility.texi: Actually read and correct the grammar of the
74041         sentence affected by yesterday's change.
74042
74043 2006-08-28  Eric Blake  <ebb9@byu.net>
74044
74045         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74046         needs wrapper.
74047
74048 2006-08-28  Eric Blake  <ebb9@byu.net>
74049
74050         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74051
74052 2006-08-28  Eric Blake  <ebb9@byu.net>
74053
74054         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74055
74056 2006-08-28  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/c-strstr: New file, from GNU gettext.
74059         * MODULES.html.sh (String handling): Add c-strstr.
74060
74061 2006-08-28  Bruno Haible  <bruno@clisp.org>
74062
74063         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74064         macros.
74065         Reported by Eric Blake.
74066
74067 2006-08-28  Bruno Haible  <bruno@clisp.org>
74068
74069         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74070         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74071         * lib/vasprintf.c: Include errno.h, limits.h.
74072         (EOVERFLOW): New fallback definition.
74073         (vasprintf): Test here whether the string length is > INT_MAX.
74074         * lib/vsnprintf.c: Include errno.h, limits.h.
74075         (EOVERFLOW): New fallback definition.
74076         (vsnprintf): Fix bug when generated string was too long for the buffer.
74077         Test here whether the string length is > INT_MAX.
74078
74079 2006-08-28  Bruno Haible  <bruno@clisp.org>
74080
74081         * lib/inttypes_.h (SCNX*): Remove definitions.
74082         Reported by Eric Blake.
74083
74084 2006-08-28  Bruno Haible  <bruno@clisp.org>
74085
74086         * lib/c-strstr.h: New file, from GNU gettext.
74087         * lib/c-strstr.c: New file, from GNU gettext.
74088
74089 2006-08-28  Bruno Haible  <bruno@clisp.org>
74090
74091         * gnulib-tool: Reorder some statements.
74092
74093 2006-08-28  Bruno Haible  <bruno@clisp.org>
74094
74095         * gnulib-tool: New option --makefile-name.
74096         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74097         $makefile_name.
74098         (func_import): Write $makefile_name to the cache file, and read it from
74099         there unless explicitly specified. Use $makefile_name as file name
74100         instead of Makefile.am. Adjust the recommendations accordingly.
74101
74102 2006-08-28  Bruno Haible  <bruno@clisp.org>
74103
74104         * gnulib-tool (func_verify_module): Check against misapplying patch.
74105
74106 2006-08-28  Bruno Haible  <bruno@clisp.org>
74107
74108         * gnulib-tool (func_relativize, func_relconcat): New functions.
74109         Give an error if --local-dir is given with --update.
74110         Remove trailing slashes from $local_gnulib_dir.
74111         (func_import): Store the relativized $local_gnulib_dir in
74112         gnulib-cache.m4, and read it from there if not specified explicitly.
74113
74114 2006-08-28  Bruno Haible  <bruno@clisp.org>
74115
74116         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74117         is the current directory. Respect also $local_gnulib_dir.
74118
74119 2006-08-28  Bruno Haible  <bruno@clisp.org>
74120             Simon Josefsson  <jas@extundo.com>
74121
74122         BeOS portability.
74123         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74124
74125 2006-08-27  Jim Meyering  <jim@meyering.net>
74126
74127         * doc/visibility.texi: Remove duplicate word: "pointer".
74128
74129 2006-08-26  Bruno Haible  <bruno@clisp.org>
74130
74131         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74132         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74133         (Makefile.am): Create inttypes.h from inttypes_.h.
74134         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74135
74136         * modules/imaxabs: New file.
74137
74138         * modules/imaxdiv: New file.
74139
74140 2006-08-26  Bruno Haible  <bruno@clisp.org>
74141
74142         * m4/inttypes.m4: New file.
74143         * m4/_inttypes_h.m4: Remove file.
74144         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74145         PRI_MACROS_BROKEN.
74146         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74147
74148         * m4/imaxabs.m4: New file.
74149
74150         * m4/imaxdiv.m4: New file.
74151
74152 2006-08-26  Bruno Haible  <bruno@clisp.org>
74153
74154         * lib/inttypes_.h: New file.
74155         * lib/inttypes.h: Remove file.
74156         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74157
74158         * lib/imaxabs.c: New file.
74159
74160         * lib/imaxdiv.c: New file.
74161
74162 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         New config-h module, so that "make" output needn't be cluttered
74165         by -DHAVE_CONFIG_H.
74166         * MODULES.html.sh (Support for building libraries and executables):
74167         Add config-h.
74168         * modules/config-h: New file.
74169         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74170         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74171         the config-h module is used.
74172
74173         New configmake module, so that "make" output needn't be cluttered
74174         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74175         * MODULES.html.sh (Support for building libraries and executables):
74176         Add configmake.
74177         * modules/configmake: New file.
74178
74179 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74180
74181         * m4/config-h.m4: New file.
74182
74183 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74184
74185         * config/srclist.txt: Add elisp-comp.
74186
74187 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * MODULES.html.sh (Support for building libraries and executables):
74190         Add elisp-comp.
74191         * build-aux/elisp-comp: New file.
74192         * modules/elisp-comp: New file.
74193
74194 2006-08-24  Bruno Haible  <bruno@clisp.org>
74195
74196         * gnulib-tool (func_create_testdir): Use non-default values of
74197         sourcebase and m4base.
74198
74199 2006-08-24  Bruno Haible  <bruno@clisp.org>
74200
74201         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74202         HTML structure.
74203
74204 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * modules/openat (Depends-on): Add lchown.
74207
74208 2006-08-23  Bruno Haible  <bruno@clisp.org>
74209
74210         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74211         of gl_LOCK_EARLY instead of gl_LOCK.
74212
74213 2006-08-23  Bruno Haible  <bruno@clisp.org>
74214
74215         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74216         on OSF/1 to no.
74217         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74218
74219 2006-08-23  Bruno Haible  <bruno@clisp.org>
74220
74221         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74222         as unusable.
74223
74224         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74225         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74226         (gl_LOCK): New macro.
74227
74228 2006-08-22  Simon Josefsson  <jas@extundo.com>
74229
74230         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74231         to md5 module.
74232
74233 2006-08-22  Simon Josefsson  <jas@extundo.com>
74234
74235         * MODULES.html.sh: Add "Support for maintaining and release
74236         projects".
74237
74238         * build-aux/gnupload: New file, from coreutils.
74239
74240 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74241
74242         Avoid the need for AC_LIBSOURCES in m4 macros.
74243         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74244         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74245         * modules/check-version (EXTRA_DIST): Add check-version.h.
74246         * modules/crc (EXTRA_DIST): Add crc.h.
74247         * modules/des (EXTRA_DIST): Add des.h.
74248         * modules/gc (EXTRA_DIST): Add gc.h.
74249         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74250         * modules/getline (EXTRA_DIST): Add getline.h.
74251         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74252         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74253         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74254         * modules/md2 (EXTRA_DIST): Add md2.h.
74255         * modules/md4 (EXTRA_DIST): Add md4.h.
74256         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74257         * modules/read-file (EXTRA_DIST): Add read-file.h.
74258         * modules/readline (EXTRA_DIST): Add readline.h.
74259         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74260         rijndael-api-fst.h.
74261
74262 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * m4/rijndael.m4 (gl_ARCFOUR):
74265         * m4/arctwo.m4 (gl_ARCTWO):
74266         * m4/check-version.m4 (gl_CHECK_VERSION):
74267         * m4/crc.m4 (gl_CRC):
74268         * m4/des.m4 (gl_DES):
74269         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74270         * m4/gc.m4 (gl_GC):
74271         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74272         * m4/getline.m4 (gl_FUNC_GETLINE):
74273         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74274         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74275         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74276         * m4/md2.m4 (gl_MD2):
74277         * m4/md4.m4 (gl_MD4):
74278         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74279         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74280         * m4/readline.m4 (gl_FUNC_READLINE):
74281         * m4/rijndael.m4 (gl_RIJNDAEL):
74282         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74283         to get the necessary .h files and whatnot.
74284
74285 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74286
74287         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74288         gnulib rather than the other way around.
74289         * config/srclistvars.sh (COREUTILS): Remove.
74290
74291 2006-08-22  Jim Meyering  <jim@meyering.net>
74292
74293         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74294
74295         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74296
74297 2006-08-22  Eric Blake  <ebb9@byu.net>
74298
74299         * modules/regexprops-generic: New file.
74300         * MODULES.html.sh (Support for building documentation): List it.
74301
74302 2006-08-22  Eric Blake  <ebb9@byu.net>
74303
74304         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74305         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74306         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74307         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74308
74309 2006-08-22  Bruno Haible  <bruno@clisp.org>
74310
74311         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74312         and lib_LTLIBRARIES like the other lib_* variables.
74313
74314 2006-08-22  Bruno Haible  <bruno@clisp.org>
74315
74316         * build-aux/x-to-1.in: New file, from GNU gettext.
74317
74318 2006-08-22  Bruno Haible  <bruno@clisp.org>
74319
74320         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74321         <utmpx.h> exists.
74322
74323 2006-08-22  Bruno Haible  <bruno@clisp.org>
74324
74325         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74326         <utmpx.h> exists.
74327
74328 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74329
74330         BeOS portability.
74331         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74332         exist.
74333         Problem reported by Bruno Haible.
74334
74335 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         Avoid the need for AC_LIBSOURCES in m4 macros.
74338         * modules/acl (EXTRA_DIST): Add acl.h.
74339         * modules/argmatch (Files): Add m4/argmatch.m4.
74340         (configure.ac): Add gl_ARGMATCH.
74341         (EXTRA_DIST): Renamed from lib_SOURCES, for
74342         consistency with the other modules.  Remove argmatch.c.
74343         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74344         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74345         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74346         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74347         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74348         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74349         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74350         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74351         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74352         * modules/closeout (EXTRA_DIST): Add closeout.h.
74353         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74354         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74355         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74356         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74357         dirname.h; remove basename.c and stripslash.c.
74358         * modules/exclude (EXTRA_DIST): Add exclude.h.
74359         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74360         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74361         * modules/file-type (EXTRA_DIST): Add file-type.h.
74362         * modules/filemode (EXTRA_DIST): Add filemode.h.
74363         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74364         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74365         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74366         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74367         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74368         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74369         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74370         * modules/getdate (EXTRA_DIST): Add getdate.c.
74371         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74372         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74373         * modules/getpass (EXTRA_DIST): Add getpass.h.
74374         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74375         * modules/group-member (EXTRA_DIST): Add group-member.h.
74376         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74377         * modules/hash (EXTRA_DIST): Add hash.h.
74378         * modules/human (EXTRA_DIST): Add human.h.
74379         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74380         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74381         * modules/lchown (EXTRA_DIST): Add lchown.h.
74382         * modules/long-options (EXTRA_DIST): Add long-options.h.
74383         * modules/lstat (EXTRA_DIST): Add lstat.h.
74384         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74385         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74386         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74387         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74388         * modules/memxor (EXTRA_DIST): Add memxor.h.
74389         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74390         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74391         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74392         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74393         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74394         * modules/physmem (EXTRA_DIST): Add physmem.h.
74395         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74396         * modules/posixver (EXTRA_DIST): Add posixver.h.
74397         * modules/quote (EXTRA_DIST): Add quote.h.
74398         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74399         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74400         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74401         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74402         regex_internal.h regexec.c.
74403         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74404         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74405         * modules/same (EXTRA_DIST): Add same.h.
74406         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74407         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74408         * modules/savedir (EXTRA_DIST): Add savedir.h.
74409         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74410         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74411         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74412         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74413         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74414         * modules/strdup (EXTRA_DIST): Add strdup.h.
74415         * modules/strftime (EXTRA_DIST): Add strftime.h.
74416         * modules/strndup (EXTRA_DIST): Add strndup.h.
74417         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74418         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74419         * modules/time_r (EXTRA_DIST): Add time_r.h.
74420         * modules/timespec (EXTRA_DIST): Add timespec.h.
74421         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74422         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74423         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74424         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74425         * modules/userspec (EXTRA_DIST): Add userspec.h.
74426         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74427         * modules/utimens (EXTRA_DIST): Add utimens.h.
74428         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74429         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74430         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74431         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74432         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74433         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74434         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74435         * modules/yesno (EXTRA_DIST): Add yesno.h.
74436
74437 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74438
74439         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74440
74441         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74442         * m4/dev-ino.m4, same-inode.m4: Remove.
74443
74444         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74445         * m4/acl.m4 (AC_FUNC_ACL):
74446         * m4/backupfile.m4 (gl_BACKUPFILE):
74447         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74448         * m4/canon-host.m4 (gl_CANON_HOST):
74449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74451         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74452         * m4/cloexec.m4 (gl_CLOEXEC):
74453         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74454         * m4/closeout.m4 (gl_CLOSEOUT):
74455         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74456         * m4/dirname.m4 (gl_DIRNAME):
74457         * m4/exclude.m4 (gl_EXCLUDE):
74458         * m4/exitfail.m4 (gl_EXITFAIL):
74459         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74460         * m4/file-type.m4 (gl_FILE_TYPE):
74461         * m4/filemode.m4 (gl_FILEMODE):
74462         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74463         * m4/fpending.m4 (gl_FUNC_FPENDING):
74464         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74465         * m4/fts.m4 (gl_FUNC_FTS):
74466         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74467         * m4/getdate.m4 (gl_GETDATE):
74468         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74469         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74470         * m4/getpass.m4 (gl_FUNC_GETPASS):
74471         * m4/gettime.m4 (gl_GETTIME):
74472         * m4/getugroups.m4 (gl_GETUGROUPS):
74473         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74474         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74475         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74476         * m4/hash.m4 (gl_HASH):
74477         * m4/idcache.m4 (gl_IDCACHE):
74478         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74479         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74480         * m4/long-options.m4 (gl_LONG_OPTIONS):
74481         * m4/lstat.m4 (gl_FUNC_LSTAT):
74482         * m4/md5.m4 (gl_MD5):
74483         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74484         * m4/memcoll.m4 (gl_MEMCOLL):
74485         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74486         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74487         * m4/memxor.m4 (gl_MEMXOR):
74488         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74489         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74490         * m4/modechange.m4 (gl_MODECHANGE):
74491         * m4/mountlist.m4 (gl_MOUNTLIST):
74492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74493         * m4/openat.m4 (gl_FUNC_OPENAT):
74494         * m4/pathmax.m4 (gl_PATHMAX):
74495         * m4/physmem.m4 (gl_PHYSMEM):
74496         * m4/posixtm.m4 (gl_POSIXTM):
74497         * m4/posixver.m4 (gl_POSIXVER):
74498         * m4/quote.m4 (gl_QUOTE):
74499         * m4/quotearg.m4 (gl_QUOTEARG):
74500         * m4/readtokens.m4 (gl_READTOKENS):
74501         * m4/readutmp.m4 (gl_READUTMP):
74502         * m4/regex.m4 (gl_REGEX):
74503         * m4/safe-read.m4 (gl_SAFE_READ):
74504         * m4/safe-write.m4 (gl_SAFE_WRITE):
74505         * m4/same.m4 (gl_SAME):
74506         * m4/save-cwd.m4 (gl_SAVE_CWD):
74507         * m4/savedir.m4 (gl_SAVEDIR):
74508         * m4/settime.m4 (gl_SETTIME):
74509         * m4/sha1.m4 (gl_SHA1):
74510         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74511         * m4/stat-macros.m4 (gl_STAT_MACROS):
74512         * m4/stat-time.m4 (gl_STAT_TIME):
74513         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74514         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74515         * m4/strdup.m4 (gl_FUNC_STRDUP):
74516         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74517         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74518         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74519         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74520         * m4/time_r.m4 (gl_TIME_R):
74521         * m4/timespec.m4 (gl_TIMESPEC):
74522         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74523         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74524         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74525         * m4/userspec.m4 (gl_USERSPEC):
74526         * m4/utimecmp.m4 (gl_UTIMECMP):
74527         * m4/utimens.m4 (gl_UTIMENS):
74528         * m4/xalloc.m4 (gl_XALLOC):
74529         * m4/xgetcwd.m4 (gl_XGETCWD):
74530         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74531         * m4/xreadlink.m4 (gl_XREADLINK):
74532         * m4/xstrtod.m4 (gl_XSTRTOD):
74533         * m4/yesno.m4 (gl_YESNO):
74534         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74535         to get the necessary .h files and whatnot.
74536
74537 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74538             Bruno Haible  <bruno@clisp.org>
74539
74540         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74541         /bin/sh understanding of '!' conditional negation.
74542
74543 2006-08-21  Jim Meyering  <jim@meyering.net>
74544
74545         * modules/openat (Depends-on): Really alphabetize.
74546
74547         * modules/acl (Depends-on): Add error and quote.
74548
74549         * check-module (find_included_lib_files): Add at-func.c to the
74550         ok-to-include-more-than-once white list.
74551
74552         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74553
74554 2006-08-21  Bruno Haible  <bruno@clisp.org>
74555
74556         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74557         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74558         Reported by Martin Lambers <marlam@marlam.de>.
74559
74560 2006-08-21  Bruno Haible  <bruno@clisp.org>
74561
74562         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74563         specify an installation location, don't emit a noinst_LIBRARIES or
74564         noinst_LTLIBRARIES assignment.
74565
74566 2006-08-21  Bruno Haible  <bruno@clisp.org>
74567
74568         BeOS portability.
74569         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74570         BeOS has mbrtowc() but no <wctype.h>.
74571
74572 2006-08-21  Bruno Haible  <bruno@clisp.org>
74573
74574         BeOS portability.
74575         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74576         exist.
74577
74578 2006-08-21  Bruno Haible  <bruno@clisp.org>
74579
74580         BeOS portability.
74581         * lib/mbchar.h: Include <wctype.h> only if it exists.
74582
74583 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         Remove files that are no longer needed by their respective modules.
74586         * m4/obstack.m4: Remove.
74587         * m4/strerror_r.m4: Remove.
74588         * m4/uint32_t.m4: Remove.
74589         * m4/uintptr_t.m4: Remove.
74590         * m4/ullong_max.m4: Remove.
74591         * m4/xstrtoimax.m4: Remove.
74592         * m4/xstrtoumax.m4: Remove.
74593
74594         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74595         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74596         dependencies now capture this.
74597
74598         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74599         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74600         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74601         * m4/human.m4 (gl_HUMAN): Likewise.
74602         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74603         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74604
74605         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74606
74607         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74608         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74609         stdint.
74610         * m4/human.m4 (gl_HUMAN): Likewise.
74611         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74612         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74613         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74614         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74615         * m4/xstrtol (gl_XSTRTOL): Likewise.
74616
74617         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74618         AC_TYPE_LONG_LONG_INT.
74619         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74620         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74621         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74622         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74623
74624         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74625         on stdbool.
74626
74627         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74628         (gl_PREREQ_XSTRTOUL): Remove.
74629
74630         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74631
74632         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74633         mode.
74634
74635 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         Add and change modules to make it easier for coreutils to use
74638         gnulib-tool.
74639         * modules/backupfile (Files): Remove m4/d-ino.m4.
74640         (Depends-on): Add d-ino.
74641         * modules/cycle-check (Depends-on): Add stdint.
74642         (lib_SOURCES): Add cycle-check.h.
74643         * modules/d-ino: New module.
74644         * modules/d-type: New module.
74645         * modules/error (Files): Remove m4/strerror_r.m4.
74646         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74647         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74648         m4/inttypes_h.m4, m4/uintmax_t.m4.
74649         (Depends-on): Add stdint.
74650         (lib_SOURCES): Add fsusage.h.
74651         * modules/getcwd (Files): Remove d-ino.m4.
74652         (Depends-on): Add d-ino.
74653         * modules/getndelim2 (Depends-on): Add stdint.
74654         * modules/glob (Files): Remove m4/d-type.m4.
74655         (Depends-on): Add d-type.
74656         * modules/host-os: New module.
74657         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74658         m4/inttypes_h.m4, m4/uintmax_t.m4.
74659         * Depends-on: Add stdint.
74660         (lib_SOURCES): Add human.h.
74661         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74662         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74663         m4/uintmax_t.m4, m4/ulonglong.m4.
74664         (Depends-on): Add stdint.
74665         (EXTRA_DIST): Add inttostr.h.
74666         * modules/lchmod: New module.
74667         * modules/link-follow: New module.
74668         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74669         (Depends-on): Add lchmod.
74670         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74671         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74672         (Depends-on): Add stdint.
74673         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74674         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74675         (Depends-on): Add stdint.
74676         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74677         * modules/perl: New module.
74678         * modules/regex (Depends-on): Add stdint.
74679         * modules/rmdir-errno: New module.
74680         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74681         m4/intmax_t.m4.
74682         (Depends-on): Add stdint.
74683         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74684         m4/uintmax_t.m4.
74685         (Depends-on): Add stdint.
74686         * modules/unlink-busy: New module.
74687         * modules/utimecmp (Depends-on): Add stdint.
74688         * modules/uptime: New module.
74689         * modules/winsz-ioctl: New module.
74690         * modules/winsz-termios: New module.
74691         * modules/xnanosleep (Depends-on): Add nanosleep.
74692         * modules/ullong_max: Remove.
74693         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74694         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74695         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74696         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74697         (Depends-on): Add inttypes.
74698         (lib_SOURCES): Add xstrtol.h.
74699         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74700         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74701         * MODULES.html.sh: Move 'assert' into the assert section.
74702         Move 'dummy' into the linking section.
74703         Remove ullong_max.
74704         Add section for compatibility checks for POSIX:2001 functions,
74705         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74706         winsz-ioctl, and winsz-termios into it.
74707         Add lchmod.
74708         Add top-level Misc section and put host-os, perl, and uptime
74709         into it.
74710
74711 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74714         now assume the stdint module.  Do not include inttypes.h.
74715         * lib/fsusage.h: Likewise.
74716         * lib/getndelim2.c: Likewise.
74717         * lib/human.h: Likewise.
74718         * lib/inttostr.h: Likewise.
74719         * lib/obstack.c: Likewise.
74720         * lib/regex_internal.h: Likewise.
74721         * lib/tempname.c: Likewise.
74722         * lib/utimecmp.c: Likewise.
74723         * lib/xstrtol.h: Likewise.
74724
74725         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74726
74727         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74728         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74729         * lib/xtime.h: Likewise.
74730
74731 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * modules/openat (Files): Add lib/fchmodat.c.
74734         Fixes problem reported by Jay Youngman.
74735
74736 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74739         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74740
74741 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74742             Bruno Haible  <bruno@clisp.org>
74743
74744         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74745         and is a script that invokes bison. Tighten the code. Add comments.
74746
74747 2006-08-18  Jim Meyering  <jim@meyering.net>
74748
74749         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74750         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74751         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74752         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74753
74754 2006-08-18  Bruno Haible  <bruno@clisp.org>
74755
74756         * modules/bison-i18n: New file.
74757         * MODULES.html.sh (Internationalization functions): Add it.
74758
74759 2006-08-18  Bruno Haible  <bruno@clisp.org>
74760
74761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74762         sys/statvfs.h. When getmntinfo was found, check its declaration and
74763         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74764
74765 2006-08-18  Bruno Haible  <bruno@clisp.org>
74766
74767         * m4/bison-i18n.m4: New file, from bison.
74768
74769 2006-08-18  Bruno Haible  <bruno@clisp.org>
74770
74771         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74772         (ME_DUMMY): Treat "kernfs" as a dummy.
74773         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74774
74775 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         Update from coreutils.
74778
74779         2006-08-15  Jim Meyering  <jim@meyering.net>
74780
74781         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74782
74783         2006-01-17  Jim Meyering  <jim@meyering.net>
74784
74785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74786
74787         2006-01-11  Jim Meyering  <jim@meyering.net>
74788
74789         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74790         Check for the lchmod function.
74791
74792 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         Update from coreutils.
74795
74796         * lib/__fpending.h: Add copyright notice.
74797         * lib/fprintftime.h: Likewise.
74798         * lib/savedir.c: Use (C) in copyright notice.
74799         * lib/savedir.h: Likewise.
74800
74801         2006-08-15  Jim Meyering  <jim@meyering.net>
74802
74803         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74804         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74805         in support of the EXPECTED_ERRNO macro.
74806         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74807         definitions.  Instead, define the appropriate symbols and include
74808         "at-func.c".
74809         * lib/mkdirat.c (mkdirat): Likewise.
74810         * lib/fchmodat.c (fchmodat): Likewise.
74811         (ENOSYS): Remove definition.
74812         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74813         it.  Don't include "unistd--.h" -- it wasn't ever used.
74814
74815         2006-01-17  Jim Meyering  <jim@meyering.net>
74816
74817         Rewrite fts.c not to change the current working directory,
74818         by using openat, fstatat, fdopendir, etc..
74819
74820         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74821         (HAVE_OPENAT_SUPPORT): Define.
74822         [_LIBC] (fchdir): Don't undef or define; no longer used.
74823         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74824         Now, this `function' always succeeds, and consumes its file descriptor
74825         parameter -- so callers must not close such FDs.  Update callers.
74826         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74827         (diropen): Add parameter, SP.  Adjust all callers.
74828         Implement using diropen_fd, rather than open.
74829         (fts_open): Initialize new member, fts_cwd_fd.
74830         Remove fts_rft-setting code.
74831         (fts_close): Close fts_cwd_fd, if necessary.
74832         (__opendir2): Define in terms of opendir or opendirat,
74833         depending on whether the FST_NOCHDIR flag is set.
74834         (fts_build): Since fts_safe_changedir consumes its FD, and since
74835         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74836         and close the dup'd file descriptor upon failure.
74837         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74838         (fts_safe_changedir): Tweak semantics to reflect that this function
74839         now calls cwd_advance_fd and hence consumes its FD argument.
74840         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74841         [struct FTS] (fts_rft): Remove now-unused member.
74842         [struct FTS] (fts_cycle.state): Improve comment.
74843
74844         * lib/openat.c (openat_needs_fchdir): New function.
74845         * lib/openat.h (openat_needs_fchdir): Declare it.
74846
74847 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74848
74849         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74850         Problem and fix reported by Pádraig Brady in
74851         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74852
74853 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74856
74857 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * lib/memcoll.c (memcoll): Optimize for the common case where the
74860         arguments are bytewise equal.
74861
74862 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * doc/regexprops-generic.texi: Add a copyright notice.
74865
74866 2006-08-15  Bruno Haible  <bruno@clisp.org>
74867
74868         * modules/tmpdir (License): Change to LGPL.
74869
74870 2006-08-15  Bruno Haible  <bruno@clisp.org>
74871
74872         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74873         module.
74874
74875 2006-08-14  Simon Josefsson  <jas@extundo.com>
74876
74877         * config/srclist.txt: Add gnupload.
74878
74879 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         Change copyright notice from LGPL 2 to GPL 2, since that's the
74882         standard form used in the gnulib repository.
74883         * tests/test-lock.c: Likewise.
74884         * tests/test-stdint.c: Likewise.
74885         * tests/test-tls.c: Likewise.
74886
74887         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74888         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74889         Add copyright notice.
74890
74891         * check-module: Add copyright notice.  Output a copyright
74892         notice if "--version" is specified.
74893         * modules/COPYING: New file.
74894         * tests/test-getaddrinfo.c: Add copyright notice.
74895         * tests/test-verify.c: Likewise.
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         * lib/lock.c: LGPL -> GPL.
74902         * lib/lock.h: Likewise.
74903         * lib/strnlen1.c: Likewise.
74904         * lib/strnlen1.h: Likewise.
74905         * lib/tls.c: Likewise.
74906         * lib/tls.h: Likewise.
74907         * lib/tmpdir.c: Likewise.
74908
74909         * lib/TODO: Remove; this belongs only in coreutils.
74910
74911 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         Add copyright notices to long-enough files that lack them, since
74914         otherwise the files aren't clearly free.  Use the same notice that
74915         getdate.texi already uses.
74916         * doc/alloca-opt.texi: Add copyright notice.
74917         * doc/alloca.texi: Likewise.
74918         * doc/ctime.texi: Likewise.
74919         * doc/functions.texi: Likewise.
74920         * doc/gcd.texi: Likewise.
74921         * doc/gnulib-tool.texi: Likewise.
74922         * doc/inet_ntoa.texi: Likewise.
74923         * doc/visibility.texi: Likewise.
74924
74925         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74926         * doc/quote.texi: Add copyright notice.
74927
74928         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74929         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74930         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74931         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74932         is now obsolete, and give a pointer to the Sun list.
74933         Add copyright notice.
74934
74935 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * config/srclistvars.sh: Add copyright notice.
74938
74939 2006-08-14  Eric Blake  <ebb9@byu.net>
74940
74941         Import the following change from libc:
74942
74943         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74944
74945         Upstream bug 2997.
74946         * lib/misc/error.c: Add space between program name and message if file
74947         name is missing.
74948
74949 2006-08-12  Karl Berry  <karl@gnu.org>
74950
74951         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74952         remove, these originate in gnulib now.
74953
74954 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74955
74956         * doc/Makefile (standards.info standards.html standards.dvi):
74957         Also depend on make-stds.texi.
74958
74959 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74962         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74963
74964         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74965         in wchar_t.  Problem reported by Eric Blake.
74966
74967         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74968         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74969         Also, help the compiler to keep LEN in a register.
74970
74971 2006-08-11  Eric Blake  <ebb9@byu.net>
74972
74973         * users.txt: Sort.  Add tar.
74974
74975 2006-08-11  Bruno Haible  <bruno@clisp.org>
74976
74977         * users.txt: New file.
74978
74979 2006-08-11  Bruno Haible  <bruno@clisp.org>
74980
74981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74982         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74983
74984 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * modules/snprintf (Depends-on): Remove minmax.
74987         (Maintainer): Add self and Bruno.
74988
74989 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74992         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74993         (EOVERFLOW): Define if the system does not.
74994         Do not include "minmax.h"; it wasn't used.
74995         (snprintf): Don't assume size_t promotes to an unsigned type.
74996         Fix bug when generated string was too long for the buffer: the
74997         buffer's contents are supposed to be the initial prefix of the
74998         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74999         exceeds INT_MAX; do the check ourselves.
75000
75001         Import the following changes from libc:
75002
75003         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75004
75005         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75006         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75007         set wc to the byte which couldn't be converted.
75008         (re_string_reconstruct): Don't clear valid_raw_len before calling
75009         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75010         tip_context using re_string_context_at.
75011
75012         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75013
75014         * lib/posix/regex.h: g++ still cannot handled [restrict].
75015
75016         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75017
75018         * lib/posix/regex.h: Remove special handling for VMS.
75019
75020 2006-08-10  Jim Meyering  <jim@meyering.net>
75021
75022         * modules/same-inode: New module.
75023         * modules/dev-ino: New module.
75024         * modules/cycle-check: Depend on these modules, rather than simply
75025         including their .h files.
75026         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75027         required via m4/cycle-check.m4.
75028         * modules/same: Depend on new same-inode module, rather than
75029         including same-inode.h.
75030         * modules/chdir-safer: New file.
75031
75032         * modules/chown (Depends-on): Add stat-macros.
75033
75034 2006-08-10  Jim Meyering  <jim@meyering.net>
75035
75036         * m4/cycle-check.m4: New file.
75037         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75038         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75039
75040 2006-08-10  Eric Blake  <ebb9@byu.net>
75041
75042         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75043         in from original proposal.
75044
75045 2006-08-10  Eric Blake  <ebb9@byu.net>
75046         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75047
75048         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75049         namespace.
75050
75051 2006-08-10  Bruno Haible  <bruno@clisp.org>
75052
75053         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75054         as well.
75055
75056 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         Sync from coreutils.
75059
75060         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75061
75062         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75063         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75064
75065 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * modules/restrict: Remove; no longer needed now that we assume
75068         Autoconf 2.59 or later.
75069         * MODULES.html.sh: Remove 'restrict'.
75070         * modules/argp (Depends-on): Remove 'restrict'.
75071         * modules/base64 (Depends-on): Likewise.
75072         * modules/gc (Depends-on): Likewise.
75073         * modules/getaddrinfo (Depends-on): Likewise.
75074         * modules/glob (Depends-on): Likewise.
75075         * modules/inet_ntop (Depends-on): Likewise.
75076         * modules/inet_pton (Depends-on): Likewise.
75077         * modules/memxor (Depends-on): Likewise.
75078         * modules/regex (Depends-on): Likewise.
75079         * modules/strtok_r (Depends-on): Likewise.
75080         * modules/time_r (Depends-on): Likewise.
75081
75082 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75083
75084         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75085         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75086         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75087         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75088         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75089         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75090         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75091         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75092
75093         Merge from coreutils.
75094         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75095         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75096         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75097         * m4/time_r.m4 (gl_TIME_R): Likewise.
75098
75099 2006-08-09  Karl Berry  <karl@gnu.org>
75100
75101         * config/srclist.txt: no more gettext-tools, per Bruno.
75102
75103 2006-08-08  Eric Blake  <ebb9@byu.net>
75104
75105         * modules/verror: New module.
75106         * MODULES.html.sh: Document it.
75107
75108 2006-08-08  Eric Blake  <ebb9@byu.net>
75109
75110         * lib/verror.h, lib/verror.c: New files.
75111
75112 2006-08-08  Eric Blake  <ebb9@byu.net>
75113
75114         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75115         verror_at_line output complies with GNU Coding Standards even when
75116         file is NULL.
75117
75118 2006-08-07  Bruno Haible  <bruno@clisp.org>
75119
75120         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75121         versions of AIX.
75122         Reported by Ralf Wildenhues.
75123
75124 2006-08-07  Bruno Haible  <bruno@clisp.org>
75125
75126         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75127         in an AC_DEFUN. Needed so that the autoconf snippets can use
75128         AC_REQUIRE.
75129
75130 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75131
75132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75133         Initialize pkgdata_DATA.
75134         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75135         overriding it.
75136
75137 2006-08-06  Eric Blake  <ebb9@byu.net>
75138
75139         * lib/error.h: Fold in some upstream changes from glibc.
75140         * lib/error.c: Likewise.
75141
75142 2006-08-04  Bruno Haible  <bruno@clisp.org>
75143
75144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75145         Make the mostlyclean-local rule depend on mostlyclean-generic.
75146         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75147
75148 2006-07-31  Bruno Haible  <bruno@clisp.org>
75149
75150         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75151         <stdlib.h>, <string.h>.
75152
75153 2006-07-30  Bruno Haible  <bruno@clisp.org>
75154
75155         * modules/readlink (License): Change to LGPL.
75156
75157 2006-07-30  Bruno Haible  <bruno@clisp.org>
75158
75159         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75160         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75161         set PKGDATADIR to point to it.
75162
75163 2006-07-30  Bruno Haible  <bruno@clisp.org>
75164
75165         * modules/csharpexec (configure.ac): Comment out macro invocation.
75166         * modules/javaexec (configure.ac): Likewise.
75167         * modules/javacomp-script (configure.ac): Likewise.
75168
75169         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75170
75171 2006-07-30  Bruno Haible  <bruno@clisp.org>
75172
75173         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75174         linked-list.
75175
75176 2006-07-30  Bruno Haible  <bruno@clisp.org>
75177
75178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75179
75180 2006-07-30  Bruno Haible  <bruno@clisp.org>
75181
75182         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75183         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75184         get removed.
75185
75186 2006-07-29  Bruno Haible  <bruno@clisp.org>
75187
75188         Make it possible for gnulib-tool to work with locally modified or
75189         augmented gnulib repositories.
75190         * gnulib-tool (func_usage): Document --local-dir option.
75191         (local_gnulib_dir): New variable.
75192         Handle --local-dir option.
75193         (func_lookup_file): New function.
75194         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75195         (func_get_description, func_get_filelist, func_get_description,
75196         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75197         func_get_automake_snippet, func_get_include_directive,
75198         func_get_license, func_get_maintainer): Use func_lookup_file.
75199         (func_import, func_create_testdir): Use func_lookup_file.
75200
75201 2006-07-29  Bruno Haible  <bruno@clisp.org>
75202
75203         * modules/setenv (Depends-on): Add unistd.
75204
75205 2006-07-29  Bruno Haible  <bruno@clisp.org>
75206
75207         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75208
75209 2006-07-29  Bruno Haible  <bruno@clisp.org>
75210
75211         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75212
75213 2006-07-29  Bruno Haible  <bruno@clisp.org>
75214
75215         * gnulib-tool (import, update): If there is no Makefile.am, look at
75216         aclocal.m4, instead of bailing out.
75217
75218 2006-07-29  Bruno Haible  <bruno@clisp.org>
75219
75220         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75221         Categorize the options by when they are useful.
75222
75223 2006-07-29  Bruno Haible  <bruno@clisp.org>
75224
75225         * gnulib-tool (func_usage): Document option --no-libtool.
75226         Handle option --no-libtool.
75227         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75228         for changed semantics of $libtool variable.
75229         (func_import): Likewise. If libtool is not used, show this through
75230         an option --no-libtool.
75231         (func_create_testdir): Update.
75232
75233 2006-07-29  Bruno Haible  <bruno@clisp.org>
75234
75235         * gnulib-tool (func_import): Extend error message about missing
75236         --doc-base.
75237
75238 2006-07-29  Bruno Haible  <bruno@clisp.org>
75239
75240         * gnulib-tool (func_import): Don't create the $docbase directory if
75241         there is no file to store there.
75242
75243 2006-07-29  Bruno Haible  <bruno@clisp.org>
75244
75245         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75246         relevant, look for configure.ac there, not in the current directory.
75247         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75248
75249 2006-07-29  Bruno Haible  <bruno@clisp.org>
75250
75251         * gnulib-tool (SORT): New variable.
75252         (func_usage): Undocument --assume-autoconf option.
75253         Remove --assume-autoconf option handling.
75254         (autoconf_minversion): Determine from the contents of configure.ac.
75255         (func_import): Remove autoconf_minversion handling.
75256         Suggested by Eric Blake.
75257
75258 2006-07-29  Bruno Haible  <bruno@clisp.org>
75259
75260         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75261
75262 2006-07-29  Bruno Haible  <bruno@clisp.org>
75263
75264         * config/srclist.txt (*setenv.[ch]): Remove rules.
75265
75266 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75267
75268         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75269
75270 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75271
75272         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75273         arpa/inet.h.
75274
75275 2006-07-28  Simon Josefsson  <jas@extundo.com>
75276
75277         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75278         * modules/inet_pton (Depends-on): Likewise.
75279
75280 2006-07-28  Simon Josefsson  <jas@extundo.com>
75281
75282         * m4/netinet_in_h.m4: New file.
75283
75284 2006-07-28  Simon Josefsson  <jas@extundo.com>
75285
75286         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75287         #include's.
75288
75289 2006-07-28  Simon Josefsson  <jas@extundo.com>
75290
75291         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75292         #include's.
75293
75294 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75297         setgid on directories only if they set these bits.
75298         * lib/modechange.h: Remove obsolete comment about masks.
75299
75300 2006-07-28  Eric Blake  <ebb9@byu.net>
75301
75302         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75303         macro expansion.
75304
75305 2006-07-28  Bruno Haible  <bruno@clisp.org>
75306
75307         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75308
75309 2006-07-28  Bruno Haible  <bruno@clisp.org>
75310
75311         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75312
75313 2006-07-28  Bruno Haible  <bruno@clisp.org>
75314
75315         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75316         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75317         Define fallbacks.
75318         Avoids link error on FreeBSD 4.x.
75319         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75320
75321         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75322         encoding.
75323         * lib/mbswidth.c (iswcntrl): Likewise.
75324
75325 2006-07-27  Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75328         test.
75329
75330 2006-07-27  Bruno Haible  <bruno@clisp.org>
75331
75332         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75333         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75334         defined.
75335
75336 2006-07-26  Eric Blake  <ebb9@byu.net>
75337
75338         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75339
75340 2006-07-26  Eric Blake  <ebb9@byu.net>
75341
75342         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75343         like mingw that lack mkstemp.
75344         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75345         avoid compilation warning on mingw.
75346
75347 2006-07-26  Bruno Haible  <bruno@clisp.org>
75348
75349         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75350         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75351         INT_FAST*_MIN, INTPTR_MIN.
75352
75353 2006-07-25  Bruno Haible  <bruno@clisp.org>
75354
75355         * modules/version-etc (Depends-on): Add stdarg.
75356
75357 2006-07-25  Bruno Haible  <bruno@clisp.org>
75358
75359         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75360         complex commands.
75361
75362 2006-07-25  Bruno Haible  <bruno@clisp.org>
75363
75364         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75365         defined in <stdarg.h> or config.h.
75366
75367 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75370         (gl_STDIO_SAFER): Remove.
75371
75372 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * MODULES.html.sh (File stream based Input/Output):
75375         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75376         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75377         * modules/fopen-safer, modules/tmpfile-safer: New files.
75378         * modules/stdio-safer: Remove.
75379
75380 2006-07-24  Bruno Haible  <bruno@clisp.org>
75381
75382         * modules/tmpdir: New file.
75383         * MODULES.html.sh (File system functions): Add it.
75384
75385 2006-07-24  Bruno Haible  <bruno@clisp.org>
75386
75387         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75388         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75389
75390 2006-07-24  Bruno Haible  <bruno@clisp.org>
75391
75392         * modules/clean-temp: New file.
75393
75394 2006-07-24  Bruno Haible  <bruno@clisp.org>
75395
75396         * m4/tmpdir.m4: New file, from GNU gettext.
75397
75398 2006-07-24  Bruno Haible  <bruno@clisp.org>
75399
75400         * lib/tmpdir.h: New file, from GNU gettext.
75401         * lib/tmpdir.c: New file, from GNU gettext.
75402
75403 2006-07-24  Bruno Haible  <bruno@clisp.org>
75404
75405         * lib/clean-temp.h: New file, from GNU gettext.
75406         * lib/clean-temp.c: New file, from GNU gettext.
75407
75408 2006-07-23  Eric Blake  <ebb9@byu.net>
75409
75410         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75411         (Depends-on): Add binary-io.
75412
75413 2006-07-23  Eric Blake  <ebb9@byu.net>
75414
75415         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75416
75417 2006-07-23  Eric Blake  <ebb9@byu.net>
75418
75419         * lib/tmpfile-safer.c: New file.
75420         * lib/stdio-safer.h (fopen_safer): Add prototype.
75421         * lib/stdio--.h (tmpfile): Make safer.
75422
75423 2006-07-23  Bruno Haible  <bruno@clisp.org>
75424
75425         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75426         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75427         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75428         gl_linked_remove_at): Use it.
75429
75430 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75431         and Simon Josefsson <jas@extundo.com>
75432
75433         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75434
75435         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75436
75437 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * modules/close-stream: New file.
75440         * modules/closeout (Description): Make it clear that it exits
75441         with a diagnostic on error.
75442         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75443         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75444
75445 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75446
75447         * m4/close-stream.m4: New file.
75448
75449 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         * lib/close-stream.c, lib/close-stream.h: New files.
75452
75453 2006-07-22  Bruno Haible  <bruno@clisp.org>
75454
75455         Merge from GNU gettext 0.15.
75456
75457         2006-05-01  Bruno Haible  <bruno@clisp.org>
75458
75459                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75460
75461         2006-07-22  Bruno Haible  <bruno@clisp.org>
75462
75463                 * modules/javaversion: New file.
75464                 * MODULES.html.sh (Java): Add javaversion.
75465
75466         2006-03-12  Bruno Haible  <bruno@clisp.org>
75467
75468                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75469
75470         2005-12-04  Bruno Haible  <bruno@clisp.org>
75471
75472                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75473                 (untested).
75474
75475         2006-06-21  Bruno Haible  <bruno@clisp.org>
75476
75477                 Avoid warnings from recent versions of mcs.
75478                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75479                 -o, -L, -r any more. Use options documented since mcs-1.0
75480                 instead. Similarly for -g.
75481
75482         2005-12-04  Bruno Haible  <bruno@clisp.org>
75483
75484                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75485                 .resources, not .resource.
75486
75487         2005-07-09  Bruno Haible  <bruno@clisp.org>
75488
75489                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75490                 add a .dll suffix.
75491                 Reported by Mark Junker <mjscod@gmx.de>.
75492
75493         2006-07-22  Bruno Haible  <bruno@clisp.org>
75494
75495                 * modules/gettext: Upgrade to gettext-0.15.
75496                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75497                 m4/visibility.m4.
75498                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75499
75500 2006-07-22  Bruno Haible  <bruno@clisp.org>
75501
75502         Merge from GNU gettext 0.15.
75503
75504         2006-03-25  Bruno Haible  <bruno@clisp.org>
75505
75506                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75507
75508         2006-07-21  Bruno Haible  <bruno@clisp.org>
75509
75510                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75511                 "1.1".
75512
75513         2006-05-09  Bruno Haible  <bruno@clisp.org>
75514
75515                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75516                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75517                 for the conftestver execution.
75518
75519         2006-05-01  Bruno Haible  <bruno@clisp.org>
75520
75521                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75522                 optional target-version argument. Verify that the compiler
75523                 groks source of the specified source-version, or add -source
75524                 option as necessary. Verify that the compiler produces
75525                 bytecode in the specified target-version, or add -target and
75526                 -source options as necessary. Make the result of the test
75527                 available as variable CONF_JAVAC. Also log error output in
75528                 config.log.
75529
75530         2006-03-11  Bruno Haible  <bruno@clisp.org>
75531
75532                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75533
75534         2006-05-09  Bruno Haible  <bruno@clisp.org>
75535
75536                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75537                 CLASSPATH_SEPARATOR to a semicolon.
75538
75539         2006-03-12  Bruno Haible  <bruno@clisp.org>
75540
75541                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75542                 available as variable CONF_JAVA, for subsequent autoconf
75543                 tests. Also log error output in config.log.
75544
75545         2006-07-19  Bruno Haible  <bruno@clisp.org>
75546
75547                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75548                 that getline works on glibc2 systems. Needed to avoid trouble
75549                 in relocatable.c.
75550                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75551
75552         2005-12-04  Bruno Haible  <bruno@clisp.org>
75553
75554                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75555                 launcher (untested).
75556
75557         2005-12-04  Bruno Haible  <bruno@clisp.org>
75558
75559                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75560
75561         2006-07-22  Bruno Haible  <bruno@clisp.org>
75562
75563                 * gettext.m4: Update from GNU gettext-0.15.
75564                 * nls.m4: Likewise.
75565                 * po.m4: Likewise.
75566                 * inttypes-pri.m4: Likewise.
75567                 * inttypes-h.m4: Renamed from inttypes.m4.
75568                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75569
75570 2006-07-22  Bruno Haible  <bruno@clisp.org>
75571
75572         Merge from GNU gettext 0.15.
75573
75574         2005-07-05  Bruno Haible  <bruno@clisp.org>
75575
75576                 * printf-args.c (printf_fetchargs): Work around broken
75577                 definition of wint_t on mingw.
75578
75579         2005-02-12  Bruno Haible  <bruno@clisp.org>
75580
75581                 * xallocsa.h: Add extern "C" for C++.
75582
75583         2006-05-17  Bruno Haible  <bruno@clisp.org>
75584
75585                 Cygwin portability.
75586                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75587
75588         2006-04-30  Bruno Haible  <bruno@clisp.org>
75589
75590                 * progreloc.c: Include <mach-o/dyld.h> if available.
75591                 (find_executable): Use _NSGetExecutablePath when possible.
75592
75593         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75594
75595                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75596                 function.
75597
75598         2005-12-29  Bruno Haible  <bruno@clisp.org>
75599
75600                 * progreloc.c (set_program_name_and_installdir): Fix
75601                 compilation error.
75602
75603         2005-12-04  Bruno Haible  <bruno@clisp.org>
75604
75605                 Cygwin portability.
75606                 * progreloc.c: Include <windows.h> also on Cygwin.
75607                 (find_executable): Add support for Cygwin.
75608                 (set_program_name_and_installdir): Handle also platforms with
75609                 nonempty EXEEXT.
75610
75611         2006-07-11  Bruno Haible  <bruno@clisp.org>
75612
75613                 * javacomp.c: Fix a comment.
75614                 Reported by Jim Meyering.
75615
75616         2006-04-30  Bruno Haible  <bruno@clisp.org>
75617
75618                 * javacomp.h (compile_java_class): Add source_version,
75619                 target_version arguments.
75620                 * javacomp.c: Rewritten to choose only a compiler that
75621                 respects the specified source_version and target_version.
75622
75623         2006-06-27  Bruno Haible  <bruno@clisp.org>
75624
75625                 Assume correct S_ISDIR macro.
75626                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75627
75628         2006-07-22  Bruno Haible  <bruno@clisp.org>
75629
75630                 * javaversion.h: New file, from GNU gettext.
75631                 * javaversion.c: New file, from GNU gettext.
75632                 * javaversion.java: New file, from GNU gettext.
75633                 * javaversion.class: New file, from GNU gettext.
75634
75635         2006-05-17  Bruno Haible  <bruno@clisp.org>
75636
75637                 Cygwin portability.
75638                 * javaexec.c (execute_java_class): Test for jview program
75639                 also on Cygwin.
75640
75641         2006-04-09  Bruno Haible  <bruno@clisp.org>
75642
75643                 * fatal-signal.c: Don't include string.h.
75644                 (at_fatal_signal): Use a copying loop instead of memcpy.
75645
75646         2005-12-04  Bruno Haible  <bruno@clisp.org>
75647
75648                 * csharpexec.c: Add support for 'clix' launcher (untested).
75649                 (execute_csharp_using_sscli): New function.
75650                 (execute_csharp_program): Call it.
75651
75652         2006-06-21  Bruno Haible  <bruno@clisp.org>
75653
75654                 Avoid warnings from recent versions of mcs.
75655                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75656                 -o, -L, -r any more. Use options documented since mcs-1.0
75657                 instead. Similarly for -g.
75658
75659         2005-07-09  Bruno Haible  <bruno@clisp.org>
75660
75661                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75662                 add a .dll suffix.
75663                 Reported by Mark Junker <mjscod@gmx.de>.
75664
75665         2006-06-17  Bruno Haible  <bruno@clisp.org>
75666
75667                 * config.charset: Update for NetBSD 3.0.
75668
75669         2006-05-17  Bruno Haible  <bruno@clisp.org>
75670
75671                 Cygwin portability.
75672                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75673
75674         2006-05-16  Bruno Haible  <bruno@clisp.org>
75675
75676                 * localcharset.c [CYGWIN]: Include <windows.h>.
75677                 (get_charset_aliases): For Cygwin, return the same CPxxx
75678                 aliases list as under WIN32.
75679                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75680                 the environment variables. Fall back to GetACP().
75681
75682         2006-04-05  Bruno Haible  <bruno@clisp.org>
75683
75684                 * config.charset: Update Juan Manuel Guerrero's address.
75685
75686         2005-02-12  Bruno Haible  <bruno@clisp.org>
75687
75688                 * allocsa.h: Add extern "C" for C++.
75689
75690         2005-02-10  Bruno Haible  <bruno@clisp.org>
75691
75692                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75693                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75694
75695         2006-07-22  Bruno Haible  <bruno@clisp.org>
75696
75697                 * gettext.h: Update to GNU gettext-0.15.
75698
75699 2006-07-22  Bruno Haible  <bruno@clisp.org>
75700
75701         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75702         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75703         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75704
75705 2006-07-21  Eric Blake  <ebb9@byu.net>
75706
75707         * modules/stdlib-safer: New file.
75708         * MODULES.html.sh (File stream based Input/Output): Add
75709         stdlib-safer.
75710
75711 2006-07-21  Eric Blake  <ebb9@byu.net>
75712
75713         * lib/stdlib-safer.h: New file from coreutils, required by
75714         stdlib--.h.
75715
75716 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75719
75720 2006-07-20  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool: Recognize new option --assume-autoconf.
75723         (autoconf_minversion): New variable.
75724         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75725
75726 2006-07-20  Bruno Haible  <bruno@clisp.org>
75727
75728         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75729
75730 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75731
75732         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75733         Reindent and repaginate.
75734
75735 2006-07-19  Derek Price  <derek@ximbiot.com>
75736
75737         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75738         Correct grammar.
75739
75740 2006-07-17  Bruno Haible  <bruno@clisp.org>
75741
75742         * modules/list: New file.
75743         * modules/array-list: New file.
75744         * modules/carray-list, modules/carray-list-tests: New files.
75745         * modules/linked-list, modules/linked-list-tests: New files.
75746         * modules/avltree-list, modules/avltree-list-tests: New files.
75747         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75748         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75749         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75750         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75751         * modules/oset: New file.
75752         * modules/array-oset: New file.
75753         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75754         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75755         * tests/test-carray_list.c: New file.
75756         * tests/test-linked_list.c: New file.
75757         * tests/test-avltree_list.c: New file.
75758         * tests/test-rbtree_list.c: New file.
75759         * tests/test-linkedhash_list.c: New file.
75760         * tests/test-avltreehash_list.c: New file.
75761         * tests/test-rbtreehash_list.c: New file.
75762         * tests/test-avltree_oset.c: New file.
75763         * tests/test-rbtree_oset.c: New file.
75764         * MODULES.html.sh (Container data structures): New section.
75765
75766 2006-07-17  Bruno Haible  <bruno@clisp.org>
75767
75768         * m4/gl_list.m4: New file.
75769
75770 2006-07-17  Bruno Haible  <bruno@clisp.org>
75771
75772         * lib/gl_list.h: New file.
75773         * lib/gl_list.c: New file.
75774         * lib/gl_array_list.h: New file.
75775         * lib/gl_array_list.c: New file.
75776         * lib/gl_carray_list.h: New file.
75777         * lib/gl_carray_list.c: New file.
75778         * lib/gl_linked_list.h: New file.
75779         * lib/gl_linked_list.c: New file.
75780         * lib/gl_anylinked_list1.h: New file.
75781         * lib/gl_anylinked_list2.h: New file.
75782         * lib/gl_avltree_list.h: New file.
75783         * lib/gl_avltree_list.c: New file.
75784         * lib/gl_anyavltree_list1.h: New file.
75785         * lib/gl_anyavltree_list2.h: New file.
75786         * lib/gl_rbtree_list.h: New file.
75787         * lib/gl_rbtree_list.c: New file.
75788         * lib/gl_anyrbtree_list1.h: New file.
75789         * lib/gl_anyrbtree_list2.h: New file.
75790         * lib/gl_anytree_list1.h: New file.
75791         * lib/gl_anytree_list2.h: New file.
75792         * lib/gl_linkedhash_list.h: New file.
75793         * lib/gl_linkedhash_list.c: New file.
75794         * lib/gl_anyhash_list1.h: New file.
75795         * lib/gl_anyhash_list2.h: New file.
75796         * lib/gl_avltreehash_list.h: New file.
75797         * lib/gl_avltreehash_list.c: New file.
75798         * lib/gl_rbtreehash_list.h: New file.
75799         * lib/gl_rbtreehash_list.c: New file.
75800         * lib/gl_anytreehash_list1.h: New file.
75801         * lib/gl_anytreehash_list2.h: New file.
75802
75803         * lib/gl_oset.h: New file.
75804         * lib/gl_oset.c: New file.
75805         * lib/gl_array_oset.h: New file.
75806         * lib/gl_array_oset.c: New file.
75807         * lib/gl_avltree_oset.h: New file.
75808         * lib/gl_avltree_oset.c: New file.
75809         * lib/gl_rbtree_oset.h: New file.
75810         * lib/gl_rbtree_oset.c: New file.
75811         * lib/gl_anytree_oset.h: New file.
75812
75813 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * m4/mkancesdirs.m4: New file.
75816         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75817         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75818         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75819         it.
75820
75821 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75824         * lib/mkancesdirs.h: New files.
75825         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75826         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75827         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75828         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75829         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75830         callers changed.  Revamp internals significantly, by not
75831         attempting to create directories that are temporarily more
75832         permissive than the final results.  Do not attempt to use
75833         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75834         This removes some race conditions, fixes some bugs, and simplifies
75835         things.  Use new dirchownmod function to do owner and mode changes.
75836         * lib/mkdir-p.h: Likewise.
75837         * lib/modechange.c (octal_to_mode): New function.
75838         (struct mode_change): New member mentioned.
75839         (make_node_op_equals): New arg mentioned.  All callers changed.
75840         (mode_compile): Keep track of which mode bits the user has explicitly
75841         mentioned.
75842         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75843         New arg PMODE_BITS, to keep track of which mode bits the user
75844         mentioned; it treats S_ISUID and S_ISGID speciall.
75845         All callers changed.
75846         * lib/modechange.h: Likewise.
75847
75848 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75849
75850         * MODULES.html.sh: Add mkancestors.
75851         * modules/mkancesdirs: New module.
75852         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75853         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75854         The chdir-safer and afs files are now orphans; I'll remove them
75855         unless someone speaks up.
75856         Add lib/dirchownmod.c, lib/dirchownmod.h.
75857         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75858         Add lchown, mkancesdirs.
75859         (Maintainer): Add self.
75860
75861 2006-07-15  Karl Berry  <karl@gnu.org>
75862
75863         * gnulib-tool: help message wording/arrangement.
75864
75865 2006-07-14  Simon Josefsson  <jas@extundo.com>
75866
75867         * doc/gnulib.texi (Libtool and Windows): New section.
75868
75869 2006-07-12  Simon Josefsson  <jas@extundo.com>
75870
75871         * modules/gendocs (License): Fix license, approved by Karl.
75872
75873 2006-07-12  Eric Blake  <ebb9@byu.net>
75874
75875         * MODULES.html.sh: Add gendocs.
75876
75877 2006-07-11  Eric Blake  <ebb9@byu.net>
75878
75879         * modules/fdl: New module, to install doc/fdl.texi.
75880         * MODULES.html.sh: Add new section for documentation modules.
75881         * gnulib-tool: Avoid space-tab.
75882         (--doc-base): New option, to manage files from doc.
75883
75884 2006-07-11  Eric Blake  <ebb9@byu.net>
75885
75886         * m4/absolute-header.m4: Fix comments to match recent change.
75887
75888 2006-07-11  Eric Blake  <ebb9@byu.net>
75889
75890         * gnulib-tool: List --doc-base before --tests-base.
75891
75892 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75893
75894         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75895
75896 2006-07-11  Bruno Haible  <bruno@clisp.org>
75897
75898         * README: Mention where to put documentation.
75899
75900 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75901
75902         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75903
75904 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75907         to stdint.m4.
75908
75909 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75910
75911         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75912         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75913         "no/such/file/stdint.h" when there is no such file, so that
75914         the resulting C code can be parsed by dodgy compilers.
75915         Problems reported by Bob Proulx.
75916
75917 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75918
75919         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75920         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75921         macros into the GNU _D_EXACT_NAMLEN.
75922         * lib/savedir.c:  Likewise.
75923         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75924
75925 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75926         and Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75929         * m4/savedir.m4:
75930         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75931         macros into the GNU _D_EXACT_NAMLEN.
75932
75933 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75936         around the absolute name, to work around a problem with the HP-UX
75937         11.23 native C compiler, reported by Bob Proulx.
75938
75939 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         * doc/maintain.texi, make-stds.texi: Sync from
75942         <http://savannah.gnu.org/projects/gnustandards>.
75943
75944 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75947
75948 2006-07-09  Jim Meyering  <jim@meyering.net>
75949
75950         * m4/glob.m4: Remove a doubled word in a comment.
75951
75952 2006-07-09  Jim Meyering  <jim@meyering.net>
75953
75954         * lib/argp-pv.c: Remove a doubled word in a comment.
75955         * lib/check-version.c (check_version): Likewise.
75956         * lib/javacomp.c (compile_java_class): Likewise.
75957
75958 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75961         for the benefit of people using Autoconf 2.60.  If you want to
75962         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75963         (or m4/onceonly.m4, if pre-2.57) manually.
75964
75965 2006-07-08  Jim Meyering  <jim@meyering.net>
75966
75967         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75968         comment.
75969         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75970         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75971         comment.
75972
75973 2006-07-08  Jim Meyering  <jim@meyering.net>
75974
75975         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75976
75977 2006-07-07  Simon Josefsson  <jas@extundo.com>
75978
75979         * tests/test-crc.c: Change expected crc value, the test vector
75980         were probably computed using the old broken crc.c?
75981
75982 2006-07-06  Simon Josefsson  <jas@extundo.com>
75983
75984         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75985         now the canonical place for the M4 file).
75986
75987         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75988         from the sys_socket dependency now.
75989
75990         * modules/inet_pton (Files): Ditto.
75991
75992         * modules/inet_ntop (Files): Ditto.
75993
75994 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75995
75996         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75997         not gl_PREREQ_GETUSERSHELL.
75998
75999 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76000
76001         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76002         with only one argument, for Autoconf 2.60.
76003         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76004         expand to nothing, so add a shell command to avoid syntax error.
76005         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76006
76007 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76008
76009         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76010
76011 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76014         no longer needed.  Check for isblank decl.
76015         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76016         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76017         of existence.
76018
76019 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * lib/getloadavg.c: Use __VMS, not VMS.
76022         * lib/getopt.c: Likewise.
76023         * lib/getpagesize.h: Likewise.
76024         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76025         and probably does not work.
76026
76027 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/.cppi-disable: Add wcwidth.
76030         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76031         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76032         (ISGRAPH): Remove.  All uses changed to isgraph.
76033         (FOLD) [!defined _LIBC]: Remove special case.
76034         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76035         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76036         HAVE_ISBLANK.
76037         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76038         case.
76039
76040 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76041
76042         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76043         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76044         brackets.  Other minor changes to suppress some compiler
76045         warnings.
76046
76047 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76048         and Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76051         of invoking obsolescent AC_HEADER_DIRENT macro.
76052         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76053         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76054         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76056         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76057         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76058         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76059         * m4/readdir.m4: Remove; no longer needed.
76060
76061 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76062         and Paul Eggert  <eggert@cs.ucla.edu>
76063
76064         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76065         Don't worry about this obsolete case any more.
76066         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76067         directories.
76068         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76069         worry about this obsolete case any more.
76070         * lib/fts.c: Likewise.
76071         * lib/getcwd.c: Likewise.
76072         * lib/glob.h: Likewise.
76073         * lib/savedir.c: Likewise.
76074
76075 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76078         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76079         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76080         needed.
76081         All uses removed.
76082         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76083         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76084         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76085         needed.
76086         * m4/getdate.m4 (gl_GETDATE): Likewise.
76087         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76088         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76089         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76090         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76091         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76092         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76093         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76094         needed.
76095
76096 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/memcasecmp.c: Include <limits.h>.
76099         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76100         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76101         Don't assume isdigit succeeds only on '0' through '9'.
76102
76103 2006-07-05  Eric Blake  <ebb9@byu.net>
76104
76105         * modules/getaddrinfo (Depends-on): Add snprintf.
76106
76107 2006-07-05  Eric Blake  <ebb9@byu.net>
76108
76109         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76110         to avoid 'header present but could not be compiled' on cygwin.
76111
76112 2006-07-05  Eric Blake  <ebb9@byu.net>
76113
76114         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76115         missing from netdb.h.
76116         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76117
76118 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76119
76120         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76121         no longer needed.
76122         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76123         * m4/getdate.m4 (gl_GETDATE): Likewise.
76124         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76125         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76126         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76127         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76128         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76129
76130 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76131
76132         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76133         All uses of is_space replaced by isspace.
76134         * lib/exit.h: Don't talk about STDC_HEADERS.
76135         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76136         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76137         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76138         replaced by isprint etc.
76139         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76140         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76141         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76142         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76143         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76144         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76145
76146 2006-07-05  Bruno Haible  <bruno@clisp.org>
76147
76148         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76149         the function exists, before testing against AIX.
76150         Reported by Martin Lambers <marlam@marlam.de>.
76151
76152 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76155         From Mark D. Baushke.
76156
76157 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76160         to the absolute name, not just one, to bypass Sun C 5.8's
76161         "warning: #include of /usr/include/... may be non-portable".
76162
76163 2006-07-04  Eric Blake  <ebb9@byu.net>
76164
76165         * modules/dirname-tests: New test module.
76166         * tests/test-dirname.c: New file, replacing dirname.c
76167         TEST_DIRNAME section that was recently deleted.
76168
76169 2006-07-04  Bruno Haible  <bruno@clisp.org>
76170
76171         Assume ANSI C header files and <ctype.h> functions.
76172         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76173         (mbsnwidth): Use isprint, iscntrl instead.
76174
76175 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         Merge from coreutils.
76178         * MODULES.html.sh: Add xstrtold.
76179         * modules/xstrtold: New file.
76180         * modules/cycle-check (Files): Add lib/same-inode.h.
76181         * modules/dirname (Files): Add m4/double-slash-root.m4.
76182         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76183         * modules/mkdir-p (Files): Add lib/same-inode.h.
76184         * modules/same (Files): Add lib/same-inode.h.
76185
76186 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76187
76188         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76189         This is to keep the terminology clean; POSIX talks about
76190         "absolute pathnames", not "full pathnames", but the GNU
76191         Coding Standards say to use "path" for something else;
76192         so use "absolute" to keep both sides happy.
76193         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76194         Set gl_absolute_header, not gl_full_header_path.
76195         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76196         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76197         All uses changed.
76198
76199         Merge from coreutils.
76200
76201         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76202
76203         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76204         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76205         want to require the building of c-strtod.o.
76206         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76207         needs -lm directly.
76208         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76209
76210         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76213         --as-needed option if available.  Problem reported by Albert Chin in
76214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76215         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76216         cc merely issues a bunch of annoying warnings for --as-needed
76217         (this problem was reported by Bob Proulx).  Also, try linking with
76218         -lm to detect a bug in binutils 2.16 (this problem was reported
76219         by Ralf Wildenhues).
76220
76221         2006-06-18  Jim Meyering  <jim@meyering.net>
76222
76223         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76224         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76225         macro.
76226         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76227         also check for glibc-2.4's abort-inducing bug.
76228
76229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76230         Low-probability clean-up should be to use rmdir to get rid of
76231         the just-created directory, not unlink.
76232
76233         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76234         configure fail, and request a bug report to inform us about it.
76235         Add a comment that, barring reports to the contrary, in 2007 we'll
76236         assume ftruncate is universally available.
76237
76238         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76239
76240         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76241
76242         2006-03-12  Jim Meyering  <jim@meyering.net>
76243
76244         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76245         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76246         * m4/same.m4 (gl_SAME): Likewise.
76247         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76248
76249         2006-03-11  Eric Blake  <ebb9@byu.net>
76250
76251         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76252         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76253         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76254         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76255
76256 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76259         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76260         reported by Mark D. Baushke, one in
76261         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76262
76263         Merge from coreutils.
76264
76265         * lib/.cppi-disable: Add stdint_.h.
76266         * lib/.cvsignore: Add stdint.h.
76267
76268         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76271         both double and long double versions.
76272         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76273         * lib/xstrtold.c: New file.
76274         * lib/xstrtod.h (xstrtold): New decl.
76275
76276         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * lib/filemode.c (setst): Remove.
76279         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76280         (arguably) clearer, and the generated code is a bit smaller on my
76281         Debian GNU/Linux stable x86 host.
76282
76283         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76286         Assume that filemode.h includes sys/types.h and sys/stat.h.
76287         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76288         (ftypelet): Reorder to put common cases first, for efficiency.
76289         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76290         to do 'M'.
76291         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76292         of 10, for compatibility with FreeBSD.  All callers changed.
76293         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76294         types that can't be deduced solely from st_mode.  First arg is now a
76295         const pointer.
76296         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76297         (strmode): Renamed from mode_string.
76298         (filemodestring): New decl.
76299         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76300         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76301         needed.
76302         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76303
76304         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76305
76306         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76307         fsusage.h now does that.  Include fsusage.h first, to test interface.
76308         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76309         at most one method (the old code could have generated decls that
76310         didn't conform to C89, not that this was ever exercised).
76311         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76312
76313         2006-03-19  Jim Meyering  <jim@meyering.net>
76314
76315         Work even in a chroot where d_ino values for entries in "/"
76316         don't match the stat.st_ino values for the same names.
76317         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76318         number, iterate through all entries again, using lstat instead.
76319         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76320         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76321
76322         * lib/getcwd.c (__getcwd): Clarify a comment.
76323         Use memcpy in place of a call to strcpy.
76324
76325         2006-03-12  Jim Meyering  <jim@meyering.net>
76326
76327         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76328         matches that of the current directory (which we're about to chdir ".."
76329         out of), then save the dev-ino of the parent, instead.
76330
76331         * lib/same-inode.h (SAME_INODE): New file/macro.
76332         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76333         Include "same-inode.h", instead.
76334         * lib/same.c: Likewise.
76335         * lib/cycle-check.h: Include "same-inode.h".
76336         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76337         * lib/cycle-check.c (SAME_INODE): Remove definition.
76338         * lib/root-dev-ino.h: Include "same-inode.h".
76339
76340         2006-03-11  Eric Blake  <ebb9@byu.net>
76341
76342         * lib/same.c (same_name): s/base_name/last_component/
76343         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76344         * lib/filenamecat.c (file_name_concat): Likewise.
76345
76346         2006-03-11  Eric Blake  <ebb9@byu.net>,
76347                     Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76350         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76351         drive prefix.
76352         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76353         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76354         (last_component): New method.
76355         * lib/dirname.c (dir_len): Determine when drive letters need a
76356         subsequent slash.  Preserve // when it is special.
76357         (dir_name): Don't append dot when drive letter is absolute.
76358         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76359         * lib/basename.c (base_name): New semantics - malloc the result.
76360         Preserve // when it is special.  Preserve relative files that look
76361         like drive letters.
76362         (base_len): Preserve // when it is special.
76363         (last_component): New method, similar to old base_name semantics.
76364         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76365         base_name.  Strip redundant slashes from ///.
76366
76367 2006-07-03  Jim Meyering  <jim@meyering.net>
76368
76369         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76370         macro is used before the first cycle_check call.
76371
76372 2006-07-03  Eric Blake  <ebb9@byu.net>
76373
76374         * modules/dirname (Depends-on): Add xstrndup.
76375
76376 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76377
76378         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76379         test cases, so that config.log is a bit easier to follow.
76380
76381 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76384         both are 64 bits, since this seems to be the tradition, and this
76385         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76386         we ever run into a host that prefers long long to long in this
76387         case, we'll need another configure-time test.  Problem reported by
76388         Jim Meyering.
76389
76390 2006-07-02  Eric Blake  <ebb9@byu.net>
76391
76392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76393
76394 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * modules/inttypes (Depends-on): No longer depends on stdint.
76397         * modules/stdint (Description): Say more about assumptions.
76398         Say that the fast types might differ.  Say macros are used.
76399         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76400         (Makefile.am): Revise list of substituted symbols to match
76401         new stdint.m4.
76402         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76403         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76404         * tests/test-stdint.c (verify_same_types)
76405         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76406         the code conforms to C99/C89.
76407         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76408         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76409
76410 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76411
76412         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76413         but fix a bug, by requiring at least 64 bits.
76414         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76415         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76416         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76417         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76418
76419         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76420         changes.  Make 2.59 a prerequisite.  Check and substitute for
76421         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76422         inttypes.h.  Do not use special include files; just use the
76423         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76424         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76425         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76426         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76427         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76428         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76429         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76430         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76431         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76432         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76433         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76434         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76435         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76436         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76437         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76438         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76439         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76440         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76441         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76442         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76443         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76444         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76445         not check for things that C99 does not require, e.g., int8_t.  If
76446         a test isn't needed unless <stdint.h> isn't working, and is
76447         unlikely to be needed for any other reason, then don't do it
76448         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76449         size_t, since we assume C89 freestanding at least.  Do not check
76450         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76451         the right thing even if the types are not defined.  Instead use:
76452         (gl_STDINT_TYPE_PROPERTIES): New macro.
76453         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76454         testing whether <sys/types.h> clashes, as Autoconf does this for
76455         us now.  All uses removed.
76456         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76457         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76458         (gl_CHECK_TYPE_SAME):
76459         Remove; no longer needed.
76460         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76461         exists, since we'll return 0 anyway in that case.
76462         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76463
76464 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76465
76466         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76467         possible collision with system files.
76468         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76469         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76470         WCHAR_MIN and WCHAR_MAX in this case.
76471         (<stddef.h>): Do not include; no longer needed.
76472         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76473         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76474         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76475         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76476         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76477         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76478         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76479         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76480         !defined(__c99))]: Include in this case too, since it's harmless
76481         now.
76482         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76483         dangerous to do so.
76484         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76485         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76486         (_STDINT_MIN, _STDINT_MAX): New macros.
76487         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76488         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76489         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76490         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76491         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76492         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76493         macros, not typedefs; this simplifies things quite a bit.
76494         Use long int for all types narrower than int64_t.
76495         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76496         Define in terms of long long int or int64_t or long int,
76497         not int64_t or int32_t.  This saves some compile-time testing.
76498         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76499         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76500         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76501         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76502         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76503         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76504         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76505         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76506         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76507         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76508         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76509         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76510         undef any previous version and define our own version, for
76511         simplicity and consistency with the new macros for types.
76512         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76513         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76514         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76515         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76516         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76517         @WINT_T_SUFFIX@ to keep things simple here.
76518         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76519         Simplify by assuming typical 8/16/32/64 host, since we're
76520         already doing that elsewhere anyway.
76521         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76522         and assume long long int is 64 bits if available.  This
76523         speeds up 'configure'.
76524
76525 2006-07-01  Eric Blake  <ebb9@byu.net>
76526
76527         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76528         Reported by Andreas Buening.
76529
76530 2006-07-01  Eric Blake  <ebb9@byu.net>
76531
76532         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76533
76534 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76535
76536         * lib/getaddrinfo.c: fixed typo
76537
76538 2006-06-29  Jim Meyering  <jim@meyering.net>
76539
76540         * modules/strftime (Maintainer): Add my name, since with the
76541         FPRINTFTIME changes strftime.c has forked from glibc.
76542
76543 2006-06-29  Eric Blake  <ebb9@byu.net>
76544
76545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76546
76547 2006-06-29  Eric Blake  <ebb9@byu.net>
76548
76549         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76550
76551 2006-06-29  Eric Blake  <ebb9@byu.net>
76552
76553         * lib/stat_.h: New file.
76554
76555 2006-06-29  Eric Blake  <ebb9@byu.net>
76556
76557         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76558         unused static function.
76559
76560 2006-06-29  Eric Blake  <ebb9@byu.net>
76561
76562         * doc/functions.texi (Function Portability): Document missing lstat
76563         on mingw.
76564
76565 2006-06-29  Eric Blake  <ebb9@byu.net>
76566
76567         * MODULES.html.sh: Add sys_stat.
76568         * modules/sys_stat: New module.
76569         * modules/mkstemp (Depends-on): Add sys_stat.
76570
76571 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76572
76573         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76574
76575 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76576
76577         * m4/c-bs-a.m4: Removed.
76578
76579 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76580
76581         * lib/strftime.c: Assume strftime() exists.
76582
76583 2006-06-29  Derek Price  <derek@ximbiot.com>
76584
76585         * modules/c-bs-a: Removed - \a is C89.
76586         * MODULES.html.sh: Remove c-bs-a.
76587
76588 2006-06-29  Bruno Haible  <bruno@clisp.org>
76589
76590         * modules/wcwidth (License): Change to LGPL.
76591
76592 2006-06-28  Simon Josefsson  <jas@extundo.com>
76593
76594         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76595         on _WIN32.
76596
76597         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76598         getnameinfo.
76599
76600 2006-06-28  Simon Josefsson  <jas@extundo.com>
76601
76602         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76603
76604 2006-06-28  Simon Josefsson  <jas@extundo.com>
76605
76606         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76607         functions there.  It will succeed on Windows XP, but on Windows
76608         2000 and (presumably) earlier, it will fail, and use the internal
76609         re-implementation.
76610         (use_win32_p): New function.
76611         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76612         Support AI_NUMERICSERV to disable getservbyname.
76613         (getnameinfo): New function, only supports
76614         NI_NUMERICHOST|NI_NUMERICSERV for now.
76615
76616         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76617         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76618         getnameinfo.
76619
76620 2006-06-28  Eric Blake  <ebb9@byu.net>
76621
76622         * modules/wcwidth: New file.
76623         * modules/mbchar (Depends-on): Add wcwidth.
76624         * modules/mbswidth (Depends-on): Add wcwidth.
76625         * MODULES.html.sh: Add wcwidth.
76626
76627 2006-06-28  Eric Blake  <ebb9@byu.net>
76628
76629         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76631
76632 2006-06-28  Eric Blake  <ebb9@byu.net>
76633
76634         * lib/xvasprintf.h: Fix comments.
76635
76636 2006-06-28  Eric Blake  <ebb9@byu.net>
76637
76638         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76639         * lib/mbswidth.c (wcwidth): Move from here...
76640         * lib/wcwidth.h: ...to this new file.
76641
76642 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76643
76644         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76645
76646         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76647         it's obsolete.
76648         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76649
76650 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76651
76652         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76653         Autoconf 2.60 says this stuff was obsolete.
76654
76655 2006-06-28  Bruno Haible  <bruno@clisp.org>
76656
76657         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76658
76659 2006-06-28  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76662         gt_TYPE_WCHAR_T.
76663
76664 2006-06-28  Bruno Haible  <bruno@clisp.org>
76665
76666         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76667         declaration for wcwidth.
76668         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76669
76670 2006-06-28  Bruno Haible  <bruno@clisp.org>
76671
76672         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76673         (mkdir): Define using _mkdir.
76674
76675 2006-06-28  Bruno Haible  <bruno@clisp.org>
76676
76677         * lib/getaddrinfo.h: Fix POSIX URL.
76678         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76679         _WIN32.
76680         (use_win32_p): Make static.
76681         (getaddrinfo): Reject service name if it is empty or does not consist
76682         solely of decimal digits, or if its value is > 65535.
76683         (getnameinfo): Remove useless casts.
76684
76685 2006-06-27  Simon Josefsson  <jas@extundo.com>
76686
76687         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76688         Eggert and Martin Lambers.
76689
76690 2006-06-27  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76693         Eggert and Martin Lambers.
76694
76695 2006-06-27  Bruno Haible  <bruno@clisp.org>
76696
76697         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76698         result to 0, not to empty.
76699         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76700
76701 2006-06-27  Bruno Haible  <bruno@clisp.org>
76702
76703         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76704
76705 2006-06-26  Simon Josefsson  <jas@extundo.com>
76706
76707         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76708         present.
76709
76710 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76713         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76714         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76715
76716 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76717
76718         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76719
76720 2006-06-26  Bruno Haible  <bruno@clisp.org>
76721
76722         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76723
76724 2006-06-26  Bruno Haible  <bruno@clisp.org>
76725
76726         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76727
76728 2006-06-26  Bruno Haible  <bruno@clisp.org>
76729
76730         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76731         SGI C compiler in pre-C99 mode.
76732         Suggested by Mark D. Baushke and Larry Jones.
76733
76734 2006-06-26  Bruno Haible  <bruno@clisp.org>
76735
76736         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76737         WCHAR_MAX.
76738         Reported by Mark D. Baushke and Larry Jones.
76739
76740 2006-06-26  Bruno Haible  <bruno@clisp.org>
76741
76742         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76743         in pre-C99 mode.
76744         Suggested by Mark D. Baushke and Larry Jones.
76745
76746 2006-06-23  Simon Josefsson  <jas@extundo.com>
76747             Bruno Haible  <bruno@clisp.org>
76748
76749         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76750         Emit mostlyclean-local rule.
76751         (func_emit_tests_Makefile_am): Likewise.
76752         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76753
76754 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76755
76756         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76757
76758 2006-06-23  Bruno Haible  <bruno@clisp.org>
76759
76760         * tests/test-stdint.c: Update to match ISO C 99 Technical
76761         Corrigendum 1.
76762
76763 2006-06-23  Bruno Haible  <bruno@clisp.org>
76764
76765         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76766
76767 2006-06-23  Bruno Haible  <bruno@clisp.org>
76768
76769         * lib/stdint_.h: Treat IRIX like OpenBSD.
76770
76771 2006-06-23  Bruno Haible  <bruno@clisp.org>
76772
76773         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76774         ISO C 99 Technical Corrigendum 1.
76775
76776 2006-06-22  Simon Josefsson  <jas@extundo.com>
76777
76778         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76779         MinGW.
76780
76781 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76784         needed.  Some compiler complained about some of them.  Problem reported
76785         by Larry Jones in
76786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76787
76788 2006-06-21  Simon Josefsson  <jas@extundo.com>
76789
76790         * tests/test-getaddrinfo.c: New file.
76791
76792         * modules/getaddrinfo-tests: New file.
76793
76794         * MODULES.html.sh: Add inet_pton.
76795
76796         * modules/inet_pton: New file.
76797
76798 2006-06-21  Simon Josefsson  <jas@extundo.com>
76799
76800         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76801         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76802         of using the (limited) gnulib implementation on Windows XP.
76803
76804         * m4/inet_pton.m4: New file.
76805
76806 2006-06-21  Simon Josefsson  <jas@extundo.com>
76807
76808         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76809         variable.
76810
76811         * lib/socket_.h: Don't define WINVER.
76812
76813         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76814         slightly modified to work in gnulib.
76815
76816 2006-06-21  Simon Josefsson  <jas@extundo.com>
76817
76818         * doc/gnulib.texi (Windows sockets): Add.
76819
76820 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * lib/read-file.c (fread_file): Start with buffer allocation of
76823         0 bytes rather than 1 byte; this simplifies the code.
76824         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76825         code to free buffer and save/restore errno.
76826         (internal_read_file): Remove unused local.
76827
76828 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76829
76830         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76831         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76832         Problem reported by Denis Excoffier in
76833         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76834
76835 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76836
76837         * modules/sys_socket, modules/socklen: Include sys/types since
76838         FreeBSD 4.x's sys/socket.h needs it.
76839
76840 2006-06-19  Simon Josefsson  <jas@extundo.com>
76841
76842         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76843
76844 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76847
76848 2006-06-19  Bruno Haible  <bruno@clisp.org>
76849
76850         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76851         and FULL_PATH_INTTYPES_H in angle brackets.
76852         Reported by Mark D. Baushke <mdb@gnu.org>.
76853
76854 2006-06-17  Eric Blake  <ebb9@byu.net>
76855
76856         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76857         errno.
76858
76859 2006-06-17  Bruno Haible  <bruno@clisp.org>
76860
76861         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76862         <sys/inttypes.h>.
76863
76864 2006-06-17  Bruno Haible  <bruno@clisp.org>
76865
76866         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76867         whether errno is declared. Assume <errno.h> declares errno.
76868
76869 2006-06-17  Bruno Haible  <bruno@clisp.org>
76870
76871         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76872
76873 2006-06-17  Bruno Haible  <bruno@clisp.org>
76874
76875         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76876         problem on Solaris 2.5.1.
76877
76878 2006-06-16  Eric Blake  <ebb9@byu.net>
76879
76880         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76881         * lib/unicodeio.c [!defined errno]: Likewise.
76882         * lib/strtol.c [!defined errno]: Likewise.
76883         * lib/strtod.c [!defined errno]: Likewise.
76884
76885 2006-06-15  Eric Blake  <ebb9@byu.net>
76886
76887         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76888
76889 2006-06-15  Eric Blake  <ebb9@byu.net>
76890
76891         * config/srclist.txt (ssize_t.m4): Lose sync.
76892
76893 2006-06-15  Bruno Haible  <bruno@clisp.org>
76894
76895         * modules/stdint (Files): Include m4/full-header-path.m4,
76896         m4/size_max.m4, m4/wchar_t.m4.
76897         (Makefile.am): Many more substitutions.
76898         * modules/stdint-tests: New file.
76899         * tests/test-stdint.c: New file.
76900
76901 2006-06-15  Bruno Haible  <bruno@clisp.org>
76902
76903         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76904         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76905         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76906         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76907         gl_CHECK_TYPE_SAME): New macros.
76908
76909 2006-06-15  Bruno Haible  <bruno@clisp.org>
76910
76911         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76912
76913 2006-06-15  Bruno Haible  <bruno@clisp.org>
76914
76915         * lib/stdint_.h: Rewritten to be fully auto-configured.
76916         Fixes bug on HP-UX/IA64.
76917
76918 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * lib/getdate.y (__attribute__): Don't define if already defined.
76921         Problem reported by Larry Jones.
76922         * lib/utimens.c (__attribute__): Likewise.
76923
76924 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76925
76926         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76927         reported by Andreas Schwab.
76928
76929 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76930             Bruno Haible  <bruno@clisp.org>
76931
76932         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76933         check for the declaration of strnlen and a run test that exposes the
76934         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76935         rpl_strndup.
76936
76937 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76938             Bruno Haible  <bruno@clisp.org>
76939
76940         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76941
76942 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76943
76944         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76945         compile test, for Tru64 4.0D.
76946
76947 2006-05-28  Karl Berry  <karl@gnu.org>
76948
76949         * config/srclist.txt (printf-args.c): lose sync.
76950
76951 2006-05-26  Martin Lambers  <marlam@marlam.de>
76952
76953         * lib/getpass.c: Updates the test for the native W32 API, and adds
76954         missing includes, thus fixing compilation warnings.
76955
76956 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76957
76958         * lib/exclude.c (exclude_fnmatch): New function.
76959         (excluded_file_name): Call exclude_fnmatch.
76960         * lib/exclude.h (excluded_file_name): New prototype
76961
76962 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * lib/tempname.c (small_open, large_open): New macros.
76965         (__open, __open64) [!_LIBC]: Remove.
76966         (__gen_tempname): Use small_open and large_open instead of __open
76967         and __open64.  This fixes a portability bug on HP-UX 11.11i
76968         reported by Simon Wing-Tang in
76969         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76970
76971 2006-05-24  Bruno Haible  <bruno@clisp.org>
76972
76973         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76974         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76975         Reported by Thorsten Maerz <torte@netztorte.de> via
76976         Aaron Stone <aaron@serendipity.cx>.
76977
76978 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76981         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76982         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76983         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76984         not really conditional on the cache.
76985         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76986
76987 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76990         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76991         (my_usleep): Don't mishandle maximum value.
76992
76993 2006-05-19  Jim Meyering  <jim@meyering.net>
76994
76995         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76996
76997 2006-05-17  Bruno Haible  <bruno@clisp.org>
76998
76999         Cygwin portability.
77000         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77001
77002 2006-05-17  Bruno Haible  <bruno@clisp.org>
77003
77004         * lib/stdint_.h: Fix recognition of Cygwin.
77005
77006 2006-05-15  Bruno Haible  <bruno@clisp.org>
77007
77008         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77009         on libtool patch by Ralf Wildenhues.
77010
77011 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77012
77013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77014         test for C99 conformance; (bool) 0.5 is an integer constant
77015         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77016         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77017
77018 2006-05-11  Simon Josefsson  <jas@extundo.com>
77019
77020         * m4/xvasprintf.m4: Fix obvious typo.
77021
77022 2006-05-11  Jim Meyering  <jim@meyering.net>
77023
77024         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77025         James Lemley.
77026
77027 2006-05-10  Simon Josefsson  <jas@extundo.com>
77028
77029         * lib/md4.c: Typo fix, update copyright years.
77030         (K1, K2): Don't use L because it turn computations into 64-bit on
77031         64-bit platforms.
77032
77033 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77036         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77037         unwanted sign propagation, e.g., on hosts with 64-bit int.
77038         There still are some problems with reeelly weird theoretical hosts
77039         (e.g., 33-bit int) but it's not worth worrying about now.
77040         * lib/sha1.c (rol): Likewise.
77041         (K1, K2, K3, K4): Remove unnecessary L suffix.
77042
77043 2006-05-10  Bruno Haible  <bruno@clisp.org>
77044
77045         * lib/des.c: Cast to avoid warnings.
77046
77047 2006-05-09  Bruno Haible  <bruno@clisp.org>
77048
77049         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77050         (Depends-on): Depend also on xsize, stdarg.
77051         (configure.ac): Add gl_XVASPRINTF.
77052
77053 2006-05-09  Bruno Haible  <bruno@clisp.org>
77054
77055         * m4/xvasprintf.m4: New file.
77056
77057 2006-05-09  Bruno Haible  <bruno@clisp.org>
77058
77059         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77060         (EOVERFLOW): Define fallback value.
77061         (xstrcat): New function.
77062         (xvasprintf): Recognize the special case of a string concatenation.
77063
77064 2006-05-08  Eric Blake  <ebb9@byu.net>
77065
77066         * gnulib-tool (func_version): Base copyright year on CVS date.
77067         (func_emit_copyright_notice): New function.
77068         (func_emit_lib_Makefile_am): Use it.
77069         (func_emit_tests_Makefile_am): Likewise.
77070         (func_import): Likewise.
77071
77072 2006-05-08  Bruno Haible  <bruno@clisp.org>
77073
77074         * modules/stdarg: New file.
77075         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77076
77077 2006-05-08  Bruno Haible  <bruno@clisp.org>
77078
77079         * m4/stdarg.m4: New file, from GNU gettext.
77080
77081 2006-05-08  Bruno Haible  <bruno@clisp.org>
77082
77083         * config/srclist.txt (build-aux/config.rpath): different from latest
77084         release.
77085
77086 2006-05-08  Bruno Haible  <bruno@clisp.org>
77087
77088         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77089
77090 2006-05-05  Jim Meyering  <jim@meyering.net>
77091
77092         * m4/warning.m4: New file, derived from bison's file by the same name.
77093
77094 2006-05-03  Bruno Haible  <bruno@clisp.org>
77095
77096         * lib/stdint_.h: Shorter URL.
77097         * lib/inttypes.h: Likewise.
77098
77099 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77100
77101         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77102
77103 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * lib/verify.h: Document the internals better.  Most of this change
77106         was written by Bruno Haible.
77107
77108 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * doc/verify.texi: New file, partly based on a proposal by
77111         Bruno Haible.
77112
77113 2006-05-02  Bruno Haible  <bruno@clisp.org>
77114
77115         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77116         test from here...
77117         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77118
77119 2006-04-29  Bruno Haible  <bruno@clisp.org>
77120
77121         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77122         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77123
77124 2006-04-29  Bruno Haible  <bruno@clisp.org>
77125
77126         * gnulib-tool: Make --update option actually work.
77127
77128 2006-04-29  Bruno Haible  <bruno@clisp.org>
77129
77130         * doc/gcd.texi: New file.
77131         * doc/gnulib.texi: Include it.
77132
77133 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * lib/getdate.y (get_date): When adding relative date, start with the
77136         initial time, not with the result of the first mktime call.
77137
77138 2006-04-25  Bruno Haible  <bruno@clisp.org>
77139
77140         * gnulib-tool (func_import): Output the include directives in three
77141         blocks, sorted separately.
77142         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77143
77144 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77145
77146         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77147         to define main with arguments, for C++.  Reported by Eric Blake.
77148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77149         Prefer 'int main ()' to 'int main (void)', for C++.
77150         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77152         for 'main', for C99 and C++.
77153
77154 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77157         Don't assume that exit status -1 is valid.
77158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77159         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77160         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77161         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77162         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77163         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77164         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77165         functions can be used without declaring them, or that you can
77166         exit with status -1.
77167         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77168
77169 2006-04-24  Karl Berry  <karl@gnu.org>
77170
77171         * config/srclist.txt (longdouble.m4): sync lost.
77172
77173 2006-04-24  Eric Blake  <ebb9@byu.net>
77174
77175         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77176
77177 2006-04-24  Bruno Haible  <bruno@clisp.org>
77178
77179         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77180         poll() implementation in AIX.
77181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77182
77183 2006-04-24  Bruno Haible  <bruno@clisp.org>
77184
77185         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77186         assigned exactly once.
77187
77188 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77189             Bruno Haible  <bruno@clisp.org>
77190
77191         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77192         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77193         for AM_CPPFLAGS.
77194
77195 2006-04-23  Bruno Haible  <bruno@clisp.org>
77196
77197         * modules/copy-file: Depend on unistd.
77198         * modules/execute: Likewise.
77199         * modules/fatal-signal: Likewise.
77200         * modules/findprog: Likewise.
77201         * modules/mkdtemp : Likewise.
77202         * modules/pipe: Likewise.
77203         * modules/wait-process: Likewise.
77204
77205 2006-04-23  Bruno Haible  <bruno@clisp.org>
77206
77207         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77208         condition was already detected.
77209         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77210
77211 2006-04-23  Bruno Haible  <bruno@clisp.org>
77212
77213         * lib/copy-file.c: Include <unistd.h> unconditionally.
77214         * lib/execute.c: Likewise.
77215         * lib/fatal-signal.c: Likewise.
77216         * lib/findprog.c: Likewise.
77217         * lib/mkdtemp.c: Likewise.
77218         * lib/pipe.h: Likewise.
77219         * lib/pipe.c: Likewise.
77220         * lib/wait-process.h: Likewise.
77221
77222 2006-04-23  Bruno Haible  <bruno@clisp.org>
77223
77224         * gnulib-tool (func_usage): Fix --import description. Document
77225         --update.
77226         (func_import): Create temporary file in a temporary directory, if
77227         --dry-run is specified. Silence errors from 'grep' when there are no
77228         m4 files in $m4dir.
77229         (func_create_testdir): Silence errors from 'grep' when there are no
77230         m4 files in $m4dir.
77231         Reported by Karl Berry <karl@freefriends.org>.
77232
77233 2006-04-20  Bruno Haible  <bruno@clisp.org>
77234
77235         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77236         one argument, so that the code will be portable to Autoconf 2.60.
77237         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77238         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77239         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77240
77241 2006-04-19  Derek Price  <derek@ximbiot.com>
77242             Eric Blake  <ebb9@byu.net>
77243
77244         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77245         rather than "/full/path.h".  Update comment to match.  Shorten &
77246         generalize m4_translit call via AS_TR_CPP.
77247
77248 2006-04-19  Derek Price  <derek@ximbiot.com>
77249             Eric Blake  <ebb9@byu.net>
77250
77251         * lib/inttypes.h: Correct grammar in comment.
77252
77253 2006-04-18  Derek Price  <derek@ximbiot.com>
77254             Paul Eggert  <eggert@cs.ucla.edu>
77255
77256         * modules/inttypes: New file.
77257         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77258
77259 2006-04-18  Derek Price  <derek@ximbiot.com>
77260             Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77263         New files.
77264
77265 2006-04-18  Derek Price  <derek@ximbiot.com>
77266             Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * lib/inttypes.h: New file.
77269         * lib/strtoimax.c: Assume <inttypes.h>.
77270
77271 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77274         isn't mounted.  Problem reported by Kir Kolyshkin.
77275
77276 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77279         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77280         Derek R. Price.
77281         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77282         implementation.
77283
77284 2006-04-12  Eric Blake  <ebb9@byu.net>
77285
77286         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77287         is now done automatically by the corresponding Autoconf macro.
77288
77289 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77292         time_r.h.
77293
77294 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77295
77296         Merge regex changes from libc, removing some of our
77297         POSIX-conformance changes that were rejected and redoing them in a
77298         less-intrusive way.
77299
77300         * lib/regcomp.c (re_compile_internal, init_dfa):
77301         Length arg is now size_t, not Idx.  All uses changed.
77302         (peek_token): Forward decl now says internal_function.
77303         (__re_error_msgid, __re_error_msgid_idx):
77304         Now static rather than extern with attribute_hidden.
77305         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77306         For some reason libc prefers K&R style defns for external functions.
77307         (regerror) [!defined _LIBC]: Likewise.
77308         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77309         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77310         (build_range_exp, build_collating_symbol):
77311         Use K&R-style defn.
77312         (re_compile_fastmap): Use '\0' to memset, not 0.
77313         (utf8_sb_map): Make the calculations more obvious.
77314         (init_dfa, parse_bracket_exp, build_charclass_op):
77315         Call calloc and cast result, as glibc does.
77316         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77317         (build_range_exp, build_collating_symbol):
77318         Now internal functions.
77319
77320         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77321
77322         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77323         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77324         Don't depend on VMS; depend on __VMS instead, for POSIX
77325         namespace cleanness.
77326         (regoff_t): Define to ssize_t, not long int.
77327
77328         Remove the REG_ macros named below.  Instead, make the old names
77329         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77330         __USE_GNU_REGEX.
77331         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77332         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77333         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77334         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77335         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77336         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77337         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77338         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77339         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77340         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77341         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77342         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77343         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77344         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77345         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77346         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77347         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77348         (REG_NREGS):
77349         Remove.  All uses replaced by the old RE_* names.
77350         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77351         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77352         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77353         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77354         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77355         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77356         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77357         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77358         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77359         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77360         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77361         Don't bother having these macros be independent of each others'
77362         values, since they no longer exist in the POSIX name space.
77363
77364         Rename the following member names back to their old names,
77365         unless !__USE_GNU_REGEX.  All uses changed back.
77366         (buffer): Renamed from re_buffer.
77367         (allocated): Renamed from re_allocated.
77368         (used): Renamed from re_used.
77369         (syntax): Renamed from re_syntax.
77370         (fastmap): Renamed from re_fastmap.
77371         (translate): Renamed from re_translate.
77372         (can_be_null): Renamed from re_can_be_null.
77373         (regs_allocated): Renamed from re_regs_allocated.
77374         (fastmap_accurate): Renamed from re_fastmap_accurate.
77375         (no_sub): Renamed from re_no_sub.
77376         (not_bol): Renamed from re_not_bol.
77377         (not_eol): Renamed from re_not_eol.
77378         (newline_anchor): Renamed from re_newline_anchor.
77379         (num_regs): Renamed from rm_num_regs.
77380         (start): Renamed from rm_start.
77381         (end): Renamed from rm_end.
77382
77383         (free_state): Move up a bit.
77384
77385         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77386         #define to be empty.
77387         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77388         when that is what is intended.
77389         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77390         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77391         (MAX): New macro.
77392         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77393         All uses changed back to re_malloc, etc.  It's now the caller's
77394         responsibility to check for overflow; all callers changed.
77395         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77396         (re_x2nrealloc): Remove.
77397         (free_state): Remove decl.
77398
77399         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77400         (re_set_registers, re_exec):
77401         Use K&R-style defn.
77402
77403         2006-01-31  Roland McGrath  <roland@redhat.com>
77404
77405         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77406         Reported by Mike Frysinger <vapier@gentoo.org>.
77407
77408         2006-01-15  Andreas Jaeger  <aj@suse.de>
77409
77410         [BZ #1950]
77411         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77412         build_wcs_upper_buffer change.
77413         (build_wcs_upper_buffer): Change return type.
77414
77415         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77416
77417         * lib/regex_internal.h: Include <stdint.h> if available.
77418
77419         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77420
77421         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77422
77423         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77424
77425         * lib/regcomp.c: Adjust for changed secondary hash function.
77426
77427         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77428
77429         * lib/regex.h: Pretty printing.
77430         Clean up namespace a bit.
77431
77432         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77433
77434         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77435         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77436
77437         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77438                     Ulrich Drepper  <drepper@redhat.com>
77439
77440         [BZ #1302]
77441         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77442         changed.
77443         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77444
77445         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77446
77447         [BZ #281]
77448         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77449         * lib/regcomp.c: Remove unnecessary uses of
77450         unsigned RE_TRANSLATE_TYPE.
77451         * lib/regex_internal.h: Likewise.
77452         * lib/regex_internal.c: Likewise.
77453         * lib/regexec.c: Likewise.
77454         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77455
77456         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77457
77458         * lib/regexec.c (find_recover_state): Remove unnecessary
77459         initialization.
77460         (transit_state_bkref): Make DFA a const pointer.
77461         (get_subexp): Likewise.
77462         (check_arrival): Likewise.
77463         (update_cur_sifted_state): Likewise.
77464         (re_search_internal): Likewise.
77465         (prune_impossible_nodes): Likewise.
77466         (acquire_init_state_context): Likewise.
77467         (proceed_next_node): Likewise.
77468         (set_regs): Likewise.
77469         (free_fail_stack_return): Likewise.
77470         (check_arrival_expand_ecl): Mark DFA parameter as const.
77471         (check_arrival_expand_ecl_sub): Likewise.
77472         (check_subexp_limits): Likewise.
77473         (sub_epsilon_src_nodes):  Likewise.
77474         (add_epsilon_src_nodes):  Likewise.
77475         (merge_state_array): Likewise.
77476         (update_regs): Likewise.
77477         (build_trtable): Likewise.
77478         (sift_states_backward): Mark MCTX parameter as const.
77479         (build_sifted_states): Likewise.
77480         (update_cur_sifted_state): Likewise.
77481         (sift_states_mkref): Likewise.
77482         (check_arrival_expand_ecl): Mark eclosure as const.
77483         (check_dst_limits_calc_pos_1): Likewise.
77484         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77485         pointer.
77486
77487         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77488
77489         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77490         (transit_state_sb): Likewise.
77491         (transit_state_mb): Likewise.
77492         (sift_states_iter_mb): Likewise.
77493         (check_arrival_add_next_nodes): Likewise.
77494         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77495         [_LIBC] (re_search_2_stub): Use mempcpy.
77496
77497         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77498         mbrtowc for very simple UTF-8 case.
77499
77500         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77501         a pointer-to-const.
77502         (re_acquire_state_context): Likewise.
77503         * lib/regex_internal.h: Adjust prototypes.
77504
77505         * lib/regex.c: Prevent using C++ compilers.
77506
77507         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77508         (re_acquire_state_context): Likewise.
77509
77510 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * modules/regex (Depends-on): Add ssize_t.
77513
77514 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77517         translation table.
77518
77519 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77522
77523 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77524             Bruno Haible  <bruno@clisp.org>
77525
77526         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77527         <sys/types.h> and <inttypes.h>.
77528
77529 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77530
77531         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77532         `__error_t_defined', so argp.h will not typedef the former.
77533
77534 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77537         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77538         glibc names.  Even if glibc is changed to conform to POSIX, the
77539         traditional names will be available anyway, since regex depends on
77540         the extensions module.  Also, fix a longstanding typo in the
77541         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77542         reported by Emanuele Giaquinta.  Also, change sense of cached
77543         variable, so that the message makes sense.
77544
77545 2006-03-24  Simon Josefsson  <jas@extundo.com>
77546
77547         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77548         including some doc fixes.
77549         (base64_encode_alloc): Fix +1 bug on allocation failures.
77550
77551 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77552
77553         * lib/base64.c (base64_encode): Do not read past end of array with
77554         unsanitized input on systems with CHAR_BIT > 8.
77555
77556 2006-03-24  Eric Blake  <ebb9@byu.net>
77557
77558         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77559
77560 2006-03-22  Karl Berry  <karl@gnu.org>
77561
77562         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77563         * config/srclistvars.sh (COREUTILS): new var.
77564
77565 2006-03-17  Jim Meyering  <jim@meyering.net>
77566
77567         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77568         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77569
77570 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77571
77572         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77573         no longer needs it.  Instead, check that regoff_t is as least
77574         as wide as ptrdiff_t.
77575
77576         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77577         so that our regex.h stays compatible with the installed regex.
77578         This is helpful for installers who configure --without-included-regex.
77579         Problem reported by Emanuele Giaquinta.
77580
77581 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77582
77583         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77584         Typedef to long int, not to off_, as POSIX will likely change
77585         in that direction.
77586
77587 2006-03-15  Eric Blake  <ebb9@byu.net>
77588
77589         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77590
77591 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77592
77593         * lib/argp-help.c (validate_uparams): Fix typo
77594         * lib/argp-parse.c (argp_default_options): Consistently begin help
77595         messages with a lowercase letter.
77596
77597 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77598
77599         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77600         overrun buffers and shouldn't be used (much as gets shouldn't be
77601         used).
77602         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77603
77604 2006-03-08  Simon Josefsson  <jas@extundo.com>
77605
77606         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77607         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77608
77609 2006-03-08  Simon Josefsson  <jas@extundo.com>
77610
77611         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77612         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77613
77614 2006-03-08  Simon Josefsson  <jas@extundo.com>
77615
77616         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77617         signal that configure disabled the device.
77618
77619 2006-03-08  Simon Josefsson  <jas@extundo.com>
77620
77621         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77622         languages.
77623
77624 2006-03-07  Simon Josefsson  <jas@extundo.com>
77625
77626         * modules/getopt (Depends-on): Add unistd.
77627
77628         * modules/unistd: New file.
77629
77630 2006-03-07  Simon Josefsson  <jas@extundo.com>
77631
77632         * modules/gc-random: New file.
77633
77634 2006-03-07  Simon Josefsson  <jas@extundo.com>
77635
77636         * m4/unistd_h.m4: New file.
77637
77638 2006-03-07  Simon Josefsson  <jas@extundo.com>
77639
77640         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77641         test to be side-effect free by storing the result in the cache
77642         variable gl_cv_lib_readline, and moving the assignment of
77643         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77644         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77645
77646 2006-03-07  Simon Josefsson  <jas@extundo.com>
77647
77648         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77649         error on missing devices (the functions will return an error).
77650
77651         * m4/gc.m4: Move random stuff to gc-random.m4
77652
77653 2006-03-07  Simon Josefsson  <jas@extundo.com>
77654
77655         * lib/unistd_.h: New file.
77656
77657 2006-03-07  Simon Josefsson  <jas@extundo.com>
77658
77659         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77660
77661 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77664         Problem reported by Juan Manuel Guerrero.
77665
77666 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77669         the unistd module.
77670         * lib/getlogin_r.c: Likewise.
77671         * lib/getlogin_r.h: Likewise.
77672         * lib/glob.c: Likewise.
77673         * lib/pagealign_alloc.c: Likewise.
77674         * lib/unistd_.h: Remove; no longer needed.
77675
77676 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77679         Add unistd.
77680         * modules/c-stack (Depends-on): Add unistd.
77681         * modules/getlogin_r: Likewise.
77682         * modules/glob: Likewise.
77683         * modules/pagealign_alloc: Likewise.
77684         * modules/unistd (Files): Remove lib/unistd_.h.
77685         (EXTRA_DIST): Remove.
77686         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77687         need unistd_.h.
77688         (MOSTLYCLEANFILES): Remove unistd.h-t.
77689
77690 2006-03-03  Simon Josefsson  <jas@extundo.com>
77691
77692         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77693
77694 2006-03-03  Simon Josefsson  <jas@extundo.com>
77695
77696         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77697         libidn and bison.
77698
77699 2006-03-03  Simon Josefsson  <jas@extundo.com>
77700
77701         * build-aux/maint.mk: Add indent target.
77702
77703 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77704
77705         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77706         our replacement poll.h in any case, to avoid a differing
77707         declaration from a system header.  Seen on AIX.
77708
77709 2006-03-01  Simon Josefsson  <jas@extundo.com>
77710
77711         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77712         <kasal@ucw.cz>.
77713
77714 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * modules/gettime (Depends-on): Add extensions module.
77717         * modules/nanosleep (Depends-on): Likewise.
77718         * modules/settime (Depends-on): Likewise.
77719
77720 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77721
77722         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77723         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77724         pedantically.
77725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77726         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77727
77728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77729         not "==".  Reported by Ralf Wildenhues.
77730
77731 2006-03-01  Karl Berry  <karl@gnu.org>
77732
77733         * doc/Copyright/request-*: new files, synced from gnuorg.
77734
77735 2006-03-01  Karl Berry  <karl@gnu.org>
77736
77737         * config/srclist.txt (Copyright/*): new entries.
77738
77739 2006-02-28  Simon Josefsson  <jas@extundo.com>
77740
77741         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77742
77743 2006-02-27  Simon Josefsson  <jas@extundo.com>
77744
77745         * lib/base64.h: Indent #define's.  From Jim Meyering
77746         <jim@meyering.net>.
77747
77748 2006-02-27  Jim Meyering  <jim@meyering.net>
77749
77750         Revert the change of 2006-02-24, so these files can continue
77751         to be sync'd from gettext.
77752         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77753         of `config.h'.
77754
77755 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77756
77757         * modules/intprops: New file.
77758         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77759         Add intprops.
77760         * modules/getloadavg (Files): Remove lib/intprops.h.
77761         (Depends-on): Add intprops.
77762         * modules/human: Likewise.
77763         * modules/inttostr: Likewise.
77764         * modules/openat: Likewise.
77765         * modules/sig2str: Likewise.
77766         * modules/userspec: Likewise.
77767         * modules/utimecmp: Likewise.
77768         * modules/xnanosleep: Likewise.
77769         * modules/xstrtol: Likewise.
77770
77771 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77772
77773         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77774         * modules/lock-tests (TESTS): Use $(EXEEXT).
77775         * modules/tls-tests: Likewise.
77776         * modules/argp-tests: Likewise.
77777         (check_PROGRAMS): New var, replacing...
77778         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77779
77780 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77781
77782         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77783         `config.h'.
77784
77785 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77788
77789 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77790
77791         Sync from coreutils.
77792         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77793         gl_CHDIR_SAFER.
77794
77795 2006-02-22  Jim Meyering  <jim@meyering.net>
77796
77797         Sync from coreutils.
77798         * m4/chdir-safer.m4: New file.
77799
77800 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77803         AT_FDCWD exceeds INT_MAX.
77804         * lib/openat.h (AT_FDCWD): Likewise.
77805
77806 2006-02-17  Eric Blake  <address@hidden>
77807
77808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77809
77810 2006-02-16  Simon Josefsson  <jas@extundo.com>
77811
77812         * modules/getaddrinfo (Depends-on): Add sys_socket.
77813
77814 2006-02-15  Simon Josefsson  <jas@extundo.com>
77815
77816         * build-aux/maint.mk: Add dsyntax-check rule.
77817
77818 2006-02-15  Eric Blake  <ebb9@byu.net>
77819
77820         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77821         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77822         'present but cannot compile' warnings on cygwin.
77823         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77824         use ws2tcpip.h if sys/socket.h works.
77825         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77826         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77827
77828 2006-02-14  Simon Josefsson  <jas@extundo.com>
77829
77830         * modules/maintainer-makefile (Files): Rename.
77831
77832         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77833         and (the local) Makefile.cfg to maint-cfg.mk.
77834
77835         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77836         to the latter.
77837
77838         * modules/maintainer-makefile: New module.
77839
77840         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77841         severaly stripped to make it possible to build it up from scratch
77842         with reliable tests.
77843
77844         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77845         fixes to permit overriding the default actions when configure and
77846         makefile are not available.
77847
77848 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77849
77850         Sync from coreutils.
77851         * modules/lstat (Depends-on): Don't depend on xalloc.
77852         (License): Change from GPL to LGPL, since this is now simply a
77853         replacement for a libc function.
77854
77855 2006-02-14  Jim Meyering  <jim@meyering.net>
77856
77857         Sync from coreutils.
77858
77859         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77860         failure on deficient systems, and simplify gnulib lgpl dependencies.
77861         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77862         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77863
77864         * lib/xalloc-die.c: Remove unused definition of N_.
77865
77866 2006-02-14  Jim Meyering  <jim@meyering.net>
77867
77868         Sync from coreutils.
77869         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77870         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77871         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77872         double-quote uses of that variable, to accommodate the rare case in
77873         which getmntent is available in none of the libraries checked.  This
77874         happens at least on FreeBSD 5.0.
77875
77876 2006-02-13  Simon Josefsson  <jas@extundo.com>
77877
77878         * gnulib-tool (Usage): Fix --import, from
77879         karl@freefriends.org (Karl Berry).
77880
77881 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77882
77883         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77884
77885 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77886
77887         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77888         "autoupdate" on 2005-12-12.
77889
77890 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * modules/closeout (Depends-on): Remove atexit.
77893
77894 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77897         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77898
77899 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77902         __EXTENSIONS__ if this causes compilation to fail.  Problem
77903         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77904         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77905
77906 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77907
77908         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77909         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77910         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77911         All uses changed.
77912
77913 2006-01-26  Simon Josefsson  <jas@extundo.com>
77914
77915         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77916         prototype is visible on mingw32.
77917
77918         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77919         for mingw32.
77920
77921         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77922         mingw32).
77923
77924 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77927         attempt to open for write; this always fails, at least on POSIX
77928         hosts.  This reinstates the 2006-01-09 change, which was
77929         inadvertently removed.
77930
77931 2006-01-26  Bruno Haible  <bruno@clisp.org>
77932
77933         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77934         Reported by Paul Eggert.
77935
77936 2006-01-26  Bruno Haible  <bruno@clisp.org>
77937             Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * lib/stdbool_.h (_Bool)
77940         [(! (defined __cplusplus || defined __BEOS__)
77941           && !defined __GNUC__
77942           && !(defined __HP_cc || defined __xlc__
77943                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77944                || defined __sgi))]:
77945         #define to signed char in these cases too; this simplifies
77946         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77947         etc., separately) and makes it more conservative.
77948
77949 2006-01-25  Simon Josefsson  <jas@extundo.com>
77950
77951         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77952         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77953         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77954
77955 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77956
77957         * lib/argp-namefrob.h: Bugfix. Remove stray #
77958
77959 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77962         so that we test the test.
77963         Check for yet another HP-UX cc bug involving *bool |= bool.
77964
77965 2006-01-25  Karl Berry  <karl@gnu.org>
77966
77967         * config/srclist.txt (vasnprintf.c): sync lost.
77968
77969 2006-01-25  Jim Meyering  <jim@meyering.net>
77970
77971         Sync from the stable (b5) branch of coreutils:
77972
77973         * lib/fts.c (fts_children): Don't let close() clobber errno from
77974         failed fchdir().
77975
77976         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77977         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77978         a dangling symlink.  That can also happen at least for ELOOP.
77979         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77980         FYI, this bug predates the inclusion of fts.c in coreutils.
77981
77982         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77983         in their own block, so pre-c99 compilers don't object.
77984
77985         Avoid the double-free (first in fts_read, second in fts_close) that
77986         would occur when an `active' directory is made inaccessible (e.g.,
77987         via chmod a-x) during a traversal.
77988         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77989         before returning.  Reproduce this failure by
77990         mkdir -p a/b; cd a; chmod a-x . b
77991         Reported by Stavros Passas.
77992
77993 2006-01-25  Jim Meyering  <jim@meyering.net>
77994
77995         * lib/fileblocks.c: Remove more useless parentheses.
77996         * lib/readutmp.h: Likewise.
77997
77998 2006-01-25  Bruno Haible  <bruno@clisp.org>
77999
78000         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78001         warnings.
78002         Reported by Paul Eggert.
78003
78004 2006-01-25  Bruno Haible  <bruno@clisp.org>
78005
78006         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78007         rid of a trap command. For Solaris sh.
78008         Reported by Mark D. Baushke <mdb@gnu.org>.
78009
78010 2006-01-24  Simon Josefsson  <jas@extundo.com>
78011
78012         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78013         Bruno.
78014
78015 2006-01-24  Karl Berry  <karl@gnu.org>
78016
78017         * config/srclist.txt (argp-namefrob.h): sync lost.
78018
78019 2006-01-24  Jim Meyering  <jim@meyering.net>
78020
78021         * modules/openat (Files): Add lib/intprops.h.
78022         From Mark D. Baushke.
78023
78024 2006-01-24  Jim Meyering  <jim@meyering.net>
78025
78026         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78027         Reported by Mark D. Baushke.
78028
78029 2006-01-24  Jim Meyering  <jim@meyering.net>
78030
78031         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78032
78033 2006-01-24  Bruno Haible  <bruno@clisp.org>
78034
78035         * modules/strnlen (Maintainer): Change from glibc to all.
78036
78037 2006-01-24  Bruno Haible  <bruno@clisp.org>
78038
78039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78040         Patch by Paul Eggert.
78041
78042 2006-01-24  Bruno Haible  <bruno@clisp.org>
78043
78044         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78045         already has it.
78046         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78047         2005-11-26.
78048
78049         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78050         'signed char' to avoid problems with the built-in _Bool type.
78051         Reported by Paul Eggert on 2005-11-26.
78052
78053 2006-01-24  Bruno Haible  <bruno@clisp.org>
78054
78055         * gnulib-tool (func_import): Avoid constructing complicated sed
78056         expressions inside backquote.
78057         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78058
78059 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78060
78061         These changes imported from libc.
78062         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78063         test and two separate function calls.
78064         * lib/strndup.c (__strndup): Add libc_hidden_def.
78065
78066 2006-01-23  Simon Josefsson  <jas@extundo.com>
78067
78068         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78069         Remove the test_*_SOURCES variable: automake infers it by default.
78070         * modules/tls-tests: Likewise.
78071
78072 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         Work around porting bugs reported by Dieter in
78075         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78076         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78077         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78078         Include "getopt.h" first, to check interface.
78079         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78080         !HAVE_DECL_GETENV.
78081         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78082         (__strndup): Revert to K&R-style function dfns, the glibc style.
78083         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78084         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78085         Include strnlen.h first, to get prototype properly.
78086         (strnlen): Renamed from __strnlen.
78087         Remove weak alias.
78088
78089 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78090
78091         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78092
78093 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78094
78095         * config/srclist.txt: Adjust to reflect glibc reorganization.
78096         This affects only comments.
78097
78098 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78099
78100          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78101          Reported by Bruce Korb <bkorb@gnu.org>.
78102
78103 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78106         to pacify gcc -Wswitch-default.
78107
78108 2006-01-22  Bruno Haible  <bruno@clisp.org>
78109
78110         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78111         temporary buffer for sprintf, take into account the precision also
78112         for 'd', 'i', 'u', 'o', 'x', 'X'.
78113
78114 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78115
78116         * modules/argp-tests: New module
78117         * tests/test-argp.c: New file
78118         * tests/test-argp-2.sh: New file
78119
78120 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78121
78122         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78123         (__argp_base_name): Removed
78124         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78125         typo.
78126         (__argp_base_name): Provide macro definition or extern declaration
78127         depending on the configuration
78128
78129 2006-01-20  Simon Josefsson  <jas@extundo.com>
78130
78131         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78132
78133 2006-01-20  Simon Josefsson  <jas@extundo.com>
78134
78135         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78136
78137 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78140         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78141         Suggested by Bruno Haible.
78142
78143 2006-01-20  Karl Berry  <karl@gnu.org>
78144
78145         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78146         until changes propagate, I guess.
78147
78148 2006-01-19  Simon Josefsson  <jas@extundo.com>
78149
78150         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78151
78152 2006-01-19  Simon Josefsson  <jas@extundo.com>
78153
78154         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78155
78156 2006-01-19  Simon Josefsson  <jas@extundo.com>
78157
78158         * gnulib-tool: Set check_PROGRAMS.
78159
78160         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78161         modules/des-tests, modules/gc-arcfour-tests,
78162         modules/gc-arctwo-tests, modules/gc-des-tests,
78163         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78164         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78165         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78166         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78167         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78168         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78169         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78170         test_*_SOURCES.
78171
78172 2006-01-18  Simon Josefsson  <jas@extundo.com>
78173
78174         * modules/socklen (Depends-on): Depend on sys_socket.
78175
78176 2006-01-18  Simon Josefsson  <jas@extundo.com>
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: Add
78187         $(EXEEXT) to automake TESTS variable, for mingw32.
78188
78189 2006-01-17  Simon Josefsson  <jas@extundo.com>
78190
78191         * modules/socklen (Include): Need sys/socket.h.
78192
78193 2006-01-17  Bruno Haible  <bruno@clisp.org>
78194
78195         * modules/ssize_t (Include): Add <sys/types.h>.
78196
78197 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78200         it's not portable and it doesn't work with cross-compiles.
78201         Problem reported by Bruno Haible.  Fix missing-$ typo in
78202         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78203         -zignore from being used with Sun's C compiler.
78204
78205 2006-01-12  Simon Josefsson  <jas@extundo.com>
78206
78207         * lib/base64.c: Fix warning, reported by Bruno Haible
78208         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78209
78210 2006-01-12  Bruno Haible  <bruno@clisp.org>
78211
78212         * modules/ldd: New file.
78213         * build-aux/ldd.sh.in: New file.
78214         * MODULES.html.sh (Support for building libraries and executables): Add
78215         ldd.
78216
78217 2006-01-12  Bruno Haible  <bruno@clisp.org>
78218
78219         * m4/ldd.m4: New file.
78220
78221 2006-01-12  Bruno Haible  <bruno@clisp.org>
78222
78223         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78224         endless loop while replacing $auxdir with build-aux.
78225
78226 2006-01-11  Simon Josefsson  <jas@extundo.com>
78227
78228         * lib/stdint_.h (SIZE_MAX): Add missing (.
78229
78230 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         Sync from coreutils.
78233         * lib/md5.c: Fix commentary typos.
78234         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78235         * lib/md5.h (__attribute__): Remove; unused.
78236         * lib/sha1.c: Fix commentary to match md5 better.
78237         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78238         so that we don't need to worry about alignment.  All uses changed.
78239         This merges the 2005-10-28 md5 change into sha1.
78240
78241 2006-01-11  Jim Meyering  <jim@meyering.net>
78242
78243         Sync from coreutils.
78244         * lib/md5.c (OP): Fix spacing.
78245
78246 2006-01-11  Bruno Haible  <bruno@clisp.org>
78247
78248         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78249         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78250         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78251
78252 2006-01-11  Bruno Haible  <bruno@clisp.org>
78253
78254         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78255         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78256         the "early" section as well.
78257
78258 2006-01-11  Bruno Haible  <bruno@clisp.org>
78259
78260         Avoid "ar: no archive members specified" error on MacOS X.
78261         * gnulib-tool (func_modules_add_dummy): New function.
78262         (func_import, func_create_testdir): Invoke it.
78263
78264 2006-01-11  Bruno Haible  <bruno@clisp.org>
78265
78266         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78267         with $auxdir in AC_CONFIG_FILES statements.
78268
78269 2006-01-11  Bruno Haible  <bruno@clisp.org>
78270
78271         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78272         Initialize also noinst_HEADERS to empty.
78273
78274 2006-01-11  Bruno Haible  <bruno@clisp.org>
78275
78276         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78277         variables.
78278         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78279         autoreconf.
78280
78281 2006-01-11  Bruno Haible  <bruno@clisp.org>
78282
78283         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78284         overridable by the user.
78285         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78286
78287 2006-01-10  Simon Josefsson  <jas@extundo.com>
78288
78289         * modules/sys_socket: New file.
78290
78291 2006-01-10  Simon Josefsson  <jas@extundo.com>
78292
78293         * m4/sys_socket_h.m4: New file.
78294
78295 2006-01-10  Simon Josefsson  <jas@extundo.com>
78296
78297         * lib/socket_.h: New file.
78298
78299 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * modules/readutmp (Maintainer): Add myself.
78302
78303 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78304
78305         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78306         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78307         People who are still concerned with buggy memcmp implementations
78308         can invoke gl_FUNC_MEMCMP themselves.
78309
78310 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78311
78312         * lib/regex_internal.h (BITSET_WORD_BITS):
78313         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78314         preprocessor mishandles large unsigned values as if they were signed.
78315         Problem reported by Claudio Fontana in
78316         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78317
78318 2006-01-10  Jim Meyering  <jim@meyering.net>
78319
78320         Avoid the double-free (first in fts_read, second in fts_close) that
78321         would occur when an `active' directory is made inaccessible (e.g.,
78322         via chmod a-x) during a traversal.
78323         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78324         before returning.  Reproduce this failure by
78325         mkdir -p a/b; cd a; chmod a-x . b
78326         Reported by Stavros Passas.
78327
78328         Sync from coreutils.
78329         * lib/sha1.c: Tweak grammar in a comment.
78330
78331 2006-01-10  Jim Meyering  <jim@meyering.net>
78332
78333         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78334         Patch by Joerg Sonnenberger.
78335
78336 2006-01-10  Bruno Haible  <bruno@clisp.org>
78337
78338         * modules/readutmp: Depend on module free.
78339         * modules/strtok_r: Depend on module restrict.
78340
78341 2006-01-10  Bruno Haible  <bruno@clisp.org>
78342
78343         * modules/gettext (configure.ac): Add an invocation of
78344         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78345
78346 2006-01-10  Bruno Haible  <bruno@clisp.org>
78347
78348         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78349         Reported by Werner Lemberg <wl@gnu.org>.
78350
78351 2006-01-10  Bruno Haible  <bruno@clisp.org>
78352
78353         * lib/localcharset.c: Update from GNU gettext.
78354
78355 2006-01-10  Bruno Haible  <bruno@clisp.org>
78356
78357         * lib/argp.h (__const): Remove macro. Use const instead.
78358         * lib/argp-fmtstream.h (__const): Likewise.
78359         * lib/glob_.h (__const): Remove macro.
78360         * lib/glob-libc.h: Use const instead of __const.
78361
78362 2006-01-10  Bruno Haible  <bruno@clisp.org>
78363
78364         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78365         variable.
78366         Needed to avoid an automake error regarding the 'gettext' module.
78367
78368 2006-01-09  Simon Josefsson  <jas@extundo.com>
78369
78370         * modules/inet_ntop (Depends-on): Add restrict.
78371
78372 2006-01-09  Simon Josefsson  <jas@extundo.com>
78373
78374         * modules/gc-rijndael-tests (License): Put under LGPL.
78375
78376         * modules/gc-des-tests (License): Likewise.
78377
78378         * modules/gc-arcfour-tests (License): Likewise.
78379
78380         * modules/gc-arctwo-tests (License): Likewise.
78381
78382         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78383
78384         * modules/gc-hmac-sha1-tests (Files): Likewise.
78385
78386         * modules/gc-hmac-md5-tests (License): Likewise.
78387
78388         * modules/gc-sha1-tests (License): Likewise.
78389
78390         * modules/gc-md5-tests (License): Likewise.
78391
78392         * modules/gc-md4-tests (License): Likewise.
78393
78394         * modules/gc-md2-tests (License): Likewise.
78395
78396         * modules/gc-tests (License): Likewise.
78397
78398         * modules/des-tests (License): Likewise.
78399
78400         * modules/md4-tests (License): Likewise.
78401
78402         * modules/md2-tests (License): Likewise.
78403
78404 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         Sync from coreutils:
78407
78408         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78409         * modules/lib-ignore: New file.
78410         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78411         chdir-safer.m4, lchmod.m4.
78412         * modules/openat: Add mkdirat.c, openat-priv.h.
78413
78414 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         Sync from coreutils.
78417         * m4/lib-ignore.m4: New file.
78418         * m4/lchmod.m4: New file.
78419
78420 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         Sync from coreutils.
78423         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78424         for write access: POSIX says that must fail.
78425         * lib/fts.c (diropen): Likewise.
78426         * lib/save-cwd.c (save_cwd): Likewise.
78427         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78428         well, for minor improvements on hosts that lack O_DIRECTORY.
78429         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78430         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78431         Fall back on chown if open failed with EACCES.
78432
78433         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78434         Report an error at compile-time if only a 1-second nominal clock
78435         resolution is found.
78436
78437         * lib/lchmod.h: New file.
78438         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78439         (make_dir_parents): Use lchown rather than chown, and
78440         lchmod rather than chmod.
78441
78442         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78443         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78444         "proc" reported by n0dalus.
78445
78446         * lib/mountlist.c: Include <limits.h>.
78447         (dev_from_mount_options)
78448         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78449         New function.  It no longer assumes "dev=" has the System V meaning
78450         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78451         (read_file_system_list)
78452         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78453         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78454         dev= in that case.
78455
78456         * lib/posixtm.h (PDS_PRE_2000): New macro.
78457         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78458         allow_century.  All usages changed.  Reject dates outside the range
78459         1969-1999 if PDS_PRE_2000 is used.
78460
78461 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         Sync from coreutils.
78464         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78465         (Time of day items): Mention the possibility of leap seconds.
78466         Problem reported by Dr. David Alan Gilbert.
78467
78468 2006-01-09  Jim Meyering  <jim@meyering.net>
78469
78470         Sync from coreutils.
78471
78472         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78473
78474         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78475
78476         * lib/modechange.c (mode_compile): Reject an invalid mode string
78477         that starts with an octal digit.  From Andreas Gruenbacher.
78478
78479         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78480         and dup to open_safer and dup_safer, respectively.
78481         (openat_permissive): Fix typo in comment.
78482
78483         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78484         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78485         (_): Remove; no longer needed.
78486         (openat): Renamed from rpl_openat; no need for rpl_openat
78487         since openat.h renames openat for us.
78488         Replace most of the body with a call to openat_permissive,
78489         to avoid duplicate code.
78490         Port to (probably hypothetical) environments were mode_t is
78491         wider than int.
78492         (openat_permissive): Require mode arg, so that we can check
78493         types better.  Put it just after flags.  Change cwd failure
78494         indicator from pointer-to-bool to pointer-to-errno-value.
78495         All callers changed.
78496         Invoke openat_save_fail and/or openat_restore_fail if
78497         cwd_errno is null, so that openat can call us.
78498         (openat_permissive, fdopendir, fstatat, unlinkat):
78499         Simplify errno handling to avoid some duplicate code,
78500         as it's OK to set errno on success.
78501         * lib/openat.h: Revamp code so that function macros depend on
78502         __OPENAT_PREFIX only, not also on AT_FDCWD.
78503         (openat_ro): Remove.  Caller changed to use openat_permissive.
78504         (openat_permissive): Now a macro, if not a function.
78505         (openat_restore_fail, openat_save_fail): Now always functions,
78506         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78507
78508         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78509         and openat.c.
78510         * lib/mkdirat.c: Include openat-priv.h.
78511         Remove definitions of macros defined therein.
78512         * lib/openat.c: Likewise.
78513
78514         * lib/mkdirat.c (mkdirat): New file and function.
78515         * lib/openat.h (mkdirat): Declare.
78516
78517         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78518
78519         * lib/openat.h (openat_permissive): Declare.
78520         (openat_ro): Define.
78521
78522         * lib/openat.c (EXPECTED_ERRNO): New macro.
78523         (openat_permissive): New function -- used in remove.c rewrite.
78524         (all functions): Set errno just before returning, only if there
78525         was an actual failure.
78526         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78527
78528         Emulate openat-family functions using Linux's procfs, if possible.
78529         Idea and some code based on Ulrich Drepper's glibc changes.
78530
78531         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78532         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78533         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78534         before falling back on save_cwd and restore_cwd.
78535         (fdopendir, fstatat, unlinkat): Likewise.
78536
78537         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78538         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78539
78540         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78541         as second argument to va_arg.  Otherwise, some versions of gcc
78542         warn that `if this code is reached, the program will abort'.
78543
78544 2006-01-09  Jim Meyering  <jim@meyering.net>
78545
78546         Sync from coreutils.
78547         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78548         Require openat-priv.h.
78549
78550 2006-01-09  Bruno Haible  <bruno@clisp.org>
78551
78552         * modules/strnlen (Include): Use strnlen.h.
78553
78554 2006-01-09  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78557
78558 2006-01-09  Bruno Haible  <bruno@clisp.org>
78559
78560         * lib/sysexit_.h (EX_OK): New macro.
78561         Suggested by Martin Lambers <marlam@marlam.de>.
78562
78563 2006-01-09  Bruno Haible  <bruno@clisp.org>
78564
78565         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78566         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78567
78568 2006-01-09  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78571         numbers.
78572
78573 2006-01-09  Bruno Haible  <bruno@clisp.org>
78574
78575         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78576         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78577         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78578         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78579
78580 2006-01-09  Bruno Haible  <bruno@clisp.org>
78581
78582         * build-aux/javacomp.sh.in: New file, moved from lib/.
78583         * modules/javacomp-script (Files): Update.
78584         (configure.ac): Add AC_CONFIG_FILES invocation.
78585         (EXTRA_DIST): Remove variable.
78586
78587         * build-aux/javaexec.sh.in: New file, moved from lib/.
78588         * modules/javaexec (Files): Update.
78589         (configure.ac): Add AC_CONFIG_FILES invocation.
78590         (EXTRA_DIST): Remove javaexec.sh.in.
78591
78592         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78593         * modules/csharpcomp-script (Files): Update.
78594         (configure.ac): Add AC_CONFIG_FILES invocation.
78595         (EXTRA_DIST): Remove variable.
78596
78597         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78598         * modules/csharpexec (Files): Update.
78599         (configure.ac): Add AC_CONFIG_FILES invocation.
78600         (EXTRA_DIST): Remove csharpexec.sh.in.
78601
78602 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78603
78604         Sync from coreutils.
78605
78606         Add POSIX ACL support
78607         * lib/acl.h (copy_acl, set_acl): Add declarations.
78608         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78609         systems other than Linux.
78610         (chmod_or_fchmod): New function: use fchmod when possible,
78611         and chmod otherwise.
78612         (file_has_acl): Add a POSIX ACL implementation, with a
78613         Linux-specific subcase.
78614         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78615         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78616         acls are unsupported.
78617         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78618         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78619         are unsupported.
78620
78621 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78622
78623         Sync from coreutils.
78624         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78625
78626 2006-01-07  Bruno Haible  <bruno@clisp.org>
78627
78628         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78629         gl_EARLY.
78630
78631 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78632
78633         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78634         Problem reported for Mingw by Mark Junker.
78635
78636 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * README: Gnulib normally doesn't generate a tarball.
78639
78640 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78643         long int, not int, for nanosecond counts, so that people who are
78644         used to POSIX struct timespec won't be surprised.  Reported by Jim
78645         Meyering.
78646
78647 2005-12-28  Bruno Haible  <bruno@clisp.org>
78648
78649         * build-aux/config.rpath: Update from GNU gettext.
78650
78651 2005-12-16  Jim Meyering  <jim@meyering.net>
78652
78653         * modules/fprintftime: New module.
78654         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78655
78656 2005-12-16  Jim Meyering  <jim@meyering.net>
78657
78658         * m4/fprintftime.m4: New file.
78659
78660 2005-12-16  Jim Meyering  <jim@meyering.net>
78661
78662         * lib/fprintftime.c, lib/fprintftime.h: New files.
78663
78664 2005-12-15  Simon Josefsson  <jas@extundo.com>
78665
78666         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78667         new m4/socklen.m4.
78668
78669 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78670
78671         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78672         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78673
78674 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78675
78676         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78677         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78678         struct uparams is valid. Fall back to the default values if it is
78679         not.
78680
78681 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78682
78683         * modules/argp (Files): Add argp-pin.c
78684         (Depends-on): dirname
78685         (lib_SOURCES): Add argp-pin.c
78686
78687 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78688
78689         * m4/argp.m4:  Check if program_invocation_name and
78690         program_invocation_short_name are declared and define appropriate
78691         macros if they are not.
78692
78693 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78694
78695         * lib/argp-help.c (__argp_base_name): New function
78696         (__argp_short_program_name): Rewrite using __argp_base_name
78697         * lib/argp-namefrob.h: Define program_invocation_name and
78698         program_invocation_short_name if requested
78699         (__argp_base_name): Add prototype
78700         * lib/argp-parse.c (argp_def): Use gettext wrappers
78701         (argp_default_parser): Use __argp_base_name
78702         * lib/argp-pin.c: New file. Defines program_invocation_name and
78703         program_invocation_short_name on systems that lack them.
78704
78705 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78708         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78709         porting problem reported by Georg Schwarz in
78710         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78711
78712 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78715         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78716         porting problem reported by Georg Schwarz in
78717         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78718
78719 2005-12-05  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78722         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78723         Reported by Mark Junker <mjscod@gmx.de>.
78724
78725 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78726
78727         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78728         Use implementation from Albert Chin, with some
78729         comments/corrections by Stepan Kasal and myself.
78730
78731 2005-12-02  Bruno Haible  <bruno@clisp.org>
78732
78733         * gnulib-tool (func_import): Accept GPLed build tool modules when
78734         --lgpl is given.
78735         * modules/csharpcomp-script: New file.
78736         * modules/csharpcomp: Depend on it.
78737         * modules/javacomp-script: New file.
78738         * modules/javacomp: Depend on it.
78739         Suggested by Simon Josefsson.
78740
78741 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78744         statement, to work around an HP-UX 10.20 compiler bug reported by
78745         Peter O'Gorman.
78746
78747 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * modules/savedir (Depends-on): Add openat.
78750
78751 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78754         (uintmax_t) [defined uintmax_t]: Do not declare.
78755         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78756         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78757         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78758         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78759         sake of portability to weird hosts that C allows (though we don't
78760         know of any practical examples).
78761
78762         * lib/savedir.h (fdsavedir): New decl.
78763         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78764         contains most of the former guts of savedir.
78765         (savedir): Use savedirstream.
78766         Include "openat.h".
78767
78768 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         * modules/obstack (Files): Add m4/ulonglong.m4.
78771         Problem reported by Davide Angelocola.
78772
78773 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78776         coreutils no longer futzes with rounding modes.
78777
78778 2005-11-14  Jim Meyering  <jim@meyering.net>
78779
78780         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78781         replacement of mkstemp.
78782
78783 2005-11-10  Simon Josefsson  <jas@extundo.com>
78784
78785         * lib/readline.c: Remove EOL.
78786
78787 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * modules/gethrxtime (Depends-on): Add gettime.
78790
78791 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78794         or gettimeofday; no longer needed.
78795
78796 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78797
78798         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78799         time business.
78800         (gethrxtime) [! (HAVE_NANOUPTIME
78801         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78802         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78803         our own approximation.
78804
78805 2005-11-08  Eric Blake  <ebb9@byu.net>
78806
78807         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78808
78809 2005-11-08  Eric Blake  <ebb9@byu.net>
78810
78811         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78812
78813 2005-11-04  Bruno Haible  <bruno@clisp.org>
78814
78815         * gnulib-tool: Implement --update mode.
78816
78817 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         Fix porting problem reported by Theodoros V. Kalamatianos.
78820         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78821         Don't assume that futimes failing means we must fail.
78822
78823 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78826         variables to suggest the intended function of the PATH_MAX check.
78827
78828 2005-10-30  Kean Johnston  <jkj@sco.com>
78829
78830         Trivial changes to support SCO systems.
78831         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78832         as PATH_MAX.
78833         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78834         where __ptr is null when no I/O is pending.
78835
78836 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78839         leave errno alone.  Problem reported by Dmitry V. Levin.
78840
78841 2005-10-28  Simon Josefsson  <jas@extundo.com>
78842
78843         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78844         Test more.
78845
78846         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78847
78848         * modules/md2, modules/md2-tests: New files.
78849
78850 2005-10-28  Simon Josefsson  <jas@extundo.com>
78851
78852         * m4/inet_ntop.m4: More tests.
78853
78854         * m4/gc-md2.m4, md2.m4: New file.
78855
78856 2005-10-28  Simon Josefsson  <jas@extundo.com>
78857
78858         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78859         "restrict" keywords, as per POSIX.  Protect the function
78860         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78861         Don't use K&R prototypes.  Check the sprintf return values.
78862         Re-define EAFNOSUPPORT if not present.  Indent.
78863
78864         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78865         suggested by Bruno Haible <bruno@clisp.org>.
78866
78867         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78868
78869         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78870
78871         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78872         libgcrypt).
78873
78874         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78875
78876         * lib/md2.h, lib/md2.c: New files.
78877
78878 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78881         errno alone.  Problem reported by Frederic Jolliton.
78882
78883 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * modules/verify (License): Change from GPL to LGPL.  This is a
78886         tiny module and there are apparently near-equivalents that are
78887         under the BSD license.
78888
78889 2005-10-24  Simon Josefsson  <jas@extundo.com>
78890
78891         * modules/sha1: Relicense to LGPL.
78892
78893 2005-10-24  Simon Josefsson  <jas@extundo.com>
78894
78895         * lib/md4.h: Shrink buffer size, now that we changed the type.
78896
78897 2005-10-23  Simon Josefsson  <jas@extundo.com>
78898
78899         * gnulib-tool (func_import): Fix --tests-base.
78900
78901 2005-10-22  Simon Josefsson  <jas@extundo.com>
78902
78903         * modules/arcfour (Depends-on): Need stdint.
78904
78905 2005-10-22  Simon Josefsson  <jas@extundo.com>
78906
78907         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78908         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78909
78910 2005-10-22  Simon Josefsson  <jas@extundo.com>
78911
78912         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78913         suggested by Bruno Haible <bruno@clisp.org>.
78914
78915 2005-10-22  Simon Josefsson  <jas@extundo.com>
78916
78917         * lib/crc.h: Include stddef.h, for size_t.
78918
78919 2005-10-22  Simon Josefsson  <jas@extundo.com>
78920
78921         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78922         arcfour_context struct (simplify test vector testing in GNU
78923         Shishi).
78924
78925 2005-10-21  Simon Josefsson  <jas@extundo.com>
78926
78927         * modules/des, modules/des-tests: New files.
78928
78929         * modules/gc-des, modules/gc-des-tests: New files.
78930
78931         * tests/test-des.c, tests/test-gc-des.c: New file.
78932
78933 2005-10-21  Simon Josefsson  <jas@extundo.com>
78934
78935         * modules/arctwo, modules/arctwo-tests: New files.
78936
78937         * tests/test-arctwo.c: New file.
78938
78939         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78940
78941         * tests/test-gc-arctwo.c: New file.
78942
78943 2005-10-21  Simon Josefsson  <jas@extundo.com>
78944
78945         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78946         Bruno Haible <bruno@clisp.org>.
78947
78948         * m4/gc-des.m4: New file.
78949
78950 2005-10-21  Simon Josefsson  <jas@extundo.com>
78951
78952         * m4/arctwo.m4: New file.
78953
78954         * m4/gc-arctwo.m4: New file.
78955
78956 2005-10-21  Simon Josefsson  <jas@extundo.com>
78957
78958         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78959         block.
78960
78961 2005-10-21  Simon Josefsson  <jas@extundo.com>
78962
78963         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78964         <bruno@clisp.org>.
78965
78966         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78967
78968         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78969         Bruno Haible <bruno@clisp.org>.
78970
78971         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78972         <bruno@clisp.org>.
78973
78974 2005-10-21  Simon Josefsson  <jas@extundo.com>
78975
78976         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78977
78978 2005-10-21  Simon Josefsson  <jas@extundo.com>
78979
78980         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78981
78982 2005-10-21  Simon Josefsson  <jas@extundo.com>
78983
78984         * lib/des.h, lib/des.c: New files.
78985
78986         * lib/gc-gnulib.c: Support DES.c
78987
78988 2005-10-21  Simon Josefsson  <jas@extundo.com>
78989
78990         * lib/arctwo.h, lib/arctwo.c: New files.
78991
78992         * lib/gc-gnulib.c: Support ARCTWO.
78993
78994 2005-10-21  Simon Josefsson  <jas@extundo.com>
78995
78996         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78997         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78998
78999 2005-10-21  Simon Josefsson  <jas@extundo.com>
79000
79001         * gnulib-tool (func_import, func_create_testdir): Define automake
79002         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79003         Makefile.am snippet),
79004         suggested by Bruno Haible <bruno@clisp.org>.
79005
79006         * modules/gc (Makefile.am): Use it.
79007
79008 2005-10-21  Bruno Haible  <bruno@clisp.org>
79009
79010         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79011         patch.
79012
79013 2005-10-19  Simon Josefsson  <jas@extundo.com>
79014
79015         * tests/test-gc-rijndael.c: New file.
79016
79017         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79018
79019 2005-10-19  Simon Josefsson  <jas@extundo.com>
79020
79021         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79022         interface too.
79023
79024 2005-10-19  Simon Josefsson  <jas@extundo.com>
79025
79026         * tests/test-gc-arcfour.c: New file.
79027
79028         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79029
79030 2005-10-19  Simon Josefsson  <jas@extundo.com>
79031
79032         * modules/gc-md4, modules/gc-md4-tests: New file.
79033
79034         * tests/test-gc-md4.c: New file.
79035
79036 2005-10-19  Simon Josefsson  <jas@extundo.com>
79037
79038         * m4/gc-md4.m4: New file.
79039
79040 2005-10-19  Simon Josefsson  <jas@extundo.com>
79041
79042         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79043         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79044         <kasal@ucw.cz>.
79045
79046 2005-10-19  Simon Josefsson  <jas@extundo.com>
79047
79048         * m4/gc-arcfour.m4: New file.
79049
79050         * m4/gc-rijndael.m4: New file.
79051
79052 2005-10-19  Simon Josefsson  <jas@extundo.com>
79053
79054         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79055
79056 2005-10-19  Simon Josefsson  <jas@extundo.com>
79057
79058         * lib/gc-gnulib.c: Support ARCFOUR.
79059
79060 2005-10-19  Simon Josefsson  <jas@extundo.com>
79061
79062         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79063         support.
79064
79065         * lib/gc.h: Add ECB enum type.
79066
79067         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79068
79069 2005-10-18  Simon Josefsson  <jas@extundo.com>
79070
79071         * tests/test-md5.c: New file.
79072
79073         * modules/md5-tests: New file.
79074
79075 2005-10-18  Simon Josefsson  <jas@extundo.com>
79076
79077         * tests/test-md4.c: New file.
79078
79079         * modules/md4, modules/md4-tests: New files.
79080
79081 2005-10-18  Simon Josefsson  <jas@extundo.com>
79082
79083         * m4/md4.m4: New file.
79084
79085 2005-10-18  Simon Josefsson  <jas@extundo.com>
79086
79087         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79088
79089 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79090
79091         * gnulib-tool (func_create_testdir): Omit the second check whether
79092         BUILT_SOURCES in nonempty.
79093
79094 2005-10-17  Simon Josefsson  <jas@extundo.com>
79095
79096         * tests/test-rijndael.c: New file.
79097
79098 2005-10-17  Simon Josefsson  <jas@extundo.com>
79099
79100         * modules/sha1: Depend on stdint instead of md5.
79101
79102         * modules/md5: Depend on stdint, remove uint32_t.
79103
79104 2005-10-17  Simon Josefsson  <jas@extundo.com>
79105
79106         * modules/gc-sha1-tests: New file.
79107
79108         * tests/test-gc-sha1.c: New file.
79109
79110 2005-10-17  Simon Josefsson  <jas@extundo.com>
79111
79112         * m4/md5.m4: Remove call to uint32_t.m4.
79113
79114 2005-10-17  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79117
79118         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79119         md5.h.
79120
79121         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79122
79123         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79124
79125 2005-10-17  Simon Josefsson  <jas@extundo.com>
79126
79127         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79128
79129 2005-10-17  Simon Josefsson  <jas@extundo.com>
79130
79131         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79132
79133 2005-10-17  Simon Josefsson  <jas@extundo.com>
79134
79135         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79136
79137         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79138
79139 2005-10-17  Bruno Haible  <bruno@clisp.org>
79140
79141         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79142         that it can also be used in a test.
79143
79144 2005-10-16  Bruno Haible  <bruno@clisp.org>
79145
79146         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79147         TESTS_ENVIRONMENT, so that individual tests can augment it.
79148
79149         * gnulib-tool (func_create_testdir): Use an intermediate target for
79150         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79151         macros, like $(ALLOCA_H), which cannot be passed through the command
79152         line.
79153
79154 2005-10-15  Simon Josefsson  <jas@extundo.com>
79155
79156         * modules/rijndael-tests: New file.
79157
79158         * modules/rijndael: New file.
79159
79160 2005-10-15  Simon Josefsson  <jas@extundo.com>
79161
79162         * m4/rijndael.m4: New file.
79163
79164 2005-10-15  Simon Josefsson  <jas@extundo.com>
79165
79166         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79167
79168         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79169
79170 2005-10-14  Simon Josefsson  <jas@extundo.com>
79171
79172         * tests/test-arcfour.c: New file.
79173
79174         * modules/arcfour, modules/arcfour-tests: New files.
79175
79176 2005-10-14  Simon Josefsson  <jas@extundo.com>
79177
79178         * m4/arcfour.m4: New file.
79179
79180 2005-10-14  Simon Josefsson  <jas@extundo.com>
79181
79182         * lib/arcfour.h, lib/arcfour.c: New files.
79183
79184 2005-10-14  Roland McGrath  <roland@redhat.com>
79185
79186         Import from libc.  [BZ #1331]
79187         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79188         macro argument.
79189         Reported by Matej Vela <vela@debian.org>.
79190
79191 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79192
79193         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79194         include <wchar.h>; no longer needed.
79195
79196 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79197
79198         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79199
79200 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79201         and  Ulrich Drepper  <drepper@redhat.com>
79202
79203         Import from libc.
79204         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79205         instead of inline stream orientation test and two separate
79206         function calls.  Pay no attention to USE_IN_LIBIO.
79207
79208 2005-10-13  Simon Josefsson  <jas@extundo.com>
79209
79210         * modules/gc-hmac-md5-tests: New file.
79211
79212         * tests/test-gc-hmac-sha1.c: New file.
79213
79214         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79215
79216         * modules/gc-hmac-md5-tests: New file.
79217
79218         * tests/test-gc-md5.c: New file.
79219
79220         * modules/gc-md5-tests: New file.
79221
79222 2005-10-13  Simon Josefsson  <jas@extundo.com>
79223
79224         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79225         Move memory allocation outside of loop.
79226
79227 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79228
79229         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79230         intermediate directory is in a read-only file system.  Problem
79231         reported by Eric Blake.
79232
79233 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79234
79235         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79236
79237 2005-10-12  Simon Josefsson  <jas@extundo.com>
79238
79239         * tests/test-hmac-sha1.c: New file.
79240
79241         * modules/hmac-sha1-tests: New file.
79242
79243         * modules/hmac-sha1: New file.
79244
79245 2005-10-12  Simon Josefsson  <jas@extundo.com>
79246
79247         * modules/gc-sha1: New file.
79248
79249 2005-10-12  Simon Josefsson  <jas@extundo.com>
79250
79251         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79252
79253         * tests/test-gc-pbkdf2-sha1.c: New file.
79254
79255 2005-10-12  Simon Josefsson  <jas@extundo.com>
79256
79257         * modules/gc-md5, modules/gc-hmac-md5: New files.
79258
79259         * modules/gc (Files): Remove md5, memxor and hmac files.
79260
79261 2005-10-12  Simon Josefsson  <jas@extundo.com>
79262
79263         * m4/gc-pbkdf2-sha1.m4: New file.
79264
79265         * m4/gc-hmac-sha1.m4: New file.
79266
79267         * m4/gc-sha1: New file.
79268
79269         * m4/hmac-sha1.m4: New file.
79270
79271 2005-10-12  Simon Josefsson  <jas@extundo.com>
79272
79273         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79274
79275         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79276
79277 2005-10-12  Simon Josefsson  <jas@extundo.com>
79278
79279         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79280         suggested by Bruno Haible <bruno@clisp.org>.
79281
79282 2005-10-12  Simon Josefsson  <jas@extundo.com>
79283
79284         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79285
79286 2005-10-12  Simon Josefsson  <jas@extundo.com>
79287
79288         * lib/gc-pbkdf2-sha1.c: New file.
79289
79290         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79291
79292 2005-10-12  Simon Josefsson  <jas@extundo.com>
79293
79294         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79295
79296         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79297
79298 2005-10-12  Simon Josefsson  <jas@extundo.com>
79299
79300         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79301         GC_USE_HMAC_MD5, respectively.
79302
79303         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79304         (gc_md5): Fix typo.
79305
79306         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79307
79308         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79309
79310         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79311
79312 2005-10-12  Bruno Haible  <bruno@clisp.org>
79313
79314         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79315         Reported by Stepan Kasal <kasal@ucw.cz>.
79316
79317 2005-10-11  Simon Josefsson  <jas@extundo.com>
79318
79319         * tests/test-crc.c: New file.
79320
79321         * modules/crc, modules/crc-tests: New files.
79322
79323 2005-10-11  Simon Josefsson  <jas@extundo.com>
79324
79325         * m4/crc.m4: New file.
79326
79327 2005-10-11  Simon Josefsson  <jas@extundo.com>
79328
79329         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79330
79331         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79332
79333         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79334
79335 2005-10-11  Simon Josefsson  <jas@extundo.com>
79336
79337         * lib/crc.h, lib/crc.c: New files.
79338
79339         * lib/gc.h (gc_hash_buffer): Add doc.
79340
79341 2005-10-11  Bruno Haible  <bruno@clisp.org>
79342
79343         * modules/c-strcasestr: New file.
79344         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79345
79346 2005-10-11  Bruno Haible  <bruno@clisp.org>
79347
79348         * modules/c-strcase: New file.
79349         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79350
79351 2005-10-11  Bruno Haible  <bruno@clisp.org>
79352
79353         * lib/strcasecmp.c: Include limits.h.
79354         (strcasecmp): Avoid integer overflow on exotic platforms.
79355         * lib/strncasecmp.c: Include limits.h.
79356         (strncasecmp): Avoid integer overflow on exotic platforms.
79357         Reported by Paul Eggert.
79358
79359 2005-10-11  Bruno Haible  <bruno@clisp.org>
79360
79361         * lib/c-strcasestr.h: New file, from GNU gettext.
79362         * lib/c-strcasestr.c: New file, from GNU gettext.
79363
79364 2005-10-11  Bruno Haible  <bruno@clisp.org>
79365
79366         * lib/c-strcase.h: New file, from GNU gettext.
79367         * lib/c-strcasecmp.c: New file, from GNU gettext.
79368         * lib/c-strncasecmp.c: New file, from GNU gettext.
79369
79370 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         * modules/mempcpy (License): GPL -> LGPL.
79373         * modules/strchrnul (License): Likewise.
79374         * modules/sysexits (License): Likewise.
79375
79376 2005-10-08  Simon Josefsson  <jas@extundo.com>
79377
79378         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79379
79380 2005-10-07  Simon Josefsson  <jas@extundo.com>
79381
79382         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79383
79384 2005-10-06  Simon Josefsson  <jas@extundo.com>
79385
79386         * tests/test-hmac-md5.c: New file.
79387
79388         * modules/hmac-md5-tests: New file.
79389
79390         * modules/hmac-md5: New file.
79391
79392 2005-10-06  Simon Josefsson  <jas@extundo.com>
79393
79394         * m4/hmac-md5.m4: New file.
79395
79396         * m4/memxor.m4: Require gl_C_RESTRICT.
79397
79398 2005-10-06  Simon Josefsson  <jas@extundo.com>
79399
79400         * lib/memxor.c (memxor): Avoid casts and warnings.
79401
79402 2005-10-06  Simon Josefsson  <jas@extundo.com>
79403
79404         * lib/hmac-md5.c: New file.
79405
79406         * lib/hmac.h: New file.
79407
79408 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79411         promotes to int, not unsigned int, to catch the AIX 5.3
79412         compiler bug.
79413
79414 2005-10-05  Simon Josefsson  <jas@extundo.com>
79415
79416         * modules/memxor: New file.
79417
79418         * modules/iconv (Files): Move config.rpath to havelib, it is used
79419         there.
79420
79421         * modules/havelib (Files): Add config.rpath.
79422
79423 2005-10-05  Simon Josefsson  <jas@extundo.com>
79424
79425         * m4/memxor.m4: New file.
79426
79427 2005-10-05  Simon Josefsson  <jas@extundo.com>
79428
79429         * lib/memxor.c (memxor): Fix compiler error.
79430
79431         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79432         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79433
79434         * lib/memxor.h, lib/memxor.c: New files.
79435
79436         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79437         we assume all systems have it, suggested by Jim Meyering
79438         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79439         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79440         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79441         same reasons.
79442
79443 2005-10-05  Simon Josefsson  <jas@extundo.com>
79444
79445         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79446
79447 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79450         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79451         needed, since the source code now assumes these .h files.
79452
79453 2005-10-05  Derek Price  <derek@ximbiot.com>
79454
79455         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79456
79457 2005-10-05  Bruno Haible  <bruno@clisp.org>
79458
79459         * modules/stdint (License): Change to LGPL.
79460
79461 2005-10-04  Simon Josefsson  <jas@extundo.com>
79462
79463         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79464         D. Baushke" <mdb@gnu.org>.
79465
79466 2005-10-04  Bruno Haible  <bruno@clisp.org>
79467
79468         * lib/verify.h (verify_true): Provide alternative definition for C++.
79469
79470 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79473         (SSIZE_MAX): New macro, if not already defined.
79474         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79475         than 2 GiB.
79476
79477 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79478
79479         Sync from coreutils.
79480         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79481         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79482         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79483         ULLONG_MAX doesn't work with 2.7.2.1.
79484
79485 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79488         From Ben Pfaff.
79489
79490         * modules/exclude (Depends-on): Depend on verify.
79491         * modules/strtoimax (Depends-on): Likewise.
79492         * modules/utimecmp (Depends-on): Likewise.
79493
79494 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * lib/exclude.c: Include verify.h.
79497         (verify): Remove.  All callers changed to use verify.h's version.
79498         * lib/strtoimax.c: Likewise.
79499         * lib/utimecmp.c: Likewis.e
79500
79501         Sync from coreutils.
79502         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79503         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79504         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79505         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79506         bother returning ENOSYS if settimeofday or stime fails; just let
79507         them return whatever errno they want to return.
79508         * lib/utimens.c: Include unistd.h, for dup2.
79509         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79510         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79511
79512 2005-10-02  Jim Meyering  <jim@meyering.net>
79513
79514         Sync from coreutils.
79515         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79516         from glibc-2.2.5 that fails for read-only files.
79517
79518 2005-10-02  Jim Meyering  <jim@meyering.net>
79519
79520         Sync from coreutils.
79521         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79522         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79523         `#if HAVE_CONFIG_H'.
79524         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79525         Remove AT_FDCWD test.
79526         Do not consume the fd unless successful.
79527         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79528         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79529         block, so that we don't even try to compile it if settimeofday is
79530         available.  This works around a compilation failure on OSF1 V5.1,
79531         due to stime requiring a `long int*' while tv_sec is `int'.
79532
79533 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79534
79535         Sync from coreutils.
79536         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79537         against `yes', rather than just testing for nonempty.
79538
79539 2005-10-01  Simon Josefsson  <jas@extundo.com>
79540
79541         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79542         and Darwin.
79543
79544         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79545         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79546         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79547         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79548         Check if struct addrinfo is declared.
79549
79550 2005-10-01  Simon Josefsson  <jas@extundo.com>
79551
79552         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79553         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79554         AI_* and EAI_* definitions.  Protect function declarations.
79555
79556 2005-10-01  Jim Meyering  <jim@meyering.net>
79557
79558         Sync from coreutils.
79559
79560         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79561         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79562         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79564         in the inet and nsl libraries.  Required on Solaris 5.7.
79565
79566 2005-10-01  Jim Meyering  <jim@meyering.net>
79567
79568         Sync from coreutils.
79569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79570         in the inet and nsl libraries.  Required on Solaris 5.7.
79571
79572 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79573
79574         * lib/getdelim.c (getdelim): Remove unused variables.
79575
79576 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79579         so that the code works even with ancient cpp.  Portability problem
79580         with GCC 2.7.2.1 reported by Thomas M.Ott.
79581
79582 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         * modules/regex (Depends-on): Add strcase.
79585
79586         * modules/gethostname (Licence): Change from GPL to LGPL, since
79587         gethostname.c is a trivial implementation of a standard library
79588         function.
79589         * modules/poll (License): Change from GPL to LGPL, since it's
79590         derived from LGPL code.
79591
79592 2005-09-27  Jim Meyering  <jim@meyering.net>
79593
79594         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79595         HAVE_CONFIG_H.
79596
79597         * lib/intprops.h (signed_type_or_expr__): Define.
79598         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79599         for unsigned types.
79600
79601 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         * lib/verify.h (verify_expr): Remove, replacing with:
79604         (verify_true): New macro that returns true instead of void.
79605         (verify_type__): Remove.
79606         (verify): Use verify_true rather than verify_type__.
79607
79608 2005-09-26  Bruno Haible  <bruno@clisp.org>
79609
79610         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79611         is necessary.
79612         (lib_SOURCES): Remove mbchar.c.
79613         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79614         (Files): Add m4/mbrtowc.m4.
79615         * modules/mbiter: Likewise.
79616         * modules/mbuiter: Likewise.
79617
79618 2005-09-26  Bruno Haible  <bruno@clisp.org>
79619
79620         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79621         compile mbchar.c if they are not both present.
79622         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79623         * m4/mbiter.m4 (gl_MBITER): Likewise.
79624         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79625         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79626         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79627
79628 2005-09-25  Jim Meyering  <jim@meyering.net>
79629
79630         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79631         also uses socklen_t.
79632
79633 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * lib/utimens.c (ENOSYS): Define if not already defined.
79636         (futimens): Support having a null PATH if the file descriptor
79637         is nonnegative.
79638
79639         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79640         Remove.
79641         (__attribute): Define to empty unless GCC 3.1 or later.
79642         This works around a core dump on OpenBSD 3.4, which has GCC
79643         2.95.3, which dumps core when given __attribute__(()).  It also
79644         simplifies other tests, since we really don't want to bother with
79645         worrying about which ancient version of GCC supported what.
79646         Original problem reported by Yoann Vandoorselaere, with part of
79647         the fix suggested by Derek Price.
79648
79649 2005-09-24  Jim Meyering  <jim@meyering.net>
79650
79651         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79652         so we can once again use a positive bitfield width of 1 -- now we
79653         don't have to explain why we were using a bitfield width of 2.
79654
79655 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79658         and similarly for the other external symbols.  Problem reported
79659         by James Gallager.
79660
79661         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79662         bug reported by Jim Meyering.
79663
79664         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79665         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79666         not needed, since socklen is a prerequisite module.
79667
79668 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79669
79670         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79671         Problem reported by Eric Blake.
79672         (getaddrinfo): Initialize se so that it's not garbage.
79673         Redo internal storage allocation so that it doesn't make unportable
79674         assumptions about alignment.
79675         Fix a memory leak.
79676
79677         * lib/utimens.c (futimens): Use futimesat if available.
79678         Prefer it to futimes since it doesn't have the futimes bug.
79679
79680         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79681         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79682         Instead, declare a function that returns a pointer to an array,
79683         and use verify_type__ to declare the size of the array.
79684         Problem and germ of a solution reported by Bruno Haible.
79685         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79686         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79687
79688 2005-09-23  Jim Meyering  <jim@meyering.net>
79689
79690         Sync from coreutils.
79691         Correct build failure (socklen_t not defined) on at least
79692         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79693         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79694
79695 2005-09-23  Jim Meyering  <jim@meyering.net>
79696
79697         * modules/getaddrinfo (Depends-on): Add socklen.
79698
79699 2005-09-23  Bruno Haible  <bruno@clisp.org>
79700
79701         * tests/test-verify.c: New file.
79702
79703 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         Sync from coreutils.
79706
79707         * modules/argmatch (Depends-on): Add verify.
79708         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79709         unistd-safer.
79710         * modules/save-cwd (Depends-on): Likewise.
79711
79712         * modules/openat (Files): Add lib/openat-die.c.
79713         (Depends-on): Remove error, exitfail.
79714         Add dirname.
79715
79716         * modules/verify: New file.
79717         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79718         with "verify" module.
79719
79720 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         Sync from coreutils.
79723
79724         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79725         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79726         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79727         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79728         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79729         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79730         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79731         Don't bother checking for string.h, stdlib.h, unistd.h.
79732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79733         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79734         module's job.
79735         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79736         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79737
79738         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79739         (gl_GETDATE): Use it.
79740
79741         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79742
79743 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79744
79745         Sync from coreutils.
79746
79747         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79748         stat-time.h.
79749         * lib/argmatch.h: Include verify.h
79750         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79751         (ARGMATCH_ASSERT): Remove; unused.
79752         * lib/canonicalize.c: Assume STDC_HEADERS.
79753         * lib/exclude.c: Include "strcase.h".
79754         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79755         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79756         and stdio-safer.h.
79757         (getusershell): Call fopen, not fopen_safer.
79758         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79759         Do not include unistd-safer.h.
79760         (save_cwd): Don't call fd_safer; no longer needed
79761         now that we include fcntl--.h.
79762
79763         * lib/getdate.y (relative_time): New type.
79764         (RELATIVE_TIME_0): New constant.
79765         (parser_control): Use relative_time instead of doing it ourselves.
79766         (%union): Add new relative_time rel member.
79767         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79768         Now typeless.
79769         (relunit, relunit_snumber): Now of type rel.
79770         (zone, rel, relunit, get_date): Adjust to above changes.
79771
79772         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79773         Do not include unistd-safer.h.
79774         (getloadavg): Don't call fd_safer; no longer needed
79775         now that we include fcntl--.h.
79776
79777         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79778         (make_dir_parents): Treat ENOSYS like EEXIST.
79779
79780         Improve quality of diagnostics on restore_cwd failure.
79781         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79782         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79783         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79784         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79785         each time through the loop.  Do not diagnose restore_cwd failure;
79786         that is the caller's job (and perhaps the caller does not care).
79787
79788         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79789         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79790         If the file already exists but is not a directory, don't bother
79791         to try to make its parents.
79792         Close potential file descriptor leak if we can't chdir("/") (!).
79793         Don't always return true if chdir($PWD) fails; return true only
79794         if the requested action was done successfully (except for the
79795         chdir($PWD)).
79796         Don't log final directory unless we actually made it.
79797         Refactor to avoid duplicate code to fix up permissions.
79798         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79799
79800         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79801         to make it a bit faster and (I hope) clearer.
79802         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79803         Fix bug in formats like %2N.
79804
79805         * lib/verify.h: New file.
79806
79807 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         Sync from coreutils.
79810         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79811
79812 2005-09-22  Jim Meyering  <jim@meyering.net>
79813
79814         Sync from coreutils.
79815
79816         * m4/lstat.m4 (gl_FUNC_LSTAT):
79817         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79818         Remove obsolete comment.
79819         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79820         * m4/xstrtod.m4: Likewise.
79821
79822         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79823
79824 2005-09-22  Jim Meyering  <jim@meyering.net>
79825
79826         Sync from coreutils.
79827
79828         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79829
79830         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79831         the .tm_year member, since otherwise gcc-4.0 would now warn about
79832         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79833
79834         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79835         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79836
79837         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79838         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79839         when run in a time zone for which daylight savings time is in effect
79840         for the starting date.
79841
79842         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79843         stop us from restricting permissions of just-created absolute-named
79844         directories.
79845         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79846         to restore initial working directory.
79847         * lib/mkdir-p.c (make_dir_parents): New parameter:
79848         different_working_dir, to tell caller if/when we change the working
79849         directory and are unable to return to the initial one.
79850         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79851         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79852         `return false'.  This fixes a bug introduced on 2004-07-30.
79853
79854         * lib/openat.c (fdopendir): Be sure to close the supplied
79855         file descriptor before returning.  This makes our replacement
79856         implementation a little closer to Solaris's, where fdopendir
79857         ties the file descriptor to the returned DIR* pointer.
79858         * lib/openat.c (unlinkat): New function.
79859         * lib/openat.h (unlinkat): Add prototype.
79860         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79861         (openat_restore_fail): Rename from openat_restore_die.
79862         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79863
79864         Provide an alternative to exiting immediately upon save_cwd or
79865         restore_cwd failure.  Now, an application can arrange e.g.,
79866         to perform a longjump in that case.
79867         * lib/openat.c: Include dirname.h.
79868         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79869         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79870         and openat_restore_die rather than calling error directly.
79871         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79872
79873         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79874         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79875         define.
79876
79877         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79878         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79879                             int utc, int nanoseconds);
79880         Background:
79881         date should not have to allocate a megabyte of virtual memory to
79882         handle a format argument like +%1048575T.  When implemented with
79883         strftime, it must allocate such a buffer, use strftime to fill it
79884         in, print it, then free it.
79885         With fprintftime, it simply prints everything and exits.
79886         With no need for memory allocation, that's one fewer way to fail.
79887         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79888         optional field width, not before, so we accept %9:z, not %:9z.
79889         (my_strftime): Be sure to use L_('x') for literals.
79890
79891         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79892         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79893         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79894         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79895         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79896         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79897         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79898         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79899         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79900         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79901         * lib/xgethostname.c, lib/xreadlink.c:
79902         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79903
79904         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79905         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79906         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79907         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79908         and don't include <sys/file.h>).
79909
79910 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79911
79912         Sync from coreutils.
79913
79914         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79915         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79916         [!LDAV_DONE]: Avoid unused variable warning.
79917
79918 2005-09-21  Bruno Haible  <bruno@clisp.org>
79919
79920         * lib/unicodeio.h (unicode_to_mb): New declaration.
79921
79922 2005-09-20  Derek Price  <derek@ximbiot.com>
79923
79924         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79925         getaddrinfo.h.
79926
79927 2005-09-20  Bruno Haible  <bruno@clisp.org>
79928
79929         * gnulib-tool: Remove trailing slashes from the values specified for
79930         --source-base, --m4-base, --tests-base, --aux-dir.
79931         Suggested by Simon Josefsson <jas@extundo.com>.
79932
79933 2005-09-20  Bruno Haible  <bruno@clisp.org>
79934
79935         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79936         func_modules_to_filelist, func_import, func_create_testdir): Make all
79937         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79938         change when gnulib-tool is invoked in a different locale.
79939
79940 2005-09-19  Simon Josefsson  <jas@extundo.com>
79941
79942         * m4/socklen.m4: Fix typo.
79943
79944 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79945
79946         Use a consistent style for including <config.h>.
79947         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79948         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79949         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79950         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79951         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79952         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79953         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79954         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79955         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79956         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79957         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79958         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79959         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79960         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79961         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79962         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79963         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79964         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79965         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79966         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79967         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79968         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79969         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79970         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79971         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79972         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79973         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79974         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79975         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79976         lib/xstrtoumax.c, lib/yesno.c:
79977         Standardize inclusion of config.h.
79978         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79979         lib/inttostr.h:  Removed inclusion of config.h from header files.
79980         * lib/inttostr.c:  Adjusted in-tree users.
79981         * lib/timespec.h: Remove superfluous warning to include config.h.
79982         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79983         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79984         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79985         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79986         config.h with HAVE_CONFIG_H.
79987
79988 2005-09-19  Jim Meyering  <jim@meyering.net>
79989
79990         * modules/pathmax (License): Change to LGPL.
79991
79992 2005-09-19  Derek Price  <derek@ximbiot.com>
79993
79994         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79995
79996 2005-09-19  Bruno Haible  <bruno@clisp.org>
79997
79998         * gnulib-tool (import): Provide default for --tests-base.
79999
80000 2005-09-19  Bruno Haible  <bruno@clisp.org>
80001
80002         * doc/quote.texi: New file, extracted from gnulib.texi.
80003         * doc/ctime.texi: New file, extracted from gnulib.texi.
80004         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80005         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80006         * doc/gnulib.texi: Include them.
80007
80008 2005-09-18  Bruno Haible  <bruno@clisp.org>
80009
80010         Portability fix.
80011         * gnulib-tool (func_readlink): New function.
80012         (func_ln_if_changed): Use it.
80013
80014 2005-09-18  Bruno Haible  <bruno@clisp.org>
80015
80016         * gnulib-tool: Support --with-tests also with --import.
80017         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80018         (func_import): Use variables $testsbase and $inctests. Emit a
80019         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80020         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80021         SUBDIRS += $testsdir.
80022         (func_create_testdir): Update.
80023
80024 2005-09-18  Bruno Haible  <bruno@clisp.org>
80025
80026         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80027         instead of $dry_run.
80028         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80029         (func_ln_if_changed): Don't handle dry-run here.
80030         (func_import): In dry-run mode, detect more precisely which actions
80031         would be performed, and don't use "...ing" verbs.
80032
80033 2005-09-18  Bruno Haible  <bruno@clisp.org>
80034
80035         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80036         (func_import): Use join on two temporary files instead of three nested
80037         loops, in order to determine which files are new or old.
80038
80039 2005-09-18  Bruno Haible  <bruno@clisp.org>
80040
80041         * gnulib-tool (func_import): Comment out code that spits out the
80042         new files with --dry-run.
80043
80044 2005-09-18  Bruno Haible  <bruno@clisp.org>
80045
80046         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80047
80048 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * lib/stat-time.h: New file.
80051         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80052         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80053         in a different way.
80054         (timespec_cmp): New function.
80055         * lib/utimecmp.c: Include stat-time.h.
80056         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80057         members exist, not on the obsolescent ST_MTIM_NSEC.
80058         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80059
80060 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80061
80062         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80063
80064 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * MODULES.html.sh (File system functions): Add stat-time.
80067         * modules/stat-time: New file.
80068         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80069         is now done in a different way, by the stat-time module.
80070         * modules/utimecmp (Depends-on): Add stat-time.
80071
80072 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80073
80074         * m4/st_mtim.m4: Remove.  Superseded by...
80075         * m4/stat-time.m4: New file.
80076         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80077         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80078
80079 2005-09-15  Derek Price  <derek@ximbiot.com>
80080
80081         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80082
80083 2005-09-15  Derek Price  <derek@ximbiot.com>
80084
80085         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80086         * lib/regex_internal.c: Ditto, using this...
80087         (__GNUC_PREREQ): ...new macro.
80088         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80089         using...
80090         (__GNUC_PREREQ): ...this new macro.
80091
80092         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80093
80094 2005-09-15  Derek Price  <derek@ximbiot.com>
80095             Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80098         changes, consolidating in...
80099         * lib/regex_internal.h: ...this file.
80100
80101 2005-09-13  Jim Meyering  <jim@meyering.net>
80102
80103         * lib/canon-host.c: Filter through gnu indent and reword comments
80104         slightly.
80105         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80106
80107 2005-09-13  Derek Price  <derek@ximbiot.com>
80108
80109         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80110         failure.
80111         Reported by Jim Meyering  <jim@meyering.net>.
80112
80113 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80114
80115         * lib/base64.c: Typo.
80116         (base64_encode): Put b64str in initialized data section.
80117
80118 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         Merge glibc and coreutils changes into gnulib, plus a few
80121         extra fixes.
80122         * lib/md5.c: Use #error rather than a string.
80123         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80124         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80125         (__attribute__): Define to empty for non recent-GCC.
80126         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80127         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80128         Renamed from their non-__ counterparts, with new macros replacing
80129         them if not _LIBC.  Add __THROW attribute.
80130         (rol): Remove.
80131         (struct md5_ctx): Align buffer if using GCC.
80132         * lib/sha1.h (struct sha1_ctx): Likewise.
80133         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80134         The old name was backwards.
80135         (NOTSWAP): Remove; not used.
80136         (rol): New macro, moved here from md5.h.
80137         (sha1_process_block): Remove a FIXME that doesn't make sense.
80138
80139 2005-09-12  Derek Price  <derek@ximbiot.com>
80140
80141         Return usable errors from canon-host.
80142         * lib/canon-host.h: New file.
80143         * lib/canon-host.c (canon_host): Wrap...
80144         (canon_host_r): ...this new function, which now relies exclusively on
80145         getaddrinfo.
80146         (ch_strerror): New function.
80147         (last_cherror): New global.
80148         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80149         interface.
80150         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80151         void *.
80152         (freeaddrinfo): Free ai->ai_canonname when set.
80153
80154 2005-09-12  Derek Price  <derek@ximbiot.com>
80155
80156         Make canon-host require getaddrinfo.
80157         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80158         AC_LIBSOURCE canon-host.h.  Call...
80159         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80160         gl_GETADDRINFO.
80161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80162
80163 2005-09-12  Derek Price  <derek@ximbiot.com>
80164
80165         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80166         LGPL.
80167         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80168
80169 2005-09-12  Derek Price  <derek@ximbiot.com>
80170
80171         * lib/gai_strerror.c: Include config.h when available.  Include
80172         getaddrinfo.h before other headers to test interface.
80173         Reported by Larry Jones <lawrence.jones@ugs.com>.
80174
80175 2005-09-12  Derek Price  <derek@ximbiot.com>
80176             Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         * modules/glob (Files): Add glob-libc.h.
80179
80180 2005-09-12  Derek Price  <derek@ximbiot.com>
80181             Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80184         glob_.h, glob-libc.h.
80185         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80186
80187 2005-09-12  Derek Price  <derek@ximbiot.com>
80188             Paul Eggert  <eggert@cs.ucla.edu>
80189
80190         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80191         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80192         protecting things that should be done only in gnulib contexts.
80193         * lib/glob_.h: New file, containing only the glob things needed for
80194         gnulib.
80195         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80196         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80197         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80198         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80199         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80200         and to respect the namespace rules better.
80201
80202 2005-09-08  Simon Josefsson  <jas@extundo.com>
80203
80204         * modules/socklen: New file.
80205
80206 2005-09-08  Simon Josefsson  <jas@extundo.com>
80207
80208         * m4/socklen.m4: New file.
80209
80210 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         * modules/utimens (Files): Add m4/utimbuf.m4, since
80213         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80214         Reported by Sergey Poznyakoff.
80215
80216 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80219         definitions, since that's the preferred style in glibc.
80220         Fix a minor spacing issue, and update copyright notice to match
80221         glibc's.
80222
80223 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80226
80227 2005-09-06  Simon Josefsson  <jas@extundo.com>
80228
80229         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80230         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80231
80232 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80235         warning.
80236
80237 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         * config/srclist.txt: Add glibc bug 1302.
80240
80241 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80242
80243         Change bitset word type from unsigned int to unsigned long int,
80244         as this has better performance on typical 64-bit hosts.
80245         Port bitset code to hosts with unusual word sizes.
80246         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80247         (build_collating_symbol):
80248         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80249         argument is a bitset.  This is merely a style issue, but it makes
80250         it clearer that an entire array is expected.
80251         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80252         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80253         Port to the case where bitset_word is not the same as unsigned int.
80254         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80255         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80256         Likewise.
80257         * lib/regexec.c (check_dst_limits_calc_pos_1,
80258         check_subexp_matching_top):
80259         (build_trtable, group_nodes_into_DFAstates):
80260         Likewise.
80261         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80262         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80263         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80264         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80265         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80266         * lib/regcomp.c (optimize_subexps, lower_subexp):
80267         Work even if bitset_word has holes in its bitwise representation.
80268         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80269         * lib/regexec.c (check_dst_limits_calc_pos_1,
80270         check_subexp_matching_top):
80271         Likewise.
80272         * lib/regex_internal.c (re_string_reconstruct):
80273         Don't assume UCHAR_MAX == 255.
80274         * lib/regex_internal.h (bitset_set_all): Likewise.
80275         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80276         All uses changed.
80277         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80278         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80279         All uses changed.
80280         (BITSET_WORD_MAX): New macro.
80281         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80282         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80283         (bitset_empty, bitset_copy):
80284         Prefer sizeof (bitset) to multiplying it out ourselves.
80285         (bitset_not_merge): Remove; unused.
80286         (bitset_contain): Return bool, not unsigned int with one bit on.
80287         All callers changed.
80288         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80289         alignment than re_node_set; do this by defining a new internal
80290         type struct dests_alloc and using it to allocate memory.
80291
80292 2005-09-05  Bruno Haible  <bruno@clisp.org>
80293
80294         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80295         links.
80296
80297 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80298
80299         * modules/size_max (Makefile.am): Add size_max.h
80300
80301 2005-09-04  Derek Price  <derek@ximbiot.com>
80302
80303         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80304
80305 2005-09-03  Simon Josefsson  <jas@extundo.com>
80306
80307         * gnulib-tool: Fix typo.
80308
80309 2005-09-03  Simon Josefsson  <jas@extundo.com>
80310
80311         * config/srclist.txt: Add glibc bug 1293.
80312
80313 2005-09-03  Derek Price  <derek@ximbiot.com>
80314
80315         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80316         From Larry Jones <lawrence.jones@ugs.com>.
80317
80318 2005-09-02  Simon Josefsson  <jas@extundo.com>
80319
80320         * modules/socklen: New file.
80321
80322 2005-09-02  Simon Josefsson  <jas@extundo.com>
80323
80324         * modules/havelib: New module.
80325
80326         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80327         Use havelib.
80328
80329 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         Check for arithmetic overflow when calculating sizes, to prevent
80332         some buffer-overflow issues.  These patches are conservative, in the
80333         sense that when I couldn't determine whether an overflow was possible,
80334         I inserted a run-time check.
80335         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80336         macros.
80337         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80338         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80339         (re_xnrealloc, re_x2nrealloc): New inline functions.
80340         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80341         parse_bracket_exp):
80342         (build_equiv_class, build_charclass): Check for arithmetic overflow
80343         in size expression calculations.
80344         * lib/regex_internal.c (re_string_realloc_buffers):
80345         (build_wcs_upper_buffer, re_node_set_add_intersect):
80346         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80347         (re_dfa_add_node, register_state): Likewise.
80348         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80349         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80350         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80351         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80352
80353 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80354
80355         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80356         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80357
80358 2005-09-02  Bruno Haible  <bruno@clisp.org>
80359
80360         Support for lib vs. lib64 distinction on biarch platforms.
80361         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80362         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80364
80365 2005-09-02  Bruno Haible  <bruno@clisp.org>
80366
80367         * gnulib-tool (import): In the other first-use case, provide defaults
80368         as well.
80369
80370 2005-09-02  Bruno Haible  <bruno@clisp.org>
80371
80372         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80373         patches not yet found in the latest gettext release.
80374
80375 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80378         to avoid a collision with bits/local_lim.h in glibc.
80379         All uses changed.  Problem reported by Dmitry V. Levin in
80380         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80381
80382         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80383         bugs in int versus size_t comparisons.
80384         (re_string_context_at): Fix bug where the code assumed that
80385         Idx is signed.
80386
80387         Use bool where appropriate.
80388         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80389         All callers changed.
80390         (calc_eclosure_iter): Likewise, for ROOT arg.
80391         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80392         (build_charclass_op): Likewise, for NON_MATCH arg.
80393         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80394         (re_string_construct_common): Likewise, for ICASE arg.
80395         * lib/regexec.c (re_search_2_stub, re_search_stub):
80396         Likewise, for RET_LEN arg.
80397         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80398         (set_regs): Likewise, for FL_BACKTRACK arg.
80399         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80400         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80401         (calc_eclosure_iter, parse_bracket_exp):
80402         Use bool for internal variables that are booleans.
80403         * lib/regexec.c (re_search_internal, check_matching,
80404         proceed_next_node):
80405         (set_regs, build_sifted_states, sift_states_bkref):
80406         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80407         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80408         (find_collation_sequence_value):
80409         Likewise.
80410         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80411         (re_node_set_compare):
80412         Return bool, not int. All callers changed.
80413         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80414         (build_trtable, check_node_accept): Likewise.
80415         * lib/regex_internal.h: Include stdbool.h.
80416
80417         Fix bugs uncovered when converting to bool.
80418         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80419         failure instead of charging ahead blindly.
80420         * lib/regex_internal.c (register_state): Likewise.
80421         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80422         for freeing internal storage.
80423         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80424         bitset pieces used as boolean, to avoid undefined behavior
80425         on hosts that do int overflow checking.
80426
80427 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80428
80429         * config/srclist.txt: Add glibc bugs 1285-1287.
80430
80431 2005-09-01  Jim Meyering  <jim@meyering.net>
80432
80433         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80434         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80435         Require gl_STAT_MACROS, too.
80436
80437 2005-09-01  Bruno Haible  <bruno@clisp.org>
80438
80439         * gnulib-tool (import): In the first-use case, provide defaults.
80440
80441 2005-09-01  Bruno Haible  <bruno@clisp.org>
80442
80443         * gnulib-tool (func_import): Remove the .tmp files.
80444
80445 2005-09-01  Bruno Haible  <bruno@clisp.org>
80446
80447         * gnulib-tool (func_import): Fix handling of symbolic links.
80448
80449 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80452         old glibc regex code mishandles strings longer than 2**31 bytes.
80453         This patch fixes this when the regex code is used in gnulib
80454         (i.e., outside glibc).
80455
80456         This patch should not affect the use of the regex code inside
80457         glibc.  No doubt this problem also needs to be handled for glibc
80458         as well, but the result will be an incompatible change to the
80459         glibc ABI, and the old ABI will have to be supported too.  That
80460         can be the the subject for another patch.
80461
80462         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80463         governing whether the rest of this patch is active.  By default,
80464         the macro is disabled and the patch has no effect.
80465         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80466         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80467         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80468         (re_match_2, re_set_registers): Use the new types.
80469         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80470         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80471         New macros.
80472         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80473         (re_string_context_at, bin_tree_t, re_dfastate_t):
80474         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80475         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80476         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80477         (re_string_char_size_at, re_string_wchar_at):
80478         (re_string_elem_size_at):
80479         Use the new types and macros to port to 64-bit hosts.
80480         Use unsigned types for internal values, so that the code
80481         mostly works even for arrays larger than SSIZE_MAX.
80482         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80483         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80484         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80485         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80486         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80487         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80488         (calc_inveclosure, parse_dup_op, build_range_exp):
80489         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80490         (fetch_number, create_token_tree, mark_opt_subexp):
80491         Likewise.
80492         * lib/regex_internal.c (re_string_construct_common,
80493         create_ci_newstate):
80494         (create_cd_newstate, re_string_allocate, re_string_construct):
80495         (re_string_realloc_buffers, build_wcs_upper_buffer):
80496         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80497         (re_string_reconstruct, re_string_peek_byte_case):
80498         (re_string_fetch_byte_case, re_string_context_at):
80499         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80500         (re_node_set_init_copy, re_node_set_add_intersect):
80501         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80502         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80503         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80504         (re_acquire_state, re_acquire_state_context, register_state):
80505         Likewise.
80506         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80507         search_cur_bkref_entry):
80508         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80509         (re_search_internal, re_search_2_stub, re_search_stub)
80510         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80511         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80512         (update_cur_sifted_state, check_dst_limits):
80513         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80514         (check_subexp_limits, sift_states_bkref, merge_state_array):
80515         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80516         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80517         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80518         (expand_bkref_cache, check_node_accept_bytes):
80519         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80520         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80521         (acquire_init_state_context, check_halt_node_context):
80522         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80523         (sift_states_backward, clean_state_log_if_needed):
80524         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80525         (find_recover_state, transit_state_sb, transit_state_mb):
80526         (transit_state_bkref, build_trtable, match_ctx_clean):
80527         Likewise.
80528         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80529         to work around an assumption that REG_MISSING is negative.
80530
80531         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80532         (seek_collating_symbol_entry) [defined _LIBC]:
80533         (lookup_collation_sequence_value) [defined _LIBC]:
80534         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80535         Use prototypes rather than old-style function definitions.
80536         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80537         (transit_state_sb) [0]:
80538         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80539
80540         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80541         rm_eo.
80542
80543         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80544         (optimize_subexps, lower_subexp):
80545         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80546         since the signed shift might overflow.  Use 1u<<31 instead.
80547         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80548         Likewise.
80549         * lib/regexec.c (check_dst_limits_calc_pos_1,
80550         check_subexp_matching_top): Likewise.
80551
80552         * lib/regcomp.c (optimize_subexps, lower_subexp):
80553         Use CHAR_BIT rather than 8, for clarity.
80554         * lib/regexec.c (check_dst_limits_calc_pos_1):
80555         (check_subexp_matching_top): Likewise.
80556         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80557         have to worry about portability issues when shifting it left.
80558         Remove no-longer-needed test for table_size > 0.
80559         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80560         in a word, as the resulting behavior is undefined.
80561         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80562         in one case, a <= should have been an <, and in another case the
80563         whole test was missing.
80564         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80565         the standard name CHAR_BIT.
80566         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80567         this is not true on one's complement and signed-magnitude hosts.
80568
80569         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80570         next_last_offset.
80571         (struct re_dfa_t): Remove unused member states_alloc.
80572         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80573
80574 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80577         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80578         and large-file glibc and in 32-bit large-file Solaris.
80579
80580 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80581
80582         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80583         lengths fit in regoff_t; this isn't true if regoff_t is the same
80584         width as size_t.
80585         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80586         (= START + RANGE) instead of RANGE.  This avoids overflow
80587         problems when regoff_t is the same width as size_t.
80588         All callers changed.
80589         (re_search_2_stub): Check for overflow when adding the
80590         sizes of the two strings.
80591         (re_search_stub): Check for overflow when adding START
80592         to RANGE; if it occurs, substitute the extreme value.
80593
80594 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80595
80596         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80597
80598 2005-08-31  Jim Meyering  <jim@meyering.net>
80599
80600         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80601         a pointer-to-const.
80602         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80603         (register_state): Likewise.
80604         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80605         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80606         (group_nodes_into_DFAstates): Likewise.
80607
80608 2005-08-31  Jim Meyering  <jim@meyering.net>
80609
80610         * check-module: Add a FIXME comment.
80611
80612 2005-08-31  Eric Blake  <ebb9@byu.net>
80613
80614         * modules/unistd-safer (Files): Add unistd--.h.
80615         * modules/stdio-safer (Files): Add stdio--.h.
80616
80617 2005-08-31  Derek Price  <derek@ximbiot.com>
80618
80619         * lib/getdelim.c (getdelim): Return EOF on EOF.
80620         Reported by Larry Jones <lawrence.jones@ugs.com>.
80621
80622 2005-08-31  Bruno Haible  <bruno@clisp.org>
80623
80624         Avoid unnecessary diffs in the generated lib/Makefile.am.
80625         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80626         the generated files.
80627         (func_import): Don't set cmd.
80628
80629 2005-08-31  Bruno Haible  <bruno@clisp.org>
80630
80631         * lib/strstr.c: Include <stddef.h>, for NULL.
80632         * lib/strcasestr.c: Likewise.
80633         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80634
80635 2005-08-31  Bruno Haible  <bruno@clisp.org>
80636
80637         * gnulib-tool: New option --macro-prefix.
80638         (func_import): Use macro_prefix.
80639         (import): Handle option --macro-prefix.
80640
80641 2005-08-31  Bruno Haible  <bruno@clisp.org>
80642
80643         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80644         Also use new variables cached_lgpl, cached_libtool.
80645
80646 2005-08-31  Bruno Haible  <bruno@clisp.org>
80647
80648         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80649         always instantiating them.
80650
80651 2005-08-31  Bruno Haible  <bruno@clisp.org>
80652
80653         * gnulib-tool (func_import): Read the previous cached settings
80654         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80655         earlier added by gnulib but are now dropped. Warn when a gnulib file
80656         overwrites a non-gnulib file.
80657
80658 2005-08-31  Bruno Haible  <bruno@clisp.org>
80659
80660         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80661         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80662         projects that don't keep autogenerated files in CVS. Put into
80663         actioncmd only the specified modules, not the transitive closure.
80664
80665 2005-08-31  Bruno Haible  <bruno@clisp.org>
80666
80667         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80668         Create directories that shall be filled.
80669         (import): Don't look for gl_* macros in configure.ac. Recurse across
80670         all directories containing a gnulib-cache.m4 files, if meaningful.
80671
80672 2005-08-31  Bruno Haible  <bruno@clisp.org>
80673
80674         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80675         (import): Set seen_libtool when we see gl_LIBTOOL.
80676
80677 2005-08-31  Bruno Haible  <bruno@clisp.org>
80678
80679         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80680         declaration macro definitions from generated gnulib.m4.
80681
80682 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80683
80684         * lib/iconvme.h: Add prototype for iconv_alloc.
80685
80686 2005-08-29  Simon Josefsson  <jas@extundo.com>
80687
80688         * lib/iconvme.c: Fix errno.
80689
80690 2005-08-29  Bruno Haible  <bruno@clisp.org>
80691
80692         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80693         that it works when the directory contains spaces.
80694
80695 2005-08-29  Bruno Haible  <bruno@clisp.org>
80696
80697         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80698
80699 2005-08-29  Bruno Haible  <bruno@clisp.org>
80700
80701         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80702         Emit more advice.
80703
80704 2005-08-29  Bruno Haible  <bruno@clisp.org>
80705         and Stepan Kasal  <kasal@ucw.cz>
80706
80707         * check-module: If more parameters are given, check each of them
80708         separately; add more exceptions, as noted by Jim Meyering.
80709         (check_module): New procedure.
80710         (%exempt_header): Now contains all exceptions.
80711
80712 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80713
80714         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80715
80716 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80717
80718         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80719
80720 2005-08-28  Bruno Haible  <bruno@clisp.org>
80721
80722         * m4/gnulib-tool.m4: New file.
80723
80724 2005-08-27  Jim Meyering  <jim@meyering.net>
80725
80726         * modules/unistd-safer (Files): Add pipe-safer.c.
80727         * modules/fcntl-safer (Files): Add creat-safer.c.
80728
80729 2005-08-27  Jim Meyering  <jim@meyering.net>
80730
80731         * m4/stdlib-safer.m4: New file.  From coreutils.
80732         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80733         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80734         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80735         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80736         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80737
80738 2005-08-27  Jim Meyering  <jim@meyering.net>
80739
80740         * lib/fopen-safer.c: Merge minor changes from coreutils.
80741         * lib/dup-safer.c: Likewise.
80742         * lib/fd-safer.c: Likewise.
80743
80744         Merge from coreutils.
80745         * lib/stdio--.h: New file.
80746         * lib/stdlib--.h: New file.
80747         * lib/mkstemp-safer.c: New file.
80748
80749         GNU tar needs these.
80750         * lib/pipe-safer.c: New file.
80751         * lib/creat-safer.c: New file.
80752         * lib/fcntl--.h (creat): Define to creat_safer.
80753         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80754         * lib/unistd--.h (pipe): Define to pipe_safer.
80755         * lib/unistd-safer.h: Declare pipe_safer.
80756
80757 2005-08-26  Simon Josefsson  <jas@extundo.com>
80758
80759         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80760         Haible <bruno@clisp.org>.
80761
80762 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80763
80764         * lib/regex_internal.h: Remove all references to
80765         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80766         or better.
80767         (bitset_not, bitset_merge, bitset_not_merge):
80768         (bitset_mask, re_string_allocate, re_string_construct):
80769         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80770         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80771         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80772         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80773         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80774         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80775         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80776         (re_acquire_state_context):
80777         Remove unnecessary forward decls.
80778         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80779         Put __attribute at function definition,
80780         now that the function decl has been removed.
80781         * lib/regex_internal.c (re_string_peek_byte_case):
80782         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80783         Likewise.
80784
80785 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80786
80787         * m4/regex.m4: Add AC_PREREQ(2.50).
80788         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80789
80790 2005-08-25  Simon Josefsson  <jas@extundo.com>
80791
80792         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80793         __fsetlocking.
80794
80795 2005-08-25  Simon Josefsson  <jas@extundo.com>
80796
80797         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80798         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80799         GLIBC specific code.
80800
80801 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80802
80803         Make regex safe for g++.  This fixes one real bug (an "err"
80804         that should have been "*err").  g++ problem reported by
80805         Sam Steingold.
80806         * lib/regex_internal.h (re_calloc): New macro, consistent with
80807         re_malloc etc.  All callers of calloc changed to use re_calloc.
80808         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80809         not int.  All callers changed.
80810         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80811         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80812         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80813         (find_recover_state): Change "err" to "*err"; this fixes what
80814         appears to be a real bug.
80815         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80816         versus int.
80817
80818 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * modules/regex (Depends-on): Add malloc, since the code
80821         assumes that !malloc(0) means failure.
80822
80823 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80826
80827         alloca modernization/simplification for regex.
80828         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80829         needs to be at the start of the file, and can be moved into
80830         regex_internal.h and simplified.
80831         * lib/regex_internal.h: Include <alloca.h>.
80832         (__libc_use_alloca) [!defined _LIBC]: New macro.
80833         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80834         now works outside glibc.
80835
80836 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         * config/srclist.txt: Add glibc bugs 1241, 1245.
80839
80840 2005-08-25  Jim Meyering  <jim@meyering.net>
80841
80842         * lib/open-safer.c: Include <config.h>.
80843         Otherwise, we'd lose LARGEFILE support in any file using
80844         e.g. "fcntl--.h"
80845
80846 2005-08-25  Bruno Haible  <bruno@clisp.org>
80847
80848         * m4/minmax.m4: Require autoconf 2.52.
80849         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80850         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80851         alternatives of translit over the alphabet.
80852         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80853
80854 2005-08-24  Simon Josefsson  <jas@extundo.com>
80855
80856         * tests/test-getpass.c: New file.
80857
80858 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80859
80860         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80861         for GNU regex features.
80862
80863 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80866         * lib/regex.h (regerror): Likewise.
80867
80868         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80869         requires this.  (The code never needed it.)
80870
80871         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80872         All uses of recently-renamed identifiers changed to use the new,
80873         POSIX-compliant names.  The code will build and run just fine
80874         without these changes, but it's better to eat our own dog food
80875         and use the standard-conforming names.
80876
80877         * lib/regex.h: Fix a multitude of POSIX name space violations.
80878         These changes have an effect only for programs that define
80879         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80880         do not change anything for programs compiled in the normal way.
80881         Also, there is no effect on the ABI.
80882
80883         (_REGEX_SOURCE): New macro.
80884         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80885         defined and _GNU_SOURCE is not; this fixes a name space violation.
80886
80887         Rename the following macros to obey POSIX requirements.
80888         The old names are still visible as macros if _REGEX_SOURCE is defined.
80889         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80890         RE_BACKSLASH_ESCAPE_IN_LISTS.
80891         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80892         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80893         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80894         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80895         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80896         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80897         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80898         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80899         (REG_INTERVALS): renamed from RE_INTERVALS.
80900         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80901         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80902         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80903         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80904         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80905         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80906         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80907         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80908         RE_UNMATCHED_RIGHT_PAREN_ORD.
80909         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80910         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80911         (REG_DEBUG): renamed from RE_DEBUG.
80912         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80913         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80914         unusual, since we can't clash with the POSIX REG_ICASE.
80915         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80916         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80917         (REG_NO_SUB): renamed from RE_NO_SUB.
80918         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80919         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80920         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80921         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80922         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80923         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80924         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80925         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80926         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80927         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80928         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80929         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80930         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80931         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80932         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80933         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80934         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80935         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80936         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80937         (REG_FIXED): Renamed from REGS_FIXED.
80938         (REG_NREGS): Renamed from RE_NREGS.
80939
80940         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80941         of other REG_* macros, since POSIX says the user is allowed to
80942         #undef these macros selectively.
80943
80944         (reg_errcode_t): Update comment stating what other tables need
80945         to be consistent.
80946
80947         Rename the following enum values to obey POSIX requirements.
80948         The old names are still visible as macros.
80949         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80950         is not defined, since GNU is supposed to be a superset of POSIX as
80951         much as possible, and since we want reg_errcode_t to be a signed
80952         type for implementation consistency.
80953         (_REG_NOERROR): Renamed from REG_NOERROR.
80954         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80955         (_REG_BADPAT): Renamed from REG_BADPAT.
80956         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80957         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80958         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80959         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80960         (_REG_EBRACK): Renamed from REG_EBRACK.
80961         (_REG_EPAREN): Renamed from REG_EPAREN.
80962         (_REG_EBRACE): Renamed from REG_EBRACE.
80963         (_REG_BADBR): Renamed from REG_BADBR.
80964         (_REG_ERANGE): Renamed from REG_ERANGE.
80965         (_REG_ESPACE): Renamed from REG_ESPACE.
80966         (_REG_BADRPT): Renamed from REG_BADRPT.
80967         (_REG_EEND): Renamed from REG_EEND.
80968         (_REG_ESIZE): Renamed from REG_ESIZE.
80969         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80970         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80971         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80972         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80973         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80974
80975         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80976         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80977         changed.  But support the old name if the new one is not defined
80978         and if _REGEX_SOURCE.
80979
80980         Change the following member names in struct re_pattern_buffer.
80981         The old names are still supported if !_REGEX_SOURCE.
80982         The new names are always supported, regardless of _REGEX_SOURCE.
80983         (re_buffer): Renamed from buffer.
80984         (re_allocated): Renamed from allocated.
80985         (re_used): Renamed from used.
80986         (re_syntax): Renamed from syntax.
80987         (re_fastmap): Renamed from fastmap.
80988         (re_translate): Renamed from translate.
80989         (re_can_be_null): Renamed from can_be_null.
80990         (re_regs_allocated): Renamed from regs_allocated.
80991         (re_fastmap_accurate): Renamed from fastmap_accurate.
80992         (re_no_sub): Renamed from no_sub.
80993         (re_not_bol): Renamed from not_bol.
80994         (re_not_eol): Renamed from not_eol.
80995         (re_newline_anchor): Renamed from newline_anchor.
80996
80997         Change the following member names in struct re_registers.
80998         The old names are still supported if !_REGEX_SOURCE.
80999         The new names are always supported, regardless of _REGEX_SOURCE.
81000         (rm_num_regs): Renamed from num_regs.
81001         (rm_start): Renamed from start.
81002         (rm_end): Renamed from end.
81003
81004         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81005         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81006         Prepend __ to parameter names.
81007
81008         Undo yesterday's changes.
81009
81010 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81011
81012         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81013         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81014         lib/regex.c.
81015
81016 2005-08-24  Jim Meyering  <jim@meyering.net>
81017
81018         Sync from coreutils.
81019         * m4/fcntl-safer.m4: New file.
81020
81021         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81022         and object files for this module.
81023
81024 2005-08-24  Jim Meyering  <jim@meyering.net>
81025
81026         Sync from coreutils.
81027         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81028
81029 2005-08-24  Jim Meyering  <jim@meyering.net>
81030
81031         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81032         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81033
81034 2005-08-24  Jim Meyering  <jim@meyering.net>
81035
81036         * modules/fcntl-safer: New module.
81037         * modules/fts (Depends-on): Add fcntl-safer.
81038         * MODULES.html.sh (File descriptor based Input/Output):
81039         Add fcntl-safer.
81040
81041 2005-08-24  Bruno Haible  <bruno@clisp.org>
81042
81043         Support for unit test modules.
81044         * modules/README: Mention tests modules.
81045         * modules/TEMPLATE-TESTS: New file.
81046         * gnulib-tool: New options --extract-tests-module, --with-tests and
81047         --tests-base (unused for the moment).
81048         (testsbase, inctests): New variables.
81049         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81050         (func_verify_module): Exclude TEMPLATE-TESTS.
81051         (func_verify_nontests_module, func_verify_tests_module): New functions.
81052         (func_get_dependencies): Add implicit dependency for tests modules.
81053         (func_get_tests_module): New function.
81054         (func_modules_transitive_closure): When --with-tests was specified,
81055         include the unit tests as well, unless explicitly avoided.
81056         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81057         (func_emit_tests_Makefile_am): New function.
81058         (func_create_testdir): When --with-tests was specified, emit a
81059         tests/ directory.
81060         * MODULES.html.sh (Future developments): Update.
81061
81062 2005-08-24  Bruno Haible  <bruno@clisp.org>
81063
81064         * modules/tls-tests: New file.
81065         * tests/test-tls.c: New file, from GNU gettext.
81066
81067 2005-08-24  Bruno Haible  <bruno@clisp.org>
81068
81069         * modules/lock-tests: New file.
81070         * tests/test-lock.c: New file, from GNU gettext.
81071
81072 2005-08-24  Bruno Haible  <bruno@clisp.org>
81073
81074         * lib/lock.h: Add multiple inclusion guard.
81075         * lib/tls.h: Add multiple inclusion guard.
81076
81077 2005-08-24  Bruno Haible  <bruno@clisp.org>
81078
81079         * gnulib-tool: Add support for the --aux-dir option to
81080         --create-testdir, --create-megatestdir, --test, --megatest.
81081         (func_create_testdir, func_create_megatestdir): Optionally emit a
81082         AC_CONFIG_AUX_DIR directive.
81083         (create-testdir, create-megatestdir, test, megatest): Provide a
81084         default value for $auxdir.
81085
81086 2005-08-24  Bruno Haible  <bruno@clisp.org>
81087
81088         * gnulib-tool (import): Use compound statement instead of subshell
81089         where possible.
81090
81091 2005-08-24  Bruno Haible  <bruno@clisp.org>
81092
81093         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81094
81095 2005-08-24  Bruno Haible  <bruno@clisp.org>
81096
81097         * gnulib-tool (func_version): Update.
81098
81099 2005-08-24  Bruno Haible  <bruno@clisp.org>
81100
81101         * gnulib-tool (func_import, func_create_testdir,
81102         func_create_megatestdir): Quote all autoconf macro arguments.
81103
81104 2005-08-24  Bruno Haible  <bruno@clisp.org>
81105
81106         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81107         option --force, because --force causes the aclocal.m4 of each
81108         subdirectory to be newer than the corresponding config.h.in.
81109
81110 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81113         All contents moved to gl_REGEX.
81114         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81115         assume that it does.
81116
81117 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81118
81119         * lib/regex.h (REG_NOSYS)
81120         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81121         Define, since POSIX requires it as of 2001.
81122         (_REG_ENOSYS)
81123         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81124         New private symbol, used to keep the enum signed in all cases.
81125         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81126         Youngman in
81127         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81128
81129         * lib/regex_internal.c (re_string_skip_chars, register_state):
81130         (calc_state_hash):
81131         Remove forward decls; no longer needed now that we use prototypes.
81132         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81133         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81134         (clean_state_log_if_needed): Likewise.
81135
81136 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81137
81138         * config/srclist.txt: Add glibc bugs 1231-1233.
81139
81140 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         Fix problems reported by Sam Steingold in
81143         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81144         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81145         assumed that reg_errcode_t is a signed type, which is not
81146         necessarily true if _XOPEN_SOURCE is not defined.
81147         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81148         since some compilers warn about it otherwise.
81149
81150 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81151
81152         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81153         (init_word_char, create_initial_state, duplicate_node_closure):
81154         (fetch_token, peek_token_bracket, build_range_exp):
81155         (build_collating_symbol): Remove forward decls; no longer needed
81156         now that we use prototypes.
81157
81158         * lib/regcomp.c:
81159         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81160         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81161         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81162         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81163         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81164         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81165         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81166         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81167         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81168         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81169         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81170         (build_charclass, build_charclass_op, fetch_number, create_tree):
81171         (create_token_tree, mark_opt_subexp, duplicate_tree):
81172         Use prototypes rather than old-style definitions.
81173
81174         * lib/regex_internal.c:
81175         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81176         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81177         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81178         (re_string_reconstruct, re_string_peek_byte_case):
81179         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81180         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81181         (re_node_set_init_copy, re_node_set_add_intersect):
81182         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81183         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81184         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81185         (re_acquire_state, re_acquire_state_context, register_state):
81186         (create_ci_newstate, create_cd_newstate, free_state):
81187         Likewise.
81188         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81189         re_search_2):
81190         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81191         (re_search_internal, prune_impossible_nodes):
81192         (acquire_init_state_context, check_matching, static):
81193         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81194         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81195         (update_regs, sift_states_backward, build_sifted_states):
81196         (clean_state_log_if_needed, merge_state_array):
81197         (update_cur_sifted_state, add_epsilon_src_nodes):
81198         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81199         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81200         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81201         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81202         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81203         (check_arrival, check_arrival_add_next_nodes):
81204         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81205         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81206         (check_node_accept_bytes, check_node_accept, extend_buffers):
81207         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81208         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81209         (sift_ctx_init):
81210         Likewise.
81211
81212         * lib/regex_internal.h:
81213         (re_string_allocate, re_string_construct, re_string_reconstruct):
81214         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81215         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81216         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81217         (re_string_context_at, re_string_peek_byte_case):
81218         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81219         is defined, since we now use prototypes always.
81220
81221         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81222         C89 or better.  All uses removed.
81223
81224 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81225
81226         * config/srclist.txt: Add glibc bugs 1220-1227.
81227
81228 2005-08-20  Jim Meyering  <jim@meyering.net>
81229
81230         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81231         of unused local, dfa.
81232
81233 2005-08-20  Bruno Haible  <bruno@clisp.org>
81234
81235         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81236
81237 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81240         (re_node_set_insert_last, re_dfa_add_node):
81241         Rename local variables to avoid GCC shadowing warnings.
81242
81243 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81246         [defined lint]: Suppress bogus uninitialized-variable warnings.
81247
81248         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81249         and let the caller return REG_ESPACE if out of space.  This
81250         removes an uninitialied-variable warning with GCC 4.0.1, and also
81251         avoids taking the address of a local variable.  All callers
81252         changed.
81253
81254 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81257         $LIBCSRC/posix/regexec.c.
81258         Add glibc bug 1217 for regcomp.c.
81259
81260 2005-08-19  Jim Meyering  <jim@meyering.net>
81261
81262         * lib/regexec.c (proceed_next_node): Redo local variables to
81263         avoid GCC shadowing warnings.
81264
81265 2005-08-18  Bruno Haible  <bruno@clisp.org>
81266
81267         * lib/strstr.c (strstr): Fix return value in multibyte case.
81268         * lib/strcasestr.c (strcasestr): Likewise.
81269
81270 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81273
81274 2005-08-17  Jim Meyering  <jim@meyering.net>
81275
81276         Make the %s format (seconds since the epoch) work for a negative
81277         number and when used with a zero-padded field width, e.g. %015s.
81278
81279         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81280         label so that it precedes the code to set `digits'.  Otherwise,
81281         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81282         print `00-22'.  Now, it prints `-0022', as it should.
81283
81284 2005-08-17  Bruno Haible  <bruno@clisp.org>
81285
81286         * modules/strstr (Files): Add m4/mbrtowc.m4.
81287         (Depends-on): Add mbuiter.
81288
81289 2005-08-17  Bruno Haible  <bruno@clisp.org>
81290
81291         * modules/strcasestr: New file.
81292         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81293         strcasestr.
81294
81295 2005-08-17  Bruno Haible  <bruno@clisp.org>
81296
81297         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81298
81299 2005-08-17  Bruno Haible  <bruno@clisp.org>
81300
81301         * modules/mbuiter: New file.
81302         * MODULES.html.sh (Extended multibyte and wide character utilities):
81303         Add mbuiter.
81304
81305 2005-08-17  Bruno Haible  <bruno@clisp.org>
81306
81307         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81308         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81309
81310 2005-08-17  Bruno Haible  <bruno@clisp.org>
81311
81312         * m4/strcasestr.m4: New file.
81313
81314 2005-08-17  Bruno Haible  <bruno@clisp.org>
81315
81316         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81317         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81318
81319 2005-08-17  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/strcasestr.h: New file.
81322         * lib/strcasestr.c: New file.
81323
81324 2005-08-17  Bruno Haible  <bruno@clisp.org>
81325
81326         * lib/strcasecmp.c: Use mbuiter.h.
81327
81328 2005-08-17  Bruno Haible  <bruno@clisp.org>
81329
81330         * lib/mbuiter.h: New file.
81331
81332 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81333
81334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81335         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81336         and gl_GETOPT are both invoked via different paths (as happens
81337         with GNU tar CVS because it uses both argp and getopt), the former
81338         wins.
81339
81340 2005-08-16  Bruno Haible  <bruno@clisp.org>
81341
81342         * modules/tls: New file.
81343         * MODULES.html.sh (Multithreading): Add tls.
81344
81345 2005-08-16  Bruno Haible  <bruno@clisp.org>
81346
81347         * modules/strnlen1: New file.
81348         * MODULES.html.sh (String handling): Add strnlen1.
81349
81350 2005-08-16  Bruno Haible  <bruno@clisp.org>
81351
81352         * modules/strcase (Files): Add m4/mbrtowc.m4.
81353         (Depends-on): Add strnlen1, mbchar.
81354
81355 2005-08-16  Bruno Haible  <bruno@clisp.org>
81356
81357         * modules/mbiter: New file.
81358         * MODULES.html.sh (Extended multibyte and wide character utilities):
81359         Add mbiter.
81360
81361 2005-08-16  Bruno Haible  <bruno@clisp.org>
81362
81363         * modules/mbfile: New file.
81364         * MODULES.html.sh (Extended multibyte and wide character utilities):
81365         Add mbfile.
81366
81367 2005-08-16  Bruno Haible  <bruno@clisp.org>
81368
81369         * modules/mbchar: New file.
81370         * MODULES.html.sh (Extended multibyte and wide character utilities):
81371         New section.
81372
81373 2005-08-16  Bruno Haible  <bruno@clisp.org>
81374
81375         * m4/tls.m4: New file, from GNU gettext.
81376
81377 2005-08-16  Bruno Haible  <bruno@clisp.org>
81378
81379         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81380         always.
81381         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81382
81383 2005-08-16  Bruno Haible  <bruno@clisp.org>
81384
81385         * m4/mbiter.m4: New file.
81386
81387 2005-08-16  Bruno Haible  <bruno@clisp.org>
81388
81389         * m4/mbfile.m4: New file.
81390
81391 2005-08-16  Bruno Haible  <bruno@clisp.org>
81392
81393         * m4/mbchar.m4: New file.
81394
81395 2005-08-16  Bruno Haible  <bruno@clisp.org>
81396
81397         * lib/tls.h: New file, from GNU gettext.
81398         * lib/tls.c: New file, from GNU gettext.
81399
81400 2005-08-16  Bruno Haible  <bruno@clisp.org>
81401
81402         * lib/strnlen1.h: New file.
81403         * lib/strnlen1.c: New file.
81404
81405 2005-08-16  Bruno Haible  <bruno@clisp.org>
81406
81407         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81408         (mbi_init): Update.
81409         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81410         NUL byte, not after it.
81411
81412 2005-08-16  Bruno Haible  <bruno@clisp.org>
81413
81414         * lib/strcase.h (strcasecmp): Add note in comments.
81415         * lib/strncasecmp.c: Use code from strcasecmp.c.
81416         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81417         (strcasecmp): Work correctly in multibyte locales.
81418
81419 2005-08-16  Bruno Haible  <bruno@clisp.org>
81420
81421         * lib/mbiter.h: New file.
81422
81423 2005-08-16  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/mbfile.h: New file.
81426
81427 2005-08-16  Bruno Haible  <bruno@clisp.org>
81428
81429         * lib/mbchar.h: New file.
81430         * lib/mbchar.c: New file.
81431
81432 2005-08-16  Bruno Haible  <bruno@clisp.org>
81433
81434         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81435         the valid ones. Makes the comparison operations transitive:
81436         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81437         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81438
81439 2005-08-15  Simon Josefsson  <jas@extundo.com>
81440
81441         * modules/ssize_t (License): Change to 'unlimited'.
81442
81443         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81444
81445 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81446
81447         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81448         Add comments for each pending glibc patch.
81449
81450 2005-08-15  Bruno Haible  <bruno@clisp.org>
81451
81452         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81453         __cplusplus is defined.
81454
81455 2005-08-14  Jim Meyering  <jim@meyering.net>
81456
81457         Sync from coreutils.
81458
81459         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81460         Use the hash-table-based cycle-detection code not just when
81461         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81462         Reported by James Youngman in
81463         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81464         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81465         FTS_TIGHT_CYCLE_CHECK.
81466         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81467         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81468         once again.
81469         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81470         * lib/fts.c (fd_safer): Remove decl.
81471         Include fcntl--.h rather than unistd-safer.h
81472         (fts_safe_changedir): Don't call fd_safer; no longer needed
81473         now that we include fcntl--.h.
81474
81475 2005-08-12  Simon Josefsson  <jas@extundo.com>
81476
81477         * modules/getndelim2: Use ssize_t module.
81478         * modules/getnline: Likewise.
81479         * modules/safe-read: Likewise.
81480         * modules/xreadlink: Likewise.
81481
81482         * modules/ssize_t: New file.
81483
81484 2005-08-12  Simon Josefsson  <jas@extundo.com>
81485
81486         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81487
81488 2005-08-12  Simon Josefsson  <jas@extundo.com>
81489
81490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81491         ssize_t.
81492
81493 2005-08-12  Simon Josefsson  <jas@extundo.com>
81494
81495         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81496         readline, getdelim and check_version.
81497         (Support for systems lacking ISO C 99: Sizes of integer types):
81498         Add size_max.
81499
81500 2005-08-12  Bruno Haible  <bruno@clisp.org>
81501
81502         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81503
81504 2005-08-11  Simon Josefsson  <jas@extundo.com>
81505
81506         * modules/readline: New file.
81507
81508         * modules/strnlen (Files): Add strnlen.h.
81509
81510 2005-08-11  Simon Josefsson  <jas@extundo.com>
81511
81512         * m4/readline.m4: New file.
81513
81514 2005-08-11  Simon Josefsson  <jas@extundo.com>
81515
81516         * lib/readline.h, readline.c: New file.
81517
81518 2005-08-11  Simon Josefsson  <jas@extundo.com>
81519
81520         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81521         gl_AVOID.
81522
81523 2005-08-11  Bruno Haible  <bruno@clisp.org>
81524
81525         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81526
81527 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81528
81529         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81530
81531 2005-08-10  Simon Josefsson  <jas@extundo.com>
81532
81533         * tests/test-iconvme.c: New file.
81534
81535 2005-08-10  Simon Josefsson  <jas@extundo.com>
81536
81537         * m4/strnlen.m4: New file.
81538
81539         * m4/strndup.m4: Don't check for strnlen declaration, done in
81540         strnlen.m4.
81541
81542 2005-08-10  Simon Josefsson  <jas@extundo.com>
81543
81544         * lib/strndup.c: Use strnlen.h.
81545
81546         * lib/strnlen.h: New file.
81547
81548 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81549
81550         * README: Typos.
81551
81552 2005-08-02  Simon Josefsson  <jas@extundo.com>
81553
81554         * modules/readline: New file.
81555
81556 2005-08-02  Simon Josefsson  <jas@extundo.com>
81557
81558         * modules/getdelim: New file.
81559
81560         * modules/getline: Rewrite, don't use getndelim2.
81561
81562 2005-08-02  Simon Josefsson  <jas@extundo.com>
81563
81564         * m4/getline.m4: Separate out getdelim stuff into separate module.
81565
81566         * m4/getdelim.m4: New file.
81567
81568 2005-08-02  Simon Josefsson  <jas@extundo.com>
81569
81570         * lib/getline.h, getline.c: Rewrite.
81571
81572         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81573
81574 2005-07-31  Bruno Haible  <bruno@clisp.org>
81575
81576         * lib/lock.h (gl_lock_initializer): New macro.
81577         (gl_lock_define_initialized): Use it.
81578         (gl_rwlock_initializer): New macro.
81579         (gl_rwlock_define_initialized): Use it.
81580         (gl_recursive_lock_initializer): New macro.
81581         (gl_recursive_lock_define_initialized): Use it.
81582
81583 2005-07-30  Karl Berry  <karl@gnu.org>
81584
81585         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81586         Report from Ben Pfaff, regarding getopt.
81587
81588 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81589
81590         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81591         normal way.
81592         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81593         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81594         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81595         (gl_GETOPT): Use the new macros.  Most of the implementation
81596         is moved to the new macros.  This is for programs like Emacs
81597         that don't want all the functionality of gl_GETOPT.
81598
81599 2005-07-26  Bruno Haible  <bruno@clisp.org>
81600
81601         * m4/lock.m4: Update from GNU gettext.
81602
81603 2005-07-26  Bruno Haible  <bruno@clisp.org>
81604
81605         * lib/lock.h: Update from GNU gettext.
81606         * lib/lock.c: Update from GNU gettext.
81607
81608 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81611         obsolescent AC_TRY_RUN.  Include the default includes files, for
81612         'exit'.
81613
81614 2005-07-24  Bruno Haible  <bruno@clisp.org>
81615
81616         * modules/visibility: New file.
81617         * MODULES.html.sh (Misc): Add visibility.
81618
81619 2005-07-24  Bruno Haible  <bruno@clisp.org>
81620
81621         * m4/visibility.m4: New file.
81622
81623 2005-07-24  Bruno Haible  <bruno@clisp.org>
81624
81625         * doc/visibility.texi: New file.
81626
81627 2005-07-22  Bruno Haible  <bruno@clisp.org>
81628
81629         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81630         $(ALLOCA_H), redundant through BUILT_SOURCES.
81631         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81632         redundant through BUILT_SOURCES.
81633         * modules/byteswap (Makefile.am): Remove explicit dependency on
81634         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81635         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81636         $(FNMATCH_H), redundant through BUILT_SOURCES.
81637         * modules/getopt (Makefile.am): Remove explicit dependency on
81638         $(GETOPT_H), redundant through BUILT_SOURCES.
81639         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81640         redundant through BUILT_SOURCES.
81641         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81642         redundant through BUILT_SOURCES.
81643         * modules/stdbool (Makefile.am): Remove explicit dependency on
81644         $(STDBOOL_H), redundant through BUILT_SOURCES.
81645         * modules/stdint (Makefile.am): Remove explicit dependency on
81646         $(STDINT_H), redundant through BUILT_SOURCES.
81647         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81648         Remove explicit dependency on $(SYSEXITS_H).
81649         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81650
81651 2005-07-18  Simon Josefsson  <jas@extundo.com>
81652
81653         * lib/check-version.c (check_version): Accept identical versions too.
81654
81655 2005-07-18  Bruno Haible  <bruno@clisp.org>
81656
81657         * modules/lock: New file.
81658         * MODULES.html.sh (Multithreading): New section.
81659
81660 2005-07-18  Bruno Haible  <bruno@clisp.org>
81661
81662         * m4/lock.m4: New file, from GNU gettext.
81663
81664 2005-07-18  Bruno Haible  <bruno@clisp.org>
81665
81666         * lib/lock.h: New file, from GNU gettext.
81667         * lib/lock.c: New file, from GNU gettext.
81668
81669 2005-07-18  Bruno Haible  <bruno@clisp.org>
81670
81671         * lib/lock.h (gl_once_t): New type.
81672         (gl_once_define, gl_once): New macros.
81673         * lib/lock.c (fresh_once): New variable.
81674         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81675         functions.
81676
81677 2005-07-16  Simon Josefsson  <jas@extundo.com>
81678
81679         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81680         workaround, suggested by Bruno.
81681
81682 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81683
81684         * modules/xalloc (Depends-on): Add xalloc-die.
81685         * modules/xvasprintf (Depends-on): Add xalloc-die.
81686
81687 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81688
81689         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81690         with a minor change.
81691
81692 2005-07-15  Bruno Haible  <bruno@clisp.org>
81693
81694         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81695         When using lib/poll.c, define poll as rpl_poll.
81696
81697 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         * modules/argp (Depends-on): Remove unlocked-io.
81700
81701 2005-07-14  Derek Price  <derek@ximbiot.com>
81702
81703         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81704         for glob symlink bug.
81705
81706 2005-07-14  Bruno Haible  <bruno@clisp.org>
81707
81708         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81709         Instead, test for *_unlocked function declarations directly.
81710
81711 2005-07-11  Simon Josefsson  <jas@extundo.com>
81712
81713         * modules/size_max: New file.
81714
81715         * modules/xsize: Depend on size_max module for size_max.m4.
81716
81717 2005-07-11  Simon Josefsson  <jas@extundo.com>
81718
81719         * lib/size_max.h: New file.
81720
81721 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81724         copyright symbol and the year.
81725         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81726         (version_etc_va): Use parameterized copyright notice.
81727         Reword to conform to the current GNU coding standards.
81728
81729 2005-07-11  Karl Berry  <karl@gnu.org>
81730
81731         * doc/gnulib.texi (Quoting): new node.
81732         (Initial import): more info, from Patrice.
81733
81734 2005-07-11  Bruno Haible  <bruno@clisp.org>
81735
81736         * gnulib-tool (func_usage): Document option --avoid.
81737         (Command line options): Handle --avoid.
81738         (func_acceptable): New function.
81739         (func_modules_transitive_closure): Use it.
81740
81741 2005-07-11  Bruno Haible  <bruno@clisp.org>
81742
81743         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81744         Reported by Jim Meyering.
81745
81746 2005-07-10  Bruno Haible  <bruno@clisp.org>
81747
81748         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81749         Needed when size_t is smaller than 'unsigned int'.
81750         Reported by Paul Eggert.
81751
81752 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81753
81754         * modules/argp (Depends-on): Add unlocked-io
81755
81756 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81757
81758         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81759         block of defines.
81760
81761 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81762
81763         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81764         fix now.
81765
81766 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81767         and Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81770         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81771
81772 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81773
81774         * modules/regex (Files): Add lib/regex_internal.c,
81775         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81776         (Depends-on): Add extensions.
81777         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81778
81779 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81780
81781         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81782         pathconf.
81783         * m4/same.m4 (gl_SAME): Likewise.
81784         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81785
81786         * m4/regex.m4: Adjust to new libc regex implementation.
81787         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81788         all the .c and .h parts of (the new) regex.
81789         Quote the m4 stuff better.
81790         Check for RE_ICASE bug of old gnulib.
81791         Check for REG_STARTEND of recent libc.
81792         Rename local variables from jm_* to gl_*.
81793         Quote operand of "test -f".
81794         Say "recent enough" version of libc, not "version 2".
81795         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81796         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81797         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81798         Remove check for btowc, isascii.
81799         Require AM_LANGINFO_CODESET.
81800
81801 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81802
81803         * lib/regex.c, regex.h: Sync from libc.
81804         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81805         * lib/regexec.c:
81806         New files, synced from libc, except that regex_internal.h
81807         currently has a small porting fix.
81808
81809 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81810
81811         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81812         regex_internal.c, regexec.c.
81813         Add regex_internal.h too, but as a comment, since the libc version
81814         is currently broken in gnulib mode.
81815
81816 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         Support programs like Emacs that use gnulib but not gettext.
81819         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81820         * modules/gettext-h: New file.
81821         * modules/gettext (Files): Remove lib/gettext.h.
81822         (Depends-on): Add gettext-h.
81823         (Makefile.am): Remove lib_SOURCES.
81824         * modules/argmatch, modules/c-stack, modules/closeout:
81825         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81826         * modules/execute, modules/file-type, modules/getaddrinfo:
81827         * modules/getopt, modules/human, modules/javacomp:
81828         * modules/javaexec, modules/mkdir-p, modules/obstack:
81829         * modules/openat, modules/pagealign_alloc, modules/pipe:
81830         * modules/quotearg, modules/regex, modules/rpmatch:
81831         * modules/unicodeio, modules/userspec, modules/version-etc:
81832         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81833         * modules/xsetenv:
81834         Depend on gettext-h, not gettext.
81835
81836 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81837
81838         * gnulib-tool (func_import): Add support for 'public domain' license.
81839         * modules/alloca, modules/atexit, modules/memmove:
81840         Now public domain, not GPL.
81841         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81842         * modules/realloc, modules/strerror, modules/strtod:
81843         Now LGPL, not GPL.
81844
81845 2005-07-05  Bruno Haible  <bruno@clisp.org>
81846
81847         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81848         autoconf CVS. Needed for mingw.
81849
81850 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81851
81852         Remove the dependency of the strftime module on the tzset module.
81853         * modules/strftime (Depends-on): Remove dependency on tzset.
81854
81855 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81856
81857         Remove the dependency of the strftime module on the tzset module.
81858         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81859         gl_FUNC_TZSET_CLOBBER.
81860
81861 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         Remove the dependency of the strftime module on the tzset module.
81864         * lib/strftime.c (my_strftime)
81865         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81866         Copy the input structure, to work around some of the bug with
81867         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81868         Solaris releases, you should also use the tzset module, but we won't
81869         require it as a dependency any more since we don't want LGPLed code
81870         to depend on GPLed code.
81871
81872 2005-07-02  Jim Meyering  <jim@meyering.net>
81873
81874         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81875         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81876         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81877         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81878
81879 2005-07-02  Jim Meyering  <jim@meyering.net>
81880
81881         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81882
81883 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81884
81885         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81886         declares only 'struct timespec;' (!).
81887
81888 2005-07-01  Jim Meyering  <jim@meyering.net>
81889
81890         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81891         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81892         * lib/save-cwd.c, tempname.c:
81893         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81894         and don't include <sys/file.h>).
81895
81896 2005-06-29  Jim Meyering  <jim@meyering.net>
81897
81898         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81899         type name.  Use the variable name instead.
81900         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81901         Likewise.
81902
81903 2005-06-28  Simon Josefsson  <jas@extundo.com>
81904
81905         * modules/check-version (Files): Add check-version.m4.
81906
81907 2005-06-28  Simon Josefsson  <jas@extundo.com>
81908
81909         * m4/check-version.m4: New file, suggested by Jim Meyering
81910         <jim@meyering.net>.
81911
81912 2005-06-28  Simon Josefsson  <jas@extundo.com>
81913
81914         * lib/check-version.h, lib/check-version.c: New files.
81915
81916 2005-06-28  Simon Josefsson  <jas@extundo.com>
81917
81918         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81919         collision with global variable.  Better indentation.  Don't
81920         increment buffer pointer beyond buffer end.  Based on comments
81921         from Paul Eggert <eggert@cs.ucla.edu>.
81922
81923         * lib/base64.h: Indent.
81924
81925 2005-06-28  Simon Josefsson  <jas@extundo.com>
81926
81927         * doc/gnulib.texi (Library version handling): New section.
81928
81929 2005-06-28  Jim Meyering  <jim@meyering.net>
81930
81931         * check-module (find_included_lib_files): Hard-code another
81932         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81933         but modules/fts-lgpl (correctly) does not list those files.
81934
81935         * modules/canonicalize (Files): Add lib/pathmax.h.
81936
81937 2005-06-25  Simon Josefsson  <jas@extundo.com>
81938
81939         * modules/check-version: New file.
81940
81941 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81942
81943         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81944         initializer of struct addrinfo, as an indication that we don't
81945         care how many members the structure has.
81946
81947 2005-06-24  Derek Price  <derek@ximbiot.com>
81948         and Bruno Haible  <bruno@clisp.org>
81949
81950         Remove stat module & update lstat.
81951         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81952         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81953         * m4/stat.m4: Remove this file.
81954
81955 2005-06-24  Derek Price  <derek@ximbiot.com>
81956         and Bruno Haible  <bruno@clisp.org>
81957
81958         Remove stat module & update lstat.
81959         * lib/stat.c: Remove this file...
81960         (slash_aware_lstat): ...moving this content and its support...
81961         * lib/lstat.c (rpl_lstat): ...into here.
81962         * lib/lstat.h: New file.
81963
81964 2005-06-24  Derek Price  <derek@ximbiot.com>
81965         and Bruno Haible  <bruno@clisp.org>
81966
81967         Remove stat module & update lstat.
81968         * config/srclist.txt (libc sources): Remove stat.
81969
81970 2005-06-24  Derek Price  <derek@ximbiot.com>
81971         and Bruno Haible  <bruno@clisp.org>
81972
81973         Remove stat module & update lstat.
81974         * MODULES.html.sh (stat): Remove.
81975         * MODULES.html: Regenerated.
81976         * modules/lstat (Description): Correct function name.
81977         (Files): Add "lstat.h".
81978         (Depends-on): Remove stat, add xalloc, stat-macros.
81979         * modules/stat: Remove this file.
81980         (Include): Add "lstat.h", remove <sys/stat.h>.
81981
81982 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81983
81984         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81985         (ranged_convert): Don't save conversion in a temporary struct.
81986         This causes a warning with GCC 4.0.0, and anyway in the typical
81987         case it's not worth the extra 100 bytes or so of code.
81988         (ranged_convert, __mktime_internal): When calling a function via a
81989         pointer P, use P () rather than (*P) (), as we now assume C89 or
81990         better.
81991
81992 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81995         "who -r" failed to give output.  Problem reported by Tim Waugh.
81996
81997         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81998         (xcalloc): Use it to avoid needless tests.
81999         Problem reported by Jim Meyering.
82000
82001 2005-06-20  Derek Price  <derek@ximbiot.com>
82002
82003         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82004         unnecessary for Autoconfs > 2.59c.
82005
82006 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82007
82008         * lib/argp.h (__option_is_short): Check upper limit of
82009         __key. Isprint() requires its argument to have the value
82010         of an unsigned char or EOF.
82011
82012 2005-06-16  Jim Meyering  <jim@meyering.net>
82013
82014         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82015         when either N or S is zero.
82016
82017 2005-06-16  Derek Price  <derek@ximbiot.com>
82018
82019         * m4/bison.m4: Declare YACC & YFLAGS precious.
82020
82021 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82022
82023         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82024         multibyte string or pattern, fall back on unibyte matching.
82025         Problem reported by James Youngman.
82026
82027 2005-06-08  Bruno Haible  <bruno@clisp.org>
82028
82029         * modules/csharpcomp: New file.
82030         * MODULES.html.sh (C#): Add csharpcomp.
82031
82032 2005-06-08  Bruno Haible  <bruno@clisp.org>
82033
82034         * m4/csharpcomp.m4: New file, from GNU gettext.
82035
82036 2005-06-08  Bruno Haible  <bruno@clisp.org>
82037
82038         * lib/csharpcomp.h: New file, from GNU gettext.
82039         * lib/csharpcomp.c: New file, from GNU gettext.
82040         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82041
82042 2005-06-08  Bruno Haible  <bruno@clisp.org>
82043
82044         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82045         warning on mingw.
82046
82047 2005-06-07  Derek Price  <derek@ximbiot.com>
82048
82049         Sync from CVS.
82050         * lib/glob_.h: Indent nested #ifdef.
82051
82052 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82053
82054         Sync from coreutils.
82055         Use "file name" when talking about file names, instead of "filename"
82056         or "path", as per the GNU coding standards.
82057         * lib/mkdir-p.c: Renamed from makepath.c.
82058         (make_dir_parents): Renamed from make_path.  All callers changed.
82059         * lib/mkdir-p.h: Likewise.  All includers changed.
82060         * lib/filenamecat.c: Renamed from path-concat.c.
82061         (file_name_concat): Renamed from path_concat.  All callers changed.
82062         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82063         * lib/filenamecat.h: Likewise.  All includers changed.
82064         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82065         in comments or local variable names.
82066         * lib/basename.c: Likewise.
82067         * lib/canonicalize.c, canonicalize.h: Likewise.
82068         * lib/dirname.c, dirname.h: Likewise.
82069         * lib/euidaccess.c: Likewise.
82070         * lib/exclude.c: Likewise
82071         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82072         * lib/fsusage.c, fsuage.h: Likewise.
82073         * lib/fts.c, fts_.h: Likewise.
82074         * lib/getcwd.c: Likewise.
82075         * lib/getloadavg.c: Likewise.
82076         * lib/mkstemp.c: Likewise.
82077         * lib/mountlist.c, mountlist.h: Likewise.
82078         * lib/openat.c, openat.h: Likewise.
82079         * lib/readlink-stub.c: Likewise.
82080         * lib/readutmp.c, readutmp.h: Likewise.
82081         * lib/rename.c: Likewise.
82082         * lib/rmdir.c: Likewise.
82083         * lib/same.c: Likewise.
82084         * lib/savedir.c: Likewise.
82085         * lib/stripslash.c: Likewise.
82086         * lib/tempname.c: Likewise.
82087         * lib/xreadlink.c: Likewise.
82088         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82089         All uses changed.
82090         * lib/exclude.h: Likewise.
82091
82092         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82093         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82094         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82095         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82096         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82097         files have been getting away with it for years (MORE/BSD 4.3
82098         is extinct now).
82099         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82100         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82101
82102         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82103         Define to 256, not 255, as per modern POSIX.
82104
82105 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         Sync from coreutils.
82108         Use "file name" when talking about file names, instead of "filename"
82109         or "path", as per the GNU coding standards.
82110         * MODULES.html.sh: mkdir-p renamed from makepath.
82111         filenamecat renamed from path-concat.
82112         * modules/filenamecat: Renamed from modules/path-concat.
82113         (Files): filenamecat.h and filenamecat.c renamed from
82114         path-concat.h and path-concat.c.
82115         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82116         (Include): filenamecat.h, not path-concat.h.
82117         * modules/mkdir-p: Renamed from modules/makepath.
82118         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82119         makepath.c.
82120         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82121         (Include): mkdir-p.h, not makepath.h.
82122
82123 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         Sync from coreutils.
82126         * m4/mkdir-p.m4: Renamed from makepath.m4.
82127         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82128         Rename files from makepath.c to mkdir-p.c, and from
82129         makepath.h to mkdir-p.h.
82130         * m4/filenamecat.m4: Renamed from path-concat.m4.
82131         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82132         Rename files from path-concat.c to filenamecat.c,
82133         and from path-concat.h to filenamecat.h.
82134         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82135         "file name" in local variables or comments.
82136         * m4/rename.m4: Likewise.
82137
82138 2005-06-01  Bruno Haible  <bruno@clisp.org>
82139
82140         * modules/csharpexec: New file.
82141         * MODULES.html.sh (C#): New section.
82142
82143 2005-06-01  Bruno Haible  <bruno@clisp.org>
82144
82145         * m4/csharp.m4: New file, from GNU gettext.
82146         * m4/csharpexec.m4: New file, from GNU gettext.
82147
82148 2005-06-01  Bruno Haible  <bruno@clisp.org>
82149
82150         * lib/csharpexec.h: New file, from GNU gettext.
82151         * lib/csharpexec.c: New file, from GNU gettext.
82152         * lib/csharpexec.sh.in: New file, from GNU gettext.
82153
82154 2005-05-31  Derek Price  <derek@ximbiot.com>
82155             Paul Eggert  <eggert@cs.ucla.edu>
82156
82157         Sync from cvs.
82158         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82159
82160 2005-05-31  Derek Price  <derek@ximbiot.com>
82161             Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         Sync from cvs.
82164         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82165
82166 2005-05-29  Derek Price  <derek@ximbiot.com>
82167
82168         * config/srclist.txt (glob_.h, glob.c): Add these files.
82169
82170 2005-05-29  Derek Price  <derek@ximbiot.com>
82171
82172         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82173         * modules/glob: New file.
82174         * modules/getlogin_r: Add link to POSIX spec in description.
82175
82176 2005-05-29  Derek Price  <derek@ximbiot.com>
82177             Paul Eggert  <eggert@cs.ucla.edu>
82178
82179         * m4/glob.m4: New file.
82180
82181 2005-05-29  Derek Price  <derek@ximbiot.com>
82182             Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         * lib/glob_.h, lib/glob.c: New files.
82185
82186 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82187
82188         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82189         * modules/fts-lgpl (Depends-on): Remove gettext.
82190
82191 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82192
82193         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82194         and don't require gt_INTTYPES_PRI.
82195
82196 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82197
82198         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82199
82200         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82201         the configuration hassle isn't worth it.
82202         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82203         (LONGEST_MODIFIER, PRIuMAX): Remove.
82204
82205 2005-05-27  Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82208
82209 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82210
82211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82212         _POSIX_PTHREAD_SEMANTICS for Solaris.
82213
82214 2005-05-25  Derek Price  <derek@ximbiot.com>
82215
82216         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82217
82218 2005-05-25  Derek Price  <derek@ximbiot.com>
82219             Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82222         * lib/getlogin_r.c, getlogin_r.h: New files.
82223
82224 2005-05-25  Bruno Haible  <bruno@clisp.org>
82225             Derek Price  <derek@ximbiot.com>
82226
82227         * lib/getlogin_r.h: Simplify API documentation.
82228
82229 2005-05-23  Derek Price  <derek@ximbiot.com>
82230
82231         * modules/minmax (Files): Add m4/minmax.m4.
82232         (configure.ac): Add gl_MINMAX.
82233
82234 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82235
82236         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82237         so that unistd-safer.h (GPL'ed code) need not be included.
82238
82239 2005-05-22  Bruno Haible  <bruno@clisp.org>
82240
82241         * m4/minmax.m4: New file.
82242         Based on a patch by Derek Price <derek@ximbiot.com>.
82243
82244 2005-05-22  Bruno Haible  <bruno@clisp.org>
82245
82246         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82247         (INT64_MIN): Fix definition.
82248         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82249
82250         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82251         NEED_SIGNED_INT_TYPES.
82252
82253         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82254         HAVE_SYSTEM_INTTYPES.
82255
82256 2005-05-22  Bruno Haible  <bruno@clisp.org>
82257
82258         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82259         Also include <sys/param.h> if it defines MIN, MAX.
82260         Based on a patch by Derek Price <derek@ximbiot.com>.
82261
82262 2005-05-21  Jim Meyering  <jim@meyering.net>
82263
82264         * modules/fts (Files): Add m4/inttypes-pri.m4.
82265         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82266
82267 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         New fts module.
82270         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82271         (setup_dir, free_dir): New functions.
82272         (enter_dir, leave_dir): Define trivial
82273         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82274         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82275         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82276         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82277         Move to fts-cycle.c.
82278         (fts_open): Use setup_dir.
82279         (fts_close): Use free_dir.
82280         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82281         This adds a label and some gotos, but the alternatives were messier.
82282         Check for memory allocation failure when entering a dir.
82283         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82284         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82285         (FTS): New member fts_cycle, that is a union that contains the
82286         old active_dir_ht and cycle_state.  All uses changed to mention
82287         fts_cycle.ht and fts_cycle.state.
82288         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82289         fts.c, with the following changes:
82290         (setup_dir, free_dir): New functions.
82291         (enter_dir): Now returns bool.  Return true if successful, false
82292         if memory exhausted.  All callers changed.
82293         Do not bother partly cleaning up on
82294         memory allocation failure; that is free_dir's job.
82295         However, free ad if hash_insert fails, to avoid memory leak.
82296         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82297         fts->fts_options to see which union member to use.
82298
82299 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82302         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82303
82304 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82305
82306         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82307
82308 2005-05-20  Jim Meyering  <jim@meyering.net>
82309
82310         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82311         Now a macro, to pacify GCC.
82312
82313 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82314
82315         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82316         of -1.
82317
82318 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82319
82320         * lib/chown.c (rpl_chown): Return -1 on failure.
82321
82322 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82323
82324         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82325         Don't check for stddef.h.
82326         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82327         don't use its results.
82328         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82329         since we include them unconditionally.  Don't require
82330         AM_STDBOOL_H, since stdbool is a prerequisite.
82331         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82332         since we assume C89 or better.
82333         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82334         as we don't use their results.
82335         Don't check for fchdir, memmove, memset, strrchr, as we use
82336         them unconditionally.
82337         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82338         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82339
82340 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82343         Include <stddef.h> unconditionally, since we assume C89 now.
82344         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82345         * lib/fts.c: Include fts_.h first, to check interface.
82346         Do not include intprops.h; no longer needed.
82347         Include cycle-check.h and hash.h, since fts_.h no longer does.
82348         Remove unnecessary casts of closedir to void.
82349         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82350         decide whether to decrement nlinks.
82351         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82352         (FTS): Use struct hash_table * instead of Hash_table, so that
82353         we no longer need to include hash.h here.
82354
82355 2005-05-18  Jim Meyering  <jim@meyering.net>
82356
82357         * modules/dirfd (License): Change to LGPL.  Most of the code
82358         is already in the public domain.
82359
82360 2005-05-18  Jim Meyering  <jim@meyering.net>
82361
82362         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82363         Reported by Yoann Vandoorselaere.
82364
82365 2005-05-17  Jim Meyering  <jim@meyering.net>
82366
82367         * m4/fts.m4: New file, from coreutils.
82368
82369 2005-05-17  Jim Meyering  <jim@meyering.net>
82370
82371         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82372
82373 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         Sync from coreutils.
82376         * m4/unlinkdir.m4: New file.
82377
82378 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         Sync from coreutils.
82381         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82382         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82383         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82384         White space changes only.
82385         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82386         special.
82387         * lib/yesno.c: Include getline.h, not ctype.h.
82388         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82389         Use getline to remove arbitrary restriction on response length.
82390
82391 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         * config/srclist-update: Spell out "Street" in FSF postal
82394         mail address; this is the style the FSF seems to prefer.
82395
82396         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82397         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82398         this updates FSF postal mail address.
82399
82400         Sync from coreutils.
82401         * modules/unlinkdir: New file.
82402         * modules/yesno (Depends-on): Add getline.
82403         * MODULES.html.sh (File system functions): Add unlinkdir.
82404
82405 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82406
82407         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82408         lib/strsep.h:
82409         Change the initial comment to refer to GPL, not LGPL.
82410         gnulib-tool will change it to LGPL as needed.
82411
82412         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82413         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82414         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82415         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82416         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82417         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82418         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82419         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82420         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82421         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82422         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82423         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82424         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82425         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82426         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82427         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82428         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82429         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82430         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82431         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82432         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82433         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82434         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82435         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82436         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82437         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82438         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82439         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82440         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82441         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82442         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82443         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82444         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82445         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82446         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82447         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82448         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82449         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82450         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82451         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82452         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82453         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82454         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82455         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82456         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82457         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82458         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82459         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82460         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82461         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82462         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82463         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82464         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82465         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82466         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82467         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82468         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82469         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82470         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82471         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82472         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82473         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82474         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82475         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82476         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82477         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82478         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82479         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82480         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82481         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82482         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82483         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82484         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82485         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82486         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82487         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82488         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82489         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82490         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82491         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82492         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82493         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82494         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82495         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82496         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82497         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82498         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82499         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82500         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82501         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82502         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82503         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82504         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82505         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82506         lib/yesno.c, lib/yesno.h:
82507         Update FSF postal mail address.
82508
82509 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82510
82511         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82512         tests/test-memmem.c, tests/test-stpncpy.c:
82513         Update FSF postal mail address.
82514
82515 2005-05-13  Bruno Haible  <bruno@clisp.org>
82516
82517         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82518         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82519         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82520         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82521         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82522         Add support for 64-bit integers in the MSVC compiler.
82523
82524 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82525
82526         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82527
82528 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82529
82530         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82531
82532 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         * doc/getdate.texi (General date syntax): Don't say that date
82535         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82536         Problem reported by Nic Ferrier.
82537
82538 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82539
82540         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82541         specified in ai_socktype. Fix invalid ai_protocol
82542         check. ai_protocol is usually set to 0 or depending on
82543         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82544         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82545         ai_socktype / ai_protocol in the returned addrinfo structure.
82546
82547 2005-05-10  Simon Josefsson  <jas@extundo.com>
82548
82549         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82550         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82551
82552 2005-05-10  Karl Berry  <karl@gnu.org>
82553
82554         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82555         (from http://www.gnu.org/licenses).
82556         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82557         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82558         fdl.texi suffices.
82559
82560 2005-05-10  Karl Berry  <karl@gnu.org>
82561
82562         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82563         (COPYING.DOC): remove.
82564
82565         * config/srclist-update: new FSF address.
82566
82567 2005-05-10  Derek Price  <derek@ximbiot.com>
82568
82569         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82570         possible.
82571
82572 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82573             Bruno Haible  <bruno@clisp.org>
82574
82575         * modules/inet_ntop: New file.
82576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82577         inet_ntop.
82578
82579 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82580             Bruno Haible  <bruno@clisp.org>
82581
82582         * m4/inet_ntop.m4: New file.
82583
82584 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82585             Bruno Haible  <bruno@clisp.org>
82586
82587         * lib/inet_ntop.h: New file.
82588         * lib/inet_ntop.c: New file, from glibc with modifications.
82589
82590 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82591
82592         * modules/time_r (License): Change to LGPL.
82593         * modules/extensions (License): Change to LGPL.  Actually,
82594         the license is more permissive than that, but currently gnulib-tool
82595         doesn't know how to handle more-permissive licenses.
82596
82597         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82598         Problem reported by Dave Love.
82599
82600 2005-05-08  Jim Meyering  <jim@meyering.net>
82601
82602         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82603         blank.
82604
82605 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82606
82607         * modules/argmatch (Depends-on): Add stdbool.
82608         * modules/backupfile (Depends-on): Likewise.
82609         * modules/chdir-long (Depends-on): Likewise.
82610         * modules/closeout (Depends-on): Likewise.
82611         * modules/cycle-check (Depends-on): Likewise.
82612         * modules/dirname (Depends-on): Likewise.
82613         * modules/fnmatch (Depends-on): Likewise.
82614         * modules/fsusage (Depends-on): Likewise.
82615         * modules/fwriteerror (Depends-on): Likewise.
82616         * modules/getcwd (Depends-on): Likewise.
82617         * modules/getloadavg (Depends-on): Likewise.
82618         * modules/hard-locale (Depends-on): Likewise.
82619         * modules/makepath (Depends-on): Likewise.
82620         * modules/mountlist (Depends-on): Likewise.
82621         * modules/nanosleep (Depends-on): Likewise.
82622         * modules/posixtm (Depends-on): Likewise.
82623         * modules/quotearg (Depends-on): Likewise.
82624         * modules/readtokens (Depends-on): Likewise.
82625         * modules/readtokens0 (Depends-on): Likewise.
82626         * modules/readutmp (Depends-on): Likewise.
82627         * modules/save-cwd (Depends-on): Likewise.
82628         * modules/strftime (Depends-on): Likewise.
82629         * modules/userspec (Depends-on): Likewise.
82630         * modules/utimecmp (Depends-on): Likewise.
82631         * modules/xgetcwd (Depends-on): Likewise.
82632         * modules/xnanosleep (Depends-on): Likewise.
82633         * modules/xstrtod (Depends-on): Likewise.
82634         * modules/yesno (Depends-on): Likewise.
82635
82636 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82637
82638         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82639         needless checks.
82640
82641 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82642
82643         Merge from coreutils.  Among other things,
82644         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82645         * lib/fd-safer.c: New file.
82646         * lib/fcntl-safer.h, open-safer.c: Remove.
82647         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82648         * lib/dup-safer.c: Include unistd-safer.h first.
82649         Don't include errno.h.
82650         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82651         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82652         * lib/file-type.c: Rely on file-type.h change.
82653         * lib/getloadavg.c: Include unistd-safer.h.
82654         (getloadavg): Use safer open.
82655         * lib/getusershell.c: Include "stdio-safer.h".
82656         (getusershell): Use safer fopen.
82657         * lib/long-options.c (long_options): Use NULL rather than 0.
82658         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82659         'free'.
82660         * lib/modechange.c: Likewise.
82661         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82662         (MODE_DONE): New constant.
82663         (struct mode_change): Remove 'next' member.
82664         (make_node_op_equals): New function; like the old one of the
82665         same name, except it allocates an array.
82666         (mode_compile, mode_create_from_ref): Use it.
82667         (mode_compile): Allocate result as an array, not a linked list.
82668         Parse octal string ourself, so that we catch mistakes like "+0".
82669         (mode_adjust): Arg is an array, not a linked list.
82670         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82671         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82672         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82673         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82674         Remove.  This is now stat-macros.h's job.
82675         (talloc): Remove.  All callers replaced by xalloc, so that
82676         our invokers don't have to worry about reporting memory failures.
82677         (make_node_op_equals): Remove.
82678         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82679         New constants.
82680         (struct mode_change): Moved here from modechange.h.
82681         (mode_append_entry): Remove.
82682         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82683         apps to have incorrect behavior.  Use simpler algorithm for head
82684         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82685         Detect more invalid usages rather than having somewhat-random behavior.
82686         Don't insert an "a=" action, as that leads to incorrect behavior.
82687         (mode_compile, mode_create_from_ref): Return NULL on error instead
82688         of an enum, since now there's only one way to have an error.  All
82689         callers changed.
82690         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82691         at the correct time.  Simplify calculation of "+u" and its ilk.
82692         Don't mishandle "+X".
82693         (mode_free): Remove "register" and localize decls.
82694         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82695         (struct mode_change): Move to modechange.c; callers don't
82696         need to see this stuff.
82697         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82698         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82699         (mode_change, mode_adjust): Reflect the new signatures noted above.
82700         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82701         that might redefine system include files.
82702         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82703         (my_usleep): Use NULL rather than (void *) 0.
82704         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82705         Use siginterrupt to specify that system calls should be interrupted.
82706         (rpl_nanosleep): Move initialization of suspended closer to call of
82707         my_usleep.
82708         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82709         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82710         (desirable_utmp_entry): New function.
82711         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82712         using x2nrealloc, to simplify logic.
82713         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82714         size calculation.  Do not assume utmp file is a regular file.
82715         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82716         (READ_UTMP_CHECK_PIDS): New constant.
82717         * lib/save-cwd.c: Include unistd-safer.h.
82718         (save_cwd): Use fd_safer.
82719         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82720         [!_LIBC] Include "stat-macros.h" instead.
82721         * lib/unistd-safer.h (fd_safer): New decl.
82722
82723 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * modules/getloadavg (Depends-on): Add unistd-safer.
82726         * modules/getusershell (Depends-on): Add stdio-safer.
82727         * modules/lstat (Depends-on): Remove xalloc.
82728         * modules/mkstemp (Depends-on): Add stat-macros.
82729         * modules/modechange (Depends-on): Remove xstrtol.
82730         Add stat-macros, xalloc.
82731         * modules/save-cwd (Depends-on): Add unistd-safer.
82732         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82733         * modules/unistd-safer (Files): Add lib/fd-safer.c
82734         (Makefile.am): Remove lib_SOURCES.
82735
82736         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82737         Remove fcntl-safer; unistd-safer supersedes it.
82738
82739 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82740
82741         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82742         AC_HEADER_STAT.
82743         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82744         (gl_PREREQ_CHOWN): Remove.
82745         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82746         it.  Don't require AC_HEADER_STAT.
82747         (gl_PREREQ_LSTAT): Remove.
82748         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82749         Don't require AC_HEADER_STAT.
82750         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82751         (gl_PREREQ_RMDIR): Remove.
82752         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82753         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82754         the stat-macros module a prerequisite.
82755         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82756         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82757         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82758         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82759         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82760         variable names.
82761         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82762         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82763         variable prefixes.
82764         * m4/fcntl-safer.m4: Remove.
82765         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82766         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82767         Invoke gl_PREREQ_FD_SAFER.
82768         (gl_PREREQ_FD_SAFER): New macro.
82769         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82770         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82771         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82772         Remove duplicate call to AC_LIBOBJ(readutmp).
82773         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82774
82775         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82776         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82777
82778 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * MODULES.html.sh (Misc): Add byteswap.
82781
82782 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82783
82784         * modules/getcwd (Depends-on): Add extensions.
82785         * modules/openat (Depends-on): Likewise.
82786
82787 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82788
82789         * modules/byteswap: New file.
82790
82791 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82792
82793         * m4/byteswap.m4: New file.
82794
82795 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82796
82797         * lib/byteswap_.h: New file.
82798
82799 2005-04-25  Karl Berry  <karl@gnu.org>
82800
82801         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82802
82803 2005-04-25  Albert Chin  <china@thewrittenword.com>
82804
82805         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82806         Toolkit C bug.
82807
82808 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82809
82810         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82811         (func_ln_if_changed): Remove forcibly for no error message
82812         in case file does not exist.
82813
82814 2005-04-19  Simon Josefsson  <jas@extundo.com>
82815
82816         * gnulib-tool (Options): Make --symlink mean --symbolic.
82817
82818 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82819
82820         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82821
82822 2005-04-16  Simon Josefsson  <jas@extundo.com>
82823
82824         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82825
82826 2005-04-15  Simon Josefsson  <jas@extundo.com>
82827
82828         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82829
82830 2005-04-15  Simon Josefsson  <jas@extundo.com>
82831
82832         * gnulib-tool: Rename --symlink to --symbolic.
82833
82834 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82835
82836         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82837         symbolic links to files instead of copying/moving.  Add --aux-dir,
82838         specifying directory relative --dir where auxiliary build tools
82839         are placed.
82840
82841 2005-04-14  Bruno Haible  <bruno@clisp.org>
82842
82843         * modules/allocsa (License): Change to LGPL.
82844         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82845
82846 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82847
82848         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82849         that "UTC +1 second" continues to work.  Problem reported
82850         by Dmitry V. Levin.
82851         (relunit_snumber): New rule.
82852         (relunit): Use it.
82853
82854 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * lib/getdate.y (universal_time_zone_table): New constant.
82857         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82858         universal_time_zone_table.
82859         (lookup_zone): Prefer universal_time_zone_table to
82860         local_time_zone_table, so that "GMT" time stamps are allowed in
82861         London during the summer.  Problem reported by Ian Abbott.
82862
82863 2005-04-12  Jim Meyering  <jim@meyering.net>
82864
82865         * lib/human.c (humblock): Set *options even when returning due to
82866         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82867         warning from gcc-4.
82868
82869 2005-04-09  Jim Meyering  <jim@meyering.net>
82870
82871         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82872         -Wuninitialized: initialize tm0.tm_year.
82873
82874 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82877         count, since there's no maximum.  All uses changed.
82878         Add member dsts_seen.
82879         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82880         not being INT_MAX.
82881         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82882         Use pc_rels_seen to decide whther a date is absolute.
82883
82884         * lib/getdate.y (number): Don't overwrite year.
82885         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82886         check.
82887
82888 2005-04-02  Simon Josefsson  <jas@extundo.com>
82889
82890         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82891         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82892
82893 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82894
82895         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82896         where no absolute path name can be longer than PATH_MAX.
82897
82898 2005-03-27  Jim Meyering  <jim@meyering.net>
82899
82900         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82901
82902 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82905         "one's complement" -> "ones' complement" in comment, as per Knuth.
82906         "value of type" -> "type or expression" in comment.
82907         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82908
82909 2005-03-26  Jim Meyering  <jim@meyering.net>
82910
82911         Comment nits.
82912         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82913         Correct typos: s/or/of/.
82914
82915 2005-03-26  Jim Meyering  <jim@meyering.net>
82916
82917         * modules/check-include-files: Move to ../ and rename to...
82918         * check-module: ...this.
82919
82920 2005-03-25  Jim Meyering  <jim@meyering.net>
82921
82922         * modules/xvasprintf (Files): Add xalloc.h.
82923
82924 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82925
82926         * modules/gettext (Files): config/config.rpath ->
82927         build-aux/config.rpath
82928         * modules/iconv (Files): Likewise.
82929         Problem reported by Oskar Liljeblad.
82930
82931 2005-03-23  Jim Meyering  <jim@meyering.net>
82932
82933         * modules/check-include-files: New script to check for
82934         missing dependencies, multiple includes, etc.
82935
82936         * modules/c-strtold (Depends-on): Add xalloc.
82937         * modules/c-strtod (Depends-on): Add xalloc.
82938         * modules/hash (Depends-on): Add xalloc.
82939         (Files): Remove lib/xalloc.h.
82940
82941         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82942         * modules/userspec (Files): Add lib/inttostr.h.
82943
82944 2005-03-23  Jim Meyering  <jim@meyering.net>
82945
82946         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82947
82948 2005-03-22  Jim Meyering  <jim@meyering.net>
82949
82950         * modules/stat-macros: New module.
82951         * modules/canonicalize, modules/euidaccess, modules/file-type,
82952         * modules/filemode, modules/lchown, modules/makepath,
82953         * modules/rmdir, modules/stat: Depend on new stat-macros module
82954         rather than listing lib/stat-macros.h manually.
82955         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82956
82957 2005-03-22  Jim Meyering  <jim@meyering.net>
82958
82959         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82960
82961 2005-03-22  Bruno Haible  <bruno@clisp.org>
82962
82963         * config/srclist.txt: Replace target directory 'config' with
82964         'build-aux'.
82965         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82966         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82967         ../build-aux/.
82968
82969 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * modules/chdir-long (Depends-on): Add mempcpy.
82972
82973         * modules/acl, modules/backupfile, modules/c-strtod,
82974         modules/c-strtold, modules/canon-host, modules/canonicalize,
82975         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82976         modules/exclude, modules/exitfail, modules/file-type,
82977         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82978         modules/getdate, modules/getline, modules/getpagesize,
82979         modules/getpass, modules/getugroups, modules/group-member,
82980         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82981         modules/inttostr, modules/long-options, modules/makepath,
82982         modules/md5, modules/memcasecmp, modules/memcoll,
82983         modules/modechange, modules/mountlist, modules/path-concat,
82984         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82985         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82986         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82987         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82988         modules/strftime, modules/strndup, modules/strverscmp,
82989         modules/timespec, modules/unlocked-io, modules/userspec,
82990         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82991         modules/yesno:
82992         Remove lib_SOURCES line from Makefile.am section, as this is now
82993         done automatically by the corresponding Autoconf macro.
82994
82995 2005-03-21  Jim Meyering  <jim@meyering.net>
82996
82997         Changes imported from coreutils.
82998
82999         * lib/cycle-check.c: Don't include xalloc.h.
83000
83001         * lib/path-concat.c: Don't include assert.h.
83002         (path_concat): Remove assertion that would have triggered
83003         for ABASE starting with more than one slash.
83004         Reported by Andreas Schwab.
83005
83006         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83007         properly when ABASE is an absolute file name.
83008         Correct the description of this function.
83009         Include <assert.h>.
83010         Add an assertion and a test driver.
83011         This fixes a bug introduced on 2004-07-02.
83012         Andreas Schwab reported the resulting failure of cp --parents:
83013         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83014
83015 2005-03-21  Jim Meyering  <jim@meyering.net>
83016
83017         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83018         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83019
83020 2005-03-21  Jim Meyering  <jim@meyering.net>
83021         and  Paul Eggert  <eggert@cs.ucla.edu>
83022
83023         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83024         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83025         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83026         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83027         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83028         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83029         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83030         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83031         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83032         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83033         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83034         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83035         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83036         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83037         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83038         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83039         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83040         for these modules.
83041
83042 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83043
83044         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83045         (which shouldn't happen), generate nothing instead of returning 0
83046         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83047
83048 2005-03-16  Bruno Haible  <bruno@clisp.org>
83049
83050         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83051         HAVE_LONGLONG_64BIT.
83052
83053 2005-03-16  Bruno Haible  <bruno@clisp.org>
83054
83055         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83056         HAVE_LONGLONG_64BIT.
83057
83058 2005-03-16  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83061         HAVE_LONGLONG_64BIT.
83062
83063 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83064
83065         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83066         reliably distinguish strftime failure from empty output on POSIX
83067         hosts.
83068
83069 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83070
83071         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83072         (iconv_string): Don't guess a size-zero buffer, as that might cause
83073         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83074         result would be 'too large', where 'too large' is (heuristically)
83075         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83076         overflow concerns.  This will prevent some unwanted malloc failures
83077         when the inputs are very large.
83078
83079 2005-03-15  Karl Berry  <karl@gnu.org>
83080
83081         * config/srclist.txt (config.rpath): from gettext.
83082         * config/config.rpath: update.
83083
83084 2005-03-15  Bruno Haible  <bruno@clisp.org>
83085
83086         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83087         to 'negate'.
83088
83089         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83090         variable.
83091
83092         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83093         results.
83094
83095 2005-03-14  Simon Josefsson  <jas@extundo.com>
83096
83097         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83098         <fx@gnu.org>.
83099
83100 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83101
83102         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83103         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83104         intprops.h.
83105         * lib/strtol.c: Likewise.
83106
83107 2005-03-14  Jim Meyering  <jim@meyering.net>
83108
83109         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83110         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83111         to be nonzero so that we (and caller) can detect the difference
83112         between a valid zero-length expansion and an error return, even
83113         when the underlying strftime fails before writing anything into
83114         that location.
83115
83116 2005-03-14  Bruno Haible  <bruno@clisp.org>
83117
83118         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83119         Update from GNU gettext 0.14.3.
83120
83121 2005-03-10  Jim Meyering  <jim@meyering.net>
83122
83123         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83124
83125 2005-03-10  Jim Meyering  <jim@meyering.net>
83126
83127         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83128         so that this module works on systems without fchdir.
83129
83130 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         Factor int-properties macros into a single file, except for
83133         glibc-related files.
83134         * lib/intprops.h: New file.
83135         * lib/getloadavg.c: Include it instead of limits.h.
83136         (INT_STRLEN_BOUND): Remove.
83137         * lib/human.c: Include intprops.h.
83138         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83139         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83140         302/1000.
83141         * lib/inttostr.h: Include intprops.h instead of limits.h.
83142         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83143         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83144         for consistency with intprops.h.
83145         (time_t_is_integer, twos_complement_arithmetic): Use them.
83146         * lib/sig2str.h: Include <signal.h>, intprops.h.
83147         (INT_STRLEN_BOUND): Remove.
83148         * lib/strftime.c (TYPE_SIGNED): Remove.
83149         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83150         * lib/strtol.c: Adjust comments to match intprops.h.
83151         * lib/userspec.c: Include intprops.h.
83152         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83153         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83154         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83155         instead of rolling our own expressions.
83156         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83157
83158         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83159         instead of int.
83160         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83161         the right thing even if adding 1900 would overflow.  Similarly
83162         for tm_mon + 1 and tm_yday + 1.
83163         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83164         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83165         (DO_SIGNED_NUMBER): New macro.
83166         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83167
83168 2005-03-07  Bruno Haible  <bruno@clisp.org>
83169
83170         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83171
83172 2005-03-07  Bruno Haible  <bruno@clisp.org>
83173
83174         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83175
83176 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83177
83178         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83179         (func_import): Only replace files via --import when they have actually
83180         changed.
83181
83182 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83183
83184         * m4/mmap-anon.m4: New file.
83185         * m4/pagealign_alloc.m4: New file.
83186
83187 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83188             Bruno Haible  <bruno@clisp.org>
83189
83190         * modules/pagealign_alloc: New file.
83191         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83192
83193 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83194             Bruno Haible  <bruno@clisp.org>
83195
83196         * lib/pagealign_alloc.h: New file.
83197         * lib/pagealign_alloc.c: New file.
83198
83199 2005-03-03  Bruno Haible  <bruno@clisp.org>
83200
83201         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83202         Use an all-permissive copyright notice, recommended by RMS.
83203
83204 2005-03-02  Bruno Haible  <bruno@clisp.org>
83205
83206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83207         of AIX, the replacement has to be done only after <string.h> is
83208         included, therefore not in config.h. stpncpy.h does the replacement,
83209         and stpncpy.c uses it.
83210
83211 2005-03-02  Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83214         stpncpy.c uses it.
83215
83216 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83217
83218         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83219         The workaround isn't strictly needed for POSIX conformance, and
83220         it's too much of a pain to configure and maintain.  We'll ask
83221         people to fix their kernels instead.
83222         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83223         (NANOSLEEP_BUG_WORKAROUND): Remove.
83224         (xnanosleep): Remove the workaround.
83225
83226 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83229         Reported by Derek Price.
83230         (Include): Add "timespec.h".
83231
83232         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83233
83234 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83237         to detect nanosleep bug.
83238
83239 2005-03-01  Bruno Haible  <bruno@clisp.org>
83240
83241         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83242
83243 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83244
83245         * modules/gethrxtime: New file.
83246         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83247         (Depends-on): Add gethrxtime.
83248         (configure.ac): Add gl_XNANOSLEEP.
83249         (Makefile.am): Remove lib_SOURCES line.
83250
83251 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83252
83253         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83254         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83255
83256 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83259         * lib/timespec.h (gettime): Return void, since it always
83260         succeeds now.  All uses changed.
83261         * lib/gettime.c (gettime): Likewise.
83262         [HAVE_NANOTIME]: Prefer nanotime.
83263         Assume gettimeofday succeeds, as POSIX requires.
83264         Assime time () succeeds, since other code already does.
83265         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83266         (timespec_subtract): Remove.
83267         (NANOSLEEP_BUG_WORKAROUND): New constant.
83268         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83269         things considerably.  Use it only on GNU/Linux hosts, since the
83270         workaround shouldn't be needed elsewhere.
83271
83272 2005-02-24  Bruno Haible  <bruno@clisp.org>
83273
83274         * modules/gettext (Files): Add m4/glibc2.m4.
83275
83276 2005-02-24  Bruno Haible  <bruno@clisp.org>
83277
83278         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83279         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83280         * m4/progtest.m4:
83281         Update from GNU gettext 0.14.2.
83282         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83283
83284 2005-02-24  Bruno Haible  <bruno@clisp.org>
83285
83286         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83287         * lib/config.charset: Update from GNU gettext 0.14.2.
83288
83289 2005-02-24  Bruno Haible  <bruno@clisp.org>
83290
83291         * lib/gettext.h: Update from GNU gettext 0.14.2.
83292
83293 2005-02-23  Simon Josefsson  <jas@extundo.com>
83294
83295         * m4/iconvme.m4: New file.
83296
83297 2005-02-23  Jim Meyering  <jim@meyering.net>
83298
83299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83300         change.
83301         Thanks to Bruno Haible for catching it.
83302
83303 2005-02-22  Simon Josefsson  <jas@extundo.com>
83304
83305         * modules/iconvme: New file.
83306
83307         * MODULES.html.sh: Add iconvme.
83308
83309 2005-02-22  Simon Josefsson  <jas@extundo.com>
83310
83311         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83312
83313 2005-02-22  Simon Josefsson  <jas@extundo.com>
83314
83315         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83316
83317 2005-02-22  Jim Meyering  <jim@meyering.net>
83318
83319         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83320         s/ifndef/ifdef/.
83321
83322 2005-02-20  Neil Conway  <neilc@samurai.com>
83323
83324         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83325         returned by OSX/Darwin if the specified buffer is not large
83326         enough for the hostname.
83327
83328 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83329
83330         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83331         pass it to _help, otherwise the latter coredumps trying to
83332         dereference state.root_argp.
83333
83334 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83335
83336         * modules/chdir-long (Depends-on): Add memrchr.
83337         * modules/memrchr (Files): Add lib/memrchr.h.
83338         (Include): "memrchr.h".
83339
83340 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83341
83342         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83343
83344 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83345
83346         * lib/memrchr.h: New file.
83347         * lib/chdir-long.c: Include it.
83348         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83349         Don't bother including stddef.h.
83350
83351 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83354         inclusion.
83355         Include <sys/types.h>, for dev_t.
83356         (ME_DUMMY, ME_REMOTE): Move from here....
83357         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83358         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83359         Dmitry V. Levin.
83360         Include mountlist.h first, to test the interface.
83361
83362 2005-01-29  Bruno Haible  <bruno@clisp.org>
83363
83364         * lib/progname.c (program_name): Initialize.
83365         Needed when linking statically on MacOS X.
83366
83367 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         Sync from coreutils.
83370         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83371         (Depends-on): Add c-strtod.
83372         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83373
83374 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83375
83376         Sync from coreutils.
83377         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83378
83379         Remove files that are specific to coreutils.
83380         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83381
83382 2005-01-28  Bruno Haible  <bruno@clisp.org>
83383
83384         * modules/javacomp: New file.
83385         * MODULES.html.sh (Java): Add javacomp.
83386
83387 2005-01-28  Bruno Haible  <bruno@clisp.org>
83388
83389         * m4/javacomp.m4: New file, from GNU gettext.
83390
83391 2005-01-28  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/javacomp.sh.in: New file, from GNU gettext.
83394         * lib/javacomp.h: New file, from GNU gettext.
83395         * lib/javacomp.c: New file, from GNU gettext.
83396
83397 2005-01-26  Simon Josefsson  <jas@extundo.com>
83398
83399         * lib/gai_strerror.c: Use GPL in header.
83400
83401 2005-01-26  Bruno Haible  <bruno@clisp.org>
83402
83403         * modules/javaexec: New file.
83404         * MODULES.html.sh (Java): Add javaexec.
83405
83406 2005-01-26  Bruno Haible  <bruno@clisp.org>
83407
83408         * m4/javaexec.m4: New file, from GNU gettext.
83409
83410 2005-01-26  Bruno Haible  <bruno@clisp.org>
83411
83412         * lib/javaexec.sh.in: New file, from GNU gettext.
83413         * lib/javaexec.h: New file, from GNU gettext.
83414         * lib/javaexec.c: New file, from GNU gettext.
83415
83416 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83417
83418         * modules/lchown (Depends-on): Remove lchown.h
83419
83420 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83421
83422         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83423         must be defined if the header file was not found, in order
83424         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83425
83426 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83427
83428         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83429         initializers for struct pentry_state.
83430         (__argp_error): Check return value of __asprintf
83431         (__argp_failure): Translate error message
83432
83433         * lib/argp-parse.c: Removed braces around the expansion of N_()
83434
83435 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83436
83437         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83438         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83439         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83440         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83441         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83442         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83443         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83444         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83445         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83446         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83447         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83448         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83449         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83450         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83451         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83452         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83453         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83454         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83455         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83456         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83457         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83458         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83459         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83460         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83461         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83462         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83463         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83464         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83465         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83466         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83467         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83468         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83469         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83470         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83471         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83472         Use an all-permissive copyright notice, recommended by RMS.
83473
83474 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83475
83476         * modules/chdir-long (Depends-on): Remove mempcpy.
83477
83478 2005-01-21  Jim Meyering  <jim@meyering.net>
83479
83480         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83481         same value as for Solaris 9.
83482
83483         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83484         component length.  This included changing the parameter to be
83485         of type `char *' rather than `char const *'.
83486         * lib/chdir-long.h (chdir_long): Update prototype.
83487
83488         * lib/openat.c (fdopendir, fstatat): New functions.
83489         * lib/openat.h: Include headers required for use of DIR and struct
83490         stat.
83491         [AT_SYMLINK_NOFOLLOW]: Define.
83492         (fdopendir, fstatat): Add prototypes.
83493
83494 2005-01-21  Bruno Haible  <bruno@clisp.org>
83495
83496         * modules/classpath: New file.
83497         * MODULES.html.sh (Java): Add classpath.
83498
83499 2005-01-21  Bruno Haible  <bruno@clisp.org>
83500
83501         * lib/classpath.h: New file, from GNU gettext.
83502         * lib/classpath.c: New file, from GNU gettext.
83503
83504 2005-01-20  Simon Josefsson  <jas@extundo.com>
83505
83506         * modules/version-etc-fsf: New file.
83507
83508 2005-01-20  Simon Josefsson  <jas@extundo.com>
83509
83510         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83511         * lib/version-etc.c: Remove version_etc_copyright.
83512         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83513         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83514
83515 2005-01-20  Simon Josefsson  <jas@extundo.com>
83516
83517         * lib/base64.h (isbase64): Add.
83518
83519         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83520         using a unsigned prototype, don't inline.
83521         (base64_decode): Use it.
83522
83523 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83524
83525         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83526         it.
83527
83528 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83529
83530         * lib/save-cwd.c (save_cwd): Remove code to support the case
83531         where fchdir is missing or flaky.
83532
83533 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83534
83535         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83536
83537 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83538
83539         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83540         AC_LIBSOURCES now does this.
83541         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83542         with new ullong_max module.
83543
83544 2005-01-19  Bruno Haible  <bruno@clisp.org>
83545
83546         * modules/sh-quote: New file.
83547         * MODULES.html.sh (Executing programs): Add sh-quote.
83548
83549 2005-01-19  Bruno Haible  <bruno@clisp.org>
83550
83551         * lib/sh-quote.h: New file, from GNU gettext.
83552         * lib/sh-quote.c: New file, from GNU gettext.
83553
83554 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         Merge from coreutils.
83557         * m4/ullong_max.m4: New file.
83558         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83559         (gl_MACROS): Assume localeconv exists.
83560
83561 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83562
83563         Merge changes from coreutils, as described below in several
83564         changelogs dated today.
83565
83566         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83567         (O_DIRECTORY): Remove; not needed here, since "." must be
83568         a directory.  All uses removed.
83569         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83570         universal on Suns, and we also need to test for IRIX.
83571         Revamp code to use 'if' rather than '#if'.
83572         Avoid unnecessary comparison of cwd->desc to 0.
83573
83574         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83575         for known valid error numbers rather than observed invalid ones.
83576
83577 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * modules/ullong_max: New file.
83580
83581         * modules/chdir-long, modules/openat: New files.
83582         * modules/save-cwd (Depends-on): Depend on chdir-long.
83583         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83584
83585 2005-01-18  Jim Meyering  <jim@meyering.net>
83586
83587         Merge from coreutils.
83588         * m4/chdir-long.m4, m4/openat.m4: New files.
83589         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83590         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83591         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83592         is sane and DOES follow symlinks.  Besides, testing 20 different
83593         systems found no broken chown implementations.
83594         Prompted by a change in rsync's copy of this macro.
83595         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83596
83597         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83598
83599         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83600         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83601         NULL-means-set-to-current-time semantics.
83602         Remove temporary file immediately, rather than waiting
83603         for configure's at-exit trap code to do it.
83604
83605 2005-01-18  Jim Meyering  <jim@meyering.net>
83606
83607         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83608
83609         * lib/utimens.c (futimens): Account for the fact that futimes
83610         can also fail with errno == ENOSYS or errno == ENOENT.
83611         Patch from Dmitry V. Levin.
83612
83613         Change the name of the robust chdir function from chdir to chdir_long.
83614         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83615         (restore_cwd): Use chdir_long, not chdir.
83616         * lib/chdir-long.c: Renamed from chdir.c.
83617         * lib/chdir-long.h: Renamed from chdir.h.
83618         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83619         Hurd.
83620
83621 2005-01-18  Bruno Haible  <bruno@clisp.org>
83622
83623         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83624         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83625         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83626         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83627         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83628         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83629         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83630         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83631         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83632         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83633         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83634         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83635         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83636         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83637         Use an all-permissive copyright notice, recommended by RMS.
83638
83639 2005-01-18  Bob Proulx  <bob@proulx.com>
83640
83641         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83642         simplify offsetof() macro construct to avoid compile failure with
83643         native HP-UX 11.0 ANSI C compiler.
83644
83645 2005-01-17  Bruno Haible  <bruno@clisp.org>
83646
83647         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83648         redundant because stpncpy.m4 takes care of it.
83649
83650 2005-01-17  Bruno Haible  <bruno@clisp.org>
83651
83652         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83653
83654 2005-01-17  Bruno Haible  <bruno@clisp.org>
83655
83656         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83657         used.
83658
83659 2005-01-17  Bruno Haible  <bruno@clisp.org>
83660
83661         * lib/fwriteerror.h (fwriteerror): Change specification to include
83662         fclose.
83663         * lib/fwriteerror.c: Include <stdbool.h>.
83664         (fwriteerror): At the end, close the file stream. Record whether
83665         stdout was already closed.
83666
83667 2005-01-17  Bruno Haible  <bruno@clisp.org>
83668
83669         * lib/execute.c (environ): Declare if needed.
83670         * lib/pipe.c (environ): Likewise.
83671         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83672
83673 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83674
83675         * modules/argp: Depend on vsnprintf
83676
83677 2005-01-10  Jim Meyering  <jim@meyering.net>
83678
83679         * modules/closeout (Depends-on): Add atexit.
83680
83681 2005-01-06  Bruno Haible  <bruno@clisp.org>
83682
83683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83684
83685 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83686
83687         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83688         definitions to be after all include files, to avoid collisions.
83689         Problem reported by Bob Proulx.
83690
83691 2005-01-04  Jim Meyering  <jim@meyering.net>
83692
83693         Changes imported from coreutils.
83694         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83695         as the mkstemp template, use a temporary directory and an
83696         8.3-friendly template to avoid trouble on systems like DJGPP.
83697         Reported by Juan M. Guerrero via Stepan Kasal.
83698         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83699         close. Remove the temporary directory right away, rather than waiting
83700         for configure's at-exit trap code to do it.
83701         Suggestion from Stepan Kasal.
83702
83703 2005-01-01  Simon Josefsson  <jas@extundo.com>
83704
83705         * gnulib-tool: Print #include directives when --import'ing.
83706
83707 2004-12-28  Simon Josefsson  <jas@extundo.com>
83708
83709         * tests/test-base64.c: Include required header files.  Remove
83710         unused variables.
83711
83712 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * modules/error (Depends-on): Remove gettext.
83715
83716 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83719         not needed.  This removes a dependency on the gettext module.
83720         [defined _LIBC]: Do not include <libintl.h>; not needed.
83721
83722 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83723
83724         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83725         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83726
83727 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83730         HAVE_DECL_STRTOLD.
83731
83732 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * modules/getdate (Depends-on): Remove alloca-opt.
83735
83736 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83737
83738         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83739
83740 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * lib/argp-parse.c: Include <stddef.h>.
83743         (alignof, alignto): New macros.
83744         (parser_init): Don't assume that void * is aligned sufficiently
83745         for struct option.
83746
83747         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83748         need to extend the stack.
83749         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83750         large.
83751
83752 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83753
83754         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83755
83756 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83759         (2004-10-24) change.  Apparently this was a false alarm.
83760
83761         * modules/getdate: Depend on alloca-opt, not alloca.
83762
83763 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83764
83765         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83766         Remove now-obsolete comment about AIX.
83767         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83768         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83769         (YYMAXDEPTH): New macro.
83770
83771 2004-12-18  Simon Josefsson  <jas@extundo.com>
83772
83773         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83774
83775 2004-12-18  Bruno Haible  <bruno@clisp.org>
83776
83777         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83778
83779 2004-12-18  Bruno Haible  <bruno@clisp.org>
83780
83781         * lib/fatal-signal.c (fatal_signals): Make non-const.
83782         (init_fatal_signals): New function.
83783         (uninstall_handlers, install_handlers): Ignore signals that were set to
83784         SIG_IGN.
83785         (at_fatal_signal): Call init_fatal_signals.
83786         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83787         SIG_IGN.
83788         Reported by Paul Eggert.
83789
83790 2004-12-18  Bruno Haible  <bruno@clisp.org>
83791
83792         * doc/alloca.texi: New file.
83793         * doc/alloca-opt.texi: New file.
83794
83795 2004-12-17  Jim Meyering  <jim@meyering.net>
83796
83797         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83798         Otherwise, install-sh could exit with improper exit status when
83799         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83800
83801 2004-12-16  Simon Josefsson  <jas@extundo.com>
83802
83803         * tests/test-base64.c: Add license.
83804
83805 2004-12-15  Stepan Kasal  <address@hidden>
83806
83807         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83808
83809 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83810
83811         * modules/getcwd (Files): Add m4/d-ino.m4.
83812         Suggested by Mark D. Baushke.
83813
83814 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * lib/getdate.y (textint): New member "negative".
83817         (time_zone_hhmm): New function.
83818         Expect 14 shift-reduce conflicts, not 13.
83819         (o_colon_minutes): New rule.
83820         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83821         (yylex): Set the "negative" member of signed numbers.
83822
83823 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * doc/getdate.texi (Time of day items, Time zone items):
83826         Describe new formats +00:00, UTC+00:00.
83827
83828 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83829
83830         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83831         spurious "-l"s.  Problem reported by Stepan Kasal.
83832
83833 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83834
83835         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83836         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83837
83838 2004-12-04  Simon Josefsson  <jas@extundo.com>
83839
83840         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83841         Vandoorselaere <yoann@prelude-ids.org>.
83842
83843 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83844
83845         Changes imported from coreutils.
83846         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83847         exist.
83848         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83849
83850 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         Changes imported from coreutils.
83853         * lib/hard-locale.c: Assume <locale.h> exists.
83854         Include "strdup.h".
83855         (GLIBC_VERSION): New macro.
83856         (hard_locale): Assume setlocale exists.
83857         Rewrite to avoid #ifdef.
83858         Use strdup rather than malloc + strcpy.
83859         * lib/human.c: Assume <locale.h> exists.
83860         (human_readable): Assume localeconv exists.
83861
83862 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * modules/hard-locale (Depends-on): Add strdup.
83865
83866 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83867
83868         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83869         convert T2, not T.  (Imported from libc.)
83870
83871 2004-11-30  Simon Josefsson  <jas@extundo.com>
83872
83873         * modules/restrict (License): Change to LGPL.
83874
83875 2004-11-30  Simon Josefsson  <jas@extundo.com>
83876
83877         * m4/restrict.m4: Add copyright and copying conditions.
83878
83879 2004-11-30  Simon Josefsson  <jas@extundo.com>
83880
83881         * m4/base64.m4: New file.
83882
83883 2004-11-30  Simon Josefsson  <jas@extundo.com>
83884
83885         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83886         base64.
83887
83888         * tests/test-base64.c: New file.
83889
83890         * modules/base64: New file.
83891
83892 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83893
83894         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83895         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83896
83897         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83898
83899 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83900
83901         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83902         (__getcwd.c): Don't restore errno; glibc doesn't.
83903         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83904         first, falling back to our code only if its results look suspicious.
83905         Ensure that the resulting buffer is only as large as necessary.
83906
83907         * lib/readutmp.c: Include readutmp.h first.
83908         Include <errno.h>, since readutmp.h no longer does that.
83909         * lib/readutmp.h: Don't include <errno.h>,
83910         <sys/param.h>, <time.h>; not needed to establish interface.
83911         (errno): Remove decl.
83912         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83913         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83914         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83915
83916 2004-11-28  Simon Josefsson  <jas@extundo.com>
83917
83918         * lib/base64.h, base64.c: New file.
83919
83920 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83923
83924 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83925
83926         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83927         (Depends-on): Remove pathmax, same.  Add mempcpy.
83928         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83929         (Makefile.am): Append getcwd.h to lib_SOURCES.
83930         (Include): Add getcwd.h.
83931         (Maintainer): Change from Jim Meyering to "all, glibc",
83932         since getdate now uses intended-for-glibc code.
83933         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83934         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83935
83936 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83939         HP's ANSI C compiler.
83940         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83941         Declaring int functions causes warnings on some modern systems and
83942         shouldn't be needed to compile on ancient ones.
83943         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83944         defined.
83945
83946         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83947         with the following changes.
83948         (__set_errno): Parenthesize properly.
83949         Include <stdbool.h>.
83950         (MIN, MAX, MATCHING_INO): New macros.
83951         (__getcwd): Define with prototype, not K&R form.
83952         Use heuristics to allocate default buffer on stack if possible.
83953         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83954         behavior, and to avoid the PATH_MAX limit when computing
83955         ../../../../...
83956         Use MATCHING_INO to compare inode number to file.
83957         Check for arithmetic overflow in size calculations.
83958         Fix bug in reallocation of dot array that caused getcwd to fail
83959         on directories nested deeper than 75.
83960         Be more careful about saving errno on error.
83961         Do not use realloc; use only free+malloc, as this is a bit
83962         more flexible and avoids a needless copy operation.
83963         Do not inspect st_dev and st_ino for symbolic links; POSIX
83964         doesn't specify the latter.
83965         Check for closedir errors.
83966         Avoid needless casts.
83967         Use "#ifdef weak_alias" around weak_alias, to be like other
83968         glibc code.
83969         The following changes to getcwd.c have effect only when used in
83970         gnulib; they have no effect inside glibc proper.
83971         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83972         as alloca isn't used.
83973         (alloca, __alloca): Likewise.
83974         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83975         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83976         unconditionally, as gnulib assumes C89 or better.
83977         Do not include <sys/param.h>.
83978         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83979         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83980         better.
83981         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83982         Include <dirent.h> in a way that is compatible with modern Autoconf.
83983         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83984         New macros, if not already defined.
83985         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83986         Use "_LIBC", not "defined _LIBC", for consistency.
83987         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83988         a mempcpy module.
83989         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83990         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83991         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83992         credit only to Jim Meyering and adjust the copyright dates.
83993         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83994         <stdlib.h>, <unistd.h>, "pathmax.h".
83995         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83996         (INITIAL_BUFFER_SIZE): Remove.
83997         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83998
83999 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84000
84001         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84002         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84003         Use the _ONCE methods, for efficiency.
84004         Check for fcntl.h.  In test program, include <errno.h>
84005         and <fcntl.h> if available.  Remove old K&R cruft from
84006         test program.  Check for common errors in GNU/Linux,
84007         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84008         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84010         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84011         name accordingly.
84012         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84013         accommodate new getcwd.c.
84014         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84015         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84016         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84017         that's all we need now.
84018
84019 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84020
84021         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84022         argp-parse.c depends on getopt internals, that means we should
84023         always use our getopt, to be on the safe side.
84024         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84025         order not to spoil the result of an eventual previous invocation
84026         of gl_GETOPT_SUBSTITUTE.
84027
84028 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84029
84030         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84031         redefinition warnings. To avoid them, include the defines
84032         in `#if !defined __need_getopt ... #endif'. The only place
84033         where __getopt_argv_const is used is in definitions
84034         of getopt_long and getopt_long_only below, which are as well
84035         protected by `#ifndef __need_getopt'.
84036         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84037         __need_getopt after including <stdio.h> and <unistd.h> These
84038         headers might have defined it.
84039
84040 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84043
84044 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84047         (futimens): New function, which uses futimes if available.
84048         (futimens, utimens): Support timespec==NULL, with same semantics
84049         as utime and utimens.
84050         * lib/utimens.h (futimens): New decl.
84051
84052 2004-11-23  Jim Meyering  <jim@meyering.net>
84053
84054         * lib/getopt_.h: Remove trailing blanks.
84055
84056 2004-11-23  Jim Meyering  <jim@meyering.net>
84057
84058         * lib/__fpending.c: Add comment.
84059
84060 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84061
84062         * modules/canonicalize (Depends-on): Add xreadlink.
84063         Problem reported by James Youngman.
84064
84065 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84066
84067         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84068         New macros.
84069         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84070         optopt): Use them instead of invoking ## directly; otherwise, the
84071         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84072
84073 2004-11-19  Bruno Haible  <bruno@clisp.org>
84074
84075         * lib/strtok_r.c: Move comments from here...
84076         * lib/strtok_r.h: ... to here.
84077
84078 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84079
84080         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84081         implementations that mishandle size_t overflow.
84082
84083 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84086         might fail.  Problem reported by Yoann Vandoorselaere.
84087         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84088         implementations that mishandle size_t overflow.
84089
84090 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84091
84092         * modules/canon-host (Depends-on): Add strdup.
84093
84094 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84095
84096         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84097
84098 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84099
84100         * lib/canon-host.c: Include "strdup.h".
84101         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84102         Use strdup instead of malloc/strcpy to duplicate strings.
84103
84104         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84105         (human_space_before_unit): New constant.
84106         * lib/human.c (human_readable): Support it.
84107
84108         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84109         (xgetcwd): Set errno correctly when failing.
84110         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84111         the failure is actually due to a PATH_MAX problem.
84112
84113         Further getopt changes to make it more likely that glibc will
84114         buy the changes back.
84115         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84116         (getopt): Use it, so to preserve glibc semantic
84117         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84118         when compiling for libc.
84119         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84120         (getopt_long, getopt_long_only): Use it.
84121
84122         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84123         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84124         (getopt): Argv is now char * const *, as per standard.
84125         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84126         not char *__getopt_argv_const *.
84127         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84128         _getopt_long_only_r): Likewise.
84129         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84130         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84131         _getopt_long_r, _getopt_long_only_r): Likewise.
84132         * lib/getopt_.h (__getopt_argv_const): Remove.
84133         (getopt): Argv is now char * const *, as per standard.
84134
84135         * lib/getdate.y (tORDINAL): New token.
84136         (day, relunit): Allow it for relative times.
84137         (relative_time_table): Use tORDINAL for ordinals.
84138
84139 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84140
84141         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84142         Document that "second" isn't allowed as an ordinal number.
84143
84144 2004-11-16  Jim Meyering  <jim@meyering.net>
84145
84146         * modules/closeout (Depends-on): Add fpending.
84147
84148 2004-11-15  Jim Meyering  <jim@meyering.net>
84149
84150         * lib/closeout.c: Include "__fpending.h" once again.
84151         Include <stdbool.h>.
84152         (close_stdout): Don't fail just because stdout was closed initially,
84153         since some programs don't write to stdout in the normal course of
84154         operation (other than --version and --help), and we don't want this
84155         function to make e.g. `touch file >&-' fail.
84156         But do fail if it was closed and someone has tried to write to it.
84157         E.g., `printf foo >&-' must fail.
84158
84159 2004-11-13  Jim Meyering  <jim@meyering.net>
84160
84161         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84162
84163 2004-11-12  Simon Josefsson  <jas@extundo.com>
84164
84165         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84166         small doc fix is still pending.
84167
84168 2004-11-11  Simon Josefsson  <jas@extundo.com>
84169
84170         * modules/strtok_r: New file.
84171
84172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84173         strtok_r.
84174
84175 2004-11-11  Simon Josefsson  <jas@extundo.com>
84176
84177         * m4/strtok_r.m4: New file.
84178
84179         * m4/getopt.m4: Replace opterr.
84180
84181 2004-11-11  Simon Josefsson  <jas@extundo.com>
84182
84183         * lib/strtok_r.h, strtok_r.c: New file.
84184
84185 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84186
84187         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84188         of replacing opterr, getopt, etc.  This should handle the
84189         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84190
84191 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84192
84193         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84194         we can stop lying to compilers about the constness of argv when we
84195         are compiled outside glibc.
84196         (getopt, getopt_long, getopt_long_only): Use it.
84197         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84198         _getopt_internal, getopt): Likewise.
84199         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84200         _getopt_long_only_r): Likewise.
84201         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84202         _getopt_long_r, _getopt_long_only_r): Likewise.
84203
84204         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84205         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84206         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84207         the other external symbols.
84208         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84209         declaration, since the above renaming now works around collisions.
84210
84211 2004-11-11  Jim Meyering  <jim@meyering.net>
84212
84213         * lib/linebreak.c: Remove trailing blanks.
84214         * lib/alloca_.h: Likewise.
84215         * lib/acosl.c: Likewise.
84216         * lib/euidaccess.c: Likewise.
84217         * lib/allocsa.h: Likewise.
84218
84219 2004-11-10  Simon Josefsson  <jas@extundo.com>
84220
84221         * m4/getaddrinfo.m4: New file.
84222
84223 2004-11-10  Simon Josefsson  <jas@extundo.com>
84224
84225         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84226
84227 2004-11-10  Simon Josefsson  <jas@extundo.com>
84228
84229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84230         getaddrinfo.
84231
84232         * modules/getaddrinfo: New file.
84233
84234 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84235
84236         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84237
84238 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         * lib/mktime.c (SHR): New macro, which is a portable
84241         substitute for >> that should work even on Crays.
84242         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84243         Problem reported by Mark D. Baushke in
84244         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84245         * lib/getdate.y (SHR): Likewise.
84246         (tm_diff): Use it.
84247         * lib/strftime.c (SHR): Likewise.
84248         (tm_diff): Use it.
84249         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84250         quote_these_too, so that right shifts are well defined.  All uses
84251         changed.
84252
84253 2004-11-10  Jim Meyering  <jim@meyering.net>
84254
84255         Ensure that no close failure goes unreported.
84256         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84257         return early when it seems there's nothing to flush.
84258         Don't include __fpending.h.
84259
84260 2004-11-10  Jim Meyering  <jim@meyering.net>
84261
84262         * modules/closeout (Depends-on): Remove fpending.
84263
84264 2004-11-10  Jim Meyering  <jim@meyering.net>
84265
84266         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84267
84268 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84269
84270         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84271         gl_FUNC_STRFTIME.
84272         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84273         and AC_REQUIRE when possible, to avoid duplicate checks.
84274         Check for <wchar.h>.
84275
84276 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84279
84280 2004-11-09  Bruno Haible  <bruno@clisp.org>
84281
84282         * m4/sockpfaf.m4: New file.
84283
84284 2004-11-05  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84287         Reported by Mark D. Baushke <mdb@cvshome.org>.
84288
84289 2004-11-04  Bruno Haible  <bruno@clisp.org>
84290
84291         2004-09-11  Bruno Haible  <bruno@clisp.org>
84292                 * allocsa.valgrind: New file.
84293         2004-02-06  Bruno Haible  <bruno@clisp.org>
84294                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84295                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84296                 Reported by Christopher Seip <chris.seip@hp.com>.
84297
84298 2004-11-04  Bruno Haible  <bruno@clisp.org>
84299
84300         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84301         (Makefile.am): Distribute it.
84302
84303 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84306         with errno == ERANGE if the buffer is too small.
84307         Problem reported by Mark D. Baushke.
84308
84309 2004-11-03  Albert Chin  <china@thewrittenword.com>
84310             Paul Eggert  <eggert@cs.ucla.edu>
84311
84312         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84313         equivalent, substitute $ac_type for equivalent type rather than
84314         blindly using uint32_t *always* which won't work if uint32_t is not
84315         available.  Define _UINT32_T to work around typedef of uint32_t if
84316         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84317         2.5.1.
84318
84319 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84320
84321         * m4/jm-macros.m4: Sync from coreutils.
84322         (gl_MACROS): Check for mbrlen, for pathchk.
84323         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84324
84325 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * lib/xreadlink.c (MAXSIZE): New macro.
84328         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84329         size does not exceed MAXSIZE.  Avoid cast.
84330         As suggested by Mark D. Baushke in
84331         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84332         if readlink fails with buffer size just under MAXSIZE, try again
84333         with MAXSIZE.
84334
84335 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84338
84339 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84340         and  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84343         (get_date): Overparenthesize to avoid GCC warning.
84344
84345 2004-11-02  Bruno Haible  <bruno@clisp.org>
84346
84347         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84348         returns void.
84349
84350 2004-11-02  Bruno Haible  <bruno@clisp.org>
84351
84352         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84353         function returns void.
84354
84355 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84358         fflush_unlocked, flockfile, funlockfile, funlockfile,
84359         fputs_unlocked, putc_unlocked.
84360
84361 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84364         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84365         already declared.
84366
84367 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * modules/getdate (Files): Add doc/getdate.texi.
84370         (Depends-on): Add setenv, xalloc.
84371
84372 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         * lib/getdate.y: Add support for TZ="foo" within a date string.
84375         Fix some bugs near time_t boundaries.  Reject dates with
84376         out-of-range components, e.g., "Sept 31".
84377         Include <stdlib.h>, "setenv.h", "xalloc.h".
84378         (ISDIGIT_LOCALE): Remove; unused.
84379         Note that the TZ and time functions used here are not reentrant.
84380         (mktime_ok, get_tz): New functions.
84381         (TZBUFSIZE): New constant.
84382         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84383         This requires that we sometimes generate our own TZ="XXX..." setting.
84384
84385 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * doc/getdate.texi: New file, from coreutils with modifications for
84388         the new TZ parsing.
84389
84390 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84391
84392         * lib/mktime.c (not_equal_tm): Remove redundant check.
84393
84394 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * modules/regex (lib_SOURCES): Add regex.c.
84397         Reported by James Youngman in
84398         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84399
84400 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         * lib/getdate.y: Use Bison 1.875 features, and some minor
84403         code cleanups.  This change does not affect semantics.
84404         Don't include <stdlib.h>; no longer needed.
84405         Don't include unlocked-io.h; only the "#if TEST" code uses
84406         stdio, and performance isn't crucial there.
84407         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84408         Bison 1.875 features as described below.
84409         All uses of "PC." replaced by "pc->".
84410         (YYSTYPE): Add a forward declaration.
84411         (yylex, yyerror): Use full prototypes in forward decls.
84412         Use "%pure-parser" rather than obsolescent "%pure_parser".
84413         Use %parse-param and %lex-param instead of obsolescent
84414         YYPARSE_PARAM and YYLEX_PARAM.
84415         (meridian_table, month_and_day_table, time_units_table,
84416         relative_time_table, time_zone_table, military_table,
84417         lookup_zone, lookup_word, get_date):
84418         Use NULL instead of 0 where appropriate.
84419         (to_hour): Avoid abort (), to avoid a dependency on
84420         stdlib.h.
84421         (yyerror, yylex): Now accepts parser_control * arg.
84422         (main) [TEST]: Use '\0' rather than 0 for char.
84423
84424 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84427
84428 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84429
84430         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84431         It's now the caller's responsibility to handle the case where
84432         !HAVE_GETPAGESIZE && !defined getpagesize.
84433
84434         * lib/mktime.c (leapyear): Arg is long int, not int.
84435
84436 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84439
84440 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84443         missing.  Problem reported by James Youngman.
84444
84445 2004-10-16  Simon Josefsson  <jas@extundo.com>
84446
84447         * gnulib-tool: Fix comments.  Fix parse problem.
84448         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84449
84450 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84451
84452         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84453         implementation of getopt_long.  Problem reported by Alexander Taler in:
84454         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84455
84456 2004-10-15  Bruno Haible  <bruno@clisp.org>
84457
84458         * gnulib-tool: Untabify. Initialize supplied_libname.
84459         (func_usage): More homogenous output.
84460         (func_modules_transitive_closure, func_modules_to_filelist,
84461         func_emit_lib_Makefile_am): New functions.
84462         (func_import): New function, extracted from big case statement. Use
84463         func_get_license, func_modules_transitive_closure,
84464         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84465         opt_lgpl. Don't use test -a, as it's not portable.
84466         (func_create_testdir): Use func_modules_transitive_closure,
84467         func_modules_to_filelist, func_emit_lib_Makefile_am.
84468
84469 2004-10-15  Bruno Haible  <bruno@clisp.org>
84470
84471         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84472
84473 2004-10-15  Bruno Haible  <bruno@clisp.org>
84474
84475         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84476         the portions belonging to each module.
84477         Suggested by Derek Robert Price <derek@ximbiot.com>.
84478
84479 2004-10-12  Simon Josefsson  <jas@extundo.com>
84480
84481         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84482         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84483         to real functions.
84484
84485 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84486
84487         * modules/vsnprintf: New file.
84488
84489 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84490
84491         * m4/vsnprintf.m4: New file.
84492
84493 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84494
84495         * lib/vsnprintf.h: New file.
84496         * lib/vsnprintf.c: New file.
84497
84498 2004-10-11  Bruno Haible  <bruno@clisp.org>
84499
84500         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84501         vsnprintf.
84502
84503 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84504
84505         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84506
84507 2004-10-07  Bruno Haible  <bruno@clisp.org>
84508
84509         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84510         fits into the provided buffer.
84511
84512 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * lib/diacrit.c, diacrit.h: Add GPL notice.
84515
84516         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84517         notice.
84518         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84519         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84520         This avoids a potential constant-folding bug.
84521
84522 2004-10-05  Bruno Haible  <bruno@clisp.org>
84523
84524         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84525         for the declaration of strsep.
84526
84527 2004-10-05  Bruno Haible  <bruno@clisp.org>
84528
84529         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84530
84531 2004-10-04  Simon Josefsson  <jas@extundo.com>
84532
84533         * modules/memmem: New file.
84534         * tests/test-memmem.c: New file.
84535         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84536
84537 2004-10-04  Simon Josefsson  <jas@extundo.com>
84538
84539         * m4/memmem.m4: New file.
84540
84541 2004-10-04  Simon Josefsson  <jas@extundo.com>
84542
84543         * lib/memmem.h: New file.
84544         * lib/memmem.c: New file, taken from glibc.
84545
84546 2004-10-04  Simon Josefsson  <jas@extundo.com>
84547
84548         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84549         '#ifdef USE_UNLOCKED_IO'.
84550
84551 2004-10-04  Simon Josefsson  <jas@extundo.com>
84552
84553         * config/srclist.txt: Add memmem from glibc.
84554
84555 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84558
84559         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84560         modules/exclude, modules/getdate, modules/getline,
84561         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84562         modules/getusershell, modules/linebuffer, modules/md5,
84563         modules/mountlist, modules/posixtm, modules/readtokens,
84564         modules/readutmp, modules/regex, modules/sha1,
84565         modules/version-etc, modules/yesno:
84566         Remove dependency on unlocked-io.
84567
84568 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84571
84572         * m4/unlocked-io.m4: Add copyright notice.
84573         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84574
84575 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84578         * lib/xmalloc.c (xmemdup): Likewise.
84579         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84580         XFREE): Remove these long-obsolescent macros.
84581         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84582         * lib/xstrdup.c: Remove.
84583
84584         * lib/regex.c (re_comp): Cast gettext return value to char *,
84585         Problem reported by Martin Neitzel via Mark D. Baushke.
84586
84587 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84588
84589         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84590         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84591         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84592         regex.c, sha1.c, version-etc.c, yesno.c:
84593         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84594         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84595         the includer's responsibility.
84596
84597         Sync from coreutils.
84598
84599         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84600         points to the start of a string, as the C Standard says the
84601         resulting behavior is undefined.
84602
84603         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84604         simple -> simple_backups, numbered_existing ->
84605         numbered_existing_backups, numbered -> numbered_backups
84606         to avoid shadowing problems.  All uses changed.
84607         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84608         * lib/backupfile.c (check_extension, numbered_backup):
84609         Rename locals to avoid shadowing 'basename'.
84610         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84611         once.
84612
84613         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84614         * lib/.cvsignore: Add getopt.h.
84615
84616 2004-10-04  Bruno Haible  <bruno@clisp.org>
84617
84618         * modules/README: New file.
84619         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84620         not a module.
84621
84622 2004-10-02  Jim Meyering  <jim@meyering.net>
84623
84624         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84625
84626 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84627
84628         * modules/strsep: New file.
84629
84630 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84631
84632         * m4/strsep.m4: New file.
84633
84634 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84635
84636         * lib/strsep.h: New file.
84637         * lib/strsep.c: New file.
84638
84639 2004-10-01  Simon Josefsson  <jas@extundo.com>
84640
84641         * lib/snprintf.c (snprintf): Handle size==0.
84642
84643 2004-10-01  Simon Josefsson  <jas@extundo.com>
84644             Bruno Haible  <bruno@clisp.org>
84645
84646         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84647         (snprintf): Declare 'args'.
84648
84649 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         * lib/snprintf.c: Remove comments as to why each header is needed.
84652
84653 2004-10-01  Bruno Haible  <bruno@clisp.org>
84654
84655         * MODULES.html.sh: Add strsep.
84656
84657 2004-09-30  Simon Josefsson  <jas@extundo.com>
84658
84659         * modules/snprintf: New file.
84660
84661 2004-09-30  Simon Josefsson  <jas@extundo.com>
84662
84663         * m4/snprintf.m4: New file.
84664
84665 2004-09-30  Simon Josefsson  <jas@extundo.com>
84666
84667         * lib/snprintf.h, lib/snprintf.c: New files.
84668
84669 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84670
84671         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84672         (hol_entry_help): Never translate an empty string.
84673         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84674         * lib/argp.h (OPTION_NO_TRANS): New option.
84675
84676 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84677
84678         * modules/argp (Maintainer): Replace Simon Josefsson
84679         by Sergey Poznyakoff.
84680
84681 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84682
84683         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84684         changes merged back into glibc.
84685
84686 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84687
84688         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84689
84690 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84691
84692         * lib/xvasprintf.c: Include xalloc.h.
84693         (xvasprintf): Use xalloc_die, not xmalloc_die.
84694
84695 2004-09-29  Bruno Haible  <bruno@clisp.org>
84696
84697         * modules/alloca-opt: New file, derived from modules/alloca.
84698         * modules/allocsa: Depend on alloca-opt instead of alloca.
84699         * modules/setenv: Likewise.
84700         * modules/vasnprintf: Likewise.
84701         * MODULES.html.sh: Add alloca-opt.
84702
84703 2004-09-28  Simon Josefsson  <jas@extundo.com>
84704
84705         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84706         LGPL, and to replace license template from GPL to LGPL.
84707
84708 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * modules/dummy: Change license to LGPL.
84711
84712 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84713
84714         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84715
84716 2004-09-24  Simon Josefsson  <jas@extundo.com>
84717
84718         * modules/minmax (License): Change from GPL to LGPL.
84719
84720 2004-09-23  Simon Josefsson  <jas@extundo.com>
84721
84722         * gnulib-tool (--import): Typo.
84723
84724 2004-09-23  Simon Josefsson  <jas@extundo.com>
84725
84726         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84727
84728 2004-09-22  Bruno Haible  <bruno@clisp.org>
84729
84730         * modules/*: Add 'License' field.
84731         * gnulib-tool: Accept --extract-license option.
84732         (func_get_license): New function.
84733
84734 2004-09-21  Bruno Haible  <bruno@clisp.org>
84735
84736         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84737         Reported by Simon Josefsson.
84738
84739 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84740
84741         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84742         gl_AC_TYPE_LONG_LONG.
84743
84744 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84747
84748 2004-09-18  Simon Josefsson  <jas@extundo.com>
84749         and  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84752         calls with autoreconf.  Define GL_LIB.
84753
84754 2004-09-14  Karl Berry  <karl@gnu.org>
84755
84756         * config/srclist.txt: unsync setenv.c, sigh.
84757
84758 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84759
84760         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84761         Problem reported by Bruno Haible in:
84762         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84763
84764 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         * config/srclist.txt: Comment out argp-pvh.c.
84767
84768 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84769
84770         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84771         in case some system header has #define'd it.  Problem reported by
84772         Soeren D. Schulze in
84773         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84774
84775 2004-09-09  Karl Berry  <karl@gnu.org>
84776
84777         * regex.[ch]: delete from the root.  These were supposed to be
84778                 synced with emacs cvs, but this has not happened for about
84779                 a year, and anyway nothing else uses emacs regex.[ch].
84780                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84781                 lib/regex[.ch] is untouched.
84782
84783 2004-09-09  Bruno Haible  <bruno@clisp.org>
84784
84785         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84786
84787 2004-09-09  Bruno Haible  <bruno@clisp.org>
84788
84789         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84790         modifications.
84791         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84792
84793 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84794
84795         * modules/xvasprintf: New file.
84796         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84797
84798 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84799
84800         * lib/xvasprintf.h: New file.
84801         * lib/xvasprintf.c: New file.
84802         * lib/xasprintf.c: New file.
84803
84804 2004-09-08  Bruno Haible  <bruno@clisp.org>
84805
84806         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84807
84808 2004-09-08  Bruno Haible  <bruno@clisp.org>
84809
84810         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84811         length is > INT_MAX.
84812         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84813         more.
84814
84815 2004-09-08  Bruno Haible  <bruno@clisp.org>
84816
84817         * lib/stdint_.h: New file, taken from GNU clisp.
84818
84819 2004-09-08  Bruno Haible  <bruno@clisp.org>
84820             Oskar Liljeblad  <oskar@osk.mine.nu>
84821
84822         * modules/stdint: New file.
84823         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84824
84825 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         Import from coreutils.
84828         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84829         strings on unbounded length.  alloca's performance benefits aren't
84830         that important here.
84831         (V_STRDUP): Remove.
84832         (parse_with_separator): New function, with most of the internals
84833         of the old parse_user_spec.  Allow user to omit both user and group,
84834         for compatibility with FreeBSD.
84835         Clone only the user name, not the entire spec.
84836         Do not set *uid, *gid unless entirely successful.
84837         Avoid memory leak in some failing cases.
84838         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84839         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84840         (parse_user_spec): Rewrite to use parse_with_separator.
84841
84842 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84843
84844         * modules/userspec: Don't depend on alloca.
84845
84846 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84849
84850 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84853         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84854         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84855
84856 2004-08-16  Simon Josefsson  <jas@extundo.com>
84857
84858         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84859         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84860         Add --dry-run for --import.
84861         Let user provided command line parameters override configure.ac
84862         settings.
84863
84864 2004-08-12  Simon Josefsson  <jas@extundo.com>
84865
84866         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84867         as discussed with Paul Eggert in threads rooted at
84868         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84869         and
84870         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84871         Before, the test was empty, and relied on ELIDE_CODE in source
84872         code.)
84873         (gl_PREREQ_GETOPT): New macro.
84874         (gl_GETOPT): Use them.
84875
84876 2004-08-12  Simon Josefsson  <jas@extundo.com>
84877
84878         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84879         * lib/getopt_.h: Renamed from getopt.h.
84880
84881 2004-08-12  Simon Josefsson  <jas@extundo.com>
84882
84883         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84884         Change default library name from libfoo to libgnu.
84885         Now, if you have a configure.ac that says:
84886                 gl_SOURCE_BASE(gl)
84887                 gl_M4_BASE(gl/m4)
84888                 gl_MODULES(error getopt etcetera)
84889                 gl_INIT
84890         you can import all you need by running:
84891                 ../gnulib/gnulib-tool --import
84892
84893         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84894         (Makefile.am): Rewrite, use logic from argz.
84895         (Include): Use <getopt.h> instead of "getopt.h".
84896
84897 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * modules/argp (Files): Add m4/unlocked-io.m4.
84900         (Depends-on): Add extensions.
84901
84902 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84903
84904         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84905         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84906         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84907         Check for program_invocation_name, program_invocation_short_name,
84908         flockfile, funlockfile, features.h, _getopt_long_only_r.
84909
84910 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84913         its complicated substitute.
84914         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84915         and program_invocation_name.
84916         (__argp_basename) [!_LIBC]: Remove; the only use was
84917         replaced by its body.
84918         (__argp_short_program_name): Change condition from
84919         !defined __argp_short_program_name to
84920         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84921         to match argp-namefrob.h.
84922         (__argp_failure): Don't assume strerror_r returns char *.
84923         * lib/argp-parse.c (N_): Define unconditionally.
84924         (argp_default_options): Fill out initializers with 0 to avoid
84925         gcc warnings.
84926
84927 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84928
84929         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84930         getopt1.c.
84931
84932 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84933
84934         Merge from coreutils.
84935
84936         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84937
84938         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84939         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84940
84941 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84942
84943         Merge from coreutils.
84944
84945         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84946         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84947         for Reliant Unix 5.43.
84948
84949         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84950         (union fooround): Use uintmax_t, not long int.
84951         The rest is a merge from libc:
84952         [defined _LIBC]: Include <shlib-compat.h>.
84953         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84954
84955         * lib/settime.c (settime): Recode to avoid warning with
84956         Sun Forte C 6U2.
84957
84958         * lib/strverscmp.c: Convert to UTF-8.
84959
84960 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84961
84962         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84963         m4/uintmax_t.m4.
84964
84965 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84966
84967         * modules/xalloc-die: New file.
84968         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84969
84970         * modules/md5 (Files): Add m4/uint32_t.m4.
84971         * modules/sha1: Renamed from modules/sha.
84972         (Files):
84973         Rename lib/sha.h to lib/sha1.h.
84974         Rename lib/sha.c to lib/sha1.c.
84975         Rename m4/sha.m4 to m4/sha1.m4.
84976         (lib_SOURCES): Likewise.
84977         (configure.ac): Rename gl_SHA to gl_SHA1.
84978         (Include): sha.h -> sha1.h.
84979
84980 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84983         * m4/sha1.m4: Renamed from sha.m4.
84984         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84985
84986 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84987
84988         * lib/obstack.h (obstack_empty_p):
84989         Don't assume that chunk->contents is suitably aligned.
84990         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84991         Likewise. Problem reported by Benno in
84992         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84993
84994         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84995         readable.  This could be improved further but it'd take some work.
84996
84997 2004-08-08  Simon Josefsson  <jas@extundo.com>
84998
84999         * modules/xgethostname (Depends-on): Remove exit and error (not
85000         used).
85001
85002         * modules/getpass-gnu: Add getpass.h.
85003         (Depends-on): Add stdbool.
85004         * modules/getpass: Add getpass.h.
85005
85006 2004-08-08  Simon Josefsson  <jas@extundo.com>
85007
85008         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85009         Check getpass declaration.
85010
85011 2004-08-08  Simon Josefsson  <jas@extundo.com>
85012
85013         * lib/xgethostname.c: Don't include error.h (not used).
85014
85015         * lib/getpass.h: Add.
85016         * lib/getpass.c: Include getpass.h first.
85017
85018 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85019
85020         * lib/xalloc-die.c: New file.
85021         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85022         All uses removed.
85023         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85024         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85025         xalloc-die.c.
85026         (_, N_, xalloc_die): Move to xalloc-die.c.
85027         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85028         so that we needn't mess with xalloc_msg_memory_exhausted.
85029
85030         * lib/sha1.h: Renamed from sha.h.
85031         (SHA1_H): Renamed from _SHA_H.
85032         (sha1_ctx): Renamed from sha_ctx.
85033         (sha1_init_ctx): Renamed from sha_init_ctx.
85034         (sha1_process_block): Renamed from sha_process_block.
85035         (sha1_process_bytes): Renamed from sha_process_bytes.
85036         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85037         (sha1_read_ctx): Renamed from sha_read_ctx.
85038         (sha1_stream): Renamed from sha_stream.
85039         (sha1_buffer): Renamed from sha_buffer.
85040         * lib/sha1.c: Likewise; renamed from sha.c.
85041         Do not include <sys/types.h>.
85042         Include <stddef.h> rather than <stdlib.h>.
85043
85044 2004-08-08  Bruno Haible  <bruno@clisp.org>
85045
85046         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85047         FILESYSTEM_PREFIX_LEN.
85048         * lib/progreloc.c: Likewise.
85049         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85050
85051 2004-08-06  Simon Josefsson  <jas@extundo.com>
85052
85053         * modules/progname (Depends-on): Don't depend on stdbool.
85054
85055 2004-08-06  Simon Josefsson  <jas@extundo.com>
85056
85057         * modules/getsubopt: New file.
85058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85059         getsubopt.
85060
85061 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85062
85063         More merge from coreutils.
85064
85065         * m4/utimens.m4, m4/utimecmp.m4: New files.
85066         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85067         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85068         prereq.m4, sha.m4: Import changes from coreutils.
85069
85070 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85071
85072         More merge from coreutils.
85073         * modules/raise, modules/readtokens0, modules/utimens:
85074         * modules/utimecmp, module/xnanosleep: New files.
85075         * modules/strftime: Add lib/strftime.h.
85076         Change include from <time.h> to "strftime.h".
85077         * modules/yesno: Add lib/yesno.h.
85078         * modules/backupfile: Remove lib/addext.c.
85079         * modules/euidaccess: Add stat-macros.h.
85080         * modules/canonicalize, modules/euidaccess,
85081         modules/filemode, modules/lchown, modules/makepath,
85082         modules/rmdir, modules/stat: Likewise.
85083
85084 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         Merge from tar.
85087         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85088         SIZE_MAX is a valid preprocessor constant.
85089         (__argp_basename): Change from "#ifndef _LIBC"
85090         to "#ifndef __argp_short_program_name", so that
85091         we don't compile these functions for tar.
85092
85093         More merges from coreutils.
85094         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85095         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85096         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85097         * lib/addext.c: Remove; no longer needed.
85098         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85099         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85100         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85101         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85102         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85103         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85104         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85105         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85106         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85107         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85108         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85109         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85110         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85111         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85112         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85113         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85114         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85115         Import changes from coreutils.
85116
85117 2004-08-05  Simon Josefsson  <jas@extundo.com>
85118
85119         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85120
85121 2004-08-05  Simon Josefsson  <jas@extundo.com>
85122
85123         * m4/getsubopt.m4: New file.
85124
85125 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85126
85127         Merge from coreutils.
85128
85129         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85130         * m4/getcwd-path-max.m4: New files.
85131
85132         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85133         FILESYSTEM_PREFIX_LEN ->
85134         FILE_SYSTEM_PREFIX_LEN.
85135         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85136         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85137         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85138         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85139
85140         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85141         prerequisite modules now handle the DOS stuff.
85142         Don't check for unistd.h.
85143
85144 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         Merge from coreutils.
85147
85148         * lib/.gdb-history: Remove; this doesn't belong here.
85149
85150         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85151         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85152         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85153         * lib/getcwd.c: New files.
85154
85155         * lib/dirname.h: Include <stdbool.h>.
85156         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85157         for consistency with POSIX terminology.  All uses changed.
85158         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85159         (strip_trailing_slashes): Use bool for booleans.
85160         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85161
85162         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85163         sometimes returns a positive errno value even when it succeeds.
85164         (print_errno_message) [!LIBC]: Fall back on strerror if
85165         __strerror_r fails.
85166
85167         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85168         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85169         (longest_relative_suffix): New function.
85170         (path_concat): Use it.  Assume first argument is not NULL.
85171         Port to DOS.  Omit redundant separators.
85172         Report an error instead of returning NULL.
85173         Use mempcpy instead of memcpy.
85174         (xpath_concat): Remove: not declared or used.
85175
85176         * lib/same.h: Include <stdbool.h>
85177         (same_name): Return bool, not int.
85178         * lib/same.c (same_name): Likewise.
85179         (errno): Don't declare; we assume C89 or better now.
85180
85181         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85182         if not already defined.
85183
85184         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85185         * lib/dup-safer.c (errno): Likewise.
85186
85187 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85188
85189         Merge from coreutils.
85190         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85191         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85192         * modules/path-concat: Don't depend on strdup.
85193
85194 2004-08-03  Simon Josefsson  <jas@extundo.com>
85195
85196         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85197         * lib/progname.h: Don't include stdbool.h.
85198
85199 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85202         * MODULES.html.sh (func_all_modules): Remove fatal.
85203
85204 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85205
85206         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85207
85208 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85211         working.
85212
85213 2004-08-02  Simon Josefsson  <jas@extundo.com>
85214
85215         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85216         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85217         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85218
85219 2004-08-01  Simon Josefsson  <jas@extundo.com>
85220
85221         * lib/xgetdomainname.c: Include stdlib.h, for free().
85222
85223 2004-07-19  Bruno Haible  <bruno@clisp.org>
85224
85225         * MODULES.html.sh (func_all_modules): Add dummy.
85226
85227 2004-07-16  Simon Josefsson  <jas@extundo.com>
85228
85229         * modules/dummy: New file.
85230
85231 2004-07-16  Simon Josefsson  <jas@extundo.com>
85232
85233         * lib/dummy.c: New file.
85234
85235 2004-07-16  Bruno Haible  <bruno@clisp.org>
85236
85237         * lib/backupfile.h: Add extern "C" for C++.
85238         * lib/closeout.h: Likewise.
85239         * lib/copy-file.h: Likewise.
85240         * lib/findprog.h: Likewise.
85241         * lib/full-write.h: Likewise.
85242         * lib/pathname.h: Likewise.
85243         * lib/progname.h: Likewise.
85244         * lib/stpcpy.h: Likewise.
85245         * lib/stpncpy.h: Likewise.
85246         * lib/strcase.h: Likewise.
85247         * lib/strstr.h: Likewise.
85248         * lib/xalloc.h: Likewise.
85249
85250         * lib/mbswidth.h: Add extern "C" for C++.
85251         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85252
85253 2004-07-13  Robert Millan  <robertmh@gnu.org>
85254
85255         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85256
85257 2004-07-09  Simon Josefsson  <jas@extundo.com>
85258
85259         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85260         failed without this.)
85261
85262 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85263
85264         * modules/chown (Files): Add lib/fchown-stub.c, since
85265         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85266
85267 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * lib/fchown-stub.c: New file.
85270
85271 2004-06-24  Jim Meyering  <jim@meyering.net>
85272
85273         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85274
85275 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85276
85277         * modules/argz: Omit "#include".
85278
85279         * MODULES.html.sh (func_all_modules): Add calloc, to match
85280         2004-06-01 addition of calloc module.
85281
85282 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85283
85284         * m4/argz.m4: New file, which is autoupdated from libtool.
85285
85286 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85289         libtool.
85290
85291 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         * config/srclist-update: Don't insist on "USA." before the
85294         close-comment, as libtool omits the period and puts the */ on a
85295         separate line.
85296         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85297         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85298
85299 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85300
85301         * modules/argz: New file.
85302         * MODULES.html.sh (func_all_modules): Add argz.
85303
85304 2004-06-12  Jim Meyering  <jim@meyering.net>
85305         and  Paul Eggert  <eggert@cs.ucla.edu>
85306
85307         * modules/hash (Files): Add lib/xalloc.h.
85308         * modules/pipe (Depends-on): Add wait-process.
85309         * modules/stat (Depends-on): Add xalloc.
85310         * modules/userspec (Files): Add lib/userspec.h.
85311         * modules/xstrto
85312
85313         Upgrade from gettext-0.13.
85314         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85315         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85316         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85317
85318 2004-06-10  Jim Meyering  <jim@meyering.net>
85319
85320         * lib/calloc.c: New file.
85321
85322 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         * lib/getdate.y (yylex): Allow space between sign and number.
85325         Problem reported by Dan Jacobson.
85326
85327 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85328
85329         Merge from coreutils CVS.
85330
85331         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85332         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85333         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85334         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85335         xstrtol.m4: Fix copyright date and/or serial number.
85336
85337         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85338         See if we need an fchown replacement.
85339         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85340         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85341         and use the replacement function if we detect either defect.
85342
85343         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85344         gl_UTIMECMP.
85345
85346 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85347         and  Jim Meyering  <jim@meyering.net>
85348
85349         Merge from coreutils CVS.
85350
85351         * lib/stat-macros.h: New file, with contents from file-type.h
85352         and coreutils' system.h.
85353         * lib/file-type.c: Include "stat-macros.h".
85354         * lib/file-type.h (file_type): Move all macro definitions to new file,
85355         stat-macros.h.
85356
85357         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85358         Wrap old code with this conditional.
85359         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85360         function that does not dereference symlinks.
85361         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85362
85363         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85364         dependency problems.
85365         (xreadlink): Accept new arg SIZE, for efficiency.
85366         All decls and uses changed.
85367         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85368
85369         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85370         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85371
85372         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85373         sysexits.h.
85374
85375 2004-06-01  Jim Meyering  <jim@meyering.net>
85376
85377         * m4/calloc.m4: New file.
85378
85379 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85380
85381         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85382         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85383         Also, fix a typo in a diagnostic.
85384
85385 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85388         or AC_FUNC_REALLOC.
85389
85390 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85391
85392         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85393         macros to be defined.
85394         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85395         the allocator returns NULL because the requested size is zero.
85396
85397 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85400         var.  Add comment explaining why libc still defines it.  This
85401         merges the following patch from glibc:
85402         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85403
85404 2004-05-20  Andreas Schwab  <schwab@suse.de>
85405
85406         * m4/free.m4: Replace free if it not known to work, not the other
85407         way round.
85408
85409 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85412         present in glibc since revision 1.1 of this file.
85413         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85414         obstack_alignment_mask, obstack_alloc, obstack_base,
85415         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85416         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85417         obstack_grow0, obstack_init, obstack_int_grow,
85418         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85419         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85420         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85421         nonexistent functions.
85422
85423 2004-05-18  Karl Berry  <karl@gnu.org>
85424
85425         * config/srclist.txt: break link for vasnprintf.c.
85426
85427 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         Port obstack to the AS/400, where pointers are 16 bytes wide and
85430         you cannot cast an integer to a valid pointer.  This patch is
85431         currently waiting to be integrated into glibc; see
85432         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85433
85434         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85435         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85436         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85437         (struct obstack): temp member is now a union of a pointer and
85438         an integer, instead of an integer.  All integer uses changed.
85439         This does not affect the physical layout of struct obstack,
85440         except on hosts (like the AS/400) where the size or alignment of
85441         void * is greater than that of ptrdiff_t.
85442         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85443         __STDC__)]: Store temporary in pointer member of union, not
85444         integer member.
85445         * lib/obstack.c: Include <stddef.h>, for offsetof.
85446         (struct fooalign): Remove; it doesn't need a name.
85447         (union fooround): Change double to long double, and add void *.
85448         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85449         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85450         not a macro.  Hence the values are always int; so remove all
85451         casts-to-int in uses.
85452
85453 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85456         we can get this patch merged into glibc.
85457
85458 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85459             Paul Eggert  <eggert@cs.ucla.edu>
85460
85461         * m4/argp: Depend on alloca.
85462
85463 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85464             Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85467         freecoding.
85468
85469 2004-05-17  Bruno Haible  <bruno@clisp.org>
85470
85471         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85472         precision that consists of a '.' followed by an empty digit string.
85473         Patch by Tor Lillqvist <tml@iki.fi>.
85474
85475 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85478         for backward compatibility with older code.  We need our own
85479         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85480         it under some other name, and our alloca.h will define it.
85481
85482 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85483             Derek Price  <derek@ximbiot.com>
85484
85485         * lib/alloca.c: Include <alloca.h>, to get our interface.
85486         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85487         include <alloca.h> first.  Use C89 prototype for alloca; this
85488         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85489         Use #elif for simplicity, since we can assume C89 now.
85490         Don't try to source the system alloca.h since it will not be found
85491         and to prevent recursively including its replacement.
85492         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85493         * lib/regex.c: Likewise.
85494
85495 2004-05-16  Derek Price  <derek@ximbiot.com>
85496             Paul Eggert  <eggert@cs.ucla.edu>
85497
85498         getline cleanup.  This changes the getndelim2 API: both order of
85499         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85500         no delimiter).
85501
85502         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85503         interface does that.
85504         (getline): Always use getdelim, so that we don't have two
85505         copies of this code.
85506         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85507         if available.
85508         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85509         (GETNDELIM2_MAXIMUM): New macro.
85510         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85511         instead of the old practice of delim2==0.  All callers changed.
85512         Return -1 on overflow, instead of returning junk.
85513         Do not set *linesize unless allocation succeeds.
85514         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85515         that we include sys/types.h.
85516         * lib/getnline.h: Likewise.
85517         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85518         (getndelim2): Reorder arguments.
85519         * lib/getnline.c (getnline, getndelim):
85520         Don't discard the NMAX argument.
85521         (getnline): Invoke getndelim, to avoid code duplication.
85522         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85523         of (size_t) -1 by callers of the getnline family.
85524
85525 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85526
85527         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85528         Check for gettimeofday.
85529         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85530         Check for settimeofday, stime.
85531
85532 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85533
85534         * lib/nanosleep.c (suspended): Change its type from int to
85535         sig_atomic_t volatile.
85536         (first_call): Make it private to rpl_nanosleep, and have it
85537         be zero initially as that's a bit faster.
85538         (my_usleep): Round up fractional times instead of truncating them,
85539         as this is the usual meaning for 'sleep'.
85540
85541         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85542         doesn't work.
85543         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85544         (ENOSYS): Define if not defined.
85545         (settime): Fall back on stime if it exists and settimeofday fails.
85546         But don't bother with fallbacks if a method fails with errno == EPERM.
85547
85548 2004-05-11  Jim Meyering  <jim@meyering.net>
85549
85550         Prior to this change, the save_cwd caller required read access to the
85551         current directory on most systems (ones with the fchdir function).
85552
85553         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85554         fails, try write-only, and finally, resort to using xgetcwd.
85555
85556 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85557
85558         * lib/obstack.c, obstack.h: Import changes from libc.
85559
85560 2004-04-28  Bruno Haible  <bruno@clisp.org>
85561
85562         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85563         also implicitly appends .exe to executables.
85564         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85565         accepts Windows pathnames.
85566         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85567         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85568         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85569         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85570         Reported by Derek Robert Price <derek@ximbiot.com>.
85571
85572 2004-04-21  Karl Berry  <karl@gnu.org>
85573
85574         * config/srclist.txt (localcharset.c): break sync.
85575
85576 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85577
85578         * m4/host-os.m4: Add a copyright notice.
85579
85580 2004-04-20  Jim Meyering  <jim@meyering.net>
85581
85582         Change UTILS_ to gl_ in AC_DEFINE'd names.
85583         Change utils_- and jm_-prefixed variables, too.
85584         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85585         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85587
85588         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85589         Don't emit trailing blanks.
85590         Also rename jm_-prefixed variables to have gl_ prefix.
85591
85592         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85593         Also rename jm_-prefixed variables to have gl_ prefix.
85594
85595         * m4/jm-macros.m4: Reflect the renamings.
85596         * m4/prereq.m4: Likewise.
85597
85598 2004-04-20  Jim Meyering  <jim@meyering.net>
85599
85600         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85601         memory.
85602
85603 2004-04-20  Jim Meyering  <jim@meyering.net>
85604             Bruno Haible  <bruno@clisp.org>
85605
85606         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85607         memory when realloc fails.
85608
85609 2004-04-19  Jim Meyering  <jim@meyering.net>
85610
85611         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85612         now that readutmp.c may call `free (0)'.
85613
85614 2004-04-19  Bruno Haible  <bruno@clisp.org>
85615
85616         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85617         * m4/inttypes_h.m4: Likewise.
85618         * m4/stdint_h.m4: Likewise.
85619         * m4/intmax_t.m4: Likewise.
85620         * m4/uintmax_t.m4: Likewise.
85621
85622 2004-04-18  Jim Meyering  <jim@meyering.net>
85623
85624         * m4/prereq.m4: Don't forbid jm_ prefix.
85625
85626         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85627         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85628         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85629         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85630         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85631         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85632         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85633         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85634         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85635         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85636         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85637         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85638         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85639         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85640         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85641         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85642         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85643         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85644         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85645
85646 2004-04-18  Jim Meyering  <jim@meyering.net>
85647
85648         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85649         failure, don't leak memory and do call END_UTMP_ENT.
85650
85651 2004-04-16  Jim Meyering  <jim@meyering.net>
85652
85653         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85654         coreutils' stat program.
85655         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85656
85657 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85658
85659         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85660         C89.
85661         (CHAR_BIT): Remove, since we assume C89.
85662         Include <stdint.h> if available, as per current Autoconf CVS advice.
85663
85664 2004-03-31  Jim Meyering  <jim@meyering.net>
85665
85666         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85667         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85668         * m4/xalloc.m4: Likewise.
85669
85670 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85671
85672         Merge from coreutils.
85673
85674         * m4/inttostr.m4: New file.
85675         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85676         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85677         Require gl_CLOCK_TIME.
85678         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85679
85680 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85681
85682         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85683         not bool, to be more consistent with Unix conventions.
85684         Suggested by Bruno Haible.
85685
85686         Merge from coreutils.
85687
85688         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85689         * lib/umaxtostr.c: New files.
85690
85691         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85692         the usual <time.h> dance.
85693         (get_date): Change signature to support fractional time stamps.
85694         All callers changed.
85695         * lib/getdate.y: Include "getdate.h" first, as we can now
85696         assume C89 and don't need to worry about 'const'.
85697         Similarly, include "unlocked-io.h" near start, not in middle.
85698         Include <limits.h>.
85699         (textint.value): Use long int rather than int.
85700         (textint.digits): Use size_t rather than int.
85701         (BILLION, LOG10_BILLION): New constants.
85702         (parser_control): New member rel_ns.  Members day_ordinal,
85703         time_zone, month, day, hour, minutes, rel_year, rel_month,
85704         rel_day, rel_hour, rel_minutes, rel_seconds
85705         are now long int, not int.  Member seconds is now struct timespec,
85706         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85707         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85708         not int.
85709         (%union.intval): Now long int, not int.
85710         New member timespec.
85711         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85712         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85713         (spec): Now is a timespec or an item list.
85714         (timespec, items): New nonterminals.
85715         (time, rel, relunit, number, get_date):
85716         Add support for fractional seconds.
85717         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85718         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85719         (to_hour): First arg is now long int, not int.
85720         (to_year): Returns long int, not int.
85721         Don't treat year -70 like 70.
85722         (tm_diff): Returns long int, not int.
85723         (lookup_word): Use bool instead of int when appropriate.
85724         (yylex): Use size_t for count, not int.
85725         Detect overflow when parsing large integer constants.
85726         Add support for fractions.
85727         (get_date): Make pointers 'const' if possible.
85728         Use more-portable code to detect integer overflow.
85729         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85730         Don't use ctime; it's not reliable if the year has >4 digits.
85731
85732         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85733         This is for compatibility with BSD.
85734
85735         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85736         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85737         From coreutils' system.h.
85738
85739         * lib/userspec.c: Don't include "posixver.h".
85740         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85741         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85742         compatible extension.  Simplify code by removing a boolean int
85743         that was always nonzero if a string was nonnull.
85744
85745 2004-03-30  Jim Meyering  <jim@meyering.net>
85746
85747         Merge from coreutils.
85748
85749         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85750         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85751         on some systems one must include <grp.h> before it.
85752         Reported by Christian Krackowizer.
85753
85754 2004-03-30  Jim Meyering  <jim@meyering.net>
85755
85756         Merge from coreutils.
85757
85758         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85759
85760         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85761         an empty input stream.
85762
85763         * lib/readtokens.c: Include <stdbool.h>.
85764         (readtoken): Use `size_t' rather than int/long.
85765         All callers adjusted.
85766         Use `bool' rather than `int' where appropriate.
85767         Use memset rather than an explicit loop.
85768         Use x2nrealloc rather than xrealloc.
85769         Allow the use of `\0' as a delimiter.
85770         (readtokens): Likewise.
85771         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85772
85773 2004-03-30  Jim Meyering  <jim@meyering.net>
85774
85775         * m4/realloc.m4: Remove file, since now it does no more than
85776         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85777         the `configure.ac' section of module/realloc.
85778         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85779
85780 2004-03-30  Bruno Haible  <bruno@clisp.org>
85781
85782         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85783         nonnull.
85784
85785 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85786
85787         Merge changes to getloadavg.c from coreutils and Emacs.
85788
85789         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85790         Define to an expression, not to the empty string.
85791         Include cloexec.h and xalloc.h.
85792         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85793         Use set_cloexec_flag rather than rolling our own.
85794         * lib/cloexec.c, lib/cloexec.h: New files.
85795
85796 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85797
85798         * m4/cloexec.m4: New file.
85799
85800 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85801
85802         * lib/getopt.h: Sync with libc CVS.
85803
85804 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85805             Bruno Haible  <bruno@clisp.org>
85806
85807         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85808         mbswidth.
85809
85810 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85811             Bruno Haible  <bruno@clisp.org>
85812
85813         * lib/mbswidth.h: Include <wchar.h> only if
85814         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85815         <wchar.h>.
85816         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85817
85818 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85819
85820         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85821         Sync with libc CVS.
85822         * lib/getopt_int.h: New file, also synced from libc.
85823
85824 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85825
85826         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85827         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85828         Bring back getopt.c, getopt.h, getopt1.c.
85829
85830 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85831
85832         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85833         All uses changed.  Check for sa_sigaction member; this fixes
85834         a bug first reported by Jason Andrade in
85835         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85836
85837 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85838
85839         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85840         '#if' expressions.  Unlike the code it replaces, it does not
85841         depend on (defined _SC_PAGESIZE).  However, it does depend on
85842         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85843         first reported by Jason Andrade in
85844         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85845
85846 2004-02-25  Simon Josefsson  <jas@extundo.com>
85847
85848         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85849
85850 2004-02-25  Simon Josefsson  <jas@extundo.com>
85851
85852         * lib/strdup.h: New file.
85853         * lib/strdup.c: Include it.
85854         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85855         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85856
85857 2004-02-23  Karl Berry  <karl@gnu.org>
85858
85859         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85860         (from fencepost.gnu.org:/gd/gnuorg).
85861
85862 2004-02-23  Karl Berry  <karl@gnu.org>
85863
85864         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85865         * config/srclist.txt: add maintain/standards documents.
85866
85867 2004-02-18  Bruno Haible  <bruno@clisp.org>
85868
85869         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85870         Reported by Derek Robert Price <derek@ximbiot.com>.
85871
85872 2004-02-16  Karl Berry  <karl@gnu.org>
85873
85874         * config/mkinstalldirs, install-sh: update from automake.
85875
85876 2004-02-06  Karl Berry  <karl@gnu.org>
85877
85878         * m4/po.m4: update from gettext 0.14.1.
85879
85880 2004-02-06  Karl Berry  <karl@gnu.org>
85881
85882         * lib/config.charset: update from gettext 0.14.1.
85883
85884 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85885
85886         Add comments and code, prompted by suggestions from Bruno Haible
85887         for sh-quote.
85888         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85889         describing the enum quoting_style values.
85890         * lib/quotearg.c (quotearg_alloc): New function.
85891         (quotearg_buffer_restyled): Treat lone { and } as special.
85892         Treat = as special.  Work around bug with older shells
85893         that "see" a '\' that is really the 2nd byte of a multibyte char.
85894         Quote empty string with shell_quoting_style.
85895
85896 2004-02-03  Bruno Haible  <bruno@clisp.org>
85897
85898         * m4/pipe.m4: New file, from GNU gettext.
85899
85900 2004-02-03  Bruno Haible  <bruno@clisp.org>
85901
85902         * lib/pipe.h: New file, from GNU gettext.
85903         * lib/pipe.c: New file, from GNU gettext.
85904
85905 2004-01-27  Bruno Haible  <bruno@clisp.org>
85906
85907         * m4/execute.m4: New file, from GNU gettext.
85908
85909 2004-01-27  Bruno Haible  <bruno@clisp.org>
85910
85911         * lib/execute.h: New file, from GNU gettext.
85912         * lib/execute.c: New file, from GNU gettext.
85913         * lib/w32spawn.h: New file, from GNU gettext.
85914
85915 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85916
85917         Merge from diffutils.
85918
85919         * lib/file-type.c (file_type): Add typed memory objects.
85920         * lib/file-type.h (S_TYPEISTMO): New macro.
85921
85922         * lib/c-stack.h (c_stack_action): Remove argv argument.
85923         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85924         (die): Don't calculate message unless segv_action returns.
85925         (get_stack_location, min_address_from_argv, max_address_from_argv,
85926         volatile stack_base, volatile_stack_size): Remove.
85927         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85928         that every segmentation violation is a stack overflow.  (Ouch!)
85929         See Debian bug 136249 (still outstanding) for more info about why
85930         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85931
85932 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85933
85934         Exit-status fix from coreutils.
85935
85936         Use exit_failure consistently in place of EXIT_FAILURE,
85937         so that program exit statuses are consistent on failure.
85938
85939         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85940         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85941         * lib/argmatch.h: Comment fix to match the above.
85942         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85943         Now a macro referring to exit_failure, instead of a separate
85944         variable.  Include "exitfail.h" to get it.
85945         * lib/xstrtol.h: Include "exitfail.h".
85946         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85947
85948         * lib/long-options.c (parse_long_options): Use prototype
85949         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85950         for clarity.
85951
85952 2004-01-21  Jim Meyering  <jim@meyering.net>
85953
85954         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85955         so as not to conflict with a different-sized __mktime_internal
85956         function in GNU libc.
85957         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85958         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85959
85960 2004-01-20  Karl Berry  <karl@gnu.org>
85961
85962         * config/config.guess: update from config.
85963
85964         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85965
85966 2004-01-20  Bruno Haible  <bruno@clisp.org>
85967
85968         Safer stack allocation.
85969         * lib/setenv.c: Include allocsa.h.
85970         (alloca): Remove fallback definition.
85971         (freea): Remove macro.
85972         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85973         instead of freea.
85974
85975 2004-01-20  Bruno Haible  <bruno@clisp.org>
85976
85977         * m4/eealloc.m4: New file, from GNU gettext.
85978
85979 2004-01-20  Bruno Haible  <bruno@clisp.org>
85980
85981         * m4/allocsa.m4: New file, from GNU gettext.
85982
85983 2004-01-20  Bruno Haible  <bruno@clisp.org>
85984
85985         * lib/xallocsa.h: New file, from GNU gettext.
85986         * lib/xallocsa.c: New file, from GNU gettext.
85987
85988 2004-01-20  Bruno Haible  <bruno@clisp.org>
85989
85990         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85991
85992 2004-01-20  Bruno Haible  <bruno@clisp.org>
85993
85994         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85995         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85996         specially.
85997
85998 2004-01-20  Bruno Haible  <bruno@clisp.org>
85999
86000         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86001         patch.
86002
86003 2004-01-20  Bruno Haible  <bruno@clisp.org>
86004
86005         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86006
86007 2004-01-20  Bruno Haible  <bruno@clisp.org>
86008
86009         * lib/eealloc.h: New file.
86010
86011 2004-01-20  Bruno Haible  <bruno@clisp.org>
86012
86013         * lib/binary-io.h: Avoid warnings on Cygwin.
86014
86015 2004-01-20  Bruno Haible  <bruno@clisp.org>
86016
86017         * lib/allocsa.h: New file, from GNU gettext.
86018         * lib/allocsa.c: New file, from GNU gettext.
86019
86020 2004-01-18  Karl Berry  <karl@gnu.org>
86021
86022         * doc/gpl.texi, doc/lgpl.texi: new files.
86023
86024 2004-01-18  Karl Berry  <karl@gnu.org>
86025
86026         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86027         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86028
86029 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86030
86031         Merge from coreutils.
86032
86033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86034         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86035         (gl_DEFAULT_POSIX2_VERSION): Move
86036         the documentation from 'configure' into 'config.hin',
86037         so that 'configure --help' isn't burdened by it and
86038         we don't have to worry about its formatting there.
86039         Reword the documentation so that it's more succinct
86040         and can be run together into a single paragraph.
86041         * m4/same.m4 (gl_SAME): Check for pathconf.
86042
86043 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86044
86045         Merge from coreutils.
86046
86047         * lib/posixver.c: Include posixver.h.
86048
86049         * lib/same.c: Include <stdbool.h>, <limits.h>.
86050         (_POSIX_NAME_MAX): Define if not defined.
86051         (MIN): New macro.
86052         (same_name): If file names are silently truncated, report
86053         that the file names are the same if they are the same after
86054         the silent truncation.
86055
86056         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86057         conversion function.
86058         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86059         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86060         longer needed.
86061
86062 2004-01-15  Jim Meyering  <jim@meyering.net>
86063
86064         Merge from coreutils.
86065
86066         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86067         if no library is required.
86068         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86069         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86070         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86071         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86072         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86073         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86074         value, $ac_cv_search_crypt, if it's "none required".
86075         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86076         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86077         not gl_FUNC_GETLOADAVG.
86078         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86079         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86080
86081 2004-01-15  Jim Meyering  <jim@meyering.net>
86082
86083         Merge from coreutils.
86084
86085         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86086         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86087         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86088
86089         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86090         optional configure-time default.
86091
86092         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86093
86094         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86095
86096 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86097
86098         Merge from coreutils.
86099
86100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86101         value, $ac_cv_search_nanosleep, if it's "none required".
86102
86103 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86104
86105         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86106         with like-named macro in fnmatch.c.
86107         (EXT): Use an internal constant instead.
86108
86109         Merge fnmatch patches from glibc.
86110         * lib/fnmatch.c (mbsinit): Remove define.
86111         Add libc_hidden_ver (__fnmatch, fnmatch).
86112         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86113         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86114
86115 2004-01-14  Karl Berry  <karl@gnu.org>
86116
86117         * config/install-sh: update from automake.
86118
86119 2004-01-13  Karl Berry  <karl@gnu.org>
86120
86121         * config/install-sh: update from automake.
86122
86123 2004-01-09  Karl Berry  <karl@gnu.org>
86124
86125         * config/install-sh: update from automake.
86126
86127 2004-01-05  Karl Berry  <karl@gnu.org>
86128
86129         * config/config.{sub,guess}: update from config.
86130
86131 2003-12-31  Karl Berry  <karl@gnu.org>
86132
86133         * config/depcomp: update from automake.
86134
86135 2003-12-14  Karl Berry  <karl@gnu.org>
86136
86137         * lib/config.charset: update from gettext-runtime.
86138
86139 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86140
86141         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86142         Bug reported by Alfred M. Szmidt.
86143
86144 2003-12-03  Bruno Haible  <bruno@clisp.org>
86145
86146         * m4/gettext.m4: Upgrade from gettext-0.13.
86147         * m4/po.m4: Upgrade from gettext-0.13.
86148         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86149         * m4/intmax.m4: New file, from gettext-0.13.
86150         * m4/printf-posix.m4: New file, from gettext-0.13.
86151
86152 2003-11-29  Karl Berry  <karl@gnu.org>
86153
86154         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86155
86156 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86157             Bruno Haible  <bruno@clisp.org>
86158
86159         * lib/printf-parse.h: Don't include sys/types.h.
86160         (ARG_NONE): New macro.
86161         (char_directive): Change type of *arg_index fields to size_t.
86162         * lib/printf-parse.c: Don't include sys/types.h.
86163         (SSIZE_MAX): Remove macro.
86164         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86165         Remove unnecessary overflow check.
86166         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86167         fields.
86168
86169 2003-11-25  Bruno Haible  <bruno@clisp.org>
86170
86171         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86172
86173 2003-11-25  Bruno Haible  <bruno@clisp.org>
86174
86175         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86176         gt_TYPE_SSIZE_T.
86177
86178 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86179
86180         * modules/alloca: Remove dependency on xalloc.
86181
86182 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86183
86184         * lib/alloca.c: Remove dependency on xalloc module.
86185         (xalloc_die): Remove.
86186         (memory_full) [!defined emacs]: New macro.
86187         [!defined emacs]: Don't include xalloc.h.
86188         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86189         address arithmetic overflows.  Change datatypes a bit to avoid
86190         unnecessary casts.
86191
86192 2003-11-22  Jim Meyering  <jim@meyering.net>
86193
86194         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86195         s/size/size_t/.
86196
86197 2003-11-21  Karl Berry  <karl@gnu.org>
86198
86199         * config/config.{sub,guess}: update from config.
86200
86201 2003-11-18  Karl Berry  <karl@gnu.org>
86202
86203         * config/config.{sub,guess}: update from config.
86204
86205         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86206
86207 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86208
86209         * README: Mention that S+T cannot overflow if S is the size of
86210         an existing object and T is sufficiently small.
86211
86212 2003-11-17  Jim Meyering  <jim@meyering.net>
86213
86214         On systems without utime and without a utimes function capable of
86215         dealing with a NULL struct utimbuf* argument, this utime replacement
86216         could -- in unusual circumstances -- leak a file descriptor.
86217         * lib/utime.c: Include <unistd.h> and <errno.h>.
86218         (utime_null): Be sure to close `fd' and to preserve errno.
86219         Reported by Geoff Collyer via Arnold Robbins.
86220
86221 2003-11-17  Bruno Haible  <bruno@clisp.org>
86222
86223         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86224         (Depends-on): Add xsize.
86225
86226 2003-11-17  Bruno Haible  <bruno@clisp.org>
86227
86228         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86229
86230 2003-11-17  Bruno Haible  <bruno@clisp.org>
86231
86232         * lib/vasnprintf.c (alloca): Remove fallback definition.
86233         (freea): Remove definition.
86234         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86235         Reported by Paul Eggert.
86236
86237 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86238             Bruno Haible  <bruno@clisp.org>
86239
86240         Protect against address arithmetic overflow.
86241         * lib/printf-args.h: Include stddef.h.
86242         (arguments): Change type of field 'count' to size_t.
86243         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86244         'unsigned int' where appropriate.
86245         * lib/printf-parse.h: Include sys/types.h.
86246         (char_directive): Change type of *arg_index fields to ssize_t.
86247         (char_directives): Change type of fields 'count', max_*_length to
86248         size_t.
86249         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86250         (SSIZE_MAX): Define fallback value.
86251         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86252         instead of 'int' where appropriate. Check a_allocated, d_allocated
86253         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86254         * lib/vasnprintf.c: Include xsize.h.
86255         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86256         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86257         overflow. Avoid wraparound when converting a width or precision from
86258         decimal to binary.
86259
86260 2003-11-16  Bruno Haible  <bruno@clisp.org>
86261
86262         Update from GNU gettext.
86263         * lib/printf-parse.c: Generalize to it can be compiled for wide
86264         strings.
86265         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86266         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86267         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86268         SNPRINTF): New macros.
86269         Don't include <alloca.h> if the file is used inside libintl.
86270         (local_wcslen): New function, for Solaris 2.5.1.
86271         (VASNPRINTF): Use it instead of wcslen.
86272
86273 2003-11-16  Bruno Haible  <bruno@clisp.org>
86274
86275         * lib/xsize.h (xmax): New function.
86276         (xsum, xsum3, xsum4): Declare as "pure" functions.
86277
86278 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86279
86280         * modules/xalloc (Files): Undo latest change, since xalloc.h
86281         no longer needs SIZE_MAX or PTRDIFF_MAX.
86282
86283 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86284
86285         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86286         gl_PTRDIFF_MAX.
86287
86288 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86289
86290         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86291         "return", to pacify some unknown compiler.  Problem reported
86292         by Joerg Schilling.
86293
86294 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86295
86296         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86297         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86298         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86299         heuristic is just as accurate as far as we know, and it removes a
86300         dependency on size_max.m4 and ptrdiff_max.m4.
86301
86302 2003-11-11  Bruno Haible  <bruno@clisp.org>
86303
86304         * modules/xsize (Files): Add m4/size_max.m4.
86305         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86306
86307 2003-11-11  Bruno Haible  <bruno@clisp.org>
86308
86309         * m4/size_max.m4: New file.
86310         * m4/ptrdiff_max.m4: New file.
86311         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86312         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86313         (gl_XALLOC): Invoke it.
86314
86315 2003-11-11  Bruno Haible  <bruno@clisp.org>
86316
86317         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86318         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86319         defined.
86320
86321 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86322
86323         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86324         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86325         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86326         From Bruno Haible.
86327         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86328         not (size_t) -1, since it's defined here.
86329
86330 2003-11-09  Karl Berry  <karl@gnu.org>
86331
86332         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86333
86334 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86335
86336         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86337         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86338         Reject sizes of exactly SIZE_MAX bytes.
86339         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86340         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86341
86342 2003-11-05  Bruno Haible  <bruno@clisp.org>
86343
86344         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86345         SIZE_MAX defined in <limits.h> on Solaris.
86346
86347 2003-11-04  Jim Meyering  <jim@meyering.net>
86348
86349         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86350         variable names, rather than @VAR@.
86351         * modules/poll: Likewise.
86352
86353 2003-11-04  Bruno Haible  <bruno@clisp.org>
86354
86355         * modules/xsize: New file.
86356         * modules/linebreak: Depend on xsize.
86357         * MODULES.html.sh (func_all_modules): Add xsize.
86358
86359 2003-11-04  Bruno Haible  <bruno@clisp.org>
86360
86361         * m4/xsize.m4: New file.
86362
86363 2003-11-04  Bruno Haible  <bruno@clisp.org>
86364
86365         * lib/xsize.h: New file.
86366         * lib/linebreak.c: Include xsize.h.
86367         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86368         argument for overflow.
86369         Suggested by Paul Eggert.
86370
86371 2003-11-03  Karl Berry  <karl@gnu.org>
86372
86373         * config/config.{guess,sub}: update from config.
86374
86375 2003-11-03  Jim Meyering  <jim@meyering.net>
86376
86377         * modules/userspec (lib_SOURCES): Add userspec.h.
86378         (Include): Add "userspec.h".
86379         Improve description.
86380
86381 2003-11-03  Jim Meyering  <jim@meyering.net>
86382
86383         * lib/userspec.c: Include "userspec.h".
86384         * lib/userspec.h: New file.
86385
86386 2003-11-03  Bruno Haible  <bruno@clisp.org>
86387
86388         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86389
86390 2003-11-03  Bruno Haible  <bruno@clisp.org>
86391
86392         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86393         available, to avoid (extremely rare) race condition.
86394         Suggested by Paul Eggert.
86395
86396 2003-11-02  Karl Berry  <karl@gnu.org>
86397
86398         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86399
86400 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86401
86402         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86403         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86404         (read_filesystem_list): Set and use me_type_malloced.
86405         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86406         whatever the type happens to be), for brevity and consistency.
86407         Check for size calculation overflow on Alphas running OSF/1.
86408
86409 2003-10-31  Jim Meyering  <jim@meyering.net>
86410
86411         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86412
86413         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86414
86415 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86416             Bruno Haible  <bruno@clisp.org>
86417
86418         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86419         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86420
86421 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86422
86423         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86424         netbsd*-gnu*.  Suggested by Robert Millan.
86425
86426 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86427
86428         * modules/group-member: Depend on stdbool.
86429
86430 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86431
86432         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86433
86434 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86435
86436         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86437         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86438         after the 'gnu' in these cases.  This fixes some bugs in the
86439         previous change, and is based on suggestions by Robert Millan.
86440
86441 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86442
86443         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86444         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86445         no longer needed.
86446         * lib/quotearg.c (quotearg_n_options): Use it.
86447         * lib/group-member.c: Include <stdbool.h>.
86448         (free_group_info): Arg is now const *; don't free arg.
86449         (get_group_info): Now returns bool and accepts struct group_info *,
86450         rather than returning a malloc'ed struct group_info *.
86451         All uses changed.  Check for overflow in internal size calculation.
86452
86453         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86454         rather than xmalloc/xrealloc.
86455         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86456         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86457         conformance bug: the old code used a pointer after freeing the
86458         storage that it addressed.
86459         * lib/hash.c (hash_initialize): Simplify the code by using
86460         xalloc_oversized rather than doing it by hand.
86461         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86462         the buffer preserved.  Use free and xmalloc instead.
86463         * lib/quotearg.c (quotearg_n_options): Likewise.
86464         Use a simpler test for size overflow.  Don't use xalloc_oversized
86465         because unsigned int might be wider than size_t (!); this suggests
86466         that we should switch from unsigned int to size_t for slot numbers.
86467
86468 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86469
86470         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86471         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86472         NetBSD kernels.  Requested by Richard Stallman.
86473
86474 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86475
86476         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86477         to allocate the returned structure.  Do not allocate a subarray,
86478         as x2nrealloc will do that.
86479         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86480         instead of xnrealloc.
86481         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86482
86483 2003-10-27  Bruno Haible  <bruno@clisp.org>
86484
86485         * lib/stdbool_.h: Better support for BeOS.
86486
86487 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86488
86489         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86490         now uses inline.
86491
86492 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86493
86494         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86495         callers that want to do their own size-overflow checking.  Include
86496         <stdbool.h>, since xalloc_oversized returns bool.
86497         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86498         to use xalloc_oversized.
86499
86500         Add two functions x2realloc, x2nrealloc, for programs that grow
86501         arrays dynamically by doubling their sizes.
86502         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86503         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86504         New functions.
86505
86506         Port to C99 semantics for 'inline' of external functions.
86507         Bug reported by Bruno Haible.
86508         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86509         with the old contents of xnmalloc.
86510         (xnmalloc, xmalloc): Use it.
86511         (xnrealloc_inline): New static inline function,
86512         with the old contents of xnrealloc.
86513         (xnrealloc, xrealloc): Use it.
86514
86515         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86516         that.
86517
86518 2003-10-26  Karl Berry  <karl@gnu.org>
86519
86520         * config/srclist.txt (COPYING.DOC): no longer available from
86521         /gd/gnuorg; don't know where the ultimate source is.
86522
86523 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86524
86525         Fix several address-calculation bugs in the hash modules,
86526         plus some minor code cleanup.
86527
86528         * lib/hash.h: Include <stdbool.h>, for bool.
86529         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86530         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86531         hash_get_n_entries, hash_get_max_bucket_length,
86532         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86533         hash_rehash): Use size_t rather than unsigned.
86534         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86535         hash_get_n_buckets_used, hash_get_n_entries,
86536         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86537         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86538         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86539         Likewise.
86540         (SIZE_MAX): Define if not defined.
86541         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86542         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86543         hash_print):
86544         Use const * when possible.
86545         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86546         (check_tuning): Fix bug: if tuning parameters were very close to
86547         0 or 1, rounding errors could have caused subscript violations.
86548         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86549         (hash_initialize): Add 'fail:' label
86550         to free table and return NULL, and use it to simplify code.
86551         Use calloc rather than clearing the storage ourself.
86552         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86553         buffer size calculations.
86554         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86555         Include <stddef.h>, for size_t.
86556         * lib/hash-pjw.c (hash_pjw): Likewise.
86557         Switch to method described by Bruno Haible.
86558         Include <limits.h>, for CHAR_BIT.
86559         (SIZE_BITS): New macro.
86560
86561 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86562
86563         * m4/getline.m4 (AM_FUNC_GETLINE):
86564         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86565         hosts.  Problem reported by Derek Robert Price in
86566         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86567         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86568         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86569
86570 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86571
86572         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86573         ceiling the allocation at NMAX bytes rather than silently
86574         discarding input bytes before NMAX is reached.  This makes
86575         a difference only if NMAX exceeds SIZE_MAX / 2.
86576
86577         * lib/obstack.c: Merge from glibc.
86578         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86579         Add libc_hidden_def (_obstack_newchunk).
86580         (_obstack_free) [! defined _LIBC]: Remove.
86581         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86582         a clone of the function body.
86583         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86584         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86585
86586         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86587         glibc.
86588         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86589         arg to memcpy.
86590
86591         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86592         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86593         Don't use lvalue casts, as GCC plans to remove support for them
86594         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86595         was also present in the non-GCC version, indicating that this
86596         code had always been buggy and had never been widely used.
86597         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86598         Use the fast variant of each macro, rather than copying the
86599         definiens of the fast variant; that way, we'll be more likely to
86600         catch future bugs in the fast variants.
86601
86602 2003-10-20  Bruno Haible  <bruno@clisp.org>
86603
86604         * modules/wait-process: New file.
86605         * MODULES.html.sh (func_all_modules): Add wait-process.
86606
86607 2003-10-20  Bruno Haible  <bruno@clisp.org>
86608
86609         * m4/wait-process.m4: New file.
86610
86611 2003-10-20  Bruno Haible  <bruno@clisp.org>
86612
86613         * lib/wait-process.h: New file, from GNU gettext.
86614         * lib/wait-process.c: New file, from GNU gettext.
86615
86616 2003-10-19  Jim Meyering  <jim@meyering.net>
86617
86618         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86619         HPUX 10.20.
86620
86621 2003-10-18  Karl Berry  <karl@gnu.org>
86622
86623         * config/config.guess: update from config.
86624
86625 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86626
86627         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86628         (getgroups): First arg is int, not size_t.
86629         Don't let 'free' mangle errno.
86630
86631 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86632
86633         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86634
86635 2003-10-16  Karl Berry  <karl@gnu.org>
86636
86637         * config/config.{guess,sub}: update from config.
86638
86639 2003-10-16  Jim Meyering  <jim@meyering.net>
86640
86641         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86642         memcpy.
86643
86644 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86645
86646         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86647         (SIZE_MAX): Remove.
86648         (new_exclude, add_exclude_file): Initial size no longer needs to
86649         be a power of 2.
86650         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86651         our own address arithmetic overflow checking.
86652
86653         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86654         (fnmatch): Do not alloca more than 2000 wide characters;
86655         instead, use malloc for large buffers.
86656         Check for address arithmetic overflow, and return -1
86657         with errno set to ENOMEM in that case.
86658         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86659         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86660         instead, return -1.  Check for address arithmetic overflow.
86661
86662 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86663
86664         Handle invalid suffixes and overflow independently, so that
86665         callers can treat them independently as needed.  Fix some bugs in
86666         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86667         suffix for a human-readable blocksize.  The major caller-visible
86668         change is the addition of a new
86669         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86670         that both overflow and suffix chars were found.
86671
86672         * lib/human.c (humblock): Don't check separately for invalid suffix
86673         char; that is xstrtoumax's job (now that its bug is fixed).
86674         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86675         INTMAX_MAX]: New macros.
86676         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86677         TYPE_MAXIMUM): New macros.
86678         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86679         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86680         if overflow occurs, as it's what __strtol does and it's more useful
86681         in practice.
86682         (__xstrtol): If __strtol reports some error other than ERANGE,
86683         reflect it to the caller as LONGINT_INVALID.  If it reports
86684         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86685         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86686         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86687         value.
86688         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86689         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86690         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86691         [defined UINTMAX_MAX]: New macros.
86692
86693 2003-10-14  Bruno Haible  <bruno@clisp.org>
86694
86695         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86696
86697 2003-10-14  Bruno Haible  <bruno@clisp.org>
86698
86699         * m4/sig_atomic_t: New file, from GNU gettext.
86700         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86701
86702 2003-10-14  Bruno Haible  <bruno@clisp.org>
86703
86704         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86705         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86706         Also use volatile where needed.
86707
86708 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86709
86710         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86711         Change maintainer from Bruno Haible to 'all'.
86712
86713 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86714
86715         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86716
86717 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86718
86719         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86720         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86721         and define in terms of the other primitives.
86722         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86723         (SIZE_MAX): Define if not already defined.
86724         (array_size_overflow): New function.
86725         (xalloc_die): Abort instead of exiting if 'error' returns.
86726         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86727         (xmalloc, xrealloc): Use them.
86728         (xcalloc): Check for address arithmetic overflow.
86729         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86730         a bit faster than strcpy.
86731
86732 2003-10-10  Simon Josefsson  <jas@extundo.com>
86733
86734         * modules/argp (Depends-on): Add restrict and strcase.
86735
86736 2003-10-10  Simon Josefsson  <jas@extundo.com>
86737
86738         * m4/argp.m4: Add AC_C_INLINE.
86739
86740 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86741
86742         Merge getpass from libc, plus a few fixes.
86743
86744         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86745         Include <stdbool.h>.
86746         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86747         __fsetlocking to empty.
86748         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86749         do include <bits/libc-lock.h>.
86750         Do not include <fcntl.h>; not needed.
86751         [_LIBC]: Include <wchar.h>.
86752         (NOTCANCEL_MODE): New macro.
86753         (flockfile, funlockfile) [_LIBC]: New macros.
86754         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86755         [!_LIBC]: New macros.
86756         (call_fclose): New function.
86757         (getpass): Use it.  Save tty stream separately; this simplifies the
86758         code and makes it more reliable if stdin happens to equal stdout.
86759         Invoke __fsetlocking on tty.
86760         Handle thread cancellation if needed.
86761         Namespace cleanup (use __tcgetattr, __getline).
86762         Use bool for Booleans.
86763         [USE_IN_LIBIO]: Handle wide streams.
86764         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86765         stream might go where.
86766
86767         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86768         doesn't have to include <stdio.h> before us.
86769         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86770         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86771         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86772         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86773         if not declared, so that we can use getpass.c code from libc without
86774         rewriting it.
86775         (flockfile, ftrylockfile, funlockfile): New macros.
86776
86777 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86778
86779         * modules/getpass: Depend on stdbool.
86780
86781 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86782
86783         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86784
86785 2003-10-07  Karl Berry  <karl@gnu.org>
86786
86787         * config/config.{guess,sub}: update from config.
86788
86789 2003-10-06  Jim Meyering  <jim@meyering.net>
86790             Bruno Haible  <bruno@clisp.org>
86791
86792         This lets translators provide better translations for the
86793         "Written by ..." part of --version output.
86794         * lib/version-etc.h: Include stdarg.h.
86795         (version_etc_copyright): Declare as readonly.
86796         (version_etc): Make this function variadic with a NULL-terminated list
86797         of author name strings.
86798         (version_etc_va): New declaration.
86799         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86800         (version_etc_copyright): Declare as readonly.
86801         (version_etc_va): New function. Provide a different translatable string
86802         for each possible number of authors < 10. Abbreviate when there are 10
86803         authors or more.
86804         (version_etc): Make this function variadic. Call version_etc_va.
86805         Suggestion from Gary V. Vaughan.
86806
86807         * lib/long-options.h (parse_long_options): Change prototype: the
86808         authors string is moved to the end and becomes variadic.
86809         * lib/long-options.c: Include stdarg.h.
86810         (parse_long_options): Make this function variadic, too.
86811         Call version_etc_va, not version_etc.
86812
86813 2003-10-06  Bruno Haible  <bruno@clisp.org>
86814
86815         * modules/version-etc-2: Remove file.
86816         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86817
86818 2003-10-06  Bruno Haible  <bruno@clisp.org>
86819
86820         * modules/fatal-signal: New file.
86821         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86822
86823 2003-10-06  Bruno Haible  <bruno@clisp.org>
86824
86825         * m4/fatal-signal.m4: New file.
86826         * m4/signalblocking.m4: New file, from GNU gettext.
86827
86828 2003-10-06  Bruno Haible  <bruno@clisp.org>
86829
86830         * lib/version-etc-2.h: Remove file.
86831         * lib/version-etc-2.c: Remove file.
86832
86833 2003-10-06  Bruno Haible  <bruno@clisp.org>
86834
86835         * lib/fatal-signal.h: New file, from GNU gettext.
86836         * lib/fatal-signal.c: New file, from GNU gettext.
86837
86838 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86839
86840         * README: Rework advice for preventing empty .o files.
86841         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86842         not <sys/types.h>.
86843
86844 2003-10-04  Karl Berry  <karl@gnu.org>
86845
86846         * lib/argp*: update from libc.
86847
86848 2003-10-04  Karl Berry  <karl@gnu.org>
86849
86850         * config/config.{guess,sub}: update from config.
86851
86852 2003-10-02  Bruno Haible  <bruno@clisp.org>
86853
86854         * modules/lchown (Include): Add lchown.h.
86855         * modules/time_r (Include): Use "..." syntax.
86856         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86857
86858 2003-10-01  Simon Josefsson  <jas@extundo.com>
86859
86860         * MODULES.html.sh (func_all_modules): Move gethostname from section
86861         'based on' to section 'lacking' POSIX:2001.
86862
86863 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86864
86865         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86866         to output mode on the same stream.
86867
86868 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86869
86870         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86871         Fix arg typo in previous patch.
86872
86873 2003-09-28  Jim Meyering  <jim@meyering.net>
86874
86875         * lib/error.c: Correct cpp indentation.
86876
86877 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86878
86879         * modules/free: New file.
86880
86881 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86882
86883         * m4/free.m4: New file.
86884
86885 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86886
86887         * lib/minmax.h (MIN, MAX)
86888         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86889         Omit the special code that used __typeof__, since we worry that
86890         it could be more trouble than it's worth.  See:
86891         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86892         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86893
86894         * lib/free.c: New file.
86895
86896 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86897
86898         Trivial fixes to Makefile.am parts of module listings.
86899         * modules/strstr: Append strstr.h to lib_SOURCES.
86900         * modules/strcase: Likewise, for strcase.h.
86901
86902 2003-09-27  Karl Berry  <karl@gnu.org>
86903
86904         * config/mkinstalldirs: update from automake.
86905
86906 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86907
86908         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86909         (error_tail): Do not loop, reallocating temporary buffer, since
86910         the output cannot contain more wide characters than the input
86911         contains bytes, the size must be big enough already.  This avoids
86912         one potential size overflow calculation.  Check for size overflow
86913         when calculating temporary buffer size.  Free temporary buffer
86914         when done, if it was allocated with malloc; this plugs a memory
86915         leak.  Remove casts from void * to pointers, that are no longer
86916         needed now that we're assuming C89 or better.
86917
86918         Merge error changes from glibc.
86919
86920         * lib/error.c, error.h: Update copyright notice header to match glibc.
86921         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86922         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86923         Disable cancellation while printing error.
86924         * lib/error.h: Prepend __ to parameter names.
86925
86926 2003-09-26  Jim Meyering  <jim@meyering.net>
86927
86928         * lib/error.c (error_tail): Move some declarations
86929         into inner scope where the local variables are used.
86930
86931 2003-09-26  Bruno Haible  <bruno@clisp.org>
86932
86933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86934         stpncpy().
86935         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86936
86937 2003-09-26  Bruno Haible  <bruno@clisp.org>
86938
86939         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86940         (stpncpy): Define as alias for gnu_stpncpy.
86941         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86942
86943 2003-09-25  Simon Josefsson  <jas@extundo.com>
86944
86945         * lib/xgetdomainname.h: New file.
86946         * lib/xgetdomainname.c: New file.
86947
86948 2003-09-25  Simon Josefsson  <jas@extundo.com>
86949             Bruno Haible  <bruno@clisp.org>
86950
86951         * modules/getdomainname: New file.
86952         * modules/xgetdomainname: New file.
86953         * MODULES.html.sh (func_all_modules): Add getdomainname,
86954         xgetdomainname.
86955
86956 2003-09-25  Simon Josefsson  <jas@extundo.com>
86957             Bruno Haible  <bruno@clisp.org>
86958
86959         * m4/getdomainname.m4: New file.
86960
86961 2003-09-25  Simon Josefsson  <jas@extundo.com>
86962             Bruno Haible  <bruno@clisp.org>
86963
86964         * lib/getdomainname.h: New file.
86965         * lib/getdomainname.c: New file.
86966
86967 2003-09-25  Karl Berry  <karl@gnu.org>
86968
86969         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86970
86971 2003-09-25  Karl Berry  <karl@gnu.org>
86972
86973         * config/install-sh: update from automake.
86974
86975 2003-09-25  Bruno Haible  <bruno@clisp.org>
86976
86977         * modules/version-etc-2: New file, from modules/version-etc with
86978         modifications.
86979         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86980
86981 2003-09-25  Bruno Haible  <bruno@clisp.org>
86982
86983         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86984         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86985
86986 2003-09-24  Simon Josefsson  <jas@extundo.com>
86987
86988         * modules/xgethostname: Add xgethostname.h.
86989
86990 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86991
86992         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86993         the buffer associated with the argument.  Bug reported by
86994         Simon Josefsson.
86995
86996 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86997
86998         * README: Document assumptions that 'int' is at least 32 bits
86999         wide, that integer arithmetic is 2's complement without overflow,
87000         that there are no holes in integer values, that adding sizes of
87001         two nonoverlapping objects can't overflow, and that all-bits-zero
87002         yields scalar zero.  Fix spelling and capitalization typos.
87003
87004 2003-09-19  Karl Berry  <karl@gnu.org>
87005
87006         * lib/argp.h: update from libc.
87007
87008 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87009
87010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87011         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87012         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87013
87014 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87015
87016         * gnulib-tool: Use "test -h", not "test -L", for portability
87017         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87018         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87019         (sed_extract_prog): Issue s commands one-by-one, rather than
87020         using \| in one s command.
87021
87022 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87023
87024         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87025         input error, instead of returning NULL the next time we are called
87026         (and therefore losing track of errno).
87027
87028 2003-09-16  Bruno Haible  <bruno@clisp.org>
87029
87030         * gnulib-tool (func_create_testdir): Warn about duplicated
87031         dependencies.
87032
87033 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87034
87035         * modules/argmatch, modules/fatal, modules/obstack,
87036         modules/xalloc, modules/xgethostname: Sort dependencies by
87037         importance, not alphabetically.
87038
87039 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87040
87041         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87042         fails, so that the caller gets the proper errno.
87043
87044         * lib/readutmp.c (read_utmp): Likewise.
87045         Check for fstat error.  Close stream and free storage
87046         when failing.
87047
87048 2003-09-14  Karl Berry  <karl@gnu.org>
87049
87050         * config/srclist.txt (strdup.c): disable for c89 changes.
87051
87052 2003-09-14  Jim Meyering  <jim@meyering.net>
87053
87054         * lib/getloadavg.c: Correct cpp indentation.
87055         * lib/strdup.c: Likewise.
87056         * lib/vasnprintf.c: Likewise.
87057
87058 2003-09-14  Bruno Haible  <bruno@clisp.org>
87059
87060         * modules/fwriteerror: New file.
87061         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87062
87063 2003-09-14  Bruno Haible  <bruno@clisp.org>
87064
87065         * lib/fwriteerror.h: New file.
87066         * lib/fwriteerror.c: New file.
87067
87068 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87069
87070         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87071         modules/xgethostname, modules/xalloc: Depend on exit.
87072
87073 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87074
87075         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87076
87077         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87078         and AC_MINIX, too, so that their extensions are available.
87079
87080         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87081         This macro has been superseded by gl_BACKUPFILE.
87082
87083         More patches to assume C89 or better.
87084
87085         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87086
87087         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87088         unconditionally.
87089         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87090         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87091         Include <string.h>, <stdlib.h> unconditionally.
87092         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87093         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87094         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87095         headers or for string.h.
87096         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87097         or strtoul.
87098
87099         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87100         headers.
87101         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87102         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87103         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87104         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87105         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87106         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87107         memcpy, memset.
87108         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87109         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87110         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87111         strtol.
87112         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87113         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87114         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87115         strtoul.
87116
87117 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87118
87119         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87120         * lib/obstack.c [!defined _LIBC]: Likewise.
87121         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87122         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87123         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87124
87125         More changes to assume C89 or better.
87126
87127         * lib/error.c (error_tail): Assume vprintf.
87128
87129         * lib/argmatch.c (getenv): Remove decl.
87130         * lib/progreloc.c (get_full_program_name): Define via prototype.
87131         * lib/setenv.c (clearenv): Likewise.
87132         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87133         needed.
87134         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87135         (malloc, memcpy): Remove decls.
87136         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87137         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87138         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87139         (memcpy): Remove macro.
87140         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87141         (__P): Remove.  All uses removed.
87142         (PTR): Remove.  All uses changed to void *.
87143         (CHAR_BIT, NULL): Remove.
87144         (spaces, zeros, memset_space, memset_zero)
87145         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87146         Remove.
87147         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87148         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87149         Define with prototype.
87150         Remove now-unnecessary prototype decl.
87151         (extra_args_spec): Assume ANSI C.  All uses changed.
87152         (extra_args_spec_iso): Remove.
87153         (my_strftime, emacs_strftimeu): Define via prototype.
87154         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87155         unconditionally.
87156         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87157         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87158         (strtoul, strtol): Remove decls.
87159         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87160         LONG_MAX): Remove.
87161         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87162         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87163         (LOCALE_PARAM_PROTO): New macro.
87164         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87165         (INTERNAL (strtol), strtol): Define with a prototype.
87166         (PARAMS): Remove.  All uses removed.
87167         * lib/tempname.c: Include <string.h> unconditionally.
87168         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87169         * lib/xgethostname.c (main): Define with a prototype.
87170         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87171         Include <stdlib.h> unconditionally.
87172         (calloc, malloc, realloc, free): Remove decls.
87173         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87174         Include <stdlib.h> unconditionally.  Sort include file names.
87175         (strtod): Remove.
87176         (xstrtod): Define with a prototype.
87177         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87178         (strtol, strtoul): Remove decls.
87179
87180 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87181
87182         More patches to assume C89 or better.
87183         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87184         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87185         string.h, memchr, STDC_HEADERS.
87186
87187 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87188
87189         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87190         Include <stdlib.h>, <string.h> unconditionally.
87191         Remove now-unnecessary cast to char *.
87192         * lib/strnlen.c: Include <string.h> unconditionally.
87193         * lib/yesno.c (yesno): Define with a prototype.
87194
87195 2003-09-11  Bruno Haible  <bruno@clisp.org>
87196
87197         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87198
87199 2003-09-10  Jim Meyering  <jim@meyering.net>
87200
87201         * lib/error.c: Correct indentation of cpp directives.
87202
87203 2003-09-10  Bruno Haible  <bruno@clisp.org>
87204
87205         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87206         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87207         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87208         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87209         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87210         <stdlib.h> and <string.h> checks.
87211         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87212         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87213
87214 2003-09-10  Bruno Haible  <bruno@clisp.org>
87215
87216         * lib/strcspn.c: Include <string.h> unconditionally.
87217         * lib/strpbrk.c: Include <string.h> unconditionally.
87218         * lib/strstr.c: Include <string.h> unconditionally.
87219         * lib/unicodeio.c: Include <string.h> unconditionally.
87220         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87221         * lib/unsetenv.c: Likewise.
87222         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87223         * lib/yesno.c: Include <stdlib.h> unconditionally.
87224         (rpmatch): Add prototype.
87225
87226 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87227
87228         More patches to assume C89 or better.
87229         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87230         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87231         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87232         or for string.h.
87233         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87234         stdlib.h.
87235         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87236         C headers.
87237         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87238         string.h.
87239         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87240         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87241         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87242         or for string.h.
87243         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87244         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87245         C headers.
87246         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87247         memcpy.
87248         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87249         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87250         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87251         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87252         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87253         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87254         string.h, free.
87255         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87256         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87257         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87258         C headers, or for string.h.
87259         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87260         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87261         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87262         headers, memory.h, stdlib.h, string.h, strings.h.
87263         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87264         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87265         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87266         strchr.
87267         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87268         headers, memory.h, string.h.
87269         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87270         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87271         free.
87272         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87273         headers.
87274         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87275         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87276         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87277         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87278         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87279
87280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87281
87282         More K&R removal.
87283
87284         * lib/acosl.c (main): Use a prototype.
87285         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87286         tanl.c: Likewise.
87287
87288         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87289
87290         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87291         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87292         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87293         with a prototype.
87294         * lib/getopt.c (const): Remove macro.
87295         Include <string.h> unconditionally.
87296         (my_index): Remove; all uses changed to strchr.
87297         (strlen): Remove decl.
87298         (exchange): Remove forward decl; no longer needed.
87299         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87300         Define with prototype.
87301         * lib/getopt1.c (const): Remove macro.
87302         (getopt_long, getopt_long_only, main): Define with prototype.
87303
87304         * lib/getugroups.c: Include <string.h> unconditionally.
87305
87306         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87307         (getusershell, setusershell, endusershell, readname, main):
87308         Define with prototypes.
87309
87310         * lib/group-member.c: Include group-member.h first.
87311         Include <stdlib.h> unconditionally.
87312
87313         * lib/hard-locale.c: Include hard-locale.h first.
87314         Include <stdlib.h>, <string.h> unconditionally.
87315
87316         * lib/hash.c (free, malloc): Remove decls.
87317         Include <stdlib.h> unconditionally.
87318
87319         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87320         (getenv): Do not declare.
87321
87322         * lib/idcache.c: Include <string.h> unconditionally.
87323
87324         * lib/long-options.c: Include long-options.h first, to test interface.
87325         Include <stdlib.h> unconditionally.
87326
87327         * lib/makepath.c: Include makepath.h first, to test interface.
87328         Include <stdlib.h> and <string.h> unconditionally.
87329
87330         * lib/linebuffer.c: Include <stdlib.h>.
87331         (free): Remove decl.
87332
87333         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87334         stddef.h. rpl_malloc returns void *, not char *.
87335         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87336         prototype.
87337
87338         * lib/md5.h: Include <limits.h> unconditionally.
87339         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87340         (__P): Remove; all uses removed.
87341         * lib/md5.c: Include "md5.h" first.
87342         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87343         md5_buffer, md5_process_bytes, md5_process_block):
87344         Define with prototypes.
87345         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87346         * lib/sha.c: Include "sha.h" first.
87347         Include <stdlib.h>, <string.h> unconditionally.
87348
87349         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87350         * lib/memcmp.c (__ptr_t): Likewise.
87351         * lib/memrchr.c (__ptr_t): Likewise.
87352         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87353         Include <string.h> unconditionally.
87354         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87355         * lib/memchr.c: Include <stdlib.h> unconditionally.
87356         * lib/memchr.c (LONG_MAX): Remove.
87357         * lib/memrchr.c (LONG_MAX): Likewise.
87358         * lib/memchr.c (__memchr): Define via a prototype.
87359         * lib/memrchr.c (__memrchr): Likewise.
87360         * lib/memcmp.c (__P): Remove, and remove all uses.
87361         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87362         Remove forward decls; no longer needed.
87363         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87364         Use types required by C89 in prototype.
87365
87366         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87367         * lib/savedir.c: Likewise.
87368         * lib/mkdir.c (free): Remove decl.
87369         * lib/rmdir.c (rmdir): Define with a prototype.
87370         * lib/savedir.c: Include savedir.h first, to test interface.
87371
87372         * lib/mktime.c (STDC_HEADERS): Remove.
87373         Include <stdlib.h>, <string.h> unconditionally.
87374
87375         * lib/modechange.c: Include <stdlib.h> unconditionally.
87376         (malloc): Remove decl.
87377
87378         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87379         (free): Remove decl.
87380
87381         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87382         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87383         (This type really should be intptr_t, but that's a C99ism.)
87384         (_obstack_memcpy): Remove: all uses changed to memcpy.
87385         Include <string.h> unconditionally.
87386         (struct obstack): Assume __STDC__ for types of members
87387         chunkfun, freefun, extra_arg.
87388         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87389         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87390         obstack_begin, obstack_specify_allocation,
87391         obstack_specify_allocation_with_arg, obstack_chunkfun,
87392         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87393         Remove unprototyped decls and the macros that use them.
87394         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87395         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87396         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87397         (defined __STDC__ && __STDC__)]:
87398         Remove nonprototyped code.
87399         Include <stdlib.h> unconditionally.
87400         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87401         _obstack_allocated_p, _obstack_free, obstack_free,
87402         _obstack_memory_used, print_and_abort):
87403         Define using prototypes.
87404         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87405         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87406         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87407         obstack_next_free, obstack_object_size, obstack_room) [0]:
87408         Remove unused, unprototyped code.
87409
87410         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87411
87412         * lib/physmem.c (physmem_total, physmem_available, main): Define
87413         with prototypes.
87414
87415         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87416         (main): Define with a prototype.
87417
87418         * lib/posixver.c (getenv): Remove decl.
87419
87420         * lib/putenv.c (malloc): Returns void *, not char *.
87421         Include <string.h> unconditionally.
87422         (strchr, memcpy, NULL): Do not define.
87423
87424         * lib/readtokens.c: Include readtokens.h first, to test interface.
87425         Include <stdlib.h>, <string.h> unconditionally.
87426         (init_tokenbuffer): Define with a prototype.
87427
87428         * lib/regex.c (PARAMS): Remove.  All uses removed.
87429         All uses of _RE_ARGS removed, too.
87430         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87431         unconditionally.
87432         (bzero): Assume memset exists.
87433         (memcmp, memcpy, NULL): Remove.
87434         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87435         char, or assignments to local vars of type signed char.
87436         (init_syntax_once, PREFIX(extract_number_and_incr),
87437         PREFIX(print_partial_compiled_pattern),
87438         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87439         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87440         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87441         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87442         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87443         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87444         wcs_compile_range, byte_compile_range, truncate_wchar,
87445         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87446         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87447         count_mbs_length, wcs_re_match_2_internal,
87448         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87449         PREFIX(alt_match_null_string_p),
87450         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87451         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87452         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87453         now-unnecessary declaration, if any.
87454         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87455         regcomp, regexec):
87456         Remove now-unnecessary casts among pointer types.
87457         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87458
87459         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87460         (free): Remove decl.
87461
87462         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87463
87464         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87465         (free): Remove decl.
87466
87467         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87468         * lib/xgetcwd.c: Likewise.
87469
87470         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87471         (free): Remove decl.
87472
87473         * lib/strchrnul.c (strchrnul): Define with a prototype.
87474         Fix bug: c_in was not converted to char before searching.
87475
87476         The following changes are not K&R related:
87477
87478         * lib/group-member.h: Include <sys/types.h>, so that this file is
87479         self-contained.
87480         * lib/makepath.h: Likewise.
87481
87482         * lib/getusershell.c (readname, default_index, line_size, readname):
87483         Use size_t, not int, for sizes.
87484         (readname): If the size overflows, report an error instead of
87485         looping forever.
87486
87487 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87488
87489         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87490         libc.
87491
87492 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87493
87494         * README: New section: portability guidelines.
87495
87496 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87497
87498         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87499         C89 spec.
87500
87501 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87502
87503         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87504
87505 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87506
87507         Assume C89 or better; remove K&R cruft.
87508         A few of these changes were first proposed by Derek Robert Price
87509         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87510
87511         * lib/addext.c: Include <string.h> unconditionally.
87512         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87513         Don't declare getenv or malloc.
87514
87515         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87516         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87517         (NULL): Remove.
87518         (find_stack_direction, alloca): Use prototypes.
87519
87520         * lib/atexit.c (atexit): Define using a prototype.
87521
87522         * lib/basename.c, dirname.c, stripslash.c:
87523         Include <string.h> unconditionally.
87524
87525         * lib/bcopy.c: Include <stddef.h>.
87526         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87527
87528         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87529
87530         * lib/error.h (error, error_at_line, error_print_progname)
87531         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87532         * lib/error.c: Include error.h first, to check interface.
87533         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87534         (VA_START): Remove; all uses changeed to va_start.
87535         (exit, strerror): Remove decls.
87536         (error_print_progname): Prototype uncondionally.
87537         Don't include <errno.h>; no longer needed.
87538         (private_strerror): Remove.
87539         (error_tail): Always define.
87540         (error, error_at_line): Assume C89 or better; always use prototypes.
87541         * lib/fatal.c: Include "fatal.h" first, to test interface.
87542         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87543         (VA_START): Remove; all uses changed to va_start.
87544         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87545         this case.
87546         (exit): Remove decl.
87547         (fatal): Prototype unconditionally.  Assume va_start works.
87548         Abort at end, to pacify gcc.
87549
87550         * lib/euidaccess.c (main): Define with a prototype.
87551
87552         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87553
87554         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87555
87556         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87557         prototypes.
87558         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87559         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87560         (getenv): Remove decl.
87561         (fnmatch): Define using a prototype.
87562         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87563         (FCT): Define using a prototype.
87564
87565         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87566
87567         * lib/gethostname.c: Include <stddef.h>.
87568         (gethostname): Define with prototype.  Length is size_t, not int.
87569
87570 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87571
87572         Assume C89 or better; remove K&R cruft.
87573         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87574         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87575         string.h, getenv, malloc.
87576         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87577         headers.
87578         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87579         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87580         do not check for strerror.
87581         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87582         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87583         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87584         do not check for doprnt or vprintf.
87585         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87586         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87587
87588 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87589
87590         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87591         getversion.c should have been removed then, but was accidentally
87592         preserved.
87593
87594         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87595         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87596
87597 2003-09-08  Karl Berry  <karl@gnu.org>
87598
87599         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87600                 config, forget about prep.
87601
87602         * config/depcomp, missing: update from automake.
87603
87604 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87605
87606         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87607         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87608
87609 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87610
87611         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87612         copy_tm_result.  Bug reported by Simon Josefsson in
87613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87614
87615 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87616
87617         * m4/time_r.m4: New file.
87618         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87619         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87620         is. Check for timegm declaration.
87621         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87622         Do not check for gmtime_r.
87623         Replace mktime if __mktime_internal does not exist and if mktime
87624         hasn't been replaced already.
87625
87626 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87627
87628         * lib/time_r.c, lib/time_r.h: New files.
87629
87630         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87631         __localtime_r.
87632         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87633         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87634
87635         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87636         __gmtime_r.
87637         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87638         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87639         Include <time_r.h>.
87640
87641         * lib/timegm.c: Switch to glibc implementation, with the following
87642         changes:
87643         [defined HAVE_CONFIG_H]: Include <config.h>.
87644         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87645         (__mktime_internal) [!defined _LIBC]: New decl.
87646         (__gmtime_r) [!defined _LIBC]: New macro and function.
87647         (timegm): Use a prototype, since gnulib assumes C89.
87648         Do not bother declaring tmp to be const, as it's not really usefu.
87649         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87650         (timegm): Declare only if HAVE_DECL_TIMEGM.
87651
87652 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87653
87654         * MODULES.html.sh (func_all_modules): Add time_r.
87655         * modules/time_r: New file.
87656         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87657         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87658
87659 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87660
87661         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87662         Bug reported by Lute Kamstra in
87663         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87664
87665         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87666         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87667         course with correspondingly smaller numbers for tomorrow and
87668         yesterday.  From Tadayoshi Funaba.  Originally installed into
87669         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87670         coreutils merge?).
87671
87672 2003-08-31  Simon Josefsson  <jas@extundo.com>
87673
87674         * modules/timegm: New file.
87675         * MODULES.html.sh (func_all_modules): Add timegm.
87676
87677 2003-08-31  Simon Josefsson  <jas@extundo.com>
87678
87679         * m4/timegm.m4: New file.
87680
87681 2003-08-31  Simon Josefsson  <jas@extundo.com>
87682
87683         * lib/timegm.h: New file.
87684         * lib/timegm.c: New file.  Based on
87685         wget-1.8.2/src/http.c:mktime_from_utc.
87686
87687 2003-08-31  Karl Berry  <karl@gnu.org>
87688
87689         * lib/argp.h: update from libc.
87690
87691 2003-08-28  Bruno Haible  <bruno@clisp.org>
87692
87693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87694         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87695         followed by '#define fnmatch fnmatch_posix' gives an error.
87696
87697 2003-08-28  Bruno Haible  <bruno@clisp.org>
87698
87699         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87700         warning on QNX, which defines O_BINARY to 000000.
87701
87702 2003-08-27  Jim Meyering  <jim@meyering.net>
87703
87704         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87705         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87706         would fail after 32.  Reported by Danny Levinson.  Details here:
87707         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87708
87709 2003-08-24  Bruno Haible  <bruno@clisp.org>
87710
87711         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87712         MSVC7 <stdio.h> is included later.
87713
87714 2003-08-22  Simon Josefsson  <jas@extundo.com>
87715
87716         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87717
87718 2003-08-20  Karl Berry  <karl@gnu.org>
87719
87720         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87721
87722 2003-08-20  Bruno Haible  <bruno@clisp.org>
87723
87724         * modules/progname: New file.
87725         * MODULES.html.sh (func_all_modules): Add progname.
87726
87727 2003-08-20  Bruno Haible  <bruno@clisp.org>
87728
87729         * lib/progname.h: New file, from GNU gettext.
87730         * lib/progname.c: New file, from GNU gettext.
87731         * lib/progreloc.c: New file, from GNU gettext.
87732
87733 2003-08-19  Jim Meyering  <jim@meyering.net>
87734
87735         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87736         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87737
87738 2003-08-19  Bruno Haible  <bruno@clisp.org>
87739
87740         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87741         more.
87742
87743 2003-08-19  Bruno Haible  <bruno@clisp.org>
87744
87745         * lib/xstrdup.c: Assume <string.h> exists.
87746
87747 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87748
87749         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87750         in makefile rules.
87751
87752 2003-08-18  Jim Meyering  <jim@meyering.net>
87753
87754         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87755         * m4/lib-ld.m4: Likewise.
87756
87757 2003-08-18  Jim Meyering  <jim@meyering.net>
87758
87759         * lib/setenv.h: Indent nested cpp directive.
87760         * lib/vasnprintf.c: Remove trailing blanks.
87761
87762 2003-08-17  Simon Josefsson  <jas@extundo.com>
87763
87764         * modules/xstrndup: New file.
87765         * MODULES.html.sh (func_all_modules): Add xstrndup.
87766
87767 2003-08-17  Simon Josefsson  <jas@extundo.com>
87768
87769         * modules/argp: Fix autoconf macro name. Add more dependencies.
87770
87771 2003-08-17  Simon Josefsson  <jas@extundo.com>
87772
87773         * m4/xstrndup.m4: New file.
87774
87775 2003-08-17  Simon Josefsson  <jas@extundo.com>
87776
87777         * m4/argp.m4: New file.
87778
87779 2003-08-17  Simon Josefsson  <jas@extundo.com>
87780             Bruno Haible  <bruno@clisp.org>
87781
87782         * lib/xstrndup.h: New file.
87783         * lib/xstrndup.c: New file.
87784
87785 2003-08-17  Bruno Haible  <bruno@clisp.org>
87786
87787         * modules/strndup (Files, Include): Add lib/strndup.h.
87788
87789 2003-08-17  Bruno Haible  <bruno@clisp.org>
87790
87791         * modules/euidaccess (Files): Add lib/euidaccess.h.
87792
87793 2003-08-17  Bruno Haible  <bruno@clisp.org>
87794
87795         * lib/strndup.h: New file.
87796
87797 2003-08-17  Bruno Haible  <bruno@clisp.org>
87798
87799         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87800         like AC_GNU_SOURCE.
87801         * modules/extensions (configure.ac): Comment out the invocation of
87802         gl_USE_SYSTEM_EXTENSIONS.
87803
87804 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87805
87806         Merges from coreutils, etc.
87807         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87808         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87809         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87810         fixing a typo.
87811         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87812         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87813
87814 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87815
87816         Document merge from coreutils.
87817         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87818         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87819         * modules/utime: Add m4/utimes-null.m4.
87820
87821 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87822
87823         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87824         space, undoing this 2003-08-12 change:
87825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87826
87827 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87828
87829         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87830         strtoul.c from libc, undoing this 2003-08-12 change:
87831         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87832
87833 2003-08-16  Jim Meyering  <jim@meyering.net>
87834
87835         Merges from coreutils.
87836         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87837         prefix.  Adjust cache variables similarly.  Create 500 rather than
87838         just 300 files, to exercise bug on Darwin6.5, too.
87839         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87840         $missing_dir.
87841         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87842         AM_SYS_POSIX_TERMIOS.
87843         Reported by mkc@mathdogs.com.
87844         Also change use of $am_cv_sys_posix_termios
87845         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87846         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87847         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87848         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87849         in /proc/mounts until it finds one with matching device number.  This
87850         is unnecessary when the FILE argument *is* a mount point.  No stat call
87851         is necessary in that case.  So, disable the statvfs-testing code on
87852         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87853         as RedHat bug# 84846.
87854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87855         to 1MB, so as not to render systems with no stack size limit (e.g.,
87856         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87857         Include <unistd.h>.  On some systems,
87858         it is required for the definition of _SC_PAGESIZE.
87859
87860 2003-08-16  Jim Meyering  <jim@meyering.net>
87861
87862         Merge from coreutils.
87863         * lib/xstrtoimax.c: #else #if -> #elif.
87864         * lib/xstrtoumax.c: Likewise.
87865
87866 2003-08-16  Jim Meyering  <jim@meyering.net>
87867
87868         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87869         * m4/utimes.m4: Removed.
87870         * m4/utimes-null.m4: Renamed from utimes.m4.
87871
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         and Paul Eggert  <eggert@cs.ucla.edu>
87880
87881         Merges from coreutils, etc.
87882
87883         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87884         using the latest version from cvs.  This avoids problems with #line
87885         directives using a vendor (Sun) compiler.
87886         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87887         Don't set GETGROUPS_LIB here; now it's
87888         done via getgroups.m4's wrapper function.
87889         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87890         rather than just in sh-util/configure.in, so that the
87891         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87892         same.
87893         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87894         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87895         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87896         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87897         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87898         Remove code that is now done by the newly-required macros.
87899         Append $(EXEEXT) to DF_PROG.
87900         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87901         Do not invoke or require the following here,
87902         since prereq.m4 or some gnulib .m4 now does this for us:
87903         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87904         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87905         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87906         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87907         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87908         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87909         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87910         AC_FUNC_OBSTACK.
87911         Do not replace the following functions, as this is now the job
87912         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87913         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87914         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87915         atexit getpass, strdup, getpagesize.
87916         Replace 'raise'.
87917         Do not check for the following functions, as this is now the job
87918         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87919         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87920         setregid.
87921         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87922         Check for sys/sysctl.h.
87923         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87924         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87925         of checking for ssize_t ourselves.
87926
87927         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87928         Require every macro that gnulib/modules/* suggests for us.
87929         (jm_PREREQ_ADDEXT): New macro.
87930         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87931         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87932
87933         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87934         (gl_PHYSMEM): Use it.
87935         Also check for `table' function.
87936         Check for new headers and functions.
87937         Add check for sys/sysmp.h.
87938         With suggestions from Kaveh Ghazi.
87939         Ignore headers that are present but cannot be compiled.  This
87940         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87941         C 5.4.
87942
87943 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87944
87945         Document merge from coreutils.
87946         * modules/userspec: Depend on posixver.
87947         * modules/strftime: Depend on tzset.
87948
87949 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87950
87951         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87952         rather than tab, after '#' in shell-script copyright notices.
87953         Suggested by Bruno Haible.
87954
87955 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87956
87957         * config/srclist-update: Use three spaces, rather than tab, after '#'
87958         in shell-script copyright notices.  Suggested by Bruno Haible.
87959         Remove unnecessary parenthesization in regular expression.
87960
87961 2003-08-15  Jim Meyering  <jim@meyering.net>
87962
87963         Merge from coreutils.
87964         * lib/xgethostname.c: Include <stdlib.h>.
87965         (xghostname): Don't exit for anything other than memory-related
87966         failure; just return NULL.
87967         * lib/userspec.c: Include "posixver.h".
87968         (parse_user_spec): Accept `.' as a separator only
87969         in pre-POSIX-200112 mode.
87970         * lib/strtoimax.c: Use #elif rather than #else #if.
87971         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87972         Remove function, now that we can rely on a working tzset function.
87973         [!_LIBC]: Ensure that the required autoconf test has been run.
87974         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87975         Use underlying_strftime for %r.
87976         * lib/sha.c: Merge in some clean-up and optimization changes from
87977         glibc.
87978         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87979         Ensure that it is a multiple of 64.
87980         Rearrange loop exit tests so as to avoid performing an
87981         additional fread after encountering an error or EOF.
87982         * lib/realloc.c: Update copyright date.
87983
87984 2003-08-15  Jim Meyering  <jim@meyering.net>
87985         and Paul Eggert  <eggert@twinsun.com>
87986
87987         Merge from coreutils.
87988         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87989         member but strut utmpx does not.  Needed for AIX 4.3.3.
87990         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87991
87992 2003-08-15  Jim Meyering  <jim@meyering.net>
87993         and Paul Eggert  <eggert@cs.ucla.edu>
87994
87995         Merges from coreutils, etc.
87996         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87997         Require gl_FUNC_TZSET_CLOBBER.
87998         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87999         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88000         members.
88001
88002 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88003
88004         Help the merge from coreutils.
88005         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88006         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88007         * m4/tzset.m4: Use it too.
88008
88009 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88010
88011         * modules/tzset: New file.
88012
88013 2003-08-14  Jim Meyering  <jim@meyering.net>
88014
88015         Merges from coreutils.
88016         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88017         variable names, rather than @FNMATCH_H@.
88018         * modules/alloca: Likewise for $(ALLOCA_H).
88019
88020         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88021         the three copies of the literal target, `fnmatch.h'.
88022         * modules/alloca (alloca.h): Likewise.
88023
88024 2003-08-14  Jim Meyering  <jim@meyering.net>
88025
88026         Merge from coreutils.
88027         * m4/tzset.m4: New file.
88028         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88029         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88030         otherwise, AIX 5.1 systems would end up using the latter.
88031         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88032         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88033         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88034         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88035
88036 2003-08-14  Jim Meyering  <jim@meyering.net>
88037
88038         Merge from coreutils.
88039         * lib/obstack.h: Whitespace changes.
88040         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88041         and xcalloc return values.
88042         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88043         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88044         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88045         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88046         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88047         error from mntctl.
88048         Use mntctl's return value to drive the entry-processing loop, since
88049         we can't rely on the value of the vmt_length member in the last
88050         entry.  On some systems doing so could result in exhausting
88051         virtual memory.  Based in part on a patch from Mike Jetzer.
88052
88053 2003-08-14  Jim Meyering  <jim@meyering.net>
88054         and Paul Eggert  <eggert@twinsun.com>
88055
88056         Merges from coreutils, plus other fixes.
88057         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88058         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88059         for credits and details.  Thanks to Kaveh Ghazi for helping
88060         to keep these files in sync.
88061         (ARRAY_SIZE): Define it.
88062         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88063         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88064         (memcasecmp): Don't assume size_t fits in unsigned int.
88065         Remove casts and duplicate code.
88066         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88067         (memcpy): Remove definition.
88068         Merge in some clean-up and optimization changes from glibc.
88069         [BLOCKSIZE]: Move definition to top of file.
88070         Ensure that it is a multiple of 64.
88071         Rearrange loop exit tests so as to avoid performing an
88072         additional fread after encountering an error or EOF.
88073         * lib/md5.h (md5_uintptr): Define.
88074         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88075         return to the initial working directory.  Preserve errno
88076         for caller.
88077         * lib/idcache.c: Include "xalloc.h".
88078         (xmalloc, xrealloc): Remove decls.
88079         (getuser): Remove casts no longer required in C89.
88080         * lib/human.c: Include stdio.h, for sprintf.
88081         * lib/group-member.c: Include "xalloc.h".
88082         (xmalloc, xrealloc): Remove decls.
88083         (get_group_info): Remove casts no longer required in C89.
88084         * lib/getusershell.c (readname): Remove casts no longer required in
88085         C89.
88086         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88087         * lib/getline.c: Whitespace fix, from coreutils.
88088
88089 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88090
88091         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88092         Check for isascii.
88093
88094         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88095         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88096         Undo previous (whitespace-only) change.
88097
88098 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88099
88100         * lib/exclude.c: Include <ctype.h>
88101         (IN_CTYPE_DOMAIN): New macro.
88102         (is_space): New fn.
88103         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88104         and empty lines.
88105
88106         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88107         Undo previous (whitespace-only) change.
88108
88109 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88110
88111         * config/srclist-update: Change update back to the old behavior,
88112         leaving whitespace alone.  Use one 'sed' command rather than a
88113         pipeline.
88114         (fixlicense): Now a variable, not a function.
88115         (remove_trailing_blanks): Remove.
88116         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88117         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88118         Undo previous (whitespace-only) change.
88119
88120 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88121
88122         Merge from coreutils.
88123         * modules/euidaccess: Add lib_SOURCES, include for new
88124         file euidaccess.h
88125
88126 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88127
88128         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88129         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88130         Normalize leading white space and remove trailing white space.
88131
88132         Merge from coreutils
88133         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88134
88135         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88136         0.12.1.  These files are now being upgraded automatically by
88137         ../config/srclist-update.
88138
88139 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88140
88141         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88142         Normalize leading white space and remove trailing white space.
88143         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88144         notice, as per ../config/srclist-update.
88145
88146         Merge from coreutils.
88147         * lib/euidaccess.h: New file.
88148         * lib/euidaccess.c: Include it.
88149         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88150         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88151         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88152
88153 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88154
88155         * config/srclist-update: Add copyright notice.
88156         (remove_id_lines, remove_trailing_blanks): New constants.
88157         (fixfile): Use them to normalize spacing a bit in copied files.
88158         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88159         Normalize leading white space and remove trailing white space.
88160
88161         * config/texinfo.tex: Sync with texinfo.
88162
88163         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88164         strtoul.c from libc, to merge coreutils whitespace changes.
88165
88166         * config/srclist.txt: Get the following m4 files from gettext:
88167         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88168         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88169         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88170         wint_t.m4.
88171
88172 2003-08-12  Karl Berry  <karl@gnu.org>
88173
88174         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88175         been made.
88176
88177 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88178
88179         * modules/gnu-source, m4/gnu-source.m4:
88180         Remove; we're assuming Autoconf 2.54 or later now.
88181         Suggested by Bruno Haible.
88182         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88183
88184 2003-08-11  Bruno Haible  <bruno@clisp.org>
88185
88186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88187
88188 2003-08-11  Bruno Haible  <bruno@clisp.org>
88189
88190         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88191         (vasnprintf): Use it instead of wcslen.
88192
88193 2003-08-11  Bruno Haible  <bruno@clisp.org>
88194
88195         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88196         value to ensure that _Bool promotes to int. Use #define for _Bool when
88197         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88198
88199 2003-08-10  Karl Berry  <karl@gnu.org>
88200
88201         * lib/regex.h: update from libc (whitespace fix).
88202
88203 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88204
88205         Merge some files from coreutils.  These changes were
88206         originally made by Jim Meyering.
88207         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88208         many older Unixes require this.
88209         * lib/alloca.c (alloca): Remove cast to argument of free;
88210         no longer needed in C89.
88211         * lib/alloca_.h, regex.h: Fix white space to match
88212         what GNU indent does.
88213
88214 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88215
88216         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88217         apparently Emacs's Unicode mode got confused before my 2003-08-05
88218         checkin.
88219
88220 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88221
88222         * m4/extensions.m4: New file.
88223         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88224         Require gl_USE_SYSTEM_EXTENSIONS.
88225         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88226         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88227
88228 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88229
88230         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88231         * modules/extensions, modules/gnu-source: New files.
88232         * modules/timespec, modules/unlocked-io: Depend on extensions.
88233
88234 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88235
88236         * modules/restrict: New file.
88237         * MODULES.html.sh (func_all_modules): Add restrict.
88238         * modules/regex: Depend on restrict.
88239
88240 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88241
88242         * m4/restrict.m4: New file.
88243         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88244
88245 2003-08-07  Bruno Haible  <bruno@clisp.org>
88246
88247         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88248         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88249
88250 2003-08-07  Bruno Haible  <bruno@clisp.org>
88251
88252         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88253         makes the module 'getndelim2' compatible with the module 'getline'.
88254
88255 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88256
88257         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88258         byte with "\201" to avoid glitches when editing that source file
88259         with multi-gnome-terminal.
88260
88261 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88262
88263         * lib/bumpalloc.h: Remove.
88264
88265 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88266
88267         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88268         * modules/bumpalloc: Remove.
88269
88270 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88271
88272         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88273         GNU coding style.
88274
88275         Merge from coreutils.
88276         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88277         1. From glibc.
88278         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88279         from Karl Berry, implemented by Jim Meyering.
88280         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88281         from Dmitry V. Levin.
88282         Remove anachronistic cast of xrealloc.
88283         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88284         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88285         type. Otherwise, it wouldn't compile with at least /bin/cc on
88286         ymp-cray-unicos9.0.2.X.
88287         Combine two mostly-identical uses of alloca into one.
88288         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88289
88290 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88291
88292         [From Emacs.]
88293
88294         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88295         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88296         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88297         obsolete NLIST_NAME_UNION.
88298         [__GNU__]: Undef BSD and FSCALE.
88299         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88300
88301 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88302
88303         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88304         an enum type, so that it's guaranteed to promote to int.  See:
88305         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88306
88307 2003-08-03  Karl Berry  <karl@gnu.org>
88308
88309         * config/depcomp: update from automake.
88310
88311 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88312
88313         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88314         (strerror): Don't assume that a printable int fits in 14 bytes.
88315
88316 2003-07-31  Bruno Haible  <bruno@clisp.org>
88317
88318         * modules/getpass-gnu: New file.
88319         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88320
88321 2003-07-31  Bruno Haible  <bruno@clisp.org>
88322
88323         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88324
88325 2003-07-24  Karl Berry  <karl@gnu.org>
88326
88327         * config/missing: update from automake.
88328
88329 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88330             Bruno Haible  <bruno@clisp.org>
88331
88332         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88333         * lib/getline.c (getline, getdelim): Likewise.
88334         Remove _GNU_SOURCE define; now it's defined in config.h through
88335         m4/getline.m4.
88336
88337 2003-07-23  Karl Berry  <karl@gnu.org>
88338
88339         * config/config.sub: update from prep.
88340
88341 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88342
88343         * modules/xalloc (Depends-on): Add exitfail.
88344         * modules/xmemcoll: Likewise.
88345
88346 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88347
88348         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88349         over-parenthesization in macros.
88350
88351         Sync with coreutils.
88352
88353         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88354         required by C99.
88355
88356         Use `exit_failure' for xalloc and xmemcoll instead of their own
88357         private exit-failure variables.
88358         * lib/xalloc.h (xalloc_exit_failure): Remove.
88359         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88360         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88361         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88362         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88363         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88364
88365 2003-07-20  Jim Meyering  <jim@meyering.net>
88366
88367         * modules/closeout (Depends-on): Add exitfail.
88368         Suggestion from Bruno Haible.
88369
88370 2003-07-19  Karl Berry  <karl@gnu.org>
88371
88372         * config/config.sub: update from prep.
88373
88374 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88375
88376         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88377         Remove.
88378         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88379         to test that it can stand by itself.  Include "exitfail.h".
88380         Clients should set exit_failure instead.
88381         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88382
88383 2003-07-18  Bruno Haible  <bruno@clisp.org>
88384
88385         * modules/getndelim2: New file.
88386         * modules/getline: Share files with module getndelim2.
88387         * modules/getnline: Depend on getndelim2 instead of sharing files with
88388         it. Add getnline.c to lib_SOURCES.
88389         * MODULES.html.sh (func_all_modules): Add getndelim2.
88390
88391 2003-07-18  Bruno Haible  <bruno@clisp.org>
88392
88393         * m4/getndelim2.m4: New file.
88394         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88395         invoke gl_PREREQ_GETNDELIM2.
88396         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88397         gl_PREREQ_GETNDELIM2.
88398         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88399         gl_GETNDELIM2.
88400
88401 2003-07-18  Bruno Haible  <bruno@clisp.org>
88402
88403         * lib/getndelim2.h: New file.
88404         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88405         getndelim2.h.
88406         (getndelim2): Make non-static. Change return type to ssize_t.
88407         * lib/getline.h: Change argument names.
88408         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88409         * lib/getnline.c: Include getndelim2.h.
88410
88411 2003-07-18  Andreas Schwab  <schwab@suse.de>
88412
88413         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88414
88415 2003-07-17  Karl Berry  <karl@gnu.org>
88416
88417         * config/config.sub: update from prep.
88418
88419 2003-07-17  Bruno Haible  <bruno@clisp.org>
88420
88421         * modules/getnline: New file.
88422         * modules/getline: Add lib/getndelim2.c to source file list.
88423         * MODULES.html.sh (func_all_modules): Add getnline.
88424
88425 2003-07-17  Bruno Haible  <bruno@clisp.org>
88426
88427         * m4/getnline.m4: New file.
88428
88429 2003-07-17  Bruno Haible  <bruno@clisp.org>
88430
88431         * m4/Makefile.am.in: Remove file.
88432         * m4/Makefile.am: Remove file.
88433         * m4/Makefile.in: Remove file.
88434
88435 2003-07-17  Bruno Haible  <bruno@clisp.org>
88436
88437         * lib/getnline.h: New file.
88438         * lib/getnline.c: New file.
88439         * lib/getndelim2.c: New file, extracted from getline.c.
88440         (getndelim2): Renamed from getdelim2, with added nmax argument.
88441         * lib/getline.c: Include getndelim2.c.
88442         (getdelim2): Moved out to getndelim2.c.
88443         (getline, getdelim): Update.
88444
88445 2003-07-17  Bruno Haible  <bruno@clisp.org>
88446
88447         * lib/Makefile.am: Remove file.
88448         * lib/Makefile.in: Remove file.
88449
88450 2003-07-17  Bruno Haible  <bruno@clisp.org>
88451
88452         * configure.in: Remove file.
88453         * Makefile.in: Remove file.
88454
88455 2003-07-17  Bruno Haible  <bruno@clisp.org>
88456
88457         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88458
88459 2003-07-16  Karl Berry  <karl@gnu.org>
88460
88461         * config/srclist-update: was running fixlicense twice, which caused
88462                 texinfo.tex to be nullified for some reason.  Simplify,
88463                 $gplsrc is no longer needed as far as I can see?
88464
88465 2003-07-16  Jim Meyering  <jim@meyering.net>
88466
88467         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88468
88469 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88470
88471         * config/srclist.txt: Get the following files from gettext-runtime/intl
88472         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88473         ref-del.sin.  From Bruno Haible.
88474         * config/srclist-update (fixfile): Change grep pattern again, since the
88475         previous fix didn't work (there was another trailing $).  Use
88476         '[$]' to escape the $s.
88477
88478 2003-07-15  Karl Berry  <karl@gnu.org>
88479
88480         * lib/vasnprintf.c: update from gettext.
88481
88482 2003-07-15  Karl Berry  <karl@gnu.org>
88483
88484         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88485         gets expanded when surrounded by '$'.
88486
88487 2003-07-15  Jim Meyering  <jim@meyering.net>
88488
88489         * modules/save-cwd: Don't depend on error.  From Derek Price.
88490
88491 2003-07-15  Jim Meyering  <jim@meyering.net>
88492
88493         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88494
88495 2003-07-14  Simon Josefsson  <jas@extundo.com>
88496
88497         * modules/mempcpy: New file.
88498         * MODULES.html.sh (func_all_modules): Add mempcpy.
88499
88500 2003-07-14  Simon Josefsson  <jas@extundo.com>
88501
88502         * m4/mempcpy.m4: New file.
88503
88504 2003-07-14  Simon Josefsson  <jas@extundo.com>
88505
88506         * lib/mempcpy.h: New file.
88507         * lib/mempcpy.c: New file.
88508
88509 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88510
88511         * modules/getdate, modules/posixtm: Depend on mktime.
88512
88513 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88514
88515         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88516         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88517         unicodeio.c, unicodeio.h, unlocked-io.h:
88518         Switch from LGPL to GPL.
88519
88520 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88523         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88524         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88525         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88526         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88527         updated automatically by ../config/srclist-update.  This changes
88528         their license from LPGL to GPL.
88529
88530 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88531
88532         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88533         assumed to refer to the root of the most recent stable gettext version.
88534         * config/srclistvars.sh: Add defaults for eggert.
88535         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88536         Match "This program" as well as "The program".  This is needed
88537         for gettext.
88538
88539 2003-07-14  Jim Meyering  <jim@meyering.net>
88540
88541         Don't emit diagnostics.  Let callers do that.
88542         * lib/save-cwd.c: Don't include "error.h".
88543         (save_cwd): Don't call error.  Ensure that errno is valid
88544         when returning nonzero.
88545
88546         * lib/save-cwd.h (restore_cwd): Update prototype.
88547         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88548         Simplify.  Don't call error upon failure.  Let callers do that.
88549         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88550         when auditing is enabled.  But don't bother updating the #if.
88551
88552 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88553
88554         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88555         it breaks C++ compilation.
88556         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88557
88558 2003-07-10  Simon Josefsson  <jas@extundo.com>
88559
88560         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88561
88562 2003-07-10  Jim Meyering  <jim@meyering.net>
88563
88564         * m4/clock_time.m4: Remove trailing blank.
88565         * m4/intmax_t.m4: Likewise.
88566
88567 2003-07-10  Jim Meyering  <jim@meyering.net>
88568
88569         * lib/vasnprintf.c: Remove trailing blanks.
88570         Make cpp indentation consistent.
88571
88572 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88573
88574         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88575         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88576         Switch from LGPL to GPL.
88577
88578 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88579
88580         * config/srclist.txt: Sort sublists.  Add
88581         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88582         that differ from gnulib for one reason or another; we'd like this list
88583         to be smaller but for now let's document what we have.
88584
88585 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88586
88587         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88588         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88589         and sweeter "eval x=$x".
88590         * config/srclist.txt: Get lib/argp* from glibc.
88591
88592 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88593
88594         * lib/mktime.c: Fix some boundary cases and remove need for floating
88595         point.
88596
88597         Issue a compile-time diagnostic if time_t is floating point, or if
88598         two's complement arithmetic is not in effect, or if arithmetic
88599         right shift does not propagate the sign.  These assumptions were
88600         all in the original code but they weren't checked.
88601
88602         (TIME_T_MIDPOINT, verify): New macros.
88603         (__isleap): Remove; it has integer overflow problems.
88604         (leapyear): New function, without those problems.
88605         (ydhms_tm_diff): Remove; splitting into two parts.
88606         (ydhms_diff): New function, containing the arithmetic part of
88607         the old ydhms_tm_diff function.  Issue a compile-time
88608         diagnostic if we are not using C99 integer division.
88609         Avoid casts when possible.
88610         (guess_time_tm): New function, containing the checking part of
88611         the old ydhms_tm_diff function.  Return the new value, rather than
88612         the difference between it and the old.  Accept a new argument T
88613         so that *T specifies the old value.  Check for overflow in the result.
88614
88615         (__mktime_internal): Use a time_t offset, not a long int offset.
88616         This undoes the 2003-06-04 change, which is no longer needed now
88617         that we have better overflow checking.
88618         (localtime_offset): Likewise.
88619
88620         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88621         and long are 64-bit but int is only 32-bit.
88622         (ydhms_diff): Use long int to store year1 and yday1.
88623         Issue a compile-time diagnostic if long int is not wide enough.
88624
88625         (__mktime_internal): Use long int to store adjusted year and yday.
88626         Use plain C rather than preprocessor commands, if that doesn't
88627         affect efficiency.
88628         Check for overflow (and try to repair) after each probe
88629         rather than checking only at the very end.  This avoids some bugs
88630         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88631         does not equal GMT offset at maximum time).
88632         Use integer to check for overflow rather than floating point; this
88633         is more portable to non-IEEE hosts, and is a tad faster.
88634         When we detect that we are oscillating between two values,
88635         don't check whether tm_isdst has the requested value, since
88636         we already know the answer.  When tm_isdst has the wrong value,
88637         use a different heuristic to find the right one, based on the
88638         extreme values actually observed in practice in tz2003a,
88639         rather than the (overly optimistic) "previous 3 calendar quarters".
88640
88641         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88642         "T const" to accommodate glibc style.
88643         (check_result): Use less-confusing report format.  "long" -> "long int.
88644         (main): Likewise.
88645         Don't loop if the iteration overflows time_t.
88646         Allow a negative step in the iteration.
88647
88648 2003-07-06  Karl Berry  <karl@gnu.org>
88649
88650         * config/depcomp: update from automake.
88651         * config/config.sub: update from prep.
88652
88653 2003-07-03  Karl Berry  <karl@gnu.org>
88654
88655         * config/config.guess: update from prep.
88656
88657 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88658
88659         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88660         xreadlink.c now includes it unconditionally.
88661
88662 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88663
88664         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88665         having it depend on HAVE_SYS_TYPES_H.
88666
88667 2003-07-01  Bruno Haible  <bruno@clisp.org>
88668
88669         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88670         <sys/types.h> should be sufficient.
88671         Reported by Paul Eggert.
88672
88673 2003-06-26  Karl Berry  <karl@gnu.org>
88674
88675         * config/depcomp: update from automake.
88676
88677 2003-06-26  Bruno Haible  <bruno@clisp.org>
88678
88679         * modules/human: Depend on module stdbool.
88680
88681 2003-06-25  Bruno Haible  <bruno@clisp.org>
88682
88683         * modules/readlink: New file.
88684         * modules/xreadlink: Depend on it.
88685         * MODULES.html.sh (func_all_modules): Add readlink.
88686
88687 2003-06-25  Bruno Haible  <bruno@clisp.org>
88688
88689         * m4/readlink.m4: New file.
88690
88691 2003-06-25  Bruno Haible  <bruno@clisp.org>
88692
88693         * lib/readlink.c: New file.
88694
88695 2003-06-22  Karl Berry  <karl@gnu.org>
88696
88697         * config/srclist.txt: update mkinstalldirs from automake.
88698         * config/mkinstalldirs: update.
88699
88700 2003-06-22  Bruno Haible  <bruno@clisp.org>
88701
88702         Portability to mingw32.
88703         * m4/ssize_t.m4: New file, from GNU gettext.
88704         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88705         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88706
88707 2003-06-22  Bruno Haible  <bruno@clisp.org>
88708
88709         * modules/safe-read: Add m4/ssize_t.m4.
88710         * modules/xreadlink: Add m4/ssize_t.m4.
88711
88712 2003-06-20  Bruno Haible  <bruno@clisp.org>
88713
88714         Assume C89, so PARAMS isn't needed.
88715         * lib/unicodeio.h (PARAMS): Remove.
88716         * lib/unicodeio.c: Don't use PARAMS.
88717
88718 2003-06-18  Karl Berry  <karl@gnu.org>
88719
88720         * config/config.{guess,sub}: update from prep.
88721
88722 2003-06-18  Jim Meyering  <jim@meyering.net>
88723
88724         Merge changes from coreutils.
88725         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88726         Remove explicit declarations of xmalloc and realloc.
88727         Include xalloc.h.
88728         (read_utmp): Remove anachronistic cast of xmalloc.
88729
88730 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88731
88732         Assume C89, so PARAMS isn't needed.
88733         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88734         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88735         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88736         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88737         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88738         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88739         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88740         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88741         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88742         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88743         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88744         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88745         no longer needed. Anyway, config.h should always be included before any
88746         other file.
88747
88748 2003-06-11  Simon Josefsson  <jas@extundo.com>
88749
88750         * modules/sysexits: New file.
88751         * MODULES.html.sh (func_all_modules): Add sysexits.
88752
88753 2003-06-11  Simon Josefsson  <jas@extundo.com>
88754
88755         * lib/sysexit_.h: New file.
88756
88757 2003-06-11  Derek Price  <derek@ximbiot.com>
88758
88759         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88760         necessary.
88761
88762 2003-06-11  Bruno Haible  <bruno@clisp.org>
88763
88764         * m4/sysexits.m4: New file.
88765
88766 2003-06-10  Simon Josefsson  <jas@extundo.com>
88767
88768         * lib/argp.h: New file, from glibc.
88769         * lib/argp-ba.c: New file, from glibc.
88770         * lib/argp-eexst.c: New file, from glibc.
88771         * lib/argp-fmtstream.c: New file, from glibc.
88772         * lib/argp-fmtstream.h: New file, from glibc.
88773         * lib/argp-fs-xinl.c: New file, from glibc.
88774         * lib/argp-help.c: New file, from glibc.
88775         * lib/argp-namefrob.h: New file, from glibc.
88776         * lib/argp-parse.c: New file, from glibc.
88777         * lib/argp-pv.c: New file, from glibc.
88778         * lib/argp-pvh.c: New file, from glibc.
88779         * lib/argp-xinl.c: New file, from glibc.
88780
88781 2003-06-10  Simon Josefsson  <jas@extundo.com>
88782
88783         * modules/strchrnul: New file.
88784
88785 2003-06-10  Simon Josefsson  <jas@extundo.com>
88786
88787         * modules/argp: New file.
88788
88789 2003-06-10  Simon Josefsson  <jas@extundo.com>
88790
88791         * m4/strchrnul.m4: New file.
88792
88793 2003-06-10  Simon Josefsson  <jas@extundo.com>
88794
88795         * lib/strchrnul.h: New file.
88796         * lib/strchrnul.c: New file.
88797
88798 2003-06-10  Bruno Haible  <bruno@clisp.org>
88799
88800         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88801
88802 2003-06-07  Karl Berry  <karl@gnu.org>
88803
88804         * config/config.{guess,sub}: update from prep.
88805
88806 2003-06-07  Jim Meyering  <jim@meyering.net>
88807
88808         * modules/strtod: Use $(...) notation, not @...@ for
88809         AC_REPLACE'd variables.
88810         * modules/localcharset: Likewise.
88811
88812 2003-06-07  Jim Meyering  <jim@meyering.net>
88813
88814         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88815         in place of my name in the copyright comment.
88816         Remove definition and uses of __P.
88817
88818         From coreutils.
88819         * lib/stat.c: Don't declare xmalloc explicitly.
88820         Instead, include "xalloc.h".
88821         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88822         xrealloc, and xcalloc return values.
88823         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88824         Improve comment.
88825         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88826
88827 2003-06-07  Bruno Haible  <bruno@clisp.org>
88828
88829         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88830         avoid AC_CONFIG_LINKS.
88831         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88832         fnmatch.h, to avoid AC_CONFIG_LINKS.
88833         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88834
88835 2003-06-07  Bruno Haible  <bruno@clisp.org>
88836
88837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88838         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88839         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88840         directory.
88841         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88842         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88843         directory.
88844
88845 2003-06-06  Jim Meyering  <jim@meyering.net>
88846
88847         Merge from coreutils.
88848         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88849         Consolidate declarations and initializations of *_base* locals.
88850
88851         Merge from coreutils.
88852         This avoids a core dump on systems without GNU putenv,
88853         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88854         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88855         (unsetenv): New static function, from GNU libc.
88856         (rpl_putenv): Use it.
88857
88858         * lib/modechange.c: Remove trailing blanks.
88859
88860         Merge from coreutils.
88861         * lib/fsusage.c: Remove declaration of statfs.
88862         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88863
88864         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88865
88866 2003-06-06  Jim Meyering  <jim@meyering.net>
88867
88868         * lib/stdbool_.h: Renamed from stdbool.h.in.
88869
88870 2003-06-06  Jim Meyering  <jim@meyering.net>
88871             Bruno Haible  <bruno@clisp.org>
88872
88873         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88874         Adjust Makefile.am snippet not to redirect directly to target.
88875         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88876
88877 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88878
88879         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88880         mismatch, look in future quarters as well as past.  This fixes a
88881         bug when processing fall-backwards gaps immediately after a long
88882         period of daylight-saving time.
88883
88884         * lib/mktime.c: Assume freestanding C89 or better.
88885         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88886         (__P): Remove; not used.
88887         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88888         (mktime, not_equal_tm, print_tm, check_result,
88889         main): Use prototypes.  Use const * where appropriate.
88890         (main): Fix typo in testing code that uncovered by above changes.
88891         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88892
88893 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88894
88895         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88896         locale.h, localeconv.  This merges changes from coreutils.
88897
88898         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88899         It can be removed after the next Autoconf is released.
88900         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88901         needed.
88902
88903 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88904
88905         * lib/mktime.c: Fix Debian bug 177940
88906         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88907         (localtime_offset): Now long int, not time_t, because we want it
88908         to be guaranteed to be signed.  All uses changed.
88909         (__mktime_internal): If overflow would occur when adding offset,
88910         don't add it.
88911
88912         Merge 'human' changes from coreutils.  Rewrite to support
88913         locale-specific notations like thousands separators.
88914         * lib/human.c: Simplify authorship notice.
88915         Include human.h immediately after config.h.
88916         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88917         <limits.h>: Do not include, since human.h does.
88918         (SIZE_MAX, UINTMAX_MAX): New macros.
88919         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88920         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88921         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88922         (power_letter): Renamed from suffixes.
88923         (generate_suffix_backwards): Remove.
88924         (adjust_value): Now takes int style (because of human.h changes)
88925         and long double value (for greater precision on some platforms).
88926         (group_number): New function.
88927         (human_readable): Use it.  Use integer options, not enum.
88928         Put the options before the sizes in the arg list.
88929         Support all the new options.
88930         The old human_readable function has been removed;
88931         use inttostr.h instead.
88932         (human_readable, default_block_size, humblock):
88933         Use uintmax_t, not int, for block sizes.
88934         (human_readable_inexact, block_size_types): Remove.
88935         (block_size_opts): New constant.
88936         (human_options): Renamed from human_block_size, with new signature
88937         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88938         * lib/human.h: Add copyright and authorship notice.
88939         Include <limits.h> and <stdbool.h> unconditionally.
88940         (PARAMS): Remove.  All uses removed.
88941         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88942         (enum human_inexact_style): Remove tag; now a nameless enum.
88943         (human_floor, human_ceiling, human_round_to_even): Now have
88944         values 2, 0, 1 rather than -1, 1, 0.
88945         (human_group_digits, human_suppress_point_zero, human_autoscale,
88946         human_base_1024, human_SI, human_B): New constants.
88947         (human_readable_inexact, human_block_size): Remove.
88948         (human_readable): Size args are now uintmax_t, not int.
88949         (human_options): New decl.
88950
88951         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88952         unnecessary now that we assume C89 or better.  This change
88953         imported from coreutils.
88954
88955         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88956         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88957         in the 2003-05-30 sync from glibc.
88958
88959         .h files should stand alone, but we shouldn't include <sys/types.h>
88960         if we can get away with just <stddef.h>.
88961
88962         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88963         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88964         rather than <sys/types.h>, as we merely need size_t.
88965         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88966         to get size_t.
88967         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88968         Include <stdio.h>, to get FILE.
88969         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88970         memcasecmp.h has included <stddef.h> and all we need is size_t.
88971         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88972         our interface, instead of including <sys/types.h>
88973
88974 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88975
88976         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88977         now, as glibc mktime is buggy on non-glibc systems.
88978
88979 2003-06-03  Karl Berry  <karl@gnu.org>
88980
88981         * config/config.sub: update from prep.
88982
88983 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88984
88985         [from coreutils]
88986         Fix some minor time-related bugs with POSIX time arguments.
88987         Some valid time stamps were being rejected (notably -1, and
88988         time stamps before 1900 on 64-bit hosts).  And some invalid
88989         time stamps were being accepted, e.g. September 31.
88990
88991         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88992         that we can return (time_t) -1 successfully.
88993         * lib/posixtm.c: Likewise.
88994         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88995         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88996         (t): Remove static var.
88997         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88998         of static var.  All uses changed.
88999         (year): Do not reject years before 1900; they can occur with
89000         64-bit time_t.
89001         (posix_time_parse): Do not check for out-of-range components;
89002         that is now the caller's responsibility, since our checks were
89003         only approximations.
89004         (posixtime): Use mktime to check for out-of-range components,
89005         since it knows them exactly.
89006         If mktime returns (time_t) -1, check whether an error actually occurred
89007         by invoking localtime on -1.
89008         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89009         posixtime failures better.
89010         Improve the test data (in comments only).
89011
89012 2003-06-02  Karl Berry  <karl@gnu.org>
89013
89014         * config/mkinstalldirs (version): new variable.
89015         (--version): new option.
89016         (usage): improve message.
89017
89018 2003-05-30  Karl Berry  <karl@gnu.org>
89019
89020         * lib/mktime.c: update from libc.
89021
89022 2003-05-30  Bruno Haible  <bruno@clisp.org>
89023
89024         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89025         * config/config.rpath: Upgrade to gettext-0.12.1.
89026
89027 2003-05-30  Bruno Haible  <bruno@clisp.org>
89028
89029         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89030         * m4/nls.m4: New file, from gettext-0.12.1.
89031         * m4/po.m4: New file, from gettext-0.12.1.
89032         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89033
89034 2003-05-30  Bruno Haible  <bruno@clisp.org>
89035
89036         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89037         * lib/localcharset.h: Likewise.
89038         * lib/localcharset.c: Likewise.
89039
89040 2003-05-29  Karl Berry  <karl@gnu.org>
89041
89042         * config/config.rpath: update from gettext.
89043
89044 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89045
89046         Assume the headers required for C89 freestanding compilers.
89047         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89048         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89049         * m4/human.m4 (gl_HUMAN): Likewise.
89050         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89051         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89052         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89053         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89054         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89055         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89056
89057 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89058
89059         Assume the headers required for C89 freestanding compilers.
89060         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89061         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89062         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89063         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89064         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89065         define, since <limits.h> is guaranteed to do that.
89066         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89067         * lib/exclude.c: Include <stdbool.h> unconditionally.
89068         * lib/tempname.c: Include <stddef.h> unconditionally.
89069         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89070         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89071         <stddef.h> does that.
89072         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89073         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89074         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89075         needed.
89076         * lib/xstrtol.c: Likewise.
89077         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89078         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89079
89080         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89081         warnings on some platforms.
89082
89083         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89084         arbitrarily.
89085
89086 2003-05-26  Jim Meyering  <jim@meyering.net>
89087
89088         Merge in a change from coreutils:
89089         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89090         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89091         that condition, rather than `-1' which is slightly misleading.
89092         Change the name of the cache variable to have the gl_ prefix.
89093         Prompted by a patch from Richard Dawe for DJGPP.
89094
89095 2003-05-24  Karl Berry  <karl@gnu.org>
89096
89097         * config/config.guess: update from prep.
89098
89099 2003-05-22  Karl Berry  <karl@gnu.org>
89100
89101         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89102
89103 2003-05-20  Karl Berry  <karl@gnu.org>
89104
89105         * config/config.guess: update from prep.
89106
89107 2003-05-18  Karl Berry  <karl@gnu.org>
89108
89109         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89110         might actually be set by the user.
89111
89112         * config/depcomp, install-sh, mdate-sh: update from automake.
89113
89114 2003-05-17  Bruno Haible  <bruno@clisp.org>
89115
89116         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89117         invalid expansion for AC_EGREP_CPP.
89118         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89119         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89120         Suggested by Akim Demaille <akim@epita.fr> in
89121         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89122
89123 2003-05-12  Jim Meyering  <jim@meyering.net>
89124
89125         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89126         the space-padded-by-default conversion specifiers, %e, %k, %l.
89127
89128 2003-05-12  Bruno Haible  <bruno@clisp.org>
89129
89130         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89131         the string is longer than 4 KB.
89132
89133 2003-05-11  Karl Berry  <karl@gnu.org>
89134
89135         * config/config.{guess,sub}: update from prep.
89136
89137 2003-05-09  Bruno Haible  <bruno@clisp.org>
89138
89139         * modules/error: Add m4/strerror_r.m4 to file list.
89140
89141 2003-05-03  Bruno Haible  <bruno@clisp.org>
89142
89143         Upgrade to Unicode-4.0.
89144         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89145         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89146         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89147         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89148         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89149         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89150         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89151         Change width of U+E0100..U+E01EF from 1 to 0.
89152
89153 2003-04-25  Jim Meyering  <jim@meyering.net>
89154
89155         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89156         of type size_t, not int.
89157
89158 2003-04-25  Bruno Haible  <bruno@clisp.org>
89159
89160         * lib/copy-file.c: Include <stddef.h>, for size_t.
89161
89162 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89163
89164         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89165         code which expansion is under static control.  Patch imported from
89166         Akim Demaille's patch to Bison; see
89167         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89168
89169 2003-04-14  Bruno Haible  <bruno@clisp.org>
89170
89171         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89172
89173 2003-04-11  Jim Meyering  <jim@meyering.net>
89174
89175         Merge changes from Coreutils.
89176
89177         2003-03-22  Jim Meyering  <jim@meyering.net>
89178
89179         * lib/strftime.c (widen): Cast alloca return value to proper type.
89180
89181         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89182
89183         From GNU libc.
89184         * lib/strftime.c (my_strftime): Handle very large width
89185         specifications for numeric values correctly.  Improve checks for
89186         overflow.
89187
89188         2003-01-19  Jim Meyering  <jim@meyering.net>
89189
89190         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89191         definitions.
89192         (nl_get_alt_digit) [! defined my_strftime]: Define.
89193         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89194         _nl_get_alt_digit and _nl_get_walt_digit.
89195
89196         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89197         libc. These changes have no effect outside of _LIBC.
89198
89199 2003-04-10  Bruno Haible  <bruno@clisp.org>
89200
89201         * modules/findprog: New file.
89202         * MODULES.html.sh (func_all_modules): Add it.
89203
89204 2003-04-10  Bruno Haible  <bruno@clisp.org>
89205
89206         * m4/findprog.m4: New file.
89207         * m4/eaccess.m4: New file.
89208
89209 2003-04-10  Bruno Haible  <bruno@clisp.org>
89210
89211         * lib/findprog.h: New file, from GNU gettext.
89212         * lib/findprog.c: New file, from GNU gettext.
89213
89214 2003-04-05  Jim Meyering  <jim@meyering.net>
89215
89216         Merge changes from Coreutils.
89217
89218         * lib/exclude.h (PARAMS): Remove definition and uses.
89219         * lib/exclude.c: Remove uses of `PARAMS'.
89220
89221         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89222         Add test-cases for DOS filenames. Declare program_name.
89223         (main): Set up program_name.  Patch by Rich Dawe.
89224
89225         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89226         error from mntctl.
89227         Use mntctl's return value to drive the entry-processing loop, since
89228         we can't rely on the value of the vmt_length member in the last
89229         entry.  On some systems doing so could result in exhausting
89230         virtual memory.  Based in part on a patch from Mike Jetzer.
89231
89232 2003-04-04  Bruno Haible  <bruno@clisp.org>
89233
89234         * modules/linebreak: New file.
89235         * MODULES.html.sh (func_all_modules): Add it.
89236
89237 2003-04-04  Bruno Haible  <bruno@clisp.org>
89238
89239         * m4/linebreak.m4: New file.
89240
89241 2003-04-04  Bruno Haible  <bruno@clisp.org>
89242
89243         * lib/linebreak.h: New file, from GNU gettext.
89244         * lib/linebreak.c: New file, from GNU gettext with slight
89245         modifications.
89246         * lib/lbrkprop.h: New file, from GNU gettext.
89247
89248 2003-04-03  Bruno Haible  <bruno@clisp.org>
89249
89250         * modules/utf8-ucs4: New file.
89251         * modules/utf16-ucs4: New file.
89252         * modules/ucs4-utf8: New file.
89253         * modules/ucs4-utf16: New file.
89254         * MODULES.html.sh (func_all_modules): Add them.
89255
89256 2003-04-03  Bruno Haible  <bruno@clisp.org>
89257
89258         * m4/utf-ucs4.m4: New file.
89259         * m4/ucs4-utf.m4: New file.
89260
89261 2003-04-03  Bruno Haible  <bruno@clisp.org>
89262
89263         * lib/utf8-ucs4.h: New file, from GNU gettext.
89264         * lib/utf16-ucs4.h: New file, from GNU gettext.
89265         * lib/ucs4-utf8.h: New file, from GNU gettext.
89266         * lib/ucs4-utf16.h: New file, from GNU gettext.
89267
89268 2003-04-02  Bruno Haible  <bruno@clisp.org>
89269
89270         * modules/binary-io: New file.
89271         * MODULES.html.sh (func_all_modules): Add it.
89272
89273 2003-04-02  Bruno Haible  <bruno@clisp.org>
89274
89275         * lib/binary-io.h: New file, from GNU gettext.
89276
89277 2003-04-01  Bruno Haible  <bruno@clisp.org>
89278
89279         * modules/pathname: New file.
89280         * MODULES.html.sh (func_all_modules): Add it.
89281
89282 2003-04-01  Bruno Haible  <bruno@clisp.org>
89283
89284         * lib/pathname.h: New file, from GNU gettext.
89285         * lib/concatpath.c: New file, from GNU gettext.
89286
89287 2003-03-30  Bruno Haible  <bruno@clisp.org>
89288
89289         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89290
89291 2003-03-30  Bruno Haible  <bruno@clisp.org>
89292
89293         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89294         function chown() doesn't exist.
89295
89296 2003-03-28  Bruno Haible  <bruno@clisp.org>
89297
89298         * modules/copy-file: New file.
89299         * MODULES.html.sh (func_all_modules): Add it.
89300
89301 2003-03-28  Bruno Haible  <bruno@clisp.org>
89302
89303         * m4/copy-file.m4: New file.
89304
89305 2003-03-28  Bruno Haible  <bruno@clisp.org>
89306
89307         * lib/copy-file.h: New file, from GNU gettext.
89308         * lib/copy-file.c: New file, from GNU gettext.
89309
89310 2003-03-18  Jim Meyering  <jim@meyering.net>
89311
89312         * lib/quote.c (quote_n): Fix typo in comment.
89313
89314 2003-03-18  Bruno Haible  <bruno@clisp.org>
89315
89316         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89317         checking.
89318         * m4/onceonly_2_57.m4: Likewise.
89319
89320 2003-03-17  Bruno Haible  <bruno@clisp.org>
89321
89322         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89323         (m4_quote): Remove macro.
89324         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89325
89326 2003-03-14  Jim Meyering  <jim@meyering.net>
89327
89328         Merge changes from Coreutils.
89329         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89330         to be const, in order to avoid warnings.
89331         (obstack_room): Likewise.
89332         (obstack_empty_p): Likewise.
89333
89334 2003-03-14  Bruno Haible  <bruno@clisp.org>
89335
89336         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89337         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89338
89339 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89340
89341         Merge changes from Bison.
89342         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89343         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89344         when compiling Bison 1.875's `bitset bset = obstack_alloc
89345         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89346         * lib/hash.c: Include <stdbool.h> unconditionally.
89347
89348 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89349
89350         * m4/onceonly.m4 (m4_quote): New macro.
89351         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89352         Quote AC_FOREACH variable-expansions properly.
89353
89354 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89355
89356         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89357
89358 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89359
89360         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89361         Reported by Bruce Becker; see:
89362         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89363
89364 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89365             Bruno Haible  <bruno@clisp.org>
89366
89367         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89368         Reported by John Hughes, see
89369         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89370
89371 2003-02-20  Bruno Haible  <bruno@clisp.org>
89372
89373         * MODULES.html.sh (func_all_modules): Add poll.
89374
89375 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89376
89377         * modules/poll: New file.
89378
89379 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89380
89381         * lib/poll_.h: New file.
89382         * lib/poll.c: New file.
89383
89384 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89385
89386         * m4/poll.m4: New file.
89387
89388 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89389
89390         * modules/mathl: New file.
89391
89392 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89393
89394         * lib/mathl.h: New file.
89395         * lib/acosl.c: New file.
89396         * lib/asinl.c: New file.
89397         * lib/atanl.c: New file.
89398         * lib/ceill.c: New file.
89399         * lib/cosl.c: New file.
89400         * lib/expl.c: New file.
89401         * lib/floorl.c: New file.
89402         * lib/frexpl.c: New file.
89403         * lib/ldexpl.c: New file.
89404         * lib/logl.c: New file.
89405         * lib/sincosl.c: New file.
89406         * lib/sinl.c: New file.
89407         * lib/sqrtl.c: New file.
89408         * lib/tanl.c: New file.
89409         * lib/trigl.c: New file.
89410         * lib/trigl.h: New file.
89411
89412 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89413
89414         * m4/mathl.m4: New file.
89415
89416 2003-02-18  Bruno Haible  <bruno@clisp.org>
89417
89418         * MODULES.html.sh (func_all_modules): Add mathl.
89419
89420 2003-02-17  Bruno Haible  <bruno@clisp.org>
89421
89422         * modules/mkdtemp: New module.
89423         * MODULES.html.sh (func_all_modules): Add it.
89424
89425 2003-02-17  Bruno Haible  <bruno@clisp.org>
89426
89427         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89428
89429 2003-02-17  Bruno Haible  <bruno@clisp.org>
89430
89431         * lib/mkdtemp.h: New file, from GNU gettext.
89432         * lib/mkdtemp.c: New file, from GNU gettext.
89433
89434 2003-02-02  Jim Meyering  <jim@meyering.net>
89435
89436         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89437         e.g. glibc-2.2.93.
89438
89439 2003-01-31  Bruno Haible  <bruno@clisp.org>
89440
89441         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89442         'rpl_rename'.
89443         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89444         'rpl_strnlen'.
89445         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89446         'rpl_strtod'.
89447         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89448         'rpl_utime'.
89449
89450 2003-01-31  Bruno Haible  <bruno@clisp.org>
89451
89452         * lib/rename.c: #undef rename before defining rpl_rename.
89453         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89454
89455 2003-01-30  Bruno Haible  <bruno@clisp.org>
89456
89457         * modules/vasnprintf, modules/vasprintf: New modules.
89458         * MODULES.html.sh (func_all_modules): Add them.
89459
89460 2003-01-30  Bruno Haible  <bruno@clisp.org>
89461
89462         * m4/signed.m4: New file, from GNU gettext.
89463         * m4/longdouble.m4: New file, from GNU gettext.
89464         * m4/wchar_t.m4: New file, from GNU gettext.
89465         * m4/wint_t.m4: New file, from GNU gettext.
89466         * m4/vasnprintf.m4: New file.
89467         * m4/vasprintf.m4: New file.
89468
89469 2003-01-30  Bruno Haible  <bruno@clisp.org>
89470
89471         * lib/printf-args.h: New file, from GNU gettext.
89472         * lib/printf-args.c: New file, from GNU gettext.
89473         * lib/printf-parse.h: New file, from GNU gettext.
89474         * lib/printf-parse.c: New file, from GNU gettext.
89475         * lib/vasnprintf.h: New file, from GNU gettext.
89476         * lib/vasnprintf.c: New file, from GNU gettext.
89477         * lib/asnprintf.c: New file, from GNU gettext.
89478         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89479         * lib/vasprintf.c: New file, from GNU gettext.
89480         * lib/asprintf.c: New file, from GNU gettext.
89481
89482 2003-01-29  Bruno Haible  <bruno@clisp.org>
89483
89484         * modules/stpncpy: New module.
89485         * MODULES.html.sh (func_all_modules): Add it.
89486
89487 2003-01-29  Bruno Haible  <bruno@clisp.org>
89488
89489         * m4/stpncpy.m4: New file.
89490
89491 2003-01-29  Bruno Haible  <bruno@clisp.org>
89492
89493         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89494         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89495
89496 2003-01-28  Bruno Haible  <bruno@clisp.org>
89497
89498         * modules/c-ctype: New module.
89499         * MODULES.html.sh (func_all_modules): Add it.
89500
89501 2003-01-28  Bruno Haible  <bruno@clisp.org>
89502
89503         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89504         Paul Eggert.
89505         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89506         Paul Eggert.
89507
89508 2003-01-27  Bruno Haible  <bruno@clisp.org>
89509
89510         * modules/xsetenv: New module.
89511         * MODULES.html.sh (func_all_modules): Add it.
89512
89513 2003-01-27  Bruno Haible  <bruno@clisp.org>
89514
89515         * lib/xsetenv.h: New file, from GNU gettext.
89516         * lib/xsetenv.c: New file, from GNU gettext.
89517
89518 2003-01-23  Jim Meyering  <jim@meyering.net>
89519
89520         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89521         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89522
89523 2003-01-23  Bruno Haible  <bruno@clisp.org>
89524
89525         * modules/minmax: New module.
89526         * MODULES.html.sh (func_all_modules): Add it.
89527
89528 2003-01-23  Bruno Haible  <bruno@clisp.org>
89529
89530         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89531         Eggert.
89532
89533 2003-01-22  Bruno Haible  <bruno@clisp.org>
89534
89535         * modules/exit: New module.
89536         * MODULES.html.sh (func_all_modules): Add it.
89537
89538 2003-01-22  Bruno Haible  <bruno@clisp.org>
89539
89540         * lib/exit.h: New file, from GNU gettext.
89541
89542 2003-01-19  Bruno Haible  <bruno@clisp.org>
89543
89544         * gnulib-tool: Recognize option --extract-maintainer.
89545         (func_get_maintainer): New function.
89546         * modules/*: Add Maintainer entry.
89547
89548 2003-01-16  Jim Meyering  <jim@meyering.net>
89549
89550         * m4/regex.m4: The `regex' struct is both input and output.
89551         Initialize it before each use.  Patch by Tim Waugh.
89552
89553 2003-01-16  Bruno Haible  <bruno@clisp.org>
89554
89555         * MODULES.html.sh: Add a table of contents. Add the module name as
89556         leftmost column. Add hyperlinks.
89557
89558 2003-01-15  Bruno Haible  <bruno@clisp.org>
89559
89560         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89561
89562 2003-01-15  Bruno Haible  <bruno@clisp.org>
89563
89564         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89565         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89566         suffix.
89567
89568 2003-01-15  Bruno Haible  <bruno@clisp.org>
89569
89570         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89571
89572 2003-01-15  Bruno Haible  <bruno@clisp.org>
89573
89574         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89575         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89576
89577 2003-01-14  Jim Meyering  <jim@meyering.net>
89578
89579         * lib/same.c (same_name): Tweak a comment.
89580
89581 2003-01-14  Bruno Haible  <bruno@clisp.org>
89582
89583         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89584         when a string comparison is sufficient.
89585
89586 2003-01-14  Bruno Haible  <bruno@clisp.org>
89587
89588         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89589         'unsigned int'.
89590
89591 2003-01-14  Bruno Haible  <bruno@clisp.org>
89592
89593         * lib/hash-pjw.c: Add comment about low quality of this function.
89594
89595 2003-01-13  Bruno Haible  <bruno@clisp.org>
89596
89597         * modules/stpcpy: Distribute lib/stpcpy.h.
89598         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89599
89600 2003-01-13  Bruno Haible  <bruno@clisp.org>
89601
89602         * modules/*: Add a description.
89603         * modules/strpbrk: Fix Makefile.am snippet.
89604         * modules/strtoimax: Fix dependencies.
89605         * modules/strtoumax: Likewise.
89606
89607 2003-01-13  Bruno Haible  <bruno@clisp.org>
89608
89609         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89610         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89611         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89612
89613 2003-01-13  Bruno Haible  <bruno@clisp.org>
89614
89615         * gnulib-tool (func_create_testdir): Store config/* files in the main
89616         directory.
89617         * config.rpath: Move to ...
89618         * config/config.rpath: ... here.
89619         * modules/gettext: Contains config/config.rpath, not config.rpath.
89620         * modules/iconv: Likewise.
89621
89622 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89623
89624         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89625         to avoid collisions with libcurses and libreadline.
89626
89627         * m4/getstr.m4: Remove.
89628         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89629
89630 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89631
89632         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89633         to avoid collisions with libcurses and libreadline.
89634
89635         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89636         * lib/getstr.h, getstr.c: Remove.
89637         * lib/getline.c: Include "getline.h", to check interface.
89638         Move body of old getstr.c here: this defines MIN_CHUNK and
89639         declares getdelim2, which is renamed from getstr.
89640         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89641
89642         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89643         All uses changed.
89644         * lib/linebuffer.h: Likewise.
89645         (readline): Remove backward-compatibility macro.
89646
89647 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89648
89649         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89650         to avoid collisions with libcurses and libreadline.
89651         * getstr: Remove.
89652         * MODULES.html.sh: Remove getstr.
89653         * modules/getline: Depend on unlocked-io, not getstr.
89654
89655 2003-01-12  Jim Meyering  <jim@meyering.net>
89656
89657         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89658
89659 2003-01-10  Bruno Haible  <bruno@clisp.org>
89660
89661         * modules/alloca: Change Makefile.am requirements. Simplify Include
89662         requirements. Add lib/alloca_.h to file list.
89663
89664 2003-01-10  Bruno Haible  <bruno@clisp.org>
89665
89666         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89667
89668 2003-01-10  Bruno Haible  <bruno@clisp.org>
89669
89670         * lib/alloca_.h: New file.
89671         * lib/getdate.y: Unconditionally include alloca.h.
89672         * lib/makepath.c: Likewise.
89673         * lib/setenv.c: Likewise.
89674         * lib/userspec.c: Likewise.
89675
89676 2003-01-09  Karl Berry  <karl@gnu.org>
89677
89678         * MODULES.html.sh: include `dirname $0` in PATH, to find
89679         gnulib-tool.
89680
89681 2003-01-09  Bruno Haible  <bruno@clisp.org>
89682
89683         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89684         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89685
89686 2003-01-09  Bruno Haible  <bruno@clisp.org>
89687
89688         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89689
89690 2003-01-09  Bruno Haible  <bruno@clisp.org>
89691
89692         * lib/stdbool.h.in: New file.
89693
89694 2003-01-09  Bruno Haible  <bruno@clisp.org>
89695
89696         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89697         * MODULES.html.sh: Likewise.
89698
89699 2003-01-08  Jim Meyering  <jim@meyering.net>
89700
89701         * lib/full-write.c: Undefine and define-away `const' after inclusion
89702         of errno.h, not before.  Suggestion from Bruno Haible.
89703
89704 2003-01-08  Bruno Haible  <bruno@clisp.org>
89705
89706         * modules/full-read: Depend on full-write.
89707
89708 2003-01-08  Bruno Haible  <bruno@clisp.org>
89709
89710         * lib/safe-read.c: Include specification header first, to ensure its
89711         selfcontainedness.
89712         * lib/full-write.c: Likewise.
89713
89714 2003-01-07  Jim Meyering  <jim@meyering.net>
89715
89716         * lib/full-write.c: Rework so that it may serve to define full_read,
89717         too.
89718         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89719
89720 2003-01-07  Bruno Haible  <bruno@clisp.org>
89721
89722         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89723         <inttypes.h>.
89724         * lib/xstrtol.h: Likewise.
89725         * lib/xstrtoimax.c: Likewise.
89726         * lib/xstrtoumax.c: Likewise.
89727         * lib/human.h: Likewise.
89728
89729         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89730         on systems that have <inttypes.h> but not <stdint.h>.
89731
89732 2003-01-07  Bruno Haible  <bruno@clisp.org>
89733
89734         * MODULES.html.sh: Add copyright notice.
89735         (missed_files): Omit CVS directory entries.
89736         (func_module): Make it work with sed-3.02.
89737         * MODULES.txt: Remove file.
89738
89739 2003-01-06  Jim Meyering  <jim@meyering.net>
89740
89741         * lib/version-etc.c: Update year in translatable copyright string.
89742
89743 2003-01-03  Karl Berry  <karl@gnu.org>
89744
89745         * config/config.{guess,sub}: update from prep.
89746
89747 2003-01-02  Karl Berry  <karl@gnu.org>
89748
89749         * doc/COPYING.DOC: belatedly updated to 1.2.
89750
89751 2003-01-01  Karl Berry  <karl@gnu.org>
89752
89753         * gnulib-tool (func_verify_module): report module name $module in
89754         error message, not $1.
89755         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89756         be created, only if it doesn't exist.
89757         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89758
89759 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89760
89761         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89762
89763 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89764
89765         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89766         memcmp if strcoll doesn't work.
89767
89768 2002-12-31  Bruno Haible  <bruno@clisp.org>
89769
89770         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89771         nonempty.
89772
89773 2002-12-31  Bruno Haible  <bruno@clisp.org>
89774
89775         * lib/memcoll.c (STRCOLL): New macro.
89776         (memcoll): Use it.
89777
89778 2002-12-31  Bruno Haible  <bruno@clisp.org>
89779
89780         * lib/localcharset.h: New file.
89781         * lib/localcharset.c: Include it.
89782         * lib/unicodeio.c: Likewise.
89783
89784 2002-12-31  Bruno Haible  <bruno@clisp.org>
89785
89786         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89787         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89788
89789 2002-12-31  Bruno Haible  <bruno@clisp.org>
89790
89791         * lib/getline.h: Include <stddef.h>, for size_t.
89792
89793         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89794         * lib/unicodeio.c: Don't include <stddef.h>.
89795
89796 2002-12-31  Bruno Haible  <bruno@clisp.org>
89797
89798         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89799         HAVE_TM_ZONE.
89800
89801 2002-12-24  Karl Berry  <karl@gnu.org>
89802
89803         * config/config.guess: update from prep.
89804
89805 2002-12-24  Bruno Haible  <bruno@clisp.org>
89806
89807         General infrasructure.
89808         * m4/README: Rewritten.
89809         * m4/onceonly.m4: New file.
89810         * m4/onceonly_2_57.m4: New file.
89811
89812         Module atexit.
89813         * m4/atexit.m4: New file.
89814
89815         Module strtod.
89816         * m4/strtod.m4: New file.
89817
89818         Module strtol.
89819         * m4/strtol.m4: New file.
89820
89821         Module strtoul.
89822         * m4/strtoul.m4: New file.
89823
89824         Module memchr.
89825         * m4/memchr.m4: New file.
89826
89827         Module memcmp.
89828         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89829         (jm_FUNC_MEMCMP): Invoke it.
89830
89831         Module memcpy.
89832         * m4/memcpy.m4: New file.
89833
89834         Module memmove.
89835         * m4/memmove.m4: New file.
89836
89837         Module memset.
89838         * m4/memset.m4: New file.
89839
89840         Module strcspn.
89841         * m4/strcspn.m4: New file.
89842
89843         Module strpbrk.
89844         * m4/strpbrk.m4: New file.
89845
89846         Module strstr.
89847         * m4/strstr.m4: New file.
89848
89849         Module strerror.
89850         * m4/strerror.m4: New file.
89851
89852         Module mktime.
89853         * m4/mktime.m4: Renamed from jm-mktime.m4.
89854         (gl_PREREQ_MKTIME): New macro.
89855         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89856
89857         Module malloc.
89858         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89859         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89860         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89861
89862         Module realloc.
89863         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89864         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89865         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89866
89867         Module strftime.
89868         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89869         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89870         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89871         gl_TM_GMTOFF.
89872         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89873
89874         Module xalloc.
89875         * m4/xalloc.m4: New file.
89876
89877         Module alloca.
89878         * m4/alloca.m4: New file.
89879
89880         Module putenv.
89881         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89882         (jm_FUNC_PUTENV): Invoke it.
89883
89884         Module setenv.
89885         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89886         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89887         when invoked twice.
89888         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89889         gt_FUNC_SETENV.
89890
89891         Module memrchr.
89892         * m4/memrchr.m4: New file.
89893
89894         Module stpcpy.
89895         * m4/stpcpy.m4: New file.
89896
89897         Module strcase.
89898         * m4/strcase.m4: New file.
89899
89900         Module strdup.
89901         * m4/strdup.m4: New file.
89902
89903         Module strnlen.
89904         * m4/strnlen.m4: New file.
89905
89906         Module strndup.
89907         * m4/strndup.m4: New file.
89908
89909         Module xstrtod.
89910         * m4/xstrtod.m4: New file.
89911
89912         Module xstrtol.
89913         * m4/xstrtol.m4: New file.
89914
89915         Module getdate.
89916         * m4/getdate.m4: New file.
89917
89918         Module unlocked-io.
89919         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89920         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89921         * m4/jm-glibc-io.m4n: Remove file.
89922
89923         Module long-options.
89924         * m4/long-options.m4: New file.
89925
89926         Module md5.
89927         * m4/md5.m4: New file.
89928
89929         Module sha.
89930         * m4/sha.m4: New file.
89931
89932         Module getstr.
89933         * m4/getstr.m4: New file.
89934
89935         Module getline.
89936         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89937         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89938         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89939         simply getline. Infoke gl_PREREQ_GETLINE.
89940
89941         Module obstack.
89942         * m4/obstack.m4: New file.
89943
89944         Module hash.
89945         * m4/hash.m4: New file.
89946
89947         Module readtokens.
89948         * m4/readtokens.m4: New file.
89949
89950         Module strverscmp.
89951         * m4/strverscmp.m4: New file.
89952
89953         Module stdbool.
89954         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89955         OSF/1.
89956
89957         Module strtoll.
89958         * m4/strtoll.m4: New file.
89959
89960         Module strtoull.
89961         * m4/strtoull.m4: New file.
89962
89963         Module strtoimax.
89964         * m4/strtoimax.m4: New file.
89965
89966         Module strtoumax.
89967         * m4/strtoumax.m4: New file.
89968
89969         Module xstrtoimax.
89970         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89971         jm_AC_PREREQ_XSTRTOIMAX.
89972         Moved the strtol prerequisites to strtol.m4.
89973         Moved the strtoll prerequisites to strtoll.m4.
89974         Moved the strtoimax prerequisites to strtoimax.m4.
89975
89976         Module xstrtoumax.
89977         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89978         jm_AC_PREREQ_XSTRTOUMAX.
89979         Moved the strtoul prerequisites to strtoul.m4.
89980         Moved the strtoull prerequisites to strtoull.m4.
89981         Moved the strtoumax prerequisites to strtoumax.m4.
89982
89983         Module chown.
89984         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89985         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89986
89987         Module dup2.
89988         * m4/dup2.m4: New file.
89989
89990         Module ftruncate.
89991         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89992         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89993
89994         Module getgroups.
89995         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89996         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89997
89998         Module gettimeofday.
89999         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90000         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90001         gl_PREREQ_GETTIMEOFDAY.
90002
90003         Module mkdir.
90004         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90005         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90006
90007         Module mkstemp.
90008         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90009         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90010         jm_AC_TYPE_UINTMAX_T.
90011         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90012
90013         Module stat.
90014         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90015         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90016
90017         Module lstat.
90018         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90019         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90020
90021         Module timespec.
90022         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90023         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90024         * m4/st_mtim.m4: Indentation.
90025
90026         Module nanosleep.
90027         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90028         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90029         gl_PREREQ_NANOSLEEP.
90030
90031         Module regex.
90032         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90033         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90034         (gl_REGEX): New macro.
90035
90036         Module rename.
90037         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90038         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90039
90040         Module rmdir.
90041         * m4/rmdir.m4: New file.
90042
90043         Module utime.
90044         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90045         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90046         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90047
90048         Module dirname.
90049         * m4/dirname.m4: New file.
90050
90051         Module getopt.
90052         * m4/getopt.m4: New file.
90053
90054         Module unistd-safer.
90055         * m4/unistd-safer.m4: New file.
90056
90057         Module fnmatch.
90058         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90059         declaration.
90060         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90061         (gl_FUNC_FNMATCH_POSIX): New macro.
90062         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90063         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90064         simply fnmatch.
90065
90066         Module exclude.
90067         * m4/exclude.m4: New file.
90068
90069         Module human.
90070         * m4/human.m4: New file.
90071
90072         Module acl.
90073         * m4/acl.m4: Nop.
90074
90075         Module backupfile.
90076         * m4/backupfile.m4: New file.
90077         * m4/d-ino.m4: Indentation.
90078
90079         Module fsusage.
90080         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90081         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90082         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90083
90084         Module dirfd.
90085         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90086         requirements.
90087
90088         Module euidaccess.
90089         * m4/euidaccess.m4: New file.
90090
90091         Module file-type.
90092         * m4/file-type.m4: New file.
90093
90094         Module fileblocks.
90095         * m4/fileblocks.m4: New file.
90096
90097         Module filemode.
90098         * m4/filemode.m4: New file.
90099
90100         Module isdir.
90101         * m4/isdir.m4: New file.
90102
90103         Module lchown.
90104         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90105         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90106
90107         Module makepath.
90108         * m4/makepath.m4: New file.
90109
90110         Module modechange.
90111         * m4/modechange.m4: New file.
90112
90113         Module mountlist.
90114         * m4/mountlist.m4: New file.
90115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90116         Indentation.
90117
90118         Module path-concat.
90119         * m4/path-concat.m4: New file.
90120
90121         Module pathmax.
90122         * m4/pathmax.m4: New file.
90123
90124         Module same.
90125         * m4/same.m4: New file.
90126
90127         Module save-cwd.
90128         * m4/save-cwd.m4: New file.
90129
90130         Module savedir.
90131         * m4/savedir.m4: New file.
90132
90133         Module xgetcwd.
90134         * m4/xgetcwd.m4: New file.
90135         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90136
90137         Module xreadlink.
90138         * m4/xreadlink.m4: New file.
90139
90140         Module safe-read.
90141         * m4/safe-read.m4: New file.
90142
90143         Module safe-write.
90144         * m4/safe-write.m4: New file.
90145
90146         Module closeout.
90147         * m4/closeout.m4: New file.
90148
90149         Module stdio-safer.
90150         * m4/stdio-safer.m4: New file.
90151
90152         Module getpass.
90153         * m4/getpass.m4: New file.
90154
90155         Module getugroups.
90156         * m4/getugroups.m4: New file.
90157
90158         Module group-member.
90159         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90160         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90161
90162         Module idcache.
90163         * m4/idcache.m4: New file.
90164
90165         Module userspec.
90166         * m4/userspec.m4: New file.
90167
90168         Module gettime.
90169         * m4/clock_time.m4: New file.
90170         * m4/gettime.m4: New file.
90171
90172         Module settime.
90173         * m4/settime.m4: New file.
90174
90175         Module posixtm.
90176         * m4/posixtm.m4: New file.
90177
90178         Module gethostname.
90179         * m4/gethostname.m4: New file.
90180
90181         Module canon-host.
90182         * m4/canon-host.m4: New file.
90183
90184         Module gettext.
90185         * m4/codeset.m4: New file, from gettext-0.11.5.
90186         * m4/gettext.m4: New file, from gettext-0.11.5.
90187         * m4/glibc21.m4: New file, from gettext-0.11.5.
90188         * m4/iconv.m4: New file, from gettext-0.11.5.
90189         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90190         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90191         * m4/inttypes.m4: New file, from gettext-0.11.5.
90192         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90193         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90194         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90195         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90196         * m4/lib-link.m4: New file, from gettext-0.11.5.
90197         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90198         * m4/progtest.m4: New file, from gettext-0.11.5.
90199         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90200         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90201         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90202
90203         Module localcharset.
90204         * m4/localcharset.m4: New file.
90205
90206         Module hard-locale.
90207         * m4/hard-locale.m4: New file.
90208
90209         Module mbswidth.
90210         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90211         onceonly macros.
90212         * m4/mbrtowc.m4: Add comment.
90213
90214         Module memcasecmp.
90215         * m4/memcasecmp.m4: New file.
90216
90217         Module memcoll.
90218         * m4/memcoll.m4: New file.
90219
90220         Module unicodeio.
90221         * m4/unicodeio.m4: New file.
90222
90223         Module rpmatch.
90224         * m4/rpmatch.m4: New file.
90225
90226         Module yesno.
90227         * m4/yesno.m4: New file.
90228
90229         Module exitfail.
90230         * m4/exitfail.m4: New file.
90231
90232         Module c-stack.
90233         * m4/c-stack.m4 (gl_C_STACK): New macro.
90234         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90235
90236         Module error.
90237         * m4/error.m4 (gl_ERROR): New macro.
90238         (jm_PREREQ_ERROR): Use onceonly macros.
90239
90240         Module fatal.
90241         * m4/fatal.m4: New file.
90242
90243         Module getloadavg.
90244         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90245         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90246
90247         Module getpagesize.
90248         * m4/getpagesize.m4: New file.
90249
90250         Module getusershell.
90251         * m4/getusershell.m4: New file.
90252
90253         Module physmem.
90254         * m4/physmem.m4: New file.
90255
90256         Module posixver.
90257         * m4/posixver.m4: New file.
90258
90259         Module quotearg.
90260         * m4/quotearg.m4: New file.
90261
90262         Module quote.
90263         * m4/quote.m4: New file.
90264
90265         Module readutmp.
90266         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90267
90268         Module sig2str.
90269         * m4/sig2str.m4: New file.
90270
90271         Other.
90272         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90273         ulonglong.m4.
90274         * m4/intmax_t.m4: New file.
90275         * m4/d-type.m4: Indentation.
90276         * m4/jm-macros.m4: Update.
90277         * m4/prereq.m4 (jm_PREREQ): Update.
90278         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90279         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90280         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90281         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90282         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90283         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90284         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90285         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90286         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90287         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90288         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90289         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90290         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90291         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90292         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90293         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90294         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90295         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90296         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90297
90298 2002-12-24  Bruno Haible  <bruno@clisp.org>
90299
90300         * MODULES.txt: Update according to m4/ changes.
90301
90302         Module gettext.
90303         * config.rpath: New file, from gettext-0.11.5.
90304
90305         * modules/*: New module descriptions.
90306         * gnulib-tool: New file.
90307         * MODULES.html.sh: New file.
90308
90309 2002-12-21  Karl Berry  <karl@gnu.org>
90310
90311         * doc/fdl.texi: update to version 1.2.
90312
90313 2002-12-19  Karl Berry  <karl@gnu.org>
90314
90315         * config/config.guess: update from prep.
90316
90317 2002-12-18  Bruno Haible  <bruno@clisp.org>
90318
90319         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90320         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90321
90322 2002-12-17  Bruno Haible  <bruno@clisp.org>
90323
90324         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90325         stdlib.h, string.h.
90326
90327 2002-12-17  Bruno Haible  <bruno@clisp.org>
90328
90329         * lib/canon-host.c (strdup): Remove unused declaration.
90330
90331         * lib/fsusage.c: Include full_read.h.
90332         (get_fs_usage): Use full_read instead of safe_read.
90333
90334         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90335
90336 2002-12-12  Karl Berry  <karl@gnu.org>
90337
90338         * config/config.guess: update from prep.
90339
90340 2002-12-11  Bruno Haible  <bruno@clisp.org>
90341
90342         * m4/setenv.m4: New file, from gettext-0.11.5.
90343
90344 2002-12-11  Bruno Haible  <bruno@clisp.org>
90345
90346         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90347         not unsetenv().
90348         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90349         modifications:
90350
90351         2002-12-11  Bruno Haible  <bruno@clisp.org>
90352
90353                 * setenv.c (alloca): Fall back to malloc.
90354                 (freea): New macro.
90355                 (setenv): Use freea() to free memory allocated with alloca().
90356
90357         2002-11-13  Bruno Haible  <bruno@clisp.org>
90358
90359                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90360                 function declarations.
90361                 * unsetenv.c (unsetenv): Likewise.
90362
90363         2002-03-04  Bruno Haible  <bruno@clisp.org>
90364
90365                 Portability to AIX 4.3.3.
90366                 * unsetenv.c: New file, extracted from setenv.c.
90367                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90368
90369         2001-12-20  Bruno Haible  <bruno@clisp.org>
90370
90371                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90372                 use malloc instead. For SunOS 4.
90373
90374         2001-12-11  Bruno Haible  <bruno@clisp.org>
90375
90376                 * setenv.c: Declare alloca.
90377                 (compar_fn_t): New typedef.
90378                 (KNOWN_VALUE, STORE_VALUE): Use it.
90379
90380         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90381         setenv.h.
90382
90383 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90384
90385         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90386         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90387         Choose values that are less likely to collide with system fnmatch
90388         options.
90389         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90390         defined (e.g., a pure POSIX system).
90391         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90392         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90393
90394 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90395
90396         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90397         a pain in practice to deal with generated m4 files.  This change
90398         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90399
90400         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90401         and jm-glibc-io.m4, as they are no longer a special case.
90402         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90403         kludge and the auto-generation stuff.  Check only whether the
90404         functions are declared, not whether they exist, since older hosts
90405         that don't declare the functions can't use the optimization anyway.
90406
90407 2002-12-06  Jim Meyering  <jim@meyering.net>
90408
90409         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90410
90411         Merge in changes from libc's misc/error.c, in preparation
90412         for the merge of gnulib's changes back into libc.
90413
90414         * lib/error.c (_): Define only if not already defined.
90415         Move definition to follow all #include directives.
90416         Include unlocked-io.h only if !_LIBC.
90417         [_LIBC]: Include <libio/libioP.h>.
90418         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90419         (fflush): Tweak definition to use INTUSE.
90420         (putc): Define.
90421
90422 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90423
90424         * lib/alloca.c [defined emacs]: Include "lisp.h".
90425         (xalloc_die) [defined emacs]: New macro.
90426         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90427         [! defined emacs]: Include <xalloc.h>.
90428         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90429         (pointer): Typedef to POINTER_TYPE *.
90430         (malloc): Remove decl; we now always use xmalloc.
90431         (alloca): Use old-style definition, since Emacs needs this.
90432         Check for arithmetic overflow when computing combined size.
90433
90434 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90435
90436         Do not generate unlocked-io.h automatically, since it's easier to
90437         maintain it by hand.
90438
90439         * lib/unlocked-io.h: New file, from GNU diffutils,
90440         but with proper copyright notice and attribution.
90441         * lib/gen-uio: Remove.
90442         * lib/Makefile.am: Add copyright notice.
90443         (libfetish_a_SOURCES): Add unlocked-io.h.
90444         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90445         (DISTCLEANFILES, io_functions): Remove macros.
90446         (EXTRA_DIST): Remove gen_uio.
90447         (unlocked-io.h): Remove rule.
90448
90449 2002-12-04  Jim Meyering  <jim@meyering.net>
90450
90451         Reflect the fact that stat.c and lstat.c are no longer generated.
90452         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90453         (DISTCLEANFILES): Likewise.
90454         (EXTRA_DIST): Likewise.
90455         (all_local): Don't depend on stat.c or lstat.c.
90456         (stat.c, lstat.c): Remove rules.
90457         (EXTRA_DIST): Remove xstat.in.
90458
90459         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90460         * lib/stat.c: New file.  Contents mostly from xstat.in.
90461         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90462         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90463
90464         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90465         too.
90466         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90467
90468 2002-12-03  Jim Meyering  <jim@meyering.net>
90469
90470         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90471         but not semantics, to minimize the differences between these two files.
90472         (safe_read): Change comment to mention SAFE_READ_ERROR.
90473
90474         * lib/safe-read.c (IS_EINTR): Define.
90475         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90476
90477 2002-12-02  Jim Meyering  <jim@meyering.net>
90478
90479         * lib/safe-read.c (EINTR): Define.
90480         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90481         (INT_MAX): Provide fallback.
90482         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90483
90484         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90485
90486 2002-12-02  Bruno Haible  <bruno@clisp.org>
90487
90488         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90489         Define, taken from safe-read.c.
90490         (INT_MAX): Provide fallback.
90491         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90492         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90493
90494         * lib/safe-read.c (EINTR): Remove definition.
90495         (safe_read): Don't use EINTR if it is absent.
90496
90497 2002-12-01  Jim Meyering  <jim@meyering.net>
90498
90499         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90500         zero.
90501         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90502
90503 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90504
90505         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90506         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90507         with `if (! (value < limit)) abort ();', for readability.
90508
90509 2002-11-26  Karl Berry  <karl@gnu.org>
90510
90511         * lib/strdup.c: copy from libc again, with jim's ok.
90512         * lib/.cppi-disable: re-add strdup.c
90513
90514 2002-11-25  Karl Berry  <karl@gnu.org>
90515
90516         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90517         instead of "strtol.c".
90518
90519 2002-11-25  Karl Berry  <karl@gnu.org>
90520
90521         * config/install-sh: update from automake for variable quoting, $0 in
90522         error msgs, etc.
90523
90524         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90525         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90526         entry.
90527
90528 2002-11-25  Jim Meyering  <jim@meyering.net>
90529
90530         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90531
90532 2002-11-24  Karl Berry  <karl@gnu.org>
90533
90534         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90535         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90536
90537 2002-11-24  Jim Meyering  <jim@meyering.net>
90538
90539         Update from coreutils:
90540
90541         * lib/mktime.c: Merge in changes from libc.
90542
90543         Avoid a link-time failure on some Linux systems.
90544         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90545         (otherwise).
90546         (__mon_yday): Declare with the STATIC attribute.
90547         (__mktime_internal): Likewise.
90548         Based on a report from Greg Schafer.
90549
90550 2002-11-23  Jim Meyering  <jim@meyering.net>
90551
90552         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90553         Use `unsigned', not `int', as type of index.
90554
90555         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90556
90557         * lib/fsusage.c: Remove unneeded parentheses around operands of
90558         `defined'.
90559
90560 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90561
90562         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90563         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90564         so that we can be included first.
90565         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90566         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90567         No need to include stddef.h or sys/types.h any more.
90568         Surround local include files with "", not "<>".
90569         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90570         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90571         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90572         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90573         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90574         (ISPRINT): Remove; no longer needed now that we assume C89.
90575
90576         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90577         Preserve errno.
90578
90579         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90580         quotearg_char): Use SIZE_MAX rather than
90581         (size_t) -1 when we are talking about "infinity".
90582
90583         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90584
90585 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90586
90587         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90588         hint that one should use `if (! x) abort ();' rather than `assert
90589         (x);', and anyway it's one less thing to worry about configuring.
90590         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90591         hash_rehash, hash_insert): Use abort rather than assert.
90592
90593 2002-11-22  Bruno Haible  <bruno@clisp.org>
90594
90595         * lib/safe-read.h: Assume C89. Add comments.
90596         (safe_read): Change return type to size_t.
90597         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90598         byte counts > SSIZE_MAX correctly.
90599         * lib/safe-write.h: New file.
90600         * lib/safe-write.c: New file.
90601         * lib/full-read.h: New file.
90602         * lib/full-read.c: New file.
90603         * lib/full-write.h: Assume C89. Add comments.
90604         * lib/full-write.c: Include safe-write.h.
90605         (full_write): Rewritten to use safe_write.
90606         Suggested by Jim Meyering and Paul Eggert.
90607
90608 2002-11-21  Jim Meyering  <jim@meyering.net>
90609
90610         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90611
90612         Merge in changes from the coreutils.
90613
90614         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90615         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90616         <stdint.h>.
90617         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90618         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90619         int.  Work more efficiently if X is the same width as uintmax_t.
90620         Do not compare X to -1, to avoid bogus compiler warning.
90621         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90622         Don't assume that f_frsize and f_bsize are the same type.
90623
90624         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90625         warning on FreeBSD.
90626
90627         * lib/makepath.c (make_path): Restore umask *before* creating the final
90628         component.
90629         (make_path): Minor reformatting.
90630
90631         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90632         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90633         HAVE_MALLOC/HAVE_REALLOC.
90634
90635         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90636         dummy ones.  At least on GNU/Linux systems, `auto' means something
90637         else.
90638         From Michael Stone.
90639
90640 2002-11-21  Bruno Haible  <bruno@clisp.org>
90641
90642         Remove case insensitive option matching.
90643         * lib/argmatch.h (argcasematch): Remove declaration.
90644         (ARGCASEMATCH): Remove macro.
90645         (__xargmatch_internal): Remove case_sensitive argument.
90646         (XARGMATCH): Update.
90647         (XARGCASEMATCH): Remove macro.
90648         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90649         case_sensitive argument.
90650         (argcasematch): Remove function.
90651         (__xargmatch_internal): Remove case_sensitive argument.
90652         (main): Use XARGMATCH instead of XARGCASEMATCH.
90653
90654         * lib/xmalloc.c: Change compile-time error message. Add comment about
90655         required autoconf version.
90656
90657 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90658
90659         Merge argmatch cleanups from Bison.  Assume C89.
90660
90661         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90662         Include stdlib.h, for EXIT_FAILURE.
90663         Always include <string.h>, since we assume C89.
90664         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90665         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90666         Include <stddef.h> instead, since it's all we need for size_t.
90667         (PARAMS): Remove.  All uses removed.
90668         (ARRAY_CARDINALITY): Do not bother to #undef.
90669         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90670         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90671         Remove unnecessary parentheses.
90672         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90673         Insert necessary parentheses.
90674         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90675         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90676
90677 2002-11-19  Bruno Haible  <bruno@clisp.org>
90678
90679         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90680         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90681
90682         * lib/mbswidth.h (PARAMS): Remove macro.
90683         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90684         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90685
90686         * lib/gcd.h (PARAMS): Remove macro.
90687         (gcd): Use ANSI C function declarations.
90688         * lib/gcd.c (gcd): Likewise.
90689
90690 2002-11-15  Bruno Haible  <bruno@clisp.org>
90691
90692         * lib/strcspn.c: Include <stddef.h>.
90693         (strcspn): Use ANSI C function declaration. Change return type to
90694         size_t. Use NULL.
90695         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90696         (strpbrk): Use NULL.
90697         * lib/strpbrk.h (PARAMS): Remove macro.
90698         (strpbrk): Use ANSI C function declaration.
90699         * lib/strstr.c: Don't include <sys/types.h>.
90700         * lib/strstr.h (PARAMS): Remove macro.
90701         (strstr): Use ANSI C function declarations.
90702
90703 2002-11-14  Karl Berry  <karl@gnu.org>
90704
90705         * config/mkinstalldirs: `do' on separate line, instead of
90706         `for var; do'.
90707
90708 2002-11-06  Bruno Haible  <bruno@clisp.org>
90709
90710         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90711         * lib/gcd.c (gcd): Likewise.
90712
90713 2002-11-05  Bruno Haible  <bruno@clisp.org>
90714
90715         * lib/gcd.h: New file, from gettext-0.11.5.
90716         * lib/gcd.c: New file, from gettext-0.11.5.
90717
90718 2002-11-05  Bruno Haible  <bruno@clisp.org>
90719
90720         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90721         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90722         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90723         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90724
90725         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90726         <libintl.h>.
90727         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90728         <libintl.h>.
90729
90730         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90731         * lib/human.c: Include gettext.h instead of <libintl.h>.
90732         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90733         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90734         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90735         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90736         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90737         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90738         (textdomain): Remove definition.
90739         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90740
90741         * lib/long-options.c: Remove include of <libintl.h> and definition of
90742         _.
90743         * lib/same.c: Remove include of <libintl.h> and definition of _.
90744
90745 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90746
90747         * lib/config.charset: A few additions for Solaris.
90748
90749 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90750
90751         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90752         * lib/localcharset.c (locale_charset): Declare as extern "C".
90753
90754 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90755
90756         * lib/config.charset: msdos in uk_UA uses CP1125.
90757
90758 2002-11-04  Bruno Haible  <bruno@clisp.org>
90759
90760         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90761         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90762         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90763         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90764         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90765
90766 2002-11-04  Bruno Haible  <bruno@clisp.org>
90767
90768         * lib/localcharset.c (locale_charset): Don't return an empty string.
90769
90770 2002-11-04  Bruno Haible  <bruno@clisp.org>
90771
90772         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90773         aliases.
90774
90775 2002-11-04  Bruno Haible  <bruno@clisp.org>
90776
90777         * lib/config.charset: Update for newest glibc. Add canonical names
90778         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90779
90780 2002-11-04  Bruno Haible  <bruno@clisp.org>
90781
90782         * lib/config.charset: Add support for NetBSD.
90783
90784 2002-11-04  Bruno Haible  <bruno@clisp.org>
90785
90786         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90787
90788 2002-11-01  Bruno Haible  <bruno@clisp.org>
90789
90790         * configure.in: Add AC_CONFIG_AUX_DIR call.
90791         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90792         test/Makefile.
90793         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90794
90795 2002-09-28  Karl Berry  <karl@gnu.org>
90796
90797         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90798         installed automake until the next release, since changes have been
90799         made.
90800
90801 2002-09-25  Karl Berry  <karl@gnu.org>
90802
90803         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90804         * lib/getopt*: copy from libc/posix.
90805         * lib/gettext.h: copy from gettext.
90806         * lib/.cppi-disable: add strdup.c, gettext.h.
90807
90808 2002-09-25  Karl Berry  <karl@gnu.org>
90809
90810         * config/srclist.txt: enable gettext.h check.
90811         * config/config.{guess,sub}: update from prep.
90812         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90813                 from automake 1.6.3.
90814         See srclist*.
90815
90816 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90817
90818         * regex.c (PATFETCH): Remove the translating fetch.
90819         (PATFETCH_RAW): Rename to PATFETCH.
90820         (set_image_of_range): New fun.
90821         (SET_RANGE_TABLE_WORK_AREA): Use it.
90822         (regex_compile): Don't translate the pattern chars so eagerly.
90823         Only do it when inserting an `exactn' bytecode or when handling
90824         a char-range.
90825         (mutually_exclusive_p): Avoid empty statement.
90826
90827 2002-07-06  Jim Meyering  <meyering@lucent.com>
90828
90829         * m4/README: Don't mention Makefile.am.in.
90830         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90831
90832 2002-07-01  Jim Meyering  <meyering@lucent.com>
90833
90834         * lib/c-stack.c: Include sys/time.h.
90835         From Volker Borchert.
90836
90837 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90838
90839         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90840
90841 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90842
90843         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90844         New macro.  Use it uniformly instead of
90845         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90846         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90847         reported by Vin Shelton.
90848
90849 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90850
90851         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90852         Do not assume SA_SIGINFO behavior.
90853         Bug reported by Jim Meyering on NetBSD 1.5.2.
90854
90855 2002-06-22  Jim Meyering  <meyering@lucent.com>
90856
90857         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90858         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90859
90860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90861         now that configure.ac uses AC_GNU_SOURCE.
90862         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90863         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90864
90865         Update to latest tools.  Suggestions from Paul Eggert.
90866         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90867         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90868         * m4/fnmatch.m4: Likewise.
90869         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90870         to AC_HEADER_STDBOOL
90871
90872 2002-06-22  Jim Meyering  <meyering@lucent.com>
90873
90874         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90875         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90876
90877 2002-06-22  Jim Meyering  <meyering@lucent.com>
90878
90879         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90880
90881         * lib/exitfail.c, exitfail.h: Likewise.
90882         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90883
90884         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90885         of fnmatch.h.
90886         (EXTRA_DIST): Add fnmatch_loop.c.
90887         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90888
90889         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90890         * lib/fnmatch.c: Update from diffutils-2.8.2.
90891         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90892         * lib/fnmatch.h: Remove file.
90893
90894 2002-06-21  Jim Meyering  <meyering@lucent.com>
90895
90896         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90897         * m4/mbrtowc.m4: Likewise.
90898
90899         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90900         * m4/mbswidth.m4: Reflect name change:
90901         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90902         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90903
90904         * m4/lib-link.m4: Update from gettext-0.11.2.
90905         * m4/gettext.m4: Likewise.
90906
90907         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90908         From Alfred M. Szmidt.
90909
90910 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90911
90912         * lib/file-type.h: Report an error if neither S_ISREG nor
90913         S_IFREG is defined, instead of using a test specific to glibc
90914         2.2.  This should be safe, since POSIX requires S_ISREG and
90915         Unix Version 7 had S_IFREG.  We don't need to check for
90916         <sys/types.h> since we don't use any symbols that it defines.
90917
90918 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90919
90920         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90921         $@-t, so that each temporary file name is unique and valid in the first
90922         8 characters, for operation under DOS.
90923
90924 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90925
90926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90927
90928 2002-06-15  Jim Meyering  <meyering@lucent.com>
90929
90930         Work even with DJGPP 2.03, which lacks support for symlinks.
90931         From Richard Dawe.
90932         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90933         is defined.
90934         * lib/lchown.c (S_ISLNK): Likewise.
90935
90936 2002-06-15  Jim Meyering  <meyering@lucent.com>
90937
90938         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90939         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90940         have been included before this file.
90941
90942 2002-06-14  Jim Meyering  <meyering@lucent.com>
90943
90944         * lib/file-type.h: Use the version from diffutils-2.8.2.
90945         * lib/file-type.c: Likewise.
90946
90947 2002-06-07  Jim Meyering  <meyering@lucent.com>
90948
90949         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90950         They're needed at least for NetBSD 1.5.2.
90951         ($statxfs_includes): Include those same headers.
90952         ($statxfs_includes): Include sys/vfs.h if available.
90953         ($statxfs_includes): Likewise for sys/statvfs.h.
90954         Check for the following members in both structs statfs and statvfs:
90955         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90956
90957 2002-06-01  Jim Meyering  <meyering@lucent.com>
90958
90959         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90960         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90961
90962 2002-05-28  Jim Meyering  <meyering@lucent.com>
90963
90964         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90965         Reported by Volker Borchert.
90966
90967 2002-05-27  Jim Meyering  <meyering@lucent.com>
90968
90969         Fix a problem seen only on nonconforming systems whereby ls.c's
90970         use of localtime, and then of gettimeofday would cause trouble:
90971         the localtime call used to initialize rpl_gettimeofday's save
90972         mechanism would clobber ls's current local time information so
90973         that in any long listing the first file would always be listed
90974         with date 1970-01-01.  Analysis by Volker Borchert.
90975
90976         * lib/gettimeofday.c (localtime): Undefine.
90977         (rpl_localtime): New function.
90978
90979 2002-05-27  Jim Meyering  <meyering@lucent.com>
90980
90981         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90982         localtime.
90983
90984         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90985         use the replacement function; it wouldn't resolve at link time.
90986         Reported by Volker Borchert.
90987
90988 2002-05-22  Jim Meyering  <meyering@lucent.com>
90989
90990         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90991         file-type.h.
90992         * lib/file-type.h: New file.
90993         * lib/file-type.c (file_type): New file/function.  Extracted from
90994         diffutils.
90995
90996 2002-04-30  Jim Meyering  <meyering@lucent.com>
90997
90998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90999
91000 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91001
91002         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91003
91004 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91005
91006         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91007         Do not check for alloca.h (no longer used) or stdbool.h (was never
91008         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91009
91010 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91011
91012         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91013
91014 2002-04-29  Jim Meyering  <meyering@lucent.com>
91015
91016         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91017         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91018         Use AC_FUNC_STRNLEN here instead.
91019
91020         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91021         With autoconf-2.53a, it's part of AC_PROG_CC.
91022
91023 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91024
91025         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91026         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91027
91028 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91029
91030         * lib/sig2str.h, lib/sig2str.c: New files.
91031         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91032
91033 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91034
91035         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91036         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91037         of 127, since 64 is the largest conceivable number for ancient
91038         nonstandard hosts.
91039         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91040
91041 2002-04-28  Jim Meyering  <meyering@lucent.com>
91042
91043         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91044
91045 2002-04-24  Jim Meyering  <meyering@lucent.com>
91046
91047         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91048         (jm_PREREQ): Use it.
91049
91050         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91051         mach/mach.h fcntl.h.
91052         Check for this function: setlocale.
91053
91054 2002-04-24  Jim Meyering  <meyering@lucent.com>
91055
91056         * lib/gettext.h: New file, from Gettext.
91057         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91058         (libfetish_a_SOURCES): Add gettext.h.
91059
91060 2002-04-16  Jim Meyering  <meyering@lucent.com>
91061
91062         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91063         ut_pid, ut_id, ut_exit.
91064
91065 2002-04-16  Jim Meyering  <meyering@lucent.com>
91066
91067         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91068         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91069         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91070
91071 2002-04-12  Jim Meyering  <meyering@lucent.com>
91072
91073         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91074         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91075         existence of the getmntinfo function.  Needed for Darwin 5.3.
91076
91077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91078         This is necessary at least on Darwin 5.3.
91079
91080         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91081         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91082         strnlen.o in the library, and that makes some versions of ranlib
91083         object.
91084
91085 2002-04-12  Jim Meyering  <meyering@lucent.com>
91086
91087         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91088
91089 2002-04-09  Jim Meyering  <meyering@lucent.com>
91090
91091         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91092         to be more precise.  Rather than saying we're checking whether the
91093         function `works', say what we're testing.
91094         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91095         Reported by Bruno Haible.
91096
91097 2002-03-10  Jim Meyering  <meyering@lucent.com>
91098
91099         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91100         Suggestion from Santiago Vila.
91101
91102 2002-03-08  Jim Meyering  <meyering@lucent.com>
91103
91104         * lib/rename.c: Mention that this wrapper is needed also on
91105         mips-dec-ultrix4.4 systems.
91106
91107 2002-03-02  Jim Meyering  <meyering@lucent.com>
91108
91109         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91110         not HAVE_CLOCK_SETTIME.
91111
91112 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91113
91114         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91115         Check for clock_settime.
91116
91117 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91118
91119         * lib/nanosleep.h: Rename to....
91120         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91121
91122         * lib/gettime.c: New file.
91123         * lib/settime.c: New file.
91124         * lib/stime.c: Remove.
91125
91126         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91127         timespec.h.  Remove nanosleep.h.
91128
91129 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91130
91131         * m4/acl.m4: New file.
91132         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91133         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91134
91135 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91136
91137         * lib/acl.c, lib/acl.h: New files.
91138         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91139
91140 2002-02-24  Jim Meyering  <meyering@lucent.com>
91141
91142         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91143         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91144         cause trouble.  Reported by Nelson Beebe.
91145
91146 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91147
91148         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91149         compilers that don't know that xalloc_die never returns.
91150
91151 2002-02-20  Jim Meyering  <meyering@lucent.com>
91152
91153         * lib/getdate.c: Regenerate using bison-1.33.
91154
91155 2002-02-17  Jim Meyering  <meyering@lucent.com>
91156
91157         * config/config.guess (main): Don't use `head -1'; it's no longer
91158         portable. Use `sed 1q' instead.
91159
91160 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91161
91162         * m4/codeset.m4: Upgrade to gettext-0.11.
91163         * m4/gettext.m4: Upgrade to gettext-0.11.
91164         * m4/glibc21.m4: Upgrade to gettext-0.11.
91165         * m4/iconv.m4: Upgrade to gettext-0.11.
91166         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91167         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91168         * m4/lib-ld.m4: New file, from gettext-0.11.
91169         * m4/lib-link.m4: New file, from gettext-0.11.
91170         * m4/lib-prefix.m4: New file, from gettext-0.11.
91171         * m4/progtest.m4: Upgrade to gettext-0.11.
91172
91173 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91174
91175         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91176         (jm_PREREQ): Use it.
91177
91178 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91179
91180         * lib/posixver.c, lib/posixver.h: New files.
91181         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91182
91183 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91184             Bruno Haible  <bruno@clisp.org>
91185
91186         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91187         (fwrite_success_callback): New declaration.
91188         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91189         print_unicode_char. Call failure callback instead of error.
91190         (fwrite_success_callback): New function.
91191         (exit_failure_callback): New function.
91192         (fallback_failure_callback): New function.
91193         (print_unicode_char): Call unicode_to_mb.
91194
91195 2002-01-26  Jim Meyering  <meyering@lucent.com>
91196
91197         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91198         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91199
91200 2002-01-26  Jim Meyering  <meyering@lucent.com>
91201
91202         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91203
91204 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91205
91206         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91207
91208 2002-01-22  Jim Meyering  <meyering@lucent.com>
91209
91210         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91211         Otherwise, some versions of automake would omit the rule that makes
91212         Makefile from Makefile.in.
91213
91214 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91215
91216         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91217         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91218         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91219         (memcoll): Set errno to zero if there is no error.
91220
91221         * lib/quotearg.c (quotearg_buffer_restyled):
91222         Fix bug with quoting buffers containing NUL when backslashing escapes.
91223         This bug was exposed by the other changes in this patch.
91224         (quotearg_n_options): New arg ARGSIZE.
91225         All callers changed.
91226         (quoting_options_from_style): New function.
91227         (quotearg_n_style): Use it.
91228         (quotearg_n_style_mem): New function.
91229
91230         * lib/quotearg.h (quotearg_n_style_mem): New function.
91231
91232 2002-01-19  Jim Meyering  <meyering@lucent.com>
91233
91234         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91235         Remove useless quotes: DF_PROG="df".
91236         * m4/strnlen.m4: New file.
91237
91238 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91239
91240         * lib/backupfile.c (ISDIGIT): Comment fix.
91241         * lib/getdate.y (ISDIGIT): Likewise.
91242         * lib/posixtm.c (ISDIGIT, year): Likewise.
91243         * lib/strverscmp.c (ISDIGIT): Likewise.
91244         * lib/userspec.c (ISDIGIT): Likewise.
91245
91246 2002-01-16  Jim Meyering  <meyering@lucent.com>
91247
91248         * lib/getdate.y: Add three semicolons, each just before a closing
91249         brace. Bison (as of version 1.31) no longer papers over that mistake.
91250
91251 2002-01-05  Jim Meyering  <meyering@lucent.com>
91252
91253         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91254
91255 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91256
91257         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91258         not silently exit merely because the output buffer happens to
91259         have nothing pending.
91260
91261 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91262
91263         See the big note in ../ChangeLog.
91264         * lib/human.c (suffixes): Prefer K to k for 1024.
91265         (generate_suffix_backwards): New function.
91266         (human_readable_inexact): Use it.
91267         * lib/xstrtol.c (__xstrtol): If there is no number but there
91268         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91269         Accept 'K' as well as 'k'.
91270
91271 2001-12-15  Jim Meyering  <meyering@lucent.com>
91272
91273         * lib/regex.h (__restrict_arr): Update from libc.
91274
91275         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91276         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91277         (STREQ): Define.
91278
91279 2001-12-14  Jim Meyering  <meyering@lucent.com>
91280
91281         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91282         Suggestion from Bruno Haible.
91283
91284 2001-12-10  Jim Meyering  <meyering@lucent.com>
91285
91286         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91287         xrealloc, Instead, include "xalloc.h".
91288         (initbuffer): Don't cast xmalloc return value to char*.
91289         (readline): Reword comment.
91290         Don't cast xrealloc return value to char*
91291         Return NULL, not 0.
91292
91293 2001-12-09  Jim Meyering  <meyering@lucent.com>
91294
91295         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91296         about `signed and unsigned type in conditional expression'.
91297         * lib/posixtm.c (posix_time_parse): Likewise.
91298
91299         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91300
91301         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91302         to avoid a pedantic warning.
91303
91304         * lib/getstr.c: Don't include assert.h.
91305         (getstr): Remove warning-evoking assertions.
91306         Return -1 if offset parameter is out of bounds.
91307         Change the type of a local from int to size_t.
91308
91309         * lib/strftime.c (my_strftime_localtime_r): Include this function
91310         definition in the `#if ! HAVE_TM_GMTOFF' block.
91311
91312         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91313         Include xalloc.h instead.
91314
91315 2001-12-02  Jim Meyering  <meyering@lucent.com>
91316
91317         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91318         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91319         included.
91320
91321         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91322         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91323
91324 2001-11-30  Akim Demaille  <akim@epita.fr>
91325
91326         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91327         before being defined.
91328
91329 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91330
91331         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91332         First arg is int, not unsigned.
91333         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91334         (SIZE_MAX, UINT_MAX): New macros.
91335         (quotearg_n_options): Abort if N is negative.
91336         Avoid overflow check on hosts where size_t is 64 bits and int
91337         is 32 bits, as overflow is impossible there.
91338         Fix off-by-one typo that caused unnecessary reallocation.
91339
91340 2001-11-27  Jim Meyering  <meyering@lucent.com>
91341
91342         * lib/tempname.c: Merge with version from libc.
91343         * lib/regex.c: Likewise.
91344
91345         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91346         systems for which STDC_HEADERS is 0, it was not included, resulting in
91347         a warning about an integer-to-pointer conversion problem with getenv.
91348         Reported by Volker Borchert.
91349
91350 2001-11-26  Jim Meyering  <meyering@lucent.com>
91351
91352         * lib/gtod.h: Remove file.
91353         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91354         * lib/gettimeofday.c: Don't include gtod.h.
91355         (GTOD_init): Remove function.
91356         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91357         Suggestion from Volker Borchert.
91358
91359 2001-11-23  Jim Meyering  <meyering@lucent.com>
91360
91361         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91362         it.
91363         * lib/hash.c (struct hash_table): Define it here instead.
91364
91365 2001-11-22  Jim Meyering  <meyering@lucent.com>
91366
91367         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91368
91369 2001-11-20  Jim Meyering  <meyering@lucent.com>
91370
91371         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91372         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91373
91374 2001-11-19  Jim Meyering  <meyering@lucent.com>
91375
91376         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91377         directory.  Use "conftestXXXXXX" as the template.
91378         Suggestion from Paul Eggert.
91379
91380         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91381         immediately, so the test doesn't mistakenly hit the max-open-files
91382         limit.
91383
91384 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91385
91386         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91387         (TEMPORARIES): New macro.
91388         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91389         removes an artificial limitation (e.g. HP-UX 10.20, where
91390         TMP_MAX is 17576).
91391
91392 2001-11-18  Jim Meyering  <meyering@lucent.com>
91393
91394         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91395
91396 2001-11-18  Jim Meyering  <meyering@lucent.com>
91397
91398         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91399         on SunOS 4.
91400
91401         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91402         files will be created before anything else.
91403
91404 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91405
91406         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91407         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91408
91409 2001-11-17  Jim Meyering  <meyering@lucent.com>
91410
91411         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91412         Prompted by a report from Bob Proulx.
91413
91414         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91415         Instead, require UTILS_FUNC_MKSTEMP.
91416
91417 2001-11-17  Jim Meyering  <meyering@lucent.com>
91418
91419         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91420         Now, that's done as part of AC_FUNC_STRTOD.
91421
91422 2001-11-17  Jim Meyering  <meyering@lucent.com>
91423
91424         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91425         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91426         rather than group writable.  Patch by Juan F. Codagnone.
91427
91428         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91429         xrealloc, Instead, include "xalloc.h".
91430
91431         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91432         Remove explicit declarations of xmalloc, xrealloc,
91433         and xstrdup.  Instead, include "xalloc.h".
91434
91435         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91436         unlocked-io.h.
91437         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91438         Likewise.
91439         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91440
91441         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91442         Reported by Padraig Brady.
91443
91444         * lib/mkstemp.c: #undef mkstemp.
91445         Include config.h.
91446         (rpl_mkstemp): Rename from mkstemp.
91447         Protoize.
91448
91449 2001-11-16  Jim Meyering  <meyering@lucent.com>
91450
91451         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91452         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91453         determine the amount of total physical memory, use pstat_getstatic.
91454         HPUX-11 doesn't define _SC_PHYS_PAGES.
91455         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91456         If sysconf couldn't be used to determine the amount of available
91457         physical memory, use both pstat_getstatic and pstat_getdynamic.
91458         Based on a patch from Bob Proulx.
91459
91460 2001-11-10  Jim Meyering  <meyering@lucent.com>
91461
91462         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91463         (jm_PREREQ): Use it.
91464
91465 2001-11-09  Jim Meyering  <meyering@lucent.com>
91466
91467         * m4/jm-macros.m4: Require autoconf-2.52f.
91468         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91469         Use these AC_-prefixed names, not the AM_-prefixed ones.
91470
91471         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91472
91473 2001-11-05  Jim Meyering  <meyering@lucent.com>
91474
91475         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91476
91477 2001-11-04  Jim Meyering  <meyering@lucent.com>
91478
91479         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91480         $DEFS.
91481
91482 2001-11-03  Jim Meyering  <meyering@lucent.com>
91483
91484         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91485         of AC_DEFUN.
91486
91487         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91488         know the name of the variable in the macro definition.
91489
91490 2001-11-03  Jim Meyering  <meyering@lucent.com>
91491
91492         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91493         in argmatch_to_argument call.
91494
91495         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91496         argument.
91497
91498         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91499         e.g., a fault due to an attempt to free a NULL pointer.
91500
91501 2001-11-01  Jim Meyering  <meyering@lucent.com>
91502
91503         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91504         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91505
91506 2001-11-01  Jim Meyering  <meyering@lucent.com>
91507
91508         * lib/dirfd.c, lib/dirfd.h: New files.
91509         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91510
91511         * lib/hash.c (hash_print) [TESTING]: Clean up.
91512
91513 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91514
91515         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91516         to avoid a warning if -Wall.
91517
91518 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91519
91520         * README: New file
91521         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91522         (per RMS's instructions, this is now the canonical source)
91523         * lgpl/, gpl/: New directories.
91524
91525 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91526
91527         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91528
91529 2001-10-21  Jim Meyering  <meyering@lucent.com>
91530
91531         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91532         this code would end up calling gettext even in packages built
91533         with --disable-nls.
91534         * lib/getopt.c (_): Likewise.
91535         * lib/regex.c (_): Likewise.
91536
91537 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91538
91539         * m4/error.m4 (jm_PREREQ_ERROR):
91540         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91541         AC_FUNC_STRERROR_R does that.
91542         Check for strerror declaration.
91543
91544         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91545         are supposed to have them these days.
91546         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91547         Merge changes from latest Autoconf CVS.
91548         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91549         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91550         POSIX decided to standardize on the int flavor of strerror_r.
91551
91552 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91553
91554         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91555         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91556         Use strerror_r that is only a macro, even if it is not a function.
91557         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91558         (private_strerror): Use prototypes, not old-style function definition.
91559         (print_errno_message): New function.
91560         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91561         char*-flavored one.
91562         (error_tail, error, error_at_line): Use it.
91563
91564 2001-10-11  Jim Meyering  <meyering@lucent.com>
91565
91566         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91567         and quote_n (1, ... to avoid clobbering a buffer.
91568
91569 2001-10-05  Jim Meyering  <meyering@lucent.com>
91570
91571         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91572         hash-pjw.h.
91573         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91574         * lib/hash-pjw.h: New file.
91575
91576 2001-09-30  Jim Meyering  <meyering@lucent.com>
91577
91578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91579         `struct fsstat' has the `f_fstypename' member.
91580         Use that to define FS_TYPE, which is now used to make
91581         the getfsstat link test tighter.
91582
91583 2001-09-30  Jim Meyering  <meyering@lucent.com>
91584
91585         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91586         Include <sys/ucred.h>, for Apple Darwin.
91587         Include sys/mount.h and sys/fs_types.h only if available.
91588         (FS_TYPE): Define.
91589         (read_filesystem_list): Use FS_TYPE.
91590
91591 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91592
91593         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91594         a boolean context.
91595
91596 2001-09-29  Jim Meyering  <meyering@lucent.com>
91597
91598         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91599         [one-argument getmntent function]): Include stdio.h before mntent.h.
91600         SunOS 4.1.x needs it for the declaration of `FILE'.
91601         Patch by Volker Borchert.
91602
91603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91604         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91605         sys/fs_types.h, and make the link-test for getfsstat guard #include
91606         directives with appropriate #if HAVE_*_H tests so that we can
91607         detect getfsstat on Apple Darwin1.3.7 systems.
91608         Reported by Nelson Beebe.
91609         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91610
91611 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91612
91613         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91614         #defines strtoimax.  Also treat the other strto* functions
91615         like strtoimax.
91616
91617         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91618         Check for strtoul and strtoumax,
91619         as those declarations are made even in the signed case.
91620         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91621         Likewise, for strtol and strtoimax.
91622
91623 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91624
91625         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91626         #defines strtoimax.  Also treat the other strto* functions
91627         like strtoimax.
91628
91629         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91630         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91631         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91632
91633 2001-09-26  Jim Meyering  <meyering@lucent.com>
91634
91635         Most macros in unlocked-io.h had the wrong number of arguments.
91636         * lib/gen-uio: New script.
91637         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91638         * lib/unlocked-io.hin: Remove file.
91639         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91640         rather than trying to embed it here.
91641         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91642         Reported by Padraig Brady.
91643
91644 2001-09-25  Volker Borchert  <bt@teknon.de>
91645
91646         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91647         `result'.
91648
91649 2001-09-24  Jim Meyering  <meyering@lucent.com>
91650
91651         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91652
91653 2001-09-23  Jim Meyering  <meyering@lucent.com>
91654
91655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91656         instead of the mere test for existence of mntent.h.  The latter
91657         would get a false-positive on AIX 3.4 systems.
91658         In the outer getmntent if-block, don't die if neither of the getmntent
91659         tests succeeds.  Instead, just fall through and continue with the
91660         remaining tests.
91661
91662 2001-09-23  Jim Meyering  <meyering@lucent.com>
91663
91664         * lib/mountlist.c: Remove useless parentheses in #if directives.
91665         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91666         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91667
91668 2001-09-22  Jim Meyering  <meyering@lucent.com>
91669
91670         * m4/gettext.m4: New file.  From gettext.
91671         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91672         * m4/progtest.m4: Likewise
91673         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91674         * m4/glibc21.m4: Likewise.
91675
91676         * m4/libintl.m4: Remove.  No longer used.
91677
91678 2001-09-22  Jim Meyering  <meyering@lucent.com>
91679
91680         * lib/localcharset.c: Update from latest gettext.
91681         * lib/config.charset: Likewise.
91682
91683 2001-09-20  Jim Meyering  <meyering@lucent.com>
91684
91685         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91686         strtoimax.
91687         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91688         strtoumax.
91689
91690 2001-09-20  Jim Meyering  <meyering@lucent.com>
91691
91692         * lib/xstrtol.c (strtoimax): Guard declaration with
91693         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91694         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91695         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91696         (strtoumax): Likewise, for completeness (it wasn't necessary).
91697
91698 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91699
91700         * lib/strtoimax.c (HAVE_LONG_LONG):
91701         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91702         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91703         to work around bug in IBM C compiler.
91704
91705 2001-09-17  Jim Meyering  <meyering@lucent.com>
91706
91707         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91708         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91709         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91710         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91711         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91712         whenever the right hand side need not be expanded by the shell.
91713
91714 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91715
91716         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91717         library.  It's not correct, as some older glibcs are buggy.
91718         fnmatch wasn't fixed until glibc 2.2.
91719
91720         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91721         special shell magic here.
91722
91723 2001-09-16  Jim Meyering  <meyering@lucent.com>
91724
91725         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91726         * m4/jm-macros.m4: Require it.
91727
91728 2001-09-16  Jim Meyering  <meyering@lucent.com>
91729
91730         * lib/mkdir.c: New file.
91731
91732 2001-09-15  Jim Meyering  <meyering@lucent.com>
91733
91734         * m4/jm-macros.m4: Check for help2man.
91735
91736 2001-09-11  Jim Meyering  <meyering@lucent.com>
91737
91738         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91739         The body, by Paul Eggert, was moved here from configure.in.
91740         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91741
91742 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91743
91744         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91745         (jm_PREREQ): Use it.
91746
91747 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91748
91749         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91750         Use ssize_t, not int, to store result of readlink.
91751         Check for ssize_t overflow as well as size_t overflow,
91752         as POSIX says the result of readlink is implementation-defined
91753         when ssize_t overflows.
91754         Remove unnecessary cast to char*.
91755         Use free+malloc instead of realloc, as the storage doesn't need
91756         to be preserved and it's clearer and can be more efficient that way.
91757         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91758         * lib/xreadlink.h (xreadlink): Update prototype.
91759
91760 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91761
91762         * lib/xgetcwd.c: Revert some of the previous change; intead,
91763         fix the HAVE_GETCWD_NULL code to behave more like the
91764         !HAVE_GETCWD_NULL code used to.
91765
91766         Include "xalloc.h".
91767         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91768         invoke xalloc_die.
91769
91770 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91771
91772         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91773         sys/param.h, as pathmax.h includes them.
91774
91775 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91776
91777         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91778         (jm_PREREQ_XGETCWD): New macro.
91779
91780         * m4/getcwd.m4: New file.
91781
91782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91783
91784         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91785         like the HAVE_GETCWD_NULL code.
91786         Include pathmax.h if not HAVE_GETCWD.
91787         Do not include xalloc.h.
91788         (INITIAL_BUFFER_SIZE): New symbol.
91789         Do not use xmalloc / xrealloc, since the caller is responsible for
91790         handling errors.  Preserve errno around `free' during failure.
91791         Do not overrun buffer when using getwd.
91792
91793 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91794
91795         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91796         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91797         getcwd (NULL, 0).
91798
91799 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91800
91801         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91802         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91803         spotted by Jim Meyering.
91804
91805 2001-09-03  Jim Meyering  <meyering@lucent.com>
91806
91807         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91808         failure.
91809
91810 2001-09-02  Jim Meyering  <meyering@lucent.com>
91811
91812         * lib/error.c: Update from GNU libc.
91813
91814 2001-09-01  Jim Meyering  <meyering@lucent.com>
91815
91816         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91817         Used by df.
91818
91819 2001-09-01  Jim Meyering  <meyering@lucent.com>
91820
91821         * lib/xreadlink.c: New file.
91822         * lib/xreadlink.h: New file.
91823         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91824         xreadlink.h.
91825
91826         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91827         doesn't conflict with sparc Solaris 7's definition in
91828         /usr/include/sys/int_types.h.
91829
91830         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91831         files.
91832         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91833         and strncasecmp as r-values.  Unixware didn't have declarations.
91834
91835 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91836
91837         * lib/xstrtol.h: Add copyright notice.
91838         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91839         LONGINT_INVALID_SUFFIX_CHAR.
91840
91841 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91842
91843         * lib/xstrtol.c (strtoimax): New decl.
91844
91845 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91846
91847         * lib/xgetcwd.c: Don't include pathmax.h.
91848         Include stdlib.h and unistd.h if available.
91849         Include xalloc.h.
91850         (xmalloc, xstrdup, free): Remove decls.
91851         (xgetcwd): Don't assume sizes fit in unsigned.
91852         Check for overflow when computing sizes.
91853         Simplify reallocation code.
91854
91855 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91856
91857         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91858         a directory's st_size can have an arbitrary value, so the old
91859         usage could waste an arbitrary amount of memory.  All uses
91860         changed.
91861         * lib/savedir.h: Update prototype.
91862
91863 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91864
91865         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91866
91867         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91868         old strtoimax.c.
91869
91870         Also, make the following further changes to make this file's
91871         configuration more similar to that of strtol.c:
91872         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91873         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91874         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91875         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91876         changed to signed values.
91877
91878         And make the following changes as well:
91879         Fix copyright notice, as 1999 was missing.
91880         (verify): New macro.
91881         (strtoimax): Check sizes at compile-time, not run-time.
91882         Prefer strtol to strtoll if both work.
91883         (main): Remove; it was not that useful and was a pain to maintain.
91884
91885         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91886
91887 2001-08-31  Jim Meyering  <meyering@lucent.com>
91888
91889         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91890         Use an initial, malloc'd, buffer of length 128 rather than
91891         a statically allocated one of length 1024.
91892
91893 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91894
91895         Simplify code, partly by assuming autoconf 2.52 semantics.
91896
91897         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91898
91899         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91900         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91901         All uses removed.
91902         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91903         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91904         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91905         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91906         jm_AC_HEADER_INTTYPES_H.
91907         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91908
91909         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91910
91911         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91912         Quote first arg of AC_DEFUN.
91913         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91914         since they are needed to parse the include file even if we need
91915         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91916         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91917         but with opposite signedness.
91918
91919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91920
91921         Merge 'exclude' changes from tar 1.13.22.
91922         This fixes one or two unlikely storage allocation overflow bugs,
91923         but doesn't change user-visible behavior otherwise.
91924
91925 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91926
91927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91928         (jm_PREREQ_EXCLUDE): New macro.
91929
91930 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91931
91932         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91933         tm to be declared.
91934
91935 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91936
91937         * lib/hash.c: Remove '2001' from copyright notice.
91938
91939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91940
91941         * lib/full-write.h: New file.
91942         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91943         * lib/full-write.c: Correct credits, as cccp.c no longer
91944         exists and anyway it was so heavily changed from the old cccp
91945         code as to be unrecognizable.  Include full-write.h.
91946         (full_write): Return size_t, with short writes meaning failure.
91947         All callers changed.  This fixes a bug with large buffers
91948         on 64-bit hosts.
91949         * lib/utime.c: Include full-write.h.
91950
91951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91952
91953         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91954         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91955         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91956         Include if available.
91957         (<xalloc.h>): Include
91958         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91959         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91960         collide with FNM macros.
91961         (struct patopts): New struct.
91962         (struct exclude): Use it, as exclude patterns now come with options.
91963         (new_exclude): Support above changes.
91964         (new_exclude, add_exclude_file):
91965         Initial size must now be a power of two to simplify overflow checking.
91966         (free_exclude, fnmatch_no_wildcards): New function.
91967         (excluded_filename): No longer requires options arg, as the options
91968         are determined by add_exclude.  Now returns bool, not int.
91969         (excluded_filename, add_exclude):
91970         Add support for the fancy new exclusion options.
91971         (add_exclude, add_exclude_file): Now takes int options arg.
91972         Check for arithmetic overflow when computing sizes.
91973         (add_exclude_file): xrealloc might modify errno, so don't
91974         realloc until after errno might be used.
91975
91976         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91977         New macros.
91978         (free_exclude): New decl.
91979         (add_exclude, add_exclude_file): Now takes int options arg.
91980         (excluded_filename): No longer requires options arg, as the options
91981         are determined by add_exclude.  Now returns bool, not int.
91982
91983 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91984
91985         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91986
91987 2001-08-27  Jim Meyering  <meyering@lucent.com>
91988
91989         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91990
91991         * lib/version-etc.c (N_): Remove definition.
91992         Revert most of last change.
91993         Instead, simply don't mark the `Copyright...' string for translation.
91994         Based on advice from Paul Eggert.
91995
91996         * lib/strtoxmax.c: Tweak comment.
91997
91998 2001-08-26  Jim Meyering  <meyering@lucent.com>
91999
92000         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92001
92002         * m4/xstrtoimax.m4: New file.
92003         * m4/xstrtoumax.m4: Add comments explaining why we
92004         AC_REPLACE_FUNCS(strtol).
92005
92006 2001-08-26  Jim Meyering  <meyering@lucent.com>
92007
92008         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92009         of copyright with `%s' so translators don't get an untranslated
92010         message in 2002.
92011         (COPYRIGHT_YEAR): Define.
92012         (version_etc): Use fprintf rather than fputs.
92013         Suggestion from Ulrich Drepper.
92014
92015         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92016
92017         * lib/strtoll.c: New file, from GNU libc.
92018         * lib/xstrtoimax.c: New file.
92019
92020         * lib/xstrtol.h: Add xstrtoimax.
92021         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92022         * lib/strtoimax.c: New file.  Likewise, but first define
92023         STRTOUXMAX_SIGNED.
92024
92025         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92026         ...
92027         * lib/strtoxmax.c: ... then renamed to this.
92028
92029 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92030
92031         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92032         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92033         (jm_AC_TYPE_INTMAX_T): New macro.
92034         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92035
92036         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92037
92038         * m4/longlong.m4: Renamed from ulonglong.m4.
92039         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92040         * m4/uintmax_t.m4: Removed.
92041
92042 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92043
92044         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92045         Port to Solaris 8, where 'sed' requires a space after the 'r'
92046         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92047         Redirect output to $tmp just once.
92048
92049 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92050
92051         * lib/addext.c (<errno.h>): Include.
92052         (errno): Declare if not defined.
92053         (addext): Work correctly when pathconf returns -1 and leaves
92054         errno alone because there is no limit.  Also, work even if
92055         pathconf returns a value greater than SIZE_MAX.
92056
92057 2001-08-12  Jim Meyering  <meyering@lucent.com>
92058
92059         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92060         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92061         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92062         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92063         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92064         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92065         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92066         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92067         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92068         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92069         utime.m4, utimes.m4, xstrtoumax.m4:
92070         Quote the first argument in each use of AC_DEFUN.
92071
92072 2001-08-12  Jim Meyering  <meyering@lucent.com>
92073
92074         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92075         Simply `return getcwd (NULL, 0);'.
92076         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92077         Use 1300 as initial value for length, not PATH_MAX.
92078
92079         * lib/pathmax.h: Clean up cpp syntax.
92080
92081 2001-08-12  Jim Meyering  <meyering@lucent.com>
92082
92083         * lib/gettimeofday.c: New file.
92084         * lib/gtod.h: New file.
92085         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92086
92087 2001-08-05  Jim Meyering  <meyering@lucent.com>
92088
92089         * m4/jm-macros.m4: Require autoconf-2.52.
92090
92091 2001-08-04  Jim Meyering  <meyering@lucent.com>
92092
92093         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92094         stmt, to get in sync with glibc.
92095
92096 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92097
92098         The following changes are from gettext 0.10.39 as maintained by
92099         Bruno Haible.
92100
92101         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92102         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92103         with inverted sense.  All uses changed.
92104
92105         * lib/mbswidth.c: Don't include <limits.h>.
92106         Include <stdlib.h> and <string.h> unconditionally.
92107         (iswcntrl, mbsinit, ISCNTRL): New macros.
92108         (mbsnwidth): Use K&R style function declarations.
92109         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92110         can optimize it when MB_CUR_MAX == 1.
92111         The width of control characters is zero, not 1.
92112
92113 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92114
92115         The following changes are from gettext 0.10.39 as maintained by
92116         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92117
92118         * m4/codeset.m4: Upgrade to serial AM1.
92119         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92120         all uses changed.  Quote first arg of AC_DEFUN.
92121         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92122
92123         * m4/iconv.m4: Upgrade to serial AM2.
92124         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92125         Add --with-libconv-prefix.
92126         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92127         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92128         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92129         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92130         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92131
92132         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92133         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92134         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92135         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92136         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92137         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92138         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92139         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92140         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92141
92142         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92143         string.h any more.
92144
92145         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92146         not the default value.
92147
92148         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92149         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92150         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92151         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92152         Also check for iswcntrl, used for wcwidth fallback.
92153         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92154         to Autoconf 2.13.
92155
92156 2001-08-03  Jim Meyering  <meyering@lucent.com>
92157
92158         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92159         as it was in the original.  Reported by Paul Eggert.
92160
92161 2001-07-16  Jim Meyering  <meyering@lucent.com>
92162
92163         * m4/gettimeofday.m4: New file.
92164         Prompted by a report from Bernhard Baehr.
92165
92166 2001-07-15  Jim Meyering  <meyering@lucent.com>
92167
92168         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92169         stuff. Now it's in ../Makefile.cfg.
92170
92171 2001-07-15  Jim Meyering  <meyering@lucent.com>
92172
92173         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92174         (BUILT_SOURCES): Add unlocked-io.h.
92175         (io_functions): Define.
92176         (unlocked-io.h): New rule.
92177         (DISTCLEANFILES): Add unlocked-io.h.
92178         (all-local): Depend on unlocked-io.h, to ensure it is created.
92179
92180         * lib/unlocked-io.hin: New file
92181
92182         * lib/regex.c: Update from glibc.
92183
92184 2001-07-05  Jim Meyering  <meyering@lucent.com>
92185
92186         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92187         recommendation.
92188         (libfetish_a_SOURCES): Put all .h files here instead.
92189         Remove a thus-exposed (better checks in automake) duplicate and
92190         two unnecessary .h files.
92191
92192 2001-07-04  Jim Meyering  <meyering@lucent.com>
92193
92194         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92195         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92196         distcheck failure.
92197
92198 2001-07-02  Jim Meyering  <meyering@lucent.com>
92199
92200         The following changes were prompted by suggestions from Bruno Haible.
92201
92202         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92203         is now generated.
92204         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92205         definition of EXTRA_DIST.
92206         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92207         ensure that the generated file is created/updated whenever the list
92208         of $(unlocked_functions) is changed.
92209         (jm-glibc-io.m4): New rule.
92210         (unlocked-io.h): New rule -- currently unused.
92211
92212 2001-06-24  Jim Meyering  <meyering@lucent.com>
92213
92214         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92215         unmatched right bracket, rather than kludging it with an extra,
92216         falsely-matching quote in a comment.  Patch by Akim Demaille.
92217
92218 2001-06-11  Jim Meyering  <meyering@lucent.com>
92219
92220         * lib/regex.c: Update from GNU libc.
92221
92222 2001-05-27  Jim Meyering  <meyering@lucent.com>
92223
92224         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92225         Check for ut_type in struct utmp.
92226
92227 2001-05-27  Jim Meyering  <meyering@lucent.com>
92228
92229         * lib/readutmp.h (UT_TYPE): Define.
92230
92231 2001-05-24  Jim Meyering  <meyering@lucent.com>
92232
92233         * lib/argmatch.c: Include "quote.h".
92234         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92235         quote function.  Reported by Göran Uddeborg.
92236
92237 2001-05-22  Jim Meyering  <meyering@lucent.com>
92238
92239         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92240         now that we use the package-supplied version unconditionally.
92241         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92242
92243 2001-05-21  Jim Meyering  <meyering@lucent.com>
92244
92245         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92246         shell syntax errors.
92247
92248 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92249
92250         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92251
92252 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92253
92254         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92255         Don't bother to check library strftime, since
92256         we'll be using our own my_strftime function anyway.
92257         Define my_strftime instead of strftime.
92258
92259 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92260
92261         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92262         which is not yet declared.
92263
92264 2001-05-15  Jim Meyering  <meyering@lucent.com>
92265
92266         * m4/regex.m4: Use proper quoting so brackets appear in the test
92267         program.
92268         Reported by, and with help from, Bruno Haible.
92269
92270 2001-05-13  Jim Meyering  <meyering@lucent.com>
92271
92272         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92273         undefined.
92274
92275 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92276
92277         dirname code cleanup.  base_name now behaves more compatibly
92278         with POSIX basename when given file names that have trailing
92279         slashes, and similarly for dir_name.  Add new primitives
92280         base_len and dir_len.  Put the directory-name-related decls
92281         into dirname.h.
92282
92283         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92284         * lib/backupfile.c (base_name): Likewise.
92285         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92286         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92287         * lib/makepath.c (strip_trailing_slashes): Likewise.
92288         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92289         ISSLASH): Likewise.
92290         * lib/rename.c (strip_trailing_slashes): Likewise.
92291         * lib/same.c (base_name): Likewise.
92292         * lib/stripslash.c (ISSLASH): Likewise.
92293
92294         * lib/addext.c: Include <dirname.h> after size_t is defined.
92295         * lib/backupfile.c: Likewise.
92296
92297         * lib/addext.c (addext): Use base_len to trim redundant
92298         trailing slashes instead of doing it ourselves.
92299         But do not trim the last slash if it is not redundant.
92300
92301         * lib/backupfile.c (find_backup_file_name,
92302         max_backup_version): Use base_len instead of rolling it ourselves.
92303         Handle the case of "" and (on DOS) "C:" correctly.
92304
92305         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92306         needed. Include <string.h>, <dirname.h>.
92307         (base_name): Allow file names ending in slashes, other than names
92308         that are all slashes.  In this case, return the basename followed
92309         by the slashes.  This is more general, and can be used in places
92310         where the original base_name purposely had an assertion failure.
92311         (base_len): New function.
92312
92313         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92314         Do not include <assert.h>; no longer needed.
92315         Include xalloc.h.
92316         (memrchr): Remove decl.
92317         (dir_name_r): Remove.
92318         (dir_len): Renamed from dirlen.  All callers changed.
92319         Rewrite in terms of base_name, for simplicity and consistency.
92320         (dir_name): Never return NULL.  All callers changed.
92321         Do not include <stdlib.h> in test program; no longer needed.
92322         return 0; is fine for test program.
92323
92324         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92325         New macros.
92326         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92327
92328         * lib/path-concat.c (path_concat): Use base_len to compute
92329         base length, not strlen; this means we cannot rely on memcpy
92330         to null-terminate.
92331
92332         * lib/same.c (STREQ): Remove.
92333         (same_name): Handle the case where the basename ends in trailing '/'.
92334
92335         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92336         a slash was stripped.  Do not strip the last slash after a
92337         file system prefix.
92338
92339 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92340
92341         * lib/Makefile.am (libfetish_a_SOURCES):
92342         Add strftime.c, since we now compile it on all hosts.
92343
92344         * lib/strftime.c (my_strftime):
92345         Define to nstrftime if emacs, but only if my_strftime is not defined.
92346         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92347         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92348         Add one more extra argument: a nanoseconds value.
92349         All uses changed.
92350         (ns): New macro.
92351         (my_strftime function): Add %N format.
92352         (emacs_strftimeu): Renamed from emacs_strftime,
92353         with extra ut argument.
92354
92355 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92356
92357         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92358
92359 2001-04-21  Jim Meyering  <meyering@lucent.com>
92360
92361         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92362         doesn't interfere.
92363
92364 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92365
92366         * m4/ftruncate.m4: Check for chsize.
92367         Link with ftruncate.o unconditionally if ftruncate is missing.
92368         This was required when cross-compiling to i586-mingw32msvc.
92369
92370 2001-04-08  Jim Meyering  <meyering@lucent.com>
92371
92372         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92373         recomputed; that's necessary when the offset spans a DST transition.
92374         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92375
92376 2001-04-02  Jim Meyering  <meyering@lucent.com>
92377
92378         * lib/regex.h, regex.c: Update from GNU libc.
92379
92380 2001-03-24  Jim Meyering  <meyering@lucent.com>
92381
92382         * m4/jm-macros.m4: Require autoconf-2.49d.
92383
92384 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92385
92386         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92387
92388 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92389
92390         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92391
92392 2001-03-17  Jim Meyering  <meyering@lucent.com>
92393
92394         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92395         now that the version in autoconf is equivalent.
92396         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92397
92398         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92399         Suggestion from Akim Demaille.
92400
92401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92402         (jm_PREREQ_TEMPNAME): New function.
92403
92404 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92405
92406         * lib/tempname.c (uint64_t): Define to uintmax_t if
92407         not defined, and if UINT64_MAX is not defined.
92408         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92409         Reported by John David Anglin.
92410
92411 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92412
92413         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92414         resolve alias if codeset is empty.
92415         * lib/config.charset (BeOS): Use wildcard syntax.
92416
92417 2001-03-13  Jim Meyering  <meyering@lucent.com>
92418
92419         * lib/path-concat.c (path_concat)
92420         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92421         concatenating e.g., `C:' and `foo'.
92422         From Bruno Haible.
92423
92424 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92425
92426         * lib/localcharset.c (locale_charset): Don't use
92427         setlocale(LC_CTYPE,NULL). Don't return NULL.
92428         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92429
92430 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92431
92432         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92433         support for DOS/DJGPP.
92434
92435 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92436
92437         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92438         lacks mkstemp.  Compile our own tempname.c if we compile our own
92439         mkstemp.c, as mkstemp relies on tempname.
92440
92441 2001-03-01  Jim Meyering  <meyering@lucent.com>
92442
92443         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92444         AH_VERBATIM really does output its argument verbatim.
92445
92446 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92447
92448         * lib/Makefile.am (libfetish_a_SOURCES):
92449         Add dup-safer.c, fopen-safer.c.
92450         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92451
92452         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92453         * lib/unistd-safer.h: New files.
92454
92455 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92456
92457         The mkstemp replacement is taken from glibc 2.2.2, with some
92458         portability fixes for use outside glibc, as follows:
92459
92460         * lib/tempname.c (struct_stat64): New macro.
92461         (direxists, __gen_tempname): Use it.
92462         This avoids a portability problem with Solaris 8.
92463
92464         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92465         (<stddef.h>, <stdint.h>, <string.h>):
92466         Include only if STDC_HEADERS || _LIBC.
92467         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92468         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92469         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92470         (__set_errno): Define this macro if <errno.h> doesn't.
92471         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92472         Define these macros if <stdio.h> doesn't.
92473         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92474         Define these macros if <sys/stat.h>
92475         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92476         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92477         __xstat64): Define if not _LIBC.
92478         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92479         (__gen_tempname): Invoke gettimeofday only if
92480         HAVE_GETTIMEOFDAY || _LIBC;
92481         otherwise, fall back on plain "time".
92482         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92483
92484         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92485
92486         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92487
92488 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92489
92490         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92491
92492 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92493
92494         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92495         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92496         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92497         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92498
92499 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92500
92501         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92502         Remove workaround macros for hosts that have mbrtowc but not
92503         mbstate_t, as we now insist on proper declarations for both
92504         before using mbrtowc.
92505
92506 2001-02-17  Jim Meyering  <meyering@lucent.com>
92507
92508         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92509         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92510         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92511         UnixWare 7.1.1.
92512
92513         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92514         rather than AC_CACHE_VAL.
92515
92516 2001-02-17  Jim Meyering  <meyering@lucent.com>
92517
92518         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92519         around included file name.
92520
92521         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92522
92523         * lib/strftime.c: Update from GNU libc (the only changes were to
92524         comments).
92525
92526 2001-02-17  Jim Meyering  <meyering@lucent.com>
92527
92528         * lib/regex.c: Update from libc.
92529
92530 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92531
92532         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92533         clash.
92534
92535 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92536
92537         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92538         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92539         Reported by Mark Hounschell via Paul Eggert.
92540
92541 2001-02-07  Jim Meyering  <meyering@lucent.com>
92542
92543         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92544
92545 2001-02-05  Jim Meyering  <meyering@lucent.com>
92546
92547         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92548         it includes the patch required for `large file' support with at least
92549         HP-UX's 10.20 /bin/cc.
92550
92551 2001-02-03  Jim Meyering  <meyering@lucent.com>
92552
92553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92554         AS_IF, now that it works once again (mysteriously).
92555         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92556
92557 2001-01-30  Jim Meyering  <meyering@lucent.com>
92558
92559         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92560         * m4/chown.m4: Rename conftestchown to conftest.chown.
92561         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92562         s/conftestdir2/conftest.d2/.
92563         * m4/utimes.m4: s/conftestdata/conftest.data/
92564         Inspired by Pavel Roskin's change in autoconf.
92565
92566 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92567
92568         * lib/config.charset: Update for FreeBSD 4.2.
92569
92570 2001-01-27  Jim Meyering  <meyering@lucent.com>
92571
92572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92573         a use of AS_IF.
92574         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92575
92576 2001-01-26  Jim Meyering  <meyering@lucent.com>
92577
92578         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92579         quotearg.c includes it.
92580
92581 2001-01-26  Jim Meyering  <meyering@lucent.com>
92582
92583         * lib/quotearg.c: Include stddef.h.
92584         * lib/quote.c: Include stddef.h.
92585         Reported by Axel Kittenberger.
92586
92587         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92588         line in double quotes so that it evokes a better diagnostic.
92589         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92590         Reported by Axel Kittenberger.
92591
92592 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92593
92594         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92595         as if it was a `charset'.
92596
92597 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92598
92599         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92600         has const.
92601
92602 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92603
92604         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92605         to avoid a warning.  Add back 'const' to inptr.
92606
92607 2001-01-20  Jim Meyering  <meyering@lucent.com>
92608
92609         Be sure that headers are checked before used in code compiled
92610         for the type checks.
92611         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92612         In place of that, invoke jm_CHECK_ALL_TYPES.
92613         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92614         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92615         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92616         The check for ssize_t was mistakenly run before the test for unistd.h.
92617
92618         The configure-time check for stdbool.h was missing.
92619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92620         (jm_PREREQ_HASH): New function.
92621
92622 2001-01-17  Jim Meyering  <meyering@lucent.com>
92623
92624         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92625         for autoconf-2.49c.
92626         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92627
92628 2001-01-16  Jim Meyering  <meyering@lucent.com>
92629
92630         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92631         From Bruno Haible.
92632
92633 2001-01-14  Jim Meyering  <meyering@lucent.com>
92634
92635         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92636         foo and bar.  Create conftestdir/ in the script, not in the C code.
92637         Remove directories in the script, not in the C code.
92638         Remove conftestdir{,2} before trying to create the directory.
92639         Make the entire configure script fail if the mkdir fails.
92640
92641 2001-01-14  Jim Meyering  <meyering@lucent.com>
92642
92643         * lib/rename.c: New file.  From Volker Borchert.
92644         Include stdlib.h, string.h or strings.h, and xalloc.h.
92645         Use strip_trailing_slashes rather than open-coding it.
92646
92647 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92648
92649         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92650
92651 2001-01-03  Jim Meyering  <meyering@lucent.com>
92652
92653         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92654         of local `inptr' to avoid warning with some system declarations of
92655         iconv.
92656
92657 2001-01-02  Volker Borchert  <bt@teknon.de>
92658
92659         * m4/rename.m4: New file.
92660         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92661
92662 2001-01-01  Jim Meyering  <meyering@lucent.com>
92663
92664         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92665         even on systems with utmpx.h.  It's necessary for the declaration of
92666         utmp's ut_user member.  Reported by Andreas Jaeger.
92667
92668         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92669         available. They are required for the declarations of getgrgid and
92670         getpwuid resp.
92671         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92672         Reported by Andreas Jaeger.
92673
92674 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92675
92676         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92677         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92678         so `make install' also works in VPATH builds.
92679
92680 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92681
92682         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92683         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92684         can be used in subdirectories.
92685
92686 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92687
92688         * lib/modechange.c: Do not assume that mode_t uses the
92689         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92690         the other-execute bit of FOO even if S_IXOTH != 1.
92691
92692         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92693         WOTH, XOTH, ALLM): New macros.
92694         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92695          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92696         Use them.
92697         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92698         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92699         (mode_compile):
92700         No need to use uintmax_t; unsigned long is long enough.
92701         Don't bother to get suffix since we don't use it.
92702
92703 2000-12-26  Jim Meyering  <meyering@lucent.com>
92704
92705         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92706         better with autoheader.
92707
92708 2000-12-24  Jim Meyering  <meyering@lucent.com>
92709
92710         * lib/hash.c (is_prime): Return explicit boolean values.
92711         (hash_get_first): Return NULL to appease Irix5.6's 89.
92712         Reported by Nelson Beebe.
92713
92714 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92715
92716         * lib/localcharset.c (locale_charset): Add support for Win32.
92717
92718 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92719
92720         * lib/physmem.h, lib/physmem.c: New files.
92721
92722         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92723         (noinst_HEADERS): Add physmem.h.
92724
92725         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92726         't' for compatibility with Solaris 8 sort.
92727
92728 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92729
92730         * lib/config.charset: Add support for BeOS.
92731
92732 2000-12-17  Jim Meyering  <meyering@lucent.com>
92733
92734         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92735         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92736
92737 2000-12-16  Jim Meyering  <meyering@lucent.com>
92738
92739         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92740         N and M) would have treated it like `chown N:N FILE'.
92741
92742         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92743
92744 2000-12-16  Jim Meyering  <meyering@lucent.com>
92745
92746         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92747         SHELLS_FILE to a file name that's useful on djgpp systems.
92748         Include stdlib.h.
92749         (ADDITIONAL_DEFAULT_SHELLS): Define.
92750         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92751         Based mostly on a patch from Prashant TR.
92752
92753 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92754
92755         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92756         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92757         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92758
92759 2000-12-08  Andreas Schwab  <schwab@suse.de>
92760
92761         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92762         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92763
92764 2000-12-07  Jim Meyering  <meyering@lucent.com>
92765
92766         * lib/stripslash.c (ISSLASH): Define.
92767         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92768         `/'.
92769         From Prashant TR.
92770
92771         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92772         (dir_name_r): Declare this function as static.
92773         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92774         manifest itself on a name containing a mix of slashes and
92775         backslashes.
92776         Make this function work with names starting with a DOS-style
92777         drive letter and colon prefix.
92778         (dir_name): Append `.' if necessary.
92779         Based mostly on patches from Prashant TR and Eli Zaretskii.
92780
92781         * lib/dirname.h (dir_name_r): Remove prototype.
92782
92783 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92784
92785         * m4/off_t-format.m4: Remove this file.
92786         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92787
92788 2000-12-06  Jim Meyering  <meyering@lucent.com>
92789
92790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92791         replacement strtoull, we may well need the replacement strtoul, too.
92792         Check for declarations of strtoul and strtoull.
92793         Check for strtol.  Mainly as a cue to cause automake to include
92794         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92795         Check for limits.h -- strtol.c needs it.
92796
92797 2000-12-05  Jim Meyering  <meyering@lucent.com>
92798
92799         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92800
92801 2000-12-04  Jim Meyering  <meyering@lucent.com>
92802
92803         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92804         Also include memory.h, stdlib.h, unistd.h if appropriate.
92805         Reported by Andreas Jaeger (conflicting declaration of malloc).
92806
92807 2000-12-02  Jim Meyering  <meyering@lucent.com>
92808
92809         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92810         * m4/jm-macros.m4 (jm_MACROS): require it.
92811
92812 2000-12-02  Jim Meyering  <meyering@lucent.com>
92813
92814         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92815
92816 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92817
92818         * lib/memrchr.c: Include <config.h> before any system include file.
92819
92820 2000-11-30  Jim Meyering  <meyering@lucent.com>
92821
92822         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92823
92824 2000-11-30  Jim Meyering  <meyering@lucent.com>
92825
92826         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92827
92828 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92829
92830         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92831
92832 2000-11-26  Jim Meyering  <meyering@lucent.com>
92833
92834         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92835
92836 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92837
92838         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92839         size of (size_t) -1; it's not portable.
92840
92841 2000-11-17  Jim Meyering  <meyering@lucent.com>
92842
92843         * lib/strstr.c: Update from GNU libc.
92844
92845 2000-11-17  Akim Demaille  <akim@epita.fr>
92846
92847         * lib/obstack.h: Formatting changes.
92848         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92849         prevent type checking.
92850         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92851         cast the value to (void *): assigning a `foo *' to a `void *'
92852         variable is valid.
92853         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92854
92855 2000-11-16  Jim Meyering  <meyering@lucent.com>
92856
92857         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92858
92859 2000-11-11  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92862
92863 2000-11-10  Jim Meyering  <meyering@lucent.com>
92864
92865         * lib/obstack.h: Update from GNU libc.
92866         * lib/obstack.c: Likewise.
92867
92868 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92869
92870         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92871
92872 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92873
92874         * lib/getusershell.c (setusershell): Use rewind rather than
92875         fseek/fseeko, to avoid configuration hassles with fseeko.
92876         Don't bother opening SHELLS_FILE if shellstream is NULL;
92877         it's not necessary.
92878
92879 2000-11-05  Jim Meyering  <meyering@lucent.com>
92880
92881         * lib/makepath.h (make_dir): Declare.
92882         * lib/makepath.c (make_dir): Remove `static' attribute.
92883         Tweak a comment.
92884
92885 2000-11-04  Jim Meyering  <meyering@lucent.com>
92886
92887         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92888
92889 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92890
92891         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92892         last one in a bucket, advance to the next bucket.
92893
92894 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92895
92896         * lib/fnmatch.c: Do not comment out all the code if we are using
92897         the GNU C library, because in some cases we are replacing buggy
92898         code in the GNU C library itself.
92899
92900 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92901
92902         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92903         (regex_compile): Catch bogus \(\1\).
92904
92905 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92906
92907         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92908         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92909         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92910
92911 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92912
92913         * lib/error.h, getline.h, modechange.h:
92914         Remove "2000" from Copyright line, as the file hasn't been
92915         changed this year other than in the copyright notice.
92916
92917         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92918         was changed this year.
92919
92920 2000-10-29  Jim Meyering  <meyering@lucent.com>
92921
92922         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92923         renaming.
92924         * m4/ls-mntd-fs.m4: Likewise
92925
92926 2000-10-29  Jim Meyering  <meyering@lucent.com>
92927
92928         * lib/xstat.in: Fix grammar in comment.
92929
92930 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92931
92932         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92933         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92934         doesn't define __restrict_arr.
92935
92936 2000-10-28  Jim Meyering  <meyering@lucent.com>
92937
92938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92939         (jm_PREREQ_MEMCHR): New function.
92940
92941 2000-10-28  Jim Meyering  <meyering@lucent.com>
92942
92943         * lib/memchr.c: Update from libc.
92944         Adjust for portability:
92945         [HAVE_STDLIB_H]: Include stdlib.h.
92946         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92947         Undef __memchr, too.
92948         [!weak_alias]: Define __memchr to memchr.
92949
92950         * lib/regex.c: Update from libc.
92951         * lib/regex.h: Likewise.
92952         * lib/getopt1.c: Likewise.
92953         * lib/memcmp.c: Likewise.
92954
92955         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92956         Avoid using fseek, when possible -- it's broken by design.
92957         Patch by Ulrich Drepper.
92958
92959 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92960
92961         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92962         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92963         Giving in to popular pressure to shut up the compiler with casts.
92964
92965 2000-10-26  Jim Meyering  <meyering@lucent.com>
92966
92967         * lib/strftime.c: Update from libc.
92968
92969 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92970
92971         * regex.c: More `unsigned char' -> `re_char' changes.
92972         Also change several `int' into `re_wchar_t'.
92973         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92974         (PUSH_FAILURE_POINTER): Don't cast any more.
92975         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92976         We want GCC to complain, since this piece of code makes
92977         re_match non-reentrant, which *should* be fixed.
92978         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92979         (EXTEND_BUFFER): Use RETALLOC.
92980         (SET_LIST_BIT): Don't cast.
92981         (re_wchar_t): New type.
92982         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92983         that those two functions will always properly return.
92984         (IMMEDIATE_QUIT_CHECK): Cast to void.
92985         (analyse_first): Use recursion rather than an explicit stack.
92986         (re_compile_fastmap): Can't fail anymore.
92987         (re_search_2): Don't check re_compile_fastmap for failure.
92988         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92989         Now also sets the new value (passed in a new argument).
92990         (re_match_2_internal): Use it.
92991         Also, use a new var `reg' of type size_t when looping through regs
92992         rather than reuse the inappropriate `mcnt'.
92993
92994 2000-10-25  Jim Meyering  <meyering@lucent.com>
92995
92996         * lib/obstack.c: Update from libc.
92997
92998 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92999
93000         * regex.c (regex_compile): Change the way of handling a range from
93001         a char less than 256 to a char not less than 256.
93002
93003 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93004
93005         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93006         NT-Emacs only.
93007         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93008         so that re_search functions only quit when callers expect them to.
93009
93010 2000-10-23  Jim Meyering  <meyering@lucent.com>
93011
93012         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93013         wrong.  That set_locale call must not have any side effects.
93014         From Paul Eggert.
93015
93016 2000-10-22  Jim Meyering  <meyering@lucent.com>
93017
93018         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93019         [CYCLIC]: Remove now-unused definition.
93020
93021         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93022         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93023         Suggestion from Ulrich Drepper.
93024
93025 2000-10-21  Jim Meyering  <meyering@lucent.com>
93026
93027         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93028         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93030
93031 2000-10-21  Jim Meyering  <meyering@lucent.com>
93032
93033         * lib/dirname.c (memrchr): Declare if necessary.
93034         (dir_name): Remove the restriction that there be no
93035         trailing slashes.  Now, this code skips past them, effectively
93036         ignoring them.
93037         [TEST_DIRNAME] (main): New unit tests.
93038
93039         * lib/memrchr.c: New file from GNU libc.
93040         Undef __memrchr, too.
93041         [!weak_alias]: Define __memrchr to memrchr.
93042         Guard weak_alias use with `#ifdef weak_alias'.
93043
93044 2000-10-21  Jim Meyering  <meyering@lucent.com>
93045
93046         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93047         (dir_name): Use dir_name_r.
93048         * lib/dirname.h (dir_name_r): Declare it.
93049
93050 2000-10-17  Jim Meyering  <meyering@lucent.com>
93051
93052         * lib/quote.h (PARAMS): Define and use.
93053         Reported by Akim Demaille.
93054
93055         * lib/getopt.c: Update from libc.
93056
93057 2000-10-16  Jim Meyering  <meyering@lucent.com>
93058
93059         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93060         setlocale.
93061         From Jan Fedak.
93062
93063 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93064
93065         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93066
93067 2000-09-25  Jim Meyering  <meyering@lucent.com>
93068
93069         * lib/md5.h (rol): Define (from GnuPG).
93070
93071         * lib/sha.c: Give credit (GnuPG) where due.
93072         (M): Use rol rather than open-coding it.
93073         Add a FIXME comment.
93074
93075 2000-09-21  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93078         Reported by Michael Stone.
93079
93080 2000-09-20  Jim Meyering  <meyering@lucent.com>
93081
93082         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93083         (noinst_HEADERS): Add sha.h.
93084         Based on code from Scott G. Miller and from GnuPG.
93085
93086 2000-09-18  Jim Meyering  <meyering@lucent.com>
93087
93088         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93089         LIBS. Otherwise, everyone ends up linking with -lelf for some
93090         configurations.
93091         Reported by Mike Stone.
93092
93093 2000-09-15  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/regex.c: Update from libc.
93096
93097 2000-09-10  Jim Meyering  <meyering@lucent.com>
93098
93099         * lib/getopt.c (_getopt_internal): Update from glibc.
93100
93101 2000-09-09  Jim Meyering  <meyering@lucent.com>
93102
93103         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93104         think it should be used as a general replacement for isascii.
93105         * lib/fnmatch.c: Likewise.
93106         * lib/mbswidth.c: Likewise
93107         * lib/regex.c: Likewise.
93108
93109         Don't use atoi.
93110         * lib/userspec.c: Include sys/param.h and limits.h.
93111         Include xstrtol.h.
93112         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93113         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93114         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93115         UID, GID.  Check range.
93116
93117 2000-09-06  Jim Meyering  <meyering@lucent.com>
93118
93119         * lib/getopt.c (_getopt_internal): Update from glibc.
93120
93121 2000-08-30  Jim Meyering  <meyering@lucent.com>
93122
93123         * lib/strftime.c: Merge in changes from GNU libc.
93124
93125 2000-08-26  Jim Meyering  <meyering@lucent.com>
93126
93127         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93128         * m4/fpending.m4: New file.
93129
93130 2000-08-26  Jim Meyering  <meyering@lucent.com>
93131
93132         * lib/closeout.c: Include "__fpending.h".
93133         (close_stdout_status): Return right away if there's nothing to flush.
93134
93135         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93136         * lib/__fpending.c: New file.
93137         * lib/__fpending.h: New file.
93138
93139 2000-08-20  Jim Meyering  <meyering@lucent.com>
93140
93141         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93142         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93143         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93144
93145 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93146
93147         Improve fileutils installation on systems where running
93148         programs (like install) can't be unlinked.
93149         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93150         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93151
93152 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93153
93154         Standardize on "memory exhausted" instead of "Memory exhausted"
93155         or "virtual memory exhausted".
93156         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93157         "virtual memory exhausted".
93158         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93159         our own message.
93160         * lib/userspec.c (parse_user_spec): Likewise.
93161         * lib/bumpalloc.h: comment fix
93162         * lib/same.c, userspec.c: Include xalloc.h.
93163
93164         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93165         not char *const and pointing to a constant array.
93166         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93167         (xrealloc): Comment fix.
93168
93169         * lib/userspec.c (parse_user_spec):
93170         Don't translate a message until just before returning,
93171         to avoid unnecessary translation.
93172
93173 2000-08-07  Jim Meyering  <meyering@lucent.com>
93174
93175         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93176         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93177         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93178         getgroups.c, gethostname.c, getopt.h, group-member.c,
93179         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93180         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93181         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93182         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93183         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93184         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93185         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93186         yesno.c: Back out Copyright date changes for each file with no change
93187         this year.  This eases coordination with other programs using the same
93188         source code modules.  From Paul Eggert.
93189
93190 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93191
93192         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93193         not char, for compatibility with glibc 2.1.3 strftime.c.
93194
93195 2000-08-03  Greg McGary  <greg@mcgary.org>
93196
93197         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93198         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93199         (EXTEND_BUFFER): Use them.
93200
93201 2000-08-01  Jim Meyering  <meyering@lucent.com>
93202
93203         * lib/dirname.c (ISSLASH): Define.
93204         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93205         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93206         both `\' and `/' may be use as path separators.
93207         Based on a patch from Prashant TR.
93208
93209 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93210
93211         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93212         slot vector a constant, since it might get modified.
93213
93214 2000-07-31  Jim Meyering  <meyering@lucent.com>
93215
93216         * lib/xmalloc.c: Use `virtual memory exhausted', not
93217         `Memory exhausted'.
93218         * lib/obstack.c (print_and_abort): Likewise.
93219
93220 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93221
93222         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93223         buffer, so that the caller can always quote one small
93224         component of a "memory exhausted" message in slot 0.
93225         From a suggestion by Jim Meyering.
93226
93227 2000-07-30  Jim Meyering  <meyering@lucent.com>
93228
93229         * lib/makepath.c (make_path): Quote the other instance, too.
93230
93231         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93232         (STATIC_BUF_SIZE): Define.
93233         (quotearg_n_options): Use only statically allocated storage when
93234         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93235         than STATIC_BUF_SIZE.
93236
93237 2000-07-29  Jim Meyering  <meyering@lucent.com>
93238
93239         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93240         * lib/dirname.c (dir_name): Likewise.
93241
93242         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93243         `/'.
93244
93245         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93246         (dir_name): Assert that there are no trailing slashes.
93247
93248 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93249
93250         * lib/mbswidth.h (mbswidth): Add a flags argument.
93251         (mbswidth): New declaration.
93252         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93253         * lib/mbswidth.c (mbswidth): Add a flags argument.
93254         (mbsnwidth): New function.
93255
93256 2000-07-24  Jim Meyering  <meyering@lucent.com>
93257
93258         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93259
93260 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93261
93262         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93263
93264 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93265
93266         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93267         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93268         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93269         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93270         invoke multibyte primitives.
93271
93272 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93273
93274         * lib/quotearg.c:
93275         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93276         so that mbstate_t is always defined.
93277
93278         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93279         be 1 in at least one GCC installation, and this configuration
93280         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93281         performance on hosts that have mbrtowc but have only unibyte
93282         locales, but I assume these hosts are rare.
93283
93284 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93285
93286         * lib/mbswidth.c (_XOPEN_SOURCE):
93287         Don't define; this causes problems on Solaris 7.
93288         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93289
93290 2000-07-23  Jim Meyering  <meyering@lucent.com>
93291
93292         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93293         too: getgrgid, getpwuid, getuid.
93294
93295 2000-07-23  Jim Meyering  <meyering@lucent.com>
93296
93297         * lib/basename.c (base_name): Add an assertion.
93298
93299 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93300
93301         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93302         shadow its mbsinit function.
93303
93304 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93305
93306         * lib/mbswidth.h: New file.
93307         * lib/mbswidth.c: New file.
93308         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93309         (noinst_HEADERS): Add mbswidth.h.
93310
93311 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93312
93313         * lib/config.charset: Add support for FreeBSD. Improve support for
93314         HP-UX and IRIX 6.
93315
93316 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93317
93318         * m4/mbswidth.m4: New file.
93319         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93320
93321 2000-07-15  Jim Meyering  <meyering@lucent.com>
93322
93323         * lib/makepath.c: Include quote.h.
93324         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93325         corresponding argument in a `quote (...)' call.
93326         Give better diagnostics.
93327
93328         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93329         (noinst_HEADERS): Add quote.h.
93330
93331         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93332         from tar's src/misc.c.
93333         * lib/quote.h: New file.  Prototypes for same.
93334
93335 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93336
93337         From a suggestion by Bruno Haible.
93338         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93339         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93340         to decide whether to define the BeOS workaround macro;
93341         this adjusts to the change to AC_MBSTATE_T.
93342
93343 2000-07-14  Jim Meyering  <meyering@lucent.com>
93344
93345         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93346         jm_AC_TYPE_UINTMAX_T.
93347
93348 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93349
93350         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93351
93352         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93353         quotearg_buffer_restyled): Add support for
93354         clocale_quoting_style.  Undo previous change to
93355         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93356         and "{RIGHT QUOTATION MARK}" msgids.
93357
93358 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93359
93360         From a suggestion by Bruno Haible.
93361         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93362         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93363         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93364         and mbstate_t, to a single-part test that simply defines mbstate_t.
93365         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93366         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93367
93368 2000-07-10  Jim Meyering  <meyering@lucent.com>
93369
93370         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93371
93372         * m4/gnu-source.m4: Output to confdefs.h directly.
93373         Suggestion from Akim Demaille.
93374
93375 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93376
93377         The old behavior of quoting `like this' doesn't look good with
93378         newer, ISO-style fonts.  See:
93379         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93380
93381         Instead, quote "like this" by default.  Let the translator
93382         tailor the locale-specific quoting behavior by providing
93383         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93384
93385         * lib/quotearg.c (N_): New macro.
93386         (gettext_default): New function.
93387         (quotearg_buffer_restyled): Use
93388         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93389         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93390
93391 2000-07-09  Jim Meyering  <meyering@lucent.com>
93392
93393         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93394         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93395
93396         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93397         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93398
93399 2000-07-09  Jim Meyering  <meyering@lucent.com>
93400
93401         * lib/Most files: Update copyright dates to include 2000.
93402
93403 2000-07-08  Jim Meyering  <meyering@lucent.com>
93404
93405         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93406         if not defined.
93407         (xgethostname): Remove now-unnecessary #ifdef.
93408         Move declaration of `err' into loop where it's used.
93409
93410 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93411         and Bruno Haible  <haible@clisp.cons.org>
93412
93413         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93414         only if the test for an object-type mbstate_t fails.  This
93415         prevents us from mistakenly reporting that mbstate_t is a
93416         system object type after we "#define mbstate_t int" to work
93417         around its lack.
93418
93419 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93420         and Bruno Haible  <haible@clisp.cons.org>
93421
93422         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93423
93424 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93425
93426         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93427         to strerror_r.
93428         Include <ctype.h> for use of isalpha.
93429
93430 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93431
93432         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93433         by allocating a larger buffer. Test the gethostname return value for
93434         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93435         returns an error and ENAMETOOLONG isn't defined.
93436
93437 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93438
93439         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93440         dimension.
93441
93442 2000-07-04  Jim Meyering  <meyering@lucent.com>
93443
93444         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93445         of the deprecated AC_CHECKING.
93446
93447 2000-07-04  Jim Meyering  <meyering@lucent.com>
93448
93449         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93450         Reported by Bruno Haible.
93451
93452 2000-07-04  Jim Meyering  <meyering@lucent.com>
93453
93454         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93455         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93456         lacks mbrtowc.
93457
93458 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93459
93460         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93461         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93462
93463 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93464         and Bruno Haible  <haible@clisp.cons.org>
93465
93466         * lib/quotearg.c (mbrtowc):
93467         Assign to *pwc, and return 1 only if result is nonzero.
93468         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93469
93470 2000-07-03  Jim Meyering  <meyering@lucent.com>
93471
93472         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93473
93474 2000-07-03  Jim Meyering  <meyering@lucent.com>
93475
93476         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93477         This is necessary to get a definition of e.g., UTMP_FILE on
93478         HP-UX 10.20.
93479         From Bob Proulx.
93480
93481 2000-07-02  Jim Meyering  <meyering@lucent.com>
93482
93483         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93484
93485         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93486         AC_LIBOBJ(function_name).
93487         * m4/chown.m4: Likewise.
93488         * m4/fnmatch.m4: Likewise.
93489         * m4/ftruncate.m4: Likewise.
93490         * m4/getgroups.m4: Likewise.
93491         * m4/getline.m4: Likewise.
93492         * m4/group-member.m4: Likewise.
93493         * m4/jm-macros.m4: Likewise.
93494         * m4/lstat.m4: Likewise.
93495         * m4/malloc.m4: Likewise.
93496         * m4/memcmp.m4: Likewise.
93497         * m4/nanosleep.m4: Likewise.
93498         * m4/putenv.m4: Likewise.
93499         * m4/realloc.m4: Likewise.
93500         * m4/regex.m4: Likewise.
93501         * m4/stat.m4: Likewise.
93502         * m4/strftime.m4: Likewise.
93503
93504 2000-07-02  Jim Meyering  <meyering@lucent.com>
93505
93506         * lib/quotearg.c (mbstate_t): Don't define here.
93507
93508 2000-07-02  Jim Meyering  <meyering@lucent.com>
93509
93510         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93511
93512 2000-07-01  Jim Meyering  <meyering@lucent.com>
93513
93514         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93515
93516 2000-07-01  Jim Meyering  <meyering@lucent.com>
93517
93518         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93519         problem.
93520
93521 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93522
93523         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93524         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93525
93526 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93527
93528         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93529         per change in ../m4/ls-mntd-fs.m4.
93530         (read_filesystem_list): Ignore symbolic links.
93531
93532 2000-06-29  Jim Meyering  <meyering@lucent.com>
93533
93534         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93535         for declaration of strcmp.
93536
93537         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93538
93539         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93540         Avoid warning by casting result to `char *' to remove `const'.
93541
93542 2000-06-28  Jim Meyering  <meyering@lucent.com>
93543
93544         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93545         included by quotearg.c, for which we perform this test.  From
93546         Bruno Haible.
93547
93548 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93549
93550         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93551         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93552         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93553
93554 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93555
93556         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93557
93558 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93559
93560         savedir now sets errno on failure and invokes xmalloc to get memory.
93561         Fix a couple of other minor bugs while we're at it.
93562
93563         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93564         (NAMLEN): Remove macro.
93565         (malloc, realloc): Remove decls.
93566         (stpcpy): Likewise.
93567         ("xalloc.h"): Include.
93568         (NAME_SIZE_DEFAULT): New macro.
93569         (savedir): Use xmalloc / xrealloc to allocate memory.
93570         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93571         Skip "" directory entries.
93572         Use strlen to calculate directory entry length, since the old method
93573         is rarely used these days and isn't worth supporting.
93574         Don't use a pointer after freeing it.
93575         Check for integer overflow when calculating allocation size.
93576         Use memcpy to copy entries, instead of stpcpy.
93577         Set errno properly when returning NULL.
93578         Check for readdir error.
93579
93580 2000-06-26  Jim Meyering  <meyering@lucent.com>
93581
93582         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93583
93584 2000-06-25  Jim Meyering  <meyering@lucent.com>
93585
93586         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93587         Linux header bug when _XOPEN_SOURCE is defined to 500.
93588
93589 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93590
93591         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93592         deficiency.
93593
93594 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93595
93596         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93597         Include xalloc.h.
93598         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93599
93600 2000-06-24  Jim Meyering  <meyering@lucent.com>
93601
93602         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93603         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93604         for which strerror does return char*, but which lacks a conveniently
93605         accessible declaration of the function.  If the compile-test says
93606         strerror_r doesn't work, then resort to a `run'-test that works on
93607         BeOS and segfaults on DEC Unix.
93608
93609 2000-06-24  Jim Meyering  <meyering@lucent.com>
93610
93611         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93612
93613 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93614
93615         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93616         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93617
93618 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93619
93620         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93621         (mbrtowc, mbstate_t): Define substitutes if
93622         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93623         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93624         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93625
93626 2000-06-23  Jim Meyering  <meyering@lucent.com>
93627
93628         * m4/afs.m4: Add missing AC_MSG_RESULT.
93629         Reported by Bruno Haible.
93630
93631         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93632         Suggestion from Bruno Haible.
93633
93634 2000-06-23  Jim Meyering  <meyering@lucent.com>
93635
93636         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93637
93638 2000-06-21  Jim Meyering  <meyering@lucent.com>
93639
93640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93641
93642 2000-06-21  Jim Meyering  <meyering@lucent.com>
93643
93644         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93645         (noinst_HEADERS): Add getstr.h.
93646
93647         * lib/getline.c (getstr): Move into a separate file.
93648         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93649         the following changes: new parameter, delim2; both delim[12]
93650         parameters have type `int', not `char'.  The latter would lose
93651         with 8-bit delimiters.
93652         * lib/getstr.h: New file.
93653
93654 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93655
93656         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93657         than 1024, return a memory chunk of least possible size, instead
93658         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93659         Use free/xmalloc instead of xrealloc to avoid copying for very long
93660         paths.
93661
93662 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93663
93664         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93665         the empty string.
93666
93667 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93668
93669         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93670         address, not strdup.  Include <stdlib.h> and don't declare free().
93671
93672 2000-06-19  Jim Meyering  <meyering@lucent.com>
93673
93674         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93675
93676 2000-06-18  Jim Meyering  <meyering@lucent.com>
93677
93678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93679
93680         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93681         `checking whether...' message to be consistent with that of the
93682         lstat test.
93683
93684 2000-06-18  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93687         Besides, these days every porting target provides a mkdir function.
93688
93689         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93690         needed. (this snippet comes from src/system.h).
93691
93692 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93693
93694         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93695
93696 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93697
93698         * lib/human.c (adjust_value): New function.
93699         (human_readable_inexact): Apply rounding style even when
93700         printing approximate values.
93701
93702 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93703
93704         * lib/human.c (human_readable_inexact): Allow an input block
93705         size that is not a multiple of the output block size, and vice versa.
93706         Reported by Piergiorgio Sartor.
93707
93708 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93709
93710         * lib/getdate.y (get_date): Apply relative times after time
93711         zone indicator, not before.  Reported by Todd A. Jacobs.
93712
93713 2000-06-13  Jim Meyering  <meyering@lucent.com>
93714
93715         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93716
93717         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93718
93719 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93720
93721         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93722
93723 2000-06-12  Jim Meyering  <meyering@lucent.com>
93724
93725         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93726         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93727         optional argument.
93728         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93729         the optional argument, `lib'.
93730
93731 2000-06-08  Jim Meyering  <meyering@lucent.com>
93732
93733         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93734
93735 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93736
93737         Rewrite largefile configuration so that we don't need to run
93738         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93739         AC_CANONICAL_HOST in configure.in -- jmm]
93740
93741         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93742         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93743         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93744         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93745         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93746         All uses changed.
93747         Instead of inspecting the output of getconf, try to compile the
93748         test program without and with the macro definition.
93749         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93750         for getconf.  Instead, check for the needed flags by compiling
93751         test programs.
93752
93753 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93754
93755         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93756
93757 2000-06-04  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93760         SunOS 4.1.4 for which gid_t is an unsigned type.
93761
93762 2000-06-03  Jim Meyering  <meyering@lucent.com>
93763
93764         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93765         now that autoconf requires that.
93766
93767         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93768         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93769         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93770
93771 2000-06-03  Jim Meyering  <meyering@lucent.com>
93772
93773         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93774
93775 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93776
93777         * m4/glibc21.m4: New file.
93778         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93779
93780 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93781
93782         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93783         newer, don't install charset.alias.
93784         * lib/config.charset: Change the Linux/glibc rules so they become empty
93785         on glibc-2.1 or newer.
93786
93787 2000-06-02  Jim Meyering  <meyering@lucent.com>
93788
93789         * lib/mountlist.c: Back out last change.  Instead, do this...
93790         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93791         me_dummy member using the same `ignore'-testing code.
93792         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93793         fs_type strings.
93794         From Mark D. Roth.
93795
93796 2000-05-29  Jim Meyering  <meyering@lucent.com>
93797
93798         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93799         mounts with the `ignore' attribute.  Based on a patch from
93800         Mark D. Roth.
93801
93802 2000-05-28  Jim Meyering  <meyering@lucent.com>
93803
93804         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93805         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93806         * m4/stat.m4: Likewise.
93807         * m4/lstat.m4: Likewise.
93808         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93809
93810         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93811         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93812
93813 2000-05-26  Jim Meyering  <meyering@lucent.com>
93814
93815         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93816
93817 2000-05-24  Jim Meyering  <meyering@lucent.com>
93818
93819         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93820         autoconf requires that.
93821         * m4/lib-check.m4: Likewise.
93822         * m4/jm-macros.m4: Likewise.
93823         * m4/strftime.m4: Likewise.
93824
93825         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93826         AC_CHECK_DECLS, now that autoconf requires that.
93827
93828 2000-05-22  Jim Meyering  <meyering@lucent.com>
93829
93830         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93831         * m4/lstat.m4: Likewise.
93832
93833 2000-05-22  Jim Meyering  <meyering@lucent.com>
93834
93835         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93836
93837 2000-05-20  Jim Meyering  <meyering@lucent.com>
93838
93839         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93840         (jm_PREREQ): Use it.
93841
93842 2000-05-18  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93845         back, too, since it may have been modified by allocate_entry.
93846         (hash_delete): Rewrite to use neither the assignment operator
93847         nor the comma operator in an if-expression.
93848
93849 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93850
93851         * lib/closeout.c:
93852         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93853         Remove; no longer needed.
93854         "quotearg.h": Add include.
93855         (file_name): Do not bother to explicitly initialize to NULL; it's less
93856         efficient on some hosts.
93857         (close_stdout_status): Remove test as to whether stdout was already
93858         closed; it breaks for the case "echo x | sort >&-".
93859         Quote file name colons.
93860         Do not assume that _("write error") lacks format strings.
93861
93862 2000-05-15  Jim Meyering  <meyering@lucent.com>
93863
93864         * lib/version-etc.c (version_etc_copyright): Update the copyright
93865         string used in all --version output.
93866
93867 2000-05-14  Jim Meyering  <meyering@lucent.com>
93868
93869         * lib/closeout.c (close_stdout_set_file_name): New function.
93870         (close_stdout_status): Use new file-scoped global.
93871         Return right away if fstat says the stdout file descriptor is invalid.
93872         * lib/closeout.h (close_stdout_set_file_name): Declare.
93873
93874 2000-05-10  Jim Meyering  <meyering@lucent.com>
93875
93876         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93877         (close_stdout_set_status): New function.
93878         * lib/closeout.h (close_stdout_set_status): Declare.
93879
93880 2000-05-09  Jim Meyering  <meyering@lucent.com>
93881
93882         * m4/gettext.m4: Rename this...
93883         * m4/libintl.m4: ...to this.
93884
93885 2000-05-08  Jim Meyering  <meyering@lucent.com>
93886
93887         * lib/long-options.c: Don't include closeout.h.
93888         (parse_long_options): Don't call close_stdout for --version.
93889
93890 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93891
93892         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93893         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93894         2.1.3 bug.  This avoids a clash when files like regex.c define
93895         _GNU_SOURCE.
93896
93897 2000-05-06  Jim Meyering  <meyering@lucent.com>
93898
93899         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93900         (AC_REPLACE_FUNCS): Add strnlen.
93901
93902         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93903         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93904
93905         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93906         AC_SEARCH_LIBS call for nanosleep.
93907         (LIB_NANOSLEEP): Set and AC_SUBST.
93908
93909 2000-05-06  Jim Meyering  <meyering@lucent.com>
93910
93911         * lib/strnlen.c: Undefine __strnlen and strnlen.
93912         [!weak_alias]: Define __strnlen to strnlen.
93913
93914         * lib/atexit.c: New file, from libiberty.
93915
93916 2000-05-06  Jim Meyering  <meyering@lucent.com>
93917
93918         * lib/closeout.c (close_stdout_status): Also check for errors on the
93919         stderr stream.
93920
93921 2000-05-05  Jim Meyering  <meyering@lucent.com>
93922
93923         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93924         AC_SEARCH_LIBS call for clock_gettime.
93925         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93926
93927         * m4/search-libs.m4: Update from autoconf.
93928
93929         su doesn't work on Solaris 2.6.
93930         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93931         <shadow.h>.  Reported by Dragos Harabor.
93932
93933 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93934
93935         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93936         memcpy instead of xmalloc, xrealloc, path_concat.
93937         (locale_charset): Treat empty environment variables as absent.
93938         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93939
93940 2000-05-04  Jim Meyering  <meyering@lucent.com>
93941
93942         * lib/getopt.c: Update from glibc.
93943         * lib/obstack.c: Likewise.
93944         * lib/obstack.h: Likewise.
93945         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93946         file
93947
93948         * lib/regex.h: Likewise.
93949         * lib/strndup.c: Likewise.
93950         * lib/strnlen.c: New file, from glibc.
93951
93952 2000-05-03  Jim Meyering  <meyering@lucent.com>
93953
93954         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93955
93956 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93957
93958         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93959         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93960         compile-time test, rather than inspecting host and OS, to
93961         decide whether to define _LARGEFILE_SOURCE.
93962
93963 2000-05-01  Jim Meyering  <meyering@lucent.com>
93964
93965         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93966
93967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93968         Based on a patch from Bruno Haible.
93969
93970 2000-05-01  Jim Meyering  <meyering@lucent.com>
93971
93972         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93973
93974 2000-04-29  Jim Meyering  <meyering@lucent.com>
93975
93976         * lib/path-concat.c: Declare strdup only if it's not defined.
93977         * lib/canon-host.c: Likewise.
93978
93979 2000-04-28  Jim Meyering  <meyering@lucent.com>
93980
93981         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93982         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93983         is included first, then limits.h is included by locale.h by libintl.h.
93984         From John David Anglin.
93985
93986 2000-04-25  Jim Meyering  <meyering@lucent.com>
93987
93988         * lib/makepath.c (S_IRWXUGO): Define.
93989         (make_path): Always perform explicit chmod if MODE specifies any
93990         of the `special' permission bits.  Prompted by a bug report against
93991         install from Mate Wierdl and Joost van Baal.
93992
93993 2000-04-18  Jim Meyering  <meyering@lucent.com>
93994
93995         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93996         (jm_PREREQ): Use it.
93997
93998 2000-04-18  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/README: New file.
94001
94002         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94003         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94004
94005 2000-04-17  Jim Meyering  <meyering@lucent.com>
94006
94007         Get it right :-)
94008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94009         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94010         Suggestion from Akim Demaille.
94011
94012 2000-04-17  Jim Meyering  <meyering@lucent.com>
94013
94014         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94015         the definition of it to rpl_strftime also defined-away the system's
94016         declaration.
94017
94018 2000-04-15  Jim Meyering  <meyering@lucent.com>
94019
94020         Use `C' to denote so-called `contiguous' files, the same way
94021         that tar does.
94022         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94023         (ftypelet): Use S_ISCTG.
94024         From Michael Deutschmann.
94025
94026 2000-04-14  Jim Meyering  <meyering@lucent.com>
94027
94028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94029         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94030         clobbered.
94031
94032 2000-04-14  Jim Meyering  <meyering@lucent.com>
94033
94034         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94035
94036 2000-04-13  Jim Meyering  <meyering@lucent.com>
94037
94038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94039         AH_VERBATIM to insert required #ifndef into config.h.in.
94040         Suggestion from Akim Demaille.
94041
94042 2000-04-12  Jim Meyering  <meyering@lucent.com>
94043
94044         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94045         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94046         Christian Krackowizer.
94047
94048         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94049         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94050         (AC_SYS_LARGEFILE): Require.
94051         (AM_C_PROTOTYPES): Require.
94052
94053 2000-04-08  Jim Meyering  <meyering@lucent.com>
94054
94055         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94056         names don't conflict.  Reported by Eli Zaretskii.
94057
94058 2000-04-07  Jim Meyering  <meyering@lucent.com>
94059
94060         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94061         sys/types.h, to work around system header problems on AIX 3.2.5.
94062         From Bruno Haible.
94063
94064 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94065
94066         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94067         bug.  Deal with the different error behavior of Irix iconv.
94068
94069 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94070
94071         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94072         IRIX if the installer said otherwise.
94073
94074 2000-04-05  Jim Meyering  <meyering@lucent.com>
94075
94076         Portability tweaks required for ultrix4.3.
94077         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94078         (jm_CHECK_DECLS): Add getutent to the list of functions.
94079         (_jm_DECL_HEADERS): Add utmpx.h.
94080         From John David Anglin.
94081
94082         * m4/strftime.m4: Back out the 2000-04-02 change.
94083         Instead of that change, simply undefine putenv in the test program.
94084
94085 2000-04-05  Jim Meyering  <meyering@lucent.com>
94086
94087         Portability tweaks required for ultrix4.3.
94088         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94089         getutent.
94090         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94091         * lib/canon-host.c: Declare strdup.
94092         * lib/path-concat.c: Likewise.
94093         From John David Anglin.
94094
94095 2000-04-04  Jim Meyering  <meyering@lucent.com>
94096
94097         Be more DOS 8.3-friendly.
94098         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94099         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94100         * lib/Makefile.am: Reflect renaming.
94101         Reported by Eli Zaretskii.
94102
94103         Use a temporary file name that won't clash with `charset.alias'
94104         in the DOS 8.3 name space.
94105         * lib/Makefile.am (charset_tmp): Define.
94106         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94107         (uninstall-local): Likewise.
94108         Reported by Eli Zaretskii.
94109
94110 2000-04-03  Jim Meyering  <meyering@lucent.com>
94111
94112         * m4/gettext.m4: Fix typo in comment.
94113
94114         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94115         textutils/configure.in).  Suggestion from Paul Eggert.
94116         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94117
94118 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94119
94120         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94121         variable in the shell rather than using putenv, which isn't
94122         portable.  This avoids the configure-time inter-test dependency
94123         on the potentially-renamed putenv function.
94124
94125 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94126
94127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94128         before checking struct stat.st_blksize, so that
94129         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94130
94131 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94132
94133         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94134         since strftime.c uses HAVE_STRFTIME to decide whether to use
94135         the underlying strftime.
94136
94137 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94138
94139         * lib/time/strftime.c (my_strftime): Make sure we call the system
94140         strftime, not ourselves, when invoking the underlying strftime.
94141
94142 2000-03-24  Jim Meyering  <meyering@lucent.com>
94143
94144         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94145         (charset_alias): Define.
94146         (install-exec-local): Factor out common code.
94147         (uninstall-local): Split lines longer than 80.
94148         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94149         (SUFFIXES): Define.
94150         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94151         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94152
94153 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94154
94155         * lib/config.charset: Output a line containing "Packages using this
94156         file".
94157         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94158         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94159         ref-del.sed): New rules.
94160
94161 2000-03-17  Jim Meyering  <meyering@lucent.com>
94162
94163         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94164         Otherwise, include <strings.h>
94165
94166 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94167
94168         * lib/unicodeio.c (utf8_wctomb): New function.
94169         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94170         format instead of in UCS-4 with platform dependent endianness.
94171
94172 2000-03-10  Jim Meyering  <meyering@lucent.com>
94173
94174         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94175         From Marco Franzen.
94176
94177 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94178
94179         * lib/savedir.c (savedir): Work even if directory size is
94180         negative; this can happen with some screwy NFS configurations.
94181
94182 2000-03-06  Jim Meyering  <meyering@lucent.com>
94183
94184         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94185         if it's NULL (because we ran out of memory).  From Bruno Haible.
94186
94187 2000-03-05  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/localcharset.c ("path-concat.h"): Include.
94190         (get_charset_aliases): Use path_concat instead of ANSI string
94191         concatenation.
94192
94193         * lib/unicodeio.h (PARAMS): Define.
94194         Use it to guard prototype.
94195
94196 2000-03-04  Jim Meyering  <meyering@lucent.com>
94197
94198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94199         for lib/localcharset.c.
94200
94201 2000-03-04  Jim Meyering  <meyering@lucent.com>
94202
94203         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94204         installing into it.
94205         (uninstall-local): Uncomment this rule so `make distcheck' works
94206         once again.
94207
94208         * lib/unicodeio.c (<errno.h>): Include it.
94209         (errno): Declare if not defined.
94210
94211         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94212
94213         * lib/config.charset: New version, incorporating remarks from a linux
94214         i18n mailing list.  From Bruno Haible.
94215
94216 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94217
94218         * m4/codeset.m4: New file.
94219         * m4/iconv.m4: New file.
94220         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94221
94222 2000-03-03  Jim Meyering  <meyering@lucent.com>
94223
94224         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94225
94226 2000-03-02  Jim Meyering  <meyering@lucent.com>
94227
94228         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94229         the messages come out on separate lines.
94230
94231         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94232         rather than jm_CHECK_DECLARATIONS.
94233         * m4/decl.m4: Remove now-unused file.
94234
94235         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94236         geteuid.
94237
94238 2000-03-02  Jim Meyering  <meyering@lucent.com>
94239
94240         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94241
94242 2000-03-01  Jim Meyering  <meyering@lucent.com>
94243
94244         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94245         * lib/unicodeio.c: Likewise.
94246
94247 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94248
94249         * lib/config.charset: New file.
94250         * lib/localcharset.c: New file.
94251         * lib/unicodeio.h, lib/unicodeio.c: New files.
94252         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94253         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94254         (noinst_HEADERS): Add unicodeio.h.
94255         (all-local, install-exec-local, charset.alias): New targets.
94256
94257 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94258
94259         * lib/quotearg.c (ALERT_CHAR): New macro.
94260         (quotearg_buffer_restyled): Use it.
94261
94262 2000-02-27  Jim Meyering  <meyering@lucent.com>
94263
94264         * m4/check-decl.m4: Add getenv to the list.
94265
94266 2000-02-27  Jim Meyering  <meyering@lucent.com>
94267
94268         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94269         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94270
94271         * lib/backupfile.c: Guard inclusion of stdlib.h with
94272         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94273         Declare malloc if needed.
94274
94275         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94276         `#ifndef HAVE_DECL..'
94277         now that autoconf always defines the HAVE_DECL_ symbols.
94278         * lib/human.c: Likewise.
94279         * lib/same.c: Likewise.
94280         * lib/strtoumax.c: Likewise.
94281
94282         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94283         declaration check was not run.
94284         * lib/hash.c: Likewise.
94285         * lib/human.c: Likewise.
94286         * lib/same.c: Likewise.
94287         * lib/strtoumax.c: Likewise.
94288
94289         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94290         `.', then first look up the entire `.'-containing string as a login
94291         name.
94292
94293 2000-02-23  Jim Meyering  <meyering@lucent.com>
94294
94295         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94296         in place of my hack.
94297
94298 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94299
94300         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94301         (textint): New typedef.
94302         (parser_control): Member year changed from int to textint.
94303         All uses changed.
94304         (YYSTYPE): Removed; replaced by %union with int and textint members.
94305         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94306         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94307         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94308         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94309         (date, number, to_year): Use width of number in digits, not its value,
94310         to determine whether it's a 2-digit year, or a 2-digit time.
94311         (yylex): Store number of digits of numeric tokens.
94312         Reported by John Kendall.
94313
94314         (parser_control): Changed from struct parser_control to typedef (for
94315         consistency).  All uses changed.
94316
94317         (tID): Removed; not used.
94318         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94319
94320 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94321
94322         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94323         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94324
94325 2000-02-12  Jim Meyering  <meyering@lucent.com>
94326
94327         * lib/userspec.c (ISDIGIT): Define it.
94328         (isdigit): Remove definition.
94329         (is_number): Use ISDIGIT, not isdigit.
94330         <libintl.h>: Include.
94331         (_ and N_): Define.
94332         (parse_user_spec): Mark translatable strings.
94333
94334 2000-02-10  Jim Meyering  <meyering@lucent.com>
94335
94336         With these changes, nanosleep.[ch] are finally enough like the other
94337         lib/* replacement files to compile on a few more losing systems.
94338
94339         * lib/nanosleep.h: Don't include config.h.
94340         Remove prototype from declaration of nanosleep.
94341         (PARAMS): Remove now-unneeded definition.
94342         * lib/nanosleep.c: #undef nanosleep.
94343         (rpl_nanosleep): Rename from nanosleep.
94344
94345 2000-02-10  Jim Meyering  <meyering@lucent.com>
94346
94347         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94348         gnu_nanosleep to rpl_nanosleep.
94349
94350 2000-02-09  Jim Meyering  <meyering@lucent.com>
94351
94352         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94353         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94354
94355 2000-02-08  Akim Demaille  <akim@epita.fr>
94356
94357         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94358         `[' and `]' and remove uses of `changequote'.
94359         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94360         (AC_SYS_LARGEFILE): Likewise.
94361         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94362         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94363         of changequote.
94364         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94365         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94366         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94367         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94368
94369 2000-02-05  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94372         Remove explicit use of AC_HEADER_TIME.  It is required by
94373         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94374         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94375         in autoconf whereby the expansion of the latter ended up preceding
94376         the expansion of its prerequisite, AC_HEADER_TIME.
94377         Reported by Volker Borchert.
94378
94379 2000-02-03  Jim Meyering  <meyering@lucent.com>
94380
94381         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94382
94383 2000-02-03  Jim Meyering  <meyering@lucent.com>
94384
94385         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94386         rather than with `#if HAVE_UTMPNAME'.
94387
94388 2000-02-02  Jim Meyering  <meyering@lucent.com>
94389
94390         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94391         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94392         Reported by Eli Zaretskii.
94393
94394 2000-02-01  Jim Meyering  <meyering@lucent.com>
94395
94396         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94397
94398 2000-01-31  Jim Meyering  <meyering@lucent.com>
94399
94400         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94401         functions.  Add the time.h and sys/time.h headers along with the
94402         AC_REQUIRE'ment of AC_HEADER_TIME.
94403
94404 2000-01-31  Jim Meyering  <meyering@lucent.com>
94405
94406         * lib/nanosleep.h (nanosleep): Guard declaration with
94407         `#if ! HAVE_DECL_NANOSLEEP'.
94408         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94409         the declaration in that vendor's sys/timers.h.
94410         Reported by Christian Krackowizer.
94411
94412         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94413         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94414         (ISPRINT): Likewise.
94415         Reported by Tom Tromey.
94416
94417 2000-01-30  Jim Meyering  <meyering@lucent.com>
94418
94419         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94420
94421         * m4/prereq.m4 (utmp_includes): Define.
94422         Check for ut_user and ut_name members in both struct utmpx
94423         and struct utmp.
94424
94425 2000-01-30  Jim Meyering  <meyering@lucent.com>
94426
94427         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94428         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94429         header files where only utmpx.ut_user is declared.
94430
94431         * lib/readutmp.h (UT_USER): Define.
94432
94433 2000-01-29  Jim Meyering  <meyering@lucent.com>
94434
94435         * m4/lib-check.m4: New file containing library-related checks from
94436         fileutils and sh-utils (textutils had none).
94437
94438 2000-01-28  Jim Meyering  <meyering@lucent.com>
94439
94440         * m4/perl.m4: Change format of warning message to look more like that
94441         from the missing script.  Suggestion from François Pinard.
94442
94443 2000-01-25  Jim Meyering  <meyering@lucent.com>
94444
94445         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94446         well as time.h in the compile check.
94447         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94448         Fix typo in cross-compiling case: s/yes/no/.
94449
94450 2000-01-23  Jim Meyering  <meyering@lucent.com>
94451
94452         * m4/jm-macros.m4: Move df-related tests here from
94453         fileutils/configure.in
94454
94455         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94456         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94457
94458         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94459         s/space/ac_fsusage_space/.
94460         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94461
94462         * m4/ftruncate.m4: New file (derived from part of
94463         fileutils/configure.in).
94464         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94465         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94466
94467         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94468         AC_SUBST these here, rather than just in sh-util/configure.in, so
94469         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94470         all the same.
94471         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94472         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94473         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94474         (AC_SUBST(POW_LIBM)): Likewise.
94475         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94476
94477 2000-01-23  Jim Meyering  <meyering@lucent.com>
94478
94479         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94480         obstack.c.
94481
94482 2000-01-22  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94485
94486         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94487
94488         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94489         configure.in
94490         (AC_CHECK_HEADERS): Likewise for sh-utils.
94491         (AC_CHECK_HEADERS): Likewise for textutils.
94492         Merge the three lists of headers.
94493
94494         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94495         from fileutils' configure.in.
94496
94497         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94498         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94499         check-decl.m4.
94500
94501         * m4/check-decl.m4: Use #if rather than #ifdef.
94502         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94503         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94504         (_jm_DECL_HEADERS): Define new function.
94505         (jm_CHECK_DECLARATIONS): Require it.
94506
94507 2000-01-22  Jim Meyering  <meyering@lucent.com>
94508
94509         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94510         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94511         Required for some AIX systems.  Reported by Christian Krackowizer.
94512         [TESTING] (main): New function.
94513
94514         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94515         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94516         letters.
94517
94518         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94519         iswprint.
94520
94521         * lib/strverscmp.c (ISDIGIT): Define.
94522         (strverscmp): Use ISDIGIT, not isdigit.
94523
94524 2000-01-19  Jim Meyering  <meyering@lucent.com>
94525
94526         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94527         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94528         defines `struct timespec' in <sys/time.h>
94529
94530         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94531         Thanks to Akim for explaining.
94532
94533 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94534
94535         * lib/nanosleep.c (nanosleep):
94536         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94537         POSIX.1 doesn't require SA_INTERRUPT and some systems
94538         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94539         it's been part of POSIX.1 since day 1 (in 1988).
94540
94541 2000-01-17  Jim Meyering  <meyering@lucent.com>
94542
94543         * lib/interlock: Remove unused file.  Reported by François Pinard.
94544
94545 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94546
94547         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94548         alert, backslash, formfeed, and vertical tab unnecessarily in
94549         shell quoting style.
94550
94551 2000-01-16  Jim Meyering  <meyering@lucent.com>
94552
94553         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94554         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94555         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94556         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94557
94558 2000-01-16  Jim Meyering  <meyering@lucent.com>
94559
94560         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94561         because the latter didn't work.
94562
94563 2000-01-15  Jim Meyering  <meyering@lucent.com>
94564
94565         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94566         (AC_REPLACE_FUNCS): Add memcpy and memset.
94567         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94568         Add strpbrk.
94569         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94570
94571 2000-01-12  Jim Meyering  <meyering@lucent.com>
94572
94573         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94574         (jm_PREREQ): Use it.
94575         (jm_PREREQ_READUTMP): New macro.
94576         (jm_PREREQ): Use it.
94577
94578 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94579
94580         Quote multibyte characters correctly.
94581         * m4/c-bs-a.m4: New file.
94582         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94583         (jm_PREREQ): Use it.
94584
94585 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94586
94587         * m4/uintmax_t.m4: Port to autoconf 2.13.
94588
94589 2000-01-08  Jim Meyering  <meyering@ascend.com>
94590
94591         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94592         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94593
94594 2000-01-04  Jim Meyering  <meyering@ascend.com>
94595
94596         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94597         jm_STRUCT_DIRENT_D_TYPE.
94598         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94599         jm_STRUCT_DIRENT_D_INO.
94600         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94601         jm_STRUCT_UTIMBUF.
94602         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94603         renamings.
94604         * m4/utime.m4: Likewise.
94605
94606         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94607         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94608
94609 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94610
94611         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94612         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94613
94614 2000-01-02  Jim Meyering  <meyering@ascend.com>
94615
94616         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94617         remember if this is necessary.
94618
94619 1999-12-26  Jim Meyering  <meyering@ascend.com>
94620
94621         * m4/jm-macros.m4: Use it here.
94622         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94623
94624 1999-12-23  Jim Meyering  <meyering@ascend.com>
94625
94626         * m4/jm-macros.m4: Check for clock_gettime (moved from
94627         fileutils/configure.in)
94628         Check for gettimeofday.
94629
94630 1999-12-20  Jim Meyering  <meyering@ascend.com>
94631
94632         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94633         autoconf-2.14a-1999-12-20.
94634
94635 1999-12-19  Jim Meyering  <meyering@ascend.com>
94636
94637         * m4/lstat-slash.m4: New file.
94638         * m4/jm-macros.m4: Use the new macro:
94639         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94640
94641 1999-12-07  Jim Meyering  <meyering@ascend.com>
94642
94643         * m4/perl.m4: Require that File::Compare be available, too.
94644         Too many systems seem to lack it.
94645
94646         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94647         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94648
94649 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94650
94651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94652         problem with the QNX 4.25 shell, which doesn't propagate exit
94653         status of failed commands inside shell assignments.
94654
94655 1999-11-17  Jim Meyering  <meyering@ascend.com>
94656
94657         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94658
94659 1999-11-07  Jim Meyering  <meyering@ascend.com>
94660
94661         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94662
94663 1999-11-06  Jim Meyering  <meyering@ascend.com>
94664
94665         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94666         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94667
94668 1999-11-05  Jim Meyering  <meyering@ascend.com>
94669
94670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94671         configure.in of textutils, fileutils, and sh-utils into this one
94672         (shared between those packages) file.
94673         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94674         AC_STRUCT_ST_BLKSIZE.
94675
94676 1999-11-03  Jim Meyering  <meyering@ascend.com>
94677
94678         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94679         of AC_CHECK_TYPE checks includes unistd.h.
94680         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94681         Suggestion from Akim Demaille.
94682
94683 1999-10-30  Jim Meyering  <meyering@ascend.com>
94684
94685         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94686         m4-quoted string.
94687         * m4/ls-mntd-fs.m4: Likewise.
94688         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94689         * m4/jm-winsz1.m4: Likewise.
94690
94691         * m4/const.m4: Remove file, since the fix made it into the experimental
94692         version of autoconf.
94693         * m4/mktime.m4: Likewise.
94694
94695         * m4/check-type.m4: Remove file, now that the latest version of
94696         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94697
94698         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94699         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94700         AC_CHECK_TYPE.
94701
94702 1999-10-04  Jim Meyering  <meyering@ascend.com>
94703
94704         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94705
94706 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94707
94708         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94709         2.95.1 bug with HP-UX 10.20.
94710
94711 1999-09-17  Jim Meyering  <meyering@ascend.com>
94712
94713         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94714         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94715         due to missing strdup (against sh-utils-2.0).
94716
94717 1999-08-29  Jim Meyering  <meyering@ascend.com>
94718
94719         * m4/jm-macros.m4: Require jm_BISON.
94720         * m4/bison.m4: New file.
94721
94722 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94723
94724         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94725         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94726
94727 1999-08-05  Jim Meyering  <meyering@ascend.com>
94728
94729         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94730         to avoid conflicts with `conftest' on 8+3 filesystems.
94731         Suggestion from Eli Zaretskii.
94732
94733 1999-08-04  Jim Meyering  <meyering@ascend.com>
94734
94735         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94736         fileutils and sh-utils (textutils's getline test was inadequate).
94737         (AM_FUNC_GETLINE): Run this test.
94738         (AC_CHECK_FUNCS): Check for getdelim.
94739         Reported by Bob Proulx.
94740
94741 1999-08-02  Jim Meyering  <meyering@ascend.com>
94742
94743         * m4/jm-macros.m4: Add a comment.
94744
94745 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94746
94747         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94748         <inttypes.h> defines strtoumax as a macro (and not as a
94749         function).
94750
94751 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94752
94753         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94754         that we can shift, multiply and divide unsigned long long
94755         values; Ultrix cc can't do it.
94756
94757 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94758
94759         * m4/mktime.m4: New file, which is a preview of what should appear
94760         in the next public autoconf release.
94761
94762 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94763
94764         * m4/lfs.m4: Remove this file.
94765         * m4/largefile.m4: New file.  It contains the old contents of
94766         lfs.m4, except that all names with prefix AC_LFS have been
94767         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94768         compatible with future autoconf versions.  Also, some minor m4
94769         quoting problems have been fixed.
94770
94771 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94772
94773         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94774         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94775         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94776         and simplify the shell code.
94777
94778 1999-08-01  Jim Meyering  <meyering@ascend.com>
94779
94780         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94781         m4.
94782
94783 1999-07-20  Jim Meyering  <meyering@ascend.com>
94784
94785         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94786
94787 1999-07-15  Jim Meyering  <meyering@ascend.com>
94788
94789         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94790
94791 1999-05-22  Jim Meyering  <meyering@ascend.com>
94792
94793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94794
94795 1999-05-20  Jim Meyering  <meyering@ascend.com>
94796
94797         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94798         Add a colon after each `then' in case $4 is empty.
94799
94800 1999-05-16  Jim Meyering  <meyering@ascend.com>
94801
94802         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94803
94804 1999-05-10  Jim Meyering  <meyering@ascend.com>
94805
94806         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94807
94808         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94809         AC_FUNC_MKTIME.
94810
94811 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94812
94813         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94814
94815 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94816
94817         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94818         not CPPFLAGS, so that linking works correctly in IRIX.
94819
94820 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94821
94822         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94823
94824 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94825
94826         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94827         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94829         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94830         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94831
94832         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94833
94834 1999-04-20  Jim Meyering  <meyering@ascend.com>
94835
94836         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94837         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94838         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94839
94840 1999-04-18  Jim Meyering  <meyering@ascend.com>
94841
94842         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94843         * m4/jm-macros.m4: Use it.
94844
94845 1999-04-06  Jim Meyering  <meyering@ascend.com>
94846
94847         * m4/strftime.m4: Remove test for %f.
94848
94849 1999-03-29  Jim Meyering  <meyering@ascend.com>
94850
94851         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94852         superset of the AC_TYPE_* checks in the textutils, fileutils,
94853         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94854         AC_TYPE_PID_T.
94855
94856 1999-03-28  Jim Meyering  <meyering@ascend.com>
94857
94858         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94859         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94860         replaced e.g., in the *.sh files of the sh-utils.
94861
94862 1999-03-20  Jim Meyering  <meyering@ascend.com>
94863
94864         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94865         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94866         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94867
94868 1999-03-19  Jim Meyering  <meyering@ascend.com>
94869
94870         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94871
94872 1999-03-12  Jim Meyering  <meyering@ascend.com>
94873
94874         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94875
94876 1999-03-07  Jim Meyering  <meyering@ascend.com>
94877
94878         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94879         declared.
94880
94881 1999-02-17  Jim Meyering  <meyering@ascend.com>
94882
94883         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94884         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94885
94886 1999-02-07  Jim Meyering  <meyering@ascend.com>
94887
94888         * m4/group-member.m4: New file -- extracted from sh-utils'
94889         configure.in.
94890
94891         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94892         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94893
94894 1999-02-06  Jim Meyering  <meyering@ascend.com>
94895
94896         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94897         * m4/fnmatch.m4: Likewise.
94898         * m4/getgroups.m4: Likewise.
94899         * m4/lstat.m4: Likewise.
94900         * m4/malloc.m4: Likewise.
94901         * m4/putenv.m4: Likewise.
94902         * m4/realloc.m4: Likewise.
94903         * m4/regex.m4: Likewise.
94904         * m4/stat.m4: Likewise.
94905         * m4/strftime.m4: Likewise.
94906         Suggestion from Alain Magloire.
94907
94908         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94909         * m4/fnmatch.m4: Likewise.
94910         * m4/getgroups.m4: Likewise.
94911         * m4/getline.m4: Likewise.
94912         * m4/lstat.m4: Likewise.
94913         * m4/malloc.m4: Likewise.
94914         * m4/memcmp.m4: Likewise.
94915         * m4/putenv.m4: Likewise.
94916         * m4/realloc.m4: Likewise.
94917         * m4/regex.m4: Likewise.
94918         * m4/stat.m4: Likewise.
94919         * m4/strftime.m4: Likewise.
94920         Suggestion from Alain Magloire.
94921
94922         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94923         an argument.
94924
94925         * m4/regex.m4: Add a run-time Test for proper operation of
94926         re_compile_pattern.
94927
94928 1999-01-31  Jim Meyering  <meyering@ascend.com>
94929
94930         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94931
94932 1999-01-30  Jim Meyering  <meyering@ascend.com>
94933
94934         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94935
94936         * m4/jm-mktime.m4: Make this a wrapper around the official
94937         AM_FUNC_MKTIME rather than my private copy, now that the official one
94938         is up to date.
94939         * m4/mktime.m4: Remove file.
94940
94941         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94942         * m4/uptime.m4: Likewise.
94943         * m4/uintmax_t.m4: Likewise.
94944
94945 1999-01-28  Jim Meyering  <meyering@ascend.com>
94946
94947         * m4/jm-macros.m4: Use jm_AFS.
94948         * m4/afs.m4: New file (from fileutils' configure.in).
94949
94950         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94951         * m4/chown.m4: Likewise.
94952         * m4/d-ino.m4: Likewise.
94953         * m4/d-type.m4: Likewise.
94954         * m4/fnmatch.m4: Likewise.
94955         * m4/getgroups.m4: Likewise.
94956         * m4/gettext.m4: Likewise.
94957         * m4/jm-mktime.m4: Likewise.
94958         * m4/jm-winsz2.m4: Likewise.
94959         * m4/lcmessage.m4: Likewise.
94960         * m4/ls-mntd-fs.m4: Likewise.
94961         * m4/malloc.m4: Likewise.
94962         * m4/memcmp.m4: Likewise.
94963         * m4/putenv.m4: Likewise.
94964         * m4/realloc.m4: Likewise.
94965         * m4/st_mtim.m4: Likewise.
94966         * m4/strftime.m4: Likewise.
94967
94968 1999-01-16  Jim Meyering  <meyering@ascend.com>
94969
94970         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94971         (ARGMATCH_DIE_DECL): Define.
94972
94973 1999-01-12  Jim Meyering  <meyering@ascend.com>
94974
94975         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94976         Reported by Lars Hecking.
94977
94978 1999-01-10  Jim Meyering  <meyering@ascend.com>
94979
94980         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94981         gross kludge.
94982         * m4/inttypes_h.m4: Likewise.
94983         * m4/lstat.m4: Likewise.
94984         * m4/malloc.m4: Likewise.
94985         * m4/readdir.m4: Likewise.
94986         * m4/realloc.m4: Likewise.
94987         * m4/st_dm_mode.m4: Likewise.
94988         * m4/stat.m4: Likewise.
94989         * m4/utimbuf.m4: Likewise.
94990         * m4/utimes.m4: Likewise.
94991
94992         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94993         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94994         comments in config.h.in are meaningful.
94995
94996         * m4/jm-macros.m4: Require autoconf-2.13 here.
94997
94998         * m4/regex.m4: By default, don't use the included regex.c on systems
94999         with glibc 2.  Suggestion from Uli Drepper.
95000
95001 1999-01-02  Jim Meyering  <meyering@ascend.com>
95002
95003         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95004
95005 1998-12-18  Jim Meyering  <meyering@ascend.com>
95006
95007         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95008         Based on a suggestion from Lars Hecking.
95009
95010 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95011
95012         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95013
95014 1998-11-16  Jim Meyering  <meyering@ascend.com>
95015
95016         * m4/lfs.m4: Double-quote the `uname...` expression.
95017
95018 1998-11-14  Jim Meyering  <meyering@ascend.com>
95019
95020         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95021         * m4/stat.m4: Likewise.
95022
95023 1998-11-03  Jim Meyering  <meyering@ascend.com>
95024
95025         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95026         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95027
95028 1998-10-18  Jim Meyering  <meyering@ascend.com>
95029
95030         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95031
95032 1998-10-17  Jim Meyering  <meyering@ascend.com>
95033
95034         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95035         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95036         calls for those previously hard-coded headers.  Instead, take a new
95037         parameter.
95038         (jm_CHECK_DECLARATIONS): Reflect interface change.
95039         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95040         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95041
95042         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95043
95044 1998-10-14  Jim Meyering  <meyering@ascend.com>
95045
95046         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95047         instead of "TZ=America/Vancouver".  From Paul Eggert.
95048
95049 1998-10-11  Jim Meyering  <meyering@ascend.com>
95050
95051         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95052         This adds a test for a recently added compatibility fix for mktime.c.
95053         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95054
95055 1998-09-27  Jim Meyering  <meyering@ascend.com>
95056
95057         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95058
95059         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95060         ../configure.in, including a change from Gordon Matzigkeit to allow
95061         cross-compiling for the Hurd.
95062
95063         * m4/glibc.m4: New file/macro to test for the GNU C Library
95064         versions 1 and 2.  From Gordon Matzigkeit.
95065         Indent.
95066
95067 1998-09-21  Jim Meyering  <meyering@ascend.com>
95068
95069         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95070
95071 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95072
95073         Port nanosecond-resolution times to UnixWare 2.1.2 and
95074         pedantic Solaris 2.6.
95075
95076         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95077         AC_STRUCT_ST_MTIM.
95078         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95079         Generate name of ns member, instead of just 1 or undef.
95080         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95081
95082 1998-08-15  Jim Meyering  <meyering@ascend.com>
95083
95084         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95085         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95086         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95087         instead of jm_TYPE_SSIZE_T.
95088
95089 1998-08-12  Jim Meyering  <meyering@ascend.com>
95090
95091         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95092
95093 1998-08-02  Jim Meyering  <meyering@ascend.com>
95094
95095         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95096         in acconfig.h manually.
95097
95098 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95099
95100         * m4/st_mtim.m4: New file.
95101
95102 1998-07-28  Jim Meyering  <meyering@ascend.com>
95103
95104         * m4/utimes.m4: Undef stat.
95105
95106 1998-07-25  Jim Meyering  <meyering@ascend.com>
95107
95108         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95109         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95110
95111 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95112
95113         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95114         uid and gid actually remain unchanged.
95115
95116 1998-07-07  Jim Meyering  <meyering@ascend.com>
95117
95118         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95119
95120 1998-07-04  Jim Meyering  <meyering@ascend.com>
95121
95122         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95123         to prove that this macro can be used in packages without regex.c.
95124
95125 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95126
95127         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95128         is to be used.
95129
95130 1998-07-03  Jim Meyering  <meyering@ascend.com>
95131
95132         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95133
95134         * m4/gettext.m4: New file -- from gettext-0.10.35.
95135         * m4/lcmessage.m4: Likewise.
95136         * m4/progtest.m4: Likewise.
95137
95138         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95139         * m4/jm-macros.m4: Require the new macro.
95140
95141 1998-06-29  Jim Meyering  <meyering@ascend.com>
95142
95143         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95144         for the definition of NGROUPS (used in a system header included
95145         by sys/mount.h).
95146
95147 1998-06-28  Jim Meyering  <meyering@ascend.com>
95148
95149         * m4/ls-mntd-fs.m4: New file.
95150         * m4/fstypename.m4: New file.
95151
95152         * m4/jm-macros.m4: Require the new macro.
95153         * m4/jm-glibc-io.m4: New file.
95154
95155 1998-05-19  Jim Meyering  <meyering@ascend.com>
95156
95157         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95158         * m4/lchown.m4: New file.
95159
95160         * m4/Makefile.am.in: New file.
95161         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95162
95163 1998-05-14  Jim Meyering  <meyering@ascend.com>
95164
95165         * m4/Makefile.am (EXTRA_DIST): Add them.
95166         * m4/jm-macros.m4: New file.
95167         * m4/utimbuf.m4: New file.
95168
95169 1998-05-12  Jim Meyering  <meyering@ascend.com>
95170
95171         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95172
95173 1998-05-11  Jim Meyering  <meyering@ascend.com>
95174
95175         * m4/isc-posix.m4: New file.
95176
95177 1998-05-10  Jim Meyering  <meyering@ascend.com>
95178
95179         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95180
95181 1998-05-09  Jim Meyering  <meyering@ascend.com>
95182
95183         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95184         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95185         with automake.
95186
95187         * m4/ssize_t.m4: New file.
95188         * m4/mktime.m4: Remove file -- the new automake has this now.
95189
95190 1998-04-26  Jim Meyering  <meyering@ascend.com>
95191
95192         * m4/assert.m4: New file.
95193         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95194
95195 1998-04-05  Jim Meyering  <meyering@ascend.com>
95196
95197         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95198         (jm_PREREQ): Use it here.
95199
95200 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95201
95202         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95203         in acconfig.h.
95204
95205 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95206
95207         * m4/prereq.m4: New file.
95208         * m4/error.m4: New file.
95209         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95210
95211 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95212
95213         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95214         cache-check for the same variable -- that defeated the purpose of
95215         the test; the test program was never run.  This was a problem only
95216         on systems with losing getline functions -- HP-UX 10.20 is one.
95217         Reported by Bjorn Helgaas.
95218
95219 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95220
95221         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95222
95223 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95224
95225         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95226
95227         * m4/const.m4: New file.  Use an initializer in this declaration
95228         typedef int charset[2]; const charset x;
95229         Reported by Bob Glickstein.
95230
95231 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95232
95233         * m4/chown.m4: Fix reversed types on -1 args to chown.
95234         From Kaveh Ghazi.
95235
95236 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95237
95238         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95239         Add lseek and memchr.
95240
95241         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95242         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95243         have a 20-character limit on names.
95244
95245 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95246
95247         * m4/inttypes_h.m4: New file.
95248         * m4/uintmax_t.m4: New file.
95249         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95250
95251
95252         -----
95253
95254         Local Variables:
95255         coding: utf-8
95256         End:
95257
95258         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95259
95260         Copying and distribution of this file, with or without
95261         modification, are permitted provided the copyright notice
95262         and this notice are preserved.